diff --git a/264.195e745d.async.js b/264.195e745d.async.js deleted file mode 100644 index f3c0804e7..000000000 --- a/264.195e745d.async.js +++ /dev/null @@ -1,3 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[264],{36334:function(){"use strict"},71110:function(){"use strict"},72932:function(ae,f,O){"use strict";O.d(f,{ZP:function(){return It}});var R=O(94184),H=O.n(R),K=O(98423),D=O(42550),u=O(62435),j=O(5110),A=O(53124),W=O(96159),le=O(67968);const Y=t=>{const{componentCls:d,colorPrimary:C}=t;return{[d]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${C})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${t.motionEaseOutCirc}`,`opacity 2s ${t.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}};var J=(0,le.Z)("Wave",t=>[Y(t)]),ee=O(82225),Ee=O(23984),me=O(75164);function fe(t){const d=(t||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return d&&d[1]&&d[2]&&d[3]?!(d[1]===d[2]&&d[2]===d[3]):!0}function L(t){return t&&t!=="#fff"&&t!=="#ffffff"&&t!=="rgb(255, 255, 255)"&&t!=="rgba(255, 255, 255, 1)"&&fe(t)&&!/rgba\((?:\d*, ){3}0\)/.test(t)&&t!=="transparent"}function we(t){const{borderTopColor:d,borderColor:C,backgroundColor:E}=getComputedStyle(t);return L(d)?d:L(C)?C:L(E)?E:null}function _(t){return Number.isNaN(t)?0:t}const he=t=>{const{className:d,target:C}=t,E=u.useRef(null),[$,oe]=u.useState(null),[re,Se]=u.useState([]),[Te,de]=u.useState(0),[ze,$e]=u.useState(0),[Ke,rt]=u.useState(0),[ke,Be]=u.useState(0),[nt,it]=u.useState(!1),Qe={left:Te,top:ze,width:Ke,height:ke,borderRadius:re.map(xe=>`${xe}px`).join(" ")};$&&(Qe["--wave-color"]=$);function Ue(){const xe=getComputedStyle(C);oe(we(C));const je=xe.position==="static",{borderLeftWidth:Fe,borderTopWidth:De}=xe;de(je?C.offsetLeft:_(-parseFloat(Fe))),$e(je?C.offsetTop:_(-parseFloat(De))),rt(C.offsetWidth),Be(C.offsetHeight);const{borderTopLeftRadius:Ve,borderTopRightRadius:Re,borderBottomLeftRadius:Oe,borderBottomRightRadius:Je}=xe;Se([Ve,Re,Je,Oe].map(ot=>_(parseFloat(ot))))}return u.useEffect(()=>{if(C){const xe=(0,me.Z)(()=>{Ue(),it(!0)});let je;return typeof ResizeObserver!="undefined"&&(je=new ResizeObserver(Ue),je.observe(C)),()=>{me.Z.cancel(xe),je==null||je.disconnect()}}},[]),nt?u.createElement(ee.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(xe,je)=>{var Fe;if(je.deadline||je.propertyName==="opacity"){const De=(Fe=E.current)===null||Fe===void 0?void 0:Fe.parentElement;(0,Ee.v)(De).then(()=>{De==null||De.remove()})}return!1}},xe=>{let{className:je}=xe;return u.createElement("div",{ref:E,className:H()(d,je),style:Qe})}):null};function se(t,d){const C=document.createElement("div");C.style.position="absolute",C.style.left="0px",C.style.top="0px",t==null||t.insertBefore(C,t==null?void 0:t.firstChild),(0,Ee.s)(u.createElement(he,{target:t,className:d}),C)}function te(t,d){function C(){const E=t.current;se(E,d)}return C}var S=t=>{const{children:d,disabled:C}=t,{getPrefixCls:E}=(0,u.useContext)(A.E_),$=(0,u.useRef)(null),oe=E("wave"),[,re]=J(oe),Se=te($,H()(oe,re));if(u.useEffect(()=>{const de=$.current;if(!de||de.nodeType!==1||C)return;const ze=$e=>{$e.target.tagName==="INPUT"||!(0,j.Z)($e.target)||!de.getAttribute||de.getAttribute("disabled")||de.disabled||de.className.includes("disabled")||de.className.includes("-leave")||Se()};return de.addEventListener("click",ze,!0),()=>{de.removeEventListener("click",ze,!0)}},[C]),!u.isValidElement(d))return d!=null?d:null;const Te=(0,D.Yr)(d)?(0,D.sQ)(d.ref,$):$;return(0,W.Tm)(d,{ref:Te})},o=O(98866),v=O(97647),n=t=>{const d=u.useContext(v.Z);return u.useMemo(()=>t?typeof t=="string"?t!=null?t:d:t instanceof Function?t(d):d:d,[t,d])},i=O(4173),h=(0,u.forwardRef)((t,d)=>{const{className:C,style:E,children:$,prefixCls:oe}=t,re=H()(`${oe}-icon`,C);return u.createElement("span",{ref:d,className:re,style:E},$)}),l=O(50888);const p=(0,u.forwardRef)((t,d)=>{let{prefixCls:C,className:E,style:$,iconClassName:oe}=t;const re=H()(`${C}-loading-icon`,E);return u.createElement(h,{prefixCls:C,className:re,style:$,ref:d},u.createElement(l.Z,{className:oe}))}),m=()=>({width:0,opacity:0,transform:"scale(0)"}),P=t=>({width:t.scrollWidth,opacity:1,transform:"scale(1)"});var B=t=>{const{prefixCls:d,loading:C,existIcon:E,className:$,style:oe}=t,re=!!C;return E?u.createElement(p,{prefixCls:d,className:$,style:oe}):u.createElement(ee.ZP,{visible:re,motionName:`${d}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:m,onAppearActive:P,onEnterStart:m,onEnterActive:P,onLeaveStart:P,onLeaveActive:m},(Se,Te)=>{let{className:de,style:ze}=Se;return u.createElement(p,{prefixCls:d,className:$,style:Object.assign(Object.assign({},oe),ze),ref:Te,iconClassName:de})})},g=O(25976),y=function(t,d){var C={};for(var E in t)Object.prototype.hasOwnProperty.call(t,E)&&d.indexOf(E)<0&&(C[E]=t[E]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,E=Object.getOwnPropertySymbols(t);${const{getPrefixCls:d,direction:C}=u.useContext(A.E_),{prefixCls:E,size:$,className:oe}=t,re=y(t,["prefixCls","size","className"]),Se=d("btn-group",E),[,,Te]=(0,g.Z)();let de="";switch($){case"large":de="lg";break;case"small":de="sm";break;case"middle":case void 0:break;default:}const ze=H()(Se,{[`${Se}-${de}`]:de,[`${Se}-rtl`]:C==="rtl"},oe,Te);return u.createElement(T.Provider,{value:$},u.createElement("div",Object.assign({},re,{className:ze})))};const F=/^[\u4e00-\u9fa5]{2}$/,ne=F.test.bind(F);function G(t){return typeof t=="string"}function Q(t){return t==="text"||t==="link"}function b(t,d){if(t==null)return;const C=d?" ":"";return typeof t!="string"&&typeof t!="number"&&G(t.type)&&ne(t.props.children)?(0,W.Tm)(t,{children:t.props.children.split("").join(C)}):typeof t=="string"?ne(t)?u.createElement("span",null,t.split("").join(C)):u.createElement("span",null,t):(0,W.M2)(t)?u.createElement("span",null,t):t}function r(t,d){let C=!1;const E=[];return u.Children.forEach(t,$=>{const oe=typeof $,re=oe==="string"||oe==="number";if(C&&re){const Se=E.length-1,Te=E[Se];E[Se]=`${Te}${$}`}else E.push($);C=re}),u.Children.map(E,$=>b($,d))}const a=null,w=null,x=null;var z=O(14747);function M(t,d,C){const{focusElCls:E,focus:$,borderElCls:oe}=C,re=oe?"> *":"",Se=["hover",$?"focus":null,"active"].filter(Boolean).map(Te=>`&:${Te} ${re}`).join(",");return{[`&-item:not(${d}-last-item)`]:{marginInlineEnd:-t.lineWidth},"&-item":Object.assign(Object.assign({[Se]:{zIndex:2}},E?{[`&${E}`]:{zIndex:2}}:{}),{[`&[disabled] ${re}`]:{zIndex:0}})}}function I(t,d,C){const{borderElCls:E}=C,$=E?`> ${E}`:"";return{[`&-item:not(${d}-first-item):not(${d}-last-item) ${$}`]:{borderRadius:0},[`&-item:not(${d}-last-item)${d}-first-item`]:{[`& ${$}, &${t}-sm ${$}, &${t}-lg ${$}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${d}-first-item)${d}-last-item`]:{[`& ${$}, &${t}-sm ${$}, &${t}-lg ${$}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function U(t){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:C}=t,E=`${C}-compact`;return{[E]:Object.assign(Object.assign({},M(t,E,d)),I(C,E,d))}}function Ce(t,d){return{[`&-item:not(${d}-last-item)`]:{marginBottom:-t.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function be(t,d){return{[`&-item:not(${d}-first-item):not(${d}-last-item)`]:{borderRadius:0},[`&-item${d}-first-item:not(${d}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${d}-last-item:not(${d}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function ge(t){const d=`${t.componentCls}-compact-vertical`;return{[d]:Object.assign(Object.assign({},Ce(t,d)),be(t.componentCls,d))}}var ue=O(45503);const Le=(t,d)=>({[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineEndColor:d}}},"&:not(:first-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineStartColor:d}}}}});var V=t=>{const{componentCls:d,fontSize:C,lineWidth:E,colorPrimaryHover:$,colorErrorHover:oe}=t;return{[`${d}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${d}`]:{"&:not(:last-child)":{[`&, & > ${d}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-E,[`&, & > ${d}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[d]:{position:"relative",zIndex:1,[`&:hover, - &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${d}-icon-only`]:{fontSize:C}},Le(`${d}-primary`,$),Le(`${d}-danger`,oe)]}};const q=t=>{const{componentCls:d,iconCls:C,buttonFontWeight:E}=t;return{[d]:{outline:"none",position:"relative",display:"inline-block",fontWeight:E,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${t.lineWidth}px ${t.lineType} transparent`,cursor:"pointer",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:t.lineHeight,color:t.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${d}-icon`]:{lineHeight:0},[`> ${C} + span, > span + ${C}`]:{marginInlineStart:t.marginXS},[`&:not(${d}-icon-only) > ${d}-icon`]:{[`&${d}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:t.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,z.Qy)(t)),[`&-icon-only${d}-compact-item`]:{flex:"none"},[`&-compact-item${d}-primary`]:{[`&:not([disabled]) + ${d}-compact-item${d}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-t.lineWidth,insetInlineStart:-t.lineWidth,display:"inline-block",width:t.lineWidth,height:`calc(100% + ${t.lineWidth*2}px)`,backgroundColor:t.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${d}-primary`]:{[`&:not([disabled]) + ${d}-compact-vertical-item${d}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-t.lineWidth,insetInlineStart:-t.lineWidth,display:"inline-block",width:`calc(100% + ${t.lineWidth*2}px)`,height:t.lineWidth,backgroundColor:t.colorPrimaryHover,content:'""'}}}}}}},ie=(t,d,C)=>({[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":d,"&:active":C}}),X=t=>({minWidth:t.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),pe=t=>({borderRadius:t.controlHeight,paddingInlineStart:t.controlHeight/2,paddingInlineEnd:t.controlHeight/2}),ye=t=>({cursor:"not-allowed",borderColor:t.colorBorder,color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,boxShadow:"none"}),ve=(t,d,C,E,$,oe,re)=>({[`&${t}-background-ghost`]:Object.assign(Object.assign({color:d||void 0,backgroundColor:"transparent",borderColor:C||void 0,boxShadow:"none"},ie(t,Object.assign({backgroundColor:"transparent"},oe),Object.assign({backgroundColor:"transparent"},re))),{"&:disabled":{cursor:"not-allowed",color:E||void 0,borderColor:$||void 0}})}),Pe=t=>({[`&:disabled, &${t.componentCls}-disabled`]:Object.assign({},ye(t))}),Me=t=>Object.assign({},Pe(t)),He=t=>({[`&:disabled, &${t.componentCls}-disabled`]:{cursor:"not-allowed",color:t.colorTextDisabled}}),Ye=t=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Me(t)),{backgroundColor:t.colorBgContainer,borderColor:t.colorBorder,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlTmpOutline}`}),ie(t.componentCls,{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),ve(t.componentCls,t.colorBgContainer,t.colorBgContainer,t.colorTextDisabled,t.colorBorder)),{[`&${t.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:t.colorError,borderColor:t.colorError},ie(t.componentCls,{color:t.colorErrorHover,borderColor:t.colorErrorBorderHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),ve(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder)),Pe(t))}),Ae=t=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Me(t)),{color:t.colorTextLightSolid,backgroundColor:t.colorPrimary,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlOutline}`}),ie(t.componentCls,{color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryHover},{color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryActive})),ve(t.componentCls,t.colorPrimary,t.colorPrimary,t.colorTextDisabled,t.colorBorder,{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),{[`&${t.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:t.colorError,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.colorErrorOutline}`},ie(t.componentCls,{backgroundColor:t.colorErrorHover},{backgroundColor:t.colorErrorActive})),ve(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder,{color:t.colorErrorHover,borderColor:t.colorErrorHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),Pe(t))}),qe=t=>Object.assign(Object.assign({},Ye(t)),{borderStyle:"dashed"}),Ne=t=>Object.assign(Object.assign(Object.assign({color:t.colorLink},ie(t.componentCls,{color:t.colorLinkHover},{color:t.colorLinkActive})),He(t)),{[`&${t.componentCls}-dangerous`]:Object.assign(Object.assign({color:t.colorError},ie(t.componentCls,{color:t.colorErrorHover},{color:t.colorErrorActive})),He(t))}),_e=t=>Object.assign(Object.assign(Object.assign({},ie(t.componentCls,{color:t.colorText,backgroundColor:t.colorBgTextHover},{color:t.colorText,backgroundColor:t.colorBgTextActive})),He(t)),{[`&${t.componentCls}-dangerous`]:Object.assign(Object.assign({color:t.colorError},He(t)),ie(t.componentCls,{color:t.colorErrorHover,backgroundColor:t.colorErrorBg},{color:t.colorErrorHover,backgroundColor:t.colorErrorBg}))}),wt=t=>{const{componentCls:d}=t;return{[`${d}-default`]:Ye(t),[`${d}-primary`]:Ae(t),[`${d}-dashed`]:qe(t),[`${d}-link`]:Ne(t),[`${d}-text`]:_e(t),[`${d}-ghost`]:ve(t.componentCls,t.colorBgContainer,t.colorBgContainer,t.colorTextDisabled,t.colorBorder)}},et=function(t){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:C,controlHeight:E,fontSize:$,lineHeight:oe,lineWidth:re,borderRadius:Se,buttonPaddingHorizontal:Te,iconCls:de}=t,ze=Math.max(0,(E-$*oe)/2-re),$e=Te-re,Ke=`${C}-icon-only`;return[{[`${C}${d}`]:{fontSize:$,height:E,padding:`${ze}px ${$e}px`,borderRadius:Se,[`&${Ke}`]:{width:E,paddingInlineStart:0,paddingInlineEnd:0,[`&${C}-round`]:{width:"auto"},[de]:{fontSize:t.buttonIconOnlyFontSize}},[`&${C}-loading`]:{opacity:t.opacityLoading,cursor:"default"},[`${C}-loading-icon`]:{transition:`width ${t.motionDurationSlow} ${t.motionEaseInOut}, opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`}}},{[`${C}${C}-circle${d}`]:X(t)},{[`${C}${C}-round${d}`]:pe(t)}]},Ct=t=>et(t),Pt=t=>{const d=(0,ue.TS)(t,{controlHeight:t.controlHeightSM,padding:t.paddingXS,buttonPaddingHorizontal:8,borderRadius:t.borderRadiusSM,buttonIconOnlyFontSize:t.fontSizeLG-2});return et(d,`${t.componentCls}-sm`)},Tt=t=>{const d=(0,ue.TS)(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG,buttonIconOnlyFontSize:t.fontSizeLG+2});return et(d,`${t.componentCls}-lg`)},Et=t=>{const{componentCls:d}=t;return{[d]:{[`&${d}-block`]:{width:"100%"}}}};var jt=(0,le.Z)("Button",t=>{const{controlTmpOutline:d,paddingContentHorizontal:C}=t,E=(0,ue.TS)(t,{colorOutlineDefault:d,buttonPaddingHorizontal:C,buttonIconOnlyFontSize:t.fontSizeLG,buttonFontWeight:400});return[q(E),Pt(E),Ct(E),Tt(E),Et(E),wt(E),V(E),U(t),ge(t)]}),Lt=function(t,d){var C={};for(var E in t)Object.prototype.hasOwnProperty.call(t,E)&&d.indexOf(E)<0&&(C[E]=t[E]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,E=Object.getOwnPropertySymbols(t);${var C,E;const{loading:$=!1,prefixCls:oe,type:re="default",danger:Se,shape:Te="default",size:de,styles:ze,disabled:$e,className:Ke,rootClassName:rt,children:ke,icon:Be,ghost:nt=!1,block:it=!1,htmlType:Qe="button",classNames:Ue,style:xe={}}=t,je=Lt(t,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Fe,autoInsertSpaceInButton:De,direction:Ve,button:Re}=(0,u.useContext)(A.E_),Oe=Fe("btn",oe),[Je,ot]=jt(Oe),Mt=(0,u.useContext)(o.Z),at=$e!=null?$e:Mt,Nt=(0,u.useContext)(T),Ze=(0,u.useMemo)(()=>zt($),[$]),[Ge,ct]=(0,u.useState)(Ze.loading),[lt,dt]=(0,u.useState)(!1),$t=(0,u.createRef)(),Xe=(0,D.sQ)(d,$t),ft=u.Children.count(ke)===1&&!Be&&!Q(re);(0,u.useEffect)(()=>{let Ie=null;Ze.delay>0?Ie=setTimeout(()=>{Ie=null,ct(!0)},Ze.delay):ct(Ze.loading);function We(){Ie&&(clearTimeout(Ie),Ie=null)}return We},[Ze]),(0,u.useEffect)(()=>{if(!Xe||!Xe.current||De===!1)return;const Ie=Xe.current.textContent;ft&&ne(Ie)?lt||dt(!0):lt&&dt(!1)},[Xe]);const vt=Ie=>{const{onClick:We}=t;if(Ge||at){Ie.preventDefault();return}We==null||We(Ie)},pt=De!==!1,{compactSize:Ht,compactItemClassnames:Dt}=(0,i.ri)(Oe,Ve),Wt={large:"lg",small:"sm",middle:void 0},gt=n(Ie=>{var We,ut;return(ut=(We=de!=null?de:Ht)!==null&&We!==void 0?We:Nt)!==null&&ut!==void 0?ut:Ie}),ht=gt&&Wt[gt]||"",kt=Ge?"loading":Be,yt=(0,K.Z)(je,["navigate"]),mt=H()(Oe,ot,{[`${Oe}-${Te}`]:Te!=="default"&&Te,[`${Oe}-${re}`]:re,[`${Oe}-${ht}`]:ht,[`${Oe}-icon-only`]:!ke&&ke!==0&&!!kt,[`${Oe}-background-ghost`]:nt&&!Q(re),[`${Oe}-loading`]:Ge,[`${Oe}-two-chinese-chars`]:lt&&pt&&!Ge,[`${Oe}-block`]:it,[`${Oe}-dangerous`]:!!Se,[`${Oe}-rtl`]:Ve==="rtl"},Dt,Ke,rt,Re==null?void 0:Re.className),bt=Object.assign(Object.assign({},Re==null?void 0:Re.style),xe),At=H()(Ue==null?void 0:Ue.icon,(C=Re==null?void 0:Re.classNames)===null||C===void 0?void 0:C.icon),_t=Object.assign(Object.assign({},(ze==null?void 0:ze.icon)||{}),((E=Re==null?void 0:Re.styles)===null||E===void 0?void 0:E.icon)||{}),St=Be&&!Ge?u.createElement(h,{prefixCls:Oe,className:At,style:_t},Be):u.createElement(B,{existIcon:!!Be,prefixCls:Oe,loading:!!Ge}),Ot=ke||ke===0?r(ke,ft&&pt):null;if(yt.href!==void 0)return Je(u.createElement("a",Object.assign({},yt,{className:H()(mt,{[`${Oe}-disabled`]:at}),style:bt,onClick:vt,ref:Xe}),St,Ot));let st=u.createElement("button",Object.assign({},je,{type:Qe,className:mt,style:bt,onClick:vt,disabled:at,ref:Xe}),St,Ot);return Q(re)||(st=u.createElement(S,{disabled:!!Ge},st)),Je(st)},tt=(0,u.forwardRef)(Rt);tt.Group=Z,tt.__ANT_BUTTON=!0;var xt=tt,It=xt},62988:function(ae,f,O){var R=O(61755),H=O(26665).each;function K(D,u){this.query=D,this.isUnconditional=u,this.handlers=[],this.mql=window.matchMedia(D);var j=this;this.listener=function(A){j.mql=A.currentTarget||A,j.assess()},this.mql.addListener(this.listener)}K.prototype={constuctor:K,addHandler:function(D){var u=new R(D);this.handlers.push(u),this.matches()&&u.on()},removeHandler:function(D){var u=this.handlers;H(u,function(j,A){if(j.equals(D))return j.destroy(),!u.splice(A,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){H(this.handlers,function(D){D.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var D=this.matches()?"on":"off";H(this.handlers,function(u){u[D]()})}},ae.exports=K},38177:function(ae,f,O){var R=O(62988),H=O(26665),K=H.each,D=H.isFunction,u=H.isArray;function j(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}j.prototype={constructor:j,register:function(A,W,le){var Y=this.queries,J=le&&this.browserIsIncapable;return Y[A]||(Y[A]=new R(A,J)),D(W)&&(W={match:W}),u(W)||(W=[W]),K(W,function(ee){D(ee)&&(ee={match:ee}),Y[A].addHandler(ee)}),this},unregister:function(A,W){var le=this.queries[A];return le&&(W?le.removeHandler(W):(le.clear(),delete this.queries[A])),this}},ae.exports=j},61755:function(ae){function f(O){this.options=O,!O.deferSetup&&this.setup()}f.prototype={constructor:f,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(O){return this.options===O||this.options.match===O}},ae.exports=f},26665:function(ae){function f(H,K){var D=0,u=H.length,j;for(D;D=S||Q<0||m&&b>=n}function T(){var G=L();if(y(G))return N(G);c=setTimeout(T,g(G))}function N(G){return c=void 0,P&&v?e(G):(v=s=void 0,i)}function Z(){c!==void 0&&clearTimeout(c),l=0,v=h=s=c=void 0}function F(){return c===void 0?i:N(L())}function ne(){var G=L(),Q=y(G);if(v=arguments,s=this,h=G,Q){if(c===void 0)return B(h);if(m)return c=setTimeout(T,S),e(h)}return c===void 0&&(c=setTimeout(T,S)),i}return ne.cancel=Z,ne.flush=F,ne}function _(k){var S=typeof k;return!!k&&(S=="object"||S=="function")}function he(k){return!!k&&typeof k=="object"}function se(k){return typeof k=="symbol"||he(k)&&Ee.call(k)==K}function te(k){if(typeof k=="number")return k;if(se(k))return H;if(_(k)){var S=typeof k.valueOf=="function"?k.valueOf():k;k=_(S)?S+"":S}if(typeof k!="string")return k===0?k:+k;k=k.replace(D,"");var o=j.test(k);return o||A.test(k)?W(k.slice(2),o?2:8):u.test(k)?H:+k}ae.exports=we},8205:function(ae,f,O){"use strict";function R(o){"@babel/helpers - typeof";return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},R(o)}Object.defineProperty(f,"__esModule",{value:!0}),f.PrevArrow=f.NextArrow=void 0;var H=u(O(62435)),K=u(O(94184)),D=O(15518);function u(o){return o&&o.__esModule?o:{default:o}}function j(){return j=Object.assign?Object.assign.bind():function(o){for(var v=1;v=ne&&e<=Z:e===ne}),Q={message:"dots",index:T,slidesToScroll:p,currentSlide:e},b=this.clickHandler.bind(this,Q);y=y.concat(H.default.createElement("li",{key:T,className:G},H.default.cloneElement(this.props.customPaging(T),{onClick:b})))}return H.default.cloneElement(this.props.appendDots(y),A({className:this.props.dotsClass},g))}}]),v}(H.default.PureComponent)},46066:function(ae,f,O){"use strict";var R;R={value:!0},f.Z=void 0;var H=K(O(5798));function K(u){return u&&u.__esModule?u:{default:u}}var D=f.Z=H.default},46948:function(ae,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0;var O={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},R=f.default=O},58517:function(ae,f,O){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.InnerSlider=void 0;var R=Y(O(62435)),H=Y(O(46948)),K=Y(O(91296)),D=Y(O(94184)),u=O(15518),j=O(64740),A=O(16329),W=O(8205),le=Y(O(91033));function Y(l){return l&&l.__esModule?l:{default:l}}function J(l){"@babel/helpers - typeof";return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},J(l)}function ee(){return ee=Object.assign?Object.assign.bind():function(l){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(l,P)&&(m[P]=l[P])}return m}function me(l,p){if(l==null)return{};var m={},P=Object.keys(l),e,B;for(B=0;B=0)&&(m[e]=l[e]);return m}function fe(l,p){var m=Object.keys(l);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(l);p&&(P=P.filter(function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable})),m.push.apply(m,P)}return m}function L(l){for(var p=1;p0&&(e.setState(function(T){return{lazyLoadedList:T.lazyLoadedList.concat(g)}}),e.props.onLazyLoad&&e.props.onLazyLoad(g))}var y=L({listRef:e.list,trackRef:e.track},e.props);e.updateState(y,!0,function(){e.adaptHeight(),e.props.autoplay&&e.autoPlay("update")}),e.props.lazyLoad==="progressive"&&(e.lazyLoadTimer=setInterval(e.progressiveLazyLoad,1e3)),e.ro=new le.default(function(){e.state.animating?(e.onWindowResized(!1),e.callbackTimers.push(setTimeout(function(){return e.onWindowResized()},e.props.speed))):e.onWindowResized()}),e.ro.observe(e.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(T){T.onfocus=e.props.pauseOnFocus?e.onSlideFocus:null,T.onblur=e.props.pauseOnFocus?e.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",e.onWindowResized):window.attachEvent("onresize",e.onWindowResized)}),n(o(e),"componentWillUnmount",function(){e.animationEndCallback&&clearTimeout(e.animationEndCallback),e.lazyLoadTimer&&clearInterval(e.lazyLoadTimer),e.callbackTimers.length&&(e.callbackTimers.forEach(function(g){return clearTimeout(g)}),e.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",e.onWindowResized):window.detachEvent("onresize",e.onWindowResized),e.autoplayTimer&&clearInterval(e.autoplayTimer),e.ro.disconnect()}),n(o(e),"componentDidUpdate",function(g){if(e.checkImagesLoad(),e.props.onReInit&&e.props.onReInit(),e.props.lazyLoad){var y=(0,u.getOnDemandLazySlides)(L(L({},e.props),e.state));y.length>0&&(e.setState(function(Z){return{lazyLoadedList:Z.lazyLoadedList.concat(y)}}),e.props.onLazyLoad&&e.props.onLazyLoad(y))}e.adaptHeight();var T=L(L({listRef:e.list,trackRef:e.track},e.props),e.state),N=e.didPropsChange(g);N&&e.updateState(T,N,function(){e.state.currentSlide>=R.default.Children.count(e.props.children)&&e.changeSlide({message:"index",index:R.default.Children.count(e.props.children)-e.props.slidesToShow,currentSlide:e.state.currentSlide}),e.props.autoplay?e.autoPlay("update"):e.pause("paused")})}),n(o(e),"onWindowResized",function(g){e.debouncedResize&&e.debouncedResize.cancel(),e.debouncedResize=(0,K.default)(function(){return e.resizeWindow(g)},50),e.debouncedResize()}),n(o(e),"resizeWindow",function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,y=!!(e.track&&e.track.node);if(y){var T=L(L({listRef:e.list,trackRef:e.track},e.props),e.state);e.updateState(T,g,function(){e.props.autoplay?e.autoPlay("update"):e.pause("paused")}),e.setState({animating:!1}),clearTimeout(e.animationEndCallback),delete e.animationEndCallback}}),n(o(e),"updateState",function(g,y,T){var N=(0,u.initializedState)(g);g=L(L(L({},g),N),{},{slideIndex:N.currentSlide});var Z=(0,u.getTrackLeft)(g);g=L(L({},g),{},{left:Z});var F=(0,u.getTrackCSS)(g);(y||R.default.Children.count(e.props.children)!==R.default.Children.count(g.children))&&(N.trackStyle=F),e.setState(N,T)}),n(o(e),"ssrInit",function(){if(e.props.variableWidth){var g=0,y=0,T=[],N=(0,u.getPreClones)(L(L(L({},e.props),e.state),{},{slideCount:e.props.children.length})),Z=(0,u.getPostClones)(L(L(L({},e.props),e.state),{},{slideCount:e.props.children.length}));e.props.children.forEach(function(U){T.push(U.props.style.width),g+=U.props.style.width});for(var F=0;F=y&&e.onWindowResized()};if(!N.onclick)N.onclick=function(){return N.parentNode.focus()};else{var F=N.onclick;N.onclick=function(ne){F(ne),N.parentNode.focus()}}N.onload||(e.props.lazyLoad?N.onload=function(){e.adaptHeight(),e.callbackTimers.push(setTimeout(e.onWindowResized,e.props.speed))}:(N.onload=Z,N.onerror=function(){Z(),e.props.onLazyLoadError&&e.props.onLazyLoadError()}))})}),n(o(e),"progressiveLazyLoad",function(){for(var g=[],y=L(L({},e.props),e.state),T=e.state.currentSlide;T=-(0,u.getPreClones)(y);N--)if(e.state.lazyLoadedList.indexOf(N)<0){g.push(N);break}g.length>0?(e.setState(function(Z){return{lazyLoadedList:Z.lazyLoadedList.concat(g)}}),e.props.onLazyLoad&&e.props.onLazyLoad(g)):e.lazyLoadTimer&&(clearInterval(e.lazyLoadTimer),delete e.lazyLoadTimer)}),n(o(e),"slideHandler",function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,T=e.props,N=T.asNavFor,Z=T.beforeChange,F=T.onLazyLoad,ne=T.speed,G=T.afterChange,Q=e.state.currentSlide,b=(0,u.slideHandler)(L(L(L({index:g},e.props),e.state),{},{trackRef:e.track,useCSS:e.props.useCSS&&!y})),r=b.state,a=b.nextState;if(r){Z&&Z(Q,r.currentSlide);var w=r.lazyLoadedList.filter(function(x){return e.state.lazyLoadedList.indexOf(x)<0});F&&w.length>0&&F(w),!e.props.waitForAnimate&&e.animationEndCallback&&(clearTimeout(e.animationEndCallback),G&&G(Q),delete e.animationEndCallback),e.setState(r,function(){N&&e.asNavForIndex!==g&&(e.asNavForIndex=g,N.innerSlider.slideHandler(g)),a&&(e.animationEndCallback=setTimeout(function(){var x=a.animating,z=Ee(a,["animating"]);e.setState(z,function(){e.callbackTimers.push(setTimeout(function(){return e.setState({animating:x})},10)),G&&G(r.currentSlide),delete e.animationEndCallback})},ne))})}}),n(o(e),"changeSlide",function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,T=L(L({},e.props),e.state),N=(0,u.changeSlide)(T,g);if(!(N!==0&&!N)&&(y===!0?e.slideHandler(N,y):e.slideHandler(N),e.props.autoplay&&e.autoPlay("update"),e.props.focusOnSelect)){var Z=e.list.querySelectorAll(".slick-current");Z[0]&&Z[0].focus()}}),n(o(e),"clickHandler",function(g){e.clickable===!1&&(g.stopPropagation(),g.preventDefault()),e.clickable=!0}),n(o(e),"keyHandler",function(g){var y=(0,u.keyHandler)(g,e.props.accessibility,e.props.rtl);y!==""&&e.changeSlide({message:y})}),n(o(e),"selectHandler",function(g){e.changeSlide(g)}),n(o(e),"disableBodyScroll",function(){var g=function(T){T=T||window.event,T.preventDefault&&T.preventDefault(),T.returnValue=!1};window.ontouchmove=g}),n(o(e),"enableBodyScroll",function(){window.ontouchmove=null}),n(o(e),"swipeStart",function(g){e.props.verticalSwiping&&e.disableBodyScroll();var y=(0,u.swipeStart)(g,e.props.swipe,e.props.draggable);y!==""&&e.setState(y)}),n(o(e),"swipeMove",function(g){var y=(0,u.swipeMove)(g,L(L(L({},e.props),e.state),{},{trackRef:e.track,listRef:e.list,slideIndex:e.state.currentSlide}));y&&(y.swiping&&(e.clickable=!1),e.setState(y))}),n(o(e),"swipeEnd",function(g){var y=(0,u.swipeEnd)(g,L(L(L({},e.props),e.state),{},{trackRef:e.track,listRef:e.list,slideIndex:e.state.currentSlide}));if(y){var T=y.triggerSlideHandler;delete y.triggerSlideHandler,e.setState(y),T!==void 0&&(e.slideHandler(T),e.props.verticalSwiping&&e.enableBodyScroll())}}),n(o(e),"touchEnd",function(g){e.swipeEnd(g),e.clickable=!0}),n(o(e),"slickPrev",function(){e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"previous"})},0))}),n(o(e),"slickNext",function(){e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"next"})},0))}),n(o(e),"slickGoTo",function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(g=Number(g),isNaN(g))return"";e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"index",index:g,currentSlide:e.state.currentSlide},y)},0))}),n(o(e),"play",function(){var g;if(e.props.rtl)g=e.state.currentSlide-e.props.slidesToScroll;else if((0,u.canGoNext)(L(L({},e.props),e.state)))g=e.state.currentSlide+e.props.slidesToScroll;else return!1;e.slideHandler(g)}),n(o(e),"autoPlay",function(g){e.autoplayTimer&&clearInterval(e.autoplayTimer);var y=e.state.autoplaying;if(g==="update"){if(y==="hovered"||y==="focused"||y==="paused")return}else if(g==="leave"){if(y==="paused"||y==="focused")return}else if(g==="blur"&&(y==="paused"||y==="hovered"))return;e.autoplayTimer=setInterval(e.play,e.props.autoplaySpeed+50),e.setState({autoplaying:"playing"})}),n(o(e),"pause",function(g){e.autoplayTimer&&(clearInterval(e.autoplayTimer),e.autoplayTimer=null);var y=e.state.autoplaying;g==="paused"?e.setState({autoplaying:"paused"}):g==="focused"?(y==="hovered"||y==="playing")&&e.setState({autoplaying:"focused"}):y==="playing"&&e.setState({autoplaying:"hovered"})}),n(o(e),"onDotsOver",function(){return e.props.autoplay&&e.pause("hovered")}),n(o(e),"onDotsLeave",function(){return e.props.autoplay&&e.state.autoplaying==="hovered"&&e.autoPlay("leave")}),n(o(e),"onTrackOver",function(){return e.props.autoplay&&e.pause("hovered")}),n(o(e),"onTrackLeave",function(){return e.props.autoplay&&e.state.autoplaying==="hovered"&&e.autoPlay("leave")}),n(o(e),"onSlideFocus",function(){return e.props.autoplay&&e.pause("focused")}),n(o(e),"onSlideBlur",function(){return e.props.autoplay&&e.state.autoplaying==="focused"&&e.autoPlay("blur")}),n(o(e),"render",function(){var g=(0,D.default)("slick-slider",e.props.className,{"slick-vertical":e.props.vertical,"slick-initialized":!0}),y=L(L({},e.props),e.state),T=(0,u.extractObject)(y,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),N=e.props.pauseOnHover;T=L(L({},T),{},{onMouseEnter:N?e.onTrackOver:null,onMouseLeave:N?e.onTrackLeave:null,onMouseOver:N?e.onTrackOver:null,focusOnSelect:e.props.focusOnSelect&&e.clickable?e.selectHandler:null});var Z;if(e.props.dots===!0&&e.state.slideCount>=e.props.slidesToShow){var F=(0,u.extractObject)(y,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),ne=e.props.pauseOnDotsHover;F=L(L({},F),{},{clickHandler:e.changeSlide,onMouseEnter:ne?e.onDotsLeave:null,onMouseOver:ne?e.onDotsOver:null,onMouseLeave:ne?e.onDotsLeave:null}),Z=R.default.createElement(A.Dots,F)}var G,Q,b=(0,u.extractObject)(y,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);b.clickHandler=e.changeSlide,e.props.arrows&&(G=R.default.createElement(W.PrevArrow,b),Q=R.default.createElement(W.NextArrow,b));var r=null;e.props.vertical&&(r={height:e.state.listHeight});var a=null;e.props.vertical===!1?e.props.centerMode===!0&&(a={padding:"0px "+e.props.centerPadding}):e.props.centerMode===!0&&(a={padding:e.props.centerPadding+" 0px"});var w=L(L({},r),a),x=e.props.touchMove,z={className:"slick-list",style:w,onClick:e.clickHandler,onMouseDown:x?e.swipeStart:null,onMouseMove:e.state.dragging&&x?e.swipeMove:null,onMouseUp:x?e.swipeEnd:null,onMouseLeave:e.state.dragging&&x?e.swipeEnd:null,onTouchStart:x?e.swipeStart:null,onTouchMove:e.state.dragging&&x?e.swipeMove:null,onTouchEnd:x?e.touchEnd:null,onTouchCancel:e.state.dragging&&x?e.swipeEnd:null,onKeyDown:e.props.accessibility?e.keyHandler:null},M={className:g,dir:"ltr",style:e.props.style};return e.props.unslick&&(z={className:"slick-list"},M={className:g}),R.default.createElement("div",M,e.props.unslick?"":G,R.default.createElement("div",ee({ref:e.listRefHandler},z),R.default.createElement(j.Track,ee({ref:e.trackRefHandler},T),e.props.children)),e.props.unslick?"":Q,e.props.unslick?"":Z)}),e.list=null,e.track=null,e.state=L(L({},H.default),{},{currentSlide:e.props.initialSlide,targetSlide:e.props.initialSlide?e.props.initialSlide:0,slideCount:R.default.Children.count(e.props.children)}),e.callbackTimers=[],e.clickable=!0,e.debouncedResize=null;var B=e.ssrInit();return e.state=L(L({},e.state),B),e}return he(m,[{key:"didPropsChange",value:function(e){for(var B=!1,g=0,y=Object.keys(this.props);g1&&arguments[1]!==void 0?arguments[1]:!1;return h.innerSlider.slickGoTo(l,p)}),te(_(h),"slickPause",function(){return h.innerSlider.pause("paused")}),te(_(h),"slickPlay",function(){return h.innerSlider.autoPlay("play")}),h.state={breakpoint:null},h._responsiveMediaHandlers=[],h}return Ee(i,[{key:"media",value:function(h,l){o.register(h,l),this._responsiveMediaHandlers.push({query:h,handler:l})}},{key:"componentDidMount",value:function(){var h=this;if(this.props.responsive){var l=this.props.responsive.map(function(m){return m.breakpoint});l.sort(function(m,P){return m-P}),l.forEach(function(m,P){var e;P===0?e=(0,K.default)({minWidth:0,maxWidth:m}):e=(0,K.default)({minWidth:l[P-1]+1,maxWidth:m}),(0,u.canUseDOM)()&&h.media(e,function(){h.setState({breakpoint:m})})});var p=(0,K.default)({minWidth:l.slice(-1)[0]});(0,u.canUseDOM)()&&this.media(p,function(){h.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(h){o.unregister(h.query,h.handler)})}},{key:"render",value:function(){var h=this,l,p;this.state.breakpoint?(p=this.props.responsive.filter(function(F){return F.breakpoint===h.state.breakpoint}),l=p[0].settings==="unslick"?"unslick":Y(Y(Y({},D.default),this.props),p[0].settings)):l=Y(Y({},D.default),this.props),l.centerMode&&(l.slidesToScroll>1,l.slidesToScroll=1),l.fade&&(l.slidesToShow>1,l.slidesToScroll>1,l.slidesToShow=1,l.slidesToScroll=1);var m=R.default.Children.toArray(this.props.children);m=m.filter(function(F){return typeof F=="string"?!!F.trim():!!F}),l.variableWidth&&(l.rows>1||l.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),l.variableWidth=!1);for(var P=[],e=null,B=0;B=m.length));N+=1)T.push(R.default.cloneElement(m[N],{key:100*B+10*y+N,tabIndex:-1,style:{width:"".concat(100/l.slidesPerRow,"%"),display:"inline-block"}}));g.push(R.default.createElement("div",{key:10*B+y},T))}l.variableWidth?P.push(R.default.createElement("div",{key:B,style:{width:e}},g)):P.push(R.default.createElement("div",{key:B},g))}if(l==="unslick"){var Z="regular slider "+(this.props.className||"");return R.default.createElement("div",{className:Z},m)}else P.length<=l.slidesToShow&&!l.infinite&&(l.unslick=!0);return R.default.createElement(H.InnerSlider,W({style:this.props.style,ref:this.innerSliderRefHandler},(0,u.filterSettings)(l)),P)}}]),i}(R.default.Component)},64740:function(ae,f,O){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.Track=void 0;var R=D(O(62435)),H=D(O(94184)),K=O(15518);function D(n){return n&&n.__esModule?n:{default:n}}function u(n){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},u(n)}function j(){return j=Object.assign?Object.assign.bind():function(n){for(var i=1;i=i.slideCount,i.centerMode?(p=Math.floor(i.slidesToShow/2),h=(m-i.currentSlide)%i.slideCount===0,m>i.currentSlide-p-1&&m<=i.currentSlide+p&&(c=!0)):c=i.currentSlide<=m&&m=i.slideCount?P=i.targetSlide-i.slideCount:P=i.targetSlide;var e=m===P;return{"slick-slide":!0,"slick-active":c,"slick-center":h,"slick-cloned":l,"slick-current":e}},S=function(i){var c={};return(i.variableWidth===void 0||i.variableWidth===!1)&&(c.width=i.slideWidth),i.fade&&(c.position="relative",i.vertical?c.top=-i.index*parseInt(i.slideHeight):c.left=-i.index*parseInt(i.slideWidth),c.opacity=i.currentSlide===i.index?1:0,c.zIndex=i.currentSlide===i.index?999:998,i.useCSS&&(c.transition="opacity "+i.speed+"ms "+i.cssEase+", visibility "+i.speed+"ms "+i.cssEase)),c},o=function(i,c){return i.key||c},v=function(i){var c,h=[],l=[],p=[],m=R.default.Children.count(i.children),P=(0,K.lazyStartIndex)(i),e=(0,K.lazyEndIndex)(i);return R.default.Children.forEach(i.children,function(B,g){var y,T={message:"children",index:g,slidesToScroll:i.slidesToScroll,currentSlide:i.currentSlide};!i.lazyLoad||i.lazyLoad&&i.lazyLoadedList.indexOf(g)>=0?y=B:y=R.default.createElement("div",null);var N=S(_(_({},i),{},{index:g})),Z=y.props.className||"",F=k(_(_({},i),{},{index:g}));if(h.push(R.default.cloneElement(y,{key:"original"+o(y,g),"data-index":g,className:(0,H.default)(F,Z),tabIndex:"-1","aria-hidden":!F["slick-active"],style:_(_({outline:"none"},y.props.style||{}),N),onClick:function(Q){y.props&&y.props.onClick&&y.props.onClick(Q),i.focusOnSelect&&i.focusOnSelect(T)}})),i.infinite&&i.fade===!1){var ne=m-g;ne<=(0,K.getPreClones)(i)&&(c=-ne,c>=P&&(y=B),F=k(_(_({},i),{},{index:c})),l.push(R.default.cloneElement(y,{key:"precloned"+o(y,c),"data-index":c,tabIndex:"-1",className:(0,H.default)(F,Z),"aria-hidden":!F["slick-active"],style:_(_({},y.props.style||{}),N),onClick:function(Q){y.props&&y.props.onClick&&y.props.onClick(Q),i.focusOnSelect&&i.focusOnSelect(T)}}))),c=m+g,c0?1:0):0},we=f.lazySlidesOnRight=function(r){return r.centerMode?Math.floor((r.slidesToShow-1)/2)+1+(parseInt(r.centerPadding)>0?1:0):r.slidesToShow},_=f.getWidth=function(r){return r&&r.offsetWidth||0},he=f.getHeight=function(r){return r&&r.offsetHeight||0},se=f.getSwipeDirection=function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w,x,z,M;return w=r.startX-r.curX,x=r.startY-r.curY,z=Math.atan2(x,w),M=Math.round(z*180/Math.PI),M<0&&(M=360-Math.abs(M)),M<=45&&M>=0||M<=360&&M>=315?"left":M>=135&&M<=225?"right":a===!0?M>=35&&M<=135?"up":"down":"vertical"},te=f.canGoNext=function(r){var a=!0;return r.infinite||(r.centerMode&&r.currentSlide>=r.slideCount-1||r.slideCount<=r.slidesToShow||r.currentSlide>=r.slideCount-r.slidesToShow)&&(a=!1),a},k=f.extractObject=function(r,a){var w={};return a.forEach(function(x){return w[x]=r[x]}),w},S=f.initializedState=function(r){var a=R.default.Children.count(r.children),w=r.listRef,x=Math.ceil(_(w)),z=r.trackRef&&r.trackRef.node,M=Math.ceil(_(z)),I;if(r.vertical)I=x;else{var U=r.centerMode&&parseInt(r.centerPadding)*2;typeof r.centerPadding=="string"&&r.centerPadding.slice(-1)==="%"&&(U*=x/100),I=Math.ceil((x-U)/r.slidesToShow)}var Ce=w&&he(w.querySelector('[data-index="0"]')),be=Ce*r.slidesToShow,ge=r.currentSlide===void 0?r.initialSlide:r.currentSlide;r.rtl&&r.currentSlide===void 0&&(ge=a-1-r.initialSlide);var ue=r.lazyLoadedList||[],Le=ee(j(j({},r),{},{currentSlide:ge,lazyLoadedList:ue}));ue=ue.concat(Le);var ce={slideCount:a,slideWidth:I,listWidth:x,trackWidth:M,currentSlide:ge,slideHeight:Ce,listHeight:be,lazyLoadedList:ue};return r.autoplaying===null&&r.autoplay&&(ce.autoplaying="playing"),ce},o=f.slideHandler=function(r){var a=r.waitForAnimate,w=r.animating,x=r.fade,z=r.infinite,M=r.index,I=r.slideCount,U=r.lazyLoad,Ce=r.currentSlide,be=r.centerMode,ge=r.slidesToScroll,ue=r.slidesToShow,Le=r.useCSS,ce=r.lazyLoadedList;if(a&&w)return{};var V=M,q,ie,X,pe={},ye={},ve=z?M:Y(M,0,I-1);if(x){if(!z&&(M<0||M>=I))return{};M<0?V=M+I:M>=I&&(V=M-I),U&&ce.indexOf(V)<0&&(ce=ce.concat(V)),pe={animating:!0,currentSlide:V,lazyLoadedList:ce,targetSlide:V},ye={animating:!1,targetSlide:V}}else q=V,V<0?(q=V+I,z?I%ge!==0&&(q=I-I%ge):q=0):!te(r)&&V>Ce?V=q=Ce:be&&V>=I?(V=z?I:I-1,q=z?0:I-1):V>=I&&(q=V-I,z?I%ge!==0&&(q=0):q=I-ue),!z&&V+ue>=I&&(q=I-ue),ie=B(j(j({},r),{},{slideIndex:V})),X=B(j(j({},r),{},{slideIndex:q})),z||(ie===X&&(V=q),ie=X),U&&(ce=ce.concat(ee(j(j({},r),{},{currentSlide:V})))),Le?(pe={animating:!0,currentSlide:q,trackStyle:e(j(j({},r),{},{left:ie})),lazyLoadedList:ce,targetSlide:ve},ye={animating:!1,currentSlide:q,trackStyle:P(j(j({},r),{},{left:X})),swipeLeft:null,targetSlide:ve}):pe={currentSlide:q,trackStyle:P(j(j({},r),{},{left:X})),lazyLoadedList:ce,targetSlide:ve};return{state:pe,nextState:ye}},v=f.changeSlide=function(r,a){var w,x,z,M,I,U=r.slidesToScroll,Ce=r.slidesToShow,be=r.slideCount,ge=r.currentSlide,ue=r.targetSlide,Le=r.lazyLoad,ce=r.infinite;if(M=be%U!==0,w=M?0:(be-ge)%U,a.message==="previous")z=w===0?U:Ce-w,I=ge-z,Le&&!ce&&(x=ge-z,I=x===-1?be-1:x),ce||(I=ue-U);else if(a.message==="next")z=w===0?U:w,I=ge+z,Le&&!ce&&(I=(ge+U)%be+w),ce||(I=ue+U);else if(a.message==="dots")I=a.index*a.slidesToScroll;else if(a.message==="children"){if(I=a.index,ce){var V=N(j(j({},r),{},{targetSlide:I}));I>a.currentSlide&&V==="left"?I=I-be:I10)return{scrolling:!0};I&&(X.swipeLength=Ye);var Ae=(U?-1:1)*(X.curX>X.startX?1:-1);I&&(Ae=X.curY>X.startY?1:-1);var qe=Math.ceil(V/q),Ne=se(a.touchObject,I),_e=X.swipeLength;return ie||(Ce===0&&(Ne==="right"||Ne==="down")||Ce+1>=qe&&(Ne==="left"||Ne==="up")||!te(a)&&(Ne==="left"||Ne==="up"))&&(_e=X.swipeLength*be,ge===!1&&ue&&(ue(Ne),Me.edgeDragged=!0)),!Le&&pe&&(pe(Ne),Me.swiped=!0),z?Pe=He+_e*(ye/ve)*Ae:U?Pe=He-_e*Ae:Pe=He+_e*Ae,I&&(Pe=He+_e*Ae),Me=j(j({},Me),{},{touchObject:X,swipeLeft:Pe,trackStyle:P(j(j({},a),{},{left:Pe}))}),Math.abs(X.curX-X.startX)10&&(Me.swiping=!0,J(r)),Me}},c=f.swipeEnd=function(r,a){var w=a.dragging,x=a.swipe,z=a.touchObject,M=a.listWidth,I=a.touchThreshold,U=a.verticalSwiping,Ce=a.listHeight,be=a.swipeToSlide,ge=a.scrolling,ue=a.onSwipe,Le=a.targetSlide,ce=a.currentSlide,V=a.infinite;if(!w)return x&&J(r),{};var q=U?Ce/I:M/I,ie=se(z,U),X={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(ge||!z.swipeLength)return X;if(z.swipeLength>q){J(r),ue&&ue(ie);var pe,ye,ve=V?ce:Le;switch(ie){case"left":case"up":ye=ve+p(a),pe=be?l(a,ye):ye,X.currentDirection=0;break;case"right":case"down":ye=ve-p(a),pe=be?l(a,ye):ye,X.currentDirection=1;break;default:pe=ve}X.triggerSlideHandler=pe}else{var Pe=B(a);X.trackStyle=e(j(j({},a),{},{left:Pe}))}return X},h=f.getNavigableIndexes=function(r){for(var a=r.infinite?r.slideCount*2:r.slideCount,w=r.infinite?r.slidesToShow*-1:0,x=r.infinite?r.slidesToShow*-1:0,z=[];ww[w.length-1])a=w[w.length-1];else for(var z in w){if(ar.swipeLeft*-1)return w=U,!1}else if(U.offsetLeft-a+_(U)/2>r.swipeLeft*-1)return w=U,!1;return!0}),!w)return 0;var M=r.rtl===!0?r.slideCount-r.currentSlide:r.currentSlide,I=Math.abs(w.dataset.index-M)||1;return I}else return r.slidesToScroll},m=f.checkSpecKeys=function(r,a){return a.reduce(function(w,x){return w&&r.hasOwnProperty(x)},!0)?null:console.error("Keys Missing:",r)},P=f.getTrackCSS=function(r){m(r,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var a,w,x=r.slideCount+2*r.slidesToShow;r.vertical?w=x*r.slideHeight:a=T(r)*r.slideWidth;var z={opacity:1,transition:"",WebkitTransition:""};if(r.useTransform){var M=r.vertical?"translate3d(0px, "+r.left+"px, 0px)":"translate3d("+r.left+"px, 0px, 0px)",I=r.vertical?"translate3d(0px, "+r.left+"px, 0px)":"translate3d("+r.left+"px, 0px, 0px)",U=r.vertical?"translateY("+r.left+"px)":"translateX("+r.left+"px)";z=j(j({},z),{},{WebkitTransform:M,transform:I,msTransform:U})}else r.vertical?z.top=r.left:z.left=r.left;return r.fade&&(z={opacity:1}),a&&(z.width=a),w&&(z.height=w),window&&!window.addEventListener&&window.attachEvent&&(r.vertical?z.marginTop=r.left+"px":z.marginLeft=r.left+"px"),z},e=f.getTrackAnimateCSS=function(r){m(r,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var a=P(r);return r.useTransform?(a.WebkitTransition="-webkit-transform "+r.speed+"ms "+r.cssEase,a.transition="transform "+r.speed+"ms "+r.cssEase):r.vertical?a.transition="top "+r.speed+"ms "+r.cssEase:a.transition="left "+r.speed+"ms "+r.cssEase,a},B=f.getTrackLeft=function(r){if(r.unslick)return 0;m(r,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var a=r.slideIndex,w=r.trackRef,x=r.infinite,z=r.centerMode,M=r.slideCount,I=r.slidesToShow,U=r.slidesToScroll,Ce=r.slideWidth,be=r.listWidth,ge=r.variableWidth,ue=r.slideHeight,Le=r.fade,ce=r.vertical,V=0,q,ie,X=0;if(Le||r.slideCount===1)return 0;var pe=0;if(x?(pe=-g(r),M%U!==0&&a+U>M&&(pe=-(a>M?I-(a-M):M%U)),z&&(pe+=parseInt(I/2))):(M%U!==0&&a+U>M&&(pe=I-M%U),z&&(pe=parseInt(I/2))),V=pe*Ce,X=pe*ue,ce?q=a*ue*-1+X:q=a*Ce*-1+V,ge===!0){var ye,ve=w&&w.node;if(ye=a+g(r),ie=ve&&ve.childNodes[ye],q=ie?ie.offsetLeft*-1:0,z===!0){ye=x?a+g(r):a,ie=ve&&ve.children[ye],q=0;for(var Pe=0;Per.currentSlide?r.targetSlide>r.currentSlide+Z(r)?"left":"right":r.targetSlide0&&(M+=1),x&&a%2===0&&(M+=1),M}return x?0:a-1},F=f.slidesOnLeft=function(r){var a=r.slidesToShow,w=r.centerMode,x=r.rtl,z=r.centerPadding;if(w){var M=(a-1)/2+1;return parseInt(z)>0&&(M+=1),!x&&a%2===0&&(M+=1),M}return x?a-1:0},ne=f.canUseDOM=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},G=f.validSettings=Object.keys(H.default);function Q(b){return G.reduce(function(r,a){return b.hasOwnProperty(a)&&(r[a]=b[a]),r},{})}},71169:function(ae){var f=function(O){return O.replace(/[A-Z]/g,function(R){return"-"+R.toLowerCase()}).toLowerCase()};ae.exports=f}}]); diff --git a/426.135e62d0.async.js b/426.135e62d0.async.js deleted file mode 100644 index 0a8245573..000000000 --- a/426.135e62d0.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[426],{96159:function(x,E,o){var p;o.d(E,{M2:function(){return d},Tm:function(){return f},l$:function(){return l}});var v=o(62435);const{isValidElement:l}=p||(p=o.t(v,2));function d(a){return a&&l(a)&&a.type===v.Fragment}function m(a,M,A){return l(a)?v.cloneElement(a,typeof A=="function"?A(a.props||{}):A):M}function f(a,M){return m(a,a,M)}},4173:function(x,E,o){o.d(E,{BR:function(){return M},ri:function(){return a}});var p=o(94184),v=o.n(p),l=o(50344),d=o(62435),m=function(s,_){var c={};for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&_.indexOf(u)<0&&(c[u]=s[u]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,u=Object.getOwnPropertySymbols(s);b{const c=d.useContext(f),u=d.useMemo(()=>{if(!c)return"";const{compactDirection:b,isFirstItem:T,isLastItem:I}=c,O=b==="vertical"?"-vertical-":"-";return v()(`${s}-compact${O}item`,{[`${s}-compact${O}first-item`]:T,[`${s}-compact${O}last-item`]:I,[`${s}-compact${O}item-rtl`]:_==="rtl"})},[s,_,c]);return{compactSize:c==null?void 0:c.compactSize,compactDirection:c==null?void 0:c.compactDirection,compactItemClassnames:u}},M=s=>{let{children:_}=s;return d.createElement(f.Provider,{value:null},_)},A=s=>{var{children:_}=s,c=m(s,["children"]);return React.createElement(f.Provider,{value:c},_)},j=s=>{const{getPrefixCls:_,direction:c}=React.useContext(ConfigContext),{size:u,direction:b,block:T,prefixCls:I,className:O,rootClassName:L,children:B}=s,W=m(s,["size","direction","block","prefixCls","className","rootClassName","children"]),P=useSize(t=>u!=null?u:t),w=_("space-compact",I),[$,F]=useStyle(w),z=classNames(w,F,{[`${w}-rtl`]:c==="rtl",[`${w}-block`]:T,[`${w}-vertical`]:b==="vertical"},O,L),g=React.useContext(f),D=toArray(B),e=React.useMemo(()=>D.map((t,n)=>{const r=t&&t.key||`${w}-item-${n}`;return React.createElement(A,{key:r,compactSize:P,compactDirection:b,isFirstItem:n===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:n===D.length-1&&(!g||(g==null?void 0:g.isLastItem))},t)}),[u,D,g]);return D.length===0?null:$(React.createElement("div",Object.assign({className:z},W),e))};var S=null},50344:function(x,E,o){o.d(E,{Z:function(){return l}});var p=o(62435),v=o(59864);function l(d){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[];return p.Children.forEach(d,function(a){a==null&&!m.keepEmpty||(Array.isArray(a)?f=f.concat(l(a)):(0,v.isFragment)(a)&&a.props?f=f.concat(l(a.props.children,m)):f.push(a))}),f}},5110:function(x,E){E.Z=function(o){if(!o)return!1;if(o instanceof Element){if(o.offsetParent)return!0;if(o.getBBox){var p=o.getBBox(),v=p.width,l=p.height;if(v||l)return!0}if(o.getBoundingClientRect){var d=o.getBoundingClientRect(),m=d.width,f=d.height;if(m||f)return!0}}return!1}},98423:function(x,E,o){o.d(E,{Z:function(){return v}});var p=o(1413);function v(l,d){var m=(0,p.Z)({},l);return Array.isArray(d)&&d.forEach(function(f){delete m[f]}),m}},91033:function(x,E,o){o.r(E);var p=function(){if(typeof Map!="undefined")return Map;function e(t,n){var r=-1;return t.some(function(i,h){return i[0]===n?(r=h,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,h=this.__entries__;i0},e.prototype.connect_=function(){!v||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),A?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!v||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=M.some(function(h){return!!~r.indexOf(h)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),S=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),z=typeof WeakMap!="undefined"?new WeakMap:new p,g=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=j.getInstance(),r=new F(t,n,this);z.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){g.prototype[e]=function(){var t;return(t=z.get(this))[e].apply(t,arguments)}});var D=function(){return typeof l.ResizeObserver!="undefined"?l.ResizeObserver:g}();E.default=D}}]); diff --git a/434.394acf76.chunk.css b/434.394acf76.chunk.css deleted file mode 100644 index 555b217c2..000000000 --- a/434.394acf76.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(./static/KaTeX_AMS-Regular.a79f1c31.woff2) format("woff2"),url(./static/KaTeX_AMS-Regular.1608a09b.woff) format("woff"),url(./static/KaTeX_AMS-Regular.4aafdb68.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(./static/KaTeX_Caligraphic-Bold.ec17d132.woff2) format("woff2"),url(./static/KaTeX_Caligraphic-Bold.b6770918.woff) format("woff"),url(./static/KaTeX_Caligraphic-Bold.cce5b8ec.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(./static/KaTeX_Caligraphic-Regular.55fac258.woff2) format("woff2"),url(./static/KaTeX_Caligraphic-Regular.dad44a7f.woff) format("woff"),url(./static/KaTeX_Caligraphic-Regular.07ef19e7.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(./static/KaTeX_Fraktur-Bold.d42a5579.woff2) format("woff2"),url(./static/KaTeX_Fraktur-Bold.9f256b85.woff) format("woff"),url(./static/KaTeX_Fraktur-Bold.b18f59e1.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(./static/KaTeX_Fraktur-Regular.d3c882a6.woff2) format("woff2"),url(./static/KaTeX_Fraktur-Regular.7c187121.woff) format("woff"),url(./static/KaTeX_Fraktur-Regular.ed38e79f.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(./static/KaTeX_Main-Bold.c3fb5ac2.woff2) format("woff2"),url(./static/KaTeX_Main-Bold.d181c465.woff) format("woff"),url(./static/KaTeX_Main-Bold.b74a1a8b.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(./static/KaTeX_Main-BoldItalic.6f2bb1df.woff2) format("woff2"),url(./static/KaTeX_Main-BoldItalic.e3f82f9d.woff) format("woff"),url(./static/KaTeX_Main-BoldItalic.70d8b0a5.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(./static/KaTeX_Main-Italic.8916142b.woff2) format("woff2"),url(./static/KaTeX_Main-Italic.9024d815.woff) format("woff"),url(./static/KaTeX_Main-Italic.47373d1e.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(./static/KaTeX_Main-Regular.0462f03b.woff2) format("woff2"),url(./static/KaTeX_Main-Regular.7f51fe03.woff) format("woff"),url(./static/KaTeX_Main-Regular.b7f8fe9b.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(./static/KaTeX_Math-BoldItalic.572d331f.woff2) format("woff2"),url(./static/KaTeX_Math-BoldItalic.f1035d8d.woff) format("woff"),url(./static/KaTeX_Math-BoldItalic.a879cf83.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(./static/KaTeX_Math-Italic.f28c23ac.woff2) format("woff2"),url(./static/KaTeX_Math-Italic.5295ba48.woff) format("woff"),url(./static/KaTeX_Math-Italic.939bc644.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(./static/KaTeX_SansSerif-Bold.8c5b5494.woff2) format("woff2"),url(./static/KaTeX_SansSerif-Bold.bf59d231.woff) format("woff"),url(./static/KaTeX_SansSerif-Bold.94e1e8dc.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(./static/KaTeX_SansSerif-Italic.3b1e59b3.woff2) format("woff2"),url(./static/KaTeX_SansSerif-Italic.7c9bc82b.woff) format("woff"),url(./static/KaTeX_SansSerif-Italic.b4c20c84.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(./static/KaTeX_SansSerif-Regular.ba21ed5f.woff2) format("woff2"),url(./static/KaTeX_SansSerif-Regular.74048478.woff) format("woff"),url(./static/KaTeX_SansSerif-Regular.d4d7ba48.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(./static/KaTeX_Script-Regular.03e9641d.woff2) format("woff2"),url(./static/KaTeX_Script-Regular.07505710.woff) format("woff"),url(./static/KaTeX_Script-Regular.fe9cbbe1.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(./static/KaTeX_Size1-Regular.eae34984.woff2) format("woff2"),url(./static/KaTeX_Size1-Regular.e1e279cb.woff) format("woff"),url(./static/KaTeX_Size1-Regular.fabc004a.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(./static/KaTeX_Size2-Regular.5916a24f.woff2) format("woff2"),url(./static/KaTeX_Size2-Regular.57727022.woff) format("woff"),url(./static/KaTeX_Size2-Regular.d6b476ec.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(./static/KaTeX_Size3-Regular.b4230e7e.woff2) format("woff2"),url(./static/KaTeX_Size3-Regular.9acaf01c.woff) format("woff"),url(./static/KaTeX_Size3-Regular.a144ef58.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(./static/KaTeX_Size4-Regular.10d95fd3.woff2) format("woff2"),url(./static/KaTeX_Size4-Regular.7a996c9d.woff) format("woff"),url(./static/KaTeX_Size4-Regular.fbccdabe.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(./static/KaTeX_Typewriter-Regular.a8709e36.woff2) format("woff2"),url(./static/KaTeX_Typewriter-Regular.6258592b.woff) format("woff"),url(./static/KaTeX_Typewriter-Regular.d97aaf4a.ttf) format("truetype")}.katex{text-rendering:auto;font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.8"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo} diff --git a/434.508852cb.async.js b/434.508852cb.async.js deleted file mode 100644 index b7fbcb45f..000000000 --- a/434.508852cb.async.js +++ /dev/null @@ -1,695 +0,0 @@ -var Uat=Object.defineProperty,Vat=Object.defineProperties;var Wat=Object.getOwnPropertyDescriptors;var uq=Object.getOwnPropertySymbols;var XCe=Object.prototype.hasOwnProperty,ZCe=Object.prototype.propertyIsEnumerable;var Tce=Math.pow,GCe=(Nf,D_,Ta)=>D_ in Nf?Uat(Nf,D_,{enumerable:!0,configurable:!0,writable:!0,value:Ta}):Nf[D_]=Ta,fa=(Nf,D_)=>{for(var Ta in D_||(D_={}))XCe.call(D_,Ta)&&GCe(Nf,Ta,D_[Ta]);if(uq)for(var Ta of uq(D_))ZCe.call(D_,Ta)&&GCe(Nf,Ta,D_[Ta]);return Nf},Xs=(Nf,D_)=>Vat(Nf,Wat(D_));var _q=(Nf,D_)=>{var Ta={};for(var bl in Nf)XCe.call(Nf,bl)&&D_.indexOf(bl)<0&&(Ta[bl]=Nf[bl]);if(Nf!=null&&uq)for(var bl of uq(Nf))D_.indexOf(bl)<0&&ZCe.call(Nf,bl)&&(Ta[bl]=Nf[bl]);return Ta};(self.webpackChunk=self.webpackChunk||[]).push([[434],{81897:function(){"use strict"},79692:function(Nf,D_,Ta){"use strict";Ta.d(D_,{Z:function(){return Gx}});var bl=Ta(94184),Yc=Ta.n(bl),ci=Ta(50344),Bc=Ta(1413),U_=`accept acceptCharset accessKey action allowFullScreen allowTransparency - alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge - charSet checked classID className colSpan cols content contentEditable contextMenu - controls coords crossOrigin data dateTime default defer dir disabled download draggable - encType form formAction formEncType formMethod formNoValidate formTarget frameBorder - headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity - is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media - mediaGroup method min minLength multiple muted name noValidate nonce open - optimum pattern placeholder poster preload radioGroup readOnly rel required - reversed role rowSpan rows sandbox scope scoped scrolling seamless selected - shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,Bf=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown - onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick - onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown - onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel - onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough - onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,or="".concat(U_," ").concat(Bf).split(/[\s\n]+/),S0="aria-",Dl="data-";function kp(Oe,lt){return Oe.indexOf(lt)===0}function Zu(Oe){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mt;lt===!1?mt={aria:!0,data:!0,attr:!0}:lt===!0?mt={aria:!0}:mt=(0,Bc.Z)({},lt);var It={};return Object.keys(Oe).forEach(function(Bt){(mt.aria&&(Bt==="role"||kp(Bt,S0))||mt.data&&kp(Bt,Dl)||mt.attr&&or.includes(Bt))&&(It[Bt]=Oe[Bt])}),It}var rr=Ta(62435),Co=Ta(96159),Nr=Ta(53124),Vt=Ta(87462),Gl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},bo=Gl,Lu=Ta(42135),V_=function(lt,mt){return rr.createElement(Lu.Z,(0,Vt.Z)({},lt,{ref:mt,icon:bo}))},Bl=rr.forwardRef(V_),np=Ta(18073),yn=Ta(4942),on=Ta(97685),rl=Ta(91),zi=Ta(89185),xo=Ta(42550),hs=Ta(15105),Zn=Ta(75164),cl=hs.Z.ESC,Lm=hs.Z.TAB;function ef(Oe){var lt=Oe.visible,mt=Oe.triggerRef,It=Oe.onVisibleChange,Bt=Oe.autoFocus,Ur=Oe.overlayRef,Er=rr.useRef(!1),ui=function(){if(lt){var cs,Is;(cs=mt.current)===null||cs===void 0||(Is=cs.focus)===null||Is===void 0||Is.call(cs),It==null||It(!1)}},na=function(){var cs;return(cs=Ur.current)!==null&&cs!==void 0&&cs.focus?(Ur.current.focus(),Er.current=!0,!0):!1},wa=function(cs){switch(cs.keyCode){case cl:ui();break;case Lm:{var Is=!1;Er.current||(Is=na()),Is?cs.preventDefault():ui();break}}};rr.useEffect(function(){return lt?(window.addEventListener("keydown",wa),Bt&&(0,Zn.Z)(na,3),function(){window.removeEventListener("keydown",wa),Er.current=!1}):function(){Er.current=!1}},[lt])}var Mn=(0,rr.forwardRef)(function(Oe,lt){var mt=Oe.overlay,It=Oe.arrow,Bt=Oe.prefixCls,Ur=(0,rr.useMemo)(function(){var ui;return typeof mt=="function"?ui=mt():ui=mt,ui},[mt]),Er=(0,xo.sQ)(lt,Ur==null?void 0:Ur.ref);return rr.createElement(rr.Fragment,null,It&&rr.createElement("div",{className:"".concat(Bt,"-arrow")}),rr.cloneElement(Ur,{ref:(0,xo.Yr)(Ur)?Er:void 0}))}),kd=Mn,vu={adjustX:1,adjustY:1},er=[0,0],tf={topLeft:{points:["bl","tl"],overflow:vu,offset:[0,-4],targetOffset:er},top:{points:["bc","tc"],overflow:vu,offset:[0,-4],targetOffset:er},topRight:{points:["br","tr"],overflow:vu,offset:[0,-4],targetOffset:er},bottomLeft:{points:["tl","bl"],overflow:vu,offset:[0,4],targetOffset:er},bottom:{points:["tc","bc"],overflow:vu,offset:[0,4],targetOffset:er},bottomRight:{points:["tr","br"],overflow:vu,offset:[0,4],targetOffset:er}},ll=tf,x_=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function lo(Oe,lt){var mt,It=Oe.arrow,Bt=It===void 0?!1:It,Ur=Oe.prefixCls,Er=Ur===void 0?"rc-dropdown":Ur,ui=Oe.transitionName,na=Oe.animation,wa=Oe.align,is=Oe.placement,cs=is===void 0?"bottomLeft":is,Is=Oe.placements,ao=Is===void 0?ll:Is,ls=Oe.getPopupContainer,ks=Oe.showAction,wo=Oe.hideAction,Eo=Oe.overlayClassName,Ys=Oe.overlayStyle,Ao=Oe.visible,uo=Oe.trigger,lc=uo===void 0?["hover"]:uo,to=Oe.autoFocus,Ko=Oe.overlay,Tc=Oe.children,Sc=Oe.onVisibleChange,ql=(0,rl.Z)(Oe,x_),d_=rr.useState(),Tu=(0,on.Z)(d_,2),Qu=Tu[0],T_=Tu[1],Ku="visible"in Oe?Ao:Qu,Ru=rr.useRef(null),m_=rr.useRef(null),P_=rr.useRef(null);rr.useImperativeHandle(lt,function(){return Ru.current});var cd=function(ip){T_(ip),Sc==null||Sc(ip)};ef({visible:Ku,triggerRef:P_,onVisibleChange:cd,autoFocus:to,overlayRef:m_});var Jp=function(ip){var zm=Oe.onOverlayClick;T_(!1),zm&&zm(ip)},wp=function(){return rr.createElement(kd,{ref:m_,overlay:Ko,prefixCls:Er,arrow:Bt})},Up=function(){return typeof Ko=="function"?wp:wp()},Vf=function(){var ip=Oe.minOverlayWidthMatchTrigger,zm=Oe.alignPoint;return"minOverlayWidthMatchTrigger"in Oe?ip:!zm},a_=function(){var ip=Oe.openClassName;return ip!==void 0?ip:"".concat(Er,"-open")},lu=rr.cloneElement(Tc,{className:Yc()((mt=Tc.props)===null||mt===void 0?void 0:mt.className,Ku&&a_()),ref:(0,xo.Yr)(Tc)?(0,xo.sQ)(P_,Tc.ref):void 0}),Ep=wo;return!Ep&&lc.indexOf("contextMenu")!==-1&&(Ep=["click"]),rr.createElement(zi.Z,(0,Vt.Z)({builtinPlacements:ao},ql,{prefixCls:Er,ref:Ru,popupClassName:Yc()(Eo,(0,yn.Z)({},"".concat(Er,"-show-arrow"),Bt)),popupStyle:Ys,action:lc,showAction:ks,hideAction:Ep,popupPlacement:cs,popupAlign:wa,popupTransitionName:ui,popupAnimation:na,popupVisible:Ku,stretch:Vf()?"minWidth":"",popup:Up(),onPopupVisibleChange:cd,onPopupClick:Jp,getPopupContainer:ls}),lu)}var jf=rr.forwardRef(lo),zf=jf,pl=Ta(66680),Ii=Ta(21770),Mr=Ta(98423),Ki=Ta(56321);function Fu(Oe,lt,mt,It){return function(Ur){const{prefixCls:Er,style:ui}=Ur,na=rr.useRef(null),[wa,is]=rr.useState(0),[cs,Is]=rr.useState(0),[ao,ls]=(0,Ii.Z)(!1,{value:Ur.open}),{getPrefixCls:ks}=rr.useContext(Nr.E_),wo=ks(lt||"select",Er);rr.useEffect(()=>{if(ls(!0),typeof ResizeObserver!="undefined"){const Ys=new ResizeObserver(uo=>{const lc=uo[0].target;is(lc.offsetHeight+8),Is(lc.offsetWidth)}),Ao=setInterval(()=>{var uo;const lc=mt?`.${mt(wo)}`:`.${wo}-dropdown`,to=(uo=na.current)===null||uo===void 0?void 0:uo.querySelector(lc);to&&(clearInterval(Ao),Ys.observe(to))},10);return()=>{clearInterval(Ao),Ys.disconnect()}}},[]);let Eo=Object.assign(Object.assign({},Ur),{style:Object.assign(Object.assign({},ui),{margin:0}),open:ao,visible:ao,getPopupContainer:()=>na.current});return It&&(Eo=It(Eo)),rr.createElement(Ki.ZP,{theme:{token:{motion:!1}}},rr.createElement("div",{ref:na,style:{paddingBottom:wa,position:"relative",minWidth:cs}},rr.createElement(Oe,Object.assign({},Eo))))}}var $d=Ta(80636),bu=Ta(74902),Km=Ta(48555),xl=Ta(8410),xc=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],bt=void 0;function ua(Oe,lt){var mt=Oe.prefixCls,It=Oe.invalidate,Bt=Oe.item,Ur=Oe.renderItem,Er=Oe.responsive,ui=Oe.responsiveDisabled,na=Oe.registerSize,wa=Oe.itemKey,is=Oe.className,cs=Oe.style,Is=Oe.children,ao=Oe.display,ls=Oe.order,ks=Oe.component,wo=ks===void 0?"div":ks,Eo=(0,rl.Z)(Oe,xc),Ys=Er&&!ao;function Ao(Tc){na(wa,Tc)}rr.useEffect(function(){return function(){Ao(null)}},[]);var uo=Ur&&Bt!==bt?Ur(Bt):Is,lc;It||(lc={opacity:Ys?0:1,height:Ys?0:bt,overflowY:Ys?"hidden":bt,order:Er?ls:bt,pointerEvents:Ys?"none":bt,position:Ys?"absolute":bt});var to={};Ys&&(to["aria-hidden"]=!0);var Ko=rr.createElement(wo,(0,Vt.Z)({className:Yc()(!It&&mt,is),style:(0,Bc.Z)((0,Bc.Z)({},lc),cs)},to,Eo,{ref:lt}),uo);return Er&&(Ko=rr.createElement(Km.Z,{onResize:function(Sc){var ql=Sc.offsetWidth;Ao(ql)},disabled:ui},Ko)),Ko}var Nn=rr.forwardRef(ua);Nn.displayName="Item";var Jo=Nn,rc=Ta(61254);function nl(Oe){if(typeof MessageChannel=="undefined")(0,Zn.Z)(Oe);else{var lt=new MessageChannel;lt.port1.onmessage=function(){return Oe()},lt.port2.postMessage(void 0)}}function wc(){var Oe=rr.useRef(null),lt=function(It){Oe.current||(Oe.current=[],nl(function(){(0,rc.unstable_batchedUpdates)(function(){Oe.current.forEach(function(Bt){Bt()}),Oe.current=null})})),Oe.current.push(It)};return lt}function No(Oe,lt){var mt=rr.useState(lt),It=(0,on.Z)(mt,2),Bt=It[0],Ur=It[1],Er=(0,pl.Z)(function(ui){Oe(function(){Ur(ui)})});return[Bt,Er]}var Yu=rr.createContext(null),dl=["component"],qo=["className"],$o=["className"],xu=function(lt,mt){var It=rr.useContext(Yu);if(!It){var Bt=lt.component,Ur=Bt===void 0?"div":Bt,Er=(0,rl.Z)(lt,dl);return rr.createElement(Ur,(0,Vt.Z)({},Er,{ref:mt}))}var ui=It.className,na=(0,rl.Z)(It,qo),wa=lt.className,is=(0,rl.Z)(lt,$o);return rr.createElement(Yu.Provider,{value:null},rr.createElement(Jo,(0,Vt.Z)({ref:mt,className:Yc()(ui,wa)},na,is)))},jl=rr.forwardRef(xu);jl.displayName="RawItem";var Lo=jl,Ma=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ai="responsive",Ht="invalidate";function Ss(Oe){return"+ ".concat(Oe.length," ...")}function Ir(Oe,lt){var mt=Oe.prefixCls,It=mt===void 0?"rc-overflow":mt,Bt=Oe.data,Ur=Bt===void 0?[]:Bt,Er=Oe.renderItem,ui=Oe.renderRawItem,na=Oe.itemKey,wa=Oe.itemWidth,is=wa===void 0?10:wa,cs=Oe.ssr,Is=Oe.style,ao=Oe.className,ls=Oe.maxCount,ks=Oe.renderRest,wo=Oe.renderRawRest,Eo=Oe.suffix,Ys=Oe.component,Ao=Ys===void 0?"div":Ys,uo=Oe.itemComponent,lc=Oe.onVisibleChange,to=(0,rl.Z)(Oe,Ma),Ko=cs==="full",Tc=wc(),Sc=No(Tc,null),ql=(0,on.Z)(Sc,2),d_=ql[0],Tu=ql[1],Qu=d_||0,T_=No(Tc,new Map),Ku=(0,on.Z)(T_,2),Ru=Ku[0],m_=Ku[1],P_=No(Tc,0),cd=(0,on.Z)(P_,2),Jp=cd[0],wp=cd[1],Up=No(Tc,0),Vf=(0,on.Z)(Up,2),a_=Vf[0],lu=Vf[1],Ep=No(Tc,0),Xd=(0,on.Z)(Ep,2),ip=Xd[0],zm=Xd[1],A0=(0,rr.useState)(null),ld=(0,on.Z)(A0,2),Ad=ld[0],zv=ld[1],Y2=(0,rr.useState)(null),h1=(0,on.Z)(Y2,2),Ig=h1[0],x4=h1[1],K1=rr.useMemo(function(){return Ig===null&&Ko?Number.MAX_SAFE_INTEGER:Ig||0},[Ig,d_]),j=(0,rr.useState)(!1),C=(0,on.Z)(j,2),I=C[0],W=C[1],oe="".concat(It,"-item"),xe=Math.max(Jp,a_),et=ls===Ai,vt=Ur.length&&et,At=ls===Ht,Dr=vt||typeof ls=="number"&&Ur.length>ls,Zr=(0,rr.useMemo)(function(){var uc=Ur;return vt?d_===null&&Ko?uc=Ur:uc=Ur.slice(0,Math.min(Ur.length,Qu/is)):typeof ls=="number"&&(uc=Ur.slice(0,ls)),uc},[Ur,is,d_,ls,vt]),gn=(0,rr.useMemo)(function(){return vt?Ur.slice(K1+1):Ur.slice(Zr.length)},[Ur,Zr,vt,K1]),hi=(0,rr.useCallback)(function(uc,Pl){var o_;return typeof na=="function"?na(uc):(o_=na&&(uc==null?void 0:uc[na]))!==null&&o_!==void 0?o_:Pl},[na]),_i=(0,rr.useCallback)(Er||function(uc){return uc},[Er]);function Da(uc,Pl,o_){Ig===uc&&(Pl===void 0||Pl===Ad)||(x4(uc),o_||(W(ucQu){Da(Vp-1,uc-D0-ip+a_);break}}Eo&&ul(0)+ip>Qu&&zv(null)}},[Qu,Ru,a_,ip,hi,Zr]);var s_=I&&!!gn.length,zl={};Ad!==null&&vt&&(zl={position:"absolute",left:Ad,top:0});var Su={prefixCls:oe,responsive:vt,component:uo,invalidate:At},e_=ui?function(uc,Pl){var o_=hi(uc,Pl);return rr.createElement(Yu.Provider,{key:o_,value:(0,Bc.Z)((0,Bc.Z)({},Su),{},{order:Pl,item:uc,itemKey:o_,registerSize:Ts,display:Pl<=K1})},ui(uc,Pl))}:function(uc,Pl){var o_=hi(uc,Pl);return rr.createElement(Jo,(0,Vt.Z)({},Su,{order:Pl,key:o_,item:uc,renderItem:_i,itemKey:o_,registerSize:Ts,display:Pl<=K1}))},O_,ku={order:s_?K1:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:Ls,display:s_};if(wo)wo&&(O_=rr.createElement(Yu.Provider,{value:(0,Bc.Z)((0,Bc.Z)({},Su),ku)},wo(gn)));else{var Y0=ks||Ss;O_=rr.createElement(Jo,(0,Vt.Z)({},Su,ku),typeof Y0=="function"?Y0(gn):Y0)}var mm=rr.createElement(Ao,(0,Vt.Z)({className:Yc()(!At&&It,ao),style:Is,ref:lt},to),Zr.map(e_),Dr?O_:null,Eo&&rr.createElement(Jo,(0,Vt.Z)({},Su,{responsive:et,responsiveDisabled:!vt,order:K1,className:"".concat(oe,"-suffix"),registerSize:Vc,display:!0,style:zl}),Eo));return et&&(mm=rr.createElement(Km.Z,{onResize:Xa,disabled:!vt},mm)),mm}var Et=rr.forwardRef(Ir);Et.displayName="Overflow",Et.Item=Lo,Et.RESPONSIVE=Ai,Et.INVALIDATE=Ht;var kr=Et,ct=kr,Ot=Ta(80334),qt=Ta(91881),ur=rr.createContext(null);function mr(Oe,lt){return Oe===void 0?null:"".concat(Oe,"-").concat(lt)}function Sa(Oe){var lt=rr.useContext(ur);return mr(lt,Oe)}var Ji=Ta(56982),nc=["children","locked"],Fi=rr.createContext(null);function Nl(Oe,lt){var mt=(0,Bc.Z)({},Oe);return Object.keys(lt).forEach(function(It){var Bt=lt[It];Bt!==void 0&&(mt[It]=Bt)}),mt}function io(Oe){var lt=Oe.children,mt=Oe.locked,It=(0,rl.Z)(Oe,nc),Bt=rr.useContext(Fi),Ur=(0,Ji.Z)(function(){return Nl(Bt,It)},[Bt,It],function(Er,ui){return!mt&&(Er[0]!==ui[0]||!(0,qt.Z)(Er[1],ui[1],!0))});return rr.createElement(Fi.Provider,{value:Ur},lt)}var fi=[],de=rr.createContext(null);function Se(){return rr.useContext(de)}var Ci=rr.createContext(fi);function We(Oe){var lt=rr.useContext(Ci);return rr.useMemo(function(){return Oe!==void 0?[].concat((0,bu.Z)(lt),[Oe]):lt},[lt,Oe])}var tr=rr.createContext(null),Io=rr.createContext({}),la=Io,Hs=Ta(5110);function Hd(Oe){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Hs.Z)(Oe)){var mt=Oe.nodeName.toLowerCase(),It=["input","select","textarea","button"].includes(mt)||Oe.isContentEditable||mt==="a"&&!!Oe.getAttribute("href"),Bt=Oe.getAttribute("tabindex"),Ur=Number(Bt),Er=null;return Bt&&!Number.isNaN(Ur)?Er=Ur:It&&Er===null&&(Er=0),It&&Oe.disabled&&(Er=null),Er!==null&&(Er>=0||lt&&Er<0)}return!1}function eo(Oe){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mt=(0,bu.Z)(Oe.querySelectorAll("*")).filter(function(It){return Hd(It,lt)});return Hd(Oe,lt)&&mt.unshift(Oe),mt}var __=null;function If(){__=document.activeElement}function H2(){__=null}function zt(){if(__)try{__.focus()}catch(Oe){}}function _m(Oe,lt){if(lt.keyCode===9){var mt=eo(Oe),It=mt[lt.shiftKey?0:mt.length-1],Bt=It===document.activeElement||Oe===document.activeElement;if(Bt){var Ur=mt[lt.shiftKey?mt.length-1:0];Ur.focus(),lt.preventDefault()}}}var jr=hs.Z.LEFT,Fm=hs.Z.RIGHT,G2=hs.Z.UP,_1=hs.Z.DOWN,V1=hs.Z.ENTER,X2=hs.Z.ESC,G0=hs.Z.HOME,k0=hs.Z.END,Ag=[G2,_1,jr,Fm];function Zs(Oe,lt,mt,It){var Bt,Ur,Er,ui,na="prev",wa="next",is="children",cs="parent";if(Oe==="inline"&&It===V1)return{inlineTrigger:!0};var Is=(Bt={},(0,yn.Z)(Bt,G2,na),(0,yn.Z)(Bt,_1,wa),Bt),ao=(Ur={},(0,yn.Z)(Ur,jr,mt?wa:na),(0,yn.Z)(Ur,Fm,mt?na:wa),(0,yn.Z)(Ur,_1,is),(0,yn.Z)(Ur,V1,is),Ur),ls=(Er={},(0,yn.Z)(Er,G2,na),(0,yn.Z)(Er,_1,wa),(0,yn.Z)(Er,V1,is),(0,yn.Z)(Er,X2,cs),(0,yn.Z)(Er,jr,mt?is:cs),(0,yn.Z)(Er,Fm,mt?cs:is),Er),ks={inline:Is,horizontal:ao,vertical:ls,inlineSub:Is,horizontalSub:ls,verticalSub:ls},wo=(ui=ks["".concat(Oe).concat(lt?"":"Sub")])===null||ui===void 0?void 0:ui[It];switch(wo){case na:return{offset:-1,sibling:!0};case wa:return{offset:1,sibling:!0};case cs:return{offset:-1,sibling:!1};case is:return{offset:1,sibling:!1};default:return null}}function Pf(Oe){for(var lt=Oe;lt;){if(lt.getAttribute("data-menu-list"))return lt;lt=lt.parentElement}return null}function Qc(Oe,lt){for(var mt=Oe||document.activeElement;mt;){if(lt.has(mt))return mt;mt=mt.parentElement}return null}function fm(Oe,lt){var mt=eo(Oe,!0);return mt.filter(function(It){return lt.has(It)})}function Jf(Oe,lt,mt){var It=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Oe)return null;var Bt=fm(Oe,lt),Ur=Bt.length,Er=Bt.findIndex(function(ui){return mt===ui});return It<0?Er===-1?Er=Ur-1:Er-=1:It>0&&(Er+=1),Er=(Er+Ur)%Ur,Bt[Er]}function W1(Oe,lt,mt,It,Bt,Ur,Er,ui,na,wa){var is=rr.useRef(),cs=rr.useRef();cs.current=lt;var Is=function(){Zn.Z.cancel(is.current)};return rr.useEffect(function(){return function(){Is()}},[]),function(ao){var ls=ao.which;if([].concat(Ag,[V1,X2,G0,k0]).includes(ls)){var ks,wo,Eo,Ys=function(){ks=new Set,wo=new Map,Eo=new Map;var Ku=Ur();return Ku.forEach(function(Ru){var m_=document.querySelector("[data-menu-id='".concat(mr(It,Ru),"']"));m_&&(ks.add(m_),Eo.set(m_,Ru),wo.set(Ru,m_))}),ks};Ys();var Ao=wo.get(lt),uo=Qc(Ao,ks),lc=Eo.get(uo),to=Zs(Oe,Er(lc,!0).length===1,mt,ls);if(!to&&ls!==G0&&ls!==k0)return;(Ag.includes(ls)||[G0,k0].includes(ls))&&ao.preventDefault();var Ko=function(Ku){if(Ku){var Ru=Ku,m_=Ku.querySelector("a");m_!=null&&m_.getAttribute("href")&&(Ru=m_);var P_=Eo.get(Ku);ui(P_),Is(),is.current=(0,Zn.Z)(function(){cs.current===P_&&Ru.focus()})}};if([G0,k0].includes(ls)||to.sibling||!uo){var Tc;!uo||Oe==="inline"?Tc=Bt.current:Tc=Pf(uo);var Sc,ql=fm(Tc,ks);ls===G0?Sc=ql[0]:ls===k0?Sc=ql[ql.length-1]:Sc=Jf(Tc,ks,uo,to.offset),Ko(Sc)}else if(to.inlineTrigger)na(lc);else if(to.offset>0)na(lc,!0),Is(),is.current=(0,Zn.Z)(function(){Ys();var T_=uo.getAttribute("aria-controls"),Ku=document.getElementById(T_),Ru=Jf(Ku,ks);Ko(Ru)},5);else if(to.offset<0){var d_=Er(lc,!0),Tu=d_[d_.length-2],Qu=wo.get(Tu);na(Tu,!1),Ko(Qu)}}wa==null||wa(ao)}}function ns(Oe){Promise.resolve().then(Oe)}var pm="__RC_UTIL_PATH_SPLIT__",bs=function(lt){return lt.join(pm)},Gd=function(lt){return lt.split(pm)},di="rc-menu-more";function Ws(){var Oe=rr.useState({}),lt=(0,on.Z)(Oe,2),mt=lt[1],It=(0,rr.useRef)(new Map),Bt=(0,rr.useRef)(new Map),Ur=rr.useState([]),Er=(0,on.Z)(Ur,2),ui=Er[0],na=Er[1],wa=(0,rr.useRef)(0),is=(0,rr.useRef)(!1),cs=function(){is.current||mt({})},Is=(0,rr.useCallback)(function(Ao,uo){var lc=bs(uo);Bt.current.set(lc,Ao),It.current.set(Ao,lc),wa.current+=1;var to=wa.current;ns(function(){to===wa.current&&cs()})},[]),ao=(0,rr.useCallback)(function(Ao,uo){var lc=bs(uo);Bt.current.delete(lc),It.current.delete(Ao)},[]),ls=(0,rr.useCallback)(function(Ao){na(Ao)},[]),ks=(0,rr.useCallback)(function(Ao,uo){var lc=It.current.get(Ao)||"",to=Gd(lc);return uo&&ui.includes(to[0])&&to.unshift(di),to},[ui]),wo=(0,rr.useCallback)(function(Ao,uo){return Ao.some(function(lc){var to=ks(lc,!0);return to.includes(uo)})},[ks]),Eo=function(){var uo=(0,bu.Z)(It.current.keys());return ui.length&&uo.push(di),uo},Ys=(0,rr.useCallback)(function(Ao){var uo="".concat(It.current.get(Ao)).concat(pm),lc=new Set;return(0,bu.Z)(Bt.current.keys()).forEach(function(to){to.startsWith(uo)&&lc.add(Bt.current.get(to))}),lc},[]);return rr.useEffect(function(){return function(){is.current=!0}},[]),{registerPath:Is,unregisterPath:ao,refreshOverflowKeys:ls,isSubPathKey:wo,getKeyPath:ks,getKeys:Eo,getSubPathKeys:Ys}}function Ho(Oe){var lt=rr.useRef(Oe);lt.current=Oe;var mt=rr.useCallback(function(){for(var It,Bt=arguments.length,Ur=new Array(Bt),Er=0;Er1&&(Ys.motionAppear=!1);var Ao=Ys.onVisibleChanged;return Ys.onVisibleChanged=function(uo){return!Is.current&&!uo&&wo(!0),Ao==null?void 0:Ao(uo)},ks?null:rr.createElement(io,{mode:Ur,locked:!Is.current},rr.createElement(Uf.ZP,(0,Vt.Z)({visible:Eo},Ys,{forceRender:na,removeOnLeave:!1,leavedClassName:"".concat(ui,"-hidden")}),function(uo){var lc=uo.className,to=uo.style;return rr.createElement($_,{id:lt,className:lc,style:to},Bt)}))}var Qo=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ng=["active"],m4=function(lt){var mt,It=lt.style,Bt=lt.className,Ur=lt.title,Er=lt.eventKey,ui=lt.warnKey,na=lt.disabled,wa=lt.internalPopupClose,is=lt.children,cs=lt.itemIcon,Is=lt.expandIcon,ao=lt.popupClassName,ls=lt.popupOffset,ks=lt.onClick,wo=lt.onMouseEnter,Eo=lt.onMouseLeave,Ys=lt.onTitleClick,Ao=lt.onTitleMouseEnter,uo=lt.onTitleMouseLeave,lc=(0,rl.Z)(lt,Qo),to=Sa(Er),Ko=rr.useContext(Fi),Tc=Ko.prefixCls,Sc=Ko.mode,ql=Ko.openKeys,d_=Ko.disabled,Tu=Ko.overflowDisabled,Qu=Ko.activeKey,T_=Ko.selectedKeys,Ku=Ko.itemIcon,Ru=Ko.expandIcon,m_=Ko.onItemClick,P_=Ko.onOpenChange,cd=Ko.onActive,Jp=rr.useContext(la),wp=Jp._internalRenderSubMenuItem,Up=rr.useContext(tr),Vf=Up.isSubPathKey,a_=We(),lu="".concat(Tc,"-submenu"),Ep=d_||na,Xd=rr.useRef(),ip=rr.useRef(),zm=cs||Ku,A0=Is||Ru,ld=ql.includes(Er),Ad=!Tu&&ld,zv=Vf(T_,Er),Y2=q_(Er,Ep,Ao,uo),h1=Y2.active,Ig=(0,rl.Z)(Y2,Ng),x4=rr.useState(!1),K1=(0,on.Z)(x4,2),j=K1[0],C=K1[1],I=function(Ls){Ep||C(Ls)},W=function(Ls){I(!0),wo==null||wo({key:Er,domEvent:Ls})},oe=function(Ls){I(!1),Eo==null||Eo({key:Er,domEvent:Ls})},xe=rr.useMemo(function(){return h1||(Sc!=="inline"?j||Vf([Qu],Er):!1)},[Sc,h1,Qu,j,Er,Vf]),et=f_(a_.length),vt=function(Ls){Ep||(Ys==null||Ys({key:Er,domEvent:Ls}),Sc==="inline"&&P_(Er,!ld))},At=Ho(function(Ts){ks==null||ks(Z2(Ts)),m_(Ts)}),Dr=function(Ls){Sc!=="inline"&&P_(Er,Ls)},Zr=function(){cd(Er)},gn=to&&"".concat(to,"-popup"),hi=rr.createElement("div",(0,Vt.Z)({role:"menuitem",style:et,className:"".concat(lu,"-title"),tabIndex:Ep?null:-1,ref:Xd,title:typeof Ur=="string"?Ur:null,"data-menu-id":Tu&&to?null:to,"aria-expanded":Ad,"aria-haspopup":!0,"aria-controls":gn,"aria-disabled":Ep,onClick:vt,onFocus:Zr},Ig),Ur,rr.createElement(Dx,{icon:Sc!=="horizontal"?A0:null,props:(0,Bc.Z)((0,Bc.Z)({},lt),{},{isOpen:Ad,isSubMenu:!0})},rr.createElement("i",{className:"".concat(lu,"-arrow")}))),_i=rr.useRef(Sc);if(Sc!=="inline"&&a_.length>1?_i.current="vertical":_i.current=Sc,!Tu){var Da=_i.current;hi=rr.createElement(gi,{mode:Da,prefixCls:lu,visible:!wa&&Ad&&Sc!=="inline",popupClassName:ao,popupOffset:ls,popup:rr.createElement(io,{mode:Da==="horizontal"?"vertical":Da},rr.createElement($_,{id:gn,ref:ip},is)),disabled:Ep,onVisibleChange:Dr},hi)}var Xa=rr.createElement(ct.Item,(0,Vt.Z)({role:"none"},lc,{component:"li",style:It,className:Yc()(lu,"".concat(lu,"-").concat(Sc),Bt,(mt={},(0,yn.Z)(mt,"".concat(lu,"-open"),Ad),(0,yn.Z)(mt,"".concat(lu,"-active"),xe),(0,yn.Z)(mt,"".concat(lu,"-selected"),zv),(0,yn.Z)(mt,"".concat(lu,"-disabled"),Ep),mt)),onMouseEnter:W,onMouseLeave:oe}),hi,!Tu&&rr.createElement(rf,{id:gn,open:Ad,keyPath:a_},is));return wp&&(Xa=wp(Xa,lt,{selected:zv,active:xe,open:Ad,disabled:Ep})),rr.createElement(io,{onItemClick:At,mode:Sc==="horizontal"?"vertical":Sc,itemIcon:zm,expandIcon:A0},Xa)};function Z0(Oe){var lt=Oe.eventKey,mt=Oe.children,It=We(lt),Bt=f1(mt,It),Ur=Se();rr.useEffect(function(){if(Ur)return Ur.registerPath(lt,It),function(){Ur.unregisterPath(lt,It)}},[It]);var Er;return Ur?Er=Bt:Er=rr.createElement(m4,Oe,Bt),rr.createElement(Ci.Provider,{value:It},Er)}var t5=Ta(71002),Px=["className","title","eventKey","children"],dm=["children"],N_=function(lt){var mt=lt.className,It=lt.title,Bt=lt.eventKey,Ur=lt.children,Er=(0,rl.Z)(lt,Px),ui=rr.useContext(Fi),na=ui.prefixCls,wa="".concat(na,"-item-group");return rr.createElement("li",(0,Vt.Z)({role:"presentation"},Er,{onClick:function(cs){return cs.stopPropagation()},className:Yc()(wa,mt)}),rr.createElement("div",{role:"presentation",className:"".concat(wa,"-title"),title:typeof It=="string"?It:void 0},It),rr.createElement("ul",{role:"group",className:"".concat(wa,"-list")},Ur))};function j6(Oe){var lt=Oe.children,mt=(0,rl.Z)(Oe,dm),It=We(mt.eventKey),Bt=f1(lt,It),Ur=Se();return Ur?Bt:rr.createElement(N_,(0,Mr.Z)(mt,["warnKey"]),Bt)}function zT(Oe){var lt=Oe.className,mt=Oe.style,It=rr.useContext(Fi),Bt=It.prefixCls,Ur=Se();return Ur?null:rr.createElement("li",{className:Yc()("".concat(Bt,"-item-divider"),lt),style:mt})}var Ox=["label","children","key","type"];function Ga(Oe){return(Oe||[]).map(function(lt,mt){if(lt&&(0,t5.Z)(lt)==="object"){var It=lt,Bt=It.label,Ur=It.children,Er=It.key,ui=It.type,na=(0,rl.Z)(It,Ox),wa=Er!=null?Er:"tmp-".concat(mt);return Ur||ui==="group"?ui==="group"?rr.createElement(j6,(0,Vt.Z)({key:wa},na,{title:Bt}),Ga(Ur)):rr.createElement(Z0,(0,Vt.Z)({key:wa},na,{title:Bt}),Ga(Ur)):ui==="divider"?rr.createElement(zT,(0,Vt.Z)({key:wa},na)):rr.createElement($1,(0,Vt.Z)({key:wa},na),Bt)}return null}).filter(function(lt){return lt})}function cu(Oe,lt,mt){var It=Oe;return lt&&(It=Ga(lt)),f1(It,mt)}var z6=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Vh=[],Mx=rr.forwardRef(function(Oe,lt){var mt,It,Bt=Oe,Ur=Bt.prefixCls,Er=Ur===void 0?"rc-menu":Ur,ui=Bt.rootClassName,na=Bt.style,wa=Bt.className,is=Bt.tabIndex,cs=is===void 0?0:is,Is=Bt.items,ao=Bt.children,ls=Bt.direction,ks=Bt.id,wo=Bt.mode,Eo=wo===void 0?"vertical":wo,Ys=Bt.inlineCollapsed,Ao=Bt.disabled,uo=Bt.disabledOverflow,lc=Bt.subMenuOpenDelay,to=lc===void 0?.1:lc,Ko=Bt.subMenuCloseDelay,Tc=Ko===void 0?.1:Ko,Sc=Bt.forceSubMenuRender,ql=Bt.defaultOpenKeys,d_=Bt.openKeys,Tu=Bt.activeKey,Qu=Bt.defaultActiveFirst,T_=Bt.selectable,Ku=T_===void 0?!0:T_,Ru=Bt.multiple,m_=Ru===void 0?!1:Ru,P_=Bt.defaultSelectedKeys,cd=Bt.selectedKeys,Jp=Bt.onSelect,wp=Bt.onDeselect,Up=Bt.inlineIndent,Vf=Up===void 0?24:Up,a_=Bt.motion,lu=Bt.defaultMotions,Ep=Bt.triggerSubMenuAction,Xd=Ep===void 0?"hover":Ep,ip=Bt.builtinPlacements,zm=Bt.itemIcon,A0=Bt.expandIcon,ld=Bt.overflowedIndicator,Ad=ld===void 0?"...":ld,zv=Bt.overflowedIndicatorPopupClassName,Y2=Bt.getPopupContainer,h1=Bt.onClick,Ig=Bt.onOpenChange,x4=Bt.onKeyDown,K1=Bt.openAnimation,j=Bt.openTransitionName,C=Bt._internalRenderMenuItem,I=Bt._internalRenderSubMenuItem,W=(0,rl.Z)(Bt,z6),oe=rr.useMemo(function(){return cu(ao,Is,Vh)},[ao,Is]),xe=rr.useState(!1),et=(0,on.Z)(xe,2),vt=et[0],At=et[1],Dr=rr.useRef(),Zr=W_(ks),gn=ls==="rtl",hi=(0,Ii.Z)(ql,{value:d_,postState:function(kc){return kc||Vh}}),_i=(0,on.Z)(hi,2),Da=_i[0],Xa=_i[1],Ts=function(kc){var X_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ta(){Xa(kc),Ig==null||Ig(kc)}X_?(0,rc.flushSync)(ta):ta()},Ls=rr.useState(Da),Vc=(0,on.Z)(Ls,2),ul=Vc[0],s_=Vc[1],zl=rr.useRef(!1),Su=rr.useMemo(function(){return(Eo==="inline"||Eo==="vertical")&&Ys?["vertical",Ys]:[Eo,!1]},[Eo,Ys]),e_=(0,on.Z)(Su,2),O_=e_[0],ku=e_[1],Y0=O_==="inline",mm=rr.useState(O_),uc=(0,on.Z)(mm,2),Pl=uc[0],o_=uc[1],Vp=rr.useState(ku),D0=(0,on.Z)(Vp,2),T4=D0[0],q6=D0[1];rr.useEffect(function(){o_(O_),q6(ku),zl.current&&(Y0?Xa(ul):Ts(Vh))},[O_,ku]);var Xx=rr.useState(0),eh=(0,on.Z)(Xx,2),Ap=eh[0],N0=eh[1],$h=Ap>=oe.length-1||Pl!=="horizontal"||uo;rr.useEffect(function(){Y0&&s_(Da)},[Da]),rr.useEffect(function(){return zl.current=!0,function(){zl.current=!1}},[]);var y1=Ws(),Hh=y1.registerPath,Zx=y1.unregisterPath,Q2=y1.refreshOverflowKeys,Cu=y1.isSubPathKey,GT=y1.getKeyPath,$6=y1.getKeys,vw=y1.getSubPathKeys,t0=rr.useMemo(function(){return{registerPath:Hh,unregisterPath:Zx}},[Hh,Zx]),T5=rr.useMemo(function(){return{isSubPathKey:Cu}},[Cu]);rr.useEffect(function(){Q2($h?Vh:oe.slice(Ap+1).map(function(M_){return M_.key}))},[Ap,$h]);var K2=(0,Ii.Z)(Tu||Qu&&((mt=oe[0])===null||mt===void 0?void 0:mt.key),{value:Tu}),ap=(0,on.Z)(K2,2),eb=ap[0],Gh=ap[1],Xl=Ho(function(M_){Gh(M_)}),Zl=Ho(function(){Gh(void 0)});(0,rr.useImperativeHandle)(lt,function(){return{list:Dr.current,focus:function(kc){var X_,ta=eb!=null?eb:(X_=oe.find(function(ec){return!ec.props.disabled}))===null||X_===void 0?void 0:X_.key;if(ta){var ud,Jv,ms;(ud=Dr.current)===null||ud===void 0||(Jv=ud.querySelector("li[data-menu-id='".concat(mr(Zr,ta),"']")))===null||Jv===void 0||(ms=Jv.focus)===null||ms===void 0||ms.call(Jv,kc)}}}});var Xh=(0,Ii.Z)(P_||[],{value:cd,postState:function(kc){return Array.isArray(kc)?kc:kc==null?Vh:[kc]}}),_D=(0,on.Z)(Xh,2),bw=_D[0],S5=_D[1],Pg=function(kc){if(Ku){var X_=kc.key,ta=bw.includes(X_),ud;m_?ta?ud=bw.filter(function(ms){return ms!==X_}):ud=[].concat((0,bu.Z)(bw),[X_]):ud=[X_],S5(ud);var Jv=(0,Bc.Z)((0,Bc.Z)({},kc),{},{selectedKeys:ud});ta?wp==null||wp(Jv):Jp==null||Jp(Jv)}!m_&&Da.length&&Pl!=="inline"&&Ts(Vh)},ga=Ho(function(M_){h1==null||h1(Z2(M_)),Pg(M_)}),H_=Ho(function(M_,kc){var X_=Da.filter(function(ud){return ud!==M_});if(kc)X_.push(M_);else if(Pl!=="inline"){var ta=vw(M_);X_=X_.filter(function(ud){return!ta.has(ud)})}(0,qt.Z)(Da,X_,!0)||Ts(X_,!0)}),oL=function(kc,X_){var ta=X_!=null?X_:!Da.includes(kc);H_(kc,ta)},fq=W1(Pl,eb,gn,Zr,Dr,$6,GT,Gh,oL,x4);rr.useEffect(function(){At(!0)},[]);var xw=rr.useMemo(function(){return{_internalRenderMenuItem:C,_internalRenderSubMenuItem:I}},[C,I]),pq=Pl!=="horizontal"||uo?oe:oe.map(function(M_,kc){return rr.createElement(io,{key:M_.key,overflowDisabled:kc>Ap},M_)}),G_=rr.createElement(ct,(0,Vt.Z)({id:ks,ref:Dr,prefixCls:"".concat(Er,"-overflow"),component:"ul",itemComponent:$1,className:Yc()(Er,"".concat(Er,"-root"),"".concat(Er,"-").concat(Pl),wa,(It={},(0,yn.Z)(It,"".concat(Er,"-inline-collapsed"),T4),(0,yn.Z)(It,"".concat(Er,"-rtl"),gn),It),ui),dir:ls,style:na,role:"menu",tabIndex:cs,data:pq,renderRawItem:function(kc){return kc},renderRawRest:function(kc){var X_=kc.length,ta=X_?oe.slice(-X_):null;return rr.createElement(Z0,{eventKey:di,title:Ad,disabled:$h,internalPopupClose:X_===0,popupClassName:zv},ta)},maxCount:Pl!=="horizontal"||uo?ct.INVALIDATE:ct.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(kc){N0(kc)},onKeyDown:fq},W));return rr.createElement(la.Provider,{value:xw},rr.createElement(ur.Provider,{value:Zr},rr.createElement(io,{prefixCls:Er,rootClassName:ui,mode:Pl,openKeys:Da,rtl:gn,disabled:Ao,motion:vt?a_:null,defaultMotions:vt?lu:null,activeKey:eb,onActive:Xl,onInactive:Zl,selectedKeys:bw,inlineIndent:Vf,subMenuOpenDelay:to,subMenuCloseDelay:Tc,forceSubMenuRender:Sc,builtinPlacements:ip,triggerSubMenuAction:Xd,getPopupContainer:Y2,itemIcon:zm,expandIcon:A0,onItemClick:ga,onOpenChange:H_},rr.createElement(tr.Provider,{value:T5},G_),rr.createElement("div",{style:{display:"none"},"aria-hidden":!0},rr.createElement(de.Provider,{value:t0},oe)))))}),Mf=Mx,H1=Mf;H1.Item=$1,H1.SubMenu=Z0,H1.ItemGroup=j6,H1.Divider=zT;var sD=H1,pa=Ta(25908),p1=function(Oe,lt){var mt={};for(var It in Oe)Object.prototype.hasOwnProperty.call(Oe,It)&<.indexOf(It)<0&&(mt[It]=Oe[It]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,It=Object.getOwnPropertySymbols(Oe);Bt{const{prefixCls:lt,className:mt,dashed:It}=Oe,Bt=p1(Oe,["prefixCls","className","dashed"]),{getPrefixCls:Ur}=rr.useContext(Nr.E_),Er=Ur("menu",lt),ui=Yc()({[`${Er}-item-divider-dashed`]:!!It},mt);return rr.createElement(zT,Object.assign({className:ui},Bt))},od=Ta(5529),i_=(0,rr.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),n5=Oe=>{var lt;const{className:mt,children:It,icon:Bt,title:Ur,danger:Er}=Oe,{prefixCls:ui,firstLevel:na,direction:wa,disableMenuItemTitleTooltip:is,inlineCollapsed:cs}=rr.useContext(i_),Is=Ys=>{const Ao=rr.createElement("span",{className:`${ui}-title-content`},It);return(!Bt||(0,Co.l$)(It)&&It.type==="span")&&It&&Ys&&na&&typeof It=="string"?rr.createElement("div",{className:`${ui}-inline-collapsed-noicon`},It.charAt(0)):Ao},{siderCollapsed:ao}=rr.useContext(pa.D);let ls=Ur;typeof Ur=="undefined"?ls=na?It:"":Ur===!1&&(ls="");const ks={title:ls};!ao&&!cs&&(ks.title=null,ks.open=!1);const wo=(0,ci.Z)(It).length;let Eo=rr.createElement($1,Object.assign({},(0,Mr.Z)(Oe,["title","icon","danger"]),{className:Yc()({[`${ui}-item-danger`]:Er,[`${ui}-item-only-child`]:(Bt?wo+1:wo)===1},mt),title:typeof Ur=="string"?Ur:void 0}),(0,Co.Tm)(Bt,{className:Yc()((0,Co.l$)(Bt)?(lt=Bt.props)===null||lt===void 0?void 0:lt.className:"",`${ui}-item-icon`)}),Is(cs));return is||(Eo=rr.createElement(od.Z,Object.assign({},ks,{placement:wa==="rtl"?"left":"right",overlayClassName:`${ui}-inline-collapsed-tooltip`}),Eo)),Eo},tt=Oe=>{var lt;const{popupClassName:mt,icon:It,title:Bt,theme:Ur}=Oe,Er=rr.useContext(i_),{prefixCls:ui,inlineCollapsed:na,theme:wa}=Er,is=We();let cs;if(!It)cs=na&&!is.length&&Bt&&typeof Bt=="string"?rr.createElement("div",{className:`${ui}-inline-collapsed-noicon`},Bt.charAt(0)):rr.createElement("span",{className:`${ui}-title-content`},Bt);else{const ao=(0,Co.l$)(Bt)&&Bt.type==="span";cs=rr.createElement(rr.Fragment,null,(0,Co.Tm)(It,{className:Yc()((0,Co.l$)(It)?(lt=It.props)===null||lt===void 0?void 0:lt.className:"",`${ui}-item-icon`)}),ao?Bt:rr.createElement("span",{className:`${ui}-title-content`},Bt))}const Is=rr.useMemo(()=>Object.assign(Object.assign({},Er),{firstLevel:!1}),[Er]);return rr.createElement(i_.Provider,{value:Is},rr.createElement(Z0,Object.assign({},(0,Mr.Z)(Oe,["icon"]),{title:cs,popupClassName:Yc()(ui,mt,`${ui}-${Ur||wa}`)})))},JT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},sw=JT,a5=function(lt,mt){return rr.createElement(Lu.Z,(0,Vt.Z)({},lt,{ref:mt,icon:sw}))},d1=rr.forwardRef(a5),m1=Ta(33603),s5=Ta(4173),o5=function(Oe,lt){var mt={};for(var It in Oe)Object.prototype.hasOwnProperty.call(Oe,It)&<.indexOf(It)<0&&(mt[It]=Oe[It]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,It=Object.getOwnPropertySymbols(Oe);Bt{const{children:mt}=Oe,It=o5(Oe,["children"]),Bt=rr.useContext(G1),Ur=rr.useMemo(()=>Object.assign(Object.assign({},Bt),It),[Bt,It.prefixCls,It.mode,It.selectable]);return rr.createElement(G1.Provider,{value:Ur},rr.createElement(s5.BR,null,rr.cloneElement(mt,{ref:lt})))});var h4=G1,g1=function(Oe,lt){var mt={};for(var It in Oe)Object.prototype.hasOwnProperty.call(Oe,It)&<.indexOf(It)<0&&(mt[It]=Oe[It]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,It=Object.getOwnPropertySymbols(Oe);Bt{if(lt&&typeof lt=="object"){const It=lt,{label:Bt,children:Ur,key:Er,type:ui}=It,na=g1(It,["label","children","key","type"]),wa=Er!=null?Er:`tmp-${mt}`;return Ur||ui==="group"?ui==="group"?rr.createElement(j6,Object.assign({key:wa},na,{title:Bt}),X1(Ur)):rr.createElement(tt,Object.assign({key:wa},na,{title:Bt}),X1(Ur)):ui==="divider"?rr.createElement(Lx,Object.assign({key:wa},na)):rr.createElement(n5,Object.assign({key:wa},na),Bt)}return null}).filter(lt=>lt)}function y4(Oe){return rr.useMemo(()=>Oe&&X1(Oe),[Oe])}var ow=Ta(10274),w0=Ta(14747),cw=Oe=>({[Oe.componentCls]:{[`${Oe.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${Oe.motionDurationMid} ${Oe.motionEaseInOut}, - opacity ${Oe.motionDurationMid} ${Oe.motionEaseInOut} !important`}},[`${Oe.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${Oe.motionDurationMid} ${Oe.motionEaseInOut}, - opacity ${Oe.motionDurationMid} ${Oe.motionEaseInOut} !important`}}}),Bm=Ta(43579),Fx=Ta(93590);const c5=new Bm.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Rx=new Bm.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l5=new Bm.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),lw=new Bm.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),wd=new Bm.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),e0=new Bm.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),uw=new Bm.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),_w=new Bm.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),u5={"slide-up":{inKeyframes:c5,outKeyframes:Rx},"slide-down":{inKeyframes:l5,outKeyframes:lw},"slide-left":{inKeyframes:wd,outKeyframes:e0},"slide-right":{inKeyframes:uw,outKeyframes:_w}},Bx=(Oe,lt)=>{const{antCls:mt}=Oe,It=`${mt}-${lt}`,{inKeyframes:Bt,outKeyframes:Ur}=u5[lt];return[(0,Fx.R)(It,Bt,Ur,Oe.motionDurationMid),{[` - ${It}-enter, - ${It}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Oe.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${It}-leave`]:{animationTimingFunction:Oe.motionEaseInQuint}}]};var fw=Ta(50438),UT=Ta(67968),Fv=Ta(45503),f5=Oe=>{const{componentCls:lt,motionDurationSlow:mt,horizontalLineHeight:It,colorSplit:Bt,lineWidth:Ur,lineType:Er,itemPaddingInline:ui}=Oe;return{[`${lt}-horizontal`]:{lineHeight:It,border:0,borderBottom:`${Ur}px ${Er} ${Bt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${lt}-item, ${lt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ui},[`> ${lt}-item:hover, - > ${lt}-item-active, - > ${lt}-submenu ${lt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${lt}-item, ${lt}-submenu-title`]:{transition:[`border-color ${mt}`,`background ${mt}`].join(",")},[`${lt}-submenu-arrow`]:{display:"none"}}}},pw=Oe=>{let{componentCls:lt,menuArrowOffset:mt}=Oe;return{[`${lt}-rtl`]:{direction:"rtl"},[`${lt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${lt}-rtl${lt}-vertical, - ${lt}-submenu-rtl ${lt}-vertical`]:{[`${lt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${mt})`},"&::after":{transform:`rotate(45deg) translateY(${mt})`}}}}};const jx=Oe=>Object.assign({},(0,w0.oN)(Oe));var Ed=(Oe,lt)=>{const{componentCls:mt,itemColor:It,itemSelectedColor:Bt,groupTitleColor:Ur,itemBg:Er,subMenuItemBg:ui,itemSelectedBg:na,activeBarHeight:wa,activeBarWidth:is,activeBarBorderWidth:cs,motionDurationSlow:Is,motionEaseInOut:ao,motionEaseOut:ls,itemPaddingInline:ks,motionDurationMid:wo,itemHoverColor:Eo,lineType:Ys,colorSplit:Ao,itemDisabledColor:uo,dangerItemColor:lc,dangerItemHoverColor:to,dangerItemSelectedColor:Ko,dangerItemActiveBg:Tc,dangerItemSelectedBg:Sc,itemHoverBg:ql,itemActiveBg:d_,menuSubMenuBg:Tu,horizontalItemSelectedColor:Qu,horizontalItemSelectedBg:T_,horizontalItemBorderRadius:Ku,horizontalItemHoverBg:Ru,popupBg:m_}=Oe;return{[`${mt}-${lt}, ${mt}-${lt} > ${mt}`]:{color:It,background:Er,[`&${mt}-root:focus-visible`]:Object.assign({},jx(Oe)),[`${mt}-item-group-title`]:{color:Ur},[`${mt}-submenu-selected`]:{[`> ${mt}-submenu-title`]:{color:Bt}},[`${mt}-item-disabled, ${mt}-submenu-disabled`]:{color:`${uo} !important`},[`${mt}-item:not(${mt}-item-selected):not(${mt}-submenu-selected)`]:{[`&:hover, > ${mt}-submenu-title:hover`]:{color:Eo}},[`&:not(${mt}-horizontal)`]:{[`${mt}-item:not(${mt}-item-selected)`]:{"&:hover":{backgroundColor:ql},"&:active":{backgroundColor:d_}},[`${mt}-submenu-title`]:{"&:hover":{backgroundColor:ql},"&:active":{backgroundColor:d_}}},[`${mt}-item-danger`]:{color:lc,[`&${mt}-item:hover`]:{[`&:not(${mt}-item-selected):not(${mt}-submenu-selected)`]:{color:to}},[`&${mt}-item:active`]:{background:Tc}},[`${mt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${mt}-item-selected`]:{color:Bt,[`&${mt}-item-danger`]:{color:Ko},["a, a:hover"]:{color:"inherit"}},[`& ${mt}-item-selected`]:{backgroundColor:na,[`&${mt}-item-danger`]:{backgroundColor:Sc}},[`${mt}-item, ${mt}-submenu-title`]:{[`&:not(${mt}-item-disabled):focus-visible`]:Object.assign({},jx(Oe))},[`&${mt}-submenu > ${mt}`]:{backgroundColor:Tu},[`&${mt}-popup > ${mt}`]:{backgroundColor:m_},[`&${mt}-horizontal`]:Object.assign(Object.assign({},lt==="dark"?{borderBottom:0}:{}),{[`> ${mt}-item, > ${mt}-submenu`]:{top:cs,marginTop:-cs,marginBottom:0,borderRadius:Ku,"&::after":{position:"absolute",insetInline:ks,bottom:0,borderBottom:`${wa}px solid transparent`,transition:`border-color ${Is} ${ao}`,content:'""'},["&:hover, &-active, &-open"]:{background:Ru,"&::after":{borderBottomWidth:wa,borderBottomColor:Qu}},["&-selected"]:{color:Qu,backgroundColor:T_,"&:hover":{backgroundColor:T_},"&::after":{borderBottomWidth:wa,borderBottomColor:Qu}}}}),[`&${mt}-root`]:{[`&${mt}-inline, &${mt}-vertical`]:{borderInlineEnd:`${cs}px ${Ys} ${Ao}`}},[`&${mt}-inline`]:{[`${mt}-sub${mt}-inline`]:{background:ui},[`${mt}-item, ${mt}-submenu-title`]:cs&&is?{width:`calc(100% + ${cs}px)`}:{},[`${mt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${is}px solid ${Bt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${wo} ${ls}`,`opacity ${wo} ${ls}`].join(","),content:'""'},[`&${mt}-item-danger`]:{"&::after":{borderInlineEndColor:Ko}}},[`${mt}-selected, ${mt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${wo} ${ao}`,`opacity ${wo} ${ao}`].join(",")}}}}}};const Bv=Oe=>{const{componentCls:lt,itemHeight:mt,itemMarginInline:It,padding:Bt,menuArrowSize:Ur,marginXS:Er,itemMarginBlock:ui}=Oe,na=Bt+Ur+Er;return{[`${lt}-item`]:{position:"relative",overflow:"hidden"},[`${lt}-item, ${lt}-submenu-title`]:{height:mt,lineHeight:`${mt}px`,paddingInline:Bt,overflow:"hidden",textOverflow:"ellipsis",marginInline:It,marginBlock:ui,width:`calc(100% - ${It*2}px)`},[`> ${lt}-item, - > ${lt}-submenu > ${lt}-submenu-title`]:{height:mt,lineHeight:`${mt}px`},[`${lt}-item-group-list ${lt}-submenu-title, - ${lt}-submenu-title`]:{paddingInlineEnd:na}}};var dw=Oe=>{const{componentCls:lt,iconCls:mt,itemHeight:It,colorTextLightSolid:Bt,dropdownWidth:Ur,controlHeightLG:Er,motionDurationMid:ui,motionEaseOut:na,paddingXL:wa,itemMarginInline:is,fontSizeLG:cs,motionDurationSlow:Is,paddingXS:ao,boxShadowSecondary:ls,collapsedWidth:ks,collapsedIconSize:wo}=Oe,Eo={height:It,lineHeight:`${It}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[lt]:{["&-inline, &-vertical"]:Object.assign({[`&${lt}-root`]:{boxShadow:"none"}},Bv(Oe))},[`${lt}-submenu-popup`]:{[`${lt}-vertical`]:Object.assign(Object.assign({},Bv(Oe)),{boxShadow:ls})}},{[`${lt}-submenu-popup ${lt}-vertical${lt}-sub`]:{minWidth:Ur,maxHeight:`calc(100vh - ${Er*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${lt}-inline`]:{width:"100%",[`&${lt}-root`]:{[`${lt}-item, ${lt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Is}`,`background ${Is}`,`padding ${ui} ${na}`].join(","),[`> ${lt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${lt}-sub${lt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${lt}-submenu > ${lt}-submenu-title`]:Eo,[`& ${lt}-item-group-title`]:{paddingInlineStart:wa}},[`${lt}-item`]:Eo}},{[`${lt}-inline-collapsed`]:{width:ks,[`&${lt}-root`]:{[`${lt}-item, ${lt}-submenu ${lt}-submenu-title`]:{[`> ${lt}-inline-collapsed-noicon`]:{fontSize:cs,textAlign:"center"}}},[`> ${lt}-item, - > ${lt}-item-group > ${lt}-item-group-list > ${lt}-item, - > ${lt}-item-group > ${lt}-item-group-list > ${lt}-submenu > ${lt}-submenu-title, - > ${lt}-submenu > ${lt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${cs/2}px - ${is}px)`,textOverflow:"clip",[` - ${lt}-submenu-arrow, - ${lt}-submenu-expand-icon - `]:{opacity:0},[`${lt}-item-icon, ${mt}`]:{margin:0,fontSize:wo,lineHeight:`${It}px`,"+ span":{display:"inline-block",opacity:0}}},[`${lt}-item-icon, ${mt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${lt}-item-icon, ${mt}`]:{display:"none"},"a, a:hover":{color:Bt}},[`${lt}-item-group-title`]:Object.assign(Object.assign({},w0.vS),{paddingInline:ao})}}]};const p5=Oe=>{const{componentCls:lt,motionDurationSlow:mt,motionDurationMid:It,motionEaseInOut:Bt,motionEaseOut:Ur,iconCls:Er,iconSize:ui,iconMarginInlineEnd:na}=Oe;return{[`${lt}-item, ${lt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${mt}`,`background ${mt}`,`padding ${mt} ${Bt}`].join(","),[`${lt}-item-icon, ${Er}`]:{minWidth:ui,fontSize:ui,transition:[`font-size ${It} ${Ur}`,`margin ${mt} ${Bt}`,`color ${mt}`].join(","),"+ span":{marginInlineStart:na,opacity:1,transition:[`opacity ${mt} ${Bt}`,`margin ${mt}`,`color ${mt}`].join(",")}},[`${lt}-item-icon`]:Object.assign({},(0,w0.Ro)()),[`&${lt}-item-only-child`]:{[`> ${Er}, > ${lt}-item-icon`]:{marginInlineEnd:0}}},[`${lt}-item-disabled, ${lt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${lt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},WT=Oe=>{const{componentCls:lt,motionDurationSlow:mt,motionEaseInOut:It,borderRadius:Bt,menuArrowSize:Ur,menuArrowOffset:Er}=Oe;return{[`${lt}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:Oe.margin,width:Ur,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${mt} ${It}, opacity ${mt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ur*.6,height:Ur*.15,backgroundColor:"currentcolor",borderRadius:Bt,transition:[`background ${mt} ${It}`,`transform ${mt} ${It}`,`top ${mt} ${It}`,`color ${mt} ${It}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Er})`},"&::after":{transform:`rotate(-45deg) translateY(${Er})`}}}}},qT=Oe=>{const{antCls:lt,componentCls:mt,fontSize:It,motionDurationSlow:Bt,motionDurationMid:Ur,motionEaseInOut:Er,paddingXS:ui,padding:na,colorSplit:wa,lineWidth:is,zIndexPopup:cs,borderRadiusLG:Is,subMenuItemBorderRadius:ao,menuArrowSize:ls,menuArrowOffset:ks,lineType:wo,menuPanelMaskInset:Eo,groupTitleLineHeight:Ys,groupTitleFontSize:Ao}=Oe;return[{"":{[`${mt}`]:Object.assign(Object.assign({},(0,w0.dF)()),{["&-hidden"]:{display:"none"}})},[`${mt}-submenu-hidden`]:{display:"none"}},{[mt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,w0.Wf)(Oe)),(0,w0.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:It,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Bt} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${mt}-item`]:{flex:"none"}},[`${mt}-item, ${mt}-submenu, ${mt}-submenu-title`]:{borderRadius:Oe.itemBorderRadius},[`${mt}-item-group-title`]:{padding:`${ui}px ${na}px`,fontSize:Ao,lineHeight:Ys,transition:`all ${Bt}`},[`&-horizontal ${mt}-submenu`]:{transition:[`border-color ${Bt} ${Er}`,`background ${Bt} ${Er}`].join(",")},[`${mt}-submenu, ${mt}-submenu-inline`]:{transition:[`border-color ${Bt} ${Er}`,`background ${Bt} ${Er}`,`padding ${Ur} ${Er}`].join(",")},[`${mt}-submenu ${mt}-sub`]:{cursor:"initial",transition:[`background ${Bt} ${Er}`,`padding ${Bt} ${Er}`].join(",")},[`${mt}-title-content`]:{transition:`color ${Bt}`},[`${mt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${mt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:wa,borderStyle:wo,borderWidth:0,borderTopWidth:is,marginBlock:is,padding:0,"&-dashed":{borderStyle:"dashed"}}}),p5(Oe)),{[`${mt}-item-group`]:{[`${mt}-item-group-list`]:{margin:0,padding:0,[`${mt}-item, ${mt}-submenu-title`]:{paddingInline:`${It*2}px ${na}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:cs,borderRadius:Is,boxShadow:"none",transformOrigin:"0 0",[`&${mt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Eo}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Eo},[` - &-placement-leftTop, - &-placement-bottomRight, - `]:{transformOrigin:"100% 0"},[` - &-placement-leftBottom, - &-placement-topRight, - `]:{transformOrigin:"100% 100%"},[` - &-placement-rightBottom, - &-placement-topLeft, - `]:{transformOrigin:"0 100%"},[` - &-placement-bottomLeft, - &-placement-rightTop, - `]:{transformOrigin:"0 0"},[` - &-placement-leftTop, - &-placement-leftBottom - `]:{paddingInlineEnd:Oe.paddingXS},[` - &-placement-rightTop, - &-placement-rightBottom - `]:{paddingInlineStart:Oe.paddingXS},[` - &-placement-topRight, - &-placement-topLeft - `]:{paddingBottom:Oe.paddingXS},[` - &-placement-bottomRight, - &-placement-bottomLeft - `]:{paddingTop:Oe.paddingXS},[`> ${mt}`]:Object.assign(Object.assign(Object.assign({borderRadius:Is},p5(Oe)),WT(Oe)),{[`${mt}-item, ${mt}-submenu > ${mt}-submenu-title`]:{borderRadius:ao},[`${mt}-submenu-title::after`]:{transition:`transform ${Bt} ${Er}`}})}}),WT(Oe)),{[`&-inline-collapsed ${mt}-submenu-arrow, - &-inline ${mt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ks})`},"&::after":{transform:`rotate(45deg) translateX(-${ks})`}},[`${mt}-submenu-open${mt}-submenu-inline > ${mt}-submenu-title > ${mt}-submenu-arrow`]:{transform:`translateY(-${ls*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ks})`},"&::before":{transform:`rotate(45deg) translateX(${ks})`}}})},{[`${lt}-layout-header`]:{[mt]:{lineHeight:"inherit"}}}]};var d5=(Oe,lt)=>(0,UT.Z)("Menu",It=>{if(lt===!1)return[];const{colorBgElevated:Bt,colorPrimary:Ur,colorTextLightSolid:Er,controlHeightLG:ui,fontSize:na,darkItemColor:wa,darkDangerItemColor:is,darkItemBg:cs,darkSubMenuItemBg:Is,darkItemSelectedColor:ao,darkItemSelectedBg:ls,darkDangerItemSelectedBg:ks,darkItemHoverBg:wo,darkGroupTitleColor:Eo,darkItemHoverColor:Ys,darkItemDisabledColor:Ao,darkDangerItemHoverColor:uo,darkDangerItemSelectedColor:lc,darkDangerItemActiveBg:to}=It,Ko=na/7*5,Tc=(0,Fv.TS)(It,{menuArrowSize:Ko,menuHorizontalHeight:ui*1.15,menuArrowOffset:`${Ko*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Bt}),Sc=(0,Fv.TS)(Tc,{itemColor:wa,itemHoverColor:Ys,groupTitleColor:Eo,itemSelectedColor:ao,itemBg:cs,popupBg:cs,subMenuItemBg:Is,itemActiveBg:"transparent",itemSelectedBg:ls,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:wo,itemDisabledColor:Ao,dangerItemColor:is,dangerItemHoverColor:uo,dangerItemSelectedColor:lc,dangerItemActiveBg:to,dangerItemSelectedBg:ks,menuSubMenuBg:Is,horizontalItemSelectedColor:Er,horizontalItemSelectedBg:Ur});return[qT(Tc),f5(Tc),dw(Tc),Ed(Tc,"light"),Ed(Sc,"dark"),pw(Tc),cw(Tc),Bx(Tc,"slide-up"),Bx(Tc,"slide-down"),(0,fw._y)(Tc,"zoom-big")]},It=>{const{colorPrimary:Bt,colorError:Ur,colorTextDisabled:Er,colorErrorBg:ui,colorText:na,colorTextDescription:wa,colorBgContainer:is,colorFillAlter:cs,colorFillContent:Is,lineWidth:ao,lineWidthBold:ls,controlItemBgActive:ks,colorBgTextHover:wo,controlHeightLG:Eo,lineHeight:Ys,colorBgElevated:Ao,marginXXS:uo,padding:lc,fontSize:to,controlHeightSM:Ko,fontSizeLG:Tc,colorTextLightSolid:Sc,colorErrorHover:ql}=It,d_=new ow.C(Sc).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:It.zIndexPopupBase+50,radiusItem:It.borderRadiusLG,itemBorderRadius:It.borderRadiusLG,radiusSubMenuItem:It.borderRadiusSM,subMenuItemBorderRadius:It.borderRadiusSM,colorItemText:na,itemColor:na,colorItemTextHover:na,itemHoverColor:na,colorItemTextHoverHorizontal:Bt,horizontalItemHoverColor:Bt,colorGroupTitle:wa,groupTitleColor:wa,colorItemTextSelected:Bt,itemSelectedColor:Bt,colorItemTextSelectedHorizontal:Bt,horizontalItemSelectedColor:Bt,colorItemBg:is,itemBg:is,colorItemBgHover:wo,itemHoverBg:wo,colorItemBgActive:Is,itemActiveBg:ks,colorSubItemBg:cs,subMenuItemBg:cs,colorItemBgSelected:ks,itemSelectedBg:ks,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ls,activeBarHeight:ls,colorActiveBarBorderSize:ao,activeBarBorderWidth:ao,colorItemTextDisabled:Er,itemDisabledColor:Er,colorDangerItemText:Ur,dangerItemColor:Ur,colorDangerItemTextHover:Ur,dangerItemHoverColor:Ur,colorDangerItemTextSelected:Ur,dangerItemSelectedColor:Ur,colorDangerItemBgActive:ui,dangerItemActiveBg:ui,colorDangerItemBgSelected:ui,dangerItemSelectedBg:ui,itemMarginInline:It.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Eo,groupTitleLineHeight:Ys,collapsedWidth:Eo*2,popupBg:Ao,itemMarginBlock:uo,itemPaddingInline:lc,horizontalLineHeight:`${Eo*1.15}px`,iconSize:to,iconMarginInlineEnd:Ko-to,collapsedIconSize:Tc,groupTitleFontSize:to,darkItemDisabledColor:new ow.C(Sc).setAlpha(.25).toRgbString(),darkItemColor:d_,darkDangerItemColor:Ur,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Sc,darkItemSelectedBg:Bt,darkDangerItemSelectedBg:Ur,darkItemHoverBg:"transparent",darkGroupTitleColor:d_,darkItemHoverColor:Sc,darkDangerItemHoverColor:ql,darkDangerItemSelectedColor:Sc,darkDangerItemActiveBg:Ur}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Oe),$T=function(Oe,lt){var mt={};for(var It in Oe)Object.prototype.hasOwnProperty.call(Oe,It)&<.indexOf(It)<0&&(mt[It]=Oe[It]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,It=Object.getOwnPropertySymbols(Oe);Bt{var mt,It;const Bt=rr.useContext(h4),Ur=Bt||{},{getPrefixCls:Er,getPopupContainer:ui,direction:na,menu:wa}=rr.useContext(Nr.E_),is=Er(),{prefixCls:cs,className:Is,style:ao,theme:ls="light",expandIcon:ks,_internalDisableMenuItemTitleTooltip:wo,inlineCollapsed:Eo,siderCollapsed:Ys,items:Ao,children:uo,rootClassName:lc,mode:to,selectable:Ko,onClick:Tc,overflowedIndicatorPopupClassName:Sc}=Oe,ql=$T(Oe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),d_=(0,Mr.Z)(ql,["collapsedWidth"]),Tu=y4(Ao)||uo;(mt=Ur.validator)===null||mt===void 0||mt.call(Ur,{mode:to});const Qu=(0,pl.Z)(function(){var a_;Tc==null||Tc.apply(void 0,arguments),(a_=Ur.onClick)===null||a_===void 0||a_.call(Ur)}),T_=Ur.mode||to,Ku=Ko!=null?Ko:Ur.selectable,Ru=rr.useMemo(()=>Ys!==void 0?Ys:Eo,[Eo,Ys]),m_={horizontal:{motionName:`${is}-slide-up`},inline:(0,m1.ZP)(is),other:{motionName:`${is}-zoom-big`}},P_=Er("menu",cs||Ur.prefixCls),[cd,Jp]=d5(P_,!Bt),wp=Yc()(`${P_}-${ls}`,wa==null?void 0:wa.className,Is);let Up;if(typeof ks=="function")Up=ks;else{const a_=ks||Ur.expandIcon;Up=(0,Co.Tm)(a_,{className:Yc()(`${P_}-submenu-expand-icon`,(It=a_==null?void 0:a_.props)===null||It===void 0?void 0:It.className)})}const Vf=rr.useMemo(()=>({prefixCls:P_,inlineCollapsed:Ru||!1,direction:na,firstLevel:!0,theme:ls,mode:T_,disableMenuItemTitleTooltip:wo}),[P_,Ru,na,wo,ls]);return cd(rr.createElement(h4.Provider,{value:null},rr.createElement(i_.Provider,{value:Vf},rr.createElement(sD,Object.assign({getPopupContainer:ui,overflowedIndicator:rr.createElement(d1,null),overflowedIndicatorPopupClassName:Yc()(P_,`${P_}-${ls}`,Sc),mode:T_,selectable:Ku,onClick:Qu},d_,{inlineCollapsed:Ru,style:Object.assign(Object.assign({},wa==null?void 0:wa.style),ao),className:wp,prefixCls:P_,direction:na,defaultMotions:m_,expandIcon:Up,ref:lt,rootClassName:Yc()(lc,Jp)}),Tu))))});const J6=(0,rr.forwardRef)((Oe,lt)=>{const mt=(0,rr.useRef)(null),It=rr.useContext(pa.D);return(0,rr.useImperativeHandle)(lt,()=>({menu:mt.current,focus:Bt=>{var Ur;(Ur=mt.current)===null||Ur===void 0||Ur.focus(Bt)}})),rr.createElement(mw,Object.assign({ref:mt},Oe,It))});J6.Item=n5,J6.SubMenu=tt,J6.Divider=Lx,J6.ItemGroup=j6;var zx=J6,v4=Ta(9361);const Tl=new Bm.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cD=new Bm.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Jx=new Bm.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jm=new Bm.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),lD=new Bm.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m5=new Bm.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ux=new Bm.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Kc=new Bm.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),I_={"move-up":{inKeyframes:Ux,outKeyframes:Kc},"move-down":{inKeyframes:Tl,outKeyframes:cD},"move-left":{inKeyframes:Jx,outKeyframes:jm},"move-right":{inKeyframes:lD,outKeyframes:m5}},g5=(Oe,lt)=>{const{antCls:mt}=Oe,It=`${mt}-${lt}`,{inKeyframes:Bt,outKeyframes:Ur}=I_[lt];return[(0,Fx.R)(It,Bt,Ur,Oe.motionDurationMid),{[` - ${It}-enter, - ${It}-appear - `]:{opacity:0,animationTimingFunction:Oe.motionEaseOutCirc},[`${It}-leave`]:{animationTimingFunction:Oe.motionEaseInOutCirc}}]};var gw=Ta(77786),hw=Oe=>{const{componentCls:lt,menuCls:mt,colorError:It,colorTextLightSolid:Bt}=Oe,Ur=`${mt}-item`;return{[`${lt}, ${lt}-menu-submenu`]:{[`${mt} ${Ur}`]:{[`&${Ur}-danger:not(${Ur}-disabled)`]:{color:It,"&:hover":{color:Bt,backgroundColor:It}}}}}};const y5=Oe=>{const{componentCls:lt,menuCls:mt,zIndexPopup:It,dropdownArrowDistance:Bt,sizePopupArrow:Ur,antCls:Er,iconCls:ui,motionDurationMid:na,dropdownPaddingVertical:wa,fontSize:is,dropdownEdgeChildPadding:cs,colorTextDisabled:Is,fontSizeIcon:ao,controlPaddingHorizontal:ls,colorBgElevated:ks}=Oe;return[{[lt]:Object.assign(Object.assign({},(0,w0.Wf)(Oe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:It,display:"block","&::before":{position:"absolute",insetBlock:-Bt+Ur/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Er}-btn`]:{[`& > ${ui}-down, & > ${Er}-btn-icon > ${ui}-down`]:{fontSize:ao}},[`${lt}-wrap`]:{position:"relative",[`${Er}-btn > ${ui}-down`]:{fontSize:ao},[`${ui}-down::before`]:{transition:`transform ${na}`}},[`${lt}-wrap-open`]:{[`${ui}-down::before`]:{transform:"rotate(180deg)"}},[` - &-hidden, - &-menu-hidden, - &-menu-submenu-hidden - `]:{display:"none"},[`&${Er}-slide-down-enter${Er}-slide-down-enter-active${lt}-placement-bottomLeft, - &${Er}-slide-down-appear${Er}-slide-down-appear-active${lt}-placement-bottomLeft, - &${Er}-slide-down-enter${Er}-slide-down-enter-active${lt}-placement-bottom, - &${Er}-slide-down-appear${Er}-slide-down-appear-active${lt}-placement-bottom, - &${Er}-slide-down-enter${Er}-slide-down-enter-active${lt}-placement-bottomRight, - &${Er}-slide-down-appear${Er}-slide-down-appear-active${lt}-placement-bottomRight`]:{animationName:c5},[`&${Er}-slide-up-enter${Er}-slide-up-enter-active${lt}-placement-topLeft, - &${Er}-slide-up-appear${Er}-slide-up-appear-active${lt}-placement-topLeft, - &${Er}-slide-up-enter${Er}-slide-up-enter-active${lt}-placement-top, - &${Er}-slide-up-appear${Er}-slide-up-appear-active${lt}-placement-top, - &${Er}-slide-up-enter${Er}-slide-up-enter-active${lt}-placement-topRight, - &${Er}-slide-up-appear${Er}-slide-up-appear-active${lt}-placement-topRight`]:{animationName:l5},[`&${Er}-slide-down-leave${Er}-slide-down-leave-active${lt}-placement-bottomLeft, - &${Er}-slide-down-leave${Er}-slide-down-leave-active${lt}-placement-bottom, - &${Er}-slide-down-leave${Er}-slide-down-leave-active${lt}-placement-bottomRight`]:{animationName:Rx},[`&${Er}-slide-up-leave${Er}-slide-up-leave-active${lt}-placement-topLeft, - &${Er}-slide-up-leave${Er}-slide-up-leave-active${lt}-placement-top, - &${Er}-slide-up-leave${Er}-slide-up-leave-active${lt}-placement-topRight`]:{animationName:lw}})},(0,gw.ZP)(Oe,{colorBg:ks,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${lt} ${mt}`]:{position:"relative",margin:0},[`${mt}-submenu-popup`]:{position:"absolute",zIndex:It,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${lt}, ${lt}-menu-submenu`]:{[mt]:Object.assign(Object.assign({padding:cs,listStyleType:"none",backgroundColor:ks,backgroundClip:"padding-box",borderRadius:Oe.borderRadiusLG,outline:"none",boxShadow:Oe.boxShadowSecondary},(0,w0.Qy)(Oe)),{[`${mt}-item-group-title`]:{padding:`${wa}px ${ls}px`,color:Oe.colorTextDescription,transition:`all ${na}`},[`${mt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${mt}-item-icon`]:{minWidth:is,marginInlineEnd:Oe.marginXS,fontSize:Oe.fontSizeSM},[`${mt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${na}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${mt}-item, ${mt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${wa}px ${ls}px`,color:Oe.colorText,fontWeight:"normal",fontSize:is,lineHeight:Oe.lineHeight,cursor:"pointer",transition:`all ${na}`,borderRadius:Oe.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:Oe.controlItemBgHover}},(0,w0.Qy)(Oe)),{"&-selected":{color:Oe.colorPrimary,backgroundColor:Oe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Oe.controlItemBgActiveHover}},"&-disabled":{color:Is,cursor:"not-allowed","&:hover":{color:Is,backgroundColor:ks,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Oe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Oe.colorSplit},[`${lt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Oe.paddingXS,[`${lt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Oe.colorTextDescription,fontSize:ao,fontStyle:"normal"}}}),[`${mt}-item-group-list`]:{margin:`0 ${Oe.marginXS}px`,padding:0,listStyle:"none"},[`${mt}-submenu-title`]:{paddingInlineEnd:ls+Oe.fontSizeSM},[`${mt}-submenu-vertical`]:{position:"relative"},[`${mt}-submenu${mt}-submenu-disabled ${lt}-menu-submenu-title`]:{[`&, ${lt}-menu-submenu-arrow-icon`]:{color:Is,backgroundColor:ks,cursor:"not-allowed"}},[`${mt}-submenu-selected ${lt}-menu-submenu-title`]:{color:Oe.colorPrimary}})}},[Bx(Oe,"slide-up"),Bx(Oe,"slide-down"),g5(Oe,"move-up"),g5(Oe,"move-down"),(0,fw._y)(Oe,"zoom-big")]]};var v5=(0,UT.Z)("Dropdown",(Oe,lt)=>{let{rootPrefixCls:mt}=lt;const{marginXXS:It,sizePopupArrow:Bt,controlHeight:Ur,fontSize:Er,lineHeight:ui,paddingXXS:na,componentCls:wa,borderRadiusLG:is}=Oe,cs=(Ur-Er*ui)/2,{dropdownArrowOffset:Is}=(0,gw.fS)({contentRadius:is}),ao=(0,Fv.TS)(Oe,{menuCls:`${wa}-menu`,rootPrefixCls:mt,dropdownArrowDistance:Bt/2+It,dropdownArrowOffset:Is,dropdownPaddingVertical:cs,dropdownEdgeChildPadding:na});return[y5(ao),hw(ao)]},Oe=>({zIndexPopup:Oe.zIndexPopupBase+50}));const uD=null,Z1=Oe=>{const{menu:lt,arrow:mt,prefixCls:It,children:Bt,trigger:Ur,disabled:Er,dropdownRender:ui,getPopupContainer:na,overlayClassName:wa,rootClassName:is,open:cs,onOpenChange:Is,visible:ao,onVisibleChange:ls,mouseEnterDelay:ks=.15,mouseLeaveDelay:wo=.1,autoAdjustOverflow:Eo=!0,placement:Ys="",overlay:Ao,transitionName:uo}=Oe,{getPopupContainer:lc,getPrefixCls:to,direction:Ko}=rr.useContext(Nr.E_),Tc=rr.useMemo(()=>{const lu=to();return uo!==void 0?uo:Ys.includes("top")?`${lu}-slide-down`:`${lu}-slide-up`},[to,Ys,uo]),Sc=rr.useMemo(()=>Ys?Ys.includes("Center")?Ys.slice(0,Ys.indexOf("Center")):Ys:Ko==="rtl"?"bottomRight":"bottomLeft",[Ys,Ko]),ql=to("dropdown",It),[d_,Tu]=v5(ql),{token:Qu}=v4.Z.useToken(),T_=rr.Children.only(Bt),Ku=(0,Co.Tm)(T_,{className:Yc()(`${ql}-trigger`,{[`${ql}-rtl`]:Ko==="rtl"},T_.props.className),disabled:Er}),Ru=Er?[]:Ur;let m_;Ru&&Ru.includes("contextMenu")&&(m_=!0);const[P_,cd]=(0,Ii.Z)(!1,{value:cs!=null?cs:ao}),Jp=(0,pl.Z)(lu=>{Is==null||Is(lu),ls==null||ls(lu),cd(lu)}),wp=Yc()(wa,is,Tu,{[`${ql}-rtl`]:Ko==="rtl"}),Up=(0,$d.Z)({arrowPointAtCenter:typeof mt=="object"&&mt.pointAtCenter,autoAdjustOverflow:Eo,offset:Qu.marginXXS,arrowWidth:mt?Qu.sizePopupArrow:0,borderRadius:Qu.borderRadius}),Vf=rr.useCallback(()=>{cd(!1)},[]),a_=()=>{let lu;return lt!=null&<.items?lu=rr.createElement(zx,Object.assign({},lt)):typeof Ao=="function"?lu=Ao():lu=Ao,ui&&(lu=ui(lu)),lu=rr.Children.only(typeof lu=="string"?rr.createElement("span",null,lu):lu),rr.createElement(Il,{prefixCls:`${ql}-menu`,expandIcon:rr.createElement("span",{className:`${ql}-menu-submenu-arrow`},rr.createElement(np.Z,{className:`${ql}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Vf,validator:Ep=>{let{mode:Xd}=Ep}},lu)};return d_(rr.createElement(zf,Object.assign({alignPoint:m_},(0,Mr.Z)(Oe,["rootClassName"]),{mouseEnterDelay:ks,mouseLeaveDelay:wo,visible:P_,builtinPlacements:Up,arrow:!!mt,overlayClassName:wp,prefixCls:ql,getPopupContainer:na||lc,transitionName:Tc,trigger:Ru,overlay:a_,placement:Sc,onVisibleChange:Jp}),Ku))};function yw(Oe){return Object.assign(Object.assign({},Oe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const kt=Fu(Z1,"dropdown",Oe=>Oe,yw),Wh=Oe=>rr.createElement(kt,Object.assign({},Oe),rr.createElement("span",null));Z1._InternalPanelDoNotUseOrYouWillBeFired=Wh;var b4=Z1;const qh=Oe=>{let{children:lt}=Oe;const{getPrefixCls:mt}=rr.useContext(Nr.E_),It=mt("breadcrumb");return rr.createElement("li",{className:`${It}-separator`,"aria-hidden":"true"},lt===""?lt:lt||"/")};qh.__ANT_BREADCRUMB_SEPARATOR=!0;var Y1=qh,Ry=function(Oe,lt){var mt={};for(var It in Oe)Object.prototype.hasOwnProperty.call(Oe,It)&<.indexOf(It)<0&&(mt[It]=Oe[It]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,It=Object.getOwnPropertySymbols(Oe);Btlt[Bt]||It)}function jv(Oe,lt,mt,It){if(mt==null)return null;const{className:Bt,onClick:Ur}=lt,Er=Ry(lt,["className","onClick"]),ui=Object.assign(Object.assign({},Zu(Er,{data:!0,aria:!0})),{onClick:Ur});return It!==void 0?rr.createElement("a",Object.assign({},ui,{className:Yc()(`${Oe}-link`,Bt),href:It}),mt):rr.createElement("span",Object.assign({},ui,{className:Yc()(`${Oe}-link`,Bt)}),mt)}function By(Oe,lt){return(It,Bt,Ur,Er,ui)=>{if(lt)return lt(It,Bt,Ur,Er);const na=E0(It,Bt);return jv(Oe,It,na,ui)}}var Vx=function(Oe,lt){var mt={};for(var It in Oe)Object.prototype.hasOwnProperty.call(Oe,It)&<.indexOf(It)<0&&(mt[It]=Oe[It]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,It=Object.getOwnPropertySymbols(Oe);Bt{const{prefixCls:lt,separator:mt="/",children:It,menu:Bt,overlay:Ur,dropdownProps:Er,href:ui}=Oe,wa=(is=>{if(Bt||Ur){const cs=Object.assign({},Er);if(Bt){const Is=Bt||{},{items:ao}=Is,ls=Vx(Is,["items"]);cs.menu=Object.assign(Object.assign({},ls),{items:ao==null?void 0:ao.map((ks,wo)=>{var{key:Eo,title:Ys,label:Ao,path:uo}=ks,lc=Vx(ks,["key","title","label","path"]);let to=Ao!=null?Ao:Ys;return uo&&(to=rr.createElement("a",{href:`${ui}${uo}`},to)),Object.assign(Object.assign({},lc),{key:Eo!=null?Eo:wo,label:to})})})}else Ur&&(cs.overlay=Ur);return rr.createElement(b4,Object.assign({placement:"bottom"},cs),rr.createElement("span",{className:`${lt}-overlay-link`},is,rr.createElement(Bl,null)))}return is})(It);return wa!=null?rr.createElement(rr.Fragment,null,rr.createElement("li",null,wa),mt&&rr.createElement(Y1,null,mt)):null},Hi=Oe=>{const{prefixCls:lt,children:mt,href:It}=Oe,Bt=Vx(Oe,["prefixCls","children","href"]),{getPrefixCls:Ur}=rr.useContext(Nr.E_),Er=Ur("breadcrumb",lt);return rr.createElement(Q1,Object.assign({},Bt,{prefixCls:Er}),jv(Er,Bt,mt,It))};Hi.__ANT_BREADCRUMB_ITEM=!0;var U6=Hi;const b5=Oe=>{const{componentCls:lt,iconCls:mt}=Oe;return{[lt]:Object.assign(Object.assign({},(0,w0.Wf)(Oe)),{color:Oe.itemColor,fontSize:Oe.fontSize,[mt]:{fontSize:Oe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Oe.linkColor,transition:`color ${Oe.motionDurationMid}`,padding:`0 ${Oe.paddingXXS}px`,borderRadius:Oe.borderRadiusSM,height:Oe.lineHeight*Oe.fontSize,display:"inline-block",marginInline:-Oe.marginXXS,"&:hover":{color:Oe.linkHoverColor,backgroundColor:Oe.colorBgTextHover}},(0,w0.Qy)(Oe)),["li:last-child"]:{color:Oe.lastItemColor},[`${lt}-separator`]:{marginInline:Oe.separatorMargin,color:Oe.separatorColor},[`${lt}-link`]:{[` - > ${mt} + span, - > ${mt} + a - `]:{marginInlineStart:Oe.marginXXS}},[`${lt}-overlay-link`]:{borderRadius:Oe.borderRadiusSM,height:Oe.lineHeight*Oe.fontSize,display:"inline-block",padding:`0 ${Oe.paddingXXS}px`,marginInline:-Oe.marginXXS,[`> ${mt}`]:{marginInlineStart:Oe.marginXXS,fontSize:Oe.fontSizeIcon},"&:hover":{color:Oe.linkHoverColor,backgroundColor:Oe.colorBgTextHover,a:{color:Oe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Oe.componentCls}-rtl`]:{direction:"rtl"}})}};var x5=(0,UT.Z)("Breadcrumb",Oe=>{const lt=(0,Fv.TS)(Oe,{});return[b5(lt)]},Oe=>({itemColor:Oe.colorTextDescription,lastItemColor:Oe.colorText,iconFontSize:Oe.fontSize,linkColor:Oe.colorTextDescription,linkHoverColor:Oe.colorText,separatorColor:Oe.colorTextDescription,separatorMargin:Oe.marginXS})),HT=function(Oe,lt){var mt={};for(var It in Oe)Object.prototype.hasOwnProperty.call(Oe,It)&<.indexOf(It)<0&&(mt[It]=Oe[It]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,It=Object.getOwnPropertySymbols(Oe);Bt{var{breadcrumbName:Er}=Ur,ui=HT(Ur,["breadcrumbName"]);return Object.assign(Object.assign({},ui),{title:Er})})}),Bt}function Wx(Oe,lt){return(0,rr.useMemo)(()=>Oe||(lt?lt.map(V6):null),[Oe,lt])}var qx=function(Oe,lt){var mt={};for(var It in Oe)Object.prototype.hasOwnProperty.call(Oe,It)&<.indexOf(It)<0&&(mt[It]=Oe[It]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,It=Object.getOwnPropertySymbols(Oe);Bt{if(lt===void 0)return lt;let mt=(lt||"").replace(/^\//,"");return Object.keys(Oe).forEach(It=>{mt=mt.replace(`:${It}`,Oe[It])}),mt},Hx=Oe=>{const{prefixCls:lt,separator:mt="/",style:It,className:Bt,rootClassName:Ur,routes:Er,items:ui,children:na,itemRender:wa,params:is={}}=Oe,cs=qx(Oe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Is,direction:ao,breadcrumb:ls}=rr.useContext(Nr.E_);let ks;const wo=Is("breadcrumb",lt),[Eo,Ys]=x5(wo),Ao=Wx(ui,Er),uo=By(wo,wa);if(Ao&&Ao.length>0){const Ko=[],Tc=ui||Er;ks=Ao.map((Sc,ql)=>{const{path:d_,key:Tu,type:Qu,menu:T_,overlay:Ku,onClick:Ru,className:m_,separator:P_,dropdownProps:cd}=Sc,Jp=$x(is,d_);Jp!==void 0&&Ko.push(Jp);const wp=Tu!=null?Tu:ql;if(Qu==="separator")return rr.createElement(Y1,{key:wp},P_);const Up={},Vf=ql===Ao.length-1;T_?Up.menu=T_:Ku&&(Up.overlay=Ku);let{href:a_}=Sc;return Ko.length&&Jp!==void 0&&(a_=`#/${Ko.join("/")}`),rr.createElement(Q1,Object.assign({key:wp},Up,Zu(Sc,{data:!0,aria:!0}),{className:m_,dropdownProps:cd,href:a_,separator:Vf?"":mt,onClick:Ru,prefixCls:wo}),uo(Sc,is,Tc,Ko,a_))})}else if(na){const Ko=(0,ci.Z)(na).length;ks=(0,ci.Z)(na).map((Tc,Sc)=>{if(!Tc)return Tc;const ql=Sc===Ko-1;return(0,Co.Tm)(Tc,{separator:ql?"":mt,key:Sc})})}const lc=Yc()(wo,ls==null?void 0:ls.className,{[`${wo}-rtl`]:ao==="rtl"},Bt,Ur,Ys),to=Object.assign(Object.assign({},ls==null?void 0:ls.style),It);return Eo(rr.createElement("nav",Object.assign({className:lc,style:to},cs),rr.createElement("ol",null,ks)))};Hx.Item=U6,Hx.Separator=Y1;var W6=Hx,Gx=W6},96074:function(Nf,D_,Ta){"use strict";Ta.d(D_,{Z:function(){return rr}});var bl=Ta(94184),Yc=Ta.n(bl),ci=Ta(62435),Bc=Ta(53124),U_=Ta(14747),Bf=Ta(67968),or=Ta(45503);const S0=Co=>{const{componentCls:Nr,sizePaddingEdgeHorizontal:Vt,colorSplit:Gl,lineWidth:bo}=Co;return{[Nr]:Object.assign(Object.assign({},(0,U_.Wf)(Co)),{borderBlockStart:`${bo}px solid ${Gl}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${Co.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${bo}px solid ${Gl}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Co.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Nr}-with-text`]:{display:"flex",alignItems:"center",margin:`${Co.dividerHorizontalWithTextGutterMargin}px 0`,color:Co.colorTextHeading,fontWeight:500,fontSize:Co.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Gl}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${bo}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Nr}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${Nr}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${Nr}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:Gl,borderStyle:"dashed",borderWidth:`${bo}px 0 0`},[`&-horizontal${Nr}-with-text${Nr}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Nr}-dashed`]:{borderInlineStartWidth:bo,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Nr}-with-text`]:{color:Co.colorText,fontWeight:"normal",fontSize:Co.fontSize},[`&-horizontal${Nr}-with-text-left${Nr}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Nr}-inner-text`]:{paddingInlineStart:Vt}},[`&-horizontal${Nr}-with-text-right${Nr}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Nr}-inner-text`]:{paddingInlineEnd:Vt}}})}};var Dl=(0,Bf.Z)("Divider",Co=>{const Nr=(0,or.TS)(Co,{dividerVerticalGutterMargin:Co.marginXS,dividerHorizontalWithTextGutterMargin:Co.margin,dividerHorizontalGutterMargin:Co.marginLG});return[S0(Nr)]},{sizePaddingEdgeHorizontal:0}),kp=function(Co,Nr){var Vt={};for(var Gl in Co)Object.prototype.hasOwnProperty.call(Co,Gl)&&Nr.indexOf(Gl)<0&&(Vt[Gl]=Co[Gl]);if(Co!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bo=0,Gl=Object.getOwnPropertySymbols(Co);bo{const{getPrefixCls:Nr,direction:Vt,divider:Gl}=ci.useContext(Bc.E_),{prefixCls:bo,type:Lu="horizontal",orientation:V_="center",orientationMargin:Bl,className:np,rootClassName:yn,children:on,dashed:rl,plain:zi,style:xo}=Co,hs=kp(Co,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Zn=Nr("divider",bo),[cl,Lm]=Dl(Zn),ef=V_.length>0?`-${V_}`:V_,Mn=!!on,kd=V_==="left"&&Bl!=null,vu=V_==="right"&&Bl!=null,er=Yc()(Zn,Gl==null?void 0:Gl.className,Lm,`${Zn}-${Lu}`,{[`${Zn}-with-text`]:Mn,[`${Zn}-with-text${ef}`]:Mn,[`${Zn}-dashed`]:!!rl,[`${Zn}-plain`]:!!zi,[`${Zn}-rtl`]:Vt==="rtl",[`${Zn}-no-default-orientation-margin-left`]:kd,[`${Zn}-no-default-orientation-margin-right`]:vu},np,yn),tf=ci.useMemo(()=>typeof Bl=="number"?Bl:/^\d+$/.test(Bl)?Number(Bl):Bl,[Bl]),ll=Object.assign(Object.assign({},kd&&{marginLeft:tf}),vu&&{marginRight:tf});return cl(ci.createElement("div",Object.assign({className:er,style:Object.assign(Object.assign({},Gl==null?void 0:Gl.style),xo)},hs,{role:"separator"}),on&&Lu!=="vertical"&&ci.createElement("span",{className:`${Zn}-inner-text`,style:ll},on)))}},11771:function(){var Nf,D_,Ta,bl=!1,Yc,ci;window.PR_SHOULD_USE_CONTINUATION=!0;var Bc,U_;(function(){var Bf=window,or=["break,continue,do,else,for,if,return,while"],S0=[or,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],Dl=[S0,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],kp=[Dl,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],Zu=[Dl,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],rr=[Dl,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],Co="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",Nr=[Dl,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],Vt="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",Gl=[or,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],bo=[or,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],Lu=[or,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],V_=[kp,rr,Zu,Nr,Vt,Gl,bo,Lu],Bl=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,np="str",yn="kwd",on="com",rl="typ",zi="lit",xo="pun",hs="pln",Zn="tag",cl="dec",Lm="src",ef="atn",Mn="atv",kd="nocode",vu="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function er(ua){for(var Nn=0,Jo=!1,rc=!1,nl=0,wc=ua.length;nl122||(Ot<65||ct>90||Ai.push([Math.max(65,ct)|32,Math.min(Ot,90)|32]),Ot<97||ct>122||Ai.push([Math.max(97,ct)&-33,Math.min(Ot,122)&-33]))}}Ai.sort(function(Sa,Ji){return Sa[0]-Ji[0]||Ji[1]-Sa[1]});for(var qt=[],ur=[],Ir=0;Irmr[0]&&(mr[1]+1>mr[0]&&Ss.push("-"),Ss.push(qo(mr[1])))}return Ss.push("]"),Ss.join("")}function xu(Lo){for(var Ma=Lo.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Ai=Ma.length,Ht=[],Ss=0,Ir=0;Ss=2&&ct==="["?Ma[Ss]=$o(Et):ct!=="\\"&&(Ma[Ss]=Et.replace(/[a-zA-Z]/g,function(ur){var mr=ur.charCodeAt(0);return"["+String.fromCharCode(mr&-33,mr|32)+"]"}))}return Ma.join("")}for(var jl=[],nl=0,wc=ua.length;nl=0;)Jo[jl.charAt(Lo)]=xu;var Ma=xu[1],Ai=""+Ma;dl.hasOwnProperty(Ai)||(Yu.push(Ma),dl[Ai]=null)}Yu.push(/[\0-\uffff]/),rc=er(Yu)})();var nl=Nn.length,wc=function(No){for(var Yu=No.sourceCode,dl=No.basePos,qo=No.sourceNode,$o=[dl,hs],xu=0,jl=Yu.match(rc)||[],Lo={},Ma=0,Ai=jl.length;Ma=5&&Ss.substring(0,5)==="lang-",Et&&!(Ir&&typeof Ir[1]=="string")&&(Et=!1,Ss=Lm),Et||(Lo[Ht]=Ss)}var Ot=xu;if(xu+=Ht.length,!Et)$o.push(dl+Ot,Ss);else{var qt=Ir[1],ur=Ht.indexOf(qt),mr=ur+qt.length;Ir[2]&&(mr=Ht.length-Ir[2].length,ur=mr-qt.length);var Sa=Ss.substring(5);ll(qo,dl+Ot,Ht.substring(0,ur),wc,$o),ll(qo,dl+Ot+ur,qt,$d(Sa,qt),$o),ll(qo,dl+Ot+mr,Ht.substring(mr),wc,$o)}}No.decorations=$o};return wc}function zf(ua){var Nn=[],Jo=[];ua.tripleQuotedStrings?Nn.push([np,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ua.multiLineStrings?Nn.push([np,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Nn.push([np,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ua.verbatimStrings&&Jo.push([np,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var rc=ua.hashComments;rc&&(ua.cStyleComments?(rc>1?Nn.push([on,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Nn.push([on,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Jo.push([np,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Nn.push([on,/^#[^\r\n]*/,null,"#"])),ua.cStyleComments&&(Jo.push([on,/^\/\/[^\r\n]*/,null]),Jo.push([on,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var nl=ua.regexLiterals;if(nl){var wc=nl>1?"":` -\r`,No=wc?".":"[\\S\\s]",Yu="/(?=[^/*"+wc+"])(?:[^/\\x5B\\x5C"+wc+"]|\\x5C"+No+"|\\x5B(?:[^\\x5C\\x5D"+wc+"]|\\x5C"+No+")*(?:\\x5D|$))+/";Jo.push(["lang-regex",RegExp("^"+vu+"("+Yu+")")])}var dl=ua.types;dl&&Jo.push([rl,dl]);var qo=(""+ua.keywords).replace(/^ | $/g,"");qo.length&&Jo.push([yn,new RegExp("^(?:"+qo.replace(/[\s,]+/g,"|")+")\\b"),null]),Nn.push([hs,/^\s+/,null,` \r - \xA0`]);var $o="^.[^\\s\\w.$@'\"`/\\\\]*";return ua.regexLiterals&&($o+="(?!s*/)"),Jo.push([zi,/^@[a-z_$][a-z_$@0-9]*/i,null],[rl,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[hs,/^[a-z_$][a-z_$@0-9]*/i,null],[zi,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[hs,/^\\[\s\S]?/,null],[xo,new RegExp($o),null]),jf(Nn,Jo)}var pl=zf({keywords:V_,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ii(ua,Nn,Jo){for(var rc=/(?:^|\s)nocode(?:\s|$)/,nl=/\r\n?|\n/,wc=ua.ownerDocument,No=wc.createElement("li");ua.firstChild;)No.appendChild(ua.firstChild);var Yu=[No];function dl(Ma){var Ai=Ma.nodeType;if(Ai==1&&!rc.test(Ma.className))if(Ma.nodeName==="br")qo(Ma),Ma.parentNode&&Ma.parentNode.removeChild(Ma);else for(var Ht=Ma.firstChild;Ht;Ht=Ht.nextSibling)dl(Ht);else if((Ai==3||Ai==4)&&Jo){var Ss=Ma.nodeValue,Ir=Ss.match(nl);if(Ir){var Et=Ss.substring(0,Ir.index);Ma.nodeValue=Et;var kr=Ss.substring(Ir.index+Ir[0].length);if(kr){var ct=Ma.parentNode;ct.insertBefore(wc.createTextNode(kr),Ma.nextSibling)}qo(Ma),Et||Ma.parentNode.removeChild(Ma)}}}function qo(Ma){for(;!Ma.nextSibling;)if(Ma=Ma.parentNode,!Ma)return;function Ai(Ir,Et){var kr=Et?Ir.cloneNode(!1):Ir,ct=Ir.parentNode;if(ct){var Ot=Ai(ct,1),qt=Ir.nextSibling;Ot.appendChild(kr);for(var ur=qt;ur;ur=qt)qt=ur.nextSibling,Ot.appendChild(ur)}return kr}for(var Ht=Ai(Ma.nextSibling,0),Ss;(Ss=Ht.parentNode)&&Ss.nodeType===1;)Ht=Ss;Yu.push(Ht)}for(var $o=0;$o=ct&&(dl+=2),wc>=Ot&&(xu+=2)}}finally{Ss&&(Ss.style.display=Ir)}}var Ki={};function Fu(ua,Nn){for(var Jo=Nn.length;--Jo>=0;){var rc=Nn[Jo];Ki.hasOwnProperty(rc)?Bf.console&&console.warn("cannot override language handler %s",rc):Ki[rc]=ua}}function $d(ua,Nn){return ua&&Ki.hasOwnProperty(ua)||(ua=/^\s*]*(?:>|$)/],[on,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[xo,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Fu(jf([[hs,/^[\s]+/,null,` \r -`],[Mn,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Zn,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[ef,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[xo,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Fu(jf([],[[Mn,/^[\s\S]+/]]),["uq.val"]),Fu(zf({keywords:kp,hashComments:!0,cStyleComments:!0,types:Bl}),["c","cc","cpp","cxx","cyc","m"]),Fu(zf({keywords:"null,true,false"}),["json"]),Fu(zf({keywords:rr,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:Bl}),["cs"]),Fu(zf({keywords:Zu,cStyleComments:!0}),["java"]),Fu(zf({keywords:Lu,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Fu(zf({keywords:Gl,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Fu(zf({keywords:Vt,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Fu(zf({keywords:bo,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Fu(zf({keywords:Nr,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Fu(zf({keywords:Co,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Fu(jf([],[[np,/^[\s\S]+/]]),["regex"]);function bu(ua){var Nn=ua.langExtension;try{var Jo=tf(ua.sourceNode,ua.pre),rc=Jo.sourceCode;ua.sourceCode=rc,ua.spans=Jo.spans,ua.basePos=0,$d(Nn,rc)(ua),Mr(ua)}catch(nl){Bf.console&&console.log(nl&&nl.stack||nl)}}function Km(ua,Nn,Jo){var rc=Jo||!1,nl=Nn||null,wc=document.createElement("div");wc.innerHTML="
"+ua+"
",wc=wc.firstChild,rc&&Ii(wc,rc,!0);var No={langExtension:nl,numberLines:rc,sourceNode:wc,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return bu(No),wc.innerHTML}function xl(ua,Nn){var Jo=Nn||document.body,rc=Jo.ownerDocument||document;function nl(kr){return Jo.getElementsByTagName(kr)}for(var wc=[nl("pre"),nl("code"),nl("xmp")],No=[],Yu=0;Yu1?bt-1:0),Nn=1;Nn/gm),x_=U_(/\${[\w\W]*}/gm),lo=U_(/^data-[\-\w.\u00B7-\uFFFF]/),jf=U_(/^aria-[\-\w]+$/),zf=U_(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pl=U_(/^(?:\w+script|data):/i),Ii=U_(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Mr=U_(/^html$/i);var Ki=Object.freeze({__proto__:null,MUSTACHE_EXPR:tf,ERB_EXPR:ll,TMPLIT_EXPR:x_,DATA_ATTR:lo,ARIA_ATTR:jf,IS_ALLOWED_URI:zf,IS_SCRIPT_OR_DATA:pl,ATTR_WHITESPACE:Ii,DOCTYPE_NAME:Mr});const Fu=()=>typeof window=="undefined"?null:window,$d=function(xc,bt){if(typeof xc!="object"||typeof xc.createPolicy!="function")return null;let ua=null;const Nn="data-tt-policy-suffix";bt&&bt.hasAttribute(Nn)&&(ua=bt.getAttribute(Nn));const Jo="dompurify"+(ua?"#"+ua:"");try{return xc.createPolicy(Jo,{createHTML(rc){return rc},createScriptURL(rc){return rc}})}catch(rc){return console.warn("TrustedTypes policy "+Jo+" could not be created."),null}};function bu(){let xl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fu();const xc=Go=>bu(Go);if(xc.version="3.0.5",xc.removed=[],!xl||!xl.document||xl.document.nodeType!==9)return xc.isSupported=!1,xc;const bt=xl.document,ua=bt.currentScript;let{document:Nn}=xl;const{DocumentFragment:Jo,HTMLTemplateElement:rc,Node:nl,Element:wc,NodeFilter:No,NamedNodeMap:Yu=xl.NamedNodeMap||xl.MozNamedAttrMap,HTMLFormElement:dl,DOMParser:qo,trustedTypes:$o}=xl,xu=wc.prototype,jl=rl(xu,"cloneNode"),Lo=rl(xu,"nextSibling"),Ma=rl(xu,"childNodes"),Ai=rl(xu,"parentNode");if(typeof rc=="function"){const Go=Nn.createElement("template");Go.content&&Go.content.ownerDocument&&(Nn=Go.content.ownerDocument)}let Ht,Ss="";const{implementation:Ir,createNodeIterator:Et,createDocumentFragment:kr,getElementsByTagName:ct}=Nn,{importNode:Ot}=bt;let qt={};xc.isSupported=typeof D_=="function"&&typeof Ai=="function"&&Ir&&Ir.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ur,ERB_EXPR:mr,TMPLIT_EXPR:Sa,DATA_ATTR:Ji,ARIA_ATTR:nc,IS_SCRIPT_OR_DATA:Fi,ATTR_WHITESPACE:Nl}=Ki;let{IS_ALLOWED_URI:io}=Ki,fi=null;const de=yn({},[...zi,...xo,...hs,...cl,...ef]);let Se=null;const Ci=yn({},[...Mn,...kd,...vu,...er]);let We=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tr=null,Io=null,la=!0,Hs=!0,Hd=!1,eo=!0,__=!1,If=!1,H2=!1,zt=!1,_m=!1,jr=!1,Fm=!1,G2=!0,_1=!1;const V1="user-content-";let X2=!0,G0=!1,k0={},Ag=null;const Zs=yn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Pf=null;const Qc=yn({},["audio","video","img","source","image","track"]);let fm=null;const Jf=yn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),W1="http://www.w3.org/1998/Math/MathML",ns="http://www.w3.org/2000/svg",pm="http://www.w3.org/1999/xhtml";let bs=pm,Gd=!1,di=null;const Ws=yn({},[W1,ns,pm],Co);let Ho;const Rm=["application/xhtml+xml","text/html"],Cp="text/html";let W_,Jc=null;const jT=Nn.createElement("form"),Cd=function(cn){return cn instanceof RegExp||cn instanceof Function},xs=function(cn){if(!(Jc&&Jc===cn)){if((!cn||typeof cn!="object")&&(cn={}),cn=on(cn),Ho=Rm.indexOf(cn.PARSER_MEDIA_TYPE)===-1?Ho=Cp:Ho=cn.PARSER_MEDIA_TYPE,W_=Ho==="application/xhtml+xml"?Co:rr,fi="ALLOWED_TAGS"in cn?yn({},cn.ALLOWED_TAGS,W_):de,Se="ALLOWED_ATTR"in cn?yn({},cn.ALLOWED_ATTR,W_):Ci,di="ALLOWED_NAMESPACES"in cn?yn({},cn.ALLOWED_NAMESPACES,Co):Ws,fm="ADD_URI_SAFE_ATTR"in cn?yn(on(Jf),cn.ADD_URI_SAFE_ATTR,W_):Jf,Pf="ADD_DATA_URI_TAGS"in cn?yn(on(Qc),cn.ADD_DATA_URI_TAGS,W_):Qc,Ag="FORBID_CONTENTS"in cn?yn({},cn.FORBID_CONTENTS,W_):Zs,tr="FORBID_TAGS"in cn?yn({},cn.FORBID_TAGS,W_):{},Io="FORBID_ATTR"in cn?yn({},cn.FORBID_ATTR,W_):{},k0="USE_PROFILES"in cn?cn.USE_PROFILES:!1,la=cn.ALLOW_ARIA_ATTR!==!1,Hs=cn.ALLOW_DATA_ATTR!==!1,Hd=cn.ALLOW_UNKNOWN_PROTOCOLS||!1,eo=cn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,__=cn.SAFE_FOR_TEMPLATES||!1,If=cn.WHOLE_DOCUMENT||!1,_m=cn.RETURN_DOM||!1,jr=cn.RETURN_DOM_FRAGMENT||!1,Fm=cn.RETURN_TRUSTED_TYPE||!1,zt=cn.FORCE_BODY||!1,G2=cn.SANITIZE_DOM!==!1,_1=cn.SANITIZE_NAMED_PROPS||!1,X2=cn.KEEP_CONTENT!==!1,G0=cn.IN_PLACE||!1,io=cn.ALLOWED_URI_REGEXP||zf,bs=cn.NAMESPACE||pm,We=cn.CUSTOM_ELEMENT_HANDLING||{},cn.CUSTOM_ELEMENT_HANDLING&&Cd(cn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(We.tagNameCheck=cn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),cn.CUSTOM_ELEMENT_HANDLING&&Cd(cn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(We.attributeNameCheck=cn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),cn.CUSTOM_ELEMENT_HANDLING&&typeof cn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(We.allowCustomizedBuiltInElements=cn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),__&&(Hs=!1),jr&&(_m=!0),k0&&(fi=yn({},[...ef]),Se=[],k0.html===!0&&(yn(fi,zi),yn(Se,Mn)),k0.svg===!0&&(yn(fi,xo),yn(Se,kd),yn(Se,er)),k0.svgFilters===!0&&(yn(fi,hs),yn(Se,kd),yn(Se,er)),k0.mathMl===!0&&(yn(fi,cl),yn(Se,vu),yn(Se,er))),cn.ADD_TAGS&&(fi===de&&(fi=on(fi)),yn(fi,cn.ADD_TAGS,W_)),cn.ADD_ATTR&&(Se===Ci&&(Se=on(Se)),yn(Se,cn.ADD_ATTR,W_)),cn.ADD_URI_SAFE_ATTR&&yn(fm,cn.ADD_URI_SAFE_ATTR,W_),cn.FORBID_CONTENTS&&(Ag===Zs&&(Ag=on(Ag)),yn(Ag,cn.FORBID_CONTENTS,W_)),X2&&(fi["#text"]=!0),If&&yn(fi,["html","head","body"]),fi.table&&(yn(fi,["tbody"]),delete tr.tbody),cn.TRUSTED_TYPES_POLICY){if(typeof cn.TRUSTED_TYPES_POLICY.createHTML!="function")throw V_('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof cn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw V_('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ht=cn.TRUSTED_TYPES_POLICY,Ss=Ht.createHTML("")}else Ht===void 0&&(Ht=$d($o,ua)),Ht!==null&&typeof Ss=="string"&&(Ss=Ht.createHTML(""));Bc&&Bc(cn),Jc=cn}},q_=yn({},["mi","mo","mn","ms","mtext"]),f_=yn({},["foreignobject","desc","title","annotation-xml"]),Dx=yn({},["title","style","font","a","script"]),d4=yn({},xo);yn(d4,hs),yn(d4,Zn);const Z2=yn({},cl);yn(Z2,Lm);const Dg=function(cn){let ka=Ai(cn);(!ka||!ka.tagName)&&(ka={namespaceURI:bs,tagName:"template"});const ds=rr(cn.tagName),p_=rr(ka.tagName);return di[cn.namespaceURI]?cn.namespaceURI===ns?ka.namespaceURI===pm?ds==="svg":ka.namespaceURI===W1?ds==="svg"&&(p_==="annotation-xml"||q_[p_]):!!d4[ds]:cn.namespaceURI===W1?ka.namespaceURI===pm?ds==="math":ka.namespaceURI===ns?ds==="math"&&f_[p_]:!!Z2[ds]:cn.namespaceURI===pm?ka.namespaceURI===ns&&!f_[p_]||ka.namespaceURI===W1&&!q_[p_]?!1:!Z2[ds]&&(Dx[ds]||!d4[ds]):!!(Ho==="application/xhtml+xml"&&di[cn.namespaceURI]):!1},C0=function(cn){Zu(xc.removed,{element:cn});try{cn.parentNode.removeChild(cn)}catch(ka){cn.remove()}},q1=function(cn,ka){try{Zu(xc.removed,{attribute:ka.getAttributeNode(cn),from:ka})}catch(ds){Zu(xc.removed,{attribute:null,from:ka})}if(ka.removeAttribute(cn),cn==="is"&&!Se[cn])if(_m||jr)try{C0(ka)}catch(ds){}else try{ka.setAttribute(cn,"")}catch(ds){}},Nx=function(cn){let ka,ds;if(zt)cn=""+cn;else{const Uf=Nr(cn,/^[\r\n\t ]+/);ds=Uf&&Uf[0]}Ho==="application/xhtml+xml"&&bs===pm&&(cn=''+cn+"");const p_=Ht?Ht.createHTML(cn):cn;if(bs===pm)try{ka=new qo().parseFromString(p_,Ho)}catch(Uf){}if(!ka||!ka.documentElement){ka=Ir.createDocument(bs,"template",null);try{ka.documentElement.innerHTML=Gd?Ss:p_}catch(Uf){}}const gi=ka.body||ka.documentElement;return cn&&ds&&gi.insertBefore(Nn.createTextNode(ds),gi.childNodes[0]||null),bs===pm?ct.call(ka,If?"html":"body")[0]:If?ka.documentElement:gi},Uc=function(cn){return Et.call(cn.ownerDocument||cn,cn,No.SHOW_ELEMENT|No.SHOW_COMMENT|No.SHOW_TEXT,null,!1)},Lv=function(cn){return cn instanceof dl&&(typeof cn.nodeName!="string"||typeof cn.textContent!="string"||typeof cn.removeChild!="function"||!(cn.attributes instanceof Yu)||typeof cn.removeAttribute!="function"||typeof cn.setAttribute!="function"||typeof cn.namespaceURI!="string"||typeof cn.insertBefore!="function"||typeof cn.hasChildNodes!="function")},$1=function(cn){return typeof nl=="object"?cn instanceof nl:cn&&typeof cn=="object"&&typeof cn.nodeType=="number"&&typeof cn.nodeName=="string"},X0=function(cn,ka,ds){qt[cn]&&Dl(qt[cn],p_=>{p_.call(xc,ka,ds,Jc)})},Ix=function(cn){let ka;if(X0("beforeSanitizeElements",cn,null),Lv(cn))return C0(cn),!0;const ds=W_(cn.nodeName);if(X0("uponSanitizeElement",cn,{tagName:ds,allowedTags:fi}),cn.hasChildNodes()&&!$1(cn.firstElementChild)&&(!$1(cn.content)||!$1(cn.content.firstElementChild))&&Lu(/<[/\w]/g,cn.innerHTML)&&Lu(/<[/\w]/g,cn.textContent))return C0(cn),!0;if(!fi[ds]||tr[ds]){if(!tr[ds]&&$_(ds)&&(We.tagNameCheck instanceof RegExp&&Lu(We.tagNameCheck,ds)||We.tagNameCheck instanceof Function&&We.tagNameCheck(ds)))return!1;if(X2&&!Ag[ds]){const p_=Ai(cn)||cn.parentNode,gi=Ma(cn)||cn.childNodes;if(gi&&p_){const Uf=gi.length;for(let rf=Uf-1;rf>=0;--rf)p_.insertBefore(jl(gi[rf],!0),Lo(cn))}}return C0(cn),!0}return cn instanceof wc&&!Dg(cn)||(ds==="noscript"||ds==="noembed"||ds==="noframes")&&Lu(/<\/no(script|embed|frames)/i,cn.innerHTML)?(C0(cn),!0):(__&&cn.nodeType===3&&(ka=cn.textContent,ka=Vt(ka,ur," "),ka=Vt(ka,mr," "),ka=Vt(ka,Sa," "),cn.textContent!==ka&&(Zu(xc.removed,{element:cn.cloneNode()}),cn.textContent=ka)),X0("afterSanitizeElements",cn,null),!1)},tn=function(cn,ka,ds){if(G2&&(ka==="id"||ka==="name")&&(ds in Nn||ds in jT))return!1;if(!(Hs&&!Io[ka]&&Lu(Ji,ka))){if(!(la&&Lu(nc,ka))){if(!Se[ka]||Io[ka]){if(!($_(cn)&&(We.tagNameCheck instanceof RegExp&&Lu(We.tagNameCheck,cn)||We.tagNameCheck instanceof Function&&We.tagNameCheck(cn))&&(We.attributeNameCheck instanceof RegExp&&Lu(We.attributeNameCheck,ka)||We.attributeNameCheck instanceof Function&&We.attributeNameCheck(ka))||ka==="is"&&We.allowCustomizedBuiltInElements&&(We.tagNameCheck instanceof RegExp&&Lu(We.tagNameCheck,ds)||We.tagNameCheck instanceof Function&&We.tagNameCheck(ds))))return!1}else if(!fm[ka]){if(!Lu(io,Vt(ds,Nl,""))){if(!((ka==="src"||ka==="xlink:href"||ka==="href")&&cn!=="script"&&Gl(ds,"data:")===0&&Pf[cn])){if(!(Hd&&!Lu(Fi,Vt(ds,Nl,"")))){if(ds)return!1}}}}}}return!0},$_=function(cn){return cn.indexOf("-")>0},f1=function(cn){let ka,ds,p_,gi;X0("beforeSanitizeAttributes",cn,null);const{attributes:Uf}=cn;if(!Uf)return;const rf={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(gi=Uf.length;gi--;){ka=Uf[gi];const{name:Qo,namespaceURI:Ng}=ka;if(ds=Qo==="value"?ka.value:bo(ka.value),p_=W_(Qo),rf.attrName=p_,rf.attrValue=ds,rf.keepAttr=!0,rf.forceKeepAttr=void 0,X0("uponSanitizeAttribute",cn,rf),ds=rf.attrValue,rf.forceKeepAttr||(q1(Qo,cn),!rf.keepAttr))continue;if(!eo&&Lu(/\/>/i,ds)){q1(Qo,cn);continue}__&&(ds=Vt(ds,ur," "),ds=Vt(ds,mr," "),ds=Vt(ds,Sa," "));const m4=W_(cn.nodeName);if(tn(m4,p_,ds)){if(_1&&(p_==="id"||p_==="name")&&(q1(Qo,cn),ds=V1+ds),Ht&&typeof $o=="object"&&typeof $o.getAttributeType=="function"&&!Ng)switch($o.getAttributeType(m4,p_)){case"TrustedHTML":{ds=Ht.createHTML(ds);break}case"TrustedScriptURL":{ds=Ht.createScriptURL(ds);break}}try{Ng?cn.setAttributeNS(Ng,Qo,ds):cn.setAttribute(Qo,ds),kp(xc.removed)}catch(Z0){}}}X0("afterSanitizeAttributes",cn,null)},Of=function Go(cn){let ka;const ds=Uc(cn);for(X0("beforeSanitizeShadowDOM",cn,null);ka=ds.nextNode();)X0("uponSanitizeShadowNode",ka,null),!Ix(ka)&&(ka.content instanceof Jo&&Go(ka.content),f1(ka));X0("afterSanitizeShadowDOM",cn,null)};return xc.sanitize=function(Go){let cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ka,ds,p_,gi;if(Gd=!Go,Gd&&(Go=""),typeof Go!="string"&&!$1(Go))if(typeof Go.toString=="function"){if(Go=Go.toString(),typeof Go!="string")throw V_("dirty is not a string, aborting")}else throw V_("toString is not a function");if(!xc.isSupported)return Go;if(H2||xs(cn),xc.removed=[],typeof Go=="string"&&(G0=!1),G0){if(Go.nodeName){const Qo=W_(Go.nodeName);if(!fi[Qo]||tr[Qo])throw V_("root node is forbidden and cannot be sanitized in-place")}}else if(Go instanceof nl)ka=Nx(""),ds=ka.ownerDocument.importNode(Go,!0),ds.nodeType===1&&ds.nodeName==="BODY"||ds.nodeName==="HTML"?ka=ds:ka.appendChild(ds);else{if(!_m&&!__&&!If&&Go.indexOf("<")===-1)return Ht&&Fm?Ht.createHTML(Go):Go;if(ka=Nx(Go),!ka)return _m?null:Fm?Ss:""}ka&&zt&&C0(ka.firstChild);const Uf=Uc(G0?Go:ka);for(;p_=Uf.nextNode();)Ix(p_)||(p_.content instanceof Jo&&Of(p_.content),f1(p_));if(G0)return Go;if(_m){if(jr)for(gi=kr.call(ka.ownerDocument);ka.firstChild;)gi.appendChild(ka.firstChild);else gi=ka;return(Se.shadowroot||Se.shadowrootmode)&&(gi=Ot.call(bt,gi,!0)),gi}let rf=If?ka.outerHTML:ka.innerHTML;return If&&fi["!doctype"]&&ka.ownerDocument&&ka.ownerDocument.doctype&&ka.ownerDocument.doctype.name&&Lu(Mr,ka.ownerDocument.doctype.name)&&(rf=" -`+rf),__&&(rf=Vt(rf,ur," "),rf=Vt(rf,mr," "),rf=Vt(rf,Sa," ")),Ht&&Fm?Ht.createHTML(rf):rf},xc.setConfig=function(Go){xs(Go),H2=!0},xc.clearConfig=function(){Jc=null,H2=!1},xc.isValidAttribute=function(Go,cn,ka){Jc||xs({});const ds=W_(Go),p_=W_(cn);return tn(ds,p_,ka)},xc.addHook=function(Go,cn){typeof cn=="function"&&(qt[Go]=qt[Go]||[],Zu(qt[Go],cn))},xc.removeHook=function(Go){if(qt[Go])return kp(qt[Go])},xc.removeHooks=function(Go){qt[Go]&&(qt[Go]=[])},xc.removeAllHooks=function(){qt={}},xc}var Km=bu();return Km})},47084:function(Nf){(function(D_,Ta){Nf.exports=Ta()})(this,function(){"use strict";function D_(Ir,Et){for(var kr=0;krIr.length)&&(Et=Ir.length);for(var kr=0,ct=new Array(Et);kr=Ir.length?{done:!0}:{done:!1,value:Ir[ct++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return kr=Ir[Symbol.iterator](),kr.next.bind(kr)}function Bc(Ir){var Et={exports:{}};return Ir(Et,Et.exports),Et.exports}var U_=Bc(function(Ir){function Et(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function kr(ct){Ir.exports.defaults=ct}Ir.exports={defaults:Et(),getDefaults:Et,changeDefaults:kr}}),Bf=/[&<>"']/,or=/[&<>"']/g,S0=/[<>"']|&(?!#?\w+;)/,Dl=/[<>"']|&(?!#?\w+;)/g,kp={"&":"&","<":"<",">":">",'"':""","'":"'"},Zu=function(Et){return kp[Et]};function rr(Ir,Et){if(Et){if(Bf.test(Ir))return Ir.replace(or,Zu)}else if(S0.test(Ir))return Ir.replace(Dl,Zu);return Ir}var Co=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Nr(Ir){return Ir.replace(Co,function(Et,kr){return kr=kr.toLowerCase(),kr==="colon"?":":kr.charAt(0)==="#"?kr.charAt(1)==="x"?String.fromCharCode(parseInt(kr.substring(2),16)):String.fromCharCode(+kr.substring(1)):""})}var Vt=/(^|[^\[])\^/g;function Gl(Ir,Et){Ir=Ir.source||Ir,Et=Et||"";var kr={replace:function(Ot,qt){return qt=qt.source||qt,qt=qt.replace(Vt,"$1"),Ir=Ir.replace(Ot,qt),kr},getRegex:function(){return new RegExp(Ir,Et)}};return kr}var bo=/[^\w:]/g,Lu=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V_(Ir,Et,kr){if(Ir){var ct;try{ct=decodeURIComponent(Nr(kr)).replace(bo,"").toLowerCase()}catch(Ot){return null}if(ct.indexOf("javascript:")===0||ct.indexOf("vbscript:")===0||ct.indexOf("data:")===0)return null}Et&&!Lu.test(kr)&&(kr=rl(Et,kr));try{kr=encodeURI(kr).replace(/%25/g,"%")}catch(Ot){return null}return kr}var Bl={},np=/^[^:]+:\/*[^/]*$/,yn=/^([^:]+:)[\s\S]*$/,on=/^([^:]+:\/*[^/]*)[\s\S]*$/;function rl(Ir,Et){Bl[" "+Ir]||(np.test(Ir)?Bl[" "+Ir]=Ir+"/":Bl[" "+Ir]=Zn(Ir,"/",!0)),Ir=Bl[" "+Ir];var kr=Ir.indexOf(":")===-1;return Et.substring(0,2)==="//"?kr?Et:Ir.replace(yn,"$1")+Et:Et.charAt(0)==="/"?kr?Et:Ir.replace(on,"$1")+Et:Ir+Et}var zi={exec:function(){}};function xo(Ir){for(var Et=1,kr,ct;Et=0&&mr[Ji]==="\\";)Sa=!Sa;return Sa?"|":" |"}),ct=kr.split(/ \|/),Ot=0;if(ct.length>Et)ct.splice(Et);else for(;ct.length1;)Et&1&&(kr+=Ir),Et>>=1,Ir+=Ir;return kr+Ir}var Mn={escape:rr,unescape:Nr,edit:Gl,cleanUrl:V_,resolveUrl:rl,noopTest:zi,merge:xo,splitCells:hs,rtrim:Zn,findClosingBracket:cl,checkSanitizeDeprecation:Lm,repeatString:ef},kd=U_.defaults,vu=Mn.rtrim,er=Mn.splitCells,tf=Mn.escape,ll=Mn.findClosingBracket;function x_(Ir,Et,kr){var ct=Et.href,Ot=Et.title?tf(Et.title):null,qt=Ir[1].replace(/\\([\[\]])/g,"$1");return Ir[0].charAt(0)!=="!"?{type:"link",raw:kr,href:ct,title:Ot,text:qt}:{type:"image",raw:kr,href:ct,title:Ot,text:tf(qt)}}function lo(Ir,Et){var kr=Ir.match(/^(\s+)(?:```)/);if(kr===null)return Et;var ct=kr[1];return Et.split(` -`).map(function(Ot){var qt=Ot.match(/^\s+/);if(qt===null)return Ot;var ur=qt[0];return ur.length>=ct.length?Ot.slice(ct.length):Ot}).join(` -`)}var jf=function(){function Ir(kr){this.options=kr||kd}var Et=Ir.prototype;return Et.space=function(ct){var Ot=this.rules.block.newline.exec(ct);if(Ot)return Ot[0].length>1?{type:"space",raw:Ot[0]}:{raw:` -`}},Et.code=function(ct,Ot){var qt=this.rules.block.code.exec(ct);if(qt){var ur=Ot[Ot.length-1];if(ur&&ur.type==="paragraph")return{raw:qt[0],text:qt[0].trimRight()};var mr=qt[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:qt[0],codeBlockStyle:"indented",text:this.options.pedantic?mr:vu(mr,` -`)}}},Et.fences=function(ct){var Ot=this.rules.block.fences.exec(ct);if(Ot){var qt=Ot[0],ur=lo(qt,Ot[3]||"");return{type:"code",raw:qt,lang:Ot[2]?Ot[2].trim():Ot[2],text:ur}}},Et.heading=function(ct){var Ot=this.rules.block.heading.exec(ct);if(Ot){var qt=Ot[2].trim();if(/#$/.test(qt)){var ur=vu(qt,"#");(this.options.pedantic||!ur||/ $/.test(ur))&&(qt=ur.trim())}return{type:"heading",raw:Ot[0],depth:Ot[1].length,text:qt}}},Et.nptable=function(ct){var Ot=this.rules.block.nptable.exec(ct);if(Ot){var qt={type:"table",header:er(Ot[1].replace(/^ *| *\| *$/g,"")),align:Ot[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ot[3]?Ot[3].replace(/\n$/,"").split(` -`):[],raw:Ot[0]};if(qt.header.length===qt.align.length){var ur=qt.align.length,mr;for(mr=0;mr ?/gm,"");return{type:"blockquote",raw:Ot[0],text:qt}}},Et.list=function(ct){var Ot=this.rules.block.list.exec(ct);if(Ot){var qt=Ot[0],ur=Ot[2],mr=ur.length>1,Sa={type:"list",raw:qt,ordered:mr,start:mr?+ur.slice(0,-1):"",loose:!1,items:[]},Ji=Ot[0].match(this.rules.block.item),nc=!1,Fi,Nl,io,fi,de,Se,Ci,We,tr=Ji.length;io=this.rules.block.listItemStart.exec(Ji[0]);for(var Io=0;Ioio[1].length:fi[1].length>io[0].length||fi[1].length>3){Ji.splice(Io,2,Ji[Io]+` -`+Ji[Io+1]),Io--,tr--;continue}else(!this.options.pedantic||this.options.smartLists?fi[2][fi[2].length-1]!==ur[ur.length-1]:mr===(fi[2].length===1))&&(de=Ji.slice(Io+1).join(` -`),Sa.raw=Sa.raw.substring(0,Sa.raw.length-de.length),Io=tr-1);io=fi}Nl=Fi.length,Fi=Fi.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Fi.indexOf(` - `)&&(Nl-=Fi.length,Fi=this.options.pedantic?Fi.replace(/^ {1,4}/gm,""):Fi.replace(new RegExp("^ {1,"+Nl+"}","gm"),"")),Se=nc||/\n\n(?!\s*$)/.test(Fi),Io!==tr-1&&(nc=Fi.charAt(Fi.length-1)===` -`,Se||(Se=nc)),Se&&(Sa.loose=!0),this.options.gfm&&(Ci=/^\[[ xX]\] /.test(Fi),We=void 0,Ci&&(We=Fi[1]!==" ",Fi=Fi.replace(/^\[[ xX]\] +/,""))),Sa.items.push({type:"list_item",raw:qt,task:Ci,checked:We,loose:Se,text:Fi})}return Sa}},Et.html=function(ct){var Ot=this.rules.block.html.exec(ct);if(Ot)return{type:this.options.sanitize?"paragraph":"html",raw:Ot[0],pre:!this.options.sanitizer&&(Ot[1]==="pre"||Ot[1]==="script"||Ot[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ot[0]):tf(Ot[0]):Ot[0]}},Et.def=function(ct){var Ot=this.rules.block.def.exec(ct);if(Ot){Ot[3]&&(Ot[3]=Ot[3].substring(1,Ot[3].length-1));var qt=Ot[1].toLowerCase().replace(/\s+/g," ");return{tag:qt,raw:Ot[0],href:Ot[2],title:Ot[3]}}},Et.table=function(ct){var Ot=this.rules.block.table.exec(ct);if(Ot){var qt={type:"table",header:er(Ot[1].replace(/^ *| *\| *$/g,"")),align:Ot[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ot[3]?Ot[3].replace(/\n$/,"").split(` -`):[]};if(qt.header.length===qt.align.length){qt.raw=Ot[0];var ur=qt.align.length,mr;for(mr=0;mr/i.test(ur[0])&&(Ot=!1),!qt&&/^<(pre|code|kbd|script)(\s|>)/i.test(ur[0])?qt=!0:qt&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ur[0])&&(qt=!1),{type:this.options.sanitize?"text":"html",raw:ur[0],inLink:Ot,inRawBlock:qt,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ur[0]):tf(ur[0]):ur[0]}},Et.link=function(ct){var Ot=this.rules.inline.link.exec(ct);if(Ot){var qt=Ot[2].trim();if(!this.options.pedantic&&/^$/.test(qt))return;var ur=vu(qt.slice(0,-1),"\\");if((qt.length-ur.length)%2===0)return}else{var mr=ll(Ot[2],"()");if(mr>-1){var Sa=Ot[0].indexOf("!")===0?5:4,Ji=Sa+Ot[1].length+mr;Ot[2]=Ot[2].substring(0,mr),Ot[0]=Ot[0].substring(0,Ji).trim(),Ot[3]=""}}var nc=Ot[2],Fi="";if(this.options.pedantic){var Nl=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(nc);Nl&&(nc=Nl[1],Fi=Nl[3])}else Fi=Ot[3]?Ot[3].slice(1,-1):"";return nc=nc.trim(),/^$/.test(qt)?nc=nc.slice(1):nc=nc.slice(1,-1)),x_(Ot,{href:nc&&nc.replace(this.rules.inline._escapes,"$1"),title:Fi&&Fi.replace(this.rules.inline._escapes,"$1")},Ot[0])}},Et.reflink=function(ct,Ot){var qt;if((qt=this.rules.inline.reflink.exec(ct))||(qt=this.rules.inline.nolink.exec(ct))){var ur=(qt[2]||qt[1]).replace(/\s+/g," ");if(ur=Ot[ur.toLowerCase()],!ur||!ur.href){var mr=qt[0].charAt(0);return{type:"text",raw:mr,text:mr}}return x_(qt,ur,qt[0])}},Et.strong=function(ct,Ot,qt){qt===void 0&&(qt="");var ur=this.rules.inline.strong.start.exec(ct);if(ur&&(!ur[1]||ur[1]&&(qt===""||this.rules.inline.punctuation.exec(qt)))){Ot=Ot.slice(-1*ct.length);var mr=ur[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;mr.lastIndex=0;for(var Sa;(ur=mr.exec(Ot))!=null;)if(Sa=this.rules.inline.strong.middle.exec(Ot.slice(0,ur.index+3)),Sa)return{type:"strong",raw:ct.slice(0,Sa[0].length),text:ct.slice(2,Sa[0].length-2)}}},Et.em=function(ct,Ot,qt){qt===void 0&&(qt="");var ur=this.rules.inline.em.start.exec(ct);if(ur&&(!ur[1]||ur[1]&&(qt===""||this.rules.inline.punctuation.exec(qt)))){Ot=Ot.slice(-1*ct.length);var mr=ur[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;mr.lastIndex=0;for(var Sa;(ur=mr.exec(Ot))!=null;)if(Sa=this.rules.inline.em.middle.exec(Ot.slice(0,ur.index+2)),Sa)return{type:"em",raw:ct.slice(0,Sa[0].length),text:ct.slice(1,Sa[0].length-1)}}},Et.codespan=function(ct){var Ot=this.rules.inline.code.exec(ct);if(Ot){var qt=Ot[2].replace(/\n/g," "),ur=/[^ ]/.test(qt),mr=/^ /.test(qt)&&/ $/.test(qt);return ur&&mr&&(qt=qt.substring(1,qt.length-1)),qt=tf(qt,!0),{type:"codespan",raw:Ot[0],text:qt}}},Et.br=function(ct){var Ot=this.rules.inline.br.exec(ct);if(Ot)return{type:"br",raw:Ot[0]}},Et.del=function(ct){var Ot=this.rules.inline.del.exec(ct);if(Ot)return{type:"del",raw:Ot[0],text:Ot[2]}},Et.autolink=function(ct,Ot){var qt=this.rules.inline.autolink.exec(ct);if(qt){var ur,mr;return qt[2]==="@"?(ur=tf(this.options.mangle?Ot(qt[1]):qt[1]),mr="mailto:"+ur):(ur=tf(qt[1]),mr=ur),{type:"link",raw:qt[0],text:ur,href:mr,tokens:[{type:"text",raw:ur,text:ur}]}}},Et.url=function(ct,Ot){var qt;if(qt=this.rules.inline.url.exec(ct)){var ur,mr;if(qt[2]==="@")ur=tf(this.options.mangle?Ot(qt[0]):qt[0]),mr="mailto:"+ur;else{var Sa;do Sa=qt[0],qt[0]=this.rules.inline._backpedal.exec(qt[0])[0];while(Sa!==qt[0]);ur=tf(qt[0]),qt[1]==="www."?mr="http://"+ur:mr=ur}return{type:"link",raw:qt[0],text:ur,href:mr,tokens:[{type:"text",raw:ur,text:ur}]}}},Et.inlineText=function(ct,Ot,qt){var ur=this.rules.inline.text.exec(ct);if(ur){var mr;return Ot?mr=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ur[0]):tf(ur[0]):ur[0]:mr=tf(this.options.smartypants?qt(ur[0]):ur[0]),{type:"text",raw:ur[0],text:mr}}},Ir}(),zf=Mn.noopTest,pl=Mn.edit,Ii=Mn.merge,Mr={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:zf,table:zf,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Mr._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Mr._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Mr.def=pl(Mr.def).replace("label",Mr._label).replace("title",Mr._title).getRegex(),Mr.bullet=/(?:[*+-]|\d{1,9}[.)])/,Mr.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Mr.item=pl(Mr.item,"gm").replace(/bull/g,Mr.bullet).getRegex(),Mr.listItemStart=pl(/^( *)(bull)/).replace("bull",Mr.bullet).getRegex(),Mr.list=pl(Mr.list).replace(/bull/g,Mr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Mr.def.source+")").getRegex(),Mr._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Mr._comment=/|$)/,Mr.html=pl(Mr.html,"i").replace("comment",Mr._comment).replace("tag",Mr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Mr.paragraph=pl(Mr._paragraph).replace("hr",Mr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Mr._tag).getRegex(),Mr.blockquote=pl(Mr.blockquote).replace("paragraph",Mr.paragraph).getRegex(),Mr.normal=Ii({},Mr),Mr.gfm=Ii({},Mr.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Mr.gfm.nptable=pl(Mr.gfm.nptable).replace("hr",Mr.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Mr._tag).getRegex(),Mr.gfm.table=pl(Mr.gfm.table).replace("hr",Mr.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Mr._tag).getRegex(),Mr.pedantic=Ii({},Mr.normal,{html:pl(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Mr._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:zf,paragraph:pl(Mr.normal._paragraph).replace("hr",Mr.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",Mr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ki={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:zf,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:zf,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",Ki.punctuation=pl(Ki.punctuation).replace(/punctuation/g,Ki._punctuation).getRegex(),Ki._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Ki._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Ki._comment=pl(Mr._comment).replace("(?:-->|$)","-->").getRegex(),Ki.em.start=pl(Ki.em.start).replace(/punctuation/g,Ki._punctuation).getRegex(),Ki.em.middle=pl(Ki.em.middle).replace(/punctuation/g,Ki._punctuation).replace(/overlapSkip/g,Ki._overlapSkip).getRegex(),Ki.em.endAst=pl(Ki.em.endAst,"g").replace(/punctuation/g,Ki._punctuation).getRegex(),Ki.em.endUnd=pl(Ki.em.endUnd,"g").replace(/punctuation/g,Ki._punctuation).getRegex(),Ki.strong.start=pl(Ki.strong.start).replace(/punctuation/g,Ki._punctuation).getRegex(),Ki.strong.middle=pl(Ki.strong.middle).replace(/punctuation/g,Ki._punctuation).replace(/overlapSkip/g,Ki._overlapSkip).getRegex(),Ki.strong.endAst=pl(Ki.strong.endAst,"g").replace(/punctuation/g,Ki._punctuation).getRegex(),Ki.strong.endUnd=pl(Ki.strong.endUnd,"g").replace(/punctuation/g,Ki._punctuation).getRegex(),Ki.blockSkip=pl(Ki._blockSkip,"g").getRegex(),Ki.overlapSkip=pl(Ki._overlapSkip,"g").getRegex(),Ki._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ki._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ki._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Ki.autolink=pl(Ki.autolink).replace("scheme",Ki._scheme).replace("email",Ki._email).getRegex(),Ki._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ki.tag=pl(Ki.tag).replace("comment",Ki._comment).replace("attribute",Ki._attribute).getRegex(),Ki._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ki._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ki._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ki.link=pl(Ki.link).replace("label",Ki._label).replace("href",Ki._href).replace("title",Ki._title).getRegex(),Ki.reflink=pl(Ki.reflink).replace("label",Ki._label).getRegex(),Ki.reflinkSearch=pl(Ki.reflinkSearch,"g").replace("reflink",Ki.reflink).replace("nolink",Ki.nolink).getRegex(),Ki.normal=Ii({},Ki),Ki.pedantic=Ii({},Ki.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:pl(/^!?\[(label)\]\((.*?)\)/).replace("label",Ki._label).getRegex(),reflink:pl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ki._label).getRegex()}),Ki.gfm=Ii({},Ki.normal,{escape:pl(Ki.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(ct="x"+ct.toString(16)),Et+="&#"+ct+";";return Et}var ua=function(){function Ir(kr){this.tokens=[],this.tokens.links=Object.create(null),this.options=kr||$d,this.options.tokenizer=this.options.tokenizer||new jf,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ct={block:bu.normal,inline:Km.normal};this.options.pedantic?(ct.block=bu.pedantic,ct.inline=Km.pedantic):this.options.gfm&&(ct.block=bu.gfm,this.options.breaks?ct.inline=Km.breaks:ct.inline=Km.gfm),this.tokenizer.rules=ct}Ir.lex=function(ct,Ot){var qt=new Ir(Ot);return qt.lex(ct)},Ir.lexInline=function(ct,Ot){var qt=new Ir(Ot);return qt.inlineTokens(ct)};var Et=Ir.prototype;return Et.lex=function(ct){return ct=ct.replace(/\r\n|\r/g,` -`).replace(/\t/g," "),this.blockTokens(ct,this.tokens,!0),this.inline(this.tokens),this.tokens},Et.blockTokens=function(ct,Ot,qt){Ot===void 0&&(Ot=[]),qt===void 0&&(qt=!0),this.options.pedantic&&(ct=ct.replace(/^ +$/gm,""));for(var ur,mr,Sa,Ji;ct;){if(ur=this.tokenizer.space(ct)){ct=ct.substring(ur.raw.length),ur.type&&Ot.push(ur);continue}if(ur=this.tokenizer.code(ct,Ot)){ct=ct.substring(ur.raw.length),ur.type?Ot.push(ur):(Ji=Ot[Ot.length-1],Ji.raw+=` -`+ur.raw,Ji.text+=` -`+ur.text);continue}if(ur=this.tokenizer.fences(ct)){ct=ct.substring(ur.raw.length),Ot.push(ur);continue}if(ur=this.tokenizer.heading(ct)){ct=ct.substring(ur.raw.length),Ot.push(ur);continue}if(ur=this.tokenizer.nptable(ct)){ct=ct.substring(ur.raw.length),Ot.push(ur);continue}if(ur=this.tokenizer.hr(ct)){ct=ct.substring(ur.raw.length),Ot.push(ur);continue}if(ur=this.tokenizer.blockquote(ct)){ct=ct.substring(ur.raw.length),ur.tokens=this.blockTokens(ur.text,[],qt),Ot.push(ur);continue}if(ur=this.tokenizer.list(ct)){for(ct=ct.substring(ur.raw.length),Sa=ur.items.length,mr=0;mr0)for(;(Ji=this.tokenizer.rules.inline.reflinkSearch.exec(Sa))!=null;)Nl.includes(Ji[0].slice(Ji[0].lastIndexOf("[")+1,-1))&&(Sa=Sa.slice(0,Ji.index)+"["+xl("a",Ji[0].length-2)+"]"+Sa.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ji=this.tokenizer.rules.inline.blockSkip.exec(Sa))!=null;)Sa=Sa.slice(0,Ji.index)+"["+xl("a",Ji[0].length-2)+"]"+Sa.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ct;){if(nc||(Fi=""),nc=!1,mr=this.tokenizer.escape(ct)){ct=ct.substring(mr.raw.length),Ot.push(mr);continue}if(mr=this.tokenizer.tag(ct,qt,ur)){ct=ct.substring(mr.raw.length),qt=mr.inLink,ur=mr.inRawBlock,Ot.push(mr);continue}if(mr=this.tokenizer.link(ct)){ct=ct.substring(mr.raw.length),mr.type==="link"&&(mr.tokens=this.inlineTokens(mr.text,[],!0,ur)),Ot.push(mr);continue}if(mr=this.tokenizer.reflink(ct,this.tokens.links)){ct=ct.substring(mr.raw.length),mr.type==="link"&&(mr.tokens=this.inlineTokens(mr.text,[],!0,ur)),Ot.push(mr);continue}if(mr=this.tokenizer.strong(ct,Sa,Fi)){ct=ct.substring(mr.raw.length),mr.tokens=this.inlineTokens(mr.text,[],qt,ur),Ot.push(mr);continue}if(mr=this.tokenizer.em(ct,Sa,Fi)){ct=ct.substring(mr.raw.length),mr.tokens=this.inlineTokens(mr.text,[],qt,ur),Ot.push(mr);continue}if(mr=this.tokenizer.codespan(ct)){ct=ct.substring(mr.raw.length),Ot.push(mr);continue}if(mr=this.tokenizer.br(ct)){ct=ct.substring(mr.raw.length),Ot.push(mr);continue}if(mr=this.tokenizer.del(ct)){ct=ct.substring(mr.raw.length),mr.tokens=this.inlineTokens(mr.text,[],qt,ur),Ot.push(mr);continue}if(mr=this.tokenizer.autolink(ct,bt)){ct=ct.substring(mr.raw.length),Ot.push(mr);continue}if(!qt&&(mr=this.tokenizer.url(ct,bt))){ct=ct.substring(mr.raw.length),Ot.push(mr);continue}if(mr=this.tokenizer.inlineText(ct,ur,xc)){ct=ct.substring(mr.raw.length),Fi=mr.raw.slice(-1),nc=!0,Ot.push(mr);continue}if(ct){var io="Infinite loop on byte: "+ct.charCodeAt(0);if(this.options.silent){console.error(io);break}else throw new Error(io)}}return Ot},Ta(Ir,null,[{key:"rules",get:function(){return{block:bu,inline:Km}}}]),Ir}(),Nn=U_.defaults,Jo=Mn.cleanUrl,rc=Mn.escape,nl=function(){function Ir(kr){this.options=kr||Nn}var Et=Ir.prototype;return Et.code=function(ct,Ot,qt){var ur=(Ot||"").match(/\S*/)[0];if(this.options.highlight){var mr=this.options.highlight(ct,ur);mr!=null&&mr!==ct&&(qt=!0,ct=mr)}return ct=ct.replace(/\n$/,"")+` -`,ur?'
'+(qt?ct:rc(ct,!0))+`
-`:"
"+(qt?ct:rc(ct,!0))+`
-`},Et.blockquote=function(ct){return`
-`+ct+`
-`},Et.html=function(ct){return ct},Et.heading=function(ct,Ot,qt,ur){return this.options.headerIds?"'+ct+" -`:""+ct+" -`},Et.hr=function(){return this.options.xhtml?`
-`:`
-`},Et.list=function(ct,Ot,qt){var ur=Ot?"ol":"ul",mr=Ot&&qt!==1?' start="'+qt+'"':"";return"<"+ur+mr+`> -`+ct+" -`},Et.listitem=function(ct){return"
  • "+ct+`
  • -`},Et.checkbox=function(ct){return" "},Et.paragraph=function(ct){return"

    "+ct+`

    -`},Et.table=function(ct,Ot){return Ot&&(Ot=""+Ot+""),` - -`+ct+` -`+Ot+`
    -`},Et.tablerow=function(ct){return` -`+ct+` -`},Et.tablecell=function(ct,Ot){var qt=Ot.header?"th":"td",ur=Ot.align?"<"+qt+' align="'+Ot.align+'">':"<"+qt+">";return ur+ct+" -`},Et.strong=function(ct){return""+ct+""},Et.em=function(ct){return""+ct+""},Et.codespan=function(ct){return""+ct+""},Et.br=function(){return this.options.xhtml?"
    ":"
    "},Et.del=function(ct){return""+ct+""},Et.link=function(ct,Ot,qt){if(ct=Jo(this.options.sanitize,this.options.baseUrl,ct),ct===null)return qt;var ur='",ur},Et.image=function(ct,Ot,qt){if(ct=Jo(this.options.sanitize,this.options.baseUrl,ct),ct===null)return qt;var ur=''+qt+'":">",ur},Et.text=function(ct){return ct},Ir}(),wc=function(){function Ir(){}var Et=Ir.prototype;return Et.strong=function(ct){return ct},Et.em=function(ct){return ct},Et.codespan=function(ct){return ct},Et.del=function(ct){return ct},Et.html=function(ct){return ct},Et.text=function(ct){return ct},Et.link=function(ct,Ot,qt){return""+qt},Et.image=function(ct,Ot,qt){return""+qt},Et.br=function(){return""},Ir}(),No=function(){function Ir(){this.seen={}}var Et=Ir.prototype;return Et.serialize=function(ct){return ct.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Et.getNextSafeSlug=function(ct,Ot){var qt=ct,ur=0;if(this.seen.hasOwnProperty(qt)){ur=this.seen[ct];do ur++,qt=ct+"-"+ur;while(this.seen.hasOwnProperty(qt))}return Ot||(this.seen[ct]=ur,this.seen[qt]=0),qt},Et.slug=function(ct,Ot){Ot===void 0&&(Ot={});var qt=this.serialize(ct);return this.getNextSafeSlug(qt,Ot.dryrun)},Ir}(),Yu=U_.defaults,dl=Mn.unescape,qo=function(){function Ir(kr){this.options=kr||Yu,this.options.renderer=this.options.renderer||new nl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new wc,this.slugger=new No}Ir.parse=function(ct,Ot){var qt=new Ir(Ot);return qt.parse(ct)},Ir.parseInline=function(ct,Ot){var qt=new Ir(Ot);return qt.parseInline(ct)};var Et=Ir.prototype;return Et.parse=function(ct,Ot){Ot===void 0&&(Ot=!0);var qt="",ur,mr,Sa,Ji,nc,Fi,Nl,io,fi,de,Se,Ci,We,tr,Io,la,Hs,Hd,eo=ct.length;for(ur=0;ur0&&Io.tokens[0].type==="text"?(Io.tokens[0].text=Hd+" "+Io.tokens[0].text,Io.tokens[0].tokens&&Io.tokens[0].tokens.length>0&&Io.tokens[0].tokens[0].type==="text"&&(Io.tokens[0].tokens[0].text=Hd+" "+Io.tokens[0].tokens[0].text)):Io.tokens.unshift({type:"text",text:Hd}):tr+=Hd),tr+=this.parse(Io.tokens,We),fi+=this.renderer.listitem(tr,Hs,la);qt+=this.renderer.list(fi,Se,Ci);continue}case"html":{qt+=this.renderer.html(de.text);continue}case"paragraph":{qt+=this.renderer.paragraph(this.parseInline(de.tokens));continue}case"text":{for(fi=de.tokens?this.parseInline(de.tokens):de.text;ur+1An error occurred:

    "+jl(Sa.message+"",!0)+"
    ";throw Sa}}Ht.options=Ht.setOptions=function(Ir){return $o(Ht.defaults,Ir),Ma(Ht.defaults),Ht},Ht.getDefaults=Lo,Ht.defaults=Ai,Ht.use=function(Ir){var Et=$o({},Ir);if(Ir.renderer&&function(){var ct=Ht.defaults.renderer||new nl,Ot=function(mr){var Sa=ct[mr];ct[mr]=function(){for(var Ji=arguments.length,nc=new Array(Ji),Fi=0;FiAn error occurred:

    "+jl(ct.message+"",!0)+"
    ";throw ct}},Ht.Parser=qo,Ht.parser=qo.parse,Ht.Renderer=nl,Ht.TextRenderer=wc,Ht.Lexer=ua,Ht.lexer=ua.lex,Ht.Tokenizer=jf,Ht.Slugger=No,Ht.parse=Ht;var Ss=Ht;return Ss})},90621:function(Nf){const D_=/[&<>"']/,Ta=/[&<>"']/g,bl=/[<>"']|&(?!#?\w+;)/,Yc=/[<>"']|&(?!#?\w+;)/g,ci={"&":"&","<":"<",">":">",'"':""","'":"'"},Bc=zi=>ci[zi];function U_(zi,xo){if(xo){if(D_.test(zi))return zi.replace(Ta,Bc)}else if(bl.test(zi))return zi.replace(Yc,Bc);return zi}const Bf=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function or(zi){return zi.replace(Bf,(xo,hs)=>(hs=hs.toLowerCase(),hs==="colon"?":":hs.charAt(0)==="#"?hs.charAt(1)==="x"?String.fromCharCode(parseInt(hs.substring(2),16)):String.fromCharCode(+hs.substring(1)):""))}const S0=/(^|[^\[])\^/g;function Dl(zi,xo){zi=zi.source||zi,xo=xo||"";const hs={replace:(Zn,cl)=>(cl=cl.source||cl,cl=cl.replace(S0,"$1"),zi=zi.replace(Zn,cl),hs),getRegex:()=>new RegExp(zi,xo)};return hs}const kp=/[^\w:]/g,Zu=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function rr(zi,xo,hs){if(zi){let Zn;try{Zn=decodeURIComponent(or(hs)).replace(kp,"").toLowerCase()}catch(cl){return null}if(Zn.indexOf("javascript:")===0||Zn.indexOf("vbscript:")===0||Zn.indexOf("data:")===0)return null}xo&&!Zu.test(hs)&&(hs=bo(xo,hs));try{hs=encodeURI(hs).replace(/%25/g,"%")}catch(Zn){return null}return hs}const Co={},Nr=/^[^:]+:\/*[^/]*$/,Vt=/^([^:]+:)[\s\S]*$/,Gl=/^([^:]+:\/*[^/]*)[\s\S]*$/;function bo(zi,xo){Co[" "+zi]||(Nr.test(zi)?Co[" "+zi]=zi+"/":Co[" "+zi]=np(zi,"/",!0)),zi=Co[" "+zi];const hs=zi.indexOf(":")===-1;return xo.substring(0,2)==="//"?hs?xo:zi.replace(Vt,"$1")+xo:xo.charAt(0)==="/"?hs?xo:zi.replace(Gl,"$1")+xo:zi+xo}const Lu={exec:function(){}};function V_(zi){let xo=1,hs,Zn;for(;xo{let kd=!1,vu=ef;for(;--vu>=0&&Mn[vu]==="\\";)kd=!kd;return kd?"|":" |"}),Zn=hs.split(/ \|/);let cl=0;if(Zn.length>xo)Zn.splice(xo);else for(;Zn.length1;)xo&1&&(hs+=zi),xo>>=1,zi+=zi;return hs+zi}Nf.exports={escape:U_,unescape:or,edit:Dl,cleanUrl:rr,resolveUrl:bo,noopTest:Lu,merge:V_,splitCells:Bl,rtrim:np,findClosingBracket:yn,checkSanitizeDeprecation:on,repeatString:rl}},55423:function(Nf,D_,Ta){"use strict";var bl="/index.js",Yc="/",ci=Ta(34155);var Bc=(()=>{var U_=Object.defineProperty,Bf=Object.getOwnPropertyNames,or=(e,t)=>function(){return e&&(t=(0,e[Bf(e)[0]])(e=0)),t},S0=(e,t)=>function(){return t||(0,e[Bf(e)[0]])((t={exports:{}}).exports,t),t.exports},Dl=(e,t)=>{for(var n in t)U_(e,n,{get:t[n],enumerable:!0})},kp,Zu,rr,Co=or({"src/compiler/corePublic.ts"(){"use strict";kp="5.1",Zu="5.1.6",rr=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(rr||{})}});function Nr(e){return e?e.length:0}function Vt(e,t){if(e)for(let n=0;n=0;n--){const i=t(e[n],n);if(i)return i}}function bo(e,t){if(e!==void 0)for(let n=0;n=0;i--){const s=e[i];if(t(s,i))return s}}function zi(e,t,n){if(e===void 0)return-1;for(let i=n!=null?n:0;i=0;i--)if(t(e[i],i))return i;return-1}function hs(e,t){for(let n=0;nn(i,t[s]))}function Lm(e,t,n){for(let i=n||0;i{const o=t(s,i);if(o!==void 0){const[l,f]=o;l!==void 0&&f!==void 0&&n.set(l,f)}}),n}function $d(e,t,n){if(e.has(t))return e.get(t);const i=n();return e.set(t,i),i}function bu(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Km(e){yield e}function xl(e,t,n){let i;if(e){i=[];const s=e.length;let o,l,f=0,_=0;for(;f{const[o,l]=t(s,i);n.set(o,l)}),n}function bt(e,t){if(e)if(t){for(const n of e)if(t(n))return!0}else return e.length>0;return!1}function ua(e,t,n){let i;for(let s=0;se[l])}function wc(e,t){const n=[];for(const i of e)kr(n,i,t);return n}function No(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?nl(e,t,n):wc(e,t)}function Yu(e,t){if(e.length===0)return tt;let n=e[0];const i=[n];for(let s=1;s0&&(s&=-2),s&2&&i(o,_)>0&&(s&=-3),o=_}return s}function Lo(e,t,n=Dg){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&D.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const l=s;sl&&D.assertGreaterThanOrEqual(n(e[s],e[s-1]),0),n(t[o],e[s])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return i}function Ht(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Ss(e,t){return e===void 0?t:t===void 0?e:ns(e)?ns(t)?Nn(e,t):Ht(e,t):ns(t)?Ht(t,e):[e,t]}function Ir(e,t){return t<0?e.length+t:t}function Et(e,t,n,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,i);n=n===void 0?0:Ir(t,n),i=i===void 0?t.length:Ir(t,i);for(let s=n;sn(e[i],e[s])||Uc(i,s))}function qt(e,t){return e.length===0?e:e.slice().sort(t)}function*ur(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function mr(e,t){const n=rc(e);return Ot(e,n,t),n.map(i=>e[i])}function Sa(e,t,n,i){for(;n>1),_=n(e[f],f);switch(i(_,t)){case-1:o=f+1;break;case 0:return f;case 1:l=f-1;break}}return~o}function la(e,t,n,i,s){if(e&&e.length>0){const o=e.length;if(o>0){let l=i===void 0||i<0?0:i;const f=s===void 0||l+s>o-1?o-1:l+s;let _;for(arguments.length<=2?(_=e[l],l++):_=n;l<=f;)_=t(_,e[l],l),l++;return _}}return n}function Hs(e,t){return m1.call(e,t)}function Hd(e,t){return m1.call(e,t)?e[t]:void 0}function eo(e){const t=[];for(const n in e)m1.call(e,n)&&t.push(n);return t}function __(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const i of n)kr(t,i)}while(e=Object.getPrototypeOf(e));return t}function If(e){const t=[];for(const n in e)m1.call(e,n)&&t.push(e[n]);return t}function H2(e,t){const n=new Array(e);for(let i=0;i100&&n>t.length>>1){const f=t.length-n;t.copyWithin(0,n),t.length=f,n=0}return l}return{enqueue:s,dequeue:o,isEmpty:i}}function W1(e,t){const n=new Map;let i=0;function*s(){for(const l of n.values())ns(l)?yield*l:yield l}const o={has(l){const f=e(l);if(!n.has(f))return!1;const _=n.get(f);if(!ns(_))return t(_,l);for(const h of _)if(t(h,l))return!0;return!1},add(l){const f=e(l);if(n.has(f)){const _=n.get(f);if(ns(_))Zn(_,l,t)||(_.push(l),i++);else{const h=_;t(h,l)||(n.set(f,[h,l]),i++)}}else n.set(f,l),i++;return this},delete(l){const f=e(l);if(!n.has(f))return!1;const _=n.get(f);if(ns(_)){for(let h=0;h<_.length;h++)if(t(_[h],l))return _.length===1?n.delete(f):_.length===2?n.set(f,_[1-h]):t5(_,h),i--,!0}else if(t(_,l))return n.delete(f),i--,!0;return!1},clear(){n.clear(),i=0},get size(){return i},forEach(l){for(const f of zt(n.values()))if(ns(f))for(const _ of f)l(_,_,o);else{const _=f;l(_,_,o)}},keys(){return s()},values(){return s()},*entries(){for(const l of s())yield[l,l]},[Symbol.iterator]:()=>s(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function ns(e){return Array.isArray(e)}function pm(e){return ns(e)?e:[e]}function bs(e){return typeof e=="string"}function Gd(e){return typeof e=="number"}function di(e,t){return e!==void 0&&t(e)?e:void 0}function Ws(e,t){return e!==void 0&&t(e)?e:D.fail(`Invalid cast. The supplied value ${e} did not pass the test '${D.getFunctionName(t)}'.`)}function Ho(e){}function Rm(){return!1}function Cp(){return!0}function W_(){}function Jc(e){return e}function jT(e){return e.toLowerCase()}function Cd(e){return s5.test(e)?e.replace(s5,jT):e}function xs(){throw new Error("Not implemented")}function q_(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function f_(e){const t=new Map;return n=>{const i=`${typeof n}:${n}`;let s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(n),t.set(i,s)),s}}function Dx(e){const t=new WeakMap;return n=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(n),t.set(n,i)),i}}function d4(e,t){return(...n)=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(...n),t.set(n,i)),i}}function Z2(e,t,n,i,s){if(s){const o=[];for(let l=0;lla(o,(f,_)=>_(f),l)}else return i?o=>i(n(t(e(o)))):n?o=>n(t(e(o))):t?o=>t(e(o)):e?o=>e(o):o=>o}function Dg(e,t){return e===t}function C0(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function q1(e,t){return Dg(e,t)}function Nx(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(n,i)===-1?n:i)}function X0(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function Ix(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function tn(e,t){return Nx(e,t)}function $_(e){return e?X0:tn}function f1(){return h4}function Of(e){h4!==e&&(h4=e,Il=void 0)}function Go(e,t){return(Il||(Il=G1(h4)))(e,t)}function cn(e,t,n,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[n],t[n])}function ka(e,t){return Uc(e?1:0,t?1:0)}function ds(e,t,n){const i=Math.max(2,Math.floor(e.length*.34));let s=Math.floor(e.length*.4)+1,o;for(const l of t){const f=n(l);if(f!==void 0&&Math.abs(f.length-e.length)<=i){if(f===e||f.length<3&&f.toLowerCase()!==e.toLowerCase())continue;const _=p_(e,f,s-.1);if(_===void 0)continue;D.assert(_n?f-n:1),m=Math.floor(t.length>n+f?n+f:t.length);s[0]=f;let y=f;for(let k=1;kn)return;const T=i;i=s,s=T}const l=i[t.length];return l>n?void 0:l}function gi(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function Uf(e,t){return gi(e,t)?e.slice(0,e.length-t.length):e}function rf(e,t){return gi(e,t)?e.slice(0,e.length-t.length):void 0}function Qo(e,t){return e.indexOf(t)!==-1}function Ng(e){let t=e.length;for(let n=t-1;n>0;n--){let i=e.charCodeAt(n);if(i>=48&&i<=57)do--n,i=e.charCodeAt(n);while(n>0&&i>=48&&i<=57);else if(n>4&&(i===110||i===78)){if(--n,i=e.charCodeAt(n),i!==105&&i!==73||(--n,i=e.charCodeAt(n),i!==109&&i!==77))break;--n,i=e.charCodeAt(n)}else break;if(i!==45&&i!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function m4(e,t){for(let n=0;nn===t)}function dm(e,t){for(let n=0;ns&&(s=l.prefix.length,i=o)}return i}function Ga(e,t){return e.lastIndexOf(t,0)===0}function cu(e,t){return Ga(e,t)?e.substr(t.length):e}function z6(e,t,n=Jc){return Ga(n(e),n(t))?e.substring(t.length):void 0}function Vh({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Ga(n,e)&&gi(n,t)}function Mx(e,t){return n=>e(n)&&t(n)}function Mf(...e){return(...t)=>{let n;for(const i of e)if(n=i(...t),n)return n;return n}}function H1(e){return(...t)=>!e(...t)}function sD(e){}function pa(e){return e===void 0?void 0:[e]}function p1(e,t,n,i,s,o){o=o||Ho;let l=0,f=0;const _=e.length,h=t.length;let m=!1;for(;l<_&&f=0&&Zh(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function i5(){return typeof ci!="undefined"&&!!ci.nextTick&&!ci.browser&&!0}var tt,JT,sw,a5,d1,m1,s5,o5,G1,Il,h4,g1,X1,y4,ow=or({"src/compiler/core.ts"(){"use strict";ho(),tt=[],JT=new Map,sw=new Set,a5=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(a5||{}),d1=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=Ir(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(o5||{}),G1=(()=>{let e,t;const n=f();return _;function i(h,m,y){if(h===m)return 0;if(h===void 0)return-1;if(m===void 0)return 1;const T=y(h,m);return T<0?-1:T>0?1:0}function s(h){const m=new Intl.Collator(h,{usage:"sort",sensitivity:"variant"}).compare;return(y,T)=>i(y,T,m)}function o(h){if(h!==void 0)return l();return(y,T)=>i(y,T,m);function m(y,T){return y.localeCompare(T)}}function l(){return(y,T)=>i(y,T,h);function h(y,T){return m(y.toUpperCase(),T.toUpperCase())||m(y,T)}function m(y,T){return yT?1:0}}function f(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?s:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?o:l}function _(h){return h===void 0?e||(e=n(h)):h==="en-US"?t||(t=n(h)):n(h)}})(),g1=String.prototype.trim?e=>e.trim():e=>X1(y4(e)),X1=String.prototype.trimEnd?e=>e.trimEnd():n5,y4=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),w0,D,cw=or({"src/compiler/debug.ts"(){"use strict";ho(),ho(),w0=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(w0||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(Yt){return e.currentLogLevel<=Yt}e.shouldLog=n;function i(Yt,Qr){e.loggingHost&&n(Yt)&&e.loggingHost.log(Yt,Qr)}function s(Yt){i(3,Yt)}e.log=s,(Yt=>{function Qr(Ca){i(1,Ca)}Yt.error=Qr;function $r(Ca){i(2,Ca)}Yt.warn=$r;function Fn(Ca){i(3,Ca)}Yt.log=Fn;function ja(Ca){i(4,Ca)}Yt.trace=ja})(s=e.log||(e.log={}));const o={};function l(){return t}e.getAssertionLevel=l;function f(Yt){const Qr=t;if(t=Yt,Yt>Qr)for(const $r of eo(o)){const Fn=o[$r];Fn!==void 0&&e[$r]!==Fn.assertion&&Yt>=Fn.level&&(e[$r]=Fn,o[$r]=void 0)}}e.setAssertionLevel=f;function _(Yt){return t>=Yt}e.shouldAssert=_;function h(Yt,Qr){return _(Yt)?!0:(o[Qr]={level:Yt,assertion:e[Qr]},e[Qr]=Ho,!1)}function m(Yt,Qr){debugger;const $r=new Error(Yt?`Debug Failure. ${Yt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace($r,Qr||m),$r}e.fail=m;function y(Yt,Qr,$r){return m(`${Qr||"Unexpected node."}\r -Node ${Ze(Yt.kind)} was unexpected.`,$r||y)}e.failBadSyntaxKind=y;function T(Yt,Qr,$r,Fn){Yt||(Qr=Qr?`False expression: ${Qr}`:"False expression.",$r&&(Qr+=`\r -Verbose Debug Information: `+(typeof $r=="string"?$r:$r())),m(Qr,Fn||T))}e.assert=T;function k(Yt,Qr,$r,Fn,ja){if(Yt!==Qr){const Ca=$r?Fn?`${$r} ${Fn}`:$r:"";m(`Expected ${Yt} === ${Qr}. ${Ca}`,ja||k)}}e.assertEqual=k;function E(Yt,Qr,$r,Fn){Yt>=Qr&&m(`Expected ${Yt} < ${Qr}. ${$r||""}`,Fn||E)}e.assertLessThan=E;function O(Yt,Qr,$r){Yt>Qr&&m(`Expected ${Yt} <= ${Qr}`,$r||O)}e.assertLessThanOrEqual=O;function N(Yt,Qr,$r){Yt= ${Qr}`,$r||N)}e.assertGreaterThanOrEqual=N;function B(Yt,Qr,$r){Yt==null&&m(Qr,$r||B)}e.assertIsDefined=B;function U(Yt,Qr,$r){return B(Yt,Qr,$r||U),Yt}e.checkDefined=U;function V(Yt,Qr,$r){for(const Fn of Yt)B(Fn,Qr,$r||V)}e.assertEachIsDefined=V;function re(Yt,Qr,$r){return V(Yt,Qr,$r||re),Yt}e.checkEachDefined=re;function z(Yt,Qr="Illegal value:",$r){const Fn=typeof Yt=="object"&&Hs(Yt,"kind")&&Hs(Yt,"pos")?"SyntaxKind: "+Ze(Yt.kind):JSON.stringify(Yt);return m(`${Qr} ${Fn}`,$r||z)}e.assertNever=z;function ce(Yt,Qr,$r,Fn){h(1,"assertEachNode")&&T(Qr===void 0||yn(Yt,Qr),$r||"Unexpected node.",()=>`Node array did not pass test '${te(Qr)}'.`,Fn||ce)}e.assertEachNode=ce;function R(Yt,Qr,$r,Fn){h(1,"assertNode")&&T(Yt!==void 0&&(Qr===void 0||Qr(Yt)),$r||"Unexpected node.",()=>`Node ${Ze(Yt==null?void 0:Yt.kind)} did not pass test '${te(Qr)}'.`,Fn||R)}e.assertNode=R;function le(Yt,Qr,$r,Fn){h(1,"assertNotNode")&&T(Yt===void 0||Qr===void 0||!Qr(Yt),$r||"Unexpected node.",()=>`Node ${Ze(Yt.kind)} should not have passed test '${te(Qr)}'.`,Fn||le)}e.assertNotNode=le;function ae(Yt,Qr,$r,Fn){h(1,"assertOptionalNode")&&T(Qr===void 0||Yt===void 0||Qr(Yt),$r||"Unexpected node.",()=>`Node ${Ze(Yt==null?void 0:Yt.kind)} did not pass test '${te(Qr)}'.`,Fn||ae)}e.assertOptionalNode=ae;function ye(Yt,Qr,$r,Fn){h(1,"assertOptionalToken")&&T(Qr===void 0||Yt===void 0||Yt.kind===Qr,$r||"Unexpected node.",()=>`Node ${Ze(Yt==null?void 0:Yt.kind)} was not a '${Ze(Qr)}' token.`,Fn||ye)}e.assertOptionalToken=ye;function $(Yt,Qr,$r){h(1,"assertMissingNode")&&T(Yt===void 0,Qr||"Unexpected node.",()=>`Node ${Ze(Yt.kind)} was unexpected'.`,$r||$)}e.assertMissingNode=$;function ee(Yt){}e.type=ee;function te(Yt){if(typeof Yt!="function")return"";if(Hs(Yt,"name"))return Yt.name;{const Qr=Function.prototype.toString.call(Yt),$r=/^function\s+([\w\$]+)\s*\(/.exec(Qr);return $r?$r[1]:""}}e.getFunctionName=te;function me(Yt){return`{ name: ${Ba(Yt.escapedName)}; flags: ${He(Yt.flags)}; declarations: ${er(Yt.declarations,Qr=>Ze(Qr.kind))} }`}e.formatSymbol=me;function ve(Yt=0,Qr,$r){const Fn=K(Qr);if(Yt===0)return Fn.length>0&&Fn[0][0]===0?Fn[0][1]:"0";if($r){const ja=[];let Ca=Yt;for(const[rn,wr]of Fn){if(rn>Yt)break;rn!==0&&rn&Yt&&(ja.push(wr),Ca&=~rn)}if(Ca===0)return ja.join("|")}else for(const[ja,Ca]of Fn)if(ja===Yt)return Ca;return Yt.toString()}e.formatEnum=ve;const we=new Map;function K(Yt){const Qr=we.get(Yt);if(Qr)return Qr;const $r=[];for(const ja in Yt){const Ca=Yt[ja];typeof Ca=="number"&&$r.push([Ca,ja])}const Fn=mr($r,(ja,Ca)=>Uc(ja[0],Ca[0]));return we.set(Yt,Fn),Fn}function Ze(Yt){return ve(Yt,Wx,!1)}e.formatSyntaxKind=Ze;function Re(Yt){return ve(Yt,C,!1)}e.formatSnippetKind=Re;function Fe(Yt){return ve(Yt,qx,!0)}e.formatNodeFlags=Fe;function Ue(Yt){return ve(Yt,$x,!0)}e.formatModifierFlags=Ue;function Ae(Yt){return ve(Yt,j,!0)}e.formatTransformFlags=Ae;function Me(Yt){return ve(Yt,I,!0)}e.formatEmitFlags=Me;function He(Yt){return ve(Yt,Ao,!0)}e.formatSymbolFlags=He;function je(Yt){return ve(Yt,Tc,!0)}e.formatTypeFlags=je;function Pe(Yt){return ve(Yt,Ru,!0)}e.formatSignatureFlags=Pe;function nt(Yt){return ve(Yt,Sc,!0)}e.formatObjectFlags=nt;function wt(Yt){return ve(Yt,lt,!0)}e.formatFlowFlags=wt;function xt(Yt){return ve(Yt,W6,!0)}e.formatRelationComparisonResult=xt;function Zt(Yt){return ve(Yt,zB,!0)}e.formatCheckMode=Zt;function Qe(Yt){return ve(Yt,JB,!0)}e.formatSignatureCheckMode=Qe;function Mt(Yt){return ve(Yt,BB,!0)}e.formatTypeFacts=Mt;let yr=!1,Cr;function Lt(Yt){"__debugFlowFlags"in Yt||Object.defineProperties(Yt,{__tsDebuggerDisplay:{value(){const Qr=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",$r=this.flags&~(2048-1);return`${Qr}${$r?` (${wt($r)})`:""}`}},__debugFlowFlags:{get(){return ve(this.flags,lt,!0)}},__debugToString:{value(){return Ar(this)}}})}function an(Yt){yr&&(typeof Object.setPrototypeOf=="function"?(Cr||(Cr=Object.create(Object.prototype),Lt(Cr)),Object.setPrototypeOf(Yt,Cr)):Lt(Yt))}e.attachFlowNodeDebugInfo=an;let xn;function Lr(Yt){"__tsDebuggerDisplay"in Yt||Object.defineProperties(Yt,{__tsDebuggerDisplay:{value(Qr){return Qr=String(Qr).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Qr}`}}})}function In(Yt){yr&&(typeof Object.setPrototypeOf=="function"?(xn||(xn=Object.create(Array.prototype),Lr(xn)),Object.setPrototypeOf(Yt,xn)):Lr(Yt))}e.attachNodeArrayDebugInfo=In;function vi(){if(yr)return;const Yt=new WeakMap,Qr=new WeakMap;Object.defineProperties(bf.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const Fn=this.flags&33554432?"TransientSymbol":"Symbol",ja=this.flags&-33554433;return`${Fn} '${Bu(this)}'${ja?` (${He(ja)})`:""}`}},__debugFlags:{get(){return He(this.flags)}}}),Object.defineProperties(bf.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const Fn=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${this.intrinsicName}`:this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",ja=this.flags&524288?this.objectFlags&-1344:0;return`${Fn}${this.symbol?` '${Bu(this.symbol)}'`:""}${ja?` (${nt(ja)})`:""}`}},__debugFlags:{get(){return je(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?nt(this.objectFlags):""}},__debugTypeToString:{value(){let Fn=Yt.get(this);return Fn===void 0&&(Fn=this.checker.typeToString(this),Yt.set(this,Fn)),Fn}}}),Object.defineProperties(bf.getSignatureConstructor().prototype,{__debugFlags:{get(){return Pe(this.flags)}},__debugSignatureToString:{value(){var Fn;return(Fn=this.checker)==null?void 0:Fn.signatureToString(this)}}});const $r=[bf.getNodeConstructor(),bf.getIdentifierConstructor(),bf.getTokenConstructor(),bf.getSourceFileConstructor()];for(const Fn of $r)Hs(Fn.prototype,"__debugKind")||Object.defineProperties(Fn.prototype,{__tsDebuggerDisplay:{value(){return`${uu(this)?"GeneratedIdentifier":Be(this)?`Identifier '${ri(this)}'`:Ea(this)?`PrivateIdentifier '${ri(this)}'`:sc(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Um(this)?`NumericLiteral ${this.text}`:OR(this)?`BigIntLiteral ${this.text}n`:eu(this)?"TypeParameterDeclaration":Cs(this)?"ParameterDeclaration":Uu(this)?"ConstructorDeclaration":sg(this)?"GetAccessorDeclaration":u0(this)?"SetAccessorDeclaration":Ck(this)?"CallSignatureDeclaration":iI(this)?"ConstructSignatureDeclaration":x7(this)?"IndexSignatureDeclaration":RR(this)?"TypePredicateNode":Rg(this)?"TypeReferenceNode":uy(this)?"FunctionTypeNode":L9(this)?"ConstructorTypeNode":F9(this)?"TypeQueryNode":Sm(this)?"TypeLiteralNode":PG(this)?"ArrayTypeNode":wk(this)?"TupleTypeNode":OG(this)?"OptionalTypeNode":MG(this)?"RestTypeNode":ES(this)?"UnionTypeNode":aI(this)?"IntersectionTypeNode":Ek(this)?"ConditionalTypeNode":AS(this)?"InferTypeNode":DS(this)?"ParenthesizedTypeNode":BR(this)?"ThisTypeNode":NS(this)?"TypeOperatorNode":IS(this)?"IndexedAccessTypeNode":B9(this)?"MappedTypeNode":R4(this)?"LiteralTypeNode":R9(this)?"NamedTupleMember":Qy(this)?"ImportTypeNode":Ze(this.kind)}${this.flags?` (${Fe(this.flags)})`:""}`}},__debugKind:{get(){return Ze(this.kind)}},__debugNodeFlags:{get(){return Fe(this.flags)}},__debugModifierFlags:{get(){return Ue(a_e(this))}},__debugTransformFlags:{get(){return Ae(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Aw(this)}},__debugEmitFlags:{get(){return Me(_c(this))}},__debugGetText:{value(ja){if(Ol(this))return"";let Ca=Qr.get(this);if(Ca===void 0){const rn=gs(this),wr=rn&&bn(rn);Ca=wr?e3(wr,rn,ja):"",Qr.set(this,Ca)}return Ca}}});yr=!0}e.enableDebugInfo=vi;function ia(Yt){const Qr=Yt&7;let $r=Qr===0?"in out":Qr===3?"[bivariant]":Qr===2?"in":Qr===1?"out":Qr===4?"[independent]":"";return Yt&8?$r+=" (unmeasurable)":Yt&16&&($r+=" (unreliable)"),$r}e.formatVariance=ia;class Wa{__debugToString(){var Qr;switch(this.kind){case 3:return((Qr=this.debugInfo)==null?void 0:Qr.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Bl(this.sources,this.targets||er(this.sources,()=>"any"),($r,Fn)=>`${$r.__debugTypeToString()} -> ${typeof Fn=="string"?Fn:Fn.__debugTypeToString()}`).join(", ");case 2:return Bl(this.sources,this.targets,($r,Fn)=>`${$r.__debugTypeToString()} -> ${Fn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` -`).join(` - `)} -m2: ${this.mapper2.__debugToString().split(` -`).join(` - `)}`;default:return z(this)}}}e.DebugTypeMapper=Wa;function bi(Yt){return e.isDebugging?Object.setPrototypeOf(Yt,Wa.prototype):Yt}e.attachDebugPrototypeIfDebug=bi;function Pt(Yt){return console.log(Ar(Yt))}e.printControlFlowGraph=Pt;function Ar(Yt){let Qr=-1;function $r(ue){return ue.id||(ue.id=Qr,Qr--),ue.id}let Fn;(ue=>{ue.lr="\u2500",ue.ud="\u2502",ue.dr="\u256D",ue.dl="\u256E",ue.ul="\u256F",ue.ur="\u2570",ue.udr="\u251C",ue.udl="\u2524",ue.dlr="\u252C",ue.ulr="\u2534",ue.udlr="\u256B"})(Fn||(Fn={}));let ja;(ue=>{ue[ue.None=0]="None",ue[ue.Up=1]="Up",ue[ue.Down=2]="Down",ue[ue.Left=4]="Left",ue[ue.Right=8]="Right",ue[ue.UpDown=3]="UpDown",ue[ue.LeftRight=12]="LeftRight",ue[ue.UpLeft=5]="UpLeft",ue[ue.UpRight=9]="UpRight",ue[ue.DownLeft=6]="DownLeft",ue[ue.DownRight=10]="DownRight",ue[ue.UpDownLeft=7]="UpDownLeft",ue[ue.UpDownRight=11]="UpDownRight",ue[ue.UpLeftRight=13]="UpLeftRight",ue[ue.DownLeftRight=14]="DownLeftRight",ue[ue.UpDownLeftRight=15]="UpDownLeftRight",ue[ue.NoChildren=16]="NoChildren"})(ja||(ja={}));const Ca=2032,rn=882,wr=Object.create(null),ln=[],Kr=[],Li=Q(Yt,new Set);for(const ue of ln)ue.text=Yn(ue.flowNode,ue.circular),fr(ue);const ot=Ne(Li),Tt=$t(ot);return Jt(Li,0),Jn();function it(ue){return!!(ue.flags&128)}function Wt(ue){return!!(ue.flags&12)&&!!ue.antecedents}function nr(ue){return!!(ue.flags&Ca)}function Y(ue){return!!(ue.flags&rn)}function Ge(ue){const _e=[];for(const pe of ue.edges)pe.source===ue&&_e.push(pe.target);return _e}function dt(ue){const _e=[];for(const pe of ue.edges)pe.target===ue&&_e.push(pe.source);return _e}function Q(ue,_e){const pe=$r(ue);let q=wr[pe];if(q&&_e.has(ue))return q.circular=!0,q={id:-1,flowNode:ue,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},ln.push(q),q;if(_e.add(ue),!q)if(wr[pe]=q={id:pe,flowNode:ue,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},ln.push(q),Wt(ue))for(const rt of ue.antecedents)at(q,rt,_e);else nr(ue)&&at(q,ue.antecedent,_e);return _e.delete(ue),q}function at(ue,_e,pe){const q=Q(_e,pe),rt={source:ue,target:q};Kr.push(rt),ue.edges.push(rt),q.edges.push(rt)}function fr(ue){if(ue.level!==-1)return ue.level;let _e=0;for(const pe of dt(ue))_e=Math.max(_e,fr(pe)+1);return ue.level=_e}function Ne(ue){let _e=0;for(const pe of Ge(ue))_e=Math.max(_e,Ne(pe));return _e+1}function $t(ue){const _e=ge(Array(ue),0);for(const pe of ln)_e[pe.level]=Math.max(_e[pe.level],pe.text.length);return _e}function Jt(ue,_e){if(ue.lane===-1){ue.lane=_e,ue.endLane=_e;const pe=Ge(ue);for(let q=0;q0&&_e++;const rt=pe[q];Jt(rt,_e),rt.endLane>ue.endLane&&(_e=rt.endLane)}ue.endLane=_e}}function Pr(ue){if(ue&2)return"Start";if(ue&4)return"Branch";if(ue&8)return"Loop";if(ue&16)return"Assignment";if(ue&32)return"True";if(ue&64)return"False";if(ue&128)return"SwitchClause";if(ue&256)return"ArrayMutation";if(ue&512)return"Call";if(ue&1024)return"ReduceLabel";if(ue&1)return"Unreachable";throw new Error}function li(ue){const _e=bn(ue);return e3(_e,ue,!1)}function Yn(ue,_e){let pe=Pr(ue.flags);if(_e&&(pe=`${pe}#${$r(ue)}`),Y(ue))ue.node&&(pe+=` (${li(ue.node)})`);else if(it(ue)){const q=[];for(let rt=ue.clauseStart;rtMath.max(st,Ft.lane),0)+1,pe=ge(Array(_e),""),q=Tt.map(()=>Array(_e)),rt=Tt.map(()=>ge(Array(_e),0));for(const st of ln){q[st.level][st.lane]=st;const Ft=Ge(st);for(let En=0;En0&&(Ui|=1),En0&&(Ui|=1),En0?rt[st-1][Ft]:0,En=Ft>0?rt[st][Ft-1]:0;let Ti=rt[st][Ft];Ti||(zr&8&&(Ti|=12),En&2&&(Ti|=3),rt[st][Ft]=Ti)}for(let st=0;st0?ue.repeat(_e):"";let pe="";for(;pe.length<_e;)pe+=ue;return pe}}e.formatControlFlowGraph=Ar})(D||(D={}))}});function Bm(e){const t=Fv.exec(e);if(!t)return;const[,n,i="0",s="0",o="",l=""]=t;if(!(o&&!_5.test(o))&&!(l&&!oD.test(l)))return{major:parseInt(n,10),minor:parseInt(i,10),patch:parseInt(s,10),prerelease:o,build:l}}function Fx(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;const n=Math.min(e.length,t.length);for(let i=0;i=",i.version)),wd(s.major)||n.push(wd(s.minor)?e0("<",s.version.increment("major")):wd(s.patch)?e0("<",s.version.increment("minor")):e0("<=",s.version)),!0):!1}function lw(e,t,n){const i=Rx(t);if(!i)return!1;const{version:s,major:o,minor:l,patch:f}=i;if(wd(o))(e==="<"||e===">")&&n.push(e0("<",Ed.zero));else switch(e){case"~":n.push(e0(">=",s)),n.push(e0("<",s.increment(wd(l)?"major":"minor")));break;case"^":n.push(e0(">=",s)),n.push(e0("<",s.increment(s.major>0||wd(l)?"major":s.minor>0||wd(f)?"minor":"patch")));break;case"<":case">=":n.push(wd(l)||wd(f)?e0(e,s.with({prerelease:"0"})):e0(e,s));break;case"<=":case">":n.push(wd(l)?e0(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):wd(f)?e0(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):e0(e,s));break;case"=":case void 0:wd(l)||wd(f)?(n.push(e0(">=",s.with({prerelease:"0"}))),n.push(e0("<",s.increment(wd(l)?"major":"minor").with({prerelease:"0"})))):n.push(e0("=",s));break;default:return!1}return!0}function wd(e){return e==="*"||e==="x"||e==="X"}function e0(e,t){return{operator:e,operand:t}}function uw(e,t){if(t.length===0)return!0;for(const n of t)if(_w(e,n))return!0;return!1}function _w(e,t){for(const n of t)if(!u5(e,n.operator,n.operand))return!1;return!0}function u5(e,t,n){const i=e.compareTo(n);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return D.assertNever(t)}}function Bx(e){return er(e,fw).join(" || ")||"*"}function fw(e){return er(e,UT).join(" ")}function UT(e){return`${e.operator}${e.operand}`}var Fv,_5,f5,oD,pw,jx,Rv,Ed,Bv,VT,dw,p5,WT,qT,d5=or({"src/compiler/semver.ts"(){"use strict";ho(),Fv=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,_5=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,f5=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,oD=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,pw=/^[a-z0-9-]+$/i,jx=/^(0|[1-9]\d*)$/,Rv=class{constructor(e,t=0,n=0,i="",s=""){typeof e=="string"&&({major:e,minor:t,patch:n,prerelease:i,build:s}=D.checkDefined(Bm(e),"Invalid version")),D.assert(e>=0,"Invalid argument: major"),D.assert(t>=0,"Invalid argument: minor"),D.assert(n>=0,"Invalid argument: patch");const o=i?ns(i)?i:i.split("."):tt,l=s?ns(s)?s:s.split("."):tt;D.assert(yn(o,f=>f5.test(f)),"Invalid argument: prerelease"),D.assert(yn(l,f=>pw.test(f)),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=o,this.build=l}static tryParse(e){const t=Bm(e);if(!t)return;const{major:n,minor:i,patch:s,prerelease:o,build:l}=t;return new Rv(n,i,s,o,l)}compareTo(e){return this===e?0:e===void 0?1:Uc(this.major,e.major)||Uc(this.minor,e.minor)||Uc(this.patch,e.patch)||Fx(this.prerelease,e.prerelease)}increment(e){switch(e){case"major":return new Rv(this.major+1,0,0);case"minor":return new Rv(this.major,this.minor+1,0);case"patch":return new Rv(this.major,this.minor,this.patch+1);default:return D.assertNever(e)}}with(e){const{major:t=this.major,minor:n=this.minor,patch:i=this.patch,prerelease:s=this.prerelease,build:o=this.build}=e;return new Rv(t,n,i,s,o)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return bt(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),bt(this.build)&&(e+=`+${this.build.join(".")}`),e}},Ed=Rv,Ed.zero=new Rv(0,0,0,["0"]),Bv=class{constructor(e){this._alternatives=e?D.checkDefined(c5(e),"Invalid range spec."):tt}static tryParse(e){const t=c5(e);if(t){const n=new Bv("");return n._alternatives=t,n}}test(e){return typeof e=="string"&&(e=new Ed(e)),uw(e,this._alternatives)}toString(){return Bx(this._alternatives)}},VT=/\|\|/g,dw=/\s+/g,p5=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,WT=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,qT=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function $T(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function sL(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&$T(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function mw(){if(i5())try{const{performance:e,PerformanceObserver:t}=Ta(Object(function(){var i=new Error("Cannot find module 'perf_hooks'");throw i.code="MODULE_NOT_FOUND",i}()));if($T(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch(e){}}function J6(){return zx}var zx,v4,Tl,cD=or({"src/compiler/performanceCore.ts"(){"use strict";ho(),zx=sL()||mw(),v4=zx==null?void 0:zx.performance,Tl=v4?()=>v4.now():Date.now?Date.now:()=>+new Date}}),Jx,jm,lD=or({"src/compiler/perfLogger.ts"(){var e;"use strict";try{const t=(e={NODE_ENV:"production",PUBLIC_PATH:"/"}.TS_ETW_MODULE_PATH)!=null?e:"./node_modules/@microsoft/typescript-etw";Jx=Ta(13411)(t)}catch(t){Jx=void 0}jm=Jx!=null&&Jx.logEvent?Jx:void 0}});function m5(e,t,n,i){return e?Ux(t,n,i):b4}function Ux(e,t,n){let i=0;return{enter:s,exit:o};function s(){++i===1&&Kc(t)}function o(){--i===0?(Kc(n),I_(e,t,n)):i<0&&D.fail("enter/exit count does not match.")}}function Kc(e){var t;if(qh){const n=(t=E0.get(e))!=null?t:0;E0.set(e,n+1),Ry.set(e,Tl()),Wh==null||Wh.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function I_(e,t,n){var i,s;if(qh){const o=(i=n!==void 0?Ry.get(n):void 0)!=null?i:Tl(),l=(s=t!==void 0?Ry.get(t):void 0)!=null?s:Y1,f=jv.get(e)||0;jv.set(e,f+(o-l)),Wh==null||Wh.measure(e,t,n)}}function g5(e){return E0.get(e)||0}function gw(e){return jv.get(e)||0}function h5(e){jv.forEach((t,n)=>e(n,t))}function hw(e){Ry.forEach((t,n)=>e(n))}function y5(e){e!==void 0?jv.delete(e):jv.clear(),Wh==null||Wh.clearMeasures(e)}function v5(e){e!==void 0?(E0.delete(e),Ry.delete(e)):(E0.clear(),Ry.clear()),Wh==null||Wh.clearMarks(e)}function uD(){return qh}function Z1(e=Cu){var t;return qh||(qh=!0,kt||(kt=J6()),kt&&(Y1=kt.performance.timeOrigin,(kt.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(Wh=kt.performance))),!0}function yw(){qh&&(Ry.clear(),E0.clear(),jv.clear(),Wh=void 0,qh=!1)}var kt,Wh,b4,qh,Y1,Ry,E0,jv,By=or({"src/compiler/performance.ts"(){"use strict";ho(),b4={enter:Ho,exit:Ho},qh=!1,Y1=Tl(),Ry=new Map,E0=new Map,jv=new Map}}),Vx={};Dl(Vx,{clearMarks:()=>v5,clearMeasures:()=>y5,createTimer:()=>Ux,createTimerIf:()=>m5,disable:()=>yw,enable:()=>Z1,forEachMark:()=>hw,forEachMeasure:()=>h5,getCount:()=>g5,getDuration:()=>gw,isEnabled:()=>uD,mark:()=>Kc,measure:()=>I_,nullTimer:()=>b4});var Q1=or({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";By()}}),Hi,U6,b5,x5,HT=or({"src/compiler/tracing.ts"(){"use strict";ho(),Q1(),(e=>{let t,n=0,i=0,s;const o=[];let l;const f=[];function _(R,le,ae){if(D.assert(!Hi,"Tracing already started"),t===void 0)try{t=Ta(62715)}catch(me){throw new Error(`tracing requires having fs -(original error: ${me.message||me})`)}s=R,o.length=0,l===void 0&&(l=ta(le,"legend.json")),t.existsSync(le)||t.mkdirSync(le,{recursive:!0});const ye=s==="build"?`.${ci.pid}-${++n}`:s==="server"?`.${ci.pid}`:"",$=ta(le,`trace${ye}.json`),ee=ta(le,`types${ye}.json`);f.push({configFilePath:ae,tracePath:$,typesPath:ee}),i=t.openSync($,"w"),Hi=e;const te={cat:"__metadata",ph:"M",ts:1e3*Tl(),pid:1,tid:1};t.writeSync(i,`[ -`+[fa({name:"process_name",args:{name:"tsc"}},te),fa({name:"thread_name",args:{name:"Main"}},te),Xs(fa({name:"TracingStartedInBrowser"},te),{cat:"disabled-by-default-devtools.timeline"})].map(me=>JSON.stringify(me)).join(`, -`))}e.startTracing=_;function h(){D.assert(Hi,"Tracing is not in progress"),D.assert(!!o.length==(s!=="server")),t.writeSync(i,` -] -`),t.closeSync(i),Hi=void 0,o.length?z(o):f[f.length-1].typesPath=void 0}e.stopTracing=h;function m(R){s!=="server"&&o.push(R)}e.recordType=m;let y;(R=>{R.Parse="parse",R.Program="program",R.Bind="bind",R.Check="check",R.CheckTypes="checkTypes",R.Emit="emit",R.Session="session"})(y=e.Phase||(e.Phase={}));function T(R,le,ae){V("I",R,le,ae,'"s":"g"')}e.instant=T;const k=[];function E(R,le,ae,ye=!1){ye&&V("B",R,le,ae),k.push({phase:R,name:le,args:ae,time:1e3*Tl(),separateBeginAndEnd:ye})}e.push=E;function O(R){D.assert(k.length>0),U(k.length-1,1e3*Tl(),R),k.length--}e.pop=O;function N(){const R=1e3*Tl();for(let le=k.length-1;le>=0;le--)U(le,R);k.length=0}e.popAll=N;const B=1e3*10;function U(R,le,ae){const{phase:ye,name:$,args:ee,time:te,separateBeginAndEnd:me}=k[R];me?(D.assert(!ae,"`results` are not supported for events with `separateBeginAndEnd`"),V("E",ye,$,ee,void 0,le)):B-te%B<=le-te&&V("X",ye,$,Xs(fa({},ee),{results:ae}),`"dur":${le-te}`,te)}function V(R,le,ae,ye,$,ee=1e3*Tl()){s==="server"&&le==="checkTypes"||(Kc("beginTracing"),t.writeSync(i,`, -{"pid":1,"tid":1,"ph":"${R}","cat":"${le}","ts":${ee},"name":"${ae}"`),$&&t.writeSync(i,`,${$}`),ye&&t.writeSync(i,`,"args":${JSON.stringify(ye)}`),t.writeSync(i,"}"),Kc("endTracing"),I_("Tracing","beginTracing","endTracing"))}function re(R){const le=bn(R);return le?{path:le.path,start:ae(Ql(le,R.pos)),end:ae(Ql(le,R.end))}:void 0;function ae(ye){return{line:ye.line+1,character:ye.character+1}}}function z(R){var Qe,Mt,yr;var le,ae,ye,$,ee,te,me,ve,we,K,Ze,Re,Fe,Ue,Ae,Me,He,je,Pe;Kc("beginDumpTypes");const nt=f[f.length-1].typesPath,wt=t.openSync(nt,"w"),xt=new Map;t.writeSync(wt,"[");const Zt=R.length;for(let Cr=0;CrFn.id),referenceLocation:re($r.node)}}let ia={};if(Lt.flags&16777216){const $r=Lt;ia={conditionalCheckType:(te=$r.checkType)==null?void 0:te.id,conditionalExtendsType:(me=$r.extendsType)==null?void 0:me.id,conditionalTrueType:(Mt=(ve=$r.resolvedTrueType)==null?void 0:ve.id)!=null?Mt:-1,conditionalFalseType:(yr=(we=$r.resolvedFalseType)==null?void 0:we.id)!=null?yr:-1}}let Wa={};if(Lt.flags&33554432){const $r=Lt;Wa={substitutionBaseType:(K=$r.baseType)==null?void 0:K.id,constraintType:(Ze=$r.constraint)==null?void 0:Ze.id}}let bi={};if(an&1024){const $r=Lt;bi={reverseMappedSourceType:(Re=$r.source)==null?void 0:Re.id,reverseMappedMappedType:(Fe=$r.mappedType)==null?void 0:Fe.id,reverseMappedConstraintType:(Ue=$r.constraintType)==null?void 0:Ue.id}}let Pt={};if(an&256){const $r=Lt;Pt={evolvingArrayElementType:$r.elementType.id,evolvingArrayFinalType:(Ae=$r.finalArrayType)==null?void 0:Ae.id}}let Ar;const Yt=Lt.checker.getRecursionIdentity(Lt);Yt&&(Ar=xt.get(Yt),Ar||(Ar=xt.size,xt.set(Yt,Ar)));const Qr=Xs(fa(fa(fa(fa(fa(fa({id:Lt.id,intrinsicName:Lt.intrinsicName,symbolName:(xn==null?void 0:xn.escapedName)&&Ba(xn.escapedName),recursionId:Ar,isTuple:an&8?!0:void 0,unionTypes:Lt.flags&1048576?(Me=Lt.types)==null?void 0:Me.map($r=>$r.id):void 0,intersectionTypes:Lt.flags&2097152?Lt.types.map($r=>$r.id):void 0,aliasTypeArguments:(He=Lt.aliasTypeArguments)==null?void 0:He.map($r=>$r.id),keyofType:Lt.flags&4194304?(je=Lt.type)==null?void 0:je.id:void 0},In),vi),ia),Wa),bi),Pt),{destructuringPattern:re(Lt.pattern),firstDeclaration:re((Pe=xn==null?void 0:xn.declarations)==null?void 0:Pe[0]),flags:D.formatTypeFlags(Lt.flags).split("|"),display:Lr});t.writeSync(wt,JSON.stringify(Qr)),Cr(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.FromKeyword=160]="FromKeyword",e[e.GlobalKeyword=161]="GlobalKeyword",e[e.BigIntKeyword=162]="BigIntKeyword",e[e.OverrideKeyword=163]="OverrideKeyword",e[e.OfKeyword=164]="OfKeyword",e[e.QualifiedName=165]="QualifiedName",e[e.ComputedPropertyName=166]="ComputedPropertyName",e[e.TypeParameter=167]="TypeParameter",e[e.Parameter=168]="Parameter",e[e.Decorator=169]="Decorator",e[e.PropertySignature=170]="PropertySignature",e[e.PropertyDeclaration=171]="PropertyDeclaration",e[e.MethodSignature=172]="MethodSignature",e[e.MethodDeclaration=173]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=174]="ClassStaticBlockDeclaration",e[e.Constructor=175]="Constructor",e[e.GetAccessor=176]="GetAccessor",e[e.SetAccessor=177]="SetAccessor",e[e.CallSignature=178]="CallSignature",e[e.ConstructSignature=179]="ConstructSignature",e[e.IndexSignature=180]="IndexSignature",e[e.TypePredicate=181]="TypePredicate",e[e.TypeReference=182]="TypeReference",e[e.FunctionType=183]="FunctionType",e[e.ConstructorType=184]="ConstructorType",e[e.TypeQuery=185]="TypeQuery",e[e.TypeLiteral=186]="TypeLiteral",e[e.ArrayType=187]="ArrayType",e[e.TupleType=188]="TupleType",e[e.OptionalType=189]="OptionalType",e[e.RestType=190]="RestType",e[e.UnionType=191]="UnionType",e[e.IntersectionType=192]="IntersectionType",e[e.ConditionalType=193]="ConditionalType",e[e.InferType=194]="InferType",e[e.ParenthesizedType=195]="ParenthesizedType",e[e.ThisType=196]="ThisType",e[e.TypeOperator=197]="TypeOperator",e[e.IndexedAccessType=198]="IndexedAccessType",e[e.MappedType=199]="MappedType",e[e.LiteralType=200]="LiteralType",e[e.NamedTupleMember=201]="NamedTupleMember",e[e.TemplateLiteralType=202]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=203]="TemplateLiteralTypeSpan",e[e.ImportType=204]="ImportType",e[e.ObjectBindingPattern=205]="ObjectBindingPattern",e[e.ArrayBindingPattern=206]="ArrayBindingPattern",e[e.BindingElement=207]="BindingElement",e[e.ArrayLiteralExpression=208]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=209]="ObjectLiteralExpression",e[e.PropertyAccessExpression=210]="PropertyAccessExpression",e[e.ElementAccessExpression=211]="ElementAccessExpression",e[e.CallExpression=212]="CallExpression",e[e.NewExpression=213]="NewExpression",e[e.TaggedTemplateExpression=214]="TaggedTemplateExpression",e[e.TypeAssertionExpression=215]="TypeAssertionExpression",e[e.ParenthesizedExpression=216]="ParenthesizedExpression",e[e.FunctionExpression=217]="FunctionExpression",e[e.ArrowFunction=218]="ArrowFunction",e[e.DeleteExpression=219]="DeleteExpression",e[e.TypeOfExpression=220]="TypeOfExpression",e[e.VoidExpression=221]="VoidExpression",e[e.AwaitExpression=222]="AwaitExpression",e[e.PrefixUnaryExpression=223]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=224]="PostfixUnaryExpression",e[e.BinaryExpression=225]="BinaryExpression",e[e.ConditionalExpression=226]="ConditionalExpression",e[e.TemplateExpression=227]="TemplateExpression",e[e.YieldExpression=228]="YieldExpression",e[e.SpreadElement=229]="SpreadElement",e[e.ClassExpression=230]="ClassExpression",e[e.OmittedExpression=231]="OmittedExpression",e[e.ExpressionWithTypeArguments=232]="ExpressionWithTypeArguments",e[e.AsExpression=233]="AsExpression",e[e.NonNullExpression=234]="NonNullExpression",e[e.MetaProperty=235]="MetaProperty",e[e.SyntheticExpression=236]="SyntheticExpression",e[e.SatisfiesExpression=237]="SatisfiesExpression",e[e.TemplateSpan=238]="TemplateSpan",e[e.SemicolonClassElement=239]="SemicolonClassElement",e[e.Block=240]="Block",e[e.EmptyStatement=241]="EmptyStatement",e[e.VariableStatement=242]="VariableStatement",e[e.ExpressionStatement=243]="ExpressionStatement",e[e.IfStatement=244]="IfStatement",e[e.DoStatement=245]="DoStatement",e[e.WhileStatement=246]="WhileStatement",e[e.ForStatement=247]="ForStatement",e[e.ForInStatement=248]="ForInStatement",e[e.ForOfStatement=249]="ForOfStatement",e[e.ContinueStatement=250]="ContinueStatement",e[e.BreakStatement=251]="BreakStatement",e[e.ReturnStatement=252]="ReturnStatement",e[e.WithStatement=253]="WithStatement",e[e.SwitchStatement=254]="SwitchStatement",e[e.LabeledStatement=255]="LabeledStatement",e[e.ThrowStatement=256]="ThrowStatement",e[e.TryStatement=257]="TryStatement",e[e.DebuggerStatement=258]="DebuggerStatement",e[e.VariableDeclaration=259]="VariableDeclaration",e[e.VariableDeclarationList=260]="VariableDeclarationList",e[e.FunctionDeclaration=261]="FunctionDeclaration",e[e.ClassDeclaration=262]="ClassDeclaration",e[e.InterfaceDeclaration=263]="InterfaceDeclaration",e[e.TypeAliasDeclaration=264]="TypeAliasDeclaration",e[e.EnumDeclaration=265]="EnumDeclaration",e[e.ModuleDeclaration=266]="ModuleDeclaration",e[e.ModuleBlock=267]="ModuleBlock",e[e.CaseBlock=268]="CaseBlock",e[e.NamespaceExportDeclaration=269]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=270]="ImportEqualsDeclaration",e[e.ImportDeclaration=271]="ImportDeclaration",e[e.ImportClause=272]="ImportClause",e[e.NamespaceImport=273]="NamespaceImport",e[e.NamedImports=274]="NamedImports",e[e.ImportSpecifier=275]="ImportSpecifier",e[e.ExportAssignment=276]="ExportAssignment",e[e.ExportDeclaration=277]="ExportDeclaration",e[e.NamedExports=278]="NamedExports",e[e.NamespaceExport=279]="NamespaceExport",e[e.ExportSpecifier=280]="ExportSpecifier",e[e.MissingDeclaration=281]="MissingDeclaration",e[e.ExternalModuleReference=282]="ExternalModuleReference",e[e.JsxElement=283]="JsxElement",e[e.JsxSelfClosingElement=284]="JsxSelfClosingElement",e[e.JsxOpeningElement=285]="JsxOpeningElement",e[e.JsxClosingElement=286]="JsxClosingElement",e[e.JsxFragment=287]="JsxFragment",e[e.JsxOpeningFragment=288]="JsxOpeningFragment",e[e.JsxClosingFragment=289]="JsxClosingFragment",e[e.JsxAttribute=290]="JsxAttribute",e[e.JsxAttributes=291]="JsxAttributes",e[e.JsxSpreadAttribute=292]="JsxSpreadAttribute",e[e.JsxExpression=293]="JsxExpression",e[e.JsxNamespacedName=294]="JsxNamespacedName",e[e.CaseClause=295]="CaseClause",e[e.DefaultClause=296]="DefaultClause",e[e.HeritageClause=297]="HeritageClause",e[e.CatchClause=298]="CatchClause",e[e.AssertClause=299]="AssertClause",e[e.AssertEntry=300]="AssertEntry",e[e.ImportTypeAssertionContainer=301]="ImportTypeAssertionContainer",e[e.PropertyAssignment=302]="PropertyAssignment",e[e.ShorthandPropertyAssignment=303]="ShorthandPropertyAssignment",e[e.SpreadAssignment=304]="SpreadAssignment",e[e.EnumMember=305]="EnumMember",e[e.UnparsedPrologue=306]="UnparsedPrologue",e[e.UnparsedPrepend=307]="UnparsedPrepend",e[e.UnparsedText=308]="UnparsedText",e[e.UnparsedInternalText=309]="UnparsedInternalText",e[e.UnparsedSyntheticReference=310]="UnparsedSyntheticReference",e[e.SourceFile=311]="SourceFile",e[e.Bundle=312]="Bundle",e[e.UnparsedSource=313]="UnparsedSource",e[e.InputFiles=314]="InputFiles",e[e.JSDocTypeExpression=315]="JSDocTypeExpression",e[e.JSDocNameReference=316]="JSDocNameReference",e[e.JSDocMemberName=317]="JSDocMemberName",e[e.JSDocAllType=318]="JSDocAllType",e[e.JSDocUnknownType=319]="JSDocUnknownType",e[e.JSDocNullableType=320]="JSDocNullableType",e[e.JSDocNonNullableType=321]="JSDocNonNullableType",e[e.JSDocOptionalType=322]="JSDocOptionalType",e[e.JSDocFunctionType=323]="JSDocFunctionType",e[e.JSDocVariadicType=324]="JSDocVariadicType",e[e.JSDocNamepathType=325]="JSDocNamepathType",e[e.JSDoc=326]="JSDoc",e[e.JSDocComment=326]="JSDocComment",e[e.JSDocText=327]="JSDocText",e[e.JSDocTypeLiteral=328]="JSDocTypeLiteral",e[e.JSDocSignature=329]="JSDocSignature",e[e.JSDocLink=330]="JSDocLink",e[e.JSDocLinkCode=331]="JSDocLinkCode",e[e.JSDocLinkPlain=332]="JSDocLinkPlain",e[e.JSDocTag=333]="JSDocTag",e[e.JSDocAugmentsTag=334]="JSDocAugmentsTag",e[e.JSDocImplementsTag=335]="JSDocImplementsTag",e[e.JSDocAuthorTag=336]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=337]="JSDocDeprecatedTag",e[e.JSDocClassTag=338]="JSDocClassTag",e[e.JSDocPublicTag=339]="JSDocPublicTag",e[e.JSDocPrivateTag=340]="JSDocPrivateTag",e[e.JSDocProtectedTag=341]="JSDocProtectedTag",e[e.JSDocReadonlyTag=342]="JSDocReadonlyTag",e[e.JSDocOverrideTag=343]="JSDocOverrideTag",e[e.JSDocCallbackTag=344]="JSDocCallbackTag",e[e.JSDocOverloadTag=345]="JSDocOverloadTag",e[e.JSDocEnumTag=346]="JSDocEnumTag",e[e.JSDocParameterTag=347]="JSDocParameterTag",e[e.JSDocReturnTag=348]="JSDocReturnTag",e[e.JSDocThisTag=349]="JSDocThisTag",e[e.JSDocTypeTag=350]="JSDocTypeTag",e[e.JSDocTemplateTag=351]="JSDocTemplateTag",e[e.JSDocTypedefTag=352]="JSDocTypedefTag",e[e.JSDocSeeTag=353]="JSDocSeeTag",e[e.JSDocPropertyTag=354]="JSDocPropertyTag",e[e.JSDocThrowsTag=355]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=356]="JSDocSatisfiesTag",e[e.SyntaxList=357]="SyntaxList",e[e.NotEmittedStatement=358]="NotEmittedStatement",e[e.PartiallyEmittedExpression=359]="PartiallyEmittedExpression",e[e.CommaListExpression=360]="CommaListExpression",e[e.SyntheticReferenceExpression=361]="SyntheticReferenceExpression",e[e.Count=362]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=164]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=181]="FirstTypeNode",e[e.LastTypeNode=204]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=164]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=242]="FirstStatement",e[e.LastStatement=258]="LastStatement",e[e.FirstNode=165]="FirstNode",e[e.FirstJSDocNode=315]="FirstJSDocNode",e[e.LastJSDocNode=356]="LastJSDocNode",e[e.FirstJSDocTagNode=333]="FirstJSDocTagNode",e[e.LastJSDocTagNode=356]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=164]="LastContextualKeyword",e))(Wx||{}),qx=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=50720768]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=2048]="IdentifierIsInJSDocNamespace",e))(qx||{}),$x=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))($x||{}),Hx=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(Hx||{}),W6=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(W6||{}),Gx=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(Gx||{}),Oe=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(Oe||{}),lt=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(lt||{}),mt=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(mt||{}),It=class{},Bt=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(Bt||{}),Ur=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Ur||{}),Er=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(Er||{}),ui=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(ui||{}),na=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(na||{}),wa=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(wa||{}),is=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(is||{}),cs=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(cs||{}),Is=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Is||{}),ao=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(ao||{}),ls=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(ls||{}),ks=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(ks||{}),wo=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(wo||{}),Eo=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Eo||{}),Ys=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(Ys||{}),Ao=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Ao||{}),uo=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(uo||{}),lc=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(lc||{}),to=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(to||{}),Ko=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=65536]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=131072]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=262144]="NeedsLoopOutParameter",e[e.AssignmentsMarked=524288]="AssignmentsMarked",e[e.ClassWithConstructorReference=1048576]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=2097152]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=4194304]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=8388608]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=16777216]="InCheckIdentifier",e))(Ko||{}),Tc=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=138117121]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(Tc||{}),Sc=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(Sc||{}),ql=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(ql||{}),d_=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(d_||{}),Tu=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Tu||{}),Qu=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Qu||{}),T_=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(T_||{}),Ku=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Ku||{}),Ru=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Ru||{}),m_=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(m_||{}),P_=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(P_||{}),cd=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(cd||{}),Jp=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Jp||{}),wp=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(wp||{}),Up=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Up||{}),Vf=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Vf||{}),a_=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(a_||{}),lu=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(lu||{}),Ep=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(Ep||{}),Xd=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Xd||{}),ip=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(ip||{}),zm=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(zm||{}),A0=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(A0||{}),ld=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(ld||{}),Ad=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Ad||{}),zv=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(zv||{}),Y2=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Y2||{}),h1=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(h1||{}),Ig=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Ig||{}),x4=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(x4||{}),K1=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(K1||{}),j=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(j||{}),C=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(C||{}),I=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(I||{}),W=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(W||{}),oe=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(oe||{}),xe=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(xe||{}),et=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(et||{}),vt=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(vt||{}),At=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(At||{}),Dr=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Dr||{}),Zr=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(Zr||{}),gn={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}});function _i(e){let t=5381;for(let n=0;n{V.isClosed=!0,Px(t,V)}}}function f(N){const B=[];return B.pollingInterval=N,B.pollIndex=0,B.pollScheduled=!1,B}function _(N,B){B.pollIndex=m(B,B.pollingInterval,B.pollIndex,$h[B.pollingInterval]),B.length?O(B.pollingInterval):(D.assert(B.pollIndex===0),B.pollScheduled=!1)}function h(N,B){m(n,250,0,n.length),_(N,B),!B.pollScheduled&&n.length&&O(250)}function m(N,B,U,V){return Vc(e,N,U,V,re);function re(z,ce,R){R?(z.unchangedPolls=0,N!==n&&(N[ce]=void 0,k(z))):z.unchangedPolls!==y1[B]?z.unchangedPolls++:N===n?(z.unchangedPolls=1,N[ce]=void 0,T(z,250)):B!==2e3&&(z.unchangedPolls++,N[ce]=void 0,T(z,B===250?500:2e3))}}function y(N){switch(N){case 250:return i;case 500:return s;case 2e3:return o}}function T(N,B){y(B).push(N),E(B)}function k(N){n.push(N),E(250)}function E(N){y(N).pollScheduled||O(N)}function O(N){y(N).pollScheduled=e.setTimeout(N===250?h:_,N,N===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(N))}}function s_(e,t){const n=Pf(),i=new Map,s=N_(t);return o;function o(f,_,h,m){const y=s(f);n.add(y,_);const T=ga(y)||".",k=i.get(T)||l(ga(f)||".",T,m);return k.referenceCount++,{close:()=>{k.referenceCount===1?(k.close(),i.delete(T)):k.referenceCount--,n.remove(y,_)}}}function l(f,_,h){const m=e(f,1,(y,T,k)=>{if(!bs(T))return;const E=ms(T,f),O=E&&n.get(s(E));if(O)for(const N of O)N(E,1,k)},!1,500,h);return m.referenceCount=0,i.set(_,m),m}}function zl(e){const t=[];let n=0,i;return s;function s(f,_){const h={fileName:f,callback:_,mtime:Xa(e,f)};return t.push(h),l(),{close:()=>{h.isClosed=!0,Px(t,h)}}}function o(){i=void 0,n=Vc(e,t,n,$h[250]),l()}function l(){!t.length||i||(i=e.setTimeout(o,2e3,"pollQueue"))}}function Su(e,t,n,i,s){const l=N_(t)(n),f=e.get(l);return f?f.callbacks.push(i):e.set(l,{watcher:s((_,h,m)=>{var y;return(y=e.get(l))==null?void 0:y.callbacks.slice().forEach(T=>T(_,h,m))}),callbacks:[i]}),{close:()=>{const _=e.get(l);_&&(!m4(_.callbacks,i)||_.callbacks.length||(e.delete(l),bh(_)))}}}function e_(e,t){const n=e.mtime.getTime(),i=t.getTime();return n!==i?(e.mtime=t,e.callback(e.fileName,O_(n,i),t),!0):!1}function O_(e,t){return e===0?0:t===0?2:1}function ku(e){return Zx(e)}function Y0(e){Zx=e}function mm({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:s,realpath:o,setTimeout:l,clearTimeout:f}){const _=new Map,h=Pf(),m=new Map;let y;const T=$_(!t),k=N_(t);return(R,le,ae,ye)=>ae?E(R,ye,le):e(R,le,ae,ye);function E(R,le,ae){const ye=k(R);let $=_.get(ye);$?$.refCount++:($={watcher:e(R,te=>{z(te,le)||(le!=null&&le.synchronousWatchDirectory?(O(ye,te),re(R,ye,le)):N(R,ye,te,le))},!1,le),refCount:1,childWatches:tt},_.set(ye,$),re(R,ye,le));const ee=ae&&{dirName:R,callback:ae};return ee&&h.add(ye,ee),{dirName:R,close:()=>{const te=D.checkDefined(_.get(ye));ee&&h.remove(ye,ee),te.refCount--,!te.refCount&&(_.delete(ye),bh(te),te.childWatches.forEach(_h))}}}function O(R,le,ae){let ye,$;bs(le)?ye=le:$=le,h.forEach((ee,te)=>{if(!($&&$.get(te)===!0)&&(te===R||Ga(R,te)&&R[te.length]===Yl))if($)if(ae){const me=$.get(te);me?me.push(...ae):$.set(te,ae.slice())}else $.set(te,!0);else ee.forEach(({callback:me})=>me(ye))})}function N(R,le,ae,ye){const $=_.get(le);if($&&s(R,1)){B(R,le,ae,ye);return}O(le,ae),V($)}function B(R,le,ae,ye){const $=m.get(le);$?$.fileNames.push(ae):m.set(le,{dirName:R,options:ye,fileNames:[ae]}),y&&(f(y),y=void 0),y=l(U,1e3,"timerToUpdateChildWatches")}function U(){y=void 0,ku(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);const R=Tl(),le=new Map;for(;!y&&m.size;){const ye=m.entries().next();D.assert(!ye.done);const{value:[$,{dirName:ee,options:te,fileNames:me}]}=ye;m.delete($);const ve=re(ee,$,te);O($,le,ve?void 0:me)}ku(`sysLog:: invokingWatchers:: Elapsed:: ${Tl()-R}ms:: ${m.size}`),h.forEach((ye,$)=>{const ee=le.get($);ee&&ye.forEach(({callback:te,dirName:me})=>{ns(ee)?ee.forEach(te):te(me)})});const ae=Tl()-R;ku(`sysLog:: Elapsed:: ${ae}ms:: onTimerToUpdateChildWatches:: ${m.size} ${y}`)}function V(R){if(!R)return;const le=R.childWatches;R.childWatches=tt;for(const ae of le)ae.close(),V(_.get(k(ae.dirName)))}function re(R,le,ae){const ye=_.get(le);if(!ye)return!1;let $;const ee=p1(s(R,1)?Mr(i(R),ve=>{const we=ms(ve,R);return!z(we,ae)&&T(we,ec(o(we)))===0?we:void 0}):tt,ye.childWatches,(ve,we)=>T(ve,we.dirName),te,_h,me);return ye.childWatches=$||tt,ee;function te(ve){const we=E(ve,ae);me(we)}function me(ve){($||($=[])).push(ve)}}function z(R,le){return bt(Hh,ae=>ce(R,ae))||o_(R,le,t,n)}function ce(R,le){return Qo(R,le)?!0:t?!1:Qo(k(R),le)}}function uc(e){return(t,n,i)=>e(n===1?"change":"rename","",i)}function Pl(e,t,n){return(i,s,o)=>{i==="rename"?(o||(o=n(e)||Ap),t(e,o!==Ap?0:2,o)):t(e,1,o)}}function o_(e,t,n,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(_B(e,t==null?void 0:t.excludeFiles,n,i())||_B(e,t==null?void 0:t.excludeDirectories,n,i()))}function Vp(e,t,n,i,s){return(o,l)=>{if(o==="rename"){const f=l?ec(ta(e,l)):e;(!l||!o_(f,n,i,s))&&t(f)}}}function D0({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:i,fsWatchWorker:s,fileSystemEntryExists:o,useCaseSensitiveFileNames:l,getCurrentDirectory:f,fsSupportsRecursiveFsWatch:_,getAccessibleSortedChildDirectories:h,realpath:m,tscWatchFile:y,useNonPollingWatchers:T,tscWatchDirectory:k,inodeWatching:E,sysLog:O}){const N=new Map,B=new Map,U=new Map;let V,re,z,ce,R=!1;return{watchFile:le,watchDirectory:te};function le(Re,Fe,Ue,Ae){Ae=$(Ae,T);const Me=D.checkDefined(Ae.watchFile);switch(Me){case 0:return we(Re,Fe,250,void 0);case 1:return we(Re,Fe,Ue,void 0);case 2:return ae()(Re,Fe,Ue,void 0);case 3:return ye()(Re,Fe,void 0,void 0);case 4:return K(Re,0,Pl(Re,Fe,t),!1,Ue,aP(Ae));case 5:return z||(z=s_(K,l)),z(Re,Fe,Ue,aP(Ae));default:D.assertNever(Me)}}function ae(){return V||(V=ul({getModifiedTime:t,setTimeout:n}))}function ye(){return re||(re=zl({getModifiedTime:t,setTimeout:n}))}function $(Re,Fe){if(Re&&Re.watchFile!==void 0)return Re;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return ee(4,1,Re);case"UseFsEventsWithFallbackDynamicPolling":return ee(4,2,Re);case"UseFsEventsOnParentDirectory":Fe=!0;default:return Fe?ee(5,1,Re):{watchFile:4}}}function ee(Re,Fe,Ue){const Ae=Ue==null?void 0:Ue.fallbackPolling;return{watchFile:Re,fallbackPolling:Ae===void 0?Fe:Ae}}function te(Re,Fe,Ue,Ae){return _?K(Re,1,Vp(Re,Fe,Ae,l,f),Ue,500,aP(Ae)):(ce||(ce=mm({useCaseSensitiveFileNames:l,getCurrentDirectory:f,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:h,watchDirectory:me,realpath:m,setTimeout:n,clearTimeout:i})),ce(Re,Fe,Ue,Ae))}function me(Re,Fe,Ue,Ae){D.assert(!Ue);const Me=ve(Ae),He=D.checkDefined(Me.watchDirectory);switch(He){case 1:return we(Re,()=>Fe(Re),500,void 0);case 2:return ae()(Re,()=>Fe(Re),500,void 0);case 3:return ye()(Re,()=>Fe(Re),void 0,void 0);case 0:return K(Re,1,Vp(Re,Fe,Ae,l,f),Ue,500,aP(Me));default:D.assertNever(He)}}function ve(Re){if(Re&&Re.watchDirectory!==void 0)return Re;switch(k){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Fe=Re==null?void 0:Re.fallbackPolling;return{watchDirectory:0,fallbackPolling:Fe!==void 0?Fe:void 0}}}function we(Re,Fe,Ue,Ae){return Su(N,l,Re,Fe,Me=>e(Re,Me,Ue,Ae))}function K(Re,Fe,Ue,Ae,Me,He){return Su(Ae?U:B,l,Re,Ue,je=>Ze(Re,Fe,je,Ae,Me,He))}function Ze(Re,Fe,Ue,Ae,Me,He){let je,Pe;E&&(je=Re.substring(Re.lastIndexOf(Yl)),Pe=je.slice(Yl.length));let nt=o(Re,Fe)?xt():Mt();return{close:()=>{nt&&(nt.close(),nt=void 0)}};function wt(yr){nt&&(O(`sysLog:: ${Re}:: Changing watcher to ${yr===xt?"Present":"Missing"}FileSystemEntryWatcher`),nt.close(),nt=yr())}function xt(){if(R)return O(`sysLog:: ${Re}:: Defaulting to watchFile`),Qe();try{const yr=s(Re,Ae,E?Zt:Ue);return yr.on("error",()=>{Ue("rename",""),wt(Mt)}),yr}catch(yr){return R||(R=yr.code==="ENOSPC"),O(`sysLog:: ${Re}:: Changing to watchFile`),Qe()}}function Zt(yr,Cr){let Lt;if(Cr&&gi(Cr,"~")&&(Lt=Cr,Cr=Cr.slice(0,Cr.length-1)),yr==="rename"&&(!Cr||Cr===Pe||gi(Cr,je))){const an=t(Re)||Ap;Lt&&Ue(yr,Lt,an),Ue(yr,Cr,an),E?wt(an===Ap?Mt:xt):an===Ap&&wt(Mt)}else Lt&&Ue(yr,Lt),Ue(yr,Cr)}function Qe(){return le(Re,uc(Ue),Me,He)}function Mt(){return le(Re,(yr,Cr,Lt)=>{Cr===0&&(Lt||(Lt=t(Re)||Ap),Lt!==Ap&&(Ue("rename","",Lt),wt(xt)))},Me,He)}}}function T4(e){const t=e.writeFile;e.writeFile=(n,i,s)=>nH(n,i,!!s,(o,l,f)=>t.call(e,o,l,f),o=>e.createDirectory(o),o=>e.directoryExists(o))}function q6(e){Cu=e}var Xx,eh,Ap,N0,$h,y1,Hh,Zx,Q2,Cu,GT=or({"src/compiler/sys.ts"(){"use strict";ho(),Xx=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(Xx||{}),eh=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(eh||{}),Ap=new Date(0),N0={Low:32,Medium:64,High:256},$h=Ts(N0),y1=Ts(N0),Hh=["/node_modules/.","/.git","/.#"],Zx=Ho,Q2=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(Q2||{}),Cu=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,s=Ta(62715),o=Ta(1210),l=Ta(28353);let f;try{f=Ta(13024)}catch(xt){f=void 0}let _,h="./profile.cpuprofile";const m=Ta(62183).Buffer,y=ci.platform==="linux"||ci.platform==="darwin",T=l.platform(),k=ye(),E=s.realpathSync.native?ci.platform==="win32"?Me:s.realpathSync.native:s.realpathSync,O=bl.endsWith("sys.js")?o.join(o.dirname(Yc),"__fake__.js"):bl,N=ci.platform==="win32"||ci.platform==="darwin",B=q_(()=>ci.cwd()),{watchFile:U,watchDirectory:V}=D0({pollingWatchFileWorker:ee,getModifiedTime:je,setTimeout,clearTimeout,fsWatchWorker:te,useCaseSensitiveFileNames:k,getCurrentDirectory:B,fileSystemEntryExists:Re,fsSupportsRecursiveFsWatch:N,getAccessibleSortedChildDirectories:xt=>K(xt).directories,realpath:He,tscWatchFile:{NODE_ENV:"production",PUBLIC_PATH:"/"}.TSC_WATCHFILE,useNonPollingWatchers:!!{NODE_ENV:"production",PUBLIC_PATH:"/"}.TSC_NONPOLLING_WATCHER,tscWatchDirectory:{NODE_ENV:"production",PUBLIC_PATH:"/"}.TSC_WATCHDIRECTORY,inodeWatching:y,sysLog:ku}),re={args:ci.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:k,write(xt){ci.stdout.write(xt)},getWidthOfTerminal(){return ci.stdout.columns},writeOutputIsTTY(){return ci.stdout.isTTY},readFile:ve,writeFile:we,watchFile:U,watchDirectory:V,resolvePath:xt=>o.resolve(xt),fileExists:Fe,directoryExists:Ue,createDirectory(xt){if(!re.directoryExists(xt))try{s.mkdirSync(xt)}catch(Zt){if(Zt.code!=="EEXIST")throw Zt}},getExecutingFilePath(){return O},getCurrentDirectory:B,getDirectories:Ae,getEnvironmentVariable(xt){return{NODE_ENV:"production",PUBLIC_PATH:"/"}[xt]||""},readDirectory:Ze,getModifiedTime:je,setModifiedTime:Pe,deleteFile:nt,createHash:f?wt:_i,createSHA256Hash:f?wt:void 0,getMemoryUsage(){return Ta.g.gc&&Ta.g.gc(),ci.memoryUsage().heapUsed},getFileSize(xt){try{const Zt=z(xt);if(Zt!=null&&Zt.isFile())return Zt.size}catch(Zt){}return 0},exit(xt){le(()=>ci.exit(xt))},enableCPUProfiler:ce,disableCPUProfiler:le,cpuProfilingEnabled:()=>!!_||Zn(ci.execArgv,"--cpu-prof")||Zn(ci.execArgv,"--prof"),realpath:He,debugMode:!!{NODE_ENV:"production",PUBLIC_PATH:"/"}.NODE_INSPECTOR_IPC||!!{NODE_ENV:"production",PUBLIC_PATH:"/"}.VSCODE_INSPECTOR_OPTIONS||bt(ci.execArgv,xt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(xt)),tryEnableSourceMapsForHost(){try{Ta(43454).install()}catch(xt){}},setTimeout,clearTimeout,clearScreen:()=>{ci.stdout.write("\x1Bc")},setBlocking:()=>{var xt;const Zt=(xt=ci.stdout)==null?void 0:xt._handle;Zt&&Zt.setBlocking&&Zt.setBlocking(!0)},bufferFrom:ae,base64decode:xt=>ae(xt,"base64").toString("utf8"),base64encode:xt=>ae(xt).toString("base64"),require:(xt,Zt)=>{try{const Qe=ame(Zt,xt,re);return{module:Ta(13411)(Qe),modulePath:Qe,error:void 0}}catch(Qe){return{module:void 0,modulePath:void 0,error:Qe}}}};return re;function z(xt){return s.statSync(xt,{throwIfNoEntry:!1})}function ce(xt,Zt){if(_)return Zt(),!1;const Qe=Ta(13611);if(!Qe||!Qe.Session)return Zt(),!1;const Mt=new Qe.Session;return Mt.connect(),Mt.post("Profiler.enable",()=>{Mt.post("Profiler.start",()=>{_=Mt,h=xt,Zt()})}),!0}function R(xt){let Zt=0;const Qe=new Map,Mt=kc(o.dirname(O)),yr=`file://${Pg(Mt)===1?"":"/"}${Mt}`;for(const Cr of xt.nodes)if(Cr.callFrame.url){const Lt=kc(Cr.callFrame.url);tb(yr,Lt,k)?Cr.callFrame.url=XT(yr,Lt,yr,N_(k),!0):i.test(Lt)||(Cr.callFrame.url=(Qe.has(Lt)?Qe:Qe.set(Lt,`external${Zt}.js`)).get(Lt),Zt++)}return xt}function le(xt){if(_&&_!=="stopping"){const Zt=_;return _.post("Profiler.stop",(Qe,{profile:Mt})=>{var yr;if(!Qe){try{(yr=z(h))!=null&&yr.isDirectory()&&(h=o.join(h,`${new Date().toISOString().replace(/:/g,"-")}+P${ci.pid}.cpuprofile`))}catch(Cr){}try{s.mkdirSync(o.dirname(h),{recursive:!0})}catch(Cr){}s.writeFileSync(h,JSON.stringify(R(Mt)))}_=void 0,Zt.disconnect(),xt()}),_="stopping",!0}else return xt(),!1}function ae(xt,Zt){return m.from&&m.from!==Int8Array.from?m.from(xt,Zt):new m(xt,Zt)}function ye(){return T==="win32"||T==="win64"?!1:!Fe($(bl))}function $(xt){return xt.replace(/\w/g,Zt=>{const Qe=Zt.toUpperCase();return Zt===Qe?Zt.toLowerCase():Qe})}function ee(xt,Zt,Qe){s.watchFile(xt,{persistent:!0,interval:Qe},yr);let Mt;return{close:()=>s.unwatchFile(xt,yr)};function yr(Cr,Lt){const an=+Lt.mtime==0||Mt===2;if(+Cr.mtime==0){if(an)return;Mt=2}else if(an)Mt=0;else{if(+Cr.mtime==+Lt.mtime)return;Mt=1}Zt(xt,Mt,Cr.mtime)}}function te(xt,Zt,Qe){return s.watch(xt,N?{persistent:!0,recursive:!!Zt}:{persistent:!0},Qe)}function me(xt,Zt){let Qe;try{Qe=s.readFileSync(xt)}catch(yr){return}let Mt=Qe.length;if(Mt>=2&&Qe[0]===254&&Qe[1]===255){Mt&=-2;for(let yr=0;yr=2&&Qe[0]===255&&Qe[1]===254?Qe.toString("utf16le",2):Mt>=3&&Qe[0]===239&&Qe[1]===187&&Qe[2]===191?Qe.toString("utf8",3):Qe.toString("utf8")}function ve(xt,Zt){var Qe,Mt;(Qe=jm)==null||Qe.logStartReadFile(xt);const yr=me(xt,Zt);return(Mt=jm)==null||Mt.logStopReadFile(),yr}function we(xt,Zt,Qe){var Mt;(Mt=jm)==null||Mt.logEvent("WriteFile: "+xt),Qe&&(Zt=e+Zt);let yr;try{yr=s.openSync(xt,"w"),s.writeSync(yr,Zt,void 0,"utf8")}finally{yr!==void 0&&s.closeSync(yr)}}function K(xt){var Zt;(Zt=jm)==null||Zt.logEvent("ReadDir: "+(xt||"."));try{const Qe=s.readdirSync(xt||".",{withFileTypes:!0}),Mt=[],yr=[];for(const Cr of Qe){const Lt=typeof Cr=="string"?Cr:Cr.name;if(Lt==="."||Lt==="..")continue;let an;if(typeof Cr=="string"||Cr.isSymbolicLink()){const xn=ta(xt,Lt);try{if(an=z(xn),!an)continue}catch(Lr){continue}}else an=Cr;an.isFile()?Mt.push(Lt):an.isDirectory()&&yr.push(Lt)}return Mt.sort(),yr.sort(),{files:Mt,directories:yr}}catch(Qe){return iR}}function Ze(xt,Zt,Qe,Mt,yr){return IH(xt,Zt,Qe,Mt,k,ci.cwd(),yr,K,He)}function Re(xt,Zt){const Qe=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const Mt=z(xt);if(!Mt)return!1;switch(Zt){case 0:return Mt.isFile();case 1:return Mt.isDirectory();default:return!1}}catch(Mt){return!1}finally{Error.stackTraceLimit=Qe}}function Fe(xt){return Re(xt,0)}function Ue(xt){return Re(xt,1)}function Ae(xt){return K(xt).directories.slice()}function Me(xt){return xt.length<260?s.realpathSync.native(xt):s.realpathSync(xt)}function He(xt){try{return E(xt)}catch(Zt){return xt}}function je(xt){var Zt;const Qe=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Zt=z(xt))==null?void 0:Zt.mtime}catch(Mt){return}finally{Error.stackTraceLimit=Qe}}function Pe(xt,Zt){try{s.utimesSync(xt,Zt,Zt)}catch(Qe){return}}function nt(xt){try{return s.unlinkSync(xt)}catch(Zt){return}}function wt(xt){const Zt=f.createHash("sha256");return Zt.update(xt),Zt.digest("hex")}}let n;return i5()&&(n=t()),n&&T4(n),n})(),Cu&&Cu.getEnvironmentVariable&&(Ls(Cu),D.setAssertionLevel(/^development$/i.test(Cu.getEnvironmentVariable("NODE_ENV"))?1:0)),Cu&&Cu.debugMode&&(D.isDebugging=!0)}});function $6(e){return e===47||e===92}function vw(e){return S5(e)<0}function t0(e){return S5(e)>0}function T5(e){const t=S5(e);return t>0&&t===e.length}function K2(e){return S5(e)!==0}function ap(e){return/^\.\.?($|[\\/])/.test(e)}function eb(e){return!K2(e)&&!ap(e)}function Gh(e){return Qo(H_(e),".")}function Xl(e,t){return e.length>t.length&&gi(e,t)}function Zl(e,t){for(const n of t)if(Xl(e,n))return!0;return!1}function Xh(e){return e.length>0&&$6(e.charCodeAt(e.length-1))}function _D(e){return e>=97&&e<=122||e>=65&&e<=90}function bw(e,t){const n=e.charCodeAt(t);if(n===58)return t+1;if(n===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function S5(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?Yl:pD,2);return i<0?e.length:i+1}if(_D(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const n=e.indexOf(bq);if(n!==-1){const i=n+bq.length,s=e.indexOf(Yl,i);if(s!==-1){const o=e.slice(0,n),l=e.slice(i,s);if(o==="file"&&(l===""||l==="localhost")&&_D(e.charCodeAt(s+1))){const f=bw(e,s+2);if(f!==-1){if(e.charCodeAt(f)===47)return~(f+1);if(f===e.length)return~f}}return~(s+1)}return~e.length}return 0}function Pg(e){const t=S5(e);return t<0?~t:t}function ga(e){e=kc(e);const t=Pg(e);return t===e.length?e:(e=H6(e),e.slice(0,Math.max(t,e.lastIndexOf(Yl))))}function H_(e,t,n){if(e=kc(e),Pg(e)===e.length)return"";e=H6(e);const s=e.slice(Math.max(Pg(e),e.lastIndexOf(Yl)+1)),o=t!==void 0&&n!==void 0?xw(s,t,n):void 0;return o?s.slice(0,s.length-o.length):s}function oL(e,t,n){if(Ga(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(n(i,t))return i}}function fq(e,t,n){if(typeof t=="string")return oL(e,t,n)||"";for(const i of t){const s=oL(e,i,n);if(s)return s}return""}function xw(e,t,n){if(t)return fq(H6(e),t,n?C0:q1);const i=H_(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function pq(e,t){const n=e.substring(0,t),i=e.substring(t).split(Yl);return i.length&&!io(i)&&i.pop(),[n,...i]}function G_(e,t=""){return e=ta(t,e),pq(e,Pg(e))}function M_(e,t){return e.length===0?"":(e[0]&&Dp(e[0]))+e.slice(1,t).join(Yl)}function kc(e){return e.indexOf("\\")!==-1?e.replace(Sce,Yl):e}function X_(e){if(!bt(e))return[];const t=[e[0]];for(let n=1;n1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function ta(e,...t){e&&(e=kc(e));for(let n of t)n&&(n=kc(n),!e||Pg(n)!==0?e=n:e=Dp(e)+n);return e}function ud(e,...t){return ec(bt(t)?ta(e,...t):kc(e))}function Jv(e,t){return X_(G_(e,t))}function ms(e,t){return M_(Jv(e,t))}function ec(e){if(e=kc(e),!dD.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!dD.test(e)))return e;const n=M_(X_(G_(e)));return n&&Xh(e)?Dp(n):n}function YCe(e){return e.length===0?"":e.slice(1).join(Yl)}function dq(e,t){return YCe(Jv(e,t))}function Sl(e,t,n){const i=t0(e)?ec(e):ms(e,t);return n(i)}function H6(e){return Xh(e)?e.substr(0,e.length-1):e}function Dp(e){return Xh(e)?e:e+Yl}function G6(e){return!K2(e)&&!ap(e)?"./"+e:e}function mq(e,t,n,i){const s=n!==void 0&&i!==void 0?xw(e,n,i):xw(e);return s?e.slice(0,e.length-s.length)+(Ga(t,".")?t:"."+t):e}function gq(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,Pg(e)),s=t.substring(0,Pg(t)),o=X0(i,s);if(o!==0)return o;const l=e.substring(i.length),f=t.substring(s.length);if(!dD.test(l)&&!dD.test(f))return n(l,f);const _=X_(G_(e)),h=X_(G_(t)),m=Math.min(_.length,h.length);for(let y=1;y0==Pg(t)>0,"Paths must either both be absolute or both be relative");const o=yq(e,t,(typeof n=="boolean"?n:!1)?C0:q1,typeof n=="function"?n:Jc);return M_(o)}function Tw(e,t,n){return t0(e)?XT(t,e,t,n,!1):e}function fD(e,t,n){return G6(th(ga(e),t,n))}function XT(e,t,n,i,s){const o=yq(ud(n,e),ud(n,t),q1,i),l=o[0];if(s&&t0(l)){const f=l.charAt(0)===Yl?"file://":"file:///";o[0]=f+l}return M_(o)}function jy(e,t){for(;;){const n=t(e);if(n!==void 0)return n;const i=ga(e);if(i===e)return;e=i}}function vq(e){return gi(e,"/node_modules")}var Yl,pD,bq,Sce,dD,ewe=or({"src/compiler/path.ts"(){"use strict";ho(),Yl="/",pD="\\",bq="://",Sce=/\\/g,dD=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function b(e,t,n,i,s,o,l){return{code:e,category:t,key:n,message:i,reportsUnnecessary:s,elidedInCompatabilityPyramid:o,reportsDeprecated:l}}var p,twe=or({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";hi(),p={Unterminated_string_literal:b(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:b(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:b(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:b(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:b(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:b(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:b(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:b(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:b(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:b(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:b(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:b(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:b(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:b(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:b(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:b(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:b(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:b(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:b(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:b(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:b(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:b(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:b(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:b(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:b(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:b(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:b(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:b(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:b(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:b(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:b(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:b(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:b(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:b(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:b(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:b(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:b(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:b(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:b(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:b(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:b(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:b(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:b(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:b(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:b(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:b(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:b(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:b(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:b(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:b(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:b(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:b(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:b(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:b(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:b(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:b(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:b(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:b(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:b(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:b(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:b(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:b(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:b(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:b(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:b(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:b(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:b(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:b(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:b(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:b(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:b(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:b(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:b(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:b(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:b(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:b(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:b(1110,1,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:b(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:b(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:b(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:b(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:b(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:b(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:b(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:b(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:b(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:b(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:b(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:b(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:b(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:b(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:b(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:b(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:b(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:b(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:b(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:b(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:b(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:b(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:b(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:b(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:b(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:b(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:b(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:b(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:b(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:b(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:b(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:b(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:b(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:b(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:b(1155,1,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:b(1156,1,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:b(1157,1,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:b(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:b(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:b(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:b(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:b(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:b(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:b(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:b(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:b(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:b(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:b(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:b(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:b(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:b(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:b(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:b(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:b(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:b(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:b(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:b(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:b(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:b(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:b(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:b(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:b(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:b(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:b(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:b(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:b(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:b(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:b(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:b(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:b(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:b(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:b(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:b(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:b(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:b(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:b(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:b(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:b(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:b(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:b(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:b(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:b(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:b(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:b(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:b(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:b(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:b(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:b(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:b(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:b(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:b(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:b(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:b(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:b(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:b(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:b(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:b(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:b(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:b(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:b(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:b(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:b(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:b(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:b(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:b(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:b(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:b(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:b(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:b(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:b(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:b(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:b(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:b(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:b(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:b(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:b(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:b(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:b(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:b(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:b(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:b(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:b(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:b(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:b(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:b(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:b(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:b(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:b(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:b(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:b(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:b(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:b(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:b(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:b(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:b(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:b(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:b(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:b(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:b(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:b(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:b(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:b(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:b(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:b(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:b(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:b(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:b(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:b(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:b(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:b(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:b(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:b(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:b(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:b(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:b(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:b(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:b(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:b(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:b(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:b(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:b(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:b(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:b(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:b(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:b(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:b(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:b(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:b(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:b(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:b(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:b(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:b(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:b(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:b(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:b(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:b(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:b(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:b(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:b(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:b(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:b(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:b(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:b(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:b(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:b(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:b(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:b(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:b(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:b(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:b(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:b(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:b(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:b(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:b(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:b(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:b(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:b(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:b(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:b(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:b(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:b(1373,3,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:b(1374,3,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:b(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:b(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:b(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:b(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:b(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:b(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:b(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:b(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:b(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:b(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:b(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:b(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:b(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:b(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:b(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:b(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:b(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:b(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:b(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:b(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:b(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:b(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:b(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:b(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:b(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:b(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:b(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:b(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:b(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:b(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:b(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:b(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:b(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:b(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:b(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:b(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:b(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:b(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:b(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:b(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:b(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:b(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:b(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:b(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:b(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:b(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:b(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:b(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:b(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:b(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:b(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:b(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:b(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:b(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:b(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:b(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:b(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:b(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:b(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:b(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:b(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:b(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:b(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:b(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:b(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:b(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:b(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:b(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:b(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:b(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:b(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:b(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:b(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:b(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:b(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:b(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:b(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:b(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:b(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:b(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:b(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:b(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:b(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:b(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:b(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:b(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:b(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:b(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),The_types_of_0_are_incompatible_between_these_types:b(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:b(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:b(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:b(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:b(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:b(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:b(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:b(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:b(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:b(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:b(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:b(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:b(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:b(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:b(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:b(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:b(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:b(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:b(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:b(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:b(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:b(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:b(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:b(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:b(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:b(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:b(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:b(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:b(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:b(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:b(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:b(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:b(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:b(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:b(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:b(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:b(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:b(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:b(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:b(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:b(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:b(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:b(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:b(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:b(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:b(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:b(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:b(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:b(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:b(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:b(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:b(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:b(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:b(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:b(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:b(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:b(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:b(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:b(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:b(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:b(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:b(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:b(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:b(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:b(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:b(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:b(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:b(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:b(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:b(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:b(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:b(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:b(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:b(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:b(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:b(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:b(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:b(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:b(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:b(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:b(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:b(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:b(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:b(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:b(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:b(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:b(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:b(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:b(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:b(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:b(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:b(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:b(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:b(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:b(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:b(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:b(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:b(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:b(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:b(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:b(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:b(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:b(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:b(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:b(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:b(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:b(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:b(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:b(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:b(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:b(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:b(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:b(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:b(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:b(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:b(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:b(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:b(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:b(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:b(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:b(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:b(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:b(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:b(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:b(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:b(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:b(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:b(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:b(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:b(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:b(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:b(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:b(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:b(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:b(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:b(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:b(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:b(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:b(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:b(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:b(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:b(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:b(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:b(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:b(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:b(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:b(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:b(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:b(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:b(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:b(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:b(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:b(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:b(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:b(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:b(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:b(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:b(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:b(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:b(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:b(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:b(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:b(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:b(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:b(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:b(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:b(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:b(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:b(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:b(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:b(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:b(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:b(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:b(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:b(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:b(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:b(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:b(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:b(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:b(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:b(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:b(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:b(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:b(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:b(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:b(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:b(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:b(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:b(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:b(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:b(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:b(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:b(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:b(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:b(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:b(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:b(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:b(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:b(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:b(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:b(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:b(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:b(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:b(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:b(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:b(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:b(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:b(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:b(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:b(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:b(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:b(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:b(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:b(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:b(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:b(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:b(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:b(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:b(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:b(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:b(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:b(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:b(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:b(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:b(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:b(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:b(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:b(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:b(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:b(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:b(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:b(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:b(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:b(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:b(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:b(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:b(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:b(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:b(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:b(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:b(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:b(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:b(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:b(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:b(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:b(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:b(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:b(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:b(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:b(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:b(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:b(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:b(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:b(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:b(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:b(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:b(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:b(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:b(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:b(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:b(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:b(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:b(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:b(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:b(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:b(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:b(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:b(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:b(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:b(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:b(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:b(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:b(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:b(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:b(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:b(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:b(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:b(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:b(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:b(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:b(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:b(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:b(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:b(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:b(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:b(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:b(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:b(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:b(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:b(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:b(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:b(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:b(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:b(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:b(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:b(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:b(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:b(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:b(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:b(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:b(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:b(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:b(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:b(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:b(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:b(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:b(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:b(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:b(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:b(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:b(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:b(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:b(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:b(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:b(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:b(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:b(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:b(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:b(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:b(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:b(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:b(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:b(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:b(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:b(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:b(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:b(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:b(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:b(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:b(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:b(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:b(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:b(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:b(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:b(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:b(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:b(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:b(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:b(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:b(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:b(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:b(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:b(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:b(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:b(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:b(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:b(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:b(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:b(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:b(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:b(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:b(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:b(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:b(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:b(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:b(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:b(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:b(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:b(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:b(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:b(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:b(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:b(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:b(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:b(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:b(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:b(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:b(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:b(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:b(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:b(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:b(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:b(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:b(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:b(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:b(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:b(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:b(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:b(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:b(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:b(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:b(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:b(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:b(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:b(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:b(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:b(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:b(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:b(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:b(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:b(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:b(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:b(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:b(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:b(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:b(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:b(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:b(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:b(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:b(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:b(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:b(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:b(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:b(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:b(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:b(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:b(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:b(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:b(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:b(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:b(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:b(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:b(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:b(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:b(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:b(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:b(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:b(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:b(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:b(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:b(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:b(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:b(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:b(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:b(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:b(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:b(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:b(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:b(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:b(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:b(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:b(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:b(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:b(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:b(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:b(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:b(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:b(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:b(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:b(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:b(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:b(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:b(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:b(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:b(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:b(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:b(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:b(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:b(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:b(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:b(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:b(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:b(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:b(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:b(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:b(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:b(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:b(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:b(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:b(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:b(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:b(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:b(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:b(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:b(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:b(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:b(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:b(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:b(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:b(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:b(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:b(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:b(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),Import_declaration_0_is_using_private_name_1:b(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:b(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:b(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:b(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:b(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:b(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:b(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:b(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:b(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:b(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:b(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:b(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:b(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:b(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:b(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:b(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:b(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:b(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:b(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:b(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:b(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:b(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:b(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:b(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:b(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:b(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:b(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:b(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:b(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:b(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:b(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:b(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:b(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:b(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:b(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:b(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:b(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:b(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:b(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:b(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:b(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:b(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:b(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:b(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:b(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:b(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:b(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:b(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:b(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:b(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:b(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:b(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:b(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:b(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:b(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:b(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:b(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:b(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:b(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:b(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:b(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:b(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:b(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:b(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:b(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:b(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:b(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:b(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:b(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:b(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:b(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:b(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:b(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:b(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:b(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:b(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:b(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:b(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:b(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:b(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:b(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:b(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:b(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:b(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:b(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:b(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:b(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:b(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:b(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:b(5084,1,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:b(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:b(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:b(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:b(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:b(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:b(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:b(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:b(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:b(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:b(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:b(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:b(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:b(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:b(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:b(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:b(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:b(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:b(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:b(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:b(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:b(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:b(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:b(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:b(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:b(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:b(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:b(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:b(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:b(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:b(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:b(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:b(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:b(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:b(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:b(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:b(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:b(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:b(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:b(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:b(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:b(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:b(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:b(6024,3,"options_6024","options"),file:b(6025,3,"file_6025","file"),Examples_Colon_0:b(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:b(6027,3,"Options_Colon_6027","Options:"),Version_0:b(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:b(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:b(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:b(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:b(6034,3,"KIND_6034","KIND"),FILE:b(6035,3,"FILE_6035","FILE"),VERSION:b(6036,3,"VERSION_6036","VERSION"),LOCATION:b(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:b(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:b(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:b(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:b(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:b(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:b(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:b(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:b(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:b(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:b(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:b(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:b(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:b(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:b(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:b(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:b(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:b(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:b(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:b(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:b(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:b(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:b(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:b(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:b(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:b(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:b(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:b(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:b(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:b(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:b(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:b(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:b(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:b(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:b(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:b(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:b(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:b(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:b(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:b(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:b(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:b(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:b(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:b(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:b(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:b(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:b(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:b(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:b(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:b(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:b(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:b(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:b(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:b(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:b(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:b(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:b(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:b(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:b(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:b(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:b(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:b(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:b(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:b(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:b(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:b(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:b(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:b(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:b(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:b(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:b(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:b(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:b(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:b(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:b(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:b(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:b(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:b(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:b(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:b(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:b(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:b(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:b(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:b(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:b(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:b(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:b(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:b(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:b(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:b(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:b(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:b(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:b(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:b(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:b(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:b(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:b(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:b(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:b(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:b(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:b(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:b(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:b(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:b(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:b(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:b(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:b(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:b(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:b(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:b(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:b(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:b(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:b(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:b(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:b(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:b(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:b(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:b(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:b(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:b(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:b(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:b(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:b(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:b(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:b(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:b(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:b(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:b(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:b(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:b(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:b(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:b(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:b(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:b(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:b(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:b(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:b(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:b(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:b(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:b(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:b(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:b(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:b(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:b(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:b(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:b(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:b(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:b(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:b(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:b(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:b(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:b(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:b(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:b(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:b(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:b(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:b(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:b(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:b(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:b(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:b(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:b(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:b(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:b(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:b(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:b(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:b(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:b(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:b(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:b(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:b(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:b(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:b(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:b(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:b(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:b(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:b(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:b(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:b(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:b(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:b(6244,3,"Modules_6244","Modules"),File_Management:b(6245,3,"File_Management_6245","File Management"),Emit:b(6246,3,"Emit_6246","Emit"),JavaScript_Support:b(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:b(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:b(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:b(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:b(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:b(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:b(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:b(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:b(6255,3,"Projects_6255","Projects"),Output_Formatting:b(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:b(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:b(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:b(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:b(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:b(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:b(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:b(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:b(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:b(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:b(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:b(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:b(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:b(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:b(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:b(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:b(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:b(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:b(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:b(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:b(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:b(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:b(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:b(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:b(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:b(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:b(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:b(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:b(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:b(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:b(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:b(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:b(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:b(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:b(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:b(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:b(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:b(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:b(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:b(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:b(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:b(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:b(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:b(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:b(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:b(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:b(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:b(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:b(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:b(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:b(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:b(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:b(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:b(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:b(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:b(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:b(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:b(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:b(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:b(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:b(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:b(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:b(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:b(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:b(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:b(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:b(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:b(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:b(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:b(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:b(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:b(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:b(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:b(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:b(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:b(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:b(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:b(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:b(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:b(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:b(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:b(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:b(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:b(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:b(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:b(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:b(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:b(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:b(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:b(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:b(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:b(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:b(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:b(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:b(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:b(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:b(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:b(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:b(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:b(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:b(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:b(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:b(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:b(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:b(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:b(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:b(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:b(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:b(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:b(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:b(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:b(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:b(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:b(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:b(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:b(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:b(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:b(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:b(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:b(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:b(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:b(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:b(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:b(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:b(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:b(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:b(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:b(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:b(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:b(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:b(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:b(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:b(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:b(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:b(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:b(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:b(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:b(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:b(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:b(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:b(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:b(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:b(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:b(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:b(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:b(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:b(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:b(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:b(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:b(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:b(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:b(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:b(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:b(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:b(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:b(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:b(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:b(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:b(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:b(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:b(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:b(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:b(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:b(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:b(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:b(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:b(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:b(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:b(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:b(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:b(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:b(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:b(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:b(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:b(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:b(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:b(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:b(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:b(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:b(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:b(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:b(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:b(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:b(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:b(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:b(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:b(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:b(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:b(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:b(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:b(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:b(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:b(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:b(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:b(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:b(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:b(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:b(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:b(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:b(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:b(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:b(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:b(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:b(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:b(6902,3,"type_Colon_6902","type:"),default_Colon:b(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:b(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:b(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:b(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:b(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:b(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:b(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:b(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:b(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:b(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:b(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:b(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:b(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:b(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:b(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:b(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:b(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:b(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:b(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:b(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:b(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:b(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:b(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:b(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:b(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:b(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:b(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:b(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:b(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:b(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:b(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:b(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:b(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:b(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:b(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:b(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:b(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:b(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:b(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:b(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:b(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:b(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:b(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:b(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:b(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:b(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:b(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:b(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:b(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:b(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:b(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:b(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:b(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:b(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:b(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:b(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:b(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:b(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:b(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:b(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:b(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:b(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:b(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:b(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:b(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:b(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:b(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:b(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:b(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:b(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:b(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:b(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:b(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:b(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:b(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:b(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:b(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:b(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:b(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:b(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:b(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:b(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:b(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:b(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:b(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:b(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:b(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:b(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:b(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Report_errors_in_js_files:b(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:b(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:b(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:b(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:b(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:b(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:b(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:b(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:b(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:b(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:b(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:b(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:b(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:b(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:b(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:b(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:b(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:b(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:b(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:b(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:b(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:b(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:b(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:b(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:b(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:b(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:b(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:b(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:b(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:b(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:b(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:b(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:b(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:b(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:b(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:b(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:b(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:b(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:b(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:b(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:b(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:b(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:b(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:b(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:b(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:b(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:b(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:b(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:b(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:b(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:b(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:b(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:b(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:b(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:b(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:b(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:b(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:b(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:b(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:b(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:b(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:b(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:b(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:b(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:b(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:b(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:b(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:b(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:b(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:b(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:b(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:b(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:b(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:b(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:b(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:b(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:b(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:b(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:b(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:b(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:b(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:b(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:b(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:b(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:b(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:b(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:b(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:b(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:b(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:b(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:b(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:b(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:b(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:b(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:b(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:b(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:b(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:b(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:b(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:b(95005,3,"Extract_function_95005","Extract function"),Extract_constant:b(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:b(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:b(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:b(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:b(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:b(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:b(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:b(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:b(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:b(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:b(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:b(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:b(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:b(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:b(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:b(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:b(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:b(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:b(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:b(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:b(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:b(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:b(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:b(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:b(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:b(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:b(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:b(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:b(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:b(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:b(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:b(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:b(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:b(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:b(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:b(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:b(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:b(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:b(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:b(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:b(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:b(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:b(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:b(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:b(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:b(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:b(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:b(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:b(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:b(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:b(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:b(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:b(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:b(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:b(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:b(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:b(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:b(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:b(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:b(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:b(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:b(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:b(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:b(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:b(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:b(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:b(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:b(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:b(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:b(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:b(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:b(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:b(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:b(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:b(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:b(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:b(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:b(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:b(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:b(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:b(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:b(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:b(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:b(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:b(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:b(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:b(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:b(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:b(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:b(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:b(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:b(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:b(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:b(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:b(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:b(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:b(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:b(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:b(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:b(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:b(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:b(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:b(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:b(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:b(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:b(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:b(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:b(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:b(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:b(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:b(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:b(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:b(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:b(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:b(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:b(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:b(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:b(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:b(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:b(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:b(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:b(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:b(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:b(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:b(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:b(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:b(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:b(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:b(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:b(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:b(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:b(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:b(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:b(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:b(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:b(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:b(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:b(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:b(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:b(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:b(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:b(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:b(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:b(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:b(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:b(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:b(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:b(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:b(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:b(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:b(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:b(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:b(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:b(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:b(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:b(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:b(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:b(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:b(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:b(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:b(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:b(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:b(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:b(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:b(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:b(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:b(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:b(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:b(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:b(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:b(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:b(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:b(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:b(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:b(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:b(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:b(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:b(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:b(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:b(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:b(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:b(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:b(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:b(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:b(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:b(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:b(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:b(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:b(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:b(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:b(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:b(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:b(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:b(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:b(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:b(18037,1,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:b(18038,1,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:b(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:b(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:b(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:b(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:b(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:b(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:b(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:b(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:b(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:b(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:b(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:b(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:b(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type.")}}});function Wp(e){return e>=80}function kce(e){return e===32||Wp(e)}function Sw(e,t){if(e=2?Sw(e,Lce):t===1?Sw(e,Oce):Sw(e,Ice)}function rwe(e,t){return t>=2?Sw(e,Fce):t===1?Sw(e,Mce):Sw(e,Pce)}function nwe(e){const t=[];return e.forEach((n,i)=>{t[n]=i}),t}function Uo(e){return jce[e]}function Qx(e){return kq.get(e)}function mD(e){const t=[];let n=0,i=0;for(;n127&&Wf(s)&&(t.push(i),i=n);break}}return t.push(i),t}function gD(e,t,n,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,i):xq(zy(e),t,n,e.text,i)}function xq(e,t,n,i,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:D.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?cl(e,mD(i)):"unknown"}`));const o=e[t]+n;return s?o>e[t+1]?e[t+1]:typeof i=="string"&&o>i.length?i.length:o:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Wf(e){return e===10||e===13||e===8232||e===8233}function k5(e){return e>=48&&e<=57}function Cce(e){return k5(e)||e>=65&&e<=70||e>=97&&e<=102}function iwe(e){return e<=1114111}function lL(e){return e>=48&&e<=55}function wce(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return n>127}}function tc(e,t,n,i,s){if(k1(t))return t;let o=!1;for(;;){const l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,n)return t;o=!!s;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Zh(l)){t++;continue}break}return t}}function C5(e,t){if(D.assert(t>=0),t===0||Wf(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+xD=0&&n127&&Zh(E)){y&&Wf(E)&&(m=!0),n++;continue}break e}}return y&&(k=s(f,_,h,m,o,k)),k}function yD(e,t,n,i){return uL(!1,e,t,!1,n,i)}function vD(e,t,n,i){return uL(!1,e,t,!0,n,i)}function Ece(e,t,n,i,s){return uL(!0,e,t,!1,n,i,s)}function Ace(e,t,n,i,s){return uL(!0,e,t,!0,n,i,s)}function Dce(e,t,n,i,s,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:i}),o}function Yh(e,t){return Ece(e,t,Dce,void 0,void 0)}function S4(e,t){return Ace(e,t,Dce,void 0,void 0)}function _L(e){const t=fL.exec(e);if(t)return t[0]}function Qh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&cL(e,t)}function k4(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(n===1?e===45||e===58:!1)||e>127&&rwe(e,t)}function r0(e,t,n){let i=Jy(e,0);if(!Qh(i,t))return!1;for(let s=rb(i);sm,getStartPos:()=>m,getTokenEnd:()=>_,getTextPos:()=>_,getToken:()=>T,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>f.substring(y,_),getTokenValue:()=>k,hasUnicodeEscape:()=>(E&1024)!==0,hasExtendedUnicodeEscape:()=>(E&8)!==0,hasPrecedingLineBreak:()=>(E&1)!==0,hasPrecedingJSDocComment:()=>(E&2)!==0,isIdentifier:()=>T===80||T>118,isReservedWord:()=>T>=83&&T<=118,isUnterminated:()=>(E&4)!==0,getCommentDirectives:()=>O,getNumericLiteralFlags:()=>E&25584,getTokenFlags:()=>E,reScanGreaterToken:Me,reScanAsteriskEqualsToken:He,reScanSlashToken:je,reScanTemplateToken:wt,reScanTemplateHeadOrNoSubstitutionTemplate:xt,scanJsxIdentifier:Lt,scanJsxAttributeValue:an,reScanJsxAttributeValue:xn,reScanJsxToken:Zt,reScanLessThanToken:Qe,reScanHashToken:Mt,reScanQuestionToken:yr,reScanInvalidIdentifier:Ue,scanJsxToken:Cr,scanJsDocToken:In,scanJSDocCommentTextToken:Lr,scan:Fe,getText:Pt,clearCommentDirectives:Ar,setText:Yt,setScriptTarget:$r,setLanguageVariant:Fn,setOnError:Qr,resetTokenState:ja,setTextPos:ja,setInJSDocType:Ca,tryScan:bi,lookAhead:Wa,scanRange:ia};return D.isDebugging&&Object.defineProperty(B,"__debugShowCurrentPositionInText",{get:()=>{const rn=B.getText();return rn.slice(0,B.getTokenFullStart())+"\u2551"+rn.slice(B.getTokenFullStart())}}),B;function U(rn,wr=_,ln,Kr){if(s){const Li=_;_=wr,s(rn,ln||0,Kr),_=Li}}function V(){let rn=_,wr=!1,ln=!1,Kr="";for(;;){const Li=f.charCodeAt(_);if(Li===95){E|=512,wr?(wr=!1,ln=!0,Kr+=f.substring(rn,_)):(E|=16384,U(ln?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,_,1)),_++,rn=_;continue}if(k5(Li)){wr=!0,ln=!1,_++;continue}break}return f.charCodeAt(_-1)===95&&(E|=16384,U(p.Numeric_separators_are_not_allowed_here,_-1,1)),Kr+f.substring(rn,_)}function re(){let rn=_,wr;if(f.charCodeAt(_)===48)if(_++,f.charCodeAt(_)===95)E|=16896,U(p.Numeric_separators_are_not_allowed_here,_,1),_--,wr=V();else if(!ce())E|=8192,wr=""+ +k;else if(!k)wr="0";else{k=""+parseInt(k,8),E|=32;const Tt=T===41,it=(Tt?"-":"")+"0o"+(+k).toString(8);return Tt&&rn--,U(p.Octal_literals_are_not_allowed_Use_the_syntax_0,rn,_-rn,it),{type:9,value:k}}else wr=V();let ln,Kr;f.charCodeAt(_)===46&&(_++,ln=V());let Li=_;if(f.charCodeAt(_)===69||f.charCodeAt(_)===101){_++,E|=16,(f.charCodeAt(_)===43||f.charCodeAt(_)===45)&&_++;const Tt=_,it=V();it?(Kr=f.substring(Li,Tt)+it,Li=_):U(p.Digit_expected)}let ot;if(E&512?(ot=wr,ln&&(ot+="."+ln),Kr&&(ot+=Kr)):ot=f.substring(rn,Li),E&8192)return U(p.Decimals_with_leading_zeros_are_not_allowed,rn,Li-rn),{type:9,value:""+ +ot};if(ln!==void 0||E&16)return z(rn,ln===void 0&&!!(E&16)),{type:9,value:""+ +ot};{k=ot;const Tt=Re();return z(rn),{type:Tt,value:k}}}function z(rn,wr){if(!Qh(Jy(f,_),e))return;const ln=_,{length:Kr}=we();Kr===1&&f[ln]==="n"?U(wr?p.A_bigint_literal_cannot_use_exponential_notation:p.A_bigint_literal_must_be_an_integer,rn,ln-rn+1):(U(p.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,ln,Kr),_=ln)}function ce(){const rn=_;let wr=!0;for(;k5(f.charCodeAt(_));)lL(f.charCodeAt(_))||(wr=!1),_++;return k=f.substring(rn,_),wr}function R(rn,wr){const ln=ae(rn,!1,wr);return ln?parseInt(ln,16):-1}function le(rn,wr){return ae(rn,!0,wr)}function ae(rn,wr,ln){let Kr=[],Li=!1,ot=!1;for(;Kr.length=65&&Tt<=70)Tt+=97-65;else if(!(Tt>=48&&Tt<=57||Tt>=97&&Tt<=102))break;Kr.push(Tt),_++,ot=!1}return Kr.length=h){ln+=f.substring(Kr,_),E|=4,U(p.Unterminated_string_literal);break}const Li=f.charCodeAt(_);if(Li===wr){ln+=f.substring(Kr,_),_++;break}if(Li===92&&!rn){ln+=f.substring(Kr,_),ln+=ee(!0),Kr=_;continue}if(Wf(Li)&&!rn){ln+=f.substring(Kr,_),E|=4,U(p.Unterminated_string_literal);break}_++}return ln}function $(rn){const wr=f.charCodeAt(_)===96;_++;let ln=_,Kr="",Li;for(;;){if(_>=h){Kr+=f.substring(ln,_),E|=4,U(p.Unterminated_template_literal),Li=wr?15:18;break}const ot=f.charCodeAt(_);if(ot===96){Kr+=f.substring(ln,_),_++,Li=wr?15:18;break}if(ot===36&&_+1=h)return U(p.Unexpected_end_of_text),"";const ln=f.charCodeAt(_);switch(_++,ln){case 48:if(_>=h||!k5(f.charCodeAt(_)))return"\0";case 49:case 50:case 51:_=h?(E|=2048,rn&&U(p.Unexpected_end_of_text),f.substring(wr,_)):f.charCodeAt(_)!==125?(E|=2048,rn&&U(p.Unterminated_Unicode_escape_sequence),f.substring(wr,_)):(_++,E|=8,w5(Li)):(E|=2048,rn&&U(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),f.substring(wr,_))}for(;_1114111&&(U(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),ln=!0),_>=h?(U(p.Unexpected_end_of_text),ln=!0):f.charCodeAt(_)===125?_++:(U(p.Unterminated_Unicode_escape_sequence),ln=!0),ln?"":w5(wr)}function me(){if(_+5=0&&k4(ln,e)){_+=3,E|=8,rn+=te(),wr=_;continue}if(ln=me(),!(ln>=0&&k4(ln,e)))break;E|=1024,rn+=f.substring(wr,_),rn+=w5(ln),_+=6,wr=_}else break}return rn+=f.substring(wr,_),rn}function K(){const rn=k.length;if(rn>=2&&rn<=12){const wr=k.charCodeAt(0);if(wr>=97&&wr<=122){const ln=Nce.get(k);if(ln!==void 0)return T=ln}}return T=80}function Ze(rn){let wr="",ln=!1,Kr=!1;for(;;){const Li=f.charCodeAt(_);if(Li===95){E|=512,ln?(ln=!1,Kr=!0):U(Kr?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,_,1),_++;continue}if(ln=!0,!k5(Li)||Li-48>=rn)break;wr+=f[_],_++,Kr=!1}return f.charCodeAt(_-1)===95&&U(p.Numeric_separators_are_not_allowed_here,_-1,1),wr}function Re(){return f.charCodeAt(_)===110?(k+="n",E&384&&(k=v9(k)+"n"),_++,10):(k=""+(E&128?parseInt(k.slice(2),2):E&256?parseInt(k.slice(2),8):+k),9)}function Fe(){m=_,E=0;let rn=!1;for(;;){if(y=_,_>=h)return T=1;const wr=Jy(f,_);if(_===0){if(wr===65533)return U(p.File_appears_to_be_binary),_=h,T=8;if(wr===35&&Tq(f,_)){if(_=Sq(f,_),t)continue;return T=6}}switch(wr){case 10:case 13:if(E|=1,t){_++;continue}else return wr===13&&_+1=0&&Qh(ln,e))return _+=3,E|=8,k=te()+we(),T=K();const Kr=me();return Kr>=0&&Qh(Kr,e)?(_+=6,E|=1024,k=String.fromCharCode(Kr)+we(),T=K()):(U(p.Invalid_character),_++,T=0);case 35:if(_!==0&&f[_+1]==="!")return U(p.can_only_be_used_at_the_start_of_a_file),_++,T=0;const Li=Jy(f,_+1);if(Li===92){_++;const it=ve();if(it>=0&&Qh(it,e))return _+=3,E|=8,k="#"+te()+we(),T=81;const Wt=me();if(Wt>=0&&Qh(Wt,e))return _+=6,E|=1024,k="#"+String.fromCharCode(Wt)+we(),T=81;_--}return Qh(Li,e)?(_++,Ae(Li,e)):(k="#",U(p.Invalid_character,_++,rb(wr))),T=81;default:const ot=Ae(wr,e);if(ot)return T=ot;if(v1(wr)){_+=rb(wr);continue}else if(Wf(wr)){E|=1,_+=rb(wr);continue}const Tt=rb(wr);return U(p.Invalid_character,_,Tt),_+=Tt,T=0}}}function Ue(){D.assert(T===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),_=y=m,E=0;const rn=Jy(f,_),wr=Ae(rn,99);return wr?T=wr:(_+=rb(rn),T)}function Ae(rn,wr){let ln=rn;if(Qh(ln,wr)){for(_+=rb(ln);_=h)return T=1;let wr=f.charCodeAt(_);if(wr===60)return f.charCodeAt(_+1)===47?(_+=2,T=31):(_++,T=30);if(wr===123)return _++,T=19;let ln=0;for(;_0)break;Zh(wr)||(ln=_)}_++}return k=f.substring(m,_),ln===-1?13:12}function Lt(){if(Wp(T)){for(;_=h)return T=1;for(let wr=f.charCodeAt(_);_=0&&v1(f.charCodeAt(_-1))&&!(_+1=h)return T=1;const rn=Jy(f,_);switch(_+=rb(rn),rn){case 9:case 11:case 12:case 32:for(;_=0&&Qh(wr,e))return _+=3,E|=8,k=te()+we(),T=K();const ln=me();return ln>=0&&Qh(ln,e)?(_+=6,E|=1024,k=String.fromCharCode(ln)+we(),T=K()):(_++,T=0)}if(Qh(rn,e)){let wr=rn;for(;_=0),_=rn,m=rn,y=rn,T=0,k=void 0,E=0}function Ca(rn){N+=rn?1:-1}}function rb(e){return e>=65536?2:1}function awe(e){if(D.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}function w5(e){return zce(e)}var bD,Nce,kq,Ice,Pce,Oce,Mce,Lce,Fce,Rce,Bce,jce,xD,fL,Jy,zce,swe=or({"src/compiler/scanner.ts"(){"use strict";ho(),bD={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:162,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:160,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:163,out:147,readonly:148,require:149,global:161,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:164},Nce=new Map(Object.entries(bD)),kq=new Map(Object.entries(Xs(fa({},bD),{"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62}))),Ice=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Pce=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Oce=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Mce=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Lce=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],Fce=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],Rce=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Bce=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,jce=nwe(kq),xD=7,fL=/^#!.*/,Jy=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,n){const i=t.length;if(n<0||n>=i)return;const s=t.charCodeAt(n);if(s>=55296&&s<=56319&&i>n+1){const o=t.charCodeAt(n+1);if(o>=56320&&o<=57343)return(s-55296)*1024+o-56320+65536}return s},zce=String.fromCodePoint?e=>String.fromCodePoint(e):awe}});function hf(e){return ap(e)||t0(e)}function E5(e){return $o(e,p9)}function pL(e){switch(gc(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function qf(e){return e.start+e.length}function Jce(e){return e.length===0}function Cq(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Uce(e,t){return t.start>=e.start&&qf(t)<=qf(e)}function owe(e,t){return Vce(e,t)!==void 0}function Vce(e,t){const n=qce(e,t);return n&&n.length===0?void 0:n}function cwe(e,t){return gL(e.start,e.length,t.start,t.length)}function mL(e,t,n){return gL(e.start,e.length,t,n)}function gL(e,t,n,i){const s=e+t,o=n+i;return n<=s&&o>=e}function Wce(e,t){return t<=qf(e)&&t>=e.start}function qce(e,t){const n=Math.max(e.start,t.start),i=Math.min(qf(e),qf(t));return n<=i?L_(n,i):void 0}function nf(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function L_(e,t){return nf(e,t-e)}function Ew(e){return nf(e.span.start,e.newLength)}function $ce(e){return Jce(e.span)&&e.newLength===0}function TD(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function lwe(e){if(e.length===0)return Qq;if(e.length===1)return e[0];const t=e[0];let n=t.span.start,i=qf(t.span),s=n+t.newLength;for(let o=1;ot.flags)}function _we(e,t,n){const i=e.toLowerCase(),s=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(!s){n&&n.push(zu(p.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}const o=s[1],l=s[3];Zn(Kq,i)&&!f(o,l,n)&&f(o,void 0,n),Of(e);function f(_,h,m){const y=ec(t.getExecutingFilePath()),T=ga(y);let k=ta(T,_);if(h&&(k=k+"-"+h),k=t.resolvePath(ta(k,"diagnosticMessages.generated.json")),!t.fileExists(k))return!1;let E="";try{E=t.readFile(k)}catch(O){return m&&m.push(zu(p.Unable_to_open_file_0,k)),!1}try{C_e(JSON.parse(E))}catch(O){return m&&m.push(zu(p.Corrupted_locale_file_0,k)),!1}return!0}}function au(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function Sn(e,t){for(;e;){const n=t(e);if(n==="quit")return;if(n)return e;e=e.parent}}function Aw(e){return(e.flags&8)===0}function gs(e,t){if(e===void 0||Aw(e))return e;for(e=e.original;e;){if(Aw(e))return!t||t(e)?e:void 0;e=e.original}}function Kl(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Ba(e){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function ri(e){return Ba(e.escapedText)}function C4(e){const t=Qx(e.escapedText);return t?di(t,pd):void 0}function Bu(e){return e.valueDeclaration&&qp(e.valueDeclaration)?ri(e.valueDeclaration.name):Ba(e.escapedName)}function Xce(e){const t=e.parent.parent;if(t){if(cp(t))return hL(t);switch(t.kind){case 242:if(t.declarationList&&t.declarationList.declarations[0])return hL(t.declarationList.declarations[0]);break;case 243:let n=t.expression;switch(n.kind===225&&n.operatorToken.kind===64&&(n=n.left),n.kind){case 210:return n.name;case 211:const i=n.argumentExpression;if(Be(i))return i}break;case 216:return hL(t.expression);case 255:{if(cp(t.statement)||ht(t.statement))return hL(t.statement);break}}}}function hL(e){const t=Es(e);return t&&Be(t)?t:void 0}function SD(e,t){return!!(sp(e)&&Be(e.name)&&ri(e.name)===ri(t)||S_(e)&&bt(e.declarationList.declarations,n=>SD(n,t)))}function Zce(e){return e.name||Xce(e)}function sp(e){return!!e.name}function yL(e){switch(e.kind){case 80:return e;case 354:case 347:{const{name:n}=e;if(n.kind===165)return n.right;break}case 212:case 225:{const n=e;switch(Au(n)){case 1:case 4:case 5:case 3:return pF(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 352:return Zce(e);case 346:return Xce(e);case 276:{const{expression:n}=e;return Be(n)?n:void 0}case 211:const t=e;if(fF(t))return t.argumentExpression}return e.name}function Es(e){if(e!==void 0)return yL(e)||(_l(e)||Fl(e)||Mp(e)?Aq(e):void 0)}function Aq(e){if(e.parent){if(Y_(e.parent)||Cc(e.parent))return e.parent.name;if(Un(e.parent)&&e===e.parent.right){if(Be(e.parent.left))return e.parent.left;if($l(e.parent.left))return pF(e.parent.left)}else if(Fa(e.parent)&&Be(e.parent.name))return e.parent.name}else return}function nb(e){if(o0(e))return Mn(e.modifiers,lp)}function Kx(e){if(Pi(e,126975))return Mn(e.modifiers,Do)}function Yce(e,t){if(e.name)if(Be(e.name)){const n=e.name.escapedText;return Dw(e.parent,t).filter(i=>Jg(i)&&Be(i.name)&&i.name.escapedText===n)}else{const n=e.parent.parameters.indexOf(e);D.assert(n>-1,"Parameters should always be in their parents' parameter list");const i=Dw(e.parent,t).filter(Jg);if(nUg(i)&&i.typeParameters.some(s=>s.name.escapedText===n))}function ele(e){return Kce(e,!1)}function tle(e){return Kce(e,!0)}function rle(e){return!!n0(e,Jg)}function nle(e){return n0(e,Lk)}function ile(e){return Oq(e,GG)}function Dq(e){return n0(e,lpe)}function fwe(e){return n0(e,VG)}function ale(e){return n0(e,VG,!0)}function pwe(e){return n0(e,WG)}function sle(e){return n0(e,WG,!0)}function dwe(e){return n0(e,qG)}function ole(e){return n0(e,qG,!0)}function mwe(e){return n0(e,$G)}function cle(e){return n0(e,$G,!0)}function lle(e){return n0(e,qR,!0)}function Nq(e){return n0(e,HG)}function ule(e){return n0(e,HG,!0)}function Iq(e){return n0(e,fI)}function vL(e){return n0(e,upe)}function _le(e){return n0(e,$R)}function gwe(e){return n0(e,Ug)}function Pq(e){return n0(e,HR)}function X6(e){const t=n0(e,H9);if(t&&t.typeExpression&&t.typeExpression.type)return t}function ib(e){let t=n0(e,H9);return!t&&Cs(e)&&(t=on(D5(e),n=>!!n.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function kD(e){const t=_le(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=X6(e);if(n&&n.typeExpression){const i=n.typeExpression.type;if(Sm(i)){const s=on(i.members,Ck);return s&&s.type}if(uy(i)||Ok(i))return i.type}}function Dw(e,t){var s;var n;if(!aN(e))return tt;let i=(n=e.jsDoc)==null?void 0:n.jsDocCache;if(i===void 0||t){const o=F$(e,t);D.assert(o.length<2||o[0]!==o[1]),i=lo(o,l=>cg(l)?l.tags:l),t||((s=e.jsDoc)!=null||(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function Z6(e){return Dw(e,!1)}function hwe(e){return Dw(e,!0)}function n0(e,t,n){return on(Dw(e,n),t)}function Oq(e,t){return Z6(e).filter(t)}function ywe(e,t){return Z6(e).filter(n=>n.kind===t)}function CD(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===327?t.text:vwe(t)).join("")}function vwe(e){const t=e.kind===330?"link":e.kind===331?"linkcode":"linkplain",n=e.name?Yd(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${n}${i}${e.text}}`}function ab(e){if(J4(e)){if($9(e.parent)){const t=Hw(e.parent);if(t&&Nr(t.tags))return lo(t.tags,n=>Ug(n)?n.typeParameters:void 0)}return tt}if(M0(e))return D.assert(e.parent.kind===326),lo(e.parent.tags,t=>Ug(t)?t.typeParameters:void 0);if(e.typeParameters||xpe(e)&&e.typeParameters)return e.typeParameters;if(jn(e)){const t=wF(e);if(t.length)return t;const n=ib(e);if(n&&uy(n)&&n.typeParameters)return n.typeParameters}return tt}function N5(e){return e.constraint?e.constraint:Ug(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Uy(e){return e.kind===80||e.kind===81}function bL(e){return e.kind===177||e.kind===176}function xL(e){return mi(e)&&!!(e.flags&32)}function Mq(e){return Ll(e)&&!!(e.flags&32)}function e7(e){return go(e)&&!!(e.flags&32)}function op(e){const t=e.kind;return!!(e.flags&32)&&(t===210||t===211||t===212||t===234)}function Nw(e){return op(e)&&!MS(e)&&!!e.questionDotToken}function TL(e){return Nw(e.parent)&&e.parent.expression===e}function Iw(e){return!op(e.parent)||Nw(e.parent)||e!==e.parent.expression}function Lq(e){return e.kind===225&&e.operatorToken.kind===61}function Vy(e){return Rg(e)&&Be(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Q0(e){return Gf(e,8)}function SL(e){return MS(e)&&!!(e.flags&32)}function Pw(e){return e.kind===251||e.kind===250}function Fq(e){return e.kind===279||e.kind===278}function fle(e){switch(e.kind){case 308:case 309:return!0;default:return!1}}function Rq(e){return fle(e)||e.kind===306||e.kind===310}function kL(e){return e.kind===354||e.kind===347}function bwe(e){return wD(e.kind)}function wD(e){return e>=165}function Bq(e){return e>=0&&e<=164}function ZT(e){return Bq(e.kind)}function Y6(e){return Hs(e,"pos")&&Hs(e,"end")}function Ow(e){return 9<=e&&e<=15}function t7(e){return Ow(e.kind)}function jq(e){switch(e.kind){case 209:case 208:case 14:case 217:case 230:return!0}return!1}function sb(e){return 15<=e&&e<=18}function ple(e){return sb(e.kind)}function CL(e){const t=e.kind;return t===17||t===18}function YT(e){return Ld(e)||dd(e)}function wL(e){switch(e.kind){case 275:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 273:return e.parent.isTypeOnly;case 272:case 270:return e.isTypeOnly}return!1}function dle(e){switch(e.kind){case 280:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 277:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 279:return e.parent.isTypeOnly}return!1}function Q6(e){return wL(e)||dle(e)}function mle(e){return sc(e)||Be(e)}function zq(e){return e.kind===11||sb(e.kind)}function uu(e){var t;return Be(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function QT(e){var t;return Ea(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function qp(e){return(fo(e)||O5(e))&&Ea(e.name)}function I5(e){return mi(e)&&Ea(e.name)}function Wv(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 163:return!0}return!1}function Mw(e){return!!(mS(e)&16476)}function Jq(e){return Mw(e)||e===126||e===163||e===129}function Do(e){return Wv(e.kind)}function hm(e){const t=e.kind;return t===165||t===80}function _u(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===166}function Kh(e){const t=e.kind;return t===80||t===205||t===206}function Qs(e){return!!e&&KT(e.kind)}function P5(e){return!!e&&(KT(e.kind)||fu(e))}function Jl(e){return e&&hle(e.kind)}function gle(e){return e.kind===112||e.kind===97}function hle(e){switch(e){case 261:case 173:case 175:case 176:case 177:case 217:case 218:return!0;default:return!1}}function KT(e){switch(e){case 172:case 178:case 329:case 179:case 180:case 183:case 323:case 184:return!0;default:return hle(e)}}function Uq(e){return Ja(e)||C1(e)||oo(e)&&Qs(e.parent)}function yf(e){const t=e.kind;return t===175||t===171||t===173||t===176||t===177||t===180||t===174||t===239}function Yi(e){return e&&(e.kind===262||e.kind===230)}function w4(e){return e&&(e.kind===176||e.kind===177)}function ym(e){return fo(e)&&lh(e)}function O5(e){switch(e.kind){case 173:case 176:case 177:return!0;default:return!1}}function yle(e){switch(e.kind){case 173:case 176:case 177:case 171:return!0;default:return!1}}function Ul(e){return Do(e)||lp(e)}function r7(e){const t=e.kind;return t===179||t===178||t===170||t===172||t===180||t===176||t===177}function EL(e){return r7(e)||yf(e)}function qv(e){const t=e.kind;return t===302||t===303||t===304||t===173||t===176||t===177}function Oa(e){return bH(e.kind)}function vle(e){switch(e.kind){case 183:case 184:return!0}return!1}function _o(e){if(e){const t=e.kind;return t===206||t===205}return!1}function Lw(e){const t=e.kind;return t===208||t===209}function AL(e){const t=e.kind;return t===207||t===231}function ED(e){switch(e.kind){case 259:case 168:case 207:return!0}return!1}function ble(e){return Fa(e)||Cs(e)||DD(e)||ND(e)}function AD(e){return Vq(e)||Wq(e)}function Vq(e){switch(e.kind){case 205:case 209:return!0}return!1}function DD(e){switch(e.kind){case 207:case 302:case 303:case 304:return!0}return!1}function Wq(e){switch(e.kind){case 206:case 208:return!0}return!1}function ND(e){switch(e.kind){case 207:case 231:case 229:case 208:case 209:case 80:case 210:case 211:return!0}return Hp(e,!0)}function xle(e){const t=e.kind;return t===210||t===165||t===204}function Tle(e){const t=e.kind;return t===210||t===165}function n7(e){switch(e.kind){case 285:case 284:case 212:case 213:case 214:case 169:return!0;default:return!1}}function ey(e){return e.kind===212||e.kind===213}function M5(e){const t=e.kind;return t===227||t===15}function Dd(e){return Sle(Q0(e).kind)}function Sle(e){switch(e){case 210:case 211:case 213:case 212:case 283:case 284:case 287:case 214:case 208:case 216:case 209:case 230:case 217:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 227:case 97:case 106:case 110:case 112:case 108:case 234:case 232:case 235:case 102:case 281:return!0;default:return!1}}function qq(e){return kle(Q0(e).kind)}function kle(e){switch(e){case 223:case 224:case 219:case 220:case 221:case 222:case 215:return!0;default:return Sle(e)}}function Cle(e){switch(e.kind){case 224:return!0;case 223:return e.operator===46||e.operator===47;default:return!1}}function wle(e){switch(e.kind){case 106:case 112:case 97:case 223:return!0;default:return t7(e)}}function ht(e){return xwe(Q0(e).kind)}function xwe(e){switch(e){case 226:case 228:case 218:case 225:case 229:case 233:case 231:case 360:case 359:case 237:return!0;default:return kle(e)}}function i7(e){const t=e.kind;return t===215||t===233}function Twe(e){return jG(e)||JR(e)}function ob(e,t){switch(e.kind){case 247:case 248:case 249:case 245:case 246:return!0;case 255:return t&&ob(e.statement,t)}return!1}function Ele(e){return Wu(e)||Sf(e)}function Ale(e){return bt(e,Ele)}function DL(e){return!FD(e)&&!Wu(e)&&!Pi(e,1)&&!Np(e)}function ID(e){return FD(e)||Wu(e)||Pi(e,1)}function L5(e){return e.kind===248||e.kind===249}function NL(e){return oo(e)||ht(e)}function $q(e){return oo(e)}function i0(e){return of(e)||ht(e)}function Dle(e){const t=e.kind;return t===267||t===266||t===80}function Swe(e){const t=e.kind;return t===267||t===266}function kwe(e){const t=e.kind;return t===80||t===266}function Hq(e){const t=e.kind;return t===274||t===273}function IL(e){return e.kind===266||e.kind===265}function rh(e){switch(e.kind){case 218:case 225:case 207:case 212:case 178:case 262:case 230:case 174:case 175:case 184:case 179:case 211:case 265:case 305:case 276:case 277:case 280:case 261:case 217:case 183:case 176:case 80:case 272:case 270:case 275:case 180:case 263:case 344:case 346:case 323:case 347:case 354:case 329:case 352:case 328:case 290:case 291:case 292:case 199:case 173:case 172:case 266:case 201:case 279:case 269:case 273:case 213:case 15:case 9:case 209:case 168:case 210:case 302:case 171:case 170:case 177:case 303:case 311:case 304:case 11:case 264:case 186:case 167:case 259:return!0;default:return!1}}function nh(e){switch(e.kind){case 218:case 240:case 178:case 268:case 298:case 174:case 193:case 175:case 184:case 179:case 247:case 248:case 249:case 261:case 217:case 183:case 176:case 180:case 344:case 346:case 323:case 329:case 352:case 199:case 173:case 172:case 266:case 177:case 311:case 264:return!0;default:return!1}}function Cwe(e){return e===218||e===207||e===262||e===230||e===174||e===175||e===265||e===305||e===280||e===261||e===217||e===176||e===272||e===270||e===275||e===263||e===290||e===173||e===172||e===266||e===269||e===273||e===279||e===168||e===302||e===171||e===170||e===177||e===303||e===264||e===167||e===259||e===352||e===344||e===354}function Gq(e){return e===261||e===281||e===262||e===263||e===264||e===265||e===266||e===271||e===270||e===277||e===276||e===269}function Xq(e){return e===251||e===250||e===258||e===245||e===243||e===241||e===248||e===249||e===247||e===244||e===255||e===252||e===254||e===256||e===257||e===242||e===246||e===253||e===358}function cp(e){return e.kind===167?e.parent&&e.parent.kind!==351||jn(e):Cwe(e.kind)}function Nle(e){return Gq(e.kind)}function PD(e){return Xq(e.kind)}function us(e){const t=e.kind;return Xq(t)||Gq(t)||wwe(e)}function wwe(e){return e.kind!==240||e.parent!==void 0&&(e.parent.kind===257||e.parent.kind===298)?!1:!a3(e)}function Ile(e){const t=e.kind;return Xq(t)||Gq(t)||t===240}function Ple(e){const t=e.kind;return t===282||t===165||t===80}function Fw(e){const t=e.kind;return t===110||t===80||t===210||t===294}function OD(e){const t=e.kind;return t===283||t===293||t===284||t===12||t===287}function PL(e){const t=e.kind;return t===290||t===292}function Ole(e){const t=e.kind;return t===11||t===293}function $p(e){const t=e.kind;return t===285||t===284}function OL(e){const t=e.kind;return t===295||t===296}function F5(e){return e.kind>=315&&e.kind<=356}function ML(e){return e.kind===326||e.kind===325||e.kind===327||eS(e)||R5(e)||Mk(e)||J4(e)}function R5(e){return e.kind>=333&&e.kind<=356}function $v(e){return e.kind===177}function cb(e){return e.kind===176}function vm(e){if(!aN(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function LL(e){return!!e.type}function lb(e){return!!e.initializer}function a7(e){switch(e.kind){case 259:case 168:case 207:case 171:case 302:case 305:return!0;default:return!1}}function Zq(e){return e.kind===290||e.kind===292||qv(e)}function FL(e){return e.kind===182||e.kind===232}function Mle(e){let t=e$;for(const n of e){if(!n.length)continue;let i=0;for(;in.kind===t)}function To(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function ih(e){return(e.flags&33554432)!==0}function Awe(){var e="";const t=n=>e+=n;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(n,i)=>t(n),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Zh(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ho,decreaseIndent:Ho,clear:()=>e=""}}function t$(e,t){return e.configFilePath!==t.configFilePath||Fle(e,t)}function Fle(e,t){return B5(e,t,dB)}function Rle(e,t){return B5(e,t,MX)}function B5(e,t,n){return e!==t&&n.some(i=>!BH(jF(e,i),jF(t,i)))}function Ble(e,t){for(;;){const n=t(e);if(n==="quit")return;if(n!==void 0)return n;if(Ja(e))return;e=e.parent}}function Zd(e,t){const n=e.entries();for(const[i,s]of n){const o=t(s,i);if(o)return o}}function tS(e,t){const n=e.keys();for(const i of n){const s=t(i);if(s)return s}}function RL(e,t){e.forEach((n,i)=>{t.set(i,n)})}function Rw(e){const t=E9.getText();try{return e(E9),E9.getText()}finally{E9.clear(),E9.writeKeyword(t)}}function MD(e){return e.end-e.pos}function j5(e,t,n){var i,s;return(s=(i=e==null?void 0:e.resolvedModules)==null?void 0:i.get(t,n))==null?void 0:s.resolvedModule}function jle(e,t,n,i){e.resolvedModules||(e.resolvedModules=P7()),e.resolvedModules.set(t,i,n)}function zle(e,t,n,i){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=P7()),e.resolvedTypeReferenceDirectiveNames.set(t,i,n)}function Dwe(e,t,n){var i,s;return(s=(i=e==null?void 0:e.resolvedTypeReferenceDirectiveNames)==null?void 0:i.get(t,n))==null?void 0:s.resolvedTypeReferenceDirective}function r$(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Jle(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&Nwe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.node10Result===t.node10Result}function n$(e,t,n,i,s){var o,l;const f=(l=(o=e.resolvedModules)==null?void 0:o.get(n,i))==null?void 0:l.node10Result,_=f?Ps(void 0,p.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,f,f.indexOf(i2+"@types/")>-1?`@types/${iE(s)}`:s):t.typesPackageExists(s)?Ps(void 0,p.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,s,iE(s)):t.packageBundlesTypes(s)?Ps(void 0,p.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s,n):Ps(void 0,p.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,iE(s));return _&&(_.repopulateInfo=()=>({moduleReference:n,mode:i,packageName:s===n?void 0:s})),_}function Nwe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function BL({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function ub(e){return`${BL(e)}@${e.version}`}function Ule(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function i$(e,t,n,i,s,o){D.assert(e.length===n.length);for(let l=0;l=0),zy(t)[e]}function Pwe(e){const t=bn(e),n=Ql(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function LD(e,t){D.assert(e>=0);const n=zy(t),i=e,s=t.text;if(i+1===n.length)return s.length-1;{const o=n[i];let l=n[i+1]-1;for(D.assert(Wf(s.charCodeAt(l)));o<=l&&Wf(s.charCodeAt(l));)l--;return l}}function JL(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function Eu(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function I0(e){return!Eu(e)}function Wle(e,t){return eu(e)?t===e.expression:fu(e)?t===e.modifiers:Vm(e)?t===e.initializer:fo(e)?t===e.questionToken&&ym(e):Y_(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Bw(e.modifiers,t,Ul):_0(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Bw(e.modifiers,t,Ul):g_(e)?t===e.exclamationToken:Uu(e)?t===e.typeParameters||t===e.type||Bw(e.typeParameters,t,eu):sg(e)?t===e.typeParameters||Bw(e.typeParameters,t,eu):u0(e)?t===e.typeParameters||t===e.type||Bw(e.typeParameters,t,eu):uI(e)?t===e.modifiers||Bw(e.modifiers,t,Ul):!1}function Bw(e,t,n){return!e||ns(t)||!n(t)?!1:Zn(e,t)}function qle(e,t,n){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${Ql(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:s,markUsed:o};function s(){return zt(n.entries()).filter(([l,f])=>f.type===0&&!i.get(l)).map(([l,f])=>f)}function o(l){return n.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function s7(e,t,n){return Eu(e)?e.pos:F5(e)||e.kind===12?tc((t||bn(e)).text,e.pos,!1,!0):n&&vm(e)?s7(e.jsDoc[0],t):e.kind===357&&e._children.length>0?s7(e._children[0],t,n):tc((t||bn(e)).text,e.pos,!1,!1,WD(e))}function o$(e,t){const n=!Eu(e)&&lg(e)?rl(e.modifiers,lp):void 0;return n?tc((t||bn(e)).text,n.end):s7(e,t)}function e3(e,t,n=!1){return jw(e.text,t,n)}function Mwe(e){return!!Sn(e,E7)}function VL(e){return!!(Sf(e)&&e.exportClause&&_y(e.exportClause)&&e.exportClause.name.escapedText==="default")}function jw(e,t,n=!1){if(Eu(t))return"";let i=e.substring(n?t.pos:tc(e,t.pos),t.end);return Mwe(t)&&(i=i.split(/\r\n|\n|\r/).map(s=>y4(s.replace(/^\s*\*/,""))).join(` -`)),i}function F_(e,t=!1){return e3(bn(e),e,t)}function Lwe(e){return e.pos}function J5(e,t){return tr(e,t,Lwe,Uc)}function _c(e){const t=e.emitNode;return t&&t.flags||0}function K0(e){const t=e.emitNode;return t&&t.internalFlags||0}function c$(){return new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:tt})),AsyncIterator:new Map(Object.entries({es2015:tt})),Atomics:new Map(Object.entries({es2017:tt})),SharedArrayBuffer:new Map(Object.entries({es2017:tt})),AsyncIterable:new Map(Object.entries({es2018:tt})),AsyncIterableIterator:new Map(Object.entries({es2018:tt})),AsyncGenerator:new Map(Object.entries({es2018:tt})),AsyncGeneratorFunction:new Map(Object.entries({es2018:tt})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:tt,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:tt})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:tt,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:tt,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function Xle(e,t,n){var i;if(t&&Fwe(e,n))return e3(t,e);switch(e.kind){case 11:{const s=n&2?Z$:n&1||_c(e)&16777216?_S:gN;return e.singleQuote?"'"+s(e.text,39)+"'":'"'+s(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const s=n&1||_c(e)&16777216?_S:gN,o=(i=e.rawText)!=null?i:n9e(s(e.text,96));switch(e.kind){case 15:return"`"+o+"`";case 16:return"`"+o+"${";case 17:return"}"+o+"${";case 18:return"}"+o+"`"}break}case 9:case 10:return e.text;case 14:return n&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return D.fail(`Literal kind '${e.kind}' not accounted for.`)}function Fwe(e,t){if(Ol(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(Um(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!OR(e)}function Zle(e){return bs(e)?'"'+gN(e)+'"':""+e}function Yle(e){return H_(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function l$(e){return(b1(e)&3)!==0||u$(e)}function u$(e){const t=ch(e);return t.kind===259&&t.parent.kind===298}function Np(e){return Vu(e)&&(e.name.kind===11||x1(e))}function WL(e){return Vu(e)&&e.name.kind===11}function _$(e){return Vu(e)&&sc(e.name)}function Qle(e){return Vu(e)||Be(e)}function zw(e){return Rwe(e.valueDeclaration)}function Rwe(e){return!!e&&e.kind===266&&!e.body}function Kle(e){return e.kind===311||e.kind===266||P5(e)}function x1(e){return!!(e.flags&1024)}function t3(e){return Np(e)&&f$(e)}function f$(e){switch(e.parent.kind){case 311:return c_(e.parent);case 267:return Np(e.parent.parent)&&Ja(e.parent.parent.parent)&&!c_(e.parent.parent.parent)}return!1}function p$(e){var t;return(t=e.declarations)==null?void 0:t.find(n=>!t3(n)&&!(Vu(n)&&x1(n)))}function Bwe(e){return e===1||e===100||e===199}function rS(e,t){return c_(e)||Bwe(Ff(t))&&!!e.commonJsModuleIndicator}function d$(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:R0(t,"alwaysStrict")||gpe(e.statements)?!0:c_(e)||Fg(t)?Ff(t)>=5?!0:!t.noImplicitUseStrict:!1}function m$(e){return!!(e.flags&16777216)||Pi(e,2)}function g$(e,t){switch(e.kind){case 311:case 268:case 298:case 266:case 247:case 248:case 249:case 175:case 173:case 176:case 177:case 261:case 217:case 218:case 171:case 174:return!0;case 240:return!P5(t)}return!1}function h$(e){switch(D.type(e),e.kind){case 344:case 352:case 329:return!0;default:return y$(e)}}function y$(e){switch(D.type(e),e.kind){case 178:case 179:case 172:case 180:case 183:case 184:case 323:case 262:case 230:case 263:case 264:case 351:case 261:case 173:case 175:case 176:case 177:case 217:case 218:return!0;default:return!1}}function o7(e){switch(e.kind){case 271:case 270:return!0;default:return!1}}function eue(e){return o7(e)||o3(e)}function qL(e){switch(e.kind){case 271:case 270:case 242:case 262:case 261:case 266:case 264:case 263:case 265:return!0;default:return!1}}function tue(e){return FD(e)||Vu(e)||Qy(e)||xm(e)}function FD(e){return o7(e)||Sf(e)}function sh(e){return Sn(e.parent,t=>g$(t,t.parent))}function rue(e,t){let n=sh(e);for(;n;)t(n),n=sh(n)}function il(e){return!e||MD(e)===0?"(Missing)":F_(e)}function nue(e){return e.declaration?il(e.declaration.parameters[0].name):void 0}function RD(e){return e.kind===166&&!a0(e.expression)}function Jw(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return Kl(e.text);case 166:return a0(e.expression)?Kl(e.expression.text):void 0;case 294:return vk(e);default:return D.assertNever(e)}}function U5(e){return D.checkDefined(Jw(e))}function Yd(e){switch(e.kind){case 110:return"this";case 81:case 80:return MD(e)===0?ri(e):F_(e);case 165:return Yd(e.left)+"."+Yd(e.right);case 210:return Be(e.name)||Ea(e.name)?Yd(e.expression)+"."+Yd(e.name):D.assertNever(e.name);case 317:return Yd(e.left)+Yd(e.right);case 294:return Yd(e.namespace)+":"+Yd(e.name);default:return D.assertNever(e)}}function ai(e,t,...n){const i=bn(e);return P0(i,e,t,...n)}function V5(e,t,n,...i){const s=tc(e.text,t.pos);return af(e,s,t.end-s,n,...i)}function P0(e,t,n,...i){const s=r3(e,t);return af(e,s.start,s.length,n,...i)}function Wy(e,t,n,i){const s=r3(e,t);return $L(e,s.start,s.length,n,i)}function BD(e,t,n,i){const s=tc(e.text,t.pos);return $L(e,s,t.end-s,n,i)}function v$(e,t,n){D.assertGreaterThanOrEqual(t,0),D.assertGreaterThanOrEqual(n,0),e&&(D.assertLessThanOrEqual(t,e.text.length),D.assertLessThanOrEqual(t+n,e.text.length))}function $L(e,t,n,i,s){return v$(e,t,n),{file:e,start:t,length:n,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:s}}function b$(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function iue(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function x$(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function oh(e,t){const n=Uv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();const i=n.getTokenStart();return L_(i,n.getTokenEnd())}function aue(e,t){const n=Uv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function jwe(e,t){const n=tc(e.text,t.pos);if(t.body&&t.body.kind===240){const{line:i}=Ql(e,t.body.pos),{line:s}=Ql(e,t.body.end);if(i0?t.statements[0].pos:t.end;return L_(o,l)}case 252:case 228:{const o=tc(e.text,t.pos);return oh(e,o)}case 237:{const o=tc(e.text,t.expression.end);return oh(e,o)}case 356:{const o=tc(e.text,t.tagName.pos);return oh(e,o)}}if(n===void 0)return oh(e,t.pos);D.assert(!cg(n));const i=Eu(n),s=i||kS(t)?n.pos:tc(e.text,n.pos);return i?(D.assert(s===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),D.assert(s===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(D.assert(s>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),D.assert(s<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),L_(s,n.end)}function bm(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function O0(e){return e.scriptKind===6}function n3(e){return!!(Vv(e)&2048)}function HL(e){return!!(Vv(e)&64&&!gm(e,e.parent))}function qy(e){return!!(b1(e)&2)}function Uw(e){return!!(b1(e)&1)}function W5(e){return e.kind===212&&e.expression.kind===108}function xm(e){return e.kind===212&&e.expression.kind===102}function q5(e){return j9(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function E4(e){return Qy(e)&&R4(e.argument)&&sc(e.argument.literal)}function eg(e){return e.kind===243&&e.expression.kind===11}function GL(e){return!!(_c(e)&2097152)}function XL(e){return GL(e)&&B_(e)}function zwe(e){return Be(e.name)&&!e.initializer}function ZL(e){return GL(e)&&S_(e)&&yn(e.declarationList.declarations,zwe)}function T$(e,t){return e.kind!==12?Yh(t.text,e.pos):void 0}function S$(e,t){const n=e.kind===168||e.kind===167||e.kind===217||e.kind===218||e.kind===216||e.kind===259||e.kind===280?Nn(S4(t,e.pos),Yh(t,e.pos)):Yh(t,e.pos);return Mn(n,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function ry(e){if(181<=e.kind&&e.kind<=204)return!0;switch(e.kind){case 133:case 159:case 150:case 162:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==221;case 232:return Kd(e.parent)&&!TN(e);case 167:return e.parent.kind===199||e.parent.kind===194;case 80:(e.parent.kind===165&&e.parent.right===e||e.parent.kind===210&&e.parent.name===e)&&(e=e.parent),D.assert(e.kind===80||e.kind===165||e.kind===210,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 165:case 210:case 110:{const{parent:t}=e;if(t.kind===185)return!1;if(t.kind===204)return!t.isTypeOf;if(181<=t.kind&&t.kind<=204)return!0;switch(t.kind){case 232:return Kd(t.parent)&&!TN(t);case 167:return e===t.constraint;case 351:return e===t.constraint;case 171:case 170:case 168:case 259:return e===t.type;case 261:case 217:case 218:case 175:case 173:case 172:case 176:case 177:return e===t.type;case 178:case 179:case 180:return e===t.type;case 215:return e===t.type;case 212:case 213:case 214:return Zn(t.typeArguments,e)}}}return!1}function Jwe(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function i3(e,t){return n(e);function n(i){switch(i.kind){case 252:return t(i);case 268:case 240:case 244:case 245:case 246:case 247:case 248:case 249:case 253:case 254:case 295:case 296:case 255:case 257:case 298:return js(i,n)}}}function sue(e,t){return n(e);function n(i){switch(i.kind){case 228:t(i);const s=i.expression;s&&n(s);return;case 265:case 263:case 266:case 264:return;default:if(Qs(i)){if(i.name&&i.name.kind===166){n(i.name.expression);return}}else ry(i)||js(i,n)}}}function k$(e){return e&&e.kind===187?e.elementType:e&&e.kind===182?de(e.typeArguments):void 0}function oue(e){switch(e.kind){case 263:case 262:case 230:case 186:return e.members;case 209:return e.properties}}function $5(e){if(e)switch(e.kind){case 207:case 305:case 168:case 302:case 171:case 170:case 303:case 259:return!0}return!1}function cue(e){return $5(e)||w4(e)}function YL(e){return e.parent.kind===260&&e.parent.parent.kind===242}function lue(e){return jn(e)?Dc(e.parent)&&Un(e.parent.parent)&&Au(e.parent.parent)===2||QL(e.parent):!1}function QL(e){return jn(e)?Un(e)&&Au(e)===1:!1}function uue(e){return(Fa(e)?qy(e)&&Be(e.name)&&YL(e):fo(e)?r9(e)&&R_(e):Vm(e)&&r9(e))||QL(e)}function _ue(e){switch(e.kind){case 173:case 172:case 175:case 176:case 177:case 261:case 217:return!0}return!1}function C$(e,t){for(;;){if(t&&t(e),e.statement.kind!==255)return e.statement;e=e.statement}}function a3(e){return e&&e.kind===240&&Qs(e.parent)}function tg(e){return e&&e.kind===173&&e.parent.kind===209}function KL(e){return(e.kind===173||e.kind===176||e.kind===177)&&(e.parent.kind===209||e.parent.kind===230)}function fue(e){return e&&e.kind===1}function Uwe(e){return e&&e.kind===0}function H5(e,t,n,i){return Vt(e==null?void 0:e.properties,s=>{if(!Y_(s))return;const o=Jw(s.name);return t===o||i&&i===o?n(s):void 0})}function pue(e,t,n){return H5(e,t,i=>Op(i.initializer)?on(i.initializer.elements,s=>sc(s)&&s.text===n):void 0)}function Vw(e){if(e&&e.statements.length){const t=e.statements[0].expression;return di(t,Dc)}}function eF(e,t,n){return jD(e,t,i=>Op(i.initializer)?on(i.initializer.elements,s=>sc(s)&&s.text===n):void 0)}function jD(e,t,n){return H5(Vw(e),t,n)}function Jm(e){return Sn(e.parent,Qs)}function due(e){return Sn(e.parent,Jl)}function Z_(e){return Sn(e.parent,Yi)}function mue(e){return Sn(e.parent,t=>Yi(t)||Qs(t)?"quit":fu(t))}function tF(e){return Sn(e.parent,P5)}function _d(e,t,n){for(D.assert(e.kind!==311);;){if(e=e.parent,!e)return D.fail();switch(e.kind){case 166:if(n&&Yi(e.parent.parent))return e;e=e.parent.parent;break;case 169:e.parent.kind===168&&yf(e.parent.parent)?e=e.parent.parent:yf(e.parent)&&(e=e.parent);break;case 218:if(!t)continue;case 261:case 217:case 266:case 174:case 171:case 170:case 173:case 172:case 175:case 176:case 177:case 178:case 179:case 180:case 265:case 311:return e}}}function gue(e){switch(e.kind){case 218:case 261:case 217:case 171:return!0;case 240:switch(e.parent.kind){case 175:case 173:case 176:case 177:return!0;default:return!1}default:return!1}}function rF(e){Be(e)&&(cf(e.parent)||B_(e.parent))&&e.parent.name===e&&(e=e.parent);const t=_d(e,!0,!1);return Ja(t)}function hue(e){const t=_d(e,!1,!1);if(t)switch(t.kind){case 175:case 261:case 217:return t}}function zD(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 166:e=e.parent;break;case 261:case 217:case 218:if(!t)continue;case 171:case 170:case 173:case 172:case 175:case 176:case 177:case 174:return e;case 169:e.parent.kind===168&&yf(e.parent.parent)?e=e.parent.parent:yf(e.parent)&&(e=e.parent);break}}}function c7(e){if(e.kind===217||e.kind===218){let t=e,n=e.parent;for(;n.kind===216;)t=n,n=n.parent;if(n.kind===212&&n.expression===t)return n}}function Vwe(e){return e.kind===108||fd(e)}function fd(e){const t=e.kind;return(t===210||t===211)&&e.expression.kind===108}function JD(e){const t=e.kind;return(t===210||t===211)&&e.expression.kind===110}function nF(e){var t;return!!e&&Fa(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function yue(e){return!!e&&(_0(e)||Y_(e))&&Un(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function UD(e){switch(e.kind){case 182:return e.typeName;case 232:return ju(e.expression)?e.expression:void 0;case 80:case 165:return e}}function iF(e){switch(e.kind){case 214:return e.tag;case 285:case 284:return e.tagName;default:return e.expression}}function aF(e,t,n,i){if(e&&sp(t)&&Ea(t.name))return!1;switch(t.kind){case 262:return!0;case 230:return!e;case 171:return n!==void 0&&(e?cf(n):Yi(n)&&!p3(t)&&!sH(t));case 176:case 177:case 173:return t.body!==void 0&&n!==void 0&&(e?cf(n):Yi(n));case 168:return e?n!==void 0&&n.body!==void 0&&(n.kind===175||n.kind===173||n.kind===177)&&u3(n)!==t&&i!==void 0&&i.kind===262:!1}return!1}function G5(e,t,n,i){return o0(t)&&aF(e,t,n,i)}function VD(e,t,n,i){return G5(e,t,n,i)||Ww(e,t,n)}function Ww(e,t,n){switch(t.kind){case 262:return bt(t.members,i=>VD(e,i,t,n));case 230:return!e&&bt(t.members,i=>VD(e,i,t,n));case 173:case 177:case 175:return bt(t.parameters,i=>G5(e,i,t,n));default:return!1}}function s3(e,t){if(G5(e,t))return!0;const n=ay(t);return!!n&&Ww(e,n,t)}function w$(e,t,n){let i;if(w4(t)){const{firstAccessor:s,secondAccessor:o,setAccessor:l}=d7(n.members,t),f=o0(s)?s:o&&o0(o)?o:void 0;if(!f||t!==f)return!1;i=l==null?void 0:l.parameters}else g_(t)&&(i=t.parameters);if(G5(e,t,n))return!0;if(i){for(const s of i)if(!_3(s)&&G5(e,s,t,n))return!0}return!1}function E$(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return E$(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function X5(e){const{parent:t}=e;return t.kind===285||t.kind===284||t.kind===286?t.tagName===e:!1}function $y(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 233:case 215:case 237:case 234:case 216:case 217:case 230:case 218:case 221:case 219:case 220:case 223:case 224:case 225:case 226:case 229:case 227:case 231:case 283:case 284:case 287:case 228:case 222:case 235:return!0;case 232:return!Kd(e.parent)&&!Lk(e.parent);case 165:for(;e.parent.kind===165;)e=e.parent;return e.parent.kind===185||eS(e.parent)||q9(e.parent)||z4(e.parent)||X5(e);case 317:for(;z4(e.parent);)e=e.parent;return e.parent.kind===185||eS(e.parent)||q9(e.parent)||z4(e.parent)||X5(e);case 81:return Un(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===185||eS(e.parent)||q9(e.parent)||z4(e.parent)||X5(e))return!0;case 9:case 10:case 11:case 15:case 110:return sF(e);default:return!1}}function sF(e){const{parent:t}=e;switch(t.kind){case 259:case 168:case 171:case 170:case 305:case 302:case 207:return t.initializer===e;case 243:case 244:case 245:case 246:case 252:case 253:case 254:case 295:case 256:return t.expression===e;case 247:const n=t;return n.initializer===e&&n.initializer.kind!==260||n.condition===e||n.incrementor===e;case 248:case 249:const i=t;return i.initializer===e&&i.initializer.kind!==260||i.expression===e;case 215:case 233:return e===t.expression;case 238:return e===t.expression;case 166:return e===t.expression;case 169:case 293:case 292:case 304:return!0;case 232:return t.expression===e&&!ry(t);case 303:return t.objectAssignmentInitializer===e;case 237:return e===t.expression;default:return $y(t)}}function oF(e){for(;e.kind===165||e.kind===80;)e=e.parent;return e.kind===185}function vue(e){return _y(e)&&!!e.parent.moduleSpecifier}function A4(e){return e.kind===270&&e.moduleReference.kind===282}function qw(e){return D.assert(A4(e)),e.moduleReference.expression}function A$(e){return o3(e)&&_9(e.initializer).arguments[0]}function Z5(e){return e.kind===270&&e.moduleReference.kind!==282}function Ip(e){return jn(e)}function Wwe(e){return!jn(e)}function jn(e){return!!e&&!!(e.flags&262144)}function cF(e){return!!e&&!!(e.flags&67108864)}function D$(e){return!O0(e)}function WD(e){return!!e&&!!(e.flags&8388608)}function lF(e){return Rg(e)&&Be(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Nd(e,t){if(e.kind!==212)return!1;const{expression:n,arguments:i}=e;if(n.kind!==80||n.escapedText!=="require"||i.length!==1)return!1;const s=i[0];return!t||Wc(s)}function N$(e){return xue(e,!1)}function o3(e){return xue(e,!0)}function bue(e){return Cc(e)&&o3(e.parent.parent)}function xue(e,t){return Fa(e)&&!!e.initializer&&Nd(t?_9(e.initializer):e.initializer,!0)}function I$(e){return S_(e)&&e.declarationList.declarations.length>0&&yn(e.declarationList.declarations,t=>N$(t))}function qD(e){return e===39||e===34}function uF(e,t){return e3(t,e).charCodeAt(0)===34}function $w(e){return Un(e)||$l(e)||Be(e)||go(e)}function $D(e){return jn(e)&&e.initializer&&Un(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&ju(e.name)&&Y5(e.name,e.initializer.left)?e.initializer.right:e.initializer}function HD(e){const t=$D(e);return t&&D4(t,O4(e.name))}function qwe(e,t){return Vt(e.properties,n=>Y_(n)&&Be(n.name)&&n.name.escapedText==="value"&&n.initializer&&D4(n.initializer,t))}function nS(e){if(e&&e.parent&&Un(e.parent)&&e.parent.operatorToken.kind===64){const t=O4(e.parent.left);return D4(e.parent.right,t)||$we(e.parent.left,e.parent.right,t)}if(e&&go(e)&&iS(e)){const t=qwe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function D4(e,t){if(go(e)){const n=kl(e.expression);return n.kind===217||n.kind===218?e:void 0}if(e.kind===217||e.kind===230||e.kind===218||Dc(e)&&(e.properties.length===0||t))return e}function $we(e,t,n){const i=Un(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&D4(t.right,n);if(i&&Y5(e,t.left))return i}function Tue(e){const t=Fa(e.parent)?e.parent.name:Un(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&D4(e.right,O4(t))&&ju(t)&&Y5(t,e.left)}function P$(e){if(Un(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Un(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Be(t.left))return t.left}else if(Fa(e.parent))return e.parent.name}function Y5(e,t){return rg(e)&&rg(t)?ng(e)===ng(t):Uy(e)&&_F(t)&&(t.expression.kind===110||Be(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?Y5(e,ZD(t)):_F(e)&&_F(t)?Hy(e)===Hy(t)&&Y5(e.expression,t.expression):!1}function GD(e){for(;Hp(e,!0);)e=e.right;return e}function l7(e){return Be(e)&&e.escapedText==="exports"}function O$(e){return Be(e)&&e.escapedText==="module"}function ny(e){return(mi(e)||XD(e))&&O$(e.expression)&&Hy(e)==="exports"}function Au(e){const t=Hwe(e);return t===5||jn(e)?t:0}function iS(e){return Nr(e.arguments)===3&&mi(e.expression)&&Be(e.expression.expression)&&ri(e.expression.expression)==="Object"&&ri(e.expression.name)==="defineProperty"&&a0(e.arguments[1])&&aS(e.arguments[0],!0)}function _F(e){return mi(e)||XD(e)}function XD(e){return Ll(e)&&a0(e.argumentExpression)}function u7(e,t){return mi(e)&&(!t&&e.expression.kind===110||Be(e.name)&&aS(e.expression,!0))||fF(e,t)}function fF(e,t){return XD(e)&&(!t&&e.expression.kind===110||ju(e.expression)||u7(e.expression,!0))}function aS(e,t){return ju(e)||u7(e,t)}function ZD(e){return mi(e)?e.name:e.argumentExpression}function Hwe(e){if(go(e)){if(!iS(e))return 0;const t=e.arguments[0];return l7(t)||ny(t)?8:u7(t)&&Hy(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!$l(e.left)||Gwe(GD(e))?0:aS(e.left.expression,!0)&&Hy(e.left)==="prototype"&&Dc(M$(e))?6:YD(e.left)}function Gwe(e){return OS(e)&&Um(e.expression)&&e.expression.text==="0"}function pF(e){if(mi(e))return e.name;const t=kl(e.argumentExpression);return Um(t)||Wc(t)?t:e}function Hy(e){const t=pF(e);if(t){if(Be(t))return t.escapedText;if(Wc(t)||Um(t))return Kl(t.text)}}function YD(e){if(e.expression.kind===110)return 4;if(ny(e))return 2;if(aS(e.expression,!0)){if(O4(e.expression))return 3;let t=e;for(;!Be(t.expression);)t=t.expression;const n=t.expression;if((n.escapedText==="exports"||n.escapedText==="module"&&Hy(t)==="exports")&&u7(e))return 1;if(aS(e,!0)||Ll(e)&&bF(e))return 5}return 0}function M$(e){for(;Un(e.right);)e=e.right;return e.right}function QD(e){return Un(e)&&Au(e)===3}function Sue(e){return jn(e)&&e.parent&&e.parent.kind===243&&(!Ll(e)||XD(e))&&!!X6(e.parent)}function KD(e,t){const{valueDeclaration:n}=e;(!n||!(t.flags&16777216&&!jn(t)&&!(n.flags&16777216))&&$w(n)&&!$w(t)||n.kind!==t.kind&&Qle(n))&&(e.valueDeclaration=t)}function kue(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===261||Fa(t)&&t.initializer&&Qs(t.initializer)}function eN(e){var t,n;switch(e.kind){case 259:case 207:return(t=Sn(e.initializer,i=>Nd(i,!0)))==null?void 0:t.arguments[0];case 271:return di(e.moduleSpecifier,Wc);case 270:return di((n=di(e.moduleReference,yh))==null?void 0:n.expression,Wc);case 272:case 279:return di(e.parent.moduleSpecifier,Wc);case 273:case 280:return di(e.parent.parent.moduleSpecifier,Wc);case 275:return di(e.parent.parent.parent.moduleSpecifier,Wc);default:D.assertNever(e)}}function tN(e){return rN(e)||D.failBadSyntaxKind(e.parent)}function rN(e){switch(e.parent.kind){case 271:case 277:return e.parent;case 282:return e.parent.parent;case 212:return xm(e.parent)||Nd(e.parent,!1)?e.parent:void 0;case 200:return D.assert(sc(e)),di(e.parent.parent,Qy);default:return}}function Q5(e){switch(e.kind){case 271:case 277:return e.moduleSpecifier;case 270:return e.moduleReference.kind===282?e.moduleReference.expression:void 0;case 204:return E4(e)?e.argument.literal:void 0;case 212:return e.arguments[0];case 266:return e.name.kind===11?e.name:void 0;default:return D.assertNever(e)}}function K5(e){switch(e.kind){case 271:return e.importClause&&di(e.importClause.namedBindings,vb);case 270:return e;case 277:return e.exportClause&&di(e.exportClause,_y);default:return D.assertNever(e)}}function sS(e){return e.kind===271&&!!e.importClause&&!!e.importClause.name}function dF(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=vb(e.namedBindings)?t(e.namedBindings):Vt(e.namedBindings.elements,t);if(n)return n}}function oS(e){if(e)switch(e.kind){case 168:case 173:case 172:case 303:case 302:case 171:case 170:return e.questionToken!==void 0}return!1}function ek(e){const t=Ok(e)?Ji(e.parameters):void 0,n=di(t&&t.name,Be);return!!n&&n.escapedText==="new"}function M0(e){return e.kind===352||e.kind===344||e.kind===346}function nN(e){return M0(e)||zg(e)}function Xwe(e){return $f(e)&&Un(e.expression)&&e.expression.operatorToken.kind===64?GD(e.expression):void 0}function Cue(e){return $f(e)&&Un(e.expression)&&Au(e.expression)!==0&&Un(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function L$(e){switch(e.kind){case 242:const t=tk(e);return t&&t.initializer;case 171:return e.initializer;case 302:return e.initializer}}function tk(e){return S_(e)?Ji(e.declarationList.declarations):void 0}function wue(e){return Vu(e)&&e.body&&e.body.kind===266?e.body:void 0}function iN(e){if(e.kind>=242&&e.kind<=258)return!0;switch(e.kind){case 80:case 110:case 108:case 165:case 235:case 211:case 210:case 207:case 217:case 218:case 173:case 176:case 177:return!0;default:return!1}}function aN(e){switch(e.kind){case 218:case 225:case 240:case 251:case 178:case 295:case 262:case 230:case 174:case 175:case 184:case 179:case 250:case 258:case 245:case 211:case 241:case 1:case 265:case 305:case 276:case 277:case 280:case 243:case 248:case 249:case 247:case 261:case 217:case 183:case 176:case 80:case 244:case 271:case 270:case 180:case 263:case 323:case 329:case 255:case 173:case 172:case 266:case 201:case 269:case 209:case 168:case 216:case 210:case 302:case 171:case 170:case 252:case 239:case 177:case 303:case 304:case 254:case 256:case 257:case 264:case 167:case 259:case 242:case 246:case 253:return!0;default:return!1}}function F$(e,t){let n;$5(e)&&lb(e)&&vm(e.initializer)&&(n=Et(n,Eue(e,fi(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(vm(i)&&(n=Et(n,Eue(e,fi(i.jsDoc)))),i.kind===168){n=Et(n,(t?Qce:D5)(i));break}if(i.kind===167){n=Et(n,(t?tle:ele)(i));break}i=R$(i)}return n||tt}function Eue(e,t){if(cg(t)){const n=Mn(t.tags,i=>Aue(e,i));return t.tags===n?[t]:n}return Aue(e,t)?[t]:void 0}function Aue(e,t){return!(H9(t)||HR(t))||!t.parent||!cg(t.parent)||!Md(t.parent.parent)||t.parent.parent===e}function R$(e){const t=e.parent;if(t.kind===302||t.kind===276||t.kind===171||t.kind===243&&e.kind===210||t.kind===252||wue(t)||Un(e)&&e.operatorToken.kind===64)return t;if(t.parent&&(tk(t.parent)===e||Un(t)&&t.operatorToken.kind===64))return t.parent;if(t.parent&&t.parent.parent&&(tk(t.parent.parent)||L$(t.parent.parent)===e||Cue(t.parent.parent)))return t.parent.parent}function sN(e){if(e.symbol)return e.symbol;if(!Be(e.name))return;const t=e.name.escapedText,n=N4(e);if(!n)return;const i=on(n.parameters,s=>s.name.kind===80&&s.name.escapedText===t);return i&&i.symbol}function mF(e){if(cg(e.parent)&&e.parent.tags){const t=on(e.parent.tags,M0);if(t)return t}return N4(e)}function N4(e){const t=cS(e);if(t)return Vm(t)&&t.type&&Qs(t.type)?t.type:Qs(t)?t:void 0}function cS(e){const t=lS(e);if(t)return Cue(t)||Xwe(t)||L$(t)||tk(t)||wue(t)||t}function lS(e){const t=Hw(e);if(!t)return;const n=t.parent;if(n&&n.jsDoc&&t===io(n.jsDoc))return n}function Hw(e){return Sn(e.parent,cg)}function Due(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&on(n,i=>i.name.escapedText===t)}function Zwe(e){return!!e.typeArguments}function _7(e){let t=e.parent;for(;;){switch(t.kind){case 225:const n=t.operatorToken.kind;return Xv(n)&&t.left===e?n===64||n9(n)?1:2:0;case 223:case 224:const i=t.operator;return i===46||i===47?2:0;case 248:case 249:return t.initializer===e?1:0;case 216:case 208:case 229:case 234:e=t;break;case 304:e=t.parent;break;case 303:if(t.name!==e)return 0;e=t.parent;break;case 302:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function iy(e){return _7(e)!==0}function Nue(e){switch(e.kind){case 240:case 242:case 253:case 244:case 254:case 268:case 295:case 296:case 255:case 247:case 248:case 249:case 245:case 246:case 257:case 298:return!0}return!1}function Iue(e){return _l(e)||Fl(e)||O5(e)||B_(e)||Uu(e)}function Pue(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function oN(e){return Pue(e,195)}function fb(e){return Pue(e,216)}function Oue(e){let t;for(;e&&e.kind===195;)t=e,e=e.parent;return[t,e]}function B$(e){for(;DS(e);)e=e.type;return e}function kl(e,t){return Gf(e,t?17:1)}function j$(e){return e.kind!==210&&e.kind!==211?!1:(e=fb(e.parent),e&&e.kind===219)}function c3(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Gy(e){return!Ja(e)&&!_o(e)&&cp(e.parent)&&e.parent.name===e}function cN(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(jc(t))return t.parent;case 80:if(cp(t))return t.name===e?t:void 0;if(Od(t)){const n=t.parent;return Jg(n)&&n.name===t?n:void 0}else{const n=t.parent;return Un(n)&&Au(n)!==0&&(n.left.symbol||n.symbol)&&Es(n)===e?n:void 0}case 81:return cp(t)&&t.name===e?t:void 0;default:return}}function lN(e){return a0(e)&&e.parent.kind===166&&cp(e.parent.parent)}function Mue(e){const t=e.parent;switch(t.kind){case 171:case 170:case 173:case 172:case 176:case 177:case 305:case 302:case 210:return t.name===e;case 165:return t.right===e;case 207:case 275:return t.propertyName===e;case 280:case 290:case 284:case 285:case 286:return!0}return!1}function Ywe(e){return e.kind===270||e.kind===269||e.kind===272&&e.name||e.kind===273||e.kind===279||e.kind===275||e.kind===280||e.kind===276&&rk(e)?!0:jn(e)&&(Un(e)&&Au(e)===2&&rk(e)||mi(e)&&Un(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&uN(e.parent.right))}function z$(e){switch(e.parent.kind){case 272:case 275:case 273:case 280:case 276:case 270:case 279:return e.parent;case 165:do e=e.parent;while(e.parent.kind===165);return z$(e)}}function uN(e){return ju(e)||Mp(e)}function rk(e){const t=J$(e);return uN(t)}function J$(e){return Wu(e)?e.expression:e.right}function Lue(e){return e.kind===303?e.name:e.kind===302?e.initializer:e.parent.right}function T1(e){const t=l3(e);if(t&&jn(e)){const n=nle(e);if(n)return n.class}return t}function l3(e){const t=_N(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function nk(e){if(jn(e))return ile(e).map(t=>t.class);{const t=_N(e.heritageClauses,119);return t==null?void 0:t.types}}function Gw(e){return Lp(e)?Xw(e)||tt:Yi(e)&&Nn(pa(T1(e)),nk(e))||tt}function Xw(e){const t=_N(e.heritageClauses,96);return t?t.types:void 0}function _N(e,t){if(e){for(const n of e)if(n.token===t)return n}}function I4(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function pd(e){return 83<=e&&e<=164}function U$(e){return 19<=e&&e<=79}function gF(e){return pd(e)||U$(e)}function hF(e){return 128<=e&&e<=164}function Fue(e){return pd(e)&&!hF(e)}function Qwe(e){return 119<=e&&e<=127}function uS(e){const t=Qx(e);return t!==void 0&&Fue(t)}function Kwe(e){const t=Qx(e);return t!==void 0&&pd(t)}function yF(e){const t=C4(e);return!!t&&!hF(t)}function ik(e){return 2<=e&&e<=7}function vf(e){if(!e)return 4;let t=0;switch(e.kind){case 261:case 217:case 173:e.asteriskToken&&(t|=1);case 218:Pi(e,512)&&(t|=2);break}return e.body||(t|=4),t}function ak(e){switch(e.kind){case 261:case 217:case 218:case 173:return e.body!==void 0&&e.asteriskToken===void 0&&Pi(e,512)}return!1}function a0(e){return Wc(e)||Um(e)}function vF(e){return B4(e)&&(e.operator===40||e.operator===41)&&Um(e.operand)}function Hv(e){const t=Es(e);return!!t&&bF(t)}function bF(e){if(!(e.kind===166||e.kind===211))return!1;const t=Ll(e)?kl(e.argumentExpression):e.expression;return!a0(t)&&!vF(t)}function P4(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 9:return Kl(e.text);case 166:const t=e.expression;return a0(t)?Kl(t.text):vF(t)?t.operator===41?Uo(t.operator)+t.operand.text:t.operand.text:void 0;case 294:return vk(e);default:return D.assertNever(e)}}function rg(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function ng(e){return Uy(e)?ri(e):A1(e)?w9(e):e.text}function Zw(e){return Uy(e)?e.escapedText:A1(e)?vk(e):Kl(e.text)}function e9e(e){return`__@${oc(e)}@${e.escapedName}`}function fN(e,t){return`__#${oc(e)}@${t}`}function pN(e){return Ga(e.escapedName,"__@")}function Rue(e){return Ga(e.escapedName,"__#")}function t9e(e){return e.kind===80&&e.escapedText==="Symbol"}function Bue(e){return Be(e)?ri(e)==="__proto__":sc(e)&&e.text==="__proto__"}function Yw(e,t){switch(e=Gf(e),e.kind){case 230:case 217:if(e.name)return!1;break;case 218:break;default:return!1}return typeof t=="function"?t(e):!0}function V$(e){switch(e.kind){case 302:return!Bue(e.name);case 303:return!!e.objectAssignmentInitializer;case 259:return Be(e.name)&&!!e.initializer;case 168:return Be(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 207:return Be(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 171:return!!e.initializer;case 225:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Be(e.left)}break;case 276:return!0}return!1}function s0(e,t){if(!V$(e))return!1;switch(e.kind){case 302:return Yw(e.initializer,t);case 303:return Yw(e.objectAssignmentInitializer,t);case 259:case 168:case 207:case 171:return Yw(e.initializer,t);case 225:return Yw(e.right,t);case 276:return Yw(e.expression,t)}}function W$(e){return e.escapedText==="push"||e.escapedText==="unshift"}function f7(e){return ch(e).kind===168}function ch(e){for(;e.kind===207;)e=e.parent.parent;return e}function q$(e){const t=e.kind;return t===175||t===217||t===261||t===218||t===173||t===176||t===177||t===266||t===311}function Ol(e){return k1(e.pos)||k1(e.end)}function r9e(e){return gs(e,Ja)||e}function $$(e){const t=G$(e),n=e.kind===213&&e.arguments!==void 0;return H$(e.kind,t,n)}function H$(e,t,n){switch(e){case 213:return n?0:1;case 223:case 220:case 221:case 219:case 222:case 226:case 228:return 1;case 225:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function xF(e){const t=G$(e),n=e.kind===213&&e.arguments!==void 0;return dN(e.kind,t,n)}function G$(e){return e.kind===225?e.operatorToken.kind:e.kind===223||e.kind===224?e.operator:e.kind}function dN(e,t,n){switch(e){case 360:return 0;case 229:return 1;case 228:return 2;case 226:return 4;case 225:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return mN(t)}case 215:case 234:case 223:case 220:case 221:case 219:case 222:return 16;case 224:return 17;case 212:return 18;case 213:return n?19:18;case 214:case 210:case 211:case 235:return 19;case 233:case 237:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 208:case 209:case 217:case 218:case 230:case 14:case 15:case 227:case 216:case 231:case 283:case 284:case 287:return 20;default:return-1}}function mN(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Qw(e){return Mn(e,t=>{switch(t.kind){case 293:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function sk(){let e=[];const t=[],n=new Map;let i=!1;return{add:o,lookup:s,getGlobalDiagnostics:l,getDiagnostics:f};function s(_){let h;if(_.file?h=n.get(_.file.fileName):h=e,!h)return;const m=tr(h,_,Jc,MF);if(m>=0)return h[m]}function o(_){let h;_.file?(h=n.get(_.file.fileName),h||(h=[],n.set(_.file.fileName,h),qo(t,_.file.fileName,tn))):(i&&(i=!1,e=e.slice()),h=e),qo(h,_,MF)}function l(){return i=!0,e}function f(_){if(_)return n.get(_)||[];const h=jf(t,m=>n.get(m));return e.length&&h.unshift(...e),h}}function n9e(e){return e.replace(sfe,"\\${")}function X$(e){return e&&!!(CS(e)?e.templateFlags:e.head.templateFlags||bt(e.templateSpans,t=>!!t.literal.templateFlags))}function jue(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function i9e(e,t,n){if(e.charCodeAt(0)===0){const i=n.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return ufe.get(e)||jue(e.charCodeAt(0))}function _S(e,t){const n=t===96?lfe:t===39?cfe:ofe;return e.replace(n,i9e)}function gN(e,t){return e=_S(e,t),tG.test(e)?e.replace(tG,n=>jue(n.charCodeAt(0))):e}function a9e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function s9e(e){return e.charCodeAt(0)===0?"�":pfe.get(e)||a9e(e.charCodeAt(0))}function Z$(e,t){const n=t===39?ffe:_fe;return e.replace(n,s9e)}function ig(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&o9e(e.charCodeAt(0))?e.substring(1,t-1):e}function o9e(e){return e===39||e===34||e===96}function ok(e){const t=e.charCodeAt(0);return t>=97&&t<=122||Qo(e,"-")}function TF(e){const t=bk[1];for(let n=bk.length;n<=e;n++)bk.push(bk[n-1]+t);return bk[e]}function ck(){return bk[1].length}function hN(){return Qo(Zu,"-dev")||Qo(Zu,"-insiders")}function yN(e){var t,n,i,s,o,l=!1;function f(N){const B=mD(N);B.length>1?(s=s+B.length-1,o=t.length-N.length+fi(B),i=o-t.length===0):i=!1}function _(N){N&&N.length&&(i&&(N=TF(n)+N,i=!1),t+=N,f(N))}function h(N){N&&(l=!1),_(N)}function m(N){N&&(l=!0),_(N)}function y(){t="",n=0,i=!0,s=0,o=0,l=!1}function T(N){N!==void 0&&(t+=N,f(N),l=!1)}function k(N){N&&N.length&&h(N)}function E(N){(!i||N)&&(t+=e,s++,o=t.length,i=!0,l=!1)}function O(){return i?t.length:t.length+e.length}return y(),{write:h,rawWrite:T,writeLiteral:k,writeLine:E,increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>s,getColumn:()=>i?n*ck():t.length-o,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Zh(t.charCodeAt(t.length-1)),clear:y,writeKeyword:h,writeOperator:h,writeParameter:h,writeProperty:h,writePunctuation:h,writeSpace:h,writeStringLiteral:h,writeSymbol:(N,B)=>h(N),writeTrailingSemicolon:h,writeComment:m,getTextPosWithWriteLine:O}}function Y$(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return Xs(fa({},e),{writeTrailingSemicolon(){t=!0},writeLiteral(i){n(),e.writeLiteral(i)},writeStringLiteral(i){n(),e.writeStringLiteral(i)},writeSymbol(i,s){n(),e.writeSymbol(i,s)},writePunctuation(i){n(),e.writePunctuation(i)},writeKeyword(i){n(),e.writeKeyword(i)},writeOperator(i){n(),e.writeOperator(i)},writeParameter(i){n(),e.writeParameter(i)},writeSpace(i){n(),e.writeSpace(i)},writeProperty(i){n(),e.writeProperty(i)},writeComment(i){n(),e.writeComment(i)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}})}function vN(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Gv(e){return N_(vN(e))}function SF(e,t,n){return t.moduleName||Q$(e,t.fileName,n&&n.fileName)}function zue(e,t){return e.getCanonicalFileName(ms(t,e.getCurrentDirectory()))}function Jue(e,t,n){const i=t.getExternalModuleFileFromDeclaration(n);if(!i||i.isDeclarationFile)return;const s=Q5(n);if(!(s&&Wc(s)&&!ap(s.text)&&zue(e,i.path).indexOf(zue(e,Dp(e.getCommonSourceDirectory())))===-1))return SF(e,i)}function Q$(e,t,n){const i=_=>e.getCanonicalFileName(_),s=Sl(n?ga(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),o=ms(t,e.getCurrentDirectory()),l=XT(s,o,s,i,!1),f=Pd(l);return n?G6(f):f}function Uue(e,t,n){const i=t.getCompilerOptions();let s;return i.outDir?s=Pd(CF(e,t,i.outDir)):s=Pd(e),s+n}function Vue(e,t){return K$(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),n=>t.getCanonicalFileName(n))}function K$(e,t,n,i,s){const o=t.declarationDir||t.outDir,l=o?rH(e,o,n,i,s):e,f=eH(l);return Pd(l)+f}function eH(e){return Zl(e,[".mjs",".mts"])?".d.mts":Zl(e,[".cjs",".cts"])?".d.cts":Zl(e,[".json"])?".d.json.ts":".d.ts"}function Wue(e){return Zl(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Zl(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Zl(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ml(e){return e.outFile||e.out}function kF(e,t){var i;var n;if(e.paths)return(i=e.baseUrl)!=null?i:D.checkDefined(e.pathsBasePath||((n=t.getCurrentDirectory)==null?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function tH(e,t,n){const i=e.getCompilerOptions();if(Ml(i)){const s=Ff(i),o=i.emitDeclarationOnly||s===2||s===4;return Mn(e.getSourceFiles(),l=>(o||!c_(l))&&fS(l,e,n))}else{const s=t===void 0?e.getSourceFiles():[t];return Mn(s,o=>fS(o,e,n))}}function fS(e,t,n){return!(t.getCompilerOptions().noEmitForJsFiles&&Ip(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(n||!(O0(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function CF(e,t,n){return rH(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function rH(e,t,n,i,s){let o=ms(e,n);return o=s(o).indexOf(s(i))===0?o.substring(i.length):o,ta(t,o)}function Kw(e,t,n,i,s,o,l){e.writeFile(n,i,s,f=>{t.add(zu(p.Could_not_write_file_0_Colon_1,n,f))},o,l)}function que(e,t,n){if(e.length>Pg(e)&&!n(e)){const i=ga(e);que(i,t,n),t(e)}}function nH(e,t,n,i,s,o){try{i(e,t,n)}catch(l){que(ga(ec(e)),s,o),i(e,t,n)}}function e9(e,t){const n=zy(e);return kw(n,t)}function p7(e,t){return kw(e,t)}function ay(e){return on(e.members,t=>Uu(t)&&I0(t.body))}function t9(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&_3(e.parameters[0]);return e.parameters[t?1:0]}}function $ue(e){const t=t9(e);return t&&t.type}function u3(e){if(e.parameters.length&&!J4(e)){const t=e.parameters[0];if(_3(t))return t}}function _3(e){return f3(e.name)}function f3(e){return!!e&&e.kind===80&&iH(e)}function pS(e){if(!f3(e))return!1;for(;Od(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===185}function iH(e){return e.escapedText==="this"}function d7(e,t){let n,i,s,o;return Hv(t)?(n=t,t.kind===176?s=t:t.kind===177?o=t:D.fail("Accessor has wrong kind")):Vt(e,l=>{if(w4(l)&&so(l)===so(t)){const f=P4(l.name),_=P4(t.name);f===_&&(n?i||(i=l):n=l,l.kind===176&&!s&&(s=l),l.kind===177&&!o&&(o=l))}}),{firstAccessor:n,secondAccessor:i,getAccessor:s,setAccessor:o}}function Lf(e){if(!jn(e)&&B_(e))return;const t=e.type;return t||!jn(e)?t:kL(e)?e.typeExpression&&e.typeExpression.type:ib(e)}function Hue(e){return e.type}function Og(e){return J4(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(jn(e)?kD(e):void 0)}function wF(e){return lo(Z6(e),t=>c9e(t)?t.typeParameters:void 0)}function c9e(e){return Ug(e)&&!(e.parent.kind===326&&(e.parent.tags.some(M0)||e.parent.tags.some($9)))}function Gue(e){const t=t9(e);return t&&Lf(t)}function Xue(e,t,n,i){Zue(e,t,n.pos,i)}function Zue(e,t,n,i){i&&i.length&&n!==i[0].pos&&p7(e,n)!==p7(e,i[0].pos)&&t.writeLine()}function Yue(e,t,n,i){n!==i&&p7(e,n)!==p7(e,i)&&t.writeLine()}function Que(e,t,n,i,s,o,l,f){if(i&&i.length>0){s&&n.writeSpace(" ");let _=!1;for(const h of i)_&&(n.writeSpace(" "),_=!1),f(e,t,n,h.pos,h.end,l),h.hasTrailingNewLine?n.writeLine():_=!0;_&&o&&n.writeSpace(" ")}}function Kue(e,t,n,i,s,o,l){let f,_;if(l?s.pos===0&&(f=Mn(Yh(e,s.pos),h)):f=Yh(e,s.pos),f){const m=[];let y;for(const T of f){if(y){const k=p7(t,y.end);if(p7(t,T.pos)>=k+2)break}m.push(T),y=T}if(m.length){const T=p7(t,fi(m).end);p7(t,tc(e,s.pos))>=T+2&&(Xue(t,n,s,f),Que(e,t,n,m,!1,!0,o,i),_={nodePos:s.pos,detachedCommentEndPos:fi(m).end})}}return _;function h(m){return UL(e,m.pos)}}function lk(e,t,n,i,s,o){if(e.charCodeAt(i+1)===42){const l=hD(t,i),f=t.length;let _;for(let h=i,m=l.line;h0){let E=k%ck();const O=TF((k-E)/ck());for(n.rawWrite(O);E;)n.rawWrite(" "),E--}else n.rawWrite("")}l9e(e,s,n,o,h,y),h=y}}else n.writeComment(e.substring(i,s))}function l9e(e,t,n,i,s,o){const l=Math.min(t,o-1),f=g1(e.substring(s,l));f?(n.writeComment(f),l!==t&&n.writeLine()):n.rawWrite(i)}function e_e(e,t,n){let i=0;for(;t=0&&e.kind<=164?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=cH(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(n||jn(e))&&e.parent&&(e.modifierFlagsCache|=i_e(e)|4096),e.modifierFlagsCache&-536875009)}function Pp(e){return oH(e,!0)}function n_e(e){return oH(e,!0,!0)}function pb(e){return oH(e,!1)}function i_e(e){let t=0;return e.parent&&!Cs(e)&&(jn(e)&&(ale(e)&&(t|=4),sle(e)&&(t|=8),ole(e)&&(t|=16),cle(e)&&(t|=64),lle(e)&&(t|=16384)),ule(e)&&(t|=8192)),t}function a_e(e){return cH(e)|i_e(e)}function cH(e){let t=lg(e)?uh(e.modifiers):0;return(e.flags&4||e.kind===80&&e.flags&2048)&&(t|=1),t}function uh(e){let t=0;if(e)for(const n of e)t|=mS(n.kind);return t}function mS(e){switch(e){case 126:return 32;case 125:return 4;case 124:return 16;case 123:return 8;case 128:return 256;case 129:return 128;case 95:return 1;case 138:return 2;case 87:return 2048;case 90:return 1024;case 134:return 512;case 148:return 64;case 163:return 16384;case 103:return 32768;case 147:return 65536;case 169:return 131072}return 0}function s_e(e){return e===57||e===56}function o_e(e){return s_e(e)||e===54}function n9(e){return e===76||e===77||e===78}function lH(e){return Un(e)&&n9(e.operatorToken.kind)}function bN(e){return s_e(e)||e===61}function xN(e){return Un(e)&&bN(e.operatorToken.kind)}function Xv(e){return e>=64&&e<=79}function uH(e){const t=_H(e);return t&&!t.isImplements?t.class:void 0}function _H(e){if(t2(e)){if(Kd(e.parent)&&Yi(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(Lk(e.parent)){const t=cS(e.parent);if(t&&Yi(t))return{class:t,isImplements:!1}}}}function Hp(e,t){return Un(e)&&(t?e.operatorToken.kind===64:Xv(e.operatorToken.kind))&&Dd(e.left)}function u9e(e){return Hp(e.parent)&&e.parent.left===e}function Zv(e){if(Hp(e,!0)){const t=e.left.kind;return t===209||t===208}return!1}function TN(e){return uH(e)!==void 0}function ju(e){return e.kind===80||SN(e)}function Tm(e){switch(e.kind){case 80:return e;case 165:do e=e.left;while(e.kind!==80);return e;case 210:do e=e.expression;while(e.kind!==80);return e}}function i9(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===235||e.kind===210&&i9(e.expression)||e.kind===216&&i9(e.expression)}function SN(e){return mi(e)&&Be(e.name)&&ju(e.expression)}function kN(e){if(mi(e)){const t=kN(e.expression);if(t!==void 0)return t+"."+Yd(e.name)}else if(Ll(e)){const t=kN(e.expression);if(t!==void 0&&_u(e.argumentExpression))return t+"."+P4(e.argumentExpression)}else{if(Be(e))return Ba(e.escapedText);if(A1(e))return w9(e)}}function O4(e){return u7(e)&&Hy(e)==="prototype"}function a9(e){return e.parent.kind===165&&e.parent.right===e||e.parent.kind===210&&e.parent.name===e}function c_e(e){return mi(e.parent)&&e.parent.name===e||Ll(e.parent)&&e.parent.argumentExpression===e}function l_e(e){return Od(e.parent)&&e.parent.right===e||mi(e.parent)&&e.parent.name===e||z4(e.parent)&&e.parent.right===e}function fH(e){return e.kind===209&&e.properties.length===0}function u_e(e){return e.kind===208&&e.elements.length===0}function uk(e){if(!(!_9e(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function _9e(e){return e&&Nr(e.declarations)>0&&Pi(e.declarations[0],1024)}function AF(e){return on(yfe,t=>Xl(e,t))}function f9e(e){const t=[],n=e.length;for(let i=0;i>6|192),t.push(s&63|128)):s<65536?(t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)):s<131072?(t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)):D.assert(!1,"Unexpected code point")}return t}function __e(e){let t="";const n=f9e(e);let i=0;const s=n.length;let o,l,f,_;for(;i>2,l=(n[i]&3)<<4|n[i+1]>>4,f=(n[i+1]&15)<<2|n[i+2]>>6,_=n[i+2]&63,i+1>=s?f=_=64:i+2>=s&&(_=64),t+=y3.charAt(o)+y3.charAt(l)+y3.charAt(f)+y3.charAt(_),i+=3;return t}function p9e(e){let t="",n=0;const i=e.length;for(;n>4&3,m=(l&15)<<4|f>>2&15,y=(f&3)<<6|_&63;m===0&&f!==0?i.push(h):y===0&&_!==0?i.push(h,m):i.push(h,m,y),s+=4}return p9e(i)}function pH(e,t){const n=bs(t)?t:t.readFile(e);if(!n)return;const i=hX(e,n);return i.error?void 0:i.config}function s9(e,t){return pH(e,t)||{}}function Mg(e,t){return!t.directoryExists||t.directoryExists(e)}function Yv(e){switch(e.newLine){case 0:return dfe;case 1:case void 0:return mfe}}function L0(e,t=e){return D.assert(t>=e||t===-1),{pos:e,end:t}}function DF(e,t){return L0(e.pos,t)}function M4(e,t){return L0(t,e.end)}function db(e){const t=lg(e)?rl(e.modifiers,lp):void 0;return t&&!k1(t.end)?M4(e,t.end):e}function S1(e){if(fo(e)||g_(e))return M4(e,e.name.pos);const t=lg(e)?io(e.modifiers):void 0;return t&&!k1(t.end)?M4(e,t.end):db(e)}function d9e(e){return e.pos===e.end}function dH(e,t){return L0(e,e+Uo(t).length)}function m7(e,t){return m_e(e,e,t)}function NF(e,t,n){return F0(o9(e,n,!1),o9(t,n,!1),n)}function d_e(e,t,n){return F0(e.end,t.end,n)}function m_e(e,t,n){return F0(o9(e,n,!1),t.end,n)}function CN(e,t,n){return F0(e.end,o9(t,n,!1),n)}function mH(e,t,n,i){const s=o9(t,n,i);return Cw(n,e.end,s)}function m9e(e,t,n){return Cw(n,e.end,t.end)}function g_e(e,t){return!F0(e.pos,e.end,t)}function F0(e,t,n){return Cw(n,e,t)===0}function o9(e,t,n){return k1(e.pos)?-1:tc(t.text,e.pos,!1,n)}function h_e(e,t,n,i){const s=tc(n.text,e,!1,i),o=g9e(s,t,n);return Cw(n,o!=null?o:t,s)}function y_e(e,t,n,i){const s=tc(n.text,e,!1,i);return Cw(n,e,Math.min(t,s))}function g9e(e,t=0,n){for(;e-- >t;)if(!Zh(n.text.charCodeAt(e)))return e}function gH(e){const t=gs(e);if(t)switch(t.parent.kind){case 265:case 266:return t===t.parent.name}return!1}function c9(e){return Mn(e.declarations,hH)}function hH(e){return Fa(e)&&e.initializer!==void 0}function h9e(e){return e.watch&&Hs(e,"watch")}function _h(e){e.close()}function Du(e){return e.flags&33554432?e.links.checkFlags:0}function c0(e,t=!1){if(e.valueDeclaration){const n=t&&e.declarations&&on(e.declarations,u0)||e.flags&32768&&on(e.declarations,sg)||e.valueDeclaration,i=Vv(n);return e.parent&&e.parent.flags&32?i:i&-29}if(Du(e)&6){const n=e.links.checkFlags,i=n&1024?8:n&256?4:16,s=n&2048?32:0;return i|s}return e.flags&4194304?36:0}function Id(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function l9(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function IF(e){return _k(e)===1}function u9(e){return _k(e)!==0}function _k(e){const{parent:t}=e;switch(t==null?void 0:t.kind){case 216:return _k(t);case 224:case 223:const{operator:n}=t;return n===46||n===47?2:0;case 225:const{left:i,operatorToken:s}=t;return i===e&&Xv(s.kind)?s.kind===64?1:2:0;case 210:return t.name!==e?0:_k(t);case 302:{const o=_k(t.parent);return e===t.name?y9e(o):o}case 303:return e===t.objectAssignmentInitializer?0:_k(t.parent);case 208:return _k(t);default:return 0}}function y9e(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return D.assertNever(e)}}function yH(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(typeof e[n]=="object"){if(!yH(e[n],t[n]))return!1}else if(typeof e[n]!="function"&&e[n]!==t[n])return!1;return!0}function l0(e,t){e.forEach(t),e.clear()}function Xy(e,t,n){const{onDeleteValue:i,onExistingValue:s}=n;e.forEach((o,l)=>{const f=t.get(l);f===void 0?(e.delete(l),i(o,l)):s&&s(o,f,l)})}function fk(e,t,n){Xy(e,t,n);const{createNewValue:i}=n;t.forEach((s,o)=>{e.has(o)||e.set(o,i(o,s))})}function v_e(e){if(e.flags&32){const t=Zy(e);return!!t&&Pi(t,256)}return!1}function Zy(e){var t;return(t=e.declarations)==null?void 0:t.find(Yi)}function Mi(e){return e.flags&138117121?e.objectFlags:0}function v9e(e,t){return!!jy(e,n=>t(n)?!0:void 0)}function PF(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&uI(e.declarations[0])}function b_e({moduleSpecifier:e}){return sc(e)?e.text:F_(e)}function vH(e){let t;return js(e,n=>{I0(n)&&(t=n)},n=>{for(let i=n.length-1;i>=0;i--)if(I0(n[i])){t=n[i];break}}),t}function Lg(e,t,n=!0){return e.has(t)?!1:(e.set(t,n),!0)}function gS(e){return Yi(e)||Lp(e)||Sm(e)}function bH(e){return e>=181&&e<=204||e===133||e===159||e===150||e===162||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===232||e===318||e===319||e===320||e===321||e===322||e===323||e===324}function $l(e){return e.kind===210||e.kind===211}function x_e(e){return e.kind===210?e.name:(D.assert(e.kind===211),e.argumentExpression)}function T_e(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function xH(e){return e.kind===274||e.kind===278}function _9(e){for(;$l(e);)e=e.expression;return e}function b9e(e,t){if($l(e.parent)&&c_e(e))return n(e.parent);function n(i){if(i.kind===210){const s=t(i.name);if(s!==void 0)return s}else if(i.kind===211)if(Be(i.argumentExpression)||Wc(i.argumentExpression)){const s=t(i.argumentExpression);if(s!==void 0)return s}else return;if($l(i.expression))return n(i.expression);if(Be(i.expression))return t(i.expression)}}function f9(e,t){for(;;){switch(e.kind){case 224:e=e.operand;continue;case 225:e=e.left;continue;case 226:e=e.condition;continue;case 214:e=e.tag;continue;case 212:if(t)return e;case 233:case 211:case 210:case 234:case 359:case 237:e=e.expression;continue}return e}}function x9e(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function T9e(e,t){this.flags=t,(D.isDebugging||Hi)&&(this.checker=e)}function S9e(e,t){this.flags=t,D.isDebugging&&(this.checker=e)}function TH(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function k9e(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function C9e(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function w9e(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}function S_e(e){rG.push(e),e(bf)}function k_e(e){Object.assign(bf,e),Vt(rG,t=>t(bf))}function sy(e,t,n=0){return e.replace(/{(\d+)}/g,(i,s)=>""+D.checkDefined(t[+s+n]))}function C_e(e){JN=e}function w_e(e){!JN&&e&&(JN=e())}function Vo(e){return JN&&JN[e.key]||e.message}function pk(e,t,n,i){v$(void 0,t,n);let s=Vo(i);return arguments.length>4&&(s=sy(s,arguments,4)),{file:void 0,start:t,length:n,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function E9e(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function E_e(e,t){const n=t.fileName||"",i=t.text.length;D.assertEqual(e.fileName,n),D.assertLessThanOrEqual(e.start,i),D.assertLessThanOrEqual(e.start+e.length,i);const s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(const o of e.relatedInformation)E9e(o)&&o.fileName===n?(D.assertLessThanOrEqual(o.start,i),D.assertLessThanOrEqual(o.start+o.length,i),s.relatedInformation.push(E_e(o,t))):s.relatedInformation.push(o)}return s}function hS(e,t){const n=[];for(const i of e)n.push(E_e(i,t));return n}function af(e,t,n,i){v$(e,t,n);let s=Vo(i);return arguments.length>4&&(s=sy(s,arguments,4)),{file:e,start:t,length:n,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function SH(e,t){let n=Vo(t);return arguments.length>2&&(n=sy(n,arguments,2)),n}function zu(e){let t=Vo(e);return arguments.length>1&&(t=sy(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function OF(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Ps(e,t){let n=Vo(t);return arguments.length>2&&(n=sy(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function A_e(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function D_e(e){return e.file?e.file.path:void 0}function p9(e,t){return MF(e,t)||A9e(e,t)||0}function MF(e,t){return tn(D_e(e),D_e(t))||Uc(e.start,t.start)||Uc(e.length,t.length)||Uc(e.code,t.code)||N_e(e.messageText,t.messageText)||0}function A9e(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Uc(e.relatedInformation.length,t.relatedInformation.length)||Vt(e.relatedInformation,(n,i)=>{const s=t.relatedInformation[i];return p9(n,s)})||0:e.relatedInformation?-1:1}function N_e(e,t){if(typeof e=="string"&&typeof t=="string")return tn(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let n=tn(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let s=0;st.next.length?1:0}function wN(e){return e===4||e===2||e===1||e===6?1:0}function I_e(e){if(e.transformFlags&2)return $p(e)||T3(e)?e:js(e,I_e)}function D9e(e){return e.isDeclarationFile?void 0:I_e(e)}function N9e(e){return(e.impliedNodeFormat===99||Zl(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function EN(e){switch(P_e(e)){case 3:return s=>{s.externalModuleIndicator=SI(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=SI(s)};case 2:const t=[SI];(e.jsx===4||e.jsx===5)&&t.push(D9e),t.push(N9e);const n=Mf(...t);return s=>void(s.externalModuleIndicator=n(s))}}function gc(e){var t;return(t=e.target)!=null?t:e.module===100&&9||e.module===199&&99||1}function Ff(e){return typeof e.module=="number"?e.module:gc(e)>=2?5:1}function LF(e){return e>=5&&e<=99}function Ju(e){let t=e.moduleResolution;if(t===void 0)switch(Ff(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function P_e(e){return e.moduleDetection||(Ff(e)===100||Ff(e)===199?3:2)}function FF(e){switch(Ff(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function Fg(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function kH(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function O_e(e){return e.allowUnreachableCode===!1}function M_e(e){return e.allowUnusedLabels===!1}function RF(e){return!!(ag(e)&&e.declarationMap)}function fh(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Ff(e)){case 100:case 199:return!0}}function yS(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:fh(e)||Ff(e)===4||Ju(e)===100}function vS(e){return e>=3&&e<=99||e===100}function BF(e){return!!e.noDtsResolution||Ju(e)!==100}function CH(e){const t=Ju(e);if(!vS(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function I9e(e){const t=Ju(e);if(!vS(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function g7(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:Ju(e)===100}function ag(e){return!!(e.declaration||e.composite)}function h7(e){return!!(e.preserveConstEnums||Fg(e))}function AN(e){return!!(e.incremental||e.composite)}function R0(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function DN(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function NN(e){return e.useDefineForClassFields===void 0?gc(e)>=9:e.useDefineForClassFields}function L_e(e,t){return B5(t,e,IX)}function F_e(e,t){return B5(t,e,PX)}function R_e(e,t){return B5(t,e,OX)}function jF(e,t){return t.strictFlag?R0(e,t.name):e[t.name]}function zF(e){const t=e.jsx;return t===2||t===4||t===5}function JF(e,t){const n=t==null?void 0:t.pragmas.get("jsximportsource"),i=ns(n)?n[n.length-1]:n;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function UF(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function wH(e){let t=!1;for(let n=0;ns,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(f,_)=>(s||(s=new Map)).set(f,_),setSymlinkedDirectory:(f,_)=>{let h=Sl(f,e,t);T9(h)||(h=Dp(h),_!==!1&&!(n!=null&&n.has(h))&&(i||(i=Pf())).add(Dp(_.realPath),f),(n||(n=new Map)).set(h,_))},setSymlinksFromResolutions(f,_){var h,m;D.assert(!o),o=!0;for(const y of f)(h=y.resolvedModules)==null||h.forEach(T=>l(this,T.resolvedModule)),(m=y.resolvedTypeReferenceDirectiveNames)==null||m.forEach(T=>l(this,T.resolvedTypeReferenceDirective));_.forEach(y=>l(this,y.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o};function l(f,_){if(!_||!_.originalPath||!_.resolvedFileName)return;const{resolvedFileName:h,originalPath:m}=_;f.setSymlinkedFile(Sl(m,e,t),h);const[y,T]=P9e(h,m,e,t)||tt;y&&T&&f.setSymlinkedDirectory(T,{real:y,realPath:Sl(y,e,t)})}}function P9e(e,t,n,i){const s=G_(ms(e,n)),o=G_(ms(t,n));let l=!1;for(;s.length>=2&&o.length>=2&&!j_e(s[s.length-2],i)&&!j_e(o[o.length-2],i)&&i(s[s.length-1])===i(o[o.length-1]);)s.pop(),o.pop(),l=!0;return l?[M_(s),M_(o)]:void 0}function j_e(e,t){return e!==void 0&&(t(e)==="node_modules"||Ga(e,"@"))}function O9e(e){return $6(e.charCodeAt(0))?e.slice(1):void 0}function EH(e,t,n){const i=z6(e,t,n);return i===void 0?void 0:O9e(i)}function M9e(e){return e.replace(KF,L9e)}function L9e(e){return"\\"+e}function d9(e,t,n){const i=VF(e,t,n);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${n==="exclude"?"($|/)":"$"}`}function VF(e,t,n){if(!(e===void 0||e.length===0))return lo(e,i=>i&&z_e(i,t,n,oG[n]))}function AH(e){return!/[.*?]/.test(e)}function DH(e,t,n){const i=e&&z_e(e,t,n,oG[n]);return i&&`^(${i})${n==="exclude"?"($|/)":"$"}`}function z_e(e,t,n,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:o}){let l="",f=!1;const _=Jv(e,t),h=fi(_);if(n!=="exclude"&&h==="**")return;_[0]=H6(_[0]),AH(h)&&_.push("**","*");let m=0;for(let y of _){if(y==="**")l+=s;else if(n==="directories"&&(l+="(",m++),f&&(l+=Yl),n!=="exclude"){let T="";y.charCodeAt(0)===42?(T+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(T+="[^./]",y=y.substr(1)),T+=y.replace(KF,o),T!==y&&(l+=eR),l+=T}else l+=y.replace(KF,o);f=!0}for(;m>0;)l+=")?",m--;return l}function NH(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function m9(e,t,n,i,s){e=ec(e),s=ec(s);const o=ta(s,e);return{includeFilePatterns:er(VF(n,o,"files"),l=>`^${l}$`),includeFilePattern:d9(n,o,"files"),includeDirectoryPattern:d9(n,o,"directories"),excludePattern:d9(t,o,"exclude"),basePaths:F9e(e,n,i)}}function mb(e,t){return new RegExp(e,t?"":"i")}function IH(e,t,n,i,s,o,l,f,_){e=ec(e),o=ec(o);const h=m9(e,n,i,s,o),m=h.includeFilePatterns&&h.includeFilePatterns.map(B=>mb(B,s)),y=h.includeDirectoryPattern&&mb(h.includeDirectoryPattern,s),T=h.excludePattern&&mb(h.excludePattern,s),k=m?m.map(()=>[]):[[]],E=new Map,O=N_(s);for(const B of h.basePaths)N(B,ta(o,B),l);return x_(k);function N(B,U,V){const re=O(_(U));if(E.has(re))return;E.set(re,!0);const{files:z,directories:ce}=f(B);for(const R of qt(z,tn)){const le=ta(B,R),ae=ta(U,R);if(!(t&&!Zl(le,t))&&!(T&&T.test(ae)))if(!m)k[0].push(le);else{const ye=zi(m,$=>$.test(ae));ye!==-1&&k[ye].push(le)}}if(!(V!==void 0&&(V--,V===0)))for(const R of qt(ce,tn)){const le=ta(B,R),ae=ta(U,R);(!y||y.test(ae))&&(!T||!T.test(ae))&&N(le,ae,V)}}}function F9e(e,t,n){const i=[e];if(t){const s=[];for(const o of t){const l=t0(o)?o:ec(ta(e,o));s.push(R9e(l))}s.sort($_(!n));for(const o of s)yn(i,l=>!tb(l,o,e,!n))&&i.push(o)}return i}function R9e(e){const t=Lm(e,gfe);return t<0?Gh(e)?H6(ga(e)):e:e.substring(0,e.lastIndexOf(Yl,t))}function WF(e,t){return t||PH(e)||3}function PH(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function g9(e,t){const n=e&&DN(e);if(!t||t.length===0)return n?UN:xk;const i=n?UN:xk,s=x_(i);return[...i,...Mr(t,l=>l.scriptKind===7||n&&B9e(l.scriptKind)&&s.indexOf(l.extension)===-1?[l.extension]:void 0)]}function IN(e,t){return!e||!g7(e)?t:t===UN?vfe:t===xk?hfe:[...t,[".json"]]}function B9e(e){return e===1||e===2}function d3(e){return bt(A9,t=>Xl(e,t))}function h9(e){return bt(cG,t=>Xl(e,t))}function J_e({imports:e},t=Mf(d3,h9)){return bo(e,({text:n})=>ap(n)&&!Zl(n,VN)?t(n):void 0)||!1}function OH(e,t,n,i){if(e==="js"||t===99)return Hk(n)&&s()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!Hk(n))return J_e(i)?2:0;return s();function s(){let o=!1;const l=i.imports.length?i.imports.map(f=>f.text):Ip(i)?j9e(i).map(f=>f.arguments[0].text):tt;for(const f of l)if(ap(f)){if(Zl(f,VN))continue;if(h9(f))return 3;d3(f)&&(o=!0)}return o?2:0}}function j9e(e){let t=0,n;for(const i of e.statements){if(t>3)break;I$(i)?n=Nn(n,i.declarationList.declarations.map(s=>s.initializer)):$f(i)&&Nd(i.expression,!0)?n=Ht(n,i.expression):t++}return n||tt}function U_e(e,t,n){if(!e)return!1;const i=g9(t,n);for(const s of x_(IN(t,i)))if(Xl(e,s))return!0;return!1}function V_e(e){const t=e.match(/\//g);return t?t.length:0}function PN(e,t){return Uc(V_e(e),V_e(t))}function Pd(e){for(const t of nR){const n=W_e(e,t);if(n!==void 0)return n}return e}function W_e(e,t){return Xl(e,t)?ON(e,t):void 0}function ON(e,t){return e.substring(0,e.length-t.length)}function m3(e,t){return mq(e,t,nR,!1)}function dk(e){const t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function qF(e){return Mr(eo(e),t=>dk(t))}function k1(e){return!(e>=0)}function $F(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Ga(e,".d.")&&gi(e,".ts")}function MN(e){return $F(e)||e===".json"}function y7(e){const t=oy(e);return t!==void 0?t:D.fail(`File ${e} has unknown extension.`)}function z9e(e){return oy(e)!==void 0}function oy(e){return on(nR,t=>Xl(e,t))}function LN(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function MH(e,t){const n=[];for(const i of e){if(i===t)return t;bs(i)||n.push(i)}return Ox(n,i=>i,t)}function LH(e,t){const n=e.indexOf(t);return D.assert(n!==-1),e.slice(n)}function ic(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),D.assert(e.relatedInformation!==tt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function q_e(e,t){D.assert(e.length!==0);let n=t(e[0]),i=n;for(let s=1;si&&(i=o)}return{min:n,max:i}}function FH(e){return{pos:s7(e),end:e.end}}function RH(e,t){const n=t.pos-1,i=Math.min(e.text.length,tc(e.text,t.end)+1);return{pos:n,end:i}}function y9(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function BH(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&jr(e,t,BH)}function v9(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const h=e.length-1;let m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,h)||"0"}const n=2,i=e.length-1,s=(i-n)*t,o=new Uint16Array((s>>>4)+(s&15?1:0));for(let h=i-1,m=0;h>=n;h--,m+=t){const y=m>>>4,T=e.charCodeAt(h),E=(T<=57?T-48:10+T-(T<=70?65:97))<<(m&15);o[y]|=E;const O=E>>>16;O&&(o[y+1]|=O)}let l="",f=o.length-1,_=!0;for(;_;){let h=0;_=!1;for(let m=f;m>=0;m--){const y=h<<16|o[m],T=y/10|0;o[m]=T,h=y-T*10,T&&!_&&(f=m,_=!0)}l=h+l}return l}function g3({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function $_e(e){if(HF(e,!1))return jH(e)}function jH(e){const t=e.startsWith("-"),n=v9(`${t?e.slice(1):e}n`);return{negative:t,base10Value:n}}function HF(e,t){if(e==="")return!1;const n=Uv(99,!1);let i=!0;n.setOnError(()=>i=!1),n.setText(e+"n");let s=n.scan();const o=s===41;o&&(s=n.scan());const l=n.getTokenFlags();return i&&s===10&&n.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===g3({negative:o,base10Value:v9(n.getTokenValue())}))}function v7(e){return!!(e.flags&16777216)||oF(e)||V9e(e)||U9e(e)||!($y(e)||J9e(e))}function J9e(e){return Be(e)&&_0(e.parent)&&e.parent.name===e}function U9e(e){for(;e.kind===80||e.kind===210;)e=e.parent;if(e.kind!==166)return!1;if(Pi(e.parent,256))return!0;const t=e.parent.parent.kind;return t===263||t===186}function V9e(e){if(e.kind!==80)return!1;const t=Sn(e.parent,n=>{switch(n.kind){case 297:return!0;case 210:case 232:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===263}function H_e(e){return Rg(e)&&Be(e.typeName)}function G_e(e,t=Dg){if(e.length<2)return!0;const n=e[0];for(let i=1,s=e.length;iQo(e,t))}function Y_e(e){if(!e.parent)return;switch(e.kind){case 167:const{parent:n}=e;return n.kind===194?void 0:n.typeParameters;case 168:return e.parent.parameters;case 203:return e.parent.templateSpans;case 238:return e.parent.templateSpans;case 169:{const{parent:i}=e;return jS(i)?i.modifiers:void 0}case 297:return e.parent.heritageClauses}const{parent:t}=e;if(R5(e))return Mk(e.parent)?void 0:e.parent.tags;switch(t.kind){case 186:case 263:return r7(e)?t.members:void 0;case 191:case 192:return t.types;case 188:case 208:case 360:case 274:case 278:return t.elements;case 209:case 291:return t.properties;case 212:case 213:return Oa(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 283:case 287:return OD(e)?t.children:void 0;case 285:case 284:return Oa(e)?t.typeArguments:void 0;case 240:case 295:case 296:case 267:return t.statements;case 268:return t.clauses;case 262:case 230:return yf(e)?t.members:void 0;case 265:return C3(e)?t.members:void 0;case 311:return t.statements}}function GF(e){if(!e.typeParameters){if(bt(e.parameters,t=>!Lf(t)))return!0;if(e.kind!==218){const t=Ji(e.parameters);if(!(t&&_3(t)))return!0}}return!1}function S9(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Q_e(e){return e.kind===259&&e.parent.kind===298}function JH(e){const t=e.valueDeclaration&&ch(e.valueDeclaration);return!!t&&(Cs(t)||Q_e(t))}function hk(e){return e.kind===217||e.kind===218}function h3(e){return e.replace(/\$/gm,()=>"\\$")}function cy(e){return(+e).toString()===e}function XF(e,t,n,i){return r0(e,t)?M.createIdentifier(e):!i&&cy(e)&&+e>=0?M.createNumericLiteral(+e):M.createStringLiteral(e,!!n)}function k9(e){return!!(e.flags&262144&&e.isThisType)}function UH(e){let t=0,n=0,i=0,s=0,o;(h=>{h[h.BeforeNodeModules=0]="BeforeNodeModules",h[h.NodeModules=1]="NodeModules",h[h.Scope=2]="Scope",h[h.PackageContent=3]="PackageContent"})(o||(o={}));let l=0,f=0,_=0;for(;f>=0;)switch(l=f,f=e.indexOf("/",l+1),_){case 0:e.indexOf(i2,l)===l&&(t=l,n=f,_=1);break;case 1:case 2:_===1&&e.charAt(l+1)==="@"?_=2:(i=f,_=3);break;case 3:e.indexOf(i2,l)===l?_=1:_=3;break}return s=l,_>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:s}:void 0}function q9e(e){var t;return e.kind===347?(t=e.typeExpression)==null?void 0:t.type:e.type}function yk(e){switch(e.kind){case 167:case 262:case 263:case 264:case 265:case 352:case 344:case 346:return!0;case 272:return e.isTypeOnly;case 275:case 280:return e.parent.parent.isTypeOnly;default:return!1}}function FN(e){return j4(e)||S_(e)||B_(e)||cf(e)||Lp(e)||yk(e)||Vu(e)&&!t3(e)&&!x1(e)}function RN(e){if(!kL(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&n.type.kind===322}function VH(e,t){if(e.length===0)return!1;const n=e.charCodeAt(0);return n===35?e.length>1&&Qh(e.charCodeAt(1),t):Qh(n,t)}function K_e(e){var t;return((t=xG(e))==null?void 0:t.kind)===0}function BN(e){return jn(e)&&(e.type&&e.type.kind===322||D5(e).some(({isBracketed:t,typeExpression:n})=>t||!!n&&n.type.kind===322))}function WH(e){switch(e.kind){case 171:case 170:return!!e.questionToken;case 168:return!!e.questionToken||BN(e);case 354:case 347:return RN(e);default:return!1}}function efe(e){const t=e.kind;return(t===210||t===211)&&MS(e.expression)}function qH(e){return jn(e)&&Md(e)&&vm(e)&&!!Pq(e)}function $H(e){return D.checkDefined(ZF(e))}function ZF(e){const t=Pq(e);return t&&t.typeExpression&&t.typeExpression.type}function C9(e){return Be(e)?e.escapedText:vk(e)}function jN(e){return Be(e)?ri(e):w9(e)}function tfe(e){const t=e.kind;return t===80||t===294}function vk(e){return`${e.namespace.escapedText}:${ri(e.name)}`}function w9(e){return`${ri(e.namespace)}:${ri(e.name)}`}function HH(e){return Be(e)?ri(e):w9(e)}var YF,hb,zN,QF,E9,GH,XH,rfe,nfe,ZH,ife,afe,YH,QH,KH,eG,sfe,ofe,cfe,lfe,ufe,tG,_fe,ffe,pfe,bk,y3,dfe,mfe,bf,rG,JN,KF,gfe,nG,eR,iG,aG,sG,oG,xk,cG,hfe,yfe,lG,A9,UN,vfe,tR,rR,VN,uG,nR,iR,$9e=or({"src/compiler/utilities.ts"(){"use strict";ho(),YF=[],hb="tslib",zN=160,QF=1e6,E9=Awe(),GH=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(GH||{}),XH=/^(\/\/\/\s*/,rfe=/^(\/\/\/\s*/,nfe=/^(\/\/\/\s*/,ZH=/^(\/\/\/\s*/,ife=/^\/\/\/\s*/,afe=/^(\/\/\/\s*/,YH=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(YH||{}),QH=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(QH||{}),KH=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(KH||{}),eG=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(eG||{}),sfe=/\$\{/g,ofe=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,cfe=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,lfe=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,ufe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),tG=/[^\u0000-\u007F]/g,_fe=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,ffe=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,pfe=new Map(Object.entries({'"':""","'":"'"})),bk=[""," "],y3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",dfe=`\r -`,mfe=` -`,bf={getNodeConstructor:()=>TH,getTokenConstructor:()=>k9e,getIdentifierConstructor:()=>C9e,getPrivateIdentifierConstructor:()=>TH,getSourceFileConstructor:()=>TH,getSymbolConstructor:()=>x9e,getTypeConstructor:()=>T9e,getSignatureConstructor:()=>S9e,getSourceMapSourceConstructor:()=>w9e},rG=[],KF=/[^\w\s\/]/g,gfe=[42,63],nG=["node_modules","bower_components","jspm_packages"],eR=`(?!(${nG.join("|")})(/|$))`,iG={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${eR}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>NH(e,iG.singleAsteriskRegexFragment)},aG={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${eR}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>NH(e,aG.singleAsteriskRegexFragment)},sG={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>NH(e,sG.singleAsteriskRegexFragment)},oG={files:iG,directories:aG,exclude:sG},xk=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],cG=x_(xk),hfe=[...xk,[".json"]],yfe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],lG=[[".js",".jsx"],[".mjs"],[".cjs"]],A9=x_(lG),UN=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],vfe=[...UN,[".json"]],tR=[".d.ts",".d.cts",".d.mts"],rR=[".ts",".cts",".mts",".tsx"],VN=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],uG=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(uG||{}),nR=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],iR={files:tt,directories:tt}}});function bfe(){let e,t,n,i,s;return{createBaseSourceFileNode:o,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:f,createBaseTokenNode:_,createBaseNode:h};function o(m){return new(s||(s=bf.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(n||(n=bf.getIdentifierConstructor()))(m,-1,-1)}function f(m){return new(i||(i=bf.getPrivateIdentifierConstructor()))(m,-1,-1)}function _(m){return new(t||(t=bf.getTokenConstructor()))(m,-1,-1)}function h(m){return new(e||(e=bf.getNodeConstructor()))(m,-1,-1)}}var H9e=or({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";ho()}});function xfe(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:s,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:T,parenthesizeBranchOfConditionalExpression:k,parenthesizeExpressionOfExportDefault:E,parenthesizeExpressionOfNew:O,parenthesizeLeftSideOfAccess:N,parenthesizeOperandOfPostfixUnary:B,parenthesizeOperandOfPrefixUnary:U,parenthesizeExpressionsOfCommaDelimitedList:V,parenthesizeExpressionForDisallowedComma:re,parenthesizeExpressionOfExpressionStatement:z,parenthesizeConciseBodyOfArrowFunction:ce,parenthesizeCheckTypeOfConditionalType:R,parenthesizeExtendsTypeOfConditionalType:le,parenthesizeConstituentTypesOfUnionType:ye,parenthesizeConstituentTypeOfUnionType:ae,parenthesizeConstituentTypesOfIntersectionType:ee,parenthesizeConstituentTypeOfIntersectionType:$,parenthesizeOperandOfTypeOperator:te,parenthesizeOperandOfReadonlyTypeOperator:me,parenthesizeNonArrayTypeOfPostfixType:ve,parenthesizeElementTypesOfTupleType:we,parenthesizeElementTypeOfTupleType:K,parenthesizeTypeOfOptionalType:Re,parenthesizeTypeArguments:Ae,parenthesizeLeadingTypeArgument:Fe};function i(Me){t||(t=new Map);let He=t.get(Me);return He||(He=je=>h(Me,je),t.set(Me,He)),He}function s(Me){n||(n=new Map);let He=n.get(Me);return He||(He=je=>m(Me,void 0,je),n.set(Me,He)),He}function o(Me,He,je,Pe){const nt=dN(225,Me),wt=H$(225,Me),xt=Q0(He);if(!je&&He.kind===218&&nt>3)return!0;const Zt=xF(xt);switch(Uc(Zt,nt)){case-1:return!(!je&&wt===1&&He.kind===228);case 1:return!1;case 0:if(je)return wt===1;if(Un(xt)&&xt.operatorToken.kind===Me){if(l(Me))return!1;if(Me===40){const Mt=Pe?f(Pe):0;if(Ow(Mt)&&Mt===f(xt))return!1}}return $$(xt)===0}}function l(Me){return Me===42||Me===52||Me===51||Me===53||Me===28}function f(Me){if(Me=Q0(Me),Ow(Me.kind))return Me.kind;if(Me.kind===225&&Me.operatorToken.kind===40){if(Me.cachedLiteralKind!==void 0)return Me.cachedLiteralKind;const He=f(Me.left),je=Ow(He)&&He===f(Me.right)?He:0;return Me.cachedLiteralKind=je,je}return 0}function _(Me,He,je,Pe){return Q0(He).kind===216?He:o(Me,He,je,Pe)?e.createParenthesizedExpression(He):He}function h(Me,He){return _(Me,He,!0)}function m(Me,He,je){return _(Me,je,!1,He)}function y(Me){return G9(Me)?e.createParenthesizedExpression(Me):Me}function T(Me){const He=dN(226,58),je=Q0(Me),Pe=xF(je);return Uc(Pe,He)!==1?e.createParenthesizedExpression(Me):Me}function k(Me){const He=Q0(Me);return G9(He)?e.createParenthesizedExpression(Me):Me}function E(Me){const He=Q0(Me);let je=G9(He);if(!je)switch(f9(He,!1).kind){case 230:case 217:je=!0}return je?e.createParenthesizedExpression(Me):Me}function O(Me){const He=f9(Me,!0);switch(He.kind){case 212:return e.createParenthesizedExpression(Me);case 213:return He.arguments?Me:e.createParenthesizedExpression(Me)}return N(Me)}function N(Me,He){const je=Q0(Me);return Dd(je)&&(je.kind!==213||je.arguments)&&(He||!op(je))?Me:yt(e.createParenthesizedExpression(Me),Me)}function B(Me){return Dd(Me)?Me:yt(e.createParenthesizedExpression(Me),Me)}function U(Me){return qq(Me)?Me:yt(e.createParenthesizedExpression(Me),Me)}function V(Me){const He=ll(Me,re);return yt(e.createNodeArray(He,Me.hasTrailingComma),Me)}function re(Me){const He=Q0(Me),je=xF(He),Pe=dN(225,28);return je>Pe?Me:yt(e.createParenthesizedExpression(Me),Me)}function z(Me){const He=Q0(Me);if(go(He)){const Pe=He.expression,nt=Q0(Pe).kind;if(nt===217||nt===218){const wt=e.updateCallExpression(He,yt(e.createParenthesizedExpression(Pe),Pe),He.typeArguments,He.arguments);return e.restoreOuterExpressions(Me,wt,8)}}const je=f9(He,!1).kind;return je===209||je===217?yt(e.createParenthesizedExpression(Me),Me):Me}function ce(Me){return!oo(Me)&&(G9(Me)||f9(Me,!1).kind===209)?yt(e.createParenthesizedExpression(Me),Me):Me}function R(Me){switch(Me.kind){case 183:case 184:case 193:return e.createParenthesizedType(Me)}return Me}function le(Me){switch(Me.kind){case 193:return e.createParenthesizedType(Me)}return Me}function ae(Me){switch(Me.kind){case 191:case 192:return e.createParenthesizedType(Me)}return R(Me)}function ye(Me){return e.createNodeArray(ll(Me,ae))}function $(Me){switch(Me.kind){case 191:case 192:return e.createParenthesizedType(Me)}return ae(Me)}function ee(Me){return e.createNodeArray(ll(Me,$))}function te(Me){switch(Me.kind){case 192:return e.createParenthesizedType(Me)}return $(Me)}function me(Me){switch(Me.kind){case 197:return e.createParenthesizedType(Me)}return te(Me)}function ve(Me){switch(Me.kind){case 194:case 197:case 185:return e.createParenthesizedType(Me)}return te(Me)}function we(Me){return e.createNodeArray(ll(Me,K))}function K(Me){return Ze(Me)?e.createParenthesizedType(Me):Me}function Ze(Me){return Pk(Me)?Me.postfix:R9(Me)||uy(Me)||L9(Me)||NS(Me)?Ze(Me.type):Ek(Me)?Ze(Me.falseType):ES(Me)||aI(Me)?Ze(fi(Me.types)):AS(Me)?!!Me.typeParameter.constraint&&Ze(Me.typeParameter.constraint):!1}function Re(Me){return Ze(Me)?e.createParenthesizedType(Me):ve(Me)}function Fe(Me){return vle(Me)&&Me.typeParameters?e.createParenthesizedType(Me):Me}function Ue(Me,He){return He===0?Fe(Me):Me}function Ae(Me){if(bt(Me))return e.createNodeArray(ll(Me,Ue))}}var _G,G9e=or({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";ho(),_G={getParenthesizeLeftSideOfBinaryForOperator:e=>Jc,getParenthesizeRightSideOfBinaryForOperator:e=>Jc,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:Jc,parenthesizeConditionOfConditionalExpression:Jc,parenthesizeBranchOfConditionalExpression:Jc,parenthesizeExpressionOfExportDefault:Jc,parenthesizeExpressionOfNew:e=>Ws(e,Dd),parenthesizeLeftSideOfAccess:e=>Ws(e,Dd),parenthesizeOperandOfPostfixUnary:e=>Ws(e,Dd),parenthesizeOperandOfPrefixUnary:e=>Ws(e,qq),parenthesizeExpressionsOfCommaDelimitedList:e=>Ws(e,Y6),parenthesizeExpressionForDisallowedComma:Jc,parenthesizeExpressionOfExpressionStatement:Jc,parenthesizeConciseBodyOfArrowFunction:Jc,parenthesizeCheckTypeOfConditionalType:Jc,parenthesizeExtendsTypeOfConditionalType:Jc,parenthesizeConstituentTypesOfUnionType:e=>Ws(e,Y6),parenthesizeConstituentTypeOfUnionType:Jc,parenthesizeConstituentTypesOfIntersectionType:e=>Ws(e,Y6),parenthesizeConstituentTypeOfIntersectionType:Jc,parenthesizeOperandOfTypeOperator:Jc,parenthesizeOperandOfReadonlyTypeOperator:Jc,parenthesizeNonArrayTypeOfPostfixType:Jc,parenthesizeElementTypesOfTupleType:e=>Ws(e,Y6),parenthesizeElementTypeOfTupleType:Jc,parenthesizeTypeOfOptionalType:Jc,parenthesizeTypeArguments:e=>e&&Ws(e,Y6),parenthesizeLeadingTypeArgument:Jc}}});function Tfe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:n,convertToArrayAssignmentElement:i,convertToObjectAssignmentElement:s,convertToAssignmentPattern:o,convertToObjectAssignmentPattern:l,convertToArrayAssignmentPattern:f,convertToAssignmentElementTarget:_};function t(h,m){if(oo(h))return h;const y=e.createReturnStatement(h);yt(y,h);const T=e.createBlock([y],m);return yt(T,h),T}function n(h){if(!h.body)return D.fail("Cannot convert a FunctionDeclaration without a body");const m=e.createFunctionExpression(Kx(h),h.asteriskToken,h.name,h.typeParameters,h.parameters,h.type,h.body);return yi(m,h),yt(m,h),XN(h)&&bG(m,!0),m}function i(h){if(Cc(h)){if(h.dotDotDotToken)return D.assertNode(h.name,Be),yi(yt(e.createSpreadElement(h.name),h),h);const m=_(h.name);return h.initializer?yi(yt(e.createAssignment(m,h.initializer),h),h):m}return Ws(h,ht)}function s(h){if(Cc(h)){if(h.dotDotDotToken)return D.assertNode(h.name,Be),yi(yt(e.createSpreadAssignment(h.name),h),h);if(h.propertyName){const m=_(h.name);return yi(yt(e.createPropertyAssignment(h.propertyName,h.initializer?e.createAssignment(m,h.initializer):m),h),h)}return D.assertNode(h.name,Be),yi(yt(e.createShorthandPropertyAssignment(h.name,h.initializer),h),h)}return Ws(h,qv)}function o(h){switch(h.kind){case 206:case 208:return f(h);case 205:case 209:return l(h)}}function l(h){return Bg(h)?yi(yt(e.createObjectLiteralExpression(er(h.elements,s)),h),h):Ws(h,Dc)}function f(h){return PS(h)?yi(yt(e.createArrayLiteralExpression(er(h.elements,i)),h),h):Ws(h,Op)}function _(h){return _o(h)?o(h):Ws(h,ht)}}var fG,X9e=or({"src/compiler/factory/nodeConverters.ts"(){"use strict";ho(),fG={convertToFunctionBlock:xs,convertToFunctionExpression:xs,convertToArrayAssignmentElement:xs,convertToObjectAssignmentElement:xs,convertToAssignmentPattern:xs,convertToObjectAssignmentPattern:xs,convertToArrayAssignmentPattern:xs,convertToAssignmentElementTarget:xs}}});function Z9e(e){hG.push(e)}function WN(e,t){const n=e&8?Y9e:Q9e,i=q_(()=>e&1?_G:xfe(B)),s=q_(()=>e&2?fG:Tfe(B)),o=f_(v=>(A,F)=>Xe(A,v,F)),l=f_(v=>A=>gy(v,A)),f=f_(v=>A=>Ch(A,v)),_=f_(v=>()=>sm(v)),h=f_(v=>A=>zb(v,A)),m=f_(v=>(A,F)=>mT(v,A,F)),y=f_(v=>(A,F)=>n6(v,A,F)),T=f_(v=>(A,F)=>bC(v,A,F)),k=f_(v=>(A,F)=>g0(v,A,F)),E=f_(v=>(A,F,se)=>fv(v,A,F,se)),O=f_(v=>(A,F,se)=>u6(v,A,F,se)),N=f_(v=>(A,F,se,Je)=>ou(v,A,F,se,Je)),B={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:U,createNumericLiteral:ce,createBigIntLiteral:R,createStringLiteral:ae,createStringLiteralFromNode:ye,createRegularExpressionLiteral:$,createLiteralLikeNode:ee,createIdentifier:ve,createTempVariable:we,createLoopVariable:K,createUniqueName:Ze,getGeneratedNameForNode:Re,createPrivateIdentifier:Ue,createUniquePrivateName:Me,getGeneratedPrivateNameForNode:He,createToken:Pe,createSuper:nt,createThis:wt,createNull:xt,createTrue:Zt,createFalse:Qe,createModifier:Mt,createModifiersFromModifierFlags:yr,createQualifiedName:Cr,updateQualifiedName:Lt,createComputedPropertyName:an,updateComputedPropertyName:xn,createTypeParameterDeclaration:Lr,updateTypeParameterDeclaration:In,createParameterDeclaration:vi,updateParameterDeclaration:ia,createDecorator:Wa,updateDecorator:bi,createPropertySignature:Pt,updatePropertySignature:Ar,createPropertyDeclaration:Qr,updatePropertyDeclaration:$r,createMethodSignature:Fn,updateMethodSignature:ja,createMethodDeclaration:Ca,updateMethodDeclaration:rn,createConstructorDeclaration:ot,updateConstructorDeclaration:Tt,createGetAccessorDeclaration:Wt,updateGetAccessorDeclaration:nr,createSetAccessorDeclaration:Ge,updateSetAccessorDeclaration:dt,createCallSignature:at,updateCallSignature:fr,createConstructSignature:Ne,updateConstructSignature:$t,createIndexSignature:Jt,updateIndexSignature:Pr,createClassStaticBlockDeclaration:ln,updateClassStaticBlockDeclaration:Kr,createTemplateLiteralTypeSpan:li,updateTemplateLiteralTypeSpan:Yn,createKeywordTypeNode:Jn,createTypePredicateNode:w,updateTypePredicateNode:ge,createTypeReferenceNode:he,updateTypeReferenceNode:ue,createFunctionTypeNode:_e,updateFunctionTypeNode:pe,createConstructorTypeNode:rt,updateConstructorTypeNode:Ft,createTypeQueryNode:Ti,updateTypeQueryNode:Ui,createTypeLiteralNode:ya,updateTypeLiteralNode:_s,createArrayTypeNode:Os,updateArrayTypeNode:zs,createTupleTypeNode:Wo,updateTupleTypeNode:Ks,createNamedTupleMember:ti,updateNamedTupleMember:Na,createOptionalTypeNode:al,updateOptionalTypeNode:pc,createRestTypeNode:Yr,updateRestTypeNode:os,createUnionTypeNode:el,updateUnionTypeNode:Wl,createIntersectionTypeNode:du,updateIntersectionTypeNode:uf,createConditionalTypeNode:Ms,updateConditionalTypeNode:qa,createInferTypeNode:h_,updateInferTypeNode:ru,createImportTypeNode:wf,updateImportTypeNode:fl,createParenthesizedType:Nu,updateParenthesizedType:Cl,createThisTypeNode:Hl,createTypeOperatorNode:gr,updateTypeOperatorNode:r_,createIndexedAccessTypeNode:Zf,updateIndexedAccessTypeNode:_f,createMappedTypeNode:fe,updateMappedTypeNode:G,createLiteralTypeNode:Le,updateLiteralTypeNode:gt,createTemplateLiteralType:dp,updateTemplateLiteralType:k_,createObjectBindingPattern:Nt,updateObjectBindingPattern:Rn,createArrayBindingPattern:qn,updateArrayBindingPattern:Di,createBindingElement:xi,updateBindingElement:La,createArrayLiteralExpression:Fs,updateArrayLiteralExpression:mu,createObjectLiteralExpression:Hc,updateObjectLiteralExpression:Gc,createPropertyAccessExpression:e&4?(v,A)=>Ln(gu(v,A),262144):gu,updatePropertyAccessExpression:tl,createPropertyAccessChain:e&4?(v,A,F)=>Ln(Lc(v,A,F),262144):Lc,updatePropertyAccessChain:Yp,createElementAccessExpression:ff,updateElementAccessExpression:C_,createElementAccessChain:Qp,updateElementAccessChain:Ce,createCallExpression:un,updateCallExpression:da,createCallChain:Rs,updateCallChain:ne,createNewExpression:_t,updateNewExpression:Qt,createTaggedTemplateExpression:Kt,updateTaggedTemplateExpression:xr,createTypeAssertion:fn,updateTypeAssertion:si,createParenthesizedExpression:Bi,updateParenthesizedExpression:Ia,createFunctionExpression:As,updateFunctionExpression:Ro,createArrowFunction:wl,updateArrowFunction:Rl,createDeleteExpression:gd,updateDeleteExpression:p0,createTypeOfExpression:l_,updateTypeOfExpression:Am,createVoidExpression:Kp,updateVoidExpression:nm,createAwaitExpression:mp,updateAwaitExpression:Hg,createPrefixUnaryExpression:gy,updatePrefixUnaryExpression:kh,createPostfixUnaryExpression:Ch,updatePostfixUnaryExpression:J,createBinaryExpression:Xe,updateBinaryExpression:kn,createConditionalExpression:Js,updateConditionalExpression:va,createTemplateExpression:ts,updateTemplateExpression:Us,createTemplateHead:dg,createTemplateMiddle:Gg,createTemplateTail:mg,createNoSubstitutionTemplateLiteral:Ie,createTemplateLiteralLikeNode:ed,createYieldExpression:Ke,updateYieldExpression:pt,createSpreadElement:pr,updateSpreadElement:Vr,createClassExpression:Gr,updateClassExpression:Xr,createOmittedExpression:Tn,createExpressionWithTypeArguments:ra,updateExpressionWithTypeArguments:Va,createAsExpression:Bn,updateAsExpression:pi,createNonNullExpression:Hn,updateNonNullExpression:qs,createSatisfiesExpression:Iu,updateSatisfiesExpression:K_,createNonNullChain:Bd,updateNonNullChain:wh,createMetaProperty:Eh,updateMetaProperty:d0,createTemplateSpan:p2,updateTemplateSpan:Pb,createSemicolonClassElement:rT,createBlock:d2,updateBlock:nT,createVariableStatement:j3,updateVariableStatement:Z4,createEmptyStatement:z3,createExpressionStatement:Ob,updateExpressionStatement:m8,createIfStatement:Y4,updateIfStatement:g8,createDoStatement:J3,updateDoStatement:h8,createWhileStatement:iT,updateWhileStatement:U3,createForStatement:Mb,updateForStatement:Lb,createForInStatement:Fb,updateForInStatement:aT,createForOfStatement:m2,updateForOfStatement:yc,createContinueStatement:V3,updateContinueStatement:y8,createBreakStatement:av,updateBreakStatement:hy,createReturnStatement:N1,updateReturnStatement:Hm,createWithStatement:td,updateWithStatement:hd,createSwitchStatement:yd,updateSwitchStatement:yy,createLabeledStatement:sT,updateLabeledStatement:v8,createThrowStatement:W3,updateThrowStatement:oT,createTryStatement:Q4,updateTryStatement:b8,createDebuggerStatement:K4,createVariableDeclaration:q3,updateVariableDeclaration:x8,createVariableDeclarationList:sv,updateVariableDeclarationList:cT,createFunctionDeclaration:qe,updateFunctionDeclaration:Ah,createClassDeclaration:g2,updateClassDeclaration:e6,createInterfaceDeclaration:ov,updateInterfaceDeclaration:t6,createTypeAliasDeclaration:Pu,updateTypeAliasDeclaration:cv,createEnumDeclaration:vc,updateEnumDeclaration:jd,createModuleDeclaration:$3,updateModuleDeclaration:gp,createModuleBlock:by,updateModuleBlock:zd,createCaseBlock:h2,updateCaseBlock:H3,createNamespaceExportDeclaration:G3,updateNamespaceExportDeclaration:T8,createImportEqualsDeclaration:lT,updateImportEqualsDeclaration:uT,createImportDeclaration:Pa,updateImportDeclaration:Ei,createImportClause:im,updateImportClause:pf,createAssertClause:y2,updateAssertClause:lv,createAssertEntry:r6,updateAssertEntry:S8,createImportTypeAssertionContainer:hu,updateImportTypeAssertionContainer:X3,createNamespaceImport:Z3,updateNamespaceImport:_T,createNamespaceExport:Y3,updateNamespaceExport:gg,createNamedImports:fT,updateNamedImports:yC,createImportSpecifier:Rb,updateImportSpecifier:pT,createExportAssignment:am,updateExportAssignment:uv,createExportDeclaration:Jd,updateExportDeclaration:Bb,createNamedExports:xy,updateNamedExports:jb,createExportSpecifier:dT,updateExportSpecifier:Xg,createMissingDeclaration:vC,createExternalModuleReference:Zg,updateExternalModuleReference:Yg,get createJSDocAllType(){return _(318)},get createJSDocUnknownType(){return _(319)},get createJSDocNonNullableType(){return y(321)},get updateJSDocNonNullableType(){return T(321)},get createJSDocNullableType(){return y(320)},get updateJSDocNullableType(){return T(320)},get createJSDocOptionalType(){return h(322)},get updateJSDocOptionalType(){return m(322)},get createJSDocVariadicType(){return h(324)},get updateJSDocVariadicType(){return m(324)},get createJSDocNamepathType(){return h(325)},get updateJSDocNamepathType(){return m(325)},createJSDocFunctionType:Xc,updateJSDocFunctionType:Q3,createJSDocTypeLiteral:Jb,updateJSDocTypeLiteral:gT,createJSDocTypeExpression:Ub,updateJSDocTypeExpression:hT,createJSDocSignature:C8,updateJSDocSignature:yT,createJSDocTemplateTag:_v,updateJSDocTemplateTag:K3,createJSDocTypedefTag:Qg,updateJSDocTypedefTag:Dn,createJSDocParameterTag:i6,updateJSDocParameterTag:a6,createJSDocPropertyTag:y_,updateJSDocPropertyTag:P1,createJSDocCallbackTag:J0,updateJSDocCallbackTag:s6,createJSDocOverloadTag:ex,updateJSDocOverloadTag:Ty,createJSDocAugmentsTag:o6,updateJSDocAugmentsTag:c6,createJSDocImplementsTag:Dh,updateJSDocImplementsTag:tx,createJSDocSeeTag:U0,updateJSDocSeeTag:v2,createJSDocNameReference:nu,updateJSDocNameReference:Rf,createJSDocMemberName:Nh,updateJSDocMemberName:rd,createJSDocLink:m0,updateJSDocLink:l6,createJSDocLinkCode:Yf,updateJSDocLinkCode:vT,createJSDocLinkPlain:b2,updateJSDocLinkPlain:x2,get createJSDocTypeTag(){return O(350)},get updateJSDocTypeTag(){return N(350)},get createJSDocReturnTag(){return O(348)},get updateJSDocReturnTag(){return N(348)},get createJSDocThisTag(){return O(349)},get updateJSDocThisTag(){return N(349)},get createJSDocAuthorTag(){return k(336)},get updateJSDocAuthorTag(){return E(336)},get createJSDocClassTag(){return k(338)},get updateJSDocClassTag(){return E(338)},get createJSDocPublicTag(){return k(339)},get updateJSDocPublicTag(){return E(339)},get createJSDocPrivateTag(){return k(340)},get updateJSDocPrivateTag(){return E(340)},get createJSDocProtectedTag(){return k(341)},get updateJSDocProtectedTag(){return E(341)},get createJSDocReadonlyTag(){return k(342)},get updateJSDocReadonlyTag(){return E(342)},get createJSDocOverrideTag(){return k(343)},get updateJSDocOverrideTag(){return E(343)},get createJSDocDeprecatedTag(){return k(337)},get updateJSDocDeprecatedTag(){return E(337)},get createJSDocThrowsTag(){return O(355)},get updateJSDocThrowsTag(){return N(355)},get createJSDocSatisfiesTag(){return O(356)},get updateJSDocSatisfiesTag(){return N(356)},createJSDocEnumTag:w_,updateJSDocEnumTag:w8,createJSDocUnknownTag:Vb,updateJSDocUnknownTag:rx,createJSDocText:z_,updateJSDocText:pv,createJSDocComment:_6,updateJSDocComment:Kg,createJsxElement:om,updateJsxElement:nx,createJsxSelfClosingElement:Wb,updateJsxSelfClosingElement:E8,createJsxOpeningElement:Sy,updateJsxOpeningElement:dv,createJsxClosingElement:mv,updateJsxClosingElement:xC,createJsxFragment:Dm,createJsxText:gv,updateJsxText:Nm,createJsxOpeningFragment:Ih,createJsxJsxClosingFragment:bT,updateJsxFragment:A8,createJsxAttribute:qb,updateJsxAttribute:Ec,createJsxAttributes:ei,updateJsxAttributes:Im,createJsxSpreadAttribute:vd,updateJsxSpreadAttribute:ix,createJsxExpression:T2,updateJsxExpression:TC,createJsxNamespacedName:$b,updateJsxNamespacedName:f6,createCaseClause:O1,updateCaseClause:V0,createDefaultClause:S2,updateDefaultClause:Hb,createHeritageClause:Ph,updateHeritageClause:ky,createCatchClause:Gb,updateCatchClause:$u,createPropertyAssignment:Af,updatePropertyAssignment:SC,createShorthandPropertyAssignment:M1,updateShorthandPropertyAssignment:p6,createSpreadAssignment:d6,updateSpreadAssignment:Qf,createEnumMember:yu,updateEnumMember:kC,createSourceFile:ax,updateSourceFile:m6,createRedirectedSourceFile:Cy,createBundle:cx,updateBundle:hg,createUnparsedSource:e1,createUnparsedPrologue:lx,createUnparsedPrepend:CC,createUnparsedTextLike:hv,createUnparsedSyntheticReference:S,createInputFiles:ie,createSyntheticExpression:ze,createSyntaxList:hr,createNotEmittedStatement:Rt,createPartiallyEmittedExpression:_a,updatePartiallyEmittedExpression:Gi,createCommaListExpression:co,updateCommaListExpression:Ud,createSyntheticReferenceExpression:Vd,updateSyntheticReferenceExpression:nd,cloneNode:ux,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return f(46)},get createPostfixDecrement(){return f(47)},createImmediatelyInvokedFunctionExpression:ST,createImmediatelyInvokedArrowFunction:yv,createVoidZero:y0,createExportDefault:wy,createExternalModuleExport:Pm,createTypeCheck:vv,createMethodCall:Zb,createGlobalMethodCall:Hu,createFunctionBindCall:Oh,createFunctionCallCall:_x,createFunctionApplyCall:VO,createArraySliceCall:WO,createArrayConcatCall:Fc,createObjectDefinePropertyCall:Ac,createObjectGetOwnPropertyDescriptorCall:D8,createReflectGetCall:H,createReflectSetCall:be,createPropertyDescriptor:Dt,createCallBinding:sa,createAssignmentTargetWrapper:ys,inlineExpressions:gl,getInternalName:Oo,getLocalName:Kf,getExportName:W0,getDeclarationName:Yb,getNamespaceMemberName:yg,getExternalModuleOrNamespaceExportName:Qb,restoreOuterExpressions:Si,restoreEnclosingLabel:aa,createUseStrictPrologue:kT,copyPrologue:Kb,copyStandardPrologue:CT,copyCustomPrologue:N8,ensureUseStrict:uA,liftToBlock:_A,mergeLexicalEnvironment:w2,updateModifiers:fA};return Vt(hG,v=>v(B)),B;function U(v,A){if(v===void 0||v===tt)v=[];else if(Y6(v)){if(A===void 0||v.hasTrailingComma===A)return v.transformFlags===void 0&&Sfe(v),D.attachNodeArrayDebugInfo(v),v;const Je=v.slice();return Je.pos=v.pos,Je.end=v.end,Je.hasTrailingComma=A,Je.transformFlags=v.transformFlags,D.attachNodeArrayDebugInfo(Je),Je}const F=v.length,se=F>=1&&F<=4?v.slice():v;return se.pos=-1,se.end=-1,se.hasTrailingComma=!!A,se.transformFlags=0,Sfe(se),D.attachNodeArrayDebugInfo(se),se}function V(v){return t.createBaseNode(v)}function re(v){const A=V(v);return A.symbol=void 0,A.localSymbol=void 0,A}function z(v,A){return v!==A&&(v.typeArguments=A.typeArguments),n(v,A)}function ce(v,A=0){const F=re(9);return F.text=typeof v=="number"?v+"":v,F.numericLiteralFlags=A,A&384&&(F.transformFlags|=1024),F}function R(v){const A=je(10);return A.text=typeof v=="string"?v:g3(v)+"n",A.transformFlags|=32,A}function le(v,A){const F=re(11);return F.text=v,F.singleQuote=A,F}function ae(v,A,F){const se=le(v,A);return se.hasExtendedUnicodeEscape=F,F&&(se.transformFlags|=1024),se}function ye(v){const A=le(ng(v),void 0);return A.textSourceNode=v,A}function $(v){const A=je(14);return A.text=v,A}function ee(v,A){switch(v){case 9:return ce(A,0);case 10:return R(A);case 11:return ae(A,void 0);case 12:return gv(A,!1);case 13:return gv(A,!0);case 14:return $(A);case 15:return ed(v,A,void 0,0)}}function te(v){const A=t.createBaseIdentifierNode(80);return A.escapedText=v,A.jsDoc=void 0,A.flowNode=void 0,A.symbol=void 0,A}function me(v,A,F,se){const Je=te(Kl(v));return QN(Je,{flags:A,id:$N,prefix:F,suffix:se}),$N++,Je}function ve(v,A,F){A===void 0&&v&&(A=Qx(v)),A===80&&(A=void 0);const se=te(Kl(v));return F&&(se.flags|=128),se.escapedText==="await"&&(se.transformFlags|=67108864),se.flags&128&&(se.transformFlags|=1024),se}function we(v,A,F,se){let Je=1;A&&(Je|=8);const cr=me("",Je,F,se);return v&&v(cr),cr}function K(v){let A=2;return v&&(A|=8),me("",A,void 0,void 0)}function Ze(v,A=0,F,se){return D.assert(!(A&7),"Argument out of range: flags"),D.assert((A&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),me(v,3|A,F,se)}function Re(v,A=0,F,se){D.assert(!(A&7),"Argument out of range: flags");const Je=v?Uy(v)?D7(!1,F,v,se,ri):`generated@${Nc(v)}`:"";(F||se)&&(A|=16);const cr=me(Je,4|A,F,se);return cr.original=v,cr}function Fe(v){const A=t.createBasePrivateIdentifierNode(81);return A.escapedText=v,A.transformFlags|=16777216,A}function Ue(v){return Ga(v,"#")||D.fail("First character of private identifier must be #: "+v),Fe(Kl(v))}function Ae(v,A,F,se){const Je=Fe(Kl(v));return QN(Je,{flags:A,id:$N,prefix:F,suffix:se}),$N++,Je}function Me(v,A,F){v&&!Ga(v,"#")&&D.fail("First character of private identifier must be #: "+v);const se=8|(v?3:1);return Ae(v!=null?v:"",se,A,F)}function He(v,A,F){const se=Uy(v)?D7(!0,A,v,F,ri):`#generated@${Nc(v)}`,cr=Ae(se,4|(A||F?16:0),A,F);return cr.original=v,cr}function je(v){return t.createBaseTokenNode(v)}function Pe(v){D.assert(v>=0&&v<=164,"Invalid token"),D.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),D.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),D.assert(v!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const A=je(v);let F=0;switch(v){case 134:F=384;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 162:case 146:case 151:case 103:case 147:case 163:case 154:case 136:case 155:case 116:case 159:case 157:F=1;break;case 108:F=134218752,A.flowNode=void 0;break;case 126:F=1024;break;case 129:F=16777216;break;case 110:F=16384,A.flowNode=void 0;break}return F&&(A.transformFlags|=F),A}function nt(){return Pe(108)}function wt(){return Pe(110)}function xt(){return Pe(106)}function Zt(){return Pe(112)}function Qe(){return Pe(97)}function Mt(v){return Pe(v)}function yr(v){const A=[];return v&1&&A.push(Mt(95)),v&2&&A.push(Mt(138)),v&1024&&A.push(Mt(90)),v&2048&&A.push(Mt(87)),v&4&&A.push(Mt(125)),v&8&&A.push(Mt(123)),v&16&&A.push(Mt(124)),v&256&&A.push(Mt(128)),v&32&&A.push(Mt(126)),v&16384&&A.push(Mt(163)),v&64&&A.push(Mt(148)),v&128&&A.push(Mt(129)),v&512&&A.push(Mt(134)),v&32768&&A.push(Mt(103)),v&65536&&A.push(Mt(147)),A.length?A:void 0}function Cr(v,A){const F=V(165);return F.left=v,F.right=Gu(A),F.transformFlags|=zn(F.left)|D9(F.right),F.flowNode=void 0,F}function Lt(v,A,F){return v.left!==A||v.right!==F?n(Cr(A,F),v):v}function an(v){const A=V(166);return A.expression=i().parenthesizeExpressionOfComputedPropertyName(v),A.transformFlags|=zn(A.expression)|1024|131072,A}function xn(v,A){return v.expression!==A?n(an(A),v):v}function Lr(v,A,F,se){const Je=re(167);return Je.modifiers=Vs(v),Je.name=Gu(A),Je.constraint=F,Je.default=se,Je.transformFlags=1,Je.expression=void 0,Je.jsDoc=void 0,Je}function In(v,A,F,se,Je){return v.modifiers!==A||v.name!==F||v.constraint!==se||v.default!==Je?n(Lr(A,F,se,Je),v):v}function vi(v,A,F,se,Je,cr){var Ya,Zc;const Pn=re(168);return Pn.modifiers=Vs(v),Pn.dotDotDotToken=A,Pn.name=Gu(F),Pn.questionToken=se,Pn.type=Je,Pn.initializer=A2(cr),f3(Pn.name)?Pn.transformFlags=1:Pn.transformFlags=ac(Pn.modifiers)|zn(Pn.dotDotDotToken)|Qv(Pn.name)|zn(Pn.questionToken)|zn(Pn.initializer)|(((Ya=Pn.questionToken)!=null?Ya:Pn.type)?1:0)|(((Zc=Pn.dotDotDotToken)!=null?Zc:Pn.initializer)?1024:0)|(uh(Pn.modifiers)&16476?8192:0),Pn.jsDoc=void 0,Pn}function ia(v,A,F,se,Je,cr,Pn){return v.modifiers!==A||v.dotDotDotToken!==F||v.name!==se||v.questionToken!==Je||v.type!==cr||v.initializer!==Pn?n(vi(A,F,se,Je,cr,Pn),v):v}function Wa(v){const A=V(169);return A.expression=i().parenthesizeLeftSideOfAccess(v,!1),A.transformFlags|=zn(A.expression)|1|8192|33554432,A}function bi(v,A){return v.expression!==A?n(Wa(A),v):v}function Pt(v,A,F,se){const Je=re(170);return Je.modifiers=Vs(v),Je.name=Gu(A),Je.type=se,Je.questionToken=F,Je.transformFlags=1,Je.initializer=void 0,Je.jsDoc=void 0,Je}function Ar(v,A,F,se,Je){return v.modifiers!==A||v.name!==F||v.questionToken!==se||v.type!==Je?Yt(Pt(A,F,se,Je),v):v}function Yt(v,A){return v!==A&&(v.initializer=A.initializer),n(v,A)}function Qr(v,A,F,se,Je){const cr=re(171);cr.modifiers=Vs(v),cr.name=Gu(A),cr.questionToken=F&&yb(F)?F:void 0,cr.exclamationToken=F&&nI(F)?F:void 0,cr.type=se,cr.initializer=A2(Je);const Pn=cr.flags&16777216||uh(cr.modifiers)&2;return cr.transformFlags=ac(cr.modifiers)|Qv(cr.name)|zn(cr.initializer)|(Pn||cr.questionToken||cr.exclamationToken||cr.type?1:0)|(jc(cr.name)||uh(cr.modifiers)&32&&cr.initializer?8192:0)|16777216,cr.jsDoc=void 0,cr}function $r(v,A,F,se,Je,cr){return v.modifiers!==A||v.name!==F||v.questionToken!==(se!==void 0&&yb(se)?se:void 0)||v.exclamationToken!==(se!==void 0&&nI(se)?se:void 0)||v.type!==Je||v.initializer!==cr?n(Qr(A,F,se,Je,cr),v):v}function Fn(v,A,F,se,Je,cr){const Pn=re(172);return Pn.modifiers=Vs(v),Pn.name=Gu(A),Pn.questionToken=F,Pn.typeParameters=Vs(se),Pn.parameters=Vs(Je),Pn.type=cr,Pn.transformFlags=1,Pn.jsDoc=void 0,Pn.locals=void 0,Pn.nextContainer=void 0,Pn.typeArguments=void 0,Pn}function ja(v,A,F,se,Je,cr,Pn){return v.modifiers!==A||v.name!==F||v.questionToken!==se||v.typeParameters!==Je||v.parameters!==cr||v.type!==Pn?z(Fn(A,F,se,Je,cr,Pn),v):v}function Ca(v,A,F,se,Je,cr,Pn,Ya){const Zc=re(173);if(Zc.modifiers=Vs(v),Zc.asteriskToken=A,Zc.name=Gu(F),Zc.questionToken=se,Zc.exclamationToken=void 0,Zc.typeParameters=Vs(Je),Zc.parameters=U(cr),Zc.type=Pn,Zc.body=Ya,!Zc.body)Zc.transformFlags=1;else{const Gm=uh(Zc.modifiers)&512,bv=!!Zc.asteriskToken,xv=Gm&&bv;Zc.transformFlags=ac(Zc.modifiers)|zn(Zc.asteriskToken)|Qv(Zc.name)|zn(Zc.questionToken)|ac(Zc.typeParameters)|ac(Zc.parameters)|zn(Zc.type)|zn(Zc.body)&-67108865|(xv?128:Gm?256:bv?2048:0)|(Zc.questionToken||Zc.typeParameters||Zc.type?1:0)|1024}return Zc.typeArguments=void 0,Zc.jsDoc=void 0,Zc.locals=void 0,Zc.nextContainer=void 0,Zc.flowNode=void 0,Zc.endFlowNode=void 0,Zc.returnFlowNode=void 0,Zc}function rn(v,A,F,se,Je,cr,Pn,Ya,Zc){return v.modifiers!==A||v.asteriskToken!==F||v.name!==se||v.questionToken!==Je||v.typeParameters!==cr||v.parameters!==Pn||v.type!==Ya||v.body!==Zc?wr(Ca(A,F,se,Je,cr,Pn,Ya,Zc),v):v}function wr(v,A){return v!==A&&(v.exclamationToken=A.exclamationToken),n(v,A)}function ln(v){const A=re(174);return A.body=v,A.transformFlags=zn(v)|16777216,A.modifiers=void 0,A.jsDoc=void 0,A.locals=void 0,A.nextContainer=void 0,A.endFlowNode=void 0,A.returnFlowNode=void 0,A}function Kr(v,A){return v.body!==A?Li(ln(A),v):v}function Li(v,A){return v!==A&&(v.modifiers=A.modifiers),n(v,A)}function ot(v,A,F){const se=re(175);return se.modifiers=Vs(v),se.parameters=U(A),se.body=F,se.transformFlags=ac(se.modifiers)|ac(se.parameters)|zn(se.body)&-67108865|1024,se.typeParameters=void 0,se.type=void 0,se.typeArguments=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.returnFlowNode=void 0,se}function Tt(v,A,F,se){return v.modifiers!==A||v.parameters!==F||v.body!==se?it(ot(A,F,se),v):v}function it(v,A){return v!==A&&(v.typeParameters=A.typeParameters,v.type=A.type),z(v,A)}function Wt(v,A,F,se,Je){const cr=re(176);return cr.modifiers=Vs(v),cr.name=Gu(A),cr.parameters=U(F),cr.type=se,cr.body=Je,cr.body?cr.transformFlags=ac(cr.modifiers)|Qv(cr.name)|ac(cr.parameters)|zn(cr.type)|zn(cr.body)&-67108865|(cr.type?1:0):cr.transformFlags=1,cr.typeArguments=void 0,cr.typeParameters=void 0,cr.jsDoc=void 0,cr.locals=void 0,cr.nextContainer=void 0,cr.flowNode=void 0,cr.endFlowNode=void 0,cr.returnFlowNode=void 0,cr}function nr(v,A,F,se,Je,cr){return v.modifiers!==A||v.name!==F||v.parameters!==se||v.type!==Je||v.body!==cr?Y(Wt(A,F,se,Je,cr),v):v}function Y(v,A){return v!==A&&(v.typeParameters=A.typeParameters),z(v,A)}function Ge(v,A,F,se){const Je=re(177);return Je.modifiers=Vs(v),Je.name=Gu(A),Je.parameters=U(F),Je.body=se,Je.body?Je.transformFlags=ac(Je.modifiers)|Qv(Je.name)|ac(Je.parameters)|zn(Je.body)&-67108865|(Je.type?1:0):Je.transformFlags=1,Je.typeArguments=void 0,Je.typeParameters=void 0,Je.type=void 0,Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je.flowNode=void 0,Je.endFlowNode=void 0,Je.returnFlowNode=void 0,Je}function dt(v,A,F,se,Je){return v.modifiers!==A||v.name!==F||v.parameters!==se||v.body!==Je?Q(Ge(A,F,se,Je),v):v}function Q(v,A){return v!==A&&(v.typeParameters=A.typeParameters,v.type=A.type),z(v,A)}function at(v,A,F){const se=re(178);return se.typeParameters=Vs(v),se.parameters=Vs(A),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function fr(v,A,F,se){return v.typeParameters!==A||v.parameters!==F||v.type!==se?z(at(A,F,se),v):v}function Ne(v,A,F){const se=re(179);return se.typeParameters=Vs(v),se.parameters=Vs(A),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function $t(v,A,F,se){return v.typeParameters!==A||v.parameters!==F||v.type!==se?z(Ne(A,F,se),v):v}function Jt(v,A,F){const se=re(180);return se.modifiers=Vs(v),se.parameters=Vs(A),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Pr(v,A,F,se){return v.parameters!==F||v.type!==se||v.modifiers!==A?z(Jt(A,F,se),v):v}function li(v,A){const F=V(203);return F.type=v,F.literal=A,F.transformFlags=1,F}function Yn(v,A,F){return v.type!==A||v.literal!==F?n(li(A,F),v):v}function Jn(v){return Pe(v)}function w(v,A,F){const se=V(181);return se.assertsModifier=v,se.parameterName=Gu(A),se.type=F,se.transformFlags=1,se}function ge(v,A,F,se){return v.assertsModifier!==A||v.parameterName!==F||v.type!==se?n(w(A,F,se),v):v}function he(v,A){const F=V(182);return F.typeName=Gu(v),F.typeArguments=A&&i().parenthesizeTypeArguments(U(A)),F.transformFlags=1,F}function ue(v,A,F){return v.typeName!==A||v.typeArguments!==F?n(he(A,F),v):v}function _e(v,A,F){const se=re(183);return se.typeParameters=Vs(v),se.parameters=Vs(A),se.type=F,se.transformFlags=1,se.modifiers=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function pe(v,A,F,se){return v.typeParameters!==A||v.parameters!==F||v.type!==se?q(_e(A,F,se),v):v}function q(v,A){return v!==A&&(v.modifiers=A.modifiers),z(v,A)}function rt(...v){return v.length===4?ar(...v):v.length===3?st(...v):D.fail("Incorrect number of arguments specified.")}function ar(v,A,F,se){const Je=re(184);return Je.modifiers=Vs(v),Je.typeParameters=Vs(A),Je.parameters=Vs(F),Je.type=se,Je.transformFlags=1,Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je.typeArguments=void 0,Je}function st(v,A,F){return ar(void 0,v,A,F)}function Ft(...v){return v.length===5?zr(...v):v.length===4?En(...v):D.fail("Incorrect number of arguments specified.")}function zr(v,A,F,se,Je){return v.modifiers!==A||v.typeParameters!==F||v.parameters!==se||v.type!==Je?z(rt(A,F,se,Je),v):v}function En(v,A,F,se){return zr(v,v.modifiers,A,F,se)}function Ti(v,A){const F=V(185);return F.exprName=v,F.typeArguments=A&&i().parenthesizeTypeArguments(A),F.transformFlags=1,F}function Ui(v,A,F){return v.exprName!==A||v.typeArguments!==F?n(Ti(A,F),v):v}function ya(v){const A=re(186);return A.members=U(v),A.transformFlags=1,A}function _s(v,A){return v.members!==A?n(ya(A),v):v}function Os(v){const A=V(187);return A.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),A.transformFlags=1,A}function zs(v,A){return v.elementType!==A?n(Os(A),v):v}function Wo(v){const A=V(188);return A.elements=U(i().parenthesizeElementTypesOfTupleType(v)),A.transformFlags=1,A}function Ks(v,A){return v.elements!==A?n(Wo(A),v):v}function ti(v,A,F,se){const Je=re(201);return Je.dotDotDotToken=v,Je.name=A,Je.questionToken=F,Je.type=se,Je.transformFlags=1,Je.jsDoc=void 0,Je}function Na(v,A,F,se,Je){return v.dotDotDotToken!==A||v.name!==F||v.questionToken!==se||v.type!==Je?n(ti(A,F,se,Je),v):v}function al(v){const A=V(189);return A.type=i().parenthesizeTypeOfOptionalType(v),A.transformFlags=1,A}function pc(v,A){return v.type!==A?n(al(A),v):v}function Yr(v){const A=V(190);return A.type=v,A.transformFlags=1,A}function os(v,A){return v.type!==A?n(Yr(A),v):v}function Gs(v,A,F){const se=V(v);return se.types=B.createNodeArray(F(A)),se.transformFlags=1,se}function Ua(v,A,F){return v.types!==A?n(Gs(v.kind,A,F),v):v}function el(v){return Gs(191,v,i().parenthesizeConstituentTypesOfUnionType)}function Wl(v,A){return Ua(v,A,i().parenthesizeConstituentTypesOfUnionType)}function du(v){return Gs(192,v,i().parenthesizeConstituentTypesOfIntersectionType)}function uf(v,A){return Ua(v,A,i().parenthesizeConstituentTypesOfIntersectionType)}function Ms(v,A,F,se){const Je=V(193);return Je.checkType=i().parenthesizeCheckTypeOfConditionalType(v),Je.extendsType=i().parenthesizeExtendsTypeOfConditionalType(A),Je.trueType=F,Je.falseType=se,Je.transformFlags=1,Je.locals=void 0,Je.nextContainer=void 0,Je}function qa(v,A,F,se,Je){return v.checkType!==A||v.extendsType!==F||v.trueType!==se||v.falseType!==Je?n(Ms(A,F,se,Je),v):v}function h_(v){const A=V(194);return A.typeParameter=v,A.transformFlags=1,A}function ru(v,A){return v.typeParameter!==A?n(h_(A),v):v}function dp(v,A){const F=V(202);return F.head=v,F.templateSpans=U(A),F.transformFlags=1,F}function k_(v,A,F){return v.head!==A||v.templateSpans!==F?n(dp(A,F),v):v}function wf(v,A,F,se,Je=!1){const cr=V(204);return cr.argument=v,cr.assertions=A,cr.qualifier=F,cr.typeArguments=se&&i().parenthesizeTypeArguments(se),cr.isTypeOf=Je,cr.transformFlags=1,cr}function fl(v,A,F,se,Je,cr=v.isTypeOf){return v.argument!==A||v.assertions!==F||v.qualifier!==se||v.typeArguments!==Je||v.isTypeOf!==cr?n(wf(A,F,se,Je,cr),v):v}function Nu(v){const A=V(195);return A.type=v,A.transformFlags=1,A}function Cl(v,A){return v.type!==A?n(Nu(A),v):v}function Hl(){const v=V(196);return v.transformFlags=1,v}function gr(v,A){const F=V(197);return F.operator=v,F.type=v===148?i().parenthesizeOperandOfReadonlyTypeOperator(A):i().parenthesizeOperandOfTypeOperator(A),F.transformFlags=1,F}function r_(v,A){return v.type!==A?n(gr(v.operator,A),v):v}function Zf(v,A){const F=V(198);return F.objectType=i().parenthesizeNonArrayTypeOfPostfixType(v),F.indexType=A,F.transformFlags=1,F}function _f(v,A,F){return v.objectType!==A||v.indexType!==F?n(Zf(A,F),v):v}function fe(v,A,F,se,Je,cr){const Pn=re(199);return Pn.readonlyToken=v,Pn.typeParameter=A,Pn.nameType=F,Pn.questionToken=se,Pn.type=Je,Pn.members=cr&&U(cr),Pn.transformFlags=1,Pn.locals=void 0,Pn.nextContainer=void 0,Pn}function G(v,A,F,se,Je,cr,Pn){return v.readonlyToken!==A||v.typeParameter!==F||v.nameType!==se||v.questionToken!==Je||v.type!==cr||v.members!==Pn?n(fe(A,F,se,Je,cr,Pn),v):v}function Le(v){const A=V(200);return A.literal=v,A.transformFlags=1,A}function gt(v,A){return v.literal!==A?n(Le(A),v):v}function Nt(v){const A=V(205);return A.elements=U(v),A.transformFlags|=ac(A.elements)|1024|524288,A.transformFlags&32768&&(A.transformFlags|=65664),A}function Rn(v,A){return v.elements!==A?n(Nt(A),v):v}function qn(v){const A=V(206);return A.elements=U(v),A.transformFlags|=ac(A.elements)|1024|524288,A}function Di(v,A){return v.elements!==A?n(qn(A),v):v}function xi(v,A,F,se){const Je=re(207);return Je.dotDotDotToken=v,Je.propertyName=Gu(A),Je.name=Gu(F),Je.initializer=A2(se),Je.transformFlags|=zn(Je.dotDotDotToken)|Qv(Je.propertyName)|Qv(Je.name)|zn(Je.initializer)|(Je.dotDotDotToken?32768:0)|1024,Je.flowNode=void 0,Je}function La(v,A,F,se,Je){return v.propertyName!==F||v.dotDotDotToken!==A||v.name!==se||v.initializer!==Je?n(xi(A,F,se,Je),v):v}function Fs(v,A){const F=V(208),se=v&&io(v),Je=U(v,se&&sf(se)?!0:void 0);return F.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Je),F.multiLine=A,F.transformFlags|=ac(F.elements),F}function mu(v,A){return v.elements!==A?n(Fs(A,v.multiLine),v):v}function Hc(v,A){const F=re(209);return F.properties=U(v),F.multiLine=A,F.transformFlags|=ac(F.properties),F.jsDoc=void 0,F}function Gc(v,A){return v.properties!==A?n(Hc(A,v.multiLine),v):v}function Ef(v,A,F){const se=re(210);return se.expression=v,se.questionDotToken=A,se.name=F,se.transformFlags=zn(se.expression)|zn(se.questionDotToken)|(Be(se.name)?D9(se.name):zn(se.name)|536870912),se.jsDoc=void 0,se.flowNode=void 0,se}function gu(v,A){const F=Ef(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Gu(A));return O9(v)&&(F.transformFlags|=384),F}function tl(v,A,F){return xL(v)?Yp(v,A,v.questionDotToken,Ws(F,Be)):v.expression!==A||v.name!==F?n(gu(A,F),v):v}function Lc(v,A,F){const se=Ef(i().parenthesizeLeftSideOfAccess(v,!0),A,Gu(F));return se.flags|=32,se.transformFlags|=32,se}function Yp(v,A,F,se){return D.assert(!!(v.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==A||v.questionDotToken!==F||v.name!==se?n(Lc(A,F,se),v):v}function su(v,A,F){const se=re(211);return se.expression=v,se.questionDotToken=A,se.argumentExpression=F,se.transformFlags|=zn(se.expression)|zn(se.questionDotToken)|zn(se.argumentExpression),se.jsDoc=void 0,se.flowNode=void 0,se}function ff(v,A){const F=su(i().parenthesizeLeftSideOfAccess(v,!1),void 0,E2(A));return O9(v)&&(F.transformFlags|=384),F}function C_(v,A,F){return Mq(v)?Ce(v,A,v.questionDotToken,F):v.expression!==A||v.argumentExpression!==F?n(ff(A,F),v):v}function Qp(v,A,F){const se=su(i().parenthesizeLeftSideOfAccess(v,!0),A,E2(F));return se.flags|=32,se.transformFlags|=32,se}function Ce(v,A,F,se){return D.assert(!!(v.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==A||v.questionDotToken!==F||v.argumentExpression!==se?n(Qp(A,F,se),v):v}function Gt(v,A,F,se){const Je=re(212);return Je.expression=v,Je.questionDotToken=A,Je.typeArguments=F,Je.arguments=se,Je.transformFlags|=zn(Je.expression)|zn(Je.questionDotToken)|ac(Je.typeArguments)|ac(Je.arguments),Je.typeArguments&&(Je.transformFlags|=1),fd(Je.expression)&&(Je.transformFlags|=16384),Je}function un(v,A,F){const se=Gt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Vs(A),i().parenthesizeExpressionsOfCommaDelimitedList(U(F)));return M9(se.expression)&&(se.transformFlags|=8388608),se}function da(v,A,F,se){return e7(v)?ne(v,A,v.questionDotToken,F,se):v.expression!==A||v.typeArguments!==F||v.arguments!==se?n(un(A,F,se),v):v}function Rs(v,A,F,se){const Je=Gt(i().parenthesizeLeftSideOfAccess(v,!0),A,Vs(F),i().parenthesizeExpressionsOfCommaDelimitedList(U(se)));return Je.flags|=32,Je.transformFlags|=32,Je}function ne(v,A,F,se,Je){return D.assert(!!(v.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==A||v.questionDotToken!==F||v.typeArguments!==se||v.arguments!==Je?n(Rs(A,F,se,Je),v):v}function _t(v,A,F){const se=re(213);return se.expression=i().parenthesizeExpressionOfNew(v),se.typeArguments=Vs(A),se.arguments=F?i().parenthesizeExpressionsOfCommaDelimitedList(F):void 0,se.transformFlags|=zn(se.expression)|ac(se.typeArguments)|ac(se.arguments)|32,se.typeArguments&&(se.transformFlags|=1),se}function Qt(v,A,F,se){return v.expression!==A||v.typeArguments!==F||v.arguments!==se?n(_t(A,F,se),v):v}function Kt(v,A,F){const se=V(214);return se.tag=i().parenthesizeLeftSideOfAccess(v,!1),se.typeArguments=Vs(A),se.template=F,se.transformFlags|=zn(se.tag)|ac(se.typeArguments)|zn(se.template)|1024,se.typeArguments&&(se.transformFlags|=1),X$(se.template)&&(se.transformFlags|=128),se}function xr(v,A,F,se){return v.tag!==A||v.typeArguments!==F||v.template!==se?n(Kt(A,F,se),v):v}function fn(v,A){const F=V(215);return F.expression=i().parenthesizeOperandOfPrefixUnary(A),F.type=v,F.transformFlags|=zn(F.expression)|zn(F.type)|1,F}function si(v,A,F){return v.type!==A||v.expression!==F?n(fn(A,F),v):v}function Bi(v){const A=V(216);return A.expression=v,A.transformFlags=zn(A.expression),A.jsDoc=void 0,A}function Ia(v,A){return v.expression!==A?n(Bi(A),v):v}function As(v,A,F,se,Je,cr,Pn){const Ya=re(217);Ya.modifiers=Vs(v),Ya.asteriskToken=A,Ya.name=Gu(F),Ya.typeParameters=Vs(se),Ya.parameters=U(Je),Ya.type=cr,Ya.body=Pn;const Zc=uh(Ya.modifiers)&512,Gm=!!Ya.asteriskToken,bv=Zc&&Gm;return Ya.transformFlags=ac(Ya.modifiers)|zn(Ya.asteriskToken)|Qv(Ya.name)|ac(Ya.typeParameters)|ac(Ya.parameters)|zn(Ya.type)|zn(Ya.body)&-67108865|(bv?128:Zc?256:Gm?2048:0)|(Ya.typeParameters||Ya.type?1:0)|4194304,Ya.typeArguments=void 0,Ya.jsDoc=void 0,Ya.locals=void 0,Ya.nextContainer=void 0,Ya.flowNode=void 0,Ya.endFlowNode=void 0,Ya.returnFlowNode=void 0,Ya}function Ro(v,A,F,se,Je,cr,Pn,Ya){return v.name!==se||v.modifiers!==A||v.asteriskToken!==F||v.typeParameters!==Je||v.parameters!==cr||v.type!==Pn||v.body!==Ya?z(As(A,F,se,Je,cr,Pn,Ya),v):v}function wl(v,A,F,se,Je,cr){const Pn=re(218);Pn.modifiers=Vs(v),Pn.typeParameters=Vs(A),Pn.parameters=U(F),Pn.type=se,Pn.equalsGreaterThanToken=Je!=null?Je:Pe(39),Pn.body=i().parenthesizeConciseBodyOfArrowFunction(cr);const Ya=uh(Pn.modifiers)&512;return Pn.transformFlags=ac(Pn.modifiers)|ac(Pn.typeParameters)|ac(Pn.parameters)|zn(Pn.type)|zn(Pn.equalsGreaterThanToken)|zn(Pn.body)&-67108865|(Pn.typeParameters||Pn.type?1:0)|(Ya?16640:0)|1024,Pn.typeArguments=void 0,Pn.jsDoc=void 0,Pn.locals=void 0,Pn.nextContainer=void 0,Pn.flowNode=void 0,Pn.endFlowNode=void 0,Pn.returnFlowNode=void 0,Pn}function Rl(v,A,F,se,Je,cr,Pn){return v.modifiers!==A||v.typeParameters!==F||v.parameters!==se||v.type!==Je||v.equalsGreaterThanToken!==cr||v.body!==Pn?z(wl(A,F,se,Je,cr,Pn),v):v}function gd(v){const A=V(219);return A.expression=i().parenthesizeOperandOfPrefixUnary(v),A.transformFlags|=zn(A.expression),A}function p0(v,A){return v.expression!==A?n(gd(A),v):v}function l_(v){const A=V(220);return A.expression=i().parenthesizeOperandOfPrefixUnary(v),A.transformFlags|=zn(A.expression),A}function Am(v,A){return v.expression!==A?n(l_(A),v):v}function Kp(v){const A=V(221);return A.expression=i().parenthesizeOperandOfPrefixUnary(v),A.transformFlags|=zn(A.expression),A}function nm(v,A){return v.expression!==A?n(Kp(A),v):v}function mp(v){const A=V(222);return A.expression=i().parenthesizeOperandOfPrefixUnary(v),A.transformFlags|=zn(A.expression)|256|128|2097152,A}function Hg(v,A){return v.expression!==A?n(mp(A),v):v}function gy(v,A){const F=V(223);return F.operator=v,F.operand=i().parenthesizeOperandOfPrefixUnary(A),F.transformFlags|=zn(F.operand),(v===46||v===47)&&Be(F.operand)&&!uu(F.operand)&&!n2(F.operand)&&(F.transformFlags|=268435456),F}function kh(v,A){return v.operand!==A?n(gy(v.operator,A),v):v}function Ch(v,A){const F=V(224);return F.operator=A,F.operand=i().parenthesizeOperandOfPostfixUnary(v),F.transformFlags|=zn(F.operand),Be(F.operand)&&!uu(F.operand)&&!n2(F.operand)&&(F.transformFlags|=268435456),F}function J(v,A){return v.operand!==A?n(Ch(A,v.operator),v):v}function Xe(v,A,F){const se=re(225),Je=y6(A),cr=Je.kind;return se.left=i().parenthesizeLeftSideOfBinary(cr,v),se.operatorToken=Je,se.right=i().parenthesizeRightSideOfBinary(cr,se.left,F),se.transformFlags|=zn(se.left)|zn(se.operatorToken)|zn(se.right),cr===61?se.transformFlags|=32:cr===64?Dc(se.left)?se.transformFlags|=5248|ir(se.left):Op(se.left)&&(se.transformFlags|=5120|ir(se.left)):cr===43||cr===68?se.transformFlags|=512:n9(cr)&&(se.transformFlags|=16),cr===103&&Ea(se.left)&&(se.transformFlags|=536870912),se.jsDoc=void 0,se}function ir(v){return TI(v)?65536:0}function kn(v,A,F,se){return v.left!==A||v.operatorToken!==F||v.right!==se?n(Xe(A,F,se),v):v}function Js(v,A,F,se,Je){const cr=V(226);return cr.condition=i().parenthesizeConditionOfConditionalExpression(v),cr.questionToken=A!=null?A:Pe(58),cr.whenTrue=i().parenthesizeBranchOfConditionalExpression(F),cr.colonToken=se!=null?se:Pe(59),cr.whenFalse=i().parenthesizeBranchOfConditionalExpression(Je),cr.transformFlags|=zn(cr.condition)|zn(cr.questionToken)|zn(cr.whenTrue)|zn(cr.colonToken)|zn(cr.whenFalse),cr}function va(v,A,F,se,Je,cr){return v.condition!==A||v.questionToken!==F||v.whenTrue!==se||v.colonToken!==Je||v.whenFalse!==cr?n(Js(A,F,se,Je,cr),v):v}function ts(v,A){const F=V(227);return F.head=v,F.templateSpans=U(A),F.transformFlags|=zn(F.head)|ac(F.templateSpans)|1024,F}function Us(v,A,F){return v.head!==A||v.templateSpans!==F?n(ts(A,F),v):v}function ml(v,A,F,se=0){D.assert(!(se&-7177),"Unsupported template flags.");let Je;if(F!==void 0&&F!==A&&(Je=K9e(v,F),typeof Je=="object"))return D.fail("Invalid raw text");if(A===void 0){if(Je===void 0)return D.fail("Arguments 'text' and 'rawText' may not both be undefined.");A=Je}else Je!==void 0&&D.assert(A===Je,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return A}function dc(v){let A=1024;return v&&(A|=128),A}function u_(v,A,F,se){const Je=je(v);return Je.text=A,Je.rawText=F,Je.templateFlags=se&7176,Je.transformFlags=dc(Je.templateFlags),Je}function Rd(v,A,F,se){const Je=re(v);return Je.text=A,Je.rawText=F,Je.templateFlags=se&7176,Je.transformFlags=dc(Je.templateFlags),Je}function ed(v,A,F,se){return v===15?Rd(v,A,F,se):u_(v,A,F,se)}function dg(v,A,F){return v=ml(16,v,A,F),ed(16,v,A,F)}function Gg(v,A,F){return v=ml(16,v,A,F),ed(17,v,A,F)}function mg(v,A,F){return v=ml(16,v,A,F),ed(18,v,A,F)}function Ie(v,A,F){return v=ml(16,v,A,F),Rd(15,v,A,F)}function Ke(v,A){D.assert(!v||!!A,"A `YieldExpression` with an asteriskToken must have an expression.");const F=V(228);return F.expression=A&&i().parenthesizeExpressionForDisallowedComma(A),F.asteriskToken=v,F.transformFlags|=zn(F.expression)|zn(F.asteriskToken)|1024|128|1048576,F}function pt(v,A,F){return v.expression!==F||v.asteriskToken!==A?n(Ke(A,F),v):v}function pr(v){const A=V(229);return A.expression=i().parenthesizeExpressionForDisallowedComma(v),A.transformFlags|=zn(A.expression)|1024|32768,A}function Vr(v,A){return v.expression!==A?n(pr(A),v):v}function Gr(v,A,F,se,Je){const cr=re(230);return cr.modifiers=Vs(v),cr.name=Gu(A),cr.typeParameters=Vs(F),cr.heritageClauses=Vs(se),cr.members=U(Je),cr.transformFlags|=ac(cr.modifiers)|Qv(cr.name)|ac(cr.typeParameters)|ac(cr.heritageClauses)|ac(cr.members)|(cr.typeParameters?1:0)|1024,cr.jsDoc=void 0,cr}function Xr(v,A,F,se,Je,cr){return v.modifiers!==A||v.name!==F||v.typeParameters!==se||v.heritageClauses!==Je||v.members!==cr?n(Gr(A,F,se,Je,cr),v):v}function Tn(){return V(231)}function ra(v,A){const F=V(232);return F.expression=i().parenthesizeLeftSideOfAccess(v,!1),F.typeArguments=A&&i().parenthesizeTypeArguments(A),F.transformFlags|=zn(F.expression)|ac(F.typeArguments)|1024,F}function Va(v,A,F){return v.expression!==A||v.typeArguments!==F?n(ra(A,F),v):v}function Bn(v,A){const F=V(233);return F.expression=v,F.type=A,F.transformFlags|=zn(F.expression)|zn(F.type)|1,F}function pi(v,A,F){return v.expression!==A||v.type!==F?n(Bn(A,F),v):v}function Hn(v){const A=V(234);return A.expression=i().parenthesizeLeftSideOfAccess(v,!1),A.transformFlags|=zn(A.expression)|1,A}function qs(v,A){return SL(v)?wh(v,A):v.expression!==A?n(Hn(A),v):v}function Iu(v,A){const F=V(237);return F.expression=v,F.type=A,F.transformFlags|=zn(F.expression)|zn(F.type)|1,F}function K_(v,A,F){return v.expression!==A||v.type!==F?n(Iu(A,F),v):v}function Bd(v){const A=V(234);return A.flags|=32,A.expression=i().parenthesizeLeftSideOfAccess(v,!0),A.transformFlags|=zn(A.expression)|1,A}function wh(v,A){return D.assert(!!(v.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==A?n(Bd(A),v):v}function Eh(v,A){const F=V(235);switch(F.keywordToken=v,F.name=A,F.transformFlags|=zn(F.name),v){case 105:F.transformFlags|=1024;break;case 102:F.transformFlags|=32;break;default:return D.assertNever(v)}return F.flowNode=void 0,F}function d0(v,A){return v.name!==A?n(Eh(v.keywordToken,A),v):v}function p2(v,A){const F=V(238);return F.expression=v,F.literal=A,F.transformFlags|=zn(F.expression)|zn(F.literal)|1024,F}function Pb(v,A,F){return v.expression!==A||v.literal!==F?n(p2(A,F),v):v}function rT(){const v=V(239);return v.transformFlags|=1024,v}function d2(v,A){const F=V(240);return F.statements=U(v),F.multiLine=A,F.transformFlags|=ac(F.statements),F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F}function nT(v,A){return v.statements!==A?n(d2(A,v.multiLine),v):v}function j3(v,A){const F=V(242);return F.modifiers=Vs(v),F.declarationList=ns(A)?sv(A):A,F.transformFlags|=ac(F.modifiers)|zn(F.declarationList),uh(F.modifiers)&2&&(F.transformFlags=1),F.jsDoc=void 0,F.flowNode=void 0,F}function Z4(v,A,F){return v.modifiers!==A||v.declarationList!==F?n(j3(A,F),v):v}function z3(){const v=V(241);return v.jsDoc=void 0,v}function Ob(v){const A=V(243);return A.expression=i().parenthesizeExpressionOfExpressionStatement(v),A.transformFlags|=zn(A.expression),A.jsDoc=void 0,A.flowNode=void 0,A}function m8(v,A){return v.expression!==A?n(Ob(A),v):v}function Y4(v,A,F){const se=V(244);return se.expression=v,se.thenStatement=D2(A),se.elseStatement=D2(F),se.transformFlags|=zn(se.expression)|zn(se.thenStatement)|zn(se.elseStatement),se.jsDoc=void 0,se.flowNode=void 0,se}function g8(v,A,F,se){return v.expression!==A||v.thenStatement!==F||v.elseStatement!==se?n(Y4(A,F,se),v):v}function J3(v,A){const F=V(245);return F.statement=D2(v),F.expression=A,F.transformFlags|=zn(F.statement)|zn(F.expression),F.jsDoc=void 0,F.flowNode=void 0,F}function h8(v,A,F){return v.statement!==A||v.expression!==F?n(J3(A,F),v):v}function iT(v,A){const F=V(246);return F.expression=v,F.statement=D2(A),F.transformFlags|=zn(F.expression)|zn(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function U3(v,A,F){return v.expression!==A||v.statement!==F?n(iT(A,F),v):v}function Mb(v,A,F,se){const Je=V(247);return Je.initializer=v,Je.condition=A,Je.incrementor=F,Je.statement=D2(se),Je.transformFlags|=zn(Je.initializer)|zn(Je.condition)|zn(Je.incrementor)|zn(Je.statement),Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je.flowNode=void 0,Je}function Lb(v,A,F,se,Je){return v.initializer!==A||v.condition!==F||v.incrementor!==se||v.statement!==Je?n(Mb(A,F,se,Je),v):v}function Fb(v,A,F){const se=V(248);return se.initializer=v,se.expression=A,se.statement=D2(F),se.transformFlags|=zn(se.initializer)|zn(se.expression)|zn(se.statement),se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.flowNode=void 0,se}function aT(v,A,F,se){return v.initializer!==A||v.expression!==F||v.statement!==se?n(Fb(A,F,se),v):v}function m2(v,A,F,se){const Je=V(249);return Je.awaitModifier=v,Je.initializer=A,Je.expression=i().parenthesizeExpressionForDisallowedComma(F),Je.statement=D2(se),Je.transformFlags|=zn(Je.awaitModifier)|zn(Je.initializer)|zn(Je.expression)|zn(Je.statement)|1024,v&&(Je.transformFlags|=128),Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je.flowNode=void 0,Je}function yc(v,A,F,se,Je){return v.awaitModifier!==A||v.initializer!==F||v.expression!==se||v.statement!==Je?n(m2(A,F,se,Je),v):v}function V3(v){const A=V(250);return A.label=Gu(v),A.transformFlags|=zn(A.label)|4194304,A.jsDoc=void 0,A.flowNode=void 0,A}function y8(v,A){return v.label!==A?n(V3(A),v):v}function av(v){const A=V(251);return A.label=Gu(v),A.transformFlags|=zn(A.label)|4194304,A.jsDoc=void 0,A.flowNode=void 0,A}function hy(v,A){return v.label!==A?n(av(A),v):v}function N1(v){const A=V(252);return A.expression=v,A.transformFlags|=zn(A.expression)|128|4194304,A.jsDoc=void 0,A.flowNode=void 0,A}function Hm(v,A){return v.expression!==A?n(N1(A),v):v}function td(v,A){const F=V(253);return F.expression=v,F.statement=D2(A),F.transformFlags|=zn(F.expression)|zn(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function hd(v,A,F){return v.expression!==A||v.statement!==F?n(td(A,F),v):v}function yd(v,A){const F=V(254);return F.expression=i().parenthesizeExpressionForDisallowedComma(v),F.caseBlock=A,F.transformFlags|=zn(F.expression)|zn(F.caseBlock),F.jsDoc=void 0,F.flowNode=void 0,F.possiblyExhaustive=!1,F}function yy(v,A,F){return v.expression!==A||v.caseBlock!==F?n(yd(A,F),v):v}function sT(v,A){const F=V(255);return F.label=Gu(v),F.statement=D2(A),F.transformFlags|=zn(F.label)|zn(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function v8(v,A,F){return v.label!==A||v.statement!==F?n(sT(A,F),v):v}function W3(v){const A=V(256);return A.expression=v,A.transformFlags|=zn(A.expression),A.jsDoc=void 0,A.flowNode=void 0,A}function oT(v,A){return v.expression!==A?n(W3(A),v):v}function Q4(v,A,F){const se=V(257);return se.tryBlock=v,se.catchClause=A,se.finallyBlock=F,se.transformFlags|=zn(se.tryBlock)|zn(se.catchClause)|zn(se.finallyBlock),se.jsDoc=void 0,se.flowNode=void 0,se}function b8(v,A,F,se){return v.tryBlock!==A||v.catchClause!==F||v.finallyBlock!==se?n(Q4(A,F,se),v):v}function K4(){const v=V(258);return v.jsDoc=void 0,v.flowNode=void 0,v}function q3(v,A,F,se){var cr;const Je=re(259);return Je.name=Gu(v),Je.exclamationToken=A,Je.type=F,Je.initializer=A2(se),Je.transformFlags|=Qv(Je.name)|zn(Je.initializer)|(((cr=Je.exclamationToken)!=null?cr:Je.type)?1:0),Je.jsDoc=void 0,Je}function x8(v,A,F,se,Je){return v.name!==A||v.type!==se||v.exclamationToken!==F||v.initializer!==Je?n(q3(A,F,se,Je),v):v}function sv(v,A=0){const F=V(260);return F.flags|=A&3,F.declarations=U(v),F.transformFlags|=ac(F.declarations)|4194304,A&3&&(F.transformFlags|=263168),F}function cT(v,A){return v.declarations!==A?n(sv(A,v.flags),v):v}function qe(v,A,F,se,Je,cr,Pn){const Ya=re(261);if(Ya.modifiers=Vs(v),Ya.asteriskToken=A,Ya.name=Gu(F),Ya.typeParameters=Vs(se),Ya.parameters=U(Je),Ya.type=cr,Ya.body=Pn,!Ya.body||uh(Ya.modifiers)&2)Ya.transformFlags=1;else{const Zc=uh(Ya.modifiers)&512,Gm=!!Ya.asteriskToken,bv=Zc&&Gm;Ya.transformFlags=ac(Ya.modifiers)|zn(Ya.asteriskToken)|Qv(Ya.name)|ac(Ya.typeParameters)|ac(Ya.parameters)|zn(Ya.type)|zn(Ya.body)&-67108865|(bv?128:Zc?256:Gm?2048:0)|(Ya.typeParameters||Ya.type?1:0)|4194304}return Ya.typeArguments=void 0,Ya.jsDoc=void 0,Ya.locals=void 0,Ya.nextContainer=void 0,Ya.endFlowNode=void 0,Ya.returnFlowNode=void 0,Ya}function Ah(v,A,F,se,Je,cr,Pn,Ya){return v.modifiers!==A||v.asteriskToken!==F||v.name!==se||v.typeParameters!==Je||v.parameters!==cr||v.type!==Pn||v.body!==Ya?vy(qe(A,F,se,Je,cr,Pn,Ya),v):v}function vy(v,A){return v!==A&&v.modifiers===A.modifiers&&(v.modifiers=A.modifiers),z(v,A)}function g2(v,A,F,se,Je){const cr=re(262);return cr.modifiers=Vs(v),cr.name=Gu(A),cr.typeParameters=Vs(F),cr.heritageClauses=Vs(se),cr.members=U(Je),uh(cr.modifiers)&2?cr.transformFlags=1:(cr.transformFlags|=ac(cr.modifiers)|Qv(cr.name)|ac(cr.typeParameters)|ac(cr.heritageClauses)|ac(cr.members)|(cr.typeParameters?1:0)|1024,cr.transformFlags&8192&&(cr.transformFlags|=1)),cr.jsDoc=void 0,cr}function e6(v,A,F,se,Je,cr){return v.modifiers!==A||v.name!==F||v.typeParameters!==se||v.heritageClauses!==Je||v.members!==cr?n(g2(A,F,se,Je,cr),v):v}function ov(v,A,F,se,Je){const cr=re(263);return cr.modifiers=Vs(v),cr.name=Gu(A),cr.typeParameters=Vs(F),cr.heritageClauses=Vs(se),cr.members=U(Je),cr.transformFlags=1,cr.jsDoc=void 0,cr}function t6(v,A,F,se,Je,cr){return v.modifiers!==A||v.name!==F||v.typeParameters!==se||v.heritageClauses!==Je||v.members!==cr?n(ov(A,F,se,Je,cr),v):v}function Pu(v,A,F,se){const Je=re(264);return Je.modifiers=Vs(v),Je.name=Gu(A),Je.typeParameters=Vs(F),Je.type=se,Je.transformFlags=1,Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je}function cv(v,A,F,se,Je){return v.modifiers!==A||v.name!==F||v.typeParameters!==se||v.type!==Je?n(Pu(A,F,se,Je),v):v}function vc(v,A,F){const se=re(265);return se.modifiers=Vs(v),se.name=Gu(A),se.members=U(F),se.transformFlags|=ac(se.modifiers)|zn(se.name)|ac(se.members)|1,se.transformFlags&=-67108865,se.jsDoc=void 0,se}function jd(v,A,F,se){return v.modifiers!==A||v.name!==F||v.members!==se?n(vc(A,F,se),v):v}function $3(v,A,F,se=0){const Je=re(266);return Je.modifiers=Vs(v),Je.flags|=se&1044,Je.name=A,Je.body=F,uh(Je.modifiers)&2?Je.transformFlags=1:Je.transformFlags|=ac(Je.modifiers)|zn(Je.name)|zn(Je.body)|1,Je.transformFlags&=-67108865,Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je}function gp(v,A,F,se){return v.modifiers!==A||v.name!==F||v.body!==se?n($3(A,F,se,v.flags),v):v}function by(v){const A=V(267);return A.statements=U(v),A.transformFlags|=ac(A.statements),A.jsDoc=void 0,A}function zd(v,A){return v.statements!==A?n(by(A),v):v}function h2(v){const A=V(268);return A.clauses=U(v),A.transformFlags|=ac(A.clauses),A.locals=void 0,A.nextContainer=void 0,A}function H3(v,A){return v.clauses!==A?n(h2(A),v):v}function G3(v){const A=re(269);return A.name=Gu(v),A.transformFlags|=D9(A.name)|1,A.modifiers=void 0,A.jsDoc=void 0,A}function T8(v,A){return v.name!==A?I1(G3(A),v):v}function I1(v,A){return v!==A&&(v.modifiers=A.modifiers),n(v,A)}function lT(v,A,F,se){const Je=re(270);return Je.modifiers=Vs(v),Je.name=Gu(F),Je.isTypeOnly=A,Je.moduleReference=se,Je.transformFlags|=ac(Je.modifiers)|D9(Je.name)|zn(Je.moduleReference),yh(Je.moduleReference)||(Je.transformFlags|=1),Je.transformFlags&=-67108865,Je.jsDoc=void 0,Je}function uT(v,A,F,se,Je){return v.modifiers!==A||v.isTypeOnly!==F||v.name!==se||v.moduleReference!==Je?n(lT(A,F,se,Je),v):v}function Pa(v,A,F,se){const Je=V(271);return Je.modifiers=Vs(v),Je.importClause=A,Je.moduleSpecifier=F,Je.assertClause=se,Je.transformFlags|=zn(Je.importClause)|zn(Je.moduleSpecifier),Je.transformFlags&=-67108865,Je.jsDoc=void 0,Je}function Ei(v,A,F,se,Je){return v.modifiers!==A||v.importClause!==F||v.moduleSpecifier!==se||v.assertClause!==Je?n(Pa(A,F,se,Je),v):v}function im(v,A,F){const se=re(272);return se.isTypeOnly=v,se.name=A,se.namedBindings=F,se.transformFlags|=zn(se.name)|zn(se.namedBindings),v&&(se.transformFlags|=1),se.transformFlags&=-67108865,se}function pf(v,A,F,se){return v.isTypeOnly!==A||v.name!==F||v.namedBindings!==se?n(im(A,F,se),v):v}function y2(v,A){const F=V(299);return F.elements=U(v),F.multiLine=A,F.transformFlags|=4,F}function lv(v,A,F){return v.elements!==A||v.multiLine!==F?n(y2(A,F),v):v}function r6(v,A){const F=V(300);return F.name=v,F.value=A,F.transformFlags|=4,F}function S8(v,A,F){return v.name!==A||v.value!==F?n(r6(A,F),v):v}function hu(v,A){const F=V(301);return F.assertClause=v,F.multiLine=A,F}function X3(v,A,F){return v.assertClause!==A||v.multiLine!==F?n(hu(A,F),v):v}function Z3(v){const A=re(273);return A.name=v,A.transformFlags|=zn(A.name),A.transformFlags&=-67108865,A}function _T(v,A){return v.name!==A?n(Z3(A),v):v}function Y3(v){const A=re(279);return A.name=v,A.transformFlags|=zn(A.name)|32,A.transformFlags&=-67108865,A}function gg(v,A){return v.name!==A?n(Y3(A),v):v}function fT(v){const A=V(274);return A.elements=U(v),A.transformFlags|=ac(A.elements),A.transformFlags&=-67108865,A}function yC(v,A){return v.elements!==A?n(fT(A),v):v}function Rb(v,A,F){const se=re(275);return se.isTypeOnly=v,se.propertyName=A,se.name=F,se.transformFlags|=zn(se.propertyName)|zn(se.name),se.transformFlags&=-67108865,se}function pT(v,A,F,se){return v.isTypeOnly!==A||v.propertyName!==F||v.name!==se?n(Rb(A,F,se),v):v}function am(v,A,F){const se=re(276);return se.modifiers=Vs(v),se.isExportEquals=A,se.expression=A?i().parenthesizeRightSideOfBinary(64,void 0,F):i().parenthesizeExpressionOfExportDefault(F),se.transformFlags|=ac(se.modifiers)|zn(se.expression),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function uv(v,A,F){return v.modifiers!==A||v.expression!==F?n(am(A,v.isExportEquals,F),v):v}function Jd(v,A,F,se,Je){const cr=re(277);return cr.modifiers=Vs(v),cr.isTypeOnly=A,cr.exportClause=F,cr.moduleSpecifier=se,cr.assertClause=Je,cr.transformFlags|=ac(cr.modifiers)|zn(cr.exportClause)|zn(cr.moduleSpecifier),cr.transformFlags&=-67108865,cr.jsDoc=void 0,cr}function Bb(v,A,F,se,Je,cr){return v.modifiers!==A||v.isTypeOnly!==F||v.exportClause!==se||v.moduleSpecifier!==Je||v.assertClause!==cr?k8(Jd(A,F,se,Je,cr),v):v}function k8(v,A){return v!==A&&v.modifiers===A.modifiers&&(v.modifiers=A.modifiers),n(v,A)}function xy(v){const A=V(278);return A.elements=U(v),A.transformFlags|=ac(A.elements),A.transformFlags&=-67108865,A}function jb(v,A){return v.elements!==A?n(xy(A),v):v}function dT(v,A,F){const se=V(280);return se.isTypeOnly=v,se.propertyName=Gu(A),se.name=Gu(F),se.transformFlags|=zn(se.propertyName)|zn(se.name),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function Xg(v,A,F,se){return v.isTypeOnly!==A||v.propertyName!==F||v.name!==se?n(dT(A,F,se),v):v}function vC(){const v=re(281);return v.jsDoc=void 0,v}function Zg(v){const A=V(282);return A.expression=v,A.transformFlags|=zn(A.expression),A.transformFlags&=-67108865,A}function Yg(v,A){return v.expression!==A?n(Zg(A),v):v}function sm(v){return V(v)}function n6(v,A,F=!1){const se=zb(v,F?A&&i().parenthesizeNonArrayTypeOfPostfixType(A):A);return se.postfix=F,se}function zb(v,A){const F=V(v);return F.type=A,F}function bC(v,A,F){return A.type!==F?n(n6(v,F,A.postfix),A):A}function mT(v,A,F){return A.type!==F?n(zb(v,F),A):A}function Xc(v,A){const F=re(323);return F.parameters=Vs(v),F.type=A,F.transformFlags=ac(F.parameters)|(F.type?1:0),F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.typeArguments=void 0,F}function Q3(v,A,F){return v.parameters!==A||v.type!==F?n(Xc(A,F),v):v}function Jb(v,A=!1){const F=re(328);return F.jsDocPropertyTags=Vs(v),F.isArrayType=A,F}function gT(v,A,F){return v.jsDocPropertyTags!==A||v.isArrayType!==F?n(Jb(A,F),v):v}function Ub(v){const A=V(315);return A.type=v,A}function hT(v,A){return v.type!==A?n(Ub(A),v):v}function C8(v,A,F){const se=re(329);return se.typeParameters=Vs(v),se.parameters=U(A),se.type=F,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se}function yT(v,A,F,se){return v.typeParameters!==A||v.parameters!==F||v.type!==se?n(C8(A,F,se),v):v}function Cn(v){const A=aR(v.kind);return v.tagName.escapedText===Kl(A)?v.tagName:ve(A)}function qu(v,A,F){const se=V(v);return se.tagName=A,se.comment=F,se}function ps(v,A,F){const se=re(v);return se.tagName=A,se.comment=F,se}function _v(v,A,F,se){const Je=qu(351,v!=null?v:ve("template"),se);return Je.constraint=A,Je.typeParameters=U(F),Je}function K3(v,A=Cn(v),F,se,Je){return v.tagName!==A||v.constraint!==F||v.typeParameters!==se||v.comment!==Je?n(_v(A,F,se,Je),v):v}function Qg(v,A,F,se){const Je=ps(352,v!=null?v:ve("typedef"),se);return Je.typeExpression=A,Je.fullName=F,Je.name=iX(F),Je.locals=void 0,Je.nextContainer=void 0,Je}function Dn(v,A=Cn(v),F,se,Je){return v.tagName!==A||v.typeExpression!==F||v.fullName!==se||v.comment!==Je?n(Qg(A,F,se,Je),v):v}function i6(v,A,F,se,Je,cr){const Pn=ps(347,v!=null?v:ve("param"),cr);return Pn.typeExpression=se,Pn.name=A,Pn.isNameFirst=!!Je,Pn.isBracketed=F,Pn}function a6(v,A=Cn(v),F,se,Je,cr,Pn){return v.tagName!==A||v.name!==F||v.isBracketed!==se||v.typeExpression!==Je||v.isNameFirst!==cr||v.comment!==Pn?n(i6(A,F,se,Je,cr,Pn),v):v}function y_(v,A,F,se,Je,cr){const Pn=ps(354,v!=null?v:ve("prop"),cr);return Pn.typeExpression=se,Pn.name=A,Pn.isNameFirst=!!Je,Pn.isBracketed=F,Pn}function P1(v,A=Cn(v),F,se,Je,cr,Pn){return v.tagName!==A||v.name!==F||v.isBracketed!==se||v.typeExpression!==Je||v.isNameFirst!==cr||v.comment!==Pn?n(y_(A,F,se,Je,cr,Pn),v):v}function J0(v,A,F,se){const Je=ps(344,v!=null?v:ve("callback"),se);return Je.typeExpression=A,Je.fullName=F,Je.name=iX(F),Je.locals=void 0,Je.nextContainer=void 0,Je}function s6(v,A=Cn(v),F,se,Je){return v.tagName!==A||v.typeExpression!==F||v.fullName!==se||v.comment!==Je?n(J0(A,F,se,Je),v):v}function ex(v,A,F){const se=qu(345,v!=null?v:ve("overload"),F);return se.typeExpression=A,se}function Ty(v,A=Cn(v),F,se){return v.tagName!==A||v.typeExpression!==F||v.comment!==se?n(ex(A,F,se),v):v}function o6(v,A,F){const se=qu(334,v!=null?v:ve("augments"),F);return se.class=A,se}function c6(v,A=Cn(v),F,se){return v.tagName!==A||v.class!==F||v.comment!==se?n(o6(A,F,se),v):v}function Dh(v,A,F){const se=qu(335,v!=null?v:ve("implements"),F);return se.class=A,se}function U0(v,A,F){const se=qu(353,v!=null?v:ve("see"),F);return se.name=A,se}function v2(v,A,F,se){return v.tagName!==A||v.name!==F||v.comment!==se?n(U0(A,F,se),v):v}function nu(v){const A=V(316);return A.name=v,A}function Rf(v,A){return v.name!==A?n(nu(A),v):v}function Nh(v,A){const F=V(317);return F.left=v,F.right=A,F.transformFlags|=zn(F.left)|zn(F.right),F}function rd(v,A,F){return v.left!==A||v.right!==F?n(Nh(A,F),v):v}function m0(v,A){const F=V(330);return F.name=v,F.text=A,F}function l6(v,A,F){return v.name!==A?n(m0(A,F),v):v}function Yf(v,A){const F=V(331);return F.name=v,F.text=A,F}function vT(v,A,F){return v.name!==A?n(Yf(A,F),v):v}function b2(v,A){const F=V(332);return F.name=v,F.text=A,F}function x2(v,A,F){return v.name!==A?n(b2(A,F),v):v}function tx(v,A=Cn(v),F,se){return v.tagName!==A||v.class!==F||v.comment!==se?n(Dh(A,F,se),v):v}function g0(v,A,F){return qu(v,A!=null?A:ve(aR(v)),F)}function fv(v,A,F=Cn(A),se){return A.tagName!==F||A.comment!==se?n(g0(v,F,se),A):A}function u6(v,A,F,se){const Je=qu(v,A!=null?A:ve(aR(v)),se);return Je.typeExpression=F,Je}function ou(v,A,F=Cn(A),se,Je){return A.tagName!==F||A.typeExpression!==se||A.comment!==Je?n(u6(v,F,se,Je),A):A}function Vb(v,A){return qu(333,v,A)}function rx(v,A,F){return v.tagName!==A||v.comment!==F?n(Vb(A,F),v):v}function w_(v,A,F){const se=ps(346,v!=null?v:ve(aR(346)),F);return se.typeExpression=A,se.locals=void 0,se.nextContainer=void 0,se}function w8(v,A=Cn(v),F,se){return v.tagName!==A||v.typeExpression!==F||v.comment!==se?n(w_(A,F,se),v):v}function z_(v){const A=V(327);return A.text=v,A}function pv(v,A){return v.text!==A?n(z_(A),v):v}function _6(v,A){const F=V(326);return F.comment=v,F.tags=Vs(A),F}function Kg(v,A,F){return v.comment!==A||v.tags!==F?n(_6(A,F),v):v}function om(v,A,F){const se=V(283);return se.openingElement=v,se.children=U(A),se.closingElement=F,se.transformFlags|=zn(se.openingElement)|ac(se.children)|zn(se.closingElement)|2,se}function nx(v,A,F,se){return v.openingElement!==A||v.children!==F||v.closingElement!==se?n(om(A,F,se),v):v}function Wb(v,A,F){const se=V(284);return se.tagName=v,se.typeArguments=Vs(A),se.attributes=F,se.transformFlags|=zn(se.tagName)|ac(se.typeArguments)|zn(se.attributes)|2,se.typeArguments&&(se.transformFlags|=1),se}function E8(v,A,F,se){return v.tagName!==A||v.typeArguments!==F||v.attributes!==se?n(Wb(A,F,se),v):v}function Sy(v,A,F){const se=V(285);return se.tagName=v,se.typeArguments=Vs(A),se.attributes=F,se.transformFlags|=zn(se.tagName)|ac(se.typeArguments)|zn(se.attributes)|2,A&&(se.transformFlags|=1),se}function dv(v,A,F,se){return v.tagName!==A||v.typeArguments!==F||v.attributes!==se?n(Sy(A,F,se),v):v}function mv(v){const A=V(286);return A.tagName=v,A.transformFlags|=zn(A.tagName)|2,A}function xC(v,A){return v.tagName!==A?n(mv(A),v):v}function Dm(v,A,F){const se=V(287);return se.openingFragment=v,se.children=U(A),se.closingFragment=F,se.transformFlags|=zn(se.openingFragment)|ac(se.children)|zn(se.closingFragment)|2,se}function A8(v,A,F,se){return v.openingFragment!==A||v.children!==F||v.closingFragment!==se?n(Dm(A,F,se),v):v}function gv(v,A){const F=V(12);return F.text=v,F.containsOnlyTriviaWhiteSpaces=!!A,F.transformFlags|=2,F}function Nm(v,A,F){return v.text!==A||v.containsOnlyTriviaWhiteSpaces!==F?n(gv(A,F),v):v}function Ih(){const v=V(288);return v.transformFlags|=2,v}function bT(){const v=V(289);return v.transformFlags|=2,v}function qb(v,A){const F=re(290);return F.name=v,F.initializer=A,F.transformFlags|=zn(F.name)|zn(F.initializer)|2,F}function Ec(v,A,F){return v.name!==A||v.initializer!==F?n(qb(A,F),v):v}function ei(v){const A=re(291);return A.properties=U(v),A.transformFlags|=ac(A.properties)|2,A}function Im(v,A){return v.properties!==A?n(ei(A),v):v}function vd(v){const A=V(292);return A.expression=v,A.transformFlags|=zn(A.expression)|2,A}function ix(v,A){return v.expression!==A?n(vd(A),v):v}function T2(v,A){const F=V(293);return F.dotDotDotToken=v,F.expression=A,F.transformFlags|=zn(F.dotDotDotToken)|zn(F.expression)|2,F}function TC(v,A){return v.expression!==A?n(T2(v.dotDotDotToken,A),v):v}function $b(v,A){const F=V(294);return F.namespace=v,F.name=A,F.transformFlags|=zn(F.namespace)|zn(F.name)|2,F}function f6(v,A,F){return v.namespace!==A||v.name!==F?n($b(A,F),v):v}function O1(v,A){const F=V(295);return F.expression=i().parenthesizeExpressionForDisallowedComma(v),F.statements=U(A),F.transformFlags|=zn(F.expression)|ac(F.statements),F.jsDoc=void 0,F}function V0(v,A,F){return v.expression!==A||v.statements!==F?n(O1(A,F),v):v}function S2(v){const A=V(296);return A.statements=U(v),A.transformFlags=ac(A.statements),A}function Hb(v,A){return v.statements!==A?n(S2(A),v):v}function Ph(v,A){const F=V(297);switch(F.token=v,F.types=U(A),F.transformFlags|=ac(F.types),v){case 96:F.transformFlags|=1024;break;case 119:F.transformFlags|=1;break;default:return D.assertNever(v)}return F}function ky(v,A){return v.types!==A?n(Ph(v.token,A),v):v}function Gb(v,A){const F=V(298);return F.variableDeclaration=pA(v),F.block=A,F.transformFlags|=zn(F.variableDeclaration)|zn(F.block)|(v?0:64),F.locals=void 0,F.nextContainer=void 0,F}function $u(v,A,F){return v.variableDeclaration!==A||v.block!==F?n(Gb(A,F),v):v}function Af(v,A){const F=re(302);return F.name=Gu(v),F.initializer=i().parenthesizeExpressionForDisallowedComma(A),F.transformFlags|=Qv(F.name)|zn(F.initializer),F.modifiers=void 0,F.questionToken=void 0,F.exclamationToken=void 0,F.jsDoc=void 0,F}function SC(v,A,F){return v.name!==A||v.initializer!==F?h0(Af(A,F),v):v}function h0(v,A){return v!==A&&(v.modifiers=A.modifiers,v.questionToken=A.questionToken,v.exclamationToken=A.exclamationToken),n(v,A)}function M1(v,A){const F=re(303);return F.name=Gu(v),F.objectAssignmentInitializer=A&&i().parenthesizeExpressionForDisallowedComma(A),F.transformFlags|=D9(F.name)|zn(F.objectAssignmentInitializer)|1024,F.equalsToken=void 0,F.modifiers=void 0,F.questionToken=void 0,F.exclamationToken=void 0,F.jsDoc=void 0,F}function p6(v,A,F){return v.name!==A||v.objectAssignmentInitializer!==F?xT(M1(A,F),v):v}function xT(v,A){return v!==A&&(v.modifiers=A.modifiers,v.questionToken=A.questionToken,v.exclamationToken=A.exclamationToken,v.equalsToken=A.equalsToken),n(v,A)}function d6(v){const A=re(304);return A.expression=i().parenthesizeExpressionForDisallowedComma(v),A.transformFlags|=zn(A.expression)|128|65536,A.jsDoc=void 0,A}function Qf(v,A){return v.expression!==A?n(d6(A),v):v}function yu(v,A){const F=re(305);return F.name=Gu(v),F.initializer=A&&i().parenthesizeExpressionForDisallowedComma(A),F.transformFlags|=zn(F.name)|zn(F.initializer)|1,F.jsDoc=void 0,F}function kC(v,A,F){return v.name!==A||v.initializer!==F?n(yu(A,F),v):v}function ax(v,A,F){const se=t.createBaseSourceFileNode(311);return se.statements=U(v),se.endOfFileToken=A,se.flags|=F,se.text="",se.fileName="",se.path="",se.resolvedPath="",se.originalFileName="",se.languageVersion=0,se.languageVariant=0,se.scriptKind=0,se.isDeclarationFile=!1,se.hasNoDefaultLib=!1,se.transformFlags|=ac(se.statements)|zn(se.endOfFileToken),se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.nodeCount=0,se.identifierCount=0,se.symbolCount=0,se.parseDiagnostics=void 0,se.bindDiagnostics=void 0,se.bindSuggestionDiagnostics=void 0,se.lineMap=void 0,se.externalModuleIndicator=void 0,se.setExternalModuleIndicator=void 0,se.pragmas=void 0,se.checkJsDirective=void 0,se.referencedFiles=void 0,se.typeReferenceDirectives=void 0,se.libReferenceDirectives=void 0,se.amdDependencies=void 0,se.commentDirectives=void 0,se.identifiers=void 0,se.packageJsonLocations=void 0,se.packageJsonScope=void 0,se.imports=void 0,se.moduleAugmentations=void 0,se.ambientModuleNames=void 0,se.resolvedModules=void 0,se.classifiableNames=void 0,se.impliedNodeFormat=void 0,se}function Cy(v){const A=Object.create(v.redirectTarget);return Object.defineProperties(A,{id:{get(){return this.redirectInfo.redirectTarget.id},set(F){this.redirectInfo.redirectTarget.id=F}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(F){this.redirectInfo.redirectTarget.symbol=F}}}),A.redirectInfo=v,A}function k2(v){const A=Cy(v.redirectInfo);return A.flags|=v.flags&-9,A.fileName=v.fileName,A.path=v.path,A.resolvedPath=v.resolvedPath,A.originalFileName=v.originalFileName,A.packageJsonLocations=v.packageJsonLocations,A.packageJsonScope=v.packageJsonScope,A.emitNode=void 0,A}function sx(v){const A=t.createBaseSourceFileNode(311);A.flags|=v.flags&-9;for(const F in v)if(!(Hs(A,F)||!Hs(v,F))){if(F==="emitNode"){A.emitNode=void 0;continue}A[F]=v[F]}return A}function TT(v){const A=v.redirectInfo?k2(v):sx(v);return yi(A,v),A}function ox(v,A,F,se,Je,cr,Pn){const Ya=TT(v);return Ya.statements=U(A),Ya.isDeclarationFile=F,Ya.referencedFiles=se,Ya.typeReferenceDirectives=Je,Ya.hasNoDefaultLib=cr,Ya.libReferenceDirectives=Pn,Ya.transformFlags=ac(Ya.statements)|zn(Ya.endOfFileToken),Ya}function m6(v,A,F=v.isDeclarationFile,se=v.referencedFiles,Je=v.typeReferenceDirectives,cr=v.hasNoDefaultLib,Pn=v.libReferenceDirectives){return v.statements!==A||v.isDeclarationFile!==F||v.referencedFiles!==se||v.typeReferenceDirectives!==Je||v.hasNoDefaultLib!==cr||v.libReferenceDirectives!==Pn?n(ox(v,A,F,se,Je,cr,Pn),v):v}function cx(v,A=tt){const F=V(312);return F.prepends=A,F.sourceFiles=v,F.syntheticFileReferences=void 0,F.syntheticTypeReferences=void 0,F.syntheticLibReferences=void 0,F.hasNoDefaultLib=void 0,F}function hg(v,A,F=tt){return v.sourceFiles!==A||v.prepends!==F?n(cx(A,F),v):v}function e1(v,A,F){const se=V(313);return se.prologues=v,se.syntheticReferences=A,se.texts=F,se.fileName="",se.text="",se.referencedFiles=tt,se.libReferenceDirectives=tt,se.getLineAndCharacterOfPosition=Je=>Ql(se,Je),se}function C2(v,A){const F=V(v);return F.data=A,F}function lx(v){return C2(306,v)}function CC(v,A){const F=C2(307,v);return F.texts=A,F}function hv(v,A){return C2(A?309:308,v)}function S(v){const A=V(310);return A.data=v.data,A.section=v,A}function ie(){const v=V(314);return v.javascriptText="",v.declarationText="",v}function ze(v,A=!1,F){const se=V(236);return se.type=v,se.isSpread=A,se.tupleNameSource=F,se}function hr(v){const A=V(357);return A._children=v,A}function Rt(v){const A=V(358);return A.original=v,yt(A,v),A}function _a(v,A){const F=V(359);return F.expression=v,F.original=A,F.transformFlags|=zn(F.expression)|1,yt(F,A),F}function Gi(v,A){return v.expression!==A?n(_a(A,v.original),v):v}function Ra(v){if(Ol(v)&&!Aw(v)&&!v.original&&!v.emitNode&&!v.id){if(z9(v))return v.elements;if(Un(v)&&zfe(v.operatorToken))return[v.left,v.right]}return v}function co(v){const A=V(360);return A.elements=U(pl(v,Ra)),A.transformFlags|=ac(A.elements),A}function Ud(v,A){return v.elements!==A?n(co(A),v):v}function Vd(v,A){const F=V(361);return F.expression=v,F.thisArg=A,F.transformFlags|=zn(F.expression)|zn(F.thisArg),F}function nd(v,A,F){return v.expression!==A||v.thisArg!==F?n(Vd(A,F),v):v}function g6(v){const A=te(v.escapedText);return A.flags|=v.flags&-9,A.transformFlags=v.transformFlags,yi(A,v),QN(A,fa({},v.emitNode.autoGenerate)),A}function id(v){const A=te(v.escapedText);A.flags|=v.flags&-9,A.jsDoc=v.jsDoc,A.flowNode=v.flowNode,A.symbol=v.symbol,A.transformFlags=v.transformFlags,yi(A,v);const F=b7(v);return F&&e2(A,F),A}function h6(v){const A=Fe(v.escapedText);return A.flags|=v.flags&-9,A.transformFlags=v.transformFlags,yi(A,v),QN(A,fa({},v.emitNode.autoGenerate)),A}function Xb(v){const A=Fe(v.escapedText);return A.flags|=v.flags&-9,A.transformFlags=v.transformFlags,yi(A,v),A}function ux(v){if(v===void 0)return v;if(Ja(v))return TT(v);if(uu(v))return g6(v);if(Be(v))return id(v);if(QT(v))return h6(v);if(Ea(v))return Xb(v);const A=wD(v.kind)?t.createBaseNode(v.kind):t.createBaseTokenNode(v.kind);A.flags|=v.flags&-9,A.transformFlags=v.transformFlags,yi(A,v);for(const F in v)Hs(A,F)||!Hs(v,F)||(A[F]=v[F]);return A}function ST(v,A,F){return un(As(void 0,void 0,void 0,void 0,A?[A]:[],void 0,d2(v,!0)),void 0,F?[F]:[])}function yv(v,A,F){return un(wl(void 0,void 0,A?[A]:[],void 0,void 0,d2(v,!0)),void 0,F?[F]:[])}function y0(){return Kp(ce("0"))}function wy(v){return am(void 0,!1,v)}function Pm(v){return Jd(void 0,!1,xy([dT(!1,void 0,v)]))}function vv(v,A){return A==="undefined"?B.createStrictEquality(v,y0()):B.createStrictEquality(l_(v),ae(A))}function Zb(v,A,F){return e7(v)?Rs(Lc(v,void 0,A),void 0,void 0,F):un(gu(v,A),void 0,F)}function Oh(v,A,F){return Zb(v,"bind",[A,...F])}function _x(v,A,F){return Zb(v,"call",[A,...F])}function VO(v,A,F){return Zb(v,"apply",[A,F])}function Hu(v,A,F){return Zb(ve(v),A,F)}function WO(v,A){return Zb(v,"slice",A===void 0?[]:[E2(A)])}function Fc(v,A){return Zb(v,"concat",A)}function Ac(v,A,F){return Hu("Object","defineProperty",[v,E2(A),F])}function D8(v,A){return Hu("Object","getOwnPropertyDescriptor",[v,E2(A)])}function H(v,A,F){return Hu("Reflect","get",F?[v,A,F]:[v,A])}function be(v,A,F,se){return Hu("Reflect","set",se?[v,A,F,se]:[v,A,F])}function Ve(v,A,F){return F?(v.push(Af(A,F)),!0):!1}function Dt(v,A){const F=[];Ve(F,"enumerable",E2(v.enumerable)),Ve(F,"configurable",E2(v.configurable));let se=Ve(F,"writable",E2(v.writable));se=Ve(F,"value",v.value)||se;let Je=Ve(F,"get",v.get);return Je=Ve(F,"set",v.set)||Je,D.assert(!(se&&Je),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Hc(F,!A)}function sr(v,A){switch(v.kind){case 216:return Ia(v,A);case 215:return si(v,v.type,A);case 233:return pi(v,A,v.type);case 237:return K_(v,A,v.type);case 234:return qs(v,A);case 359:return Gi(v,A)}}function Fr(v){return Md(v)&&Ol(v)&&Ol(L4(v))&&Ol(mh(v))&&!bt(Tk(v))&&!bt(YN(v))}function Si(v,A,F=15){return v&&YR(v,F)&&!Fr(v)?sr(v,Si(v.expression,A)):A}function aa(v,A,F){if(!A)return v;const se=v8(A,A.label,b3(A.statement)?aa(v,A.statement):v);return F&&F(A),se}function ba(v,A){const F=kl(v);switch(F.kind){case 80:return A;case 110:case 9:case 10:case 11:return!1;case 208:return F.elements.length!==0;case 209:return F.properties.length>0;default:return!0}}function sa(v,A,F,se=!1){const Je=Gf(v,15);let cr,Pn;return fd(Je)?(cr=wt(),Pn=Je):O9(Je)?(cr=wt(),Pn=F!==void 0&&F<2?yt(ve("_super"),Je):Je):_c(Je)&8192?(cr=y0(),Pn=i().parenthesizeLeftSideOfAccess(Je,!1)):mi(Je)?ba(Je.expression,se)?(cr=we(A),Pn=gu(yt(B.createAssignment(cr,Je.expression),Je.expression),Je.name),yt(Pn,Je)):(cr=Je.expression,Pn=Je):Ll(Je)?ba(Je.expression,se)?(cr=we(A),Pn=ff(yt(B.createAssignment(cr,Je.expression),Je.expression),Je.argumentExpression),yt(Pn,Je)):(cr=Je.expression,Pn=Je):(cr=y0(),Pn=i().parenthesizeLeftSideOfAccess(v,!1)),{target:Pn,thisArg:cr}}function ys(v,A){return gu(Bi(Hc([Ge(void 0,"value",[vi(void 0,void 0,v,void 0,void 0,void 0)],d2([Ob(A)]))])),"value")}function gl(v){return v.length>10?co(v):la(v,B.createComma)}function Ic(v,A,F,se=0,Je){const cr=Je?v&&yL(v):Es(v);if(cr&&Be(cr)&&!uu(cr)){const Pn=fc(yt(ux(cr),cr),cr.parent);return se|=_c(cr),F||(se|=96),A||(se|=3072),se&&Ln(Pn,se),Pn}return Re(v)}function Oo(v,A,F){return Ic(v,A,F,98304)}function Kf(v,A,F,se){return Ic(v,A,F,32768,se)}function W0(v,A,F){return Ic(v,A,F,16384)}function Yb(v,A,F){return Ic(v,A,F)}function yg(v,A,F,se){const Je=gu(v,Ol(A)?A:ux(A));yt(Je,A);let cr=0;return se||(cr|=96),F||(cr|=3072),cr&&Ln(Je,cr),Je}function Qb(v,A,F,se){return v&&Pi(A,1)?yg(v,Ic(A),F,se):W0(A,F,se)}function Kb(v,A,F,se){const Je=CT(v,A,0,F);return N8(v,A,Je,se)}function e4(v){return sc(v.expression)&&v.expression.text==="use strict"}function kT(){return Fp(Ob(ae("use strict")))}function CT(v,A,F=0,se){D.assert(A.length===0,"Prologue directives should be at the first statement in the target statements array");let Je=!1;const cr=v.length;for(;FYa&&Gm.splice(Je,0,...A.slice(Ya,Zc)),Ya>Pn&&Gm.splice(se,0,...A.slice(Pn,Ya)),Pn>cr&&Gm.splice(F,0,...A.slice(cr,Pn)),cr>0)if(F===0)Gm.splice(0,0,...A.slice(0,cr));else{const bv=new Map;for(let xv=0;xv=0;xv--){const t4=A[xv];bv.has(t4.expression.text)||Gm.unshift(t4)}}return Y6(v)?yt(U(Gm,v.hasTrailingComma),v):v}function fA(v,A){var se;let F;return typeof A=="number"?F=yr(A):F=A,eu(v)?In(v,F,v.name,v.constraint,v.default):Cs(v)?ia(v,F,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):L9(v)?zr(v,F,v.typeParameters,v.parameters,v.type):Vm(v)?Ar(v,F,v.name,v.questionToken,v.type):fo(v)?$r(v,F,v.name,(se=v.questionToken)!=null?se:v.exclamationToken,v.type,v.initializer):ly(v)?ja(v,F,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):g_(v)?rn(v,F,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Uu(v)?Tt(v,F,v.parameters,v.body):sg(v)?nr(v,F,v.name,v.parameters,v.type,v.body):u0(v)?dt(v,F,v.name,v.parameters,v.body):x7(v)?Pr(v,F,v.parameters,v.type):_l(v)?Ro(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Fl(v)?Rl(v,F,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):Mp(v)?Xr(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):S_(v)?Z4(v,F,v.declarationList):B_(v)?Ah(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):cf(v)?e6(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Lp(v)?t6(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):zg(v)?cv(v,F,v.name,v.typeParameters,v.type):j4(v)?jd(v,F,v.name,v.members):Vu(v)?gp(v,F,v.name,v.body):Hf(v)?uT(v,F,v.isTypeOnly,v.name,v.moduleReference):Tf(v)?Ei(v,F,v.importClause,v.moduleSpecifier,v.assertClause):Wu(v)?uv(v,F,v.expression):Sf(v)?Bb(v,F,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.assertClause):D.assertNever(v)}function Vs(v){return v?U(v):void 0}function Gu(v){return typeof v=="string"?ve(v):v}function E2(v){return typeof v=="string"?ae(v):typeof v=="number"?ce(v):typeof v=="boolean"?v?Zt():Qe():v}function A2(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function y6(v){return typeof v=="number"?Pe(v):v}function D2(v){return v&&jG(v)?yt(yi(z3(),v),v):v}function pA(v){return typeof v=="string"||v&&!Fa(v)?q3(v,void 0,void 0,void 0):v}}function Y9e(e,t){return e!==t&&yt(e,t),e}function Q9e(e,t){return e!==t&&(yi(e,t),yt(e,t)),e}function aR(e){switch(e){case 350:return"type";case 348:return"returns";case 349:return"this";case 346:return"enum";case 336:return"author";case 338:return"class";case 339:return"public";case 340:return"private";case 341:return"protected";case 342:return"readonly";case 343:return"override";case 351:return"template";case 352:return"typedef";case 347:return"param";case 354:return"prop";case 344:return"callback";case 345:return"overload";case 334:return"augments";case 335:return"implements";default:return D.fail(`Unsupported kind: ${D.formatSyntaxKind(e)}`)}}function K9e(e,t){switch(Yy||(Yy=Uv(99,!1,0)),e){case 15:Yy.setText("`"+t+"`");break;case 16:Yy.setText("`"+t+"${");break;case 17:Yy.setText("}"+t+"${");break;case 18:Yy.setText("}"+t+"`");break}let n=Yy.scan();if(n===20&&(n=Yy.reScanTemplateToken(!1)),Yy.isUnterminated())return Yy.setText(void 0),yG;let i;switch(n){case 15:case 16:case 17:case 18:i=Yy.getTokenValue();break}return i===void 0||Yy.scan()!==1?(Yy.setText(void 0),yG):(Yy.setText(void 0),i)}function Qv(e){return e&&Be(e)?D9(e):zn(e)}function D9(e){return zn(e)&-67108865}function eEe(e,t){return t|e.transformFlags&134234112}function zn(e){if(!e)return 0;const t=e.transformFlags&~kfe(e.kind);return sp(e)&&_u(e.name)?eEe(e.name,t):t}function ac(e){return e?e.transformFlags:0}function Sfe(e){let t=0;for(const n of e)t|=zn(n);e.transformFlags=t}function kfe(e){if(e>=181&&e<=204)return-2;switch(e){case 212:case 213:case 208:return-2147450880;case 266:return-1941676032;case 168:return-2147483648;case 218:return-2072174592;case 217:case 261:return-1937940480;case 260:return-2146893824;case 262:case 230:return-2147344384;case 175:return-1937948672;case 171:return-2013249536;case 173:case 176:case 177:return-2005057536;case 133:case 150:case 162:case 146:case 154:case 151:case 136:case 155:case 116:case 167:case 170:case 172:case 178:case 179:case 180:case 263:case 264:return-2;case 209:return-2147278848;case 298:return-2147418112;case 205:case 206:return-2147450880;case 215:case 237:case 233:case 359:case 216:case 108:return-2147483648;case 210:case 211:return-2147483648;default:return-2147483648}}function qN(e){return e.flags|=8,e}function pG(e,t,n){let i,s,o,l,f,_,h,m,y,T;bs(e)?(o="",l=e,f=e.length,_=t,h=n):(D.assert(t==="js"||t==="dts"),o=(t==="js"?e.javascriptPath:e.declarationPath)||"",_=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,f=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(D.assert(n===void 0||typeof n=="boolean"),i=n,s=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,T=e.oldFileOfCurrentEmit));const k=T?rEe(D.checkDefined(s)):tEe(s,i,f);return k.fileName=o,k.sourceMapPath=_,k.oldFileOfCurrentEmit=T,m&&y?(Object.defineProperty(k,"text",{get:m}),Object.defineProperty(k,"sourceMapText",{get:y})):(D.assert(!T),k.text=l!=null?l:"",k.sourceMapText=h),k}function tEe(e,t,n){let i,s,o,l,f,_,h,m;for(const T of e?e.sections:tt)switch(T.kind){case"prologue":i=Ht(i,yt(M.createUnparsedPrologue(T.data),T));break;case"emitHelpers":s=Ht(s,CG().get(T.data));break;case"no-default-lib":m=!0;break;case"reference":o=Ht(o,{pos:-1,end:-1,fileName:T.data});break;case"type":l=Ht(l,{pos:-1,end:-1,fileName:T.data});break;case"type-import":l=Ht(l,{pos:-1,end:-1,fileName:T.data,resolutionMode:99});break;case"type-require":l=Ht(l,{pos:-1,end:-1,fileName:T.data,resolutionMode:1});break;case"lib":f=Ht(f,{pos:-1,end:-1,fileName:T.data});break;case"prepend":let k;for(const E of T.texts)(!t||E.kind!=="internal")&&(k=Ht(k,yt(M.createUnparsedTextLike(E.data,E.kind==="internal"),E)));_=Et(_,k),h=Ht(h,M.createUnparsedPrepend(T.data,k!=null?k:tt));break;case"internal":if(t){h||(h=[]);break}case"text":h=Ht(h,yt(M.createUnparsedTextLike(T.data,T.kind==="internal"),T));break;default:D.assertNever(T)}if(!h){const T=M.createUnparsedTextLike(void 0,!1);x9(T,0,typeof n=="function"?n():n),h=[T]}const y=vh.createUnparsedSource(i!=null?i:tt,void 0,h);return gk(i,y),gk(h,y),gk(_,y),y.hasNoDefaultLib=m,y.helpers=s,y.referencedFiles=o||tt,y.typeReferenceDirectives=l,y.libReferenceDirectives=f||tt,y}function rEe(e){let t,n;for(const s of e.sections)switch(s.kind){case"internal":case"text":t=Ht(t,yt(M.createUnparsedTextLike(s.data,s.kind==="internal"),s));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=Ht(n,yt(M.createUnparsedSyntheticReference(s),s));break;case"prologue":case"emitHelpers":case"prepend":break;default:D.assertNever(s)}const i=M.createUnparsedSource(tt,n,t!=null?t:tt);return gk(n,i),gk(t,i),i.helpers=er(e.sources&&e.sources.helpers,s=>CG().get(s)),i}function nEe(e,t,n,i,s,o){return bs(e)?mG(void 0,e,n,i,void 0,t,s,o):dG(e,t,n,i,s,o)}function dG(e,t,n,i,s,o,l,f){const _=vh.createInputFiles();_.javascriptPath=t,_.javascriptMapPath=n,_.declarationPath=i,_.declarationMapPath=s,_.buildInfoPath=o;const h=new Map,m=E=>{if(E===void 0)return;let O=h.get(E);return O===void 0&&(O=e(E),h.set(E,O!==void 0?O:!1)),O!==!1?O:void 0},y=E=>{const O=m(E);return O!==void 0?O:`/* Input file ${E} was missing */\r -`};let T;return Object.defineProperties(_,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>m(n)},declarationText:{get:()=>y(D.checkDefined(i))},declarationMapText:{get:()=>m(s)},buildInfo:{get:()=>{var E,O;if(T===void 0&&o)if(l!=null&&l.getBuildInfo)T=(E=l.getBuildInfo(o,f.configFilePath))!=null?E:!1;else{const N=m(o);T=N!==void 0&&(O=ej(o,N))!=null?O:!1}return T||void 0}}}),_}function mG(e,t,n,i,s,o,l,f,_,h,m){const y=vh.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=n,y.javascriptMapText=i,y.declarationPath=s,y.declarationText=o,y.declarationMapPath=l,y.declarationMapText=f,y.buildInfoPath=_,y.buildInfo=h,y.oldFileOfCurrentEmit=m,y}function iEe(e,t,n){return new(wfe||(wfe=bf.getSourceMapSourceConstructor()))(e,t,n)}function yi(e,t){if(e.original=t,t){const n=t.emitNode;n&&(e.emitNode=aEe(n,e.emitNode))}return e}function aEe(e,t){const{flags:n,internalFlags:i,leadingComments:s,trailingComments:o,commentRange:l,sourceMapRange:f,tokenSourceMapRanges:_,constantValue:h,helpers:m,startsOnNewLine:y,snippetElement:T}=e;if(t||(t={}),s&&(t.leadingComments=Et(s.slice(),t.leadingComments)),o&&(t.trailingComments=Et(o.slice(),t.trailingComments)),n&&(t.flags=n),i&&(t.internalFlags=i&-9),l&&(t.commentRange=l),f&&(t.sourceMapRange=f),_&&(t.tokenSourceMapRanges=sEe(_,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),m)for(const k of m)t.helpers=ct(t.helpers,k);return y!==void 0&&(t.startsOnNewLine=y),T!==void 0&&(t.snippetElement=T),t}function sEe(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}var $N,gG,hG,Yy,yG,N9,Cfe,M,wfe,oEe=or({"src/compiler/factory/nodeFactory.ts"(){"use strict";ho(),$N=0,gG=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(gG||{}),hG=[],yG={},N9=bfe(),Cfe={createBaseSourceFileNode:e=>qN(N9.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>qN(N9.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>qN(N9.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>qN(N9.createBaseTokenNode(e)),createBaseNode:e=>qN(N9.createBaseNode(e))},M=WN(4,Cfe)}});function Gp(e){var t;if(e.emitNode)D.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(Aw(e)){if(e.kind===311)return e.emitNode={annotatedNodes:[e]};const n=(t=bn(gs(bn(e))))!=null?t:D.fail("Could not determine parsed source file.");Gp(n).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function vG(e){var t,n;const i=(n=(t=bn(gs(e)))==null?void 0:t.emitNode)==null?void 0:n.annotatedNodes;if(i)for(const s of i)s.emitNode=void 0}function HN(e){const t=Gp(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Ln(e,t){return Gp(e).flags=t,e}function dh(e,t){const n=Gp(e);return n.flags=n.flags|t,e}function GN(e,t){return Gp(e).internalFlags=t,e}function bS(e,t){const n=Gp(e);return n.internalFlags=n.internalFlags|t,e}function L4(e){var n;var t;return(n=(t=e.emitNode)==null?void 0:t.sourceMapRange)!=null?n:e}function Mc(e,t){return Gp(e).sourceMapRange=t,e}function cEe(e,t){var n,i;return(i=(n=e.emitNode)==null?void 0:n.tokenSourceMapRanges)==null?void 0:i[t]}function Efe(e,t,n){var o;const i=Gp(e),s=(o=i.tokenSourceMapRanges)!=null?o:i.tokenSourceMapRanges=[];return s[t]=n,e}function XN(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function bG(e,t){return Gp(e).startsOnNewLine=t,e}function mh(e){var n;var t;return(n=(t=e.emitNode)==null?void 0:t.commentRange)!=null?n:e}function xf(e,t){return Gp(e).commentRange=t,e}function Tk(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function F4(e,t){return Gp(e).leadingComments=t,e}function ZN(e,t,n,i){return F4(e,Ht(Tk(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function YN(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function xS(e,t){return Gp(e).trailingComments=t,e}function sR(e,t,n,i){return xS(e,Ht(YN(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function Afe(e,t){F4(e,Tk(t)),xS(e,YN(t));const n=Gp(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Dfe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Nfe(e,t){const n=Gp(e);return n.constantValue=t,e}function TS(e,t){const n=Gp(e);return n.helpers=Ht(n.helpers,t),e}function Kv(e,t){if(bt(t)){const n=Gp(e);for(const i of t)n.helpers=ct(n.helpers,i)}return e}function lEe(e,t){var n;const i=(n=e.emitNode)==null?void 0:n.helpers;return i?m4(i,t):!1}function oR(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Ife(e,t,n){const i=e.emitNode,s=i&&i.helpers;if(!bt(s))return;const o=Gp(t);let l=0;for(let f=0;f0&&(s[f-l]=_)}l>0&&(s.length-=l)}function xG(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function TG(e,t){const n=Gp(e);return n.snippetElement=t,e}function SG(e){return Gp(e).internalFlags|=4,e}function Pfe(e,t){const n=Gp(e);return n.typeNode=t,e}function Ofe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function e2(e,t){return Gp(e).identifierTypeArguments=t,e}function b7(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function QN(e,t){return Gp(e).autoGenerate=t,e}function uEe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Mfe(e,t){return Gp(e).generatedImportReference=t,e}function Lfe(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var _Ee=or({"src/compiler/factory/emitNode.ts"(){"use strict";ho()}});function Ffe(e){const t=e.factory,n=q_(()=>GN(t.createTrue(),8)),i=q_(()=>GN(t.createFalse(),8));return{getUnscopedHelperName:s,createDecorateHelper:o,createMetadataHelper:l,createParamHelper:f,createESDecorateHelper:O,createRunInitializersHelper:N,createAssignHelper:B,createAwaitHelper:U,createAsyncGeneratorHelper:V,createAsyncDelegatorHelper:re,createAsyncValuesHelper:z,createRestHelper:ce,createAwaiterHelper:R,createExtendsHelper:le,createTemplateObjectHelper:ae,createSpreadArrayHelper:ye,createPropKeyHelper:$,createSetFunctionNameHelper:ee,createValuesHelper:te,createReadHelper:me,createGeneratorHelper:ve,createCreateBindingHelper:we,createImportStarHelper:K,createImportStarCallbackHelper:Ze,createImportDefaultHelper:Re,createExportStarHelper:Fe,createClassPrivateFieldGetHelper:Ue,createClassPrivateFieldSetHelper:Ae,createClassPrivateFieldInHelper:Me};function s(He){return Ln(t.createIdentifier(He),8196)}function o(He,je,Pe,nt){e.requestEmitHelper(cR);const wt=[];return wt.push(t.createArrayLiteralExpression(He,!0)),wt.push(je),Pe&&(wt.push(Pe),nt&&wt.push(nt)),t.createCallExpression(s("__decorate"),void 0,wt)}function l(He,je){return e.requestEmitHelper(lR),t.createCallExpression(s("__metadata"),void 0,[t.createStringLiteral(He),je])}function f(He,je,Pe){return e.requestEmitHelper(uR),yt(t.createCallExpression(s("__param"),void 0,[t.createNumericLiteral(je+""),He]),Pe)}function _(He){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),He.name)])}function h(He){const je=He.computed?t.createElementAccessExpression(t.createIdentifier("obj"),He.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),He.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,je))}function m(He){const je=He.computed?t.createElementAccessExpression(t.createIdentifier("obj"),He.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),He.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(je,t.createIdentifier("value")))])))}function y(He){const je=He.computed?He.name:Be(He.name)?t.createStringLiteralFromNode(He.name):He.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(je,103,t.createIdentifier("obj"))))}function T(He,je){const Pe=[];return Pe.push(y(He)),je.get&&Pe.push(h(He)),je.set&&Pe.push(m(He)),t.createObjectLiteralExpression(Pe)}function k(He){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(He.kind)),t.createPropertyAssignment(t.createIdentifier("name"),He.name.computed?He.name.name:t.createStringLiteralFromNode(He.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),He.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),He.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),T(He.name,He.access))])}function E(He){return He.kind==="class"?_(He):k(He)}function O(He,je,Pe,nt,wt,xt){return e.requestEmitHelper(_R),t.createCallExpression(s("__esDecorate"),void 0,[He!=null?He:t.createNull(),je!=null?je:t.createNull(),Pe,E(nt),wt,xt])}function N(He,je,Pe){return e.requestEmitHelper(fR),t.createCallExpression(s("__runInitializers"),void 0,Pe?[He,je,Pe]:[He,je])}function B(He){return gc(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,He):(e.requestEmitHelper(pR),t.createCallExpression(s("__assign"),void 0,He))}function U(He){return e.requestEmitHelper(SS),t.createCallExpression(s("__await"),void 0,[He])}function V(He,je){return e.requestEmitHelper(SS),e.requestEmitHelper(dR),(He.emitNode||(He.emitNode={})).flags|=1572864,t.createCallExpression(s("__asyncGenerator"),void 0,[je?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),He])}function re(He){return e.requestEmitHelper(SS),e.requestEmitHelper(mR),t.createCallExpression(s("__asyncDelegator"),void 0,[He])}function z(He){return e.requestEmitHelper(gR),t.createCallExpression(s("__asyncValues"),void 0,[He])}function ce(He,je,Pe,nt){e.requestEmitHelper(hR);const wt=[];let xt=0;for(let Zt=0;Zt{let i="";for(let s=0;se.name))}function I9(e,t){return go(e)&&Be(e.expression)&&(_c(e.expression)&8192)!==0&&e.expression.escapedText===t}var wG,cR,lR,uR,_R,fR,pR,SS,dR,mR,gR,hR,yR,vR,bR,xR,TR,SR,kR,CR,wR,Sk,ER,KN,AR,DR,NR,IR,PR,Bfe,eI,tI,fEe=or({"src/compiler/factory/emitHelpers.ts"(){"use strict";ho(),wG=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(wG||{}),cR={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - };`},lR={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - };`},uR={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - };`},_R={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` - var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) context.access[p] = contextIn.access[p]; - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) continue; - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_ = accept(result.get)) descriptor.get = _; - if (_ = accept(result.set)) descriptor.set = _; - if (_ = accept(result.init)) initializers.unshift(_); - } - else if (_ = accept(result)) { - if (kind === "field") initializers.unshift(_); - else descriptor[key] = _; - } - } - if (target) Object.defineProperty(target, contextIn.name, descriptor); - done = true; - };`},fR={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` - var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; - };`},pR={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); - };`},SS={name:"typescript:await",importName:"__await",scoped:!1,text:` - var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},dR={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[SS],text:` - var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - };`},mR={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[SS],text:` - var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } - };`},gR={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` - var __asyncValues = (this && this.__asyncValues) || function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - };`},hR={name:"typescript:rest",importName:"__rest",scoped:!1,text:` - var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - };`},yR={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` - var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - };`},vR={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` - var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - })();`},bR={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` - var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - };`},xR={name:"typescript:read",importName:"__read",scoped:!1,text:` - var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - };`},TR={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` - var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - };`},SR={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` - var __propKey = (this && this.__propKey) || function (x) { - return typeof x === "symbol" ? x : "".concat(x); - };`},kR={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` - var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); - };`},CR={name:"typescript:values",importName:"__values",scoped:!1,text:` - var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - };`},wR={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` - var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - };`},Sk={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` - var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }));`},ER={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` - var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - });`},KN={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[Sk,ER],priority:2,text:` - var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; - };`},AR={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` - var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - };`},DR={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[Sk],priority:2,text:` - var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); - };`},NR={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` - var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - };`},IR={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` - var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - };`},PR={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` - var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); - };`},eI={name:"typescript:async-super",scoped:!0,text:kG` - const ${"_superIndex"} = name => super[name];`},tI={name:"typescript:advanced-async-super",scoped:!0,text:kG` - const ${"_superIndex"} = (function (geti, seti) { - const cache = Object.create(null); - return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - })(name => super[name], (name, value) => super[name] = value);`}}});function Um(e){return e.kind===9}function OR(e){return e.kind===10}function sc(e){return e.kind===11}function kS(e){return e.kind===12}function EG(e){return e.kind===14}function CS(e){return e.kind===15}function kk(e){return e.kind===16}function jfe(e){return e.kind===17}function AG(e){return e.kind===18}function MR(e){return e.kind===26}function zfe(e){return e.kind===28}function DG(e){return e.kind===40}function NG(e){return e.kind===41}function rI(e){return e.kind===42}function nI(e){return e.kind===54}function yb(e){return e.kind===58}function Jfe(e){return e.kind===59}function LR(e){return e.kind===29}function Ufe(e){return e.kind===39}function Be(e){return e.kind===80}function Ea(e){return e.kind===81}function FR(e){return e.kind===95}function Vfe(e){return e.kind===90}function P9(e){return e.kind===134}function Wfe(e){return e.kind===131}function IG(e){return e.kind===135}function qfe(e){return e.kind===148}function wS(e){return e.kind===126}function $fe(e){return e.kind===128}function Hfe(e){return e.kind===163}function Gfe(e){return e.kind===129}function O9(e){return e.kind===108}function M9(e){return e.kind===102}function Xfe(e){return e.kind===84}function Od(e){return e.kind===165}function jc(e){return e.kind===166}function eu(e){return e.kind===167}function Cs(e){return e.kind===168}function lp(e){return e.kind===169}function Vm(e){return e.kind===170}function fo(e){return e.kind===171}function ly(e){return e.kind===172}function g_(e){return e.kind===173}function fu(e){return e.kind===174}function Uu(e){return e.kind===175}function sg(e){return e.kind===176}function u0(e){return e.kind===177}function Ck(e){return e.kind===178}function iI(e){return e.kind===179}function x7(e){return e.kind===180}function RR(e){return e.kind===181}function Rg(e){return e.kind===182}function uy(e){return e.kind===183}function L9(e){return e.kind===184}function F9(e){return e.kind===185}function Sm(e){return e.kind===186}function PG(e){return e.kind===187}function wk(e){return e.kind===188}function R9(e){return e.kind===201}function OG(e){return e.kind===189}function MG(e){return e.kind===190}function ES(e){return e.kind===191}function aI(e){return e.kind===192}function Ek(e){return e.kind===193}function AS(e){return e.kind===194}function DS(e){return e.kind===195}function BR(e){return e.kind===196}function NS(e){return e.kind===197}function IS(e){return e.kind===198}function B9(e){return e.kind===199}function R4(e){return e.kind===200}function Qy(e){return e.kind===204}function Zfe(e){return e.kind===203}function pEe(e){return e.kind===202}function Bg(e){return e.kind===205}function PS(e){return e.kind===206}function Cc(e){return e.kind===207}function Op(e){return e.kind===208}function Dc(e){return e.kind===209}function mi(e){return e.kind===210}function Ll(e){return e.kind===211}function go(e){return e.kind===212}function v3(e){return e.kind===213}function T7(e){return e.kind===214}function Yfe(e){return e.kind===215}function Md(e){return e.kind===216}function _l(e){return e.kind===217}function Fl(e){return e.kind===218}function Qfe(e){return e.kind===219}function Ak(e){return e.kind===220}function OS(e){return e.kind===221}function Dk(e){return e.kind===222}function B4(e){return e.kind===223}function LG(e){return e.kind===224}function Un(e){return e.kind===225}function Nk(e){return e.kind===226}function jR(e){return e.kind===227}function zR(e){return e.kind===228}function gh(e){return e.kind===229}function Mp(e){return e.kind===230}function sf(e){return e.kind===231}function t2(e){return e.kind===232}function sI(e){return e.kind===233}function dEe(e){return e.kind===237}function MS(e){return e.kind===234}function j9(e){return e.kind===235}function mEe(e){return e.kind===236}function JR(e){return e.kind===359}function z9(e){return e.kind===360}function J9(e){return e.kind===238}function Kfe(e){return e.kind===239}function oo(e){return e.kind===240}function S_(e){return e.kind===242}function FG(e){return e.kind===241}function $f(e){return e.kind===243}function S7(e){return e.kind===244}function gEe(e){return e.kind===245}function hEe(e){return e.kind===246}function k7(e){return e.kind===247}function RG(e){return e.kind===248}function oI(e){return e.kind===249}function yEe(e){return e.kind===250}function vEe(e){return e.kind===251}function jg(e){return e.kind===252}function epe(e){return e.kind===253}function cI(e){return e.kind===254}function b3(e){return e.kind===255}function BG(e){return e.kind===256}function lI(e){return e.kind===257}function bEe(e){return e.kind===258}function Fa(e){return e.kind===259}function of(e){return e.kind===260}function B_(e){return e.kind===261}function cf(e){return e.kind===262}function Lp(e){return e.kind===263}function zg(e){return e.kind===264}function j4(e){return e.kind===265}function Vu(e){return e.kind===266}function C1(e){return e.kind===267}function U9(e){return e.kind===268}function uI(e){return e.kind===269}function Hf(e){return e.kind===270}function Tf(e){return e.kind===271}function hh(e){return e.kind===272}function tpe(e){return e.kind===301}function UR(e){return e.kind===299}function rpe(e){return e.kind===300}function vb(e){return e.kind===273}function _y(e){return e.kind===279}function r2(e){return e.kind===274}function Ld(e){return e.kind===275}function Wu(e){return e.kind===276}function Sf(e){return e.kind===277}function og(e){return e.kind===278}function dd(e){return e.kind===280}function xEe(e){return e.kind===281}function jG(e){return e.kind===358}function LS(e){return e.kind===361}function yh(e){return e.kind===282}function fy(e){return e.kind===283}function C7(e){return e.kind===284}function w1(e){return e.kind===285}function x3(e){return e.kind===286}function T3(e){return e.kind===287}function FS(e){return e.kind===288}function npe(e){return e.kind===289}function E1(e){return e.kind===290}function S3(e){return e.kind===291}function RS(e){return e.kind===292}function V9(e){return e.kind===293}function A1(e){return e.kind===294}function W9(e){return e.kind===295}function _I(e){return e.kind===296}function Kd(e){return e.kind===297}function Ik(e){return e.kind===298}function Y_(e){return e.kind===302}function _0(e){return e.kind===303}function k3(e){return e.kind===304}function C3(e){return e.kind===305}function ipe(e){return e.kind===307}function Ja(e){return e.kind===311}function zG(e){return e.kind===312}function w7(e){return e.kind===313}function E7(e){return e.kind===315}function q9(e){return e.kind===316}function z4(e){return e.kind===317}function ape(e){return e.kind===330}function spe(e){return e.kind===331}function TEe(e){return e.kind===332}function ope(e){return e.kind===318}function cpe(e){return e.kind===319}function Pk(e){return e.kind===320}function VR(e){return e.kind===321}function JG(e){return e.kind===322}function Ok(e){return e.kind===323}function WR(e){return e.kind===324}function SEe(e){return e.kind===325}function cg(e){return e.kind===326}function Mk(e){return e.kind===328}function J4(e){return e.kind===329}function Lk(e){return e.kind===334}function kEe(e){return e.kind===336}function lpe(e){return e.kind===338}function UG(e){return e.kind===344}function VG(e){return e.kind===339}function WG(e){return e.kind===340}function qG(e){return e.kind===341}function $G(e){return e.kind===342}function qR(e){return e.kind===343}function $9(e){return e.kind===345}function HG(e){return e.kind===337}function CEe(e){return e.kind===353}function fI(e){return e.kind===346}function Jg(e){return e.kind===347}function $R(e){return e.kind===348}function upe(e){return e.kind===349}function H9(e){return e.kind===350}function Ug(e){return e.kind===351}function pI(e){return e.kind===352}function wEe(e){return e.kind===333}function _pe(e){return e.kind===354}function GG(e){return e.kind===335}function HR(e){return e.kind===356}function EEe(e){return e.kind===355}function Fk(e){return e.kind===357}var AEe=or({"src/compiler/factory/nodeTests.ts"(){"use strict";ho()}});function dI(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function A7(e,t,n,i){if(jc(n))return yt(e.createElementAccessExpression(t,n.expression),i);{const s=yt(Uy(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return dh(s,128),s}}function XG(e,t){const n=vh.createIdentifier(e||"React");return fc(n,gs(t)),n}function ZG(e,t,n){if(Od(t)){const i=ZG(e,t.left,n),s=e.createIdentifier(ri(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return XG(ri(t),n)}function YG(e,t,n,i){return t?ZG(e,t,i):e.createPropertyAccessExpression(XG(n,i),"createElement")}function DEe(e,t,n,i){return t?ZG(e,t,i):e.createPropertyAccessExpression(XG(n,i),"Fragment")}function fpe(e,t,n,i,s,o){const l=[n];if(i&&l.push(i),s&&s.length>0)if(i||l.push(e.createNull()),s.length>1)for(const f of s)Fp(f),l.push(f);else l.push(s[0]);return yt(e.createCallExpression(t,void 0,l),o)}function ppe(e,t,n,i,s,o,l){const _=[DEe(e,n,i,o),e.createNull()];if(s&&s.length>0)if(s.length>1)for(const h of s)Fp(h),_.push(h);else _.push(s[0]);return yt(e.createCallExpression(YG(e,t,i,o),void 0,_),l)}function QG(e,t,n){if(of(t)){const i=Fi(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,n);return yt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{const i=yt(e.createAssignment(t,n),t);return yt(e.createExpressionStatement(i),t)}}function NEe(e,t,n){return oo(t)?e.updateBlock(t,yt(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function mI(e,t){if(Od(t)){const n=mI(e,t.left),i=fc(yt(e.cloneNode(t.right),t.right),t.right.parent);return yt(e.createPropertyAccessExpression(n,i),t)}else return fc(yt(e.cloneNode(t),t),t.parent)}function KG(e,t){return Be(t)?e.createStringLiteralFromNode(t):jc(t)?fc(yt(e.cloneNode(t.expression),t.expression),t.expression.parent):fc(yt(e.cloneNode(t),t),t.parent)}function IEe(e,t,n,i,s){const{firstAccessor:o,getAccessor:l,setAccessor:f}=d7(t,n);if(n===o)return yt(e.createObjectDefinePropertyCall(i,KG(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&yt(yi(e.createFunctionExpression(Kx(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:f&&yt(yi(e.createFunctionExpression(Kx(f),void 0,void 0,void 0,f.parameters,void 0,f.body),f),f)},!s)),o)}function PEe(e,t,n){return yi(yt(e.createAssignment(A7(e,n,t.name,t.name),t.initializer),t),t)}function OEe(e,t,n){return yi(yt(e.createAssignment(A7(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}function MEe(e,t,n){return yi(yt(e.createAssignment(A7(e,n,t.name,t.name),yi(yt(e.createFunctionExpression(Kx(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function dpe(e,t,n,i){switch(n.name&&Ea(n.name)&&D.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 176:case 177:return IEe(e,t.properties,n,i,!!t.multiLine);case 302:return PEe(e,n,i);case 303:return OEe(e,n,i);case 173:return MEe(e,n,i)}}function GR(e,t,n,i,s){const o=t.operator;D.assert(o===46||o===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const l=e.createTempVariable(i);n=e.createAssignment(l,n),yt(n,t.operand);let f=B4(t)?e.createPrefixUnaryExpression(o,l):e.createPostfixUnaryExpression(l,o);return yt(f,t),s&&(f=e.createAssignment(s,f),yt(f,t)),n=e.createComma(n,f),yt(n,t),LG(t)&&(n=e.createComma(n,l),yt(n,t)),n}function eX(e){return(_c(e)&65536)!==0}function n2(e){return(_c(e)&32768)!==0}function XR(e){return(_c(e)&16384)!==0}function mpe(e){return sc(e.expression)&&e.expression.text==="use strict"}function tX(e){for(const t of e)if(eg(t)){if(mpe(t))return t}else break}function gpe(e){const t=Ji(e);return t!==void 0&&eg(t)&&mpe(t)}function gI(e){return e.kind===225&&e.operatorToken.kind===28}function G9(e){return gI(e)||z9(e)}function X9(e){return Md(e)&&jn(e)&&!!X6(e)}function ZR(e){const t=ib(e);return D.assertIsDefined(t),t}function YR(e,t=15){switch(e.kind){case 216:return t&16&&X9(e)?!1:(t&1)!==0;case 215:case 233:case 232:case 237:return(t&2)!==0;case 234:return(t&4)!==0;case 359:return(t&8)!==0}return!1}function Gf(e,t=15){for(;YR(e,t);)e=e.expression;return e}function hpe(e,t=15){let n=e.parent;for(;YR(n,t);)n=n.parent,D.assert(n);return n}function LEe(e){return Gf(e,6)}function Fp(e){return bG(e,!0)}function hI(e){const t=au(e,Ja),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function ype(e){const t=au(e,Ja),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function rX(e,t,n,i,s,o,l){if(i.importHelpers&&rS(n,i)){let f;const _=Ff(i);if(_>=5&&_<=99||n.impliedNodeFormat===99){const h=oR(n);if(h){const m=[];for(const y of h)if(!y.scoped){const T=y.importName;T&&kr(m,T)}if(bt(m)){m.sort(tn),f=e.createNamedImports(er(m,k=>JL(n,k)?e.createImportSpecifier(!1,void 0,e.createIdentifier(k)):e.createImportSpecifier(!1,e.createIdentifier(k),t.getUnscopedHelperName(k))));const y=au(n,Ja),T=Gp(y);T.externalHelpers=!0}}}else{const h=vpe(e,n,i,s,o||l);h&&(f=e.createNamespaceImport(h))}if(f){const h=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,f),e.createStringLiteral(hb),void 0);return bS(h,2),h}}}function vpe(e,t,n,i,s){if(n.importHelpers&&rS(t,n)){const o=hI(t);if(o)return o;const l=Ff(n);let f=(i||fh(n)&&s)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!f){const _=oR(t);if(_){for(const h of _)if(!h.scoped){f=!0;break}}}if(f){const _=au(t,Ja),h=Gp(_);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(hb))}}}function Rk(e,t,n){const i=K5(t);if(i&&!sS(t)&&!VL(t)){const s=i.name;return uu(s)?s:e.createIdentifier(e3(n,s)||ri(s))}if(t.kind===271&&t.importClause||t.kind===277&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function BS(e,t,n,i,s,o){const l=Q5(t);if(l&&sc(l))return REe(t,i,e,s,o)||FEe(e,l,n)||e.cloneNode(l)}function FEe(e,t,n){const i=n.renamedDependencies&&n.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function yI(e,t,n,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ml(i))return e.createStringLiteral(Q$(n,t.fileName))}}function REe(e,t,n,i,s){return yI(n,i.getExternalModuleFileFromDeclaration(e),t,s)}function vI(e){if(ED(e))return e.initializer;if(Y_(e)){const t=e.initializer;return Hp(t,!0)?t.right:void 0}if(_0(e))return e.objectAssignmentInitializer;if(Hp(e,!0))return e.right;if(gh(e))return vI(e.expression)}function bb(e){if(ED(e))return e.name;if(qv(e)){switch(e.kind){case 302:return bb(e.initializer);case 303:return e.name;case 304:return bb(e.expression)}return}return Hp(e,!0)?bb(e.left):gh(e)?bb(e.expression):e}function QR(e){switch(e.kind){case 168:case 207:return e.dotDotDotToken;case 229:case 304:return e}}function nX(e){const t=KR(e);return D.assert(!!t||k3(e),"Invalid property name for binding element."),t}function KR(e){switch(e.kind){case 207:if(e.propertyName){const n=e.propertyName;return Ea(n)?D.failBadSyntaxKind(n):jc(n)&&bpe(n.expression)?n.expression:n}break;case 302:if(e.name){const n=e.name;return Ea(n)?D.failBadSyntaxKind(n):jc(n)&&bpe(n.expression)?n.expression:n}break;case 304:return e.name&&Ea(e.name)?D.failBadSyntaxKind(e.name):e.name}const t=bb(e);if(t&&_u(t))return t}function bpe(e){const t=e.kind;return t===11||t===9}function Bk(e){switch(e.kind){case 205:case 206:case 208:return e.elements;case 209:return e.properties}}function iX(e){if(e){let t=e;for(;;){if(Be(t)||!t.body)return Be(t)?t:t.name;t=t.body}}}function BEe(e){const t=e.kind;return t===175||t===177}function xpe(e){const t=e.kind;return t===175||t===176||t===177}function aX(e){const t=e.kind;return t===302||t===303||t===261||t===175||t===180||t===174||t===281||t===242||t===263||t===264||t===265||t===266||t===270||t===271||t===269||t===277||t===276}function Tpe(e){const t=e.kind;return t===174||t===302||t===303||t===281||t===269}function Spe(e){return yb(e)||nI(e)}function kpe(e){return Be(e)||BR(e)}function Cpe(e){return qfe(e)||DG(e)||NG(e)}function wpe(e){return yb(e)||DG(e)||NG(e)}function Epe(e){return Be(e)||sc(e)}function jEe(e){const t=e.kind;return t===106||t===112||t===97||t7(e)||B4(e)}function zEe(e){return e===43}function JEe(e){return e===42||e===44||e===45}function UEe(e){return zEe(e)||JEe(e)}function VEe(e){return e===40||e===41}function WEe(e){return VEe(e)||UEe(e)}function qEe(e){return e===48||e===49||e===50}function $Ee(e){return qEe(e)||WEe(e)}function HEe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function GEe(e){return HEe(e)||$Ee(e)}function XEe(e){return e===35||e===37||e===36||e===38}function ZEe(e){return XEe(e)||GEe(e)}function YEe(e){return e===51||e===52||e===53}function QEe(e){return YEe(e)||ZEe(e)}function KEe(e){return e===56||e===57}function eAe(e){return KEe(e)||QEe(e)}function tAe(e){return e===61||eAe(e)||Xv(e)}function rAe(e){return tAe(e)||e===28}function Ape(e){return rAe(e.kind)}function eB(e,t,n,i,s,o){const l=new Mpe(e,t,n,i,s,o);return f;function f(_,h){const m={value:void 0},y=[nB.enter],T=[_],k=[void 0];let E=0;for(;y[E]!==nB.done;)E=y[E](l,E,y,T,k,m,h);return D.assertEqual(E,0),m.value}}function Dpe(e){return e===95||e===90}function bI(e){const t=e.kind;return Dpe(t)}function nAe(e){const t=e.kind;return Wv(t)&&!Dpe(t)}function Npe(e,t){if(t!==void 0)return t.length===0?t:yt(e.createNodeArray([],t.hasTrailingComma),t)}function tB(e){var t;const n=e.emitNode.autoGenerate;if(n.flags&4){const i=n.id;let s=e,o=s.original;for(;o;){s=o;const l=(t=s.emitNode)==null?void 0:t.autoGenerate;if(Uy(s)&&(l===void 0||l.flags&4&&l.id!==i))break;o=s.original}return s}return e}function jk(e,t){return typeof e=="object"?D7(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function iAe(e,t){return typeof e=="string"?e:aAe(e,D.checkDefined(t))}function aAe(e,t){return QT(e)?t(e).slice(1):uu(e)?t(e):Ea(e)?e.escapedText.slice(1):ri(e)}function D7(e,t,n,i,s){return t=jk(t,s),i=jk(i,s),n=iAe(n,s),`${e?"#":""}${t}${n}${i}`}function sX(e,t,n,i){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Ipe(e,t,n,i){return e.createGetAccessorDeclaration(n,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Ppe(e,t,n,i){return e.createSetAccessorDeclaration(n,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function rB(e){let t=e.expression;for(;;){if(t=Gf(t),z9(t)){t=fi(t.elements);continue}if(gI(t)){t=t.right;continue}if(Hp(t,!0)&&uu(t.left))return t;break}}function sAe(e){return Md(e)&&Ol(e)&&!e.emitNode}function xI(e,t){if(sAe(e))xI(e.expression,t);else if(gI(e))xI(e.left,t),xI(e.right,t);else if(z9(e))for(const n of e.elements)xI(n,t);else t.push(e)}function Ope(e){const t=[];return xI(e,t),t}function TI(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of Bk(e)){const n=bb(t);if(n&&Lw(n)&&(n.transformFlags&65536||n.transformFlags&128&&TI(n)))return!0}return!1}var nB,Mpe,oAe=or({"src/compiler/factory/utilities.ts"(){"use strict";ho(),(e=>{function t(m,y,T,k,E,O,N){const B=y>0?E[y-1]:void 0;return D.assertEqual(T[y],t),E[y]=m.onEnter(k[y],B,N),T[y]=f(m,t),y}e.enter=t;function n(m,y,T,k,E,O,N){D.assertEqual(T[y],n),D.assertIsDefined(m.onLeft),T[y]=f(m,n);const B=m.onLeft(k[y].left,E[y],k[y]);return B?(h(y,k,B),_(y,T,k,E,B)):y}e.left=n;function i(m,y,T,k,E,O,N){return D.assertEqual(T[y],i),D.assertIsDefined(m.onOperator),T[y]=f(m,i),m.onOperator(k[y].operatorToken,E[y],k[y]),y}e.operator=i;function s(m,y,T,k,E,O,N){D.assertEqual(T[y],s),D.assertIsDefined(m.onRight),T[y]=f(m,s);const B=m.onRight(k[y].right,E[y],k[y]);return B?(h(y,k,B),_(y,T,k,E,B)):y}e.right=s;function o(m,y,T,k,E,O,N){D.assertEqual(T[y],o),T[y]=f(m,o);const B=m.onExit(k[y],E[y]);if(y>0){if(y--,m.foldState){const U=T[y]===o?"right":"left";E[y]=m.foldState(E[y],B,U)}}else O.value=B;return y}e.exit=o;function l(m,y,T,k,E,O,N){return D.assertEqual(T[y],l),y}e.done=l;function f(m,y){switch(y){case t:if(m.onLeft)return n;case n:if(m.onOperator)return i;case i:if(m.onRight)return s;case s:return o;case o:return l;case l:return l;default:D.fail("Invalid state")}}e.nextState=f;function _(m,y,T,k,E){return m++,y[m]=t,T[m]=E,k[m]=void 0,m}function h(m,y,T){if(D.shouldAssert(2))for(;m>=0;)D.assert(y[m]!==T,"Circular traversal detected."),m--}})(nB||(nB={})),Mpe=class{constructor(e,t,n,i,s,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=i,this.onExit=s,this.foldState=o}}}});function yt(e,t){return t?ph(e,t.pos,t.end):e}function lg(e){const t=e.kind;return t===167||t===168||t===170||t===171||t===172||t===173||t===175||t===176||t===177||t===180||t===184||t===217||t===218||t===230||t===242||t===261||t===262||t===263||t===264||t===265||t===266||t===270||t===271||t===276||t===277}function jS(e){const t=e.kind;return t===168||t===171||t===173||t===176||t===177||t===230||t===262}var cAe=or({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";ho()}});function _r(e,t){return t&&e(t)}function ha(e,t,n){if(n){if(t)return t(n);for(const i of n){const s=e(i);if(s)return s}}}function oX(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function SI(e){return Vt(e.statements,lAe)||uAe(e)}function lAe(e){return lg(e)&&_Ae(e,95)||Hf(e)&&yh(e.moduleReference)||Tf(e)||Wu(e)||Sf(e)?e:void 0}function uAe(e){return e.flags&4194304?Lpe(e):void 0}function Lpe(e){return fAe(e)?e:js(e,Lpe)}function _Ae(e,t){return bt(e.modifiers,n=>n.kind===t)}function fAe(e){return j9(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Fpe(e,t,n){return ha(t,n,e.typeParameters)||ha(t,n,e.parameters)||_r(t,e.type)}function Rpe(e,t,n){return ha(t,n,e.types)}function Bpe(e,t,n){return _r(t,e.type)}function jpe(e,t,n){return ha(t,n,e.elements)}function zpe(e,t,n){return _r(t,e.expression)||_r(t,e.questionDotToken)||ha(t,n,e.typeArguments)||ha(t,n,e.arguments)}function Jpe(e,t,n){return ha(t,n,e.statements)}function Upe(e,t,n){return _r(t,e.label)}function Vpe(e,t,n){return ha(t,n,e.modifiers)||_r(t,e.name)||ha(t,n,e.typeParameters)||ha(t,n,e.heritageClauses)||ha(t,n,e.members)}function Wpe(e,t,n){return ha(t,n,e.elements)}function qpe(e,t,n){return _r(t,e.propertyName)||_r(t,e.name)}function $pe(e,t,n){return _r(t,e.tagName)||ha(t,n,e.typeArguments)||_r(t,e.attributes)}function zk(e,t,n){return _r(t,e.type)}function Hpe(e,t,n){return _r(t,e.tagName)||(e.isNameFirst?_r(t,e.name)||_r(t,e.typeExpression):_r(t,e.typeExpression)||_r(t,e.name))||(typeof e.comment=="string"?void 0:ha(t,n,e.comment))}function Jk(e,t,n){return _r(t,e.tagName)||_r(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ha(t,n,e.comment))}function cX(e,t,n){return _r(t,e.name)}function zS(e,t,n){return _r(t,e.tagName)||(typeof e.comment=="string"?void 0:ha(t,n,e.comment))}function pAe(e,t,n){return _r(t,e.expression)}function js(e,t,n){if(e===void 0||e.kind<=164)return;const i=nde[e.kind];return i===void 0?void 0:i(e,t,n)}function Z9(e,t,n){const i=Gpe(e),s=[];for(;s.length=0;--f)i.push(o[f]),s.push(l)}else{const f=t(o,l);if(f){if(f==="skip")continue;return f}if(o.kind>=165)for(const _ of Gpe(o))i.push(_),s.push(o)}}}function Gpe(e){const t=[];return js(e,n,n),t;function n(i){t.unshift(i)}}function Xpe(e){e.externalModuleIndicator=SI(e)}function kI(e,t,n,i=!1,s){var o,l,f,_;(o=Hi)==null||o.push(Hi.Phase.Parse,"createSourceFile",{path:e},!0),Kc("beforeParse");let h;(l=jm)==null||l.logStartParseSourceFile(e);const{languageVersion:m,setExternalModuleIndicator:y,impliedNodeFormat:T}=typeof n=="object"?n:{languageVersion:n};if(m===100)h=xb.parseSourceFile(e,t,m,void 0,i,6,Ho);else{const k=T===void 0?y:E=>(E.impliedNodeFormat=T,(y||Xpe)(E));h=xb.parseSourceFile(e,t,m,void 0,i,s,k)}return(f=jm)==null||f.logStopParseSourceFile(),Kc("afterParse"),I_("Parse","beforeParse","afterParse"),(_=Hi)==null||_.pop(),h}function JS(e,t){return xb.parseIsolatedEntityName(e,t)}function CI(e,t){return xb.parseJsonText(e,t)}function c_(e){return e.externalModuleIndicator!==void 0}function lX(e,t,n,i=!1){const s=iB.updateSourceFile(e,t,n,i);return s.flags|=e.flags&6291456,s}function Zpe(e,t,n){const i=xb.JSDocParser.parseIsolatedJSDocComment(e,t,n);return i&&i.jsDoc&&xb.fixupParentReferences(i.jsDoc),i}function dAe(e,t,n){return xb.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}function md(e){return Zl(e,tR)||Xl(e,".ts")&&Qo(H_(e),".d.")}function mAe(e,t,n,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,n-t,p.resolution_mode_should_be_either_require_or_import)}}function uX(e,t){const n=[];for(const i of Yh(t,0)||tt){const s=t.substring(i.pos,i.end);hAe(n,i,s)}e.pragmas=new Map;for(const i of n){if(e.pragmas.has(i.name)){const s=e.pragmas.get(i.name);s instanceof Array?s.push(i.args):e.pragmas.set(i.name,[s,i.args]);continue}e.pragmas.set(i.name,i.args)}}function _X(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,i)=>{switch(i){case"reference":{const s=e.referencedFiles,o=e.typeReferenceDirectives,l=e.libReferenceDirectives;Vt(pm(n),f=>{const{types:_,lib:h,path:m,["resolution-mode"]:y}=f.arguments;if(f.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(_){const T=mAe(y,_.pos,_.end,t);o.push(fa({pos:_.pos,end:_.end,fileName:_.value},T?{resolutionMode:T}:{}))}else h?l.push({pos:h.pos,end:h.end,fileName:h.value}):m?s.push({pos:m.pos,end:m.end,fileName:m.value}):t(f.range.pos,f.range.end-f.range.pos,p.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=er(pm(n),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(n instanceof Array)for(const s of n)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,p.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=n.arguments.name;break}case"ts-nocheck":case"ts-check":{Vt(pm(n),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:D.fail("Unhandled pragma kind")}})}function gAe(e){if(aB.has(e))return aB.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return aB.set(e,t),t}function hAe(e,t,n){const i=t.kind===2&&ide.exec(n);if(i){const o=i[1].toLowerCase(),l=gn[o];if(!l||!(l.kind&1))return;if(l.args){const f={};for(const _ of l.args){const m=gAe(_.name).exec(n);if(!m&&!_.optional)return;if(m){const y=m[2]||m[3];if(_.captureSpan){const T=t.pos+m.index+m[1].length+1;f[_.name]={value:y,pos:T,end:T+y.length}}else f[_.name]=y}}e.push({name:o,args:{arguments:f,range:t}})}else e.push({name:o,args:{arguments:{},range:t}});return}const s=t.kind===2&&ade.exec(n);if(s)return Ype(e,t,2,s);if(t.kind===3){const o=/@(\S+)(\s+.*)?$/gim;let l;for(;l=o.exec(n);)Ype(e,t,4,l)}}function Ype(e,t,n,i){if(!i)return;const s=i[1].toLowerCase(),o=gn[s];if(!o||!(o.kind&n))return;const l=i[2],f=yAe(o,l);f!=="fail"&&e.push({name:s,args:{arguments:f,range:t}})}function yAe(e,t){if(!t)return{};if(!e.args)return{};const n=g1(t).split(/\s+/),i={};for(let s=0;snew(rde||(rde=bf.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(ede||(ede=bf.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(tde||(tde=bf.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Kpe||(Kpe=bf.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Qpe||(Qpe=bf.getNodeConstructor()))(e,-1,-1)},vh=WN(1,fX),nde={[165]:function(t,n,i){return _r(n,t.left)||_r(n,t.right)},[167]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||_r(n,t.constraint)||_r(n,t.default)||_r(n,t.expression)},[303]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||_r(n,t.questionToken)||_r(n,t.exclamationToken)||_r(n,t.equalsToken)||_r(n,t.objectAssignmentInitializer)},[304]:function(t,n,i){return _r(n,t.expression)},[168]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.dotDotDotToken)||_r(n,t.name)||_r(n,t.questionToken)||_r(n,t.type)||_r(n,t.initializer)},[171]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||_r(n,t.questionToken)||_r(n,t.exclamationToken)||_r(n,t.type)||_r(n,t.initializer)},[170]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||_r(n,t.questionToken)||_r(n,t.type)||_r(n,t.initializer)},[302]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||_r(n,t.questionToken)||_r(n,t.exclamationToken)||_r(n,t.initializer)},[259]:function(t,n,i){return _r(n,t.name)||_r(n,t.exclamationToken)||_r(n,t.type)||_r(n,t.initializer)},[207]:function(t,n,i){return _r(n,t.dotDotDotToken)||_r(n,t.propertyName)||_r(n,t.name)||_r(n,t.initializer)},[180]:function(t,n,i){return ha(n,i,t.modifiers)||ha(n,i,t.typeParameters)||ha(n,i,t.parameters)||_r(n,t.type)},[184]:function(t,n,i){return ha(n,i,t.modifiers)||ha(n,i,t.typeParameters)||ha(n,i,t.parameters)||_r(n,t.type)},[183]:function(t,n,i){return ha(n,i,t.modifiers)||ha(n,i,t.typeParameters)||ha(n,i,t.parameters)||_r(n,t.type)},[178]:Fpe,[179]:Fpe,[173]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.asteriskToken)||_r(n,t.name)||_r(n,t.questionToken)||_r(n,t.exclamationToken)||ha(n,i,t.typeParameters)||ha(n,i,t.parameters)||_r(n,t.type)||_r(n,t.body)},[172]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||_r(n,t.questionToken)||ha(n,i,t.typeParameters)||ha(n,i,t.parameters)||_r(n,t.type)},[175]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||ha(n,i,t.typeParameters)||ha(n,i,t.parameters)||_r(n,t.type)||_r(n,t.body)},[176]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||ha(n,i,t.typeParameters)||ha(n,i,t.parameters)||_r(n,t.type)||_r(n,t.body)},[177]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||ha(n,i,t.typeParameters)||ha(n,i,t.parameters)||_r(n,t.type)||_r(n,t.body)},[261]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.asteriskToken)||_r(n,t.name)||ha(n,i,t.typeParameters)||ha(n,i,t.parameters)||_r(n,t.type)||_r(n,t.body)},[217]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.asteriskToken)||_r(n,t.name)||ha(n,i,t.typeParameters)||ha(n,i,t.parameters)||_r(n,t.type)||_r(n,t.body)},[218]:function(t,n,i){return ha(n,i,t.modifiers)||ha(n,i,t.typeParameters)||ha(n,i,t.parameters)||_r(n,t.type)||_r(n,t.equalsGreaterThanToken)||_r(n,t.body)},[174]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.body)},[182]:function(t,n,i){return _r(n,t.typeName)||ha(n,i,t.typeArguments)},[181]:function(t,n,i){return _r(n,t.assertsModifier)||_r(n,t.parameterName)||_r(n,t.type)},[185]:function(t,n,i){return _r(n,t.exprName)||ha(n,i,t.typeArguments)},[186]:function(t,n,i){return ha(n,i,t.members)},[187]:function(t,n,i){return _r(n,t.elementType)},[188]:function(t,n,i){return ha(n,i,t.elements)},[191]:Rpe,[192]:Rpe,[193]:function(t,n,i){return _r(n,t.checkType)||_r(n,t.extendsType)||_r(n,t.trueType)||_r(n,t.falseType)},[194]:function(t,n,i){return _r(n,t.typeParameter)},[204]:function(t,n,i){return _r(n,t.argument)||_r(n,t.assertions)||_r(n,t.qualifier)||ha(n,i,t.typeArguments)},[301]:function(t,n,i){return _r(n,t.assertClause)},[195]:Bpe,[197]:Bpe,[198]:function(t,n,i){return _r(n,t.objectType)||_r(n,t.indexType)},[199]:function(t,n,i){return _r(n,t.readonlyToken)||_r(n,t.typeParameter)||_r(n,t.nameType)||_r(n,t.questionToken)||_r(n,t.type)||ha(n,i,t.members)},[200]:function(t,n,i){return _r(n,t.literal)},[201]:function(t,n,i){return _r(n,t.dotDotDotToken)||_r(n,t.name)||_r(n,t.questionToken)||_r(n,t.type)},[205]:jpe,[206]:jpe,[208]:function(t,n,i){return ha(n,i,t.elements)},[209]:function(t,n,i){return ha(n,i,t.properties)},[210]:function(t,n,i){return _r(n,t.expression)||_r(n,t.questionDotToken)||_r(n,t.name)},[211]:function(t,n,i){return _r(n,t.expression)||_r(n,t.questionDotToken)||_r(n,t.argumentExpression)},[212]:zpe,[213]:zpe,[214]:function(t,n,i){return _r(n,t.tag)||_r(n,t.questionDotToken)||ha(n,i,t.typeArguments)||_r(n,t.template)},[215]:function(t,n,i){return _r(n,t.type)||_r(n,t.expression)},[216]:function(t,n,i){return _r(n,t.expression)},[219]:function(t,n,i){return _r(n,t.expression)},[220]:function(t,n,i){return _r(n,t.expression)},[221]:function(t,n,i){return _r(n,t.expression)},[223]:function(t,n,i){return _r(n,t.operand)},[228]:function(t,n,i){return _r(n,t.asteriskToken)||_r(n,t.expression)},[222]:function(t,n,i){return _r(n,t.expression)},[224]:function(t,n,i){return _r(n,t.operand)},[225]:function(t,n,i){return _r(n,t.left)||_r(n,t.operatorToken)||_r(n,t.right)},[233]:function(t,n,i){return _r(n,t.expression)||_r(n,t.type)},[234]:function(t,n,i){return _r(n,t.expression)},[237]:function(t,n,i){return _r(n,t.expression)||_r(n,t.type)},[235]:function(t,n,i){return _r(n,t.name)},[226]:function(t,n,i){return _r(n,t.condition)||_r(n,t.questionToken)||_r(n,t.whenTrue)||_r(n,t.colonToken)||_r(n,t.whenFalse)},[229]:function(t,n,i){return _r(n,t.expression)},[240]:Jpe,[267]:Jpe,[311]:function(t,n,i){return ha(n,i,t.statements)||_r(n,t.endOfFileToken)},[242]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.declarationList)},[260]:function(t,n,i){return ha(n,i,t.declarations)},[243]:function(t,n,i){return _r(n,t.expression)},[244]:function(t,n,i){return _r(n,t.expression)||_r(n,t.thenStatement)||_r(n,t.elseStatement)},[245]:function(t,n,i){return _r(n,t.statement)||_r(n,t.expression)},[246]:function(t,n,i){return _r(n,t.expression)||_r(n,t.statement)},[247]:function(t,n,i){return _r(n,t.initializer)||_r(n,t.condition)||_r(n,t.incrementor)||_r(n,t.statement)},[248]:function(t,n,i){return _r(n,t.initializer)||_r(n,t.expression)||_r(n,t.statement)},[249]:function(t,n,i){return _r(n,t.awaitModifier)||_r(n,t.initializer)||_r(n,t.expression)||_r(n,t.statement)},[250]:Upe,[251]:Upe,[252]:function(t,n,i){return _r(n,t.expression)},[253]:function(t,n,i){return _r(n,t.expression)||_r(n,t.statement)},[254]:function(t,n,i){return _r(n,t.expression)||_r(n,t.caseBlock)},[268]:function(t,n,i){return ha(n,i,t.clauses)},[295]:function(t,n,i){return _r(n,t.expression)||ha(n,i,t.statements)},[296]:function(t,n,i){return ha(n,i,t.statements)},[255]:function(t,n,i){return _r(n,t.label)||_r(n,t.statement)},[256]:function(t,n,i){return _r(n,t.expression)},[257]:function(t,n,i){return _r(n,t.tryBlock)||_r(n,t.catchClause)||_r(n,t.finallyBlock)},[298]:function(t,n,i){return _r(n,t.variableDeclaration)||_r(n,t.block)},[169]:function(t,n,i){return _r(n,t.expression)},[262]:Vpe,[230]:Vpe,[263]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||ha(n,i,t.typeParameters)||ha(n,i,t.heritageClauses)||ha(n,i,t.members)},[264]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||ha(n,i,t.typeParameters)||_r(n,t.type)},[265]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||ha(n,i,t.members)},[305]:function(t,n,i){return _r(n,t.name)||_r(n,t.initializer)},[266]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||_r(n,t.body)},[270]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)||_r(n,t.moduleReference)},[271]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.importClause)||_r(n,t.moduleSpecifier)||_r(n,t.assertClause)},[272]:function(t,n,i){return _r(n,t.name)||_r(n,t.namedBindings)},[299]:function(t,n,i){return ha(n,i,t.elements)},[300]:function(t,n,i){return _r(n,t.name)||_r(n,t.value)},[269]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.name)},[273]:function(t,n,i){return _r(n,t.name)},[279]:function(t,n,i){return _r(n,t.name)},[274]:Wpe,[278]:Wpe,[277]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.exportClause)||_r(n,t.moduleSpecifier)||_r(n,t.assertClause)},[275]:qpe,[280]:qpe,[276]:function(t,n,i){return ha(n,i,t.modifiers)||_r(n,t.expression)},[227]:function(t,n,i){return _r(n,t.head)||ha(n,i,t.templateSpans)},[238]:function(t,n,i){return _r(n,t.expression)||_r(n,t.literal)},[202]:function(t,n,i){return _r(n,t.head)||ha(n,i,t.templateSpans)},[203]:function(t,n,i){return _r(n,t.type)||_r(n,t.literal)},[166]:function(t,n,i){return _r(n,t.expression)},[297]:function(t,n,i){return ha(n,i,t.types)},[232]:function(t,n,i){return _r(n,t.expression)||ha(n,i,t.typeArguments)},[282]:function(t,n,i){return _r(n,t.expression)},[281]:function(t,n,i){return ha(n,i,t.modifiers)},[360]:function(t,n,i){return ha(n,i,t.elements)},[283]:function(t,n,i){return _r(n,t.openingElement)||ha(n,i,t.children)||_r(n,t.closingElement)},[287]:function(t,n,i){return _r(n,t.openingFragment)||ha(n,i,t.children)||_r(n,t.closingFragment)},[284]:$pe,[285]:$pe,[291]:function(t,n,i){return ha(n,i,t.properties)},[290]:function(t,n,i){return _r(n,t.name)||_r(n,t.initializer)},[292]:function(t,n,i){return _r(n,t.expression)},[293]:function(t,n,i){return _r(n,t.dotDotDotToken)||_r(n,t.expression)},[286]:function(t,n,i){return _r(n,t.tagName)},[294]:function(t,n,i){return _r(n,t.namespace)||_r(n,t.name)},[189]:zk,[190]:zk,[315]:zk,[321]:zk,[320]:zk,[322]:zk,[324]:zk,[323]:function(t,n,i){return ha(n,i,t.parameters)||_r(n,t.type)},[326]:function(t,n,i){return(typeof t.comment=="string"?void 0:ha(n,i,t.comment))||ha(n,i,t.tags)},[353]:function(t,n,i){return _r(n,t.tagName)||_r(n,t.name)||(typeof t.comment=="string"?void 0:ha(n,i,t.comment))},[316]:function(t,n,i){return _r(n,t.name)},[317]:function(t,n,i){return _r(n,t.left)||_r(n,t.right)},[347]:Hpe,[354]:Hpe,[336]:function(t,n,i){return _r(n,t.tagName)||(typeof t.comment=="string"?void 0:ha(n,i,t.comment))},[335]:function(t,n,i){return _r(n,t.tagName)||_r(n,t.class)||(typeof t.comment=="string"?void 0:ha(n,i,t.comment))},[334]:function(t,n,i){return _r(n,t.tagName)||_r(n,t.class)||(typeof t.comment=="string"?void 0:ha(n,i,t.comment))},[351]:function(t,n,i){return _r(n,t.tagName)||_r(n,t.constraint)||ha(n,i,t.typeParameters)||(typeof t.comment=="string"?void 0:ha(n,i,t.comment))},[352]:function(t,n,i){return _r(n,t.tagName)||(t.typeExpression&&t.typeExpression.kind===315?_r(n,t.typeExpression)||_r(n,t.fullName)||(typeof t.comment=="string"?void 0:ha(n,i,t.comment)):_r(n,t.fullName)||_r(n,t.typeExpression)||(typeof t.comment=="string"?void 0:ha(n,i,t.comment)))},[344]:function(t,n,i){return _r(n,t.tagName)||_r(n,t.fullName)||_r(n,t.typeExpression)||(typeof t.comment=="string"?void 0:ha(n,i,t.comment))},[348]:Jk,[350]:Jk,[349]:Jk,[346]:Jk,[356]:Jk,[355]:Jk,[345]:Jk,[329]:function(t,n,i){return Vt(t.typeParameters,n)||Vt(t.parameters,n)||_r(n,t.type)},[330]:cX,[331]:cX,[332]:cX,[328]:function(t,n,i){return Vt(t.jsDocPropertyTags,n)},[333]:zS,[338]:zS,[339]:zS,[340]:zS,[341]:zS,[342]:zS,[337]:zS,[343]:zS,[359]:pAe},(e=>{var t=Uv(99,!0),n=20480,i,s,o,l,f;function _(H){return Qe++,H}var h={createBaseSourceFileNode:H=>_(new f(H,0,0)),createBaseIdentifierNode:H=>_(new o(H,0,0)),createBasePrivateIdentifierNode:H=>_(new l(H,0,0)),createBaseTokenNode:H=>_(new s(H,0,0)),createBaseNode:H=>_(new i(H,0,0))},m=WN(11,h),{createNodeArray:y,createNumericLiteral:T,createStringLiteral:k,createLiteralLikeNode:E,createIdentifier:O,createPrivateIdentifier:N,createToken:B,createArrayLiteralExpression:U,createObjectLiteralExpression:V,createPropertyAccessExpression:re,createPropertyAccessChain:z,createElementAccessExpression:ce,createElementAccessChain:R,createCallExpression:le,createCallChain:ae,createNewExpression:ye,createParenthesizedExpression:$,createBlock:ee,createVariableStatement:te,createExpressionStatement:me,createIfStatement:ve,createWhileStatement:we,createForStatement:K,createForOfStatement:Ze,createVariableDeclaration:Re,createVariableDeclarationList:Fe}=m,Ue,Ae,Me,He,je,Pe,nt,wt,xt,Zt,Qe,Mt,yr,Cr,Lt,an,xn=!0,Lr=!1;function In(H,be,Ve,Dt,sr=!1,Fr,Si){var aa;if(Fr=WF(H,Fr),Fr===6){const sa=ia(H,be,Ve,Dt,sr);return DI(sa,(aa=sa.statements[0])==null?void 0:aa.expression,sa.parseDiagnostics,!1,void 0),sa.referencedFiles=tt,sa.typeReferenceDirectives=tt,sa.libReferenceDirectives=tt,sa.amdDependencies=tt,sa.hasNoDefaultLib=!1,sa.pragmas=JT,sa}Wa(H,be,Ve,Dt,Fr);const ba=Pt(Ve,sr,Fr,Si||Xpe);return bi(),ba}e.parseSourceFile=In;function vi(H,be){Wa("",H,be,void 0,1),st();const Ve=Hg(!0),Dt=q()===1&&!nt.length;return bi(),Dt?Ve:void 0}e.parseIsolatedEntityName=vi;function ia(H,be,Ve=2,Dt,sr=!1){Wa(H,be,Ve,Dt,6),Ae=an,st();const Fr=_e();let Si,aa;if(q()===1)Si=Hl([],Fr,Fr),aa=k_();else{let ys;for(;q()!==1;){let Oo;switch(q()){case 23:Oo=c6();break;case 112:case 97:case 106:Oo=k_();break;case 41:ti(()=>st()===9&&st()!==59)?Oo=gg():Oo=U0();break;case 9:case 11:if(ti(()=>st()!==59)){Oo=ts();break}default:Oo=U0();break}ys&&ns(ys)?ys.push(Oo):ys?ys=[ys,Oo]:(ys=Oo,q()!==1&&Jn(p.Unexpected_token))}const gl=ns(ys)?gr(U(ys),Fr):D.checkDefined(ys),Ic=me(gl);gr(Ic,Fr),Si=Hl([Ic],Fr),aa=ru(1,p.Unexpected_token)}const ba=ja(H,2,6,!1,Si,aa,Ae,Ho);sr&&Fn(ba),ba.nodeCount=Qe,ba.identifierCount=yr,ba.identifiers=Mt,ba.parseDiagnostics=hS(nt,ba),wt&&(ba.jsDocDiagnostics=hS(wt,ba));const sa=ba;return bi(),sa}e.parseJsonText=ia;function Wa(H,be,Ve,Dt,sr){switch(i=bf.getNodeConstructor(),s=bf.getTokenConstructor(),o=bf.getIdentifierConstructor(),l=bf.getPrivateIdentifierConstructor(),f=bf.getSourceFileConstructor(),Ue=ec(H),Me=be,He=Ve,xt=Dt,je=sr,Pe=wN(sr),nt=[],Cr=0,Mt=new Map,yr=0,Qe=0,Ae=0,xn=!0,je){case 1:case 2:an=262144;break;case 6:an=67371008;break;default:an=0;break}Lr=!1,t.setText(Me),t.setOnError(ue),t.setScriptTarget(He),t.setLanguageVariant(Pe)}function bi(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),Me=void 0,He=void 0,xt=void 0,je=void 0,Pe=void 0,Ae=0,nt=void 0,wt=void 0,Cr=0,Mt=void 0,Lt=void 0,xn=!0}function Pt(H,be,Ve,Dt){const sr=md(Ue);sr&&(an|=16777216),Ae=an,st();const Fr=ne(0,Dm);D.assert(q()===1);const Si=Qr(k_()),aa=ja(Ue,H,Ve,sr,Fr,Si,Ae,Dt);return uX(aa,Me),_X(aa,ba),aa.commentDirectives=t.getCommentDirectives(),aa.nodeCount=Qe,aa.identifierCount=yr,aa.identifiers=Mt,aa.parseDiagnostics=hS(nt,aa),wt&&(aa.jsDocDiagnostics=hS(wt,aa)),be&&Fn(aa),aa;function ba(sa,ys,gl){nt.push(pk(Ue,sa,ys,gl))}}function Ar(H,be){return be?Qr(H):H}let Yt=!1;function Qr(H){D.assert(!H.jsDoc);const be=Mr(S$(H,Me),Ve=>D8.parseJSDocComment(H,Ve.pos,Ve.end-Ve.pos));return be.length&&(H.jsDoc=be),Yt&&(Yt=!1,H.flags|=268435456),H}function $r(H){const be=xt,Ve=iB.createSyntaxCursor(H);xt={currentNode:ys};const Dt=[],sr=nt;nt=[];let Fr=0,Si=ba(H.statements,0);for(;Si!==-1;){const gl=H.statements[Fr],Ic=H.statements[Si];Et(Dt,H.statements,Fr,Si),Fr=sa(H.statements,Si);const Oo=zi(sr,W0=>W0.start>=gl.pos),Kf=Oo>=0?zi(sr,W0=>W0.start>=Ic.pos,Oo):-1;Oo>=0&&Et(nt,sr,Oo,Kf>=0?Kf:void 0),Ks(()=>{const W0=an;for(an|=32768,t.resetTokenState(Ic.pos),st();q()!==1;){const Yb=t.getTokenFullStart(),yg=_t(0,Dm);if(Dt.push(yg),Yb===t.getTokenFullStart()&&st(),Fr>=0){const Qb=H.statements[Fr];if(yg.end===Qb.pos)break;yg.end>Qb.pos&&(Fr=sa(H.statements,Fr+1))}}an=W0},2),Si=Fr>=0?ba(H.statements,Fr):-1}if(Fr>=0){const gl=H.statements[Fr];Et(Dt,H.statements,Fr);const Ic=zi(sr,Oo=>Oo.start>=gl.pos);Ic>=0&&Et(nt,sr,Ic)}return xt=be,m.updateSourceFile(H,yt(y(Dt),H.statements));function aa(gl){return!(gl.flags&32768)&&!!(gl.transformFlags&67108864)}function ba(gl,Ic){for(let Oo=Ic;Oo118}function pc(){return q()===80?!0:q()===127&&$t()||q()===135&&Yn()?!1:q()>118}function Yr(H,be,Ve=!0){return q()===H?(Ve&&st(),!0):(be?Jn(be):Jn(p._0_expected,Uo(H)),!1)}const os=Object.keys(bD).filter(H=>H.length>2);function Gs(H){var sr;if(T7(H)){ge(tc(Me,H.template.pos),H.template.end,p.Module_declaration_names_may_only_use_or_quoted_strings);return}const be=Be(H)?ri(H):void 0;if(!be||!r0(be,He)){Jn(p._0_expected,Uo(27));return}const Ve=tc(Me,H.pos);switch(be){case"const":case"let":case"var":ge(Ve,H.end,p.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Ua(p.Interface_name_cannot_be_0,p.Interface_must_be_given_a_name,19);return;case"is":ge(Ve,t.getTokenStart(),p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Ua(p.Namespace_name_cannot_be_0,p.Namespace_must_be_given_a_name,19);return;case"type":Ua(p.Type_alias_name_cannot_be_0,p.Type_alias_must_be_given_a_name,64);return}const Dt=(sr=ds(be,os,Fr=>Fr))!=null?sr:el(be);if(Dt){ge(Ve,H.end,p.Unknown_keyword_or_identifier_Did_you_mean_0,Dt);return}q()!==0&&ge(Ve,H.end,p.Unexpected_keyword_or_identifier)}function Ua(H,be,Ve){q()===Ve?Jn(be):Jn(H,t.getTokenValue())}function el(H){for(const be of os)if(H.length>be.length+2&&Ga(H,be))return`${be} ${H.slice(be.length)}`}function Wl(H,be,Ve){if(q()===60&&!t.hasPrecedingLineBreak()){Jn(p.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(q()===21){Jn(p.Cannot_start_a_function_call_in_a_type_annotation),st();return}if(be&&!fl()){Ve?Jn(p._0_expected,Uo(27)):Jn(p.Expected_for_property_initializer);return}if(!Nu()){if(Ve){Jn(p._0_expected,Uo(27));return}Gs(H)}}function du(H){return q()===H?(Ft(),!0):(D.assert(gF(H)),Jn(p._0_expected,Uo(H)),!1)}function uf(H,be,Ve,Dt){if(q()===be){st();return}const sr=Jn(p._0_expected,Uo(be));Ve&&sr&&ic(sr,pk(Ue,Dt,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Uo(H),Uo(be)))}function Ms(H){return q()===H?(st(),!0):!1}function qa(H){if(q()===H)return k_()}function h_(H){if(q()===H)return wf()}function ru(H,be,Ve){return qa(H)||r_(H,!1,be||p._0_expected,Ve||Uo(H))}function dp(H){const be=h_(H);return be||(D.assert(gF(H)),r_(H,!1,p._0_expected,Uo(H)))}function k_(){const H=_e(),be=q();return st(),gr(B(be),H)}function wf(){const H=_e(),be=q();return Ft(),gr(B(be),H)}function fl(){return q()===27?!0:q()===20||q()===1||t.hasPrecedingLineBreak()}function Nu(){return fl()?(q()===27&&st(),!0):!1}function Cl(){return Nu()||Yr(27)}function Hl(H,be,Ve,Dt){const sr=y(H,Dt);return ph(sr,be,Ve!=null?Ve:t.getTokenFullStart()),sr}function gr(H,be,Ve){return ph(H,be,Ve!=null?Ve:t.getTokenFullStart()),an&&(H.flags|=an),Lr&&(Lr=!1,H.flags|=131072),H}function r_(H,be,Ve,...Dt){be?w(t.getTokenFullStart(),0,Ve,...Dt):Ve&&Jn(Ve,...Dt);const sr=_e(),Fr=H===80?O("",void 0):sb(H)?m.createTemplateLiteralLikeNode(H,"","",void 0):H===9?T("",void 0):H===11?k("",void 0):H===281?m.createMissingDeclaration():B(H);return gr(Fr,sr)}function Zf(H){let be=Mt.get(H);return be===void 0&&Mt.set(H,be=H),be}function _f(H,be,Ve){if(H){yr++;const aa=_e(),ba=q(),sa=Zf(t.getTokenValue()),ys=t.hasExtendedUnicodeEscape();return rt(),gr(O(sa,ba,ys),aa)}if(q()===81)return Jn(Ve||p.Private_identifiers_are_not_allowed_outside_class_bodies),_f(!0);if(q()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return _f(!0);yr++;const Dt=q()===1,sr=t.isReservedWord(),Fr=t.getTokenText(),Si=sr?p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:p.Identifier_expected;return r_(80,Dt,be||Si,Fr)}function fe(H){return _f(al(),void 0,H)}function G(H,be){return _f(pc(),H,be)}function Le(H){return _f(Wp(q()),H)}function gt(){return Wp(q())||q()===11||q()===9}function Nt(){return Wp(q())||q()===11}function Rn(H){if(q()===11||q()===9){const be=ts();return be.text=Zf(be.text),be}return H&&q()===23?Di():q()===81?xi():Le()}function qn(){return Rn(!0)}function Di(){const H=_e();Yr(23);const be=Tt(gp);return Yr(24),gr(m.createComputedPropertyName(be),H)}function xi(){const H=_e(),be=N(Zf(t.getTokenValue()));return st(),gr(be,H)}function La(H){return q()===H&&Na(mu)}function Fs(){return st(),t.hasPrecedingLineBreak()?!1:gu()}function mu(){switch(q()){case 87:return st()===94;case 95:return st(),q()===90?ti(tl):q()===156?ti(Gc):Hc();case 90:return tl();case 126:case 139:case 153:return st(),gu();default:return Fs()}}function Hc(){return q()===60||q()!==42&&q()!==130&&q()!==19&&gu()}function Gc(){return st(),Hc()}function Ef(){return Wv(q())&&Na(mu)}function gu(){return q()===23||q()===19||q()===42||q()===26||gt()}function tl(){return st(),q()===86||q()===100||q()===120||q()===60||q()===128&&ti(om)||q()===134&&ti(nx)}function Lc(H,be){if(Qt(H))return!0;switch(H){case 0:case 1:case 3:return!(q()===27&&be)&&dv();case 2:return q()===84||q()===90;case 4:return ti(Z4);case 5:return ti(SC)||q()===27&&!be;case 6:return q()===23||gt();case 12:switch(q()){case 23:case 42:case 26:case 25:return!0;default:return gt()}case 18:return gt();case 9:return q()===23||q()===26||gt();case 24:return Nt();case 7:return q()===19?ti(Yp):be?pc()&&!Qp():vc()&&!Qp();case 8:return ix();case 10:return q()===28||q()===26||ix();case 19:return q()===103||q()===87||pc();case 15:switch(q()){case 28:case 25:return!0}case 11:return q()===26||jd();case 16:return Bn(!1);case 17:return Bn(!0);case 20:case 21:return q()===28||yy();case 22:return C2();case 23:return Wp(q());case 13:return Wp(q())||q()===19;case 14:return!0;case 25:return!0;case 26:return D.fail("ParsingContext.Count used as a context");default:D.assertNever(H,"Non-exhaustive case in 'isListElement'.")}}function Yp(){if(D.assert(q()===19),st()===20){const H=st();return H===28||H===19||H===96||H===119}return!0}function su(){return st(),pc()}function ff(){return st(),Wp(q())}function C_(){return st(),kce(q())}function Qp(){return q()===119||q()===96?ti(Ce):!1}function Ce(){return st(),jd()}function Gt(){return st(),yy()}function un(H){if(q()===1)return!0;switch(H){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return q()===20;case 3:return q()===20||q()===84||q()===90;case 7:return q()===19||q()===96||q()===119;case 8:return da();case 19:return q()===32||q()===21||q()===19||q()===96||q()===119;case 11:return q()===22||q()===27;case 15:case 21:case 10:return q()===24;case 17:case 16:case 18:return q()===22||q()===24;case 20:return q()!==28;case 22:return q()===19||q()===20;case 13:return q()===32||q()===44;case 14:return q()===30&&ti(Ud);default:return!1}}function da(){return!!(fl()||S8(q())||q()===39)}function Rs(){D.assert(Cr,"Missing parsing context");for(let H=0;H<26;H++)if(Cr&1<=0)}function Am(H){return H===6?p.An_enum_member_name_must_be_followed_by_a_or:void 0}function Kp(){const H=Hl([],_e());return H.isMissingList=!0,H}function nm(H){return!!H.isMissingList}function mp(H,be,Ve,Dt){if(Yr(Ve)){const sr=l_(H,be);return Yr(Dt),sr}return Kp()}function Hg(H,be){const Ve=_e();let Dt=H?Le(be):G(be);for(;Ms(25)&&q()!==30;)Dt=gr(m.createQualifiedName(Dt,kh(H,!1)),Ve);return Dt}function gy(H,be){return gr(m.createQualifiedName(H,be),H.pos)}function kh(H,be){if(t.hasPrecedingLineBreak()&&Wp(q())&&ti(Kg))return r_(80,!0,p.Identifier_expected);if(q()===81){const Ve=xi();return be?Ve:r_(80,!0,p.Identifier_expected)}return H?Le():G()}function Ch(H){const be=_e(),Ve=[];let Dt;do Dt=va(H),Ve.push(Dt);while(Dt.literal.kind===17);return Hl(Ve,be)}function J(H){const be=_e();return gr(m.createTemplateExpression(Us(H),Ch(H)),be)}function Xe(){const H=_e();return gr(m.createTemplateLiteralType(Us(!1),ir()),H)}function ir(){const H=_e(),be=[];let Ve;do Ve=kn(),be.push(Ve);while(Ve.literal.kind===17);return Hl(be,H)}function kn(){const H=_e();return gr(m.createTemplateLiteralTypeSpan(Pu(),Js(!1)),H)}function Js(H){return q()===20?(Ui(H),ml()):ru(18,p._0_expected,Uo(20))}function va(H){const be=_e();return gr(m.createTemplateSpan(Tt(gp),Js(H)),be)}function ts(){return u_(q())}function Us(H){!H&&t.getTokenFlags()&26656&&Ui(!1);const be=u_(q());return D.assert(be.kind===16,"Template head has wrong token kind"),be}function ml(){const H=u_(q());return D.assert(H.kind===17||H.kind===18,"Template fragment has wrong token kind"),H}function dc(H){const be=H===15||H===18,Ve=t.getTokenText();return Ve.substring(1,Ve.length-(t.isUnterminated()?0:be?1:2))}function u_(H){const be=_e(),Ve=sb(H)?m.createTemplateLiteralLikeNode(H,t.getTokenValue(),dc(H),t.getTokenFlags()&7176):H===9?T(t.getTokenValue(),t.getNumericLiteralFlags()):H===11?k(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):Ow(H)?E(H,t.getTokenValue()):D.fail();return t.hasExtendedUnicodeEscape()&&(Ve.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ve.isUnterminated=!0),st(),gr(Ve,be)}function Rd(){return Hg(!0,p.Type_expected)}function ed(){if(!t.hasPrecedingLineBreak()&&ya()===30)return mp(20,Pu,30,32)}function dg(){const H=_e();return gr(m.createTypeReferenceNode(Rd(),ed()),H)}function Gg(H){switch(H.kind){case 182:return Eu(H.typeName);case 183:case 184:{const{parameters:be,type:Ve}=H;return nm(be)||Gg(Ve)}case 195:return Gg(H.type);default:return!1}}function mg(H){return st(),gr(m.createTypePredicateNode(void 0,H,Pu()),H.pos)}function Ie(){const H=_e();return st(),gr(m.createThisTypeNode(),H)}function Ke(){const H=_e();return st(),gr(m.createJSDocAllType(),H)}function pt(){const H=_e();return st(),gr(m.createJSDocNonNullableType(yd(),!1),H)}function pr(){const H=_e();return st(),q()===28||q()===20||q()===22||q()===32||q()===64||q()===52?gr(m.createJSDocUnknownType(),H):gr(m.createJSDocNullableType(Pu(),!1),H)}function Vr(){const H=_e(),be=pe();if(ti(Ra)){st();const Ve=d0(36),Dt=Bd(59,!1);return Ar(gr(m.createJSDocFunctionType(Ve,Dt),H),be)}return gr(m.createTypeReferenceNode(Le(),void 0),H)}function Gr(){const H=_e();let be;return(q()===110||q()===105)&&(be=Le(),Yr(59)),gr(m.createParameterDeclaration(void 0,void 0,be,void 0,Xr(),void 0),H)}function Xr(){t.setInJSDocType(!0);const H=_e();if(Ms(144)){const Dt=m.createJSDocNamepathType(void 0);e:for(;;)switch(q()){case 20:case 1:case 28:case 5:break e;default:Ft()}return t.setInJSDocType(!1),gr(Dt,H)}const be=Ms(26);let Ve=e6();return t.setInJSDocType(!1),be&&(Ve=gr(m.createJSDocVariadicType(Ve),H)),q()===64?(st(),gr(m.createJSDocOptionalType(Ve),H)):Ve}function Tn(){const H=_e();Yr(114);const be=Hg(!0),Ve=t.hasPrecedingLineBreak()?void 0:e1();return gr(m.createTypeQueryNode(be,Ve),H)}function ra(){const H=_e(),be=Qf(!1,!0),Ve=G();let Dt,sr;Ms(96)&&(yy()||!jd()?Dt=Pu():sr=uv());const Fr=Ms(64)?Pu():void 0,Si=m.createTypeParameterDeclaration(be,Ve,Dt,Fr);return Si.expression=sr,gr(Si,H)}function Va(){if(q()===30)return mp(19,ra,30,32)}function Bn(H){return q()===26||ix()||Wv(q())||q()===60||yy(!H)}function pi(H){const be=T2(p.Private_identifiers_cannot_be_used_as_parameters);return MD(be)===0&&!bt(H)&&Wv(q())&&st(),be}function Hn(){return al()||q()===23||q()===19}function qs(H){return K_(H)}function Iu(H){return K_(H,!1)}function K_(H,be=!0){const Ve=_e(),Dt=pe(),sr=H?dt(()=>Qf(!0)):Q(()=>Qf(!0));if(q()===110){const ba=m.createParameterDeclaration(sr,void 0,_f(!0),void 0,cv(),void 0),sa=Ji(sr);return sa&&he(sa,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ar(gr(ba,Ve),Dt)}const Fr=xn;xn=!1;const Si=qa(26);if(!be&&!Hn())return;const aa=Ar(gr(m.createParameterDeclaration(sr,Si,pi(sr),qa(58),cv(),by()),Ve),Dt);return xn=Fr,aa}function Bd(H,be){if(wh(H,be))return Wt(e6)}function wh(H,be){return H===39?(Yr(H),!0):Ms(59)?!0:be&&q()===39?(Jn(p._0_expected,Uo(59)),st(),!0):!1}function Eh(H,be){const Ve=$t(),Dt=Yn();wr(!!(H&1)),Kr(!!(H&2));const sr=H&32?l_(17,Gr):l_(16,()=>be?qs(Dt):Iu(Dt));return wr(Ve),Kr(Dt),sr}function d0(H){if(!Yr(21))return Kp();const be=Eh(H,!0);return Yr(22),be}function p2(){Ms(28)||Cl()}function Pb(H){const be=_e(),Ve=pe();H===179&&Yr(105);const Dt=Va(),sr=d0(4),Fr=Bd(59,!0);p2();const Si=H===178?m.createCallSignature(Dt,sr,Fr):m.createConstructSignature(Dt,sr,Fr);return Ar(gr(Si,be),Ve)}function rT(){return q()===23&&ti(d2)}function d2(){if(st(),q()===26||q()===24)return!0;if(Wv(q())){if(st(),pc())return!0}else if(pc())st();else return!1;return q()===59||q()===28?!0:q()!==58?!1:(st(),q()===59||q()===28||q()===24)}function nT(H,be,Ve){const Dt=mp(16,()=>qs(!1),23,24),sr=cv();p2();const Fr=m.createIndexSignature(Ve,Dt,sr);return Ar(gr(Fr,H),be)}function j3(H,be,Ve){const Dt=qn(),sr=qa(58);let Fr;if(q()===21||q()===30){const Si=Va(),aa=d0(4),ba=Bd(59,!0);Fr=m.createMethodSignature(Ve,Dt,sr,Si,aa,ba)}else{const Si=cv();Fr=m.createPropertySignature(Ve,Dt,sr,Si),q()===64&&(Fr.initializer=by())}return p2(),Ar(gr(Fr,H),be)}function Z4(){if(q()===21||q()===30||q()===139||q()===153)return!0;let H=!1;for(;Wv(q());)H=!0,st();return q()===23?!0:(gt()&&(H=!0,st()),H?q()===21||q()===30||q()===58||q()===59||q()===28||fl():!1)}function z3(){if(q()===21||q()===30)return Pb(178);if(q()===105&&ti(Ob))return Pb(179);const H=_e(),be=pe(),Ve=Qf(!1);return La(139)?Af(H,be,Ve,176,4):La(153)?Af(H,be,Ve,177,4):rT()?nT(H,be,Ve):j3(H,be,Ve)}function Ob(){return st(),q()===21||q()===30}function m8(){return st()===25}function Y4(){switch(st()){case 21:case 30:case 25:return!0}return!1}function g8(){const H=_e();return gr(m.createTypeLiteralNode(J3()),H)}function J3(){let H;return Yr(19)?(H=ne(4,z3),Yr(20)):H=Kp(),H}function h8(){return st(),q()===40||q()===41?st()===148:(q()===148&&st(),q()===23&&su()&&st()===103)}function iT(){const H=_e(),be=Le();Yr(103);const Ve=Pu();return gr(m.createTypeParameterDeclaration(void 0,be,Ve,void 0),H)}function U3(){const H=_e();Yr(19);let be;(q()===148||q()===40||q()===41)&&(be=k_(),be.kind!==148&&Yr(148)),Yr(23);const Ve=iT(),Dt=Ms(130)?Pu():void 0;Yr(24);let sr;(q()===58||q()===40||q()===41)&&(sr=k_(),sr.kind!==58&&Yr(58));const Fr=cv();Cl();const Si=ne(4,z3);return Yr(20),gr(m.createMappedTypeNode(be,Ve,Dt,sr,Fr,Si),H)}function Mb(){const H=_e();if(Ms(26))return gr(m.createRestTypeNode(Pu()),H);const be=Pu();if(Pk(be)&&be.pos===be.type.pos){const Ve=m.createOptionalTypeNode(be.type);return yt(Ve,be),Ve.flags=be.flags,Ve}return be}function Lb(){return st()===59||q()===58&&st()===59}function Fb(){return q()===26?Wp(st())&&Lb():Wp(q())&&Lb()}function aT(){if(ti(Fb)){const H=_e(),be=pe(),Ve=qa(26),Dt=Le(),sr=qa(58);Yr(59);const Fr=Mb(),Si=m.createNamedTupleMember(Ve,Dt,sr,Fr);return Ar(gr(Si,H),be)}return Mb()}function m2(){const H=_e();return gr(m.createTupleTypeNode(mp(21,aT,23,24)),H)}function yc(){const H=_e();Yr(21);const be=Pu();return Yr(22),gr(m.createParenthesizedType(be),H)}function V3(){let H;if(q()===128){const be=_e();st();const Ve=gr(B(128),be);H=Hl([Ve],be)}return H}function y8(){const H=_e(),be=pe(),Ve=V3(),Dt=Ms(105);D.assert(!Ve||Dt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const sr=Va(),Fr=d0(4),Si=Bd(39,!1),aa=Dt?m.createConstructorTypeNode(Ve,sr,Fr,Si):m.createFunctionTypeNode(sr,Fr,Si);return Ar(gr(aa,H),be)}function av(){const H=k_();return q()===25?void 0:H}function hy(H){const be=_e();H&&st();let Ve=q()===112||q()===97||q()===106?k_():u_(q());return H&&(Ve=gr(m.createPrefixUnaryExpression(41,Ve),be)),gr(m.createLiteralTypeNode(Ve),be)}function N1(){return st(),q()===102}function Hm(){const H=_e(),be=t.getTokenStart();Yr(19);const Ve=t.hasPrecedingLineBreak();Yr(132),Yr(59);const Dt=id(!0);if(!Yr(20)){const sr=io(nt);sr&&sr.code===p._0_expected.code&&ic(sr,pk(Ue,be,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return gr(m.createImportTypeAssertionContainer(Dt,Ve),H)}function td(){Ae|=2097152;const H=_e(),be=Ms(114);Yr(102),Yr(21);const Ve=Pu();let Dt;Ms(28)&&(Dt=Hm()),Yr(22);const sr=Ms(25)?Rd():void 0,Fr=ed();return gr(m.createImportTypeNode(Ve,Dt,sr,Fr,be),H)}function hd(){return st(),q()===9||q()===10}function yd(){switch(q()){case 133:case 159:case 154:case 150:case 162:case 155:case 136:case 157:case 146:case 151:return Na(av)||dg();case 67:t.reScanAsteriskEqualsToken();case 42:return Ke();case 61:t.reScanQuestionToken();case 58:return pr();case 100:return Vr();case 54:return pt();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return hy();case 41:return ti(hd)?hy(!0):dg();case 116:return k_();case 110:{const H=Ie();return q()===142&&!t.hasPrecedingLineBreak()?mg(H):H}case 114:return ti(N1)?td():Tn();case 19:return ti(h8)?U3():g8();case 23:return m2();case 21:return yc();case 102:return td();case 131:return ti(Kg)?t6():dg();case 16:return Xe();default:return dg()}}function yy(H){switch(q()){case 133:case 159:case 154:case 150:case 162:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!H;case 41:return!H&&ti(hd);case 21:return!H&&ti(sT);default:return pc()}}function sT(){return st(),q()===22||Bn(!1)||yy()}function v8(){const H=_e();let be=yd();for(;!t.hasPrecedingLineBreak();)switch(q()){case 54:st(),be=gr(m.createJSDocNonNullableType(be,!0),H);break;case 58:if(ti(Gt))return be;st(),be=gr(m.createJSDocNullableType(be,!0),H);break;case 23:if(Yr(23),yy()){const Ve=Pu();Yr(24),be=gr(m.createIndexedAccessTypeNode(be,Ve),H)}else Yr(24),be=gr(m.createArrayTypeNode(be),H);break;default:return be}return be}function W3(H){const be=_e();return Yr(H),gr(m.createTypeOperatorNode(H,K4()),be)}function oT(){if(Ms(96)){const H=nr(Pu);if(Pr()||q()!==58)return H}}function Q4(){const H=_e(),be=G(),Ve=Na(oT),Dt=m.createTypeParameterDeclaration(void 0,be,Ve);return gr(Dt,H)}function b8(){const H=_e();return Yr(140),gr(m.createInferTypeNode(Q4()),H)}function K4(){const H=q();switch(H){case 143:case 158:case 148:return W3(H);case 140:return b8()}return Wt(v8)}function q3(H){if(Ah()){const be=y8();let Ve;return uy(be)?Ve=H?p.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ve=H?p.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,he(be,Ve),be}}function x8(H,be,Ve){const Dt=_e(),sr=H===52,Fr=Ms(H);let Si=Fr&&q3(sr)||be();if(q()===H||Fr){const aa=[Si];for(;Ms(H);)aa.push(q3(sr)||be());Si=gr(Ve(Hl(aa,Dt)),Dt)}return Si}function sv(){return x8(51,K4,m.createIntersectionTypeNode)}function cT(){return x8(52,sv,m.createUnionTypeNode)}function qe(){return st(),q()===105}function Ah(){return q()===30||q()===21&&ti(g2)?!0:q()===105||q()===128&&ti(qe)}function vy(){if(Wv(q())&&Qf(!1),pc()||q()===110)return st(),!0;if(q()===23||q()===19){const H=nt.length;return T2(),H===nt.length}return!1}function g2(){return st(),!!(q()===22||q()===26||vy()&&(q()===59||q()===28||q()===58||q()===64||q()===22&&(st(),q()===39)))}function e6(){const H=_e(),be=pc()&&Na(ov),Ve=Pu();return be?gr(m.createTypePredicateNode(void 0,be,Ve),H):Ve}function ov(){const H=G();if(q()===142&&!t.hasPrecedingLineBreak())return st(),H}function t6(){const H=_e(),be=ru(131),Ve=q()===110?Ie():G(),Dt=Ms(142)?Pu():void 0;return gr(m.createTypePredicateNode(be,Ve,Dt),H)}function Pu(){if(an&40960)return Li(40960,Pu);if(Ah())return y8();const H=_e(),be=cT();if(!Pr()&&!t.hasPrecedingLineBreak()&&Ms(96)){const Ve=nr(Pu);Yr(58);const Dt=Wt(Pu);Yr(59);const sr=Wt(Pu);return gr(m.createConditionalTypeNode(be,Ve,Dt,sr),H)}return be}function cv(){return Ms(59)?Pu():void 0}function vc(){switch(q()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return ti(Y4);default:return pc()}}function jd(){if(vc())return!0;switch(q()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return X3()?!0:pc()}}function $3(){return q()!==19&&q()!==100&&q()!==86&&q()!==60&&jd()}function gp(){const H=li();H&&ln(!1);const be=_e();let Ve=zd(!0),Dt;for(;Dt=qa(28);)Ve=_T(Ve,Dt,zd(!0),be);return H&&ln(!0),Ve}function by(){return Ms(64)?zd(!0):void 0}function zd(H){if(h2())return G3();const be=I1(H)||Ei(H);if(be)return be;const Ve=_e(),Dt=r6(0);return Dt.kind===80&&q()===39?T8(Ve,Dt,H,void 0):Dd(Dt)&&Xv(En())?_T(Dt,k_(),zd(H),Ve):lv(Dt,Ve,H)}function h2(){return q()===127?$t()?!0:ti(Wb):!1}function H3(){return st(),!t.hasPrecedingLineBreak()&&pc()}function G3(){const H=_e();return st(),!t.hasPrecedingLineBreak()&&(q()===42||jd())?gr(m.createYieldExpression(qa(42),zd(!0)),H):gr(m.createYieldExpression(void 0,void 0),H)}function T8(H,be,Ve,Dt){D.assert(q()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const sr=m.createParameterDeclaration(void 0,void 0,be,void 0,void 0,void 0);gr(sr,be.pos);const Fr=Hl([sr],sr.pos,sr.end),Si=ru(39),aa=y2(!!Dt,Ve),ba=m.createArrowFunction(Dt,void 0,Fr,void 0,Si,aa);return Qr(gr(ba,H))}function I1(H){const be=lT();if(be!==0)return be===1?pf(!0,!0):Na(()=>Pa(H))}function lT(){return q()===21||q()===30||q()===134?ti(uT):q()===39?1:0}function uT(){if(q()===134&&(st(),t.hasPrecedingLineBreak()||q()!==21&&q()!==30))return 0;const H=q(),be=st();if(H===21){if(be===22)switch(st()){case 39:case 59:case 19:return 1;default:return 0}if(be===23||be===19)return 2;if(be===26)return 1;if(Wv(be)&&be!==134&&ti(su))return st()===130?0:1;if(!pc()&&be!==110)return 0;switch(st()){case 59:return 1;case 58:return st(),q()===59||q()===28||q()===64||q()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return D.assert(H===30),!pc()&&q()!==87?0:Pe===1?ti(()=>{Ms(87);const Dt=st();if(Dt===96)switch(st()){case 64:case 32:case 44:return!1;default:return!0}else if(Dt===28||Dt===64)return!0;return!1})?1:0:2}function Pa(H){const be=t.getTokenStart();if(Lt!=null&&Lt.has(be))return;const Ve=pf(!1,H);return Ve||(Lt||(Lt=new Set)).add(be),Ve}function Ei(H){if(q()===134&&ti(im)===1){const be=_e(),Ve=yu(),Dt=r6(0);return T8(be,Dt,H,Ve)}}function im(){if(q()===134){if(st(),t.hasPrecedingLineBreak()||q()===39)return 0;const H=r6(0);if(!t.hasPrecedingLineBreak()&&H.kind===80&&q()===39)return 1}return 0}function pf(H,be){const Ve=_e(),Dt=pe(),sr=yu(),Fr=bt(sr,P9)?2:0,Si=Va();let aa;if(Yr(21)){if(H)aa=Eh(Fr,H);else{const Yb=Eh(Fr,H);if(!Yb)return;aa=Yb}if(!Yr(22)&&!H)return}else{if(!H)return;aa=Kp()}const ba=q()===59,sa=Bd(59,!1);if(sa&&!H&&Gg(sa))return;let ys=sa;for(;(ys==null?void 0:ys.kind)===195;)ys=ys.type;const gl=ys&&Ok(ys);if(!H&&q()!==39&&(gl||q()!==19))return;const Ic=q(),Oo=ru(39),Kf=Ic===39||Ic===19?y2(bt(sr,P9),be):G();if(!be&&ba&&q()!==59)return;const W0=m.createArrowFunction(sr,Si,aa,sa,Oo,Kf);return Ar(gr(W0,Ve),Dt)}function y2(H,be){if(q()===19)return rd(H?2:0);if(q()!==27&&q()!==100&&q()!==86&&dv()&&!$3())return rd(16|(H?2:0));const Ve=xn;xn=!1;const Dt=H?dt(()=>zd(be)):Q(()=>zd(be));return xn=Ve,Dt}function lv(H,be,Ve){const Dt=qa(58);if(!Dt)return H;let sr;return gr(m.createConditionalExpression(H,Dt,Li(n,()=>zd(!1)),sr=ru(59),I0(sr)?zd(Ve):r_(80,!1,p._0_expected,Uo(59))),be)}function r6(H){const be=_e(),Ve=uv();return hu(H,Ve,be)}function S8(H){return H===103||H===164}function hu(H,be,Ve){for(;;){En();const Dt=mN(q());if(!(q()===43?Dt>=H:Dt>H)||q()===103&&Jt())break;if(q()===130||q()===152){if(t.hasPrecedingLineBreak())break;{const Fr=q();st(),be=Fr===152?Z3(be,Pu()):Y3(be,Pu())}}else be=_T(be,k_(),r6(Dt),Ve)}return be}function X3(){return Jt()&&q()===103?!1:mN(q())>0}function Z3(H,be){return gr(m.createSatisfiesExpression(H,be),H.pos)}function _T(H,be,Ve,Dt){return gr(m.createBinaryExpression(H,be,Ve),Dt)}function Y3(H,be){return gr(m.createAsExpression(H,be),H.pos)}function gg(){const H=_e();return gr(m.createPrefixUnaryExpression(q(),ar(Jd)),H)}function fT(){const H=_e();return gr(m.createDeleteExpression(ar(Jd)),H)}function yC(){const H=_e();return gr(m.createTypeOfExpression(ar(Jd)),H)}function Rb(){const H=_e();return gr(m.createVoidExpression(ar(Jd)),H)}function pT(){return q()===135?Yn()?!0:ti(Wb):!1}function am(){const H=_e();return gr(m.createAwaitExpression(ar(Jd)),H)}function uv(){if(Bb()){const Ve=_e(),Dt=k8();return q()===43?hu(mN(q()),Dt,Ve):Dt}const H=q(),be=Jd();if(q()===43){const Ve=tc(Me,be.pos),{end:Dt}=be;be.kind===215?ge(Ve,Dt,p.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(D.assert(gF(H)),ge(Ve,Dt,p.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Uo(H)))}return be}function Jd(){switch(q()){case 40:case 41:case 55:case 54:return gg();case 91:return fT();case 114:return yC();case 116:return Rb();case 30:return Pe===1?Xg(!0,void 0,void 0,!0):C8();case 135:if(pT())return am();default:return k8()}}function Bb(){switch(q()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Pe!==1)return!1;default:return!0}}function k8(){if(q()===46||q()===47){const be=_e();return gr(m.createPrefixUnaryExpression(q(),ar(xy)),be)}else if(Pe===1&&q()===30&&ti(C_))return Xg(!0);const H=xy();if(D.assert(Dd(H)),(q()===46||q()===47)&&!t.hasPrecedingLineBreak()){const be=q();return st(),gr(m.createPostfixUnaryExpression(H,be),H.pos)}return H}function xy(){const H=_e();let be;return q()===102?ti(Ob)?(Ae|=2097152,be=k_()):ti(m8)?(st(),st(),be=gr(m.createMetaProperty(102,Le()),H),Ae|=4194304):be=jb():be=q()===108?dT():jb(),i6(H,be)}function jb(){const H=_e(),be=J0();return K3(H,be,!0)}function dT(){const H=_e();let be=k_();if(q()===30){const Ve=_e(),Dt=Na(y_);Dt!==void 0&&(ge(Ve,_e(),p.super_may_not_use_type_arguments),Qg()||(be=m.createExpressionWithTypeArguments(be,Dt)))}return q()===21||q()===25||q()===23?be:(ru(25,p.super_must_be_followed_by_an_argument_list_or_member_access),gr(re(be,kh(!0,!0)),H))}function Xg(H,be,Ve,Dt=!1){const sr=_e(),Fr=n6(H);let Si;if(Fr.kind===285){let aa=Yg(Fr),ba;const sa=aa[aa.length-1];if((sa==null?void 0:sa.kind)===283&&!U4(sa.openingElement.tagName,sa.closingElement.tagName)&&U4(Fr.tagName,sa.closingElement.tagName)){const ys=sa.children.end,gl=gr(m.createJsxElement(sa.openingElement,sa.children,gr(m.createJsxClosingElement(gr(O(""),ys,ys)),ys,ys)),sa.openingElement.pos,ys);aa=Hl([...aa.slice(0,aa.length-1),gl],aa.pos,ys),ba=sa.closingElement}else ba=Ub(Fr,H),U4(Fr.tagName,ba.tagName)||(Ve&&w1(Ve)&&U4(ba.tagName,Ve.tagName)?he(Fr.tagName,p.JSX_element_0_has_no_corresponding_closing_tag,jw(Me,Fr.tagName)):he(ba.tagName,p.Expected_corresponding_JSX_closing_tag_for_0,jw(Me,Fr.tagName)));Si=gr(m.createJsxElement(Fr,aa,ba),sr)}else Fr.kind===288?Si=gr(m.createJsxFragment(Fr,Yg(Fr),hT(H)),sr):(D.assert(Fr.kind===284),Si=Fr);if(!Dt&&H&&q()===30){const aa=typeof be=="undefined"?Si.pos:be,ba=Na(()=>Xg(!0,aa));if(ba){const sa=r_(28,!1);return x9(sa,ba.pos,0),ge(tc(Me,aa),ba.end,p.JSX_expressions_must_have_one_parent_element),gr(m.createBinaryExpression(Si,sa,ba),sr)}}return Si}function vC(){const H=_e(),be=m.createJsxText(t.getTokenValue(),Zt===13);return Zt=t.scanJsxToken(),gr(be,H)}function Zg(H,be){switch(be){case 1:if(FS(H))he(H,p.JSX_fragment_has_no_corresponding_closing_tag);else{const Ve=H.tagName,Dt=Math.min(tc(Me,Ve.pos),Ve.end);ge(Dt,Ve.end,p.JSX_element_0_has_no_corresponding_closing_tag,jw(Me,H.tagName))}return;case 31:case 7:return;case 12:case 13:return vC();case 19:return mT(!1);case 30:return Xg(!1,void 0,H);default:return D.assertNever(be)}}function Yg(H){const be=[],Ve=_e(),Dt=Cr;for(Cr|=16384;;){const sr=Zg(H,Zt=t.reScanJsxToken());if(!sr||(be.push(sr),w1(H)&&(sr==null?void 0:sr.kind)===283&&!U4(sr.openingElement.tagName,sr.closingElement.tagName)&&U4(H.tagName,sr.closingElement.tagName)))break}return Cr=Dt,Hl(be,Ve)}function sm(){const H=_e();return gr(m.createJsxAttributes(ne(13,Xc)),H)}function n6(H){const be=_e();if(Yr(30),q()===32)return zs(),gr(m.createJsxOpeningFragment(),be);const Ve=zb(),Dt=an&262144?void 0:e1(),sr=sm();let Fr;return q()===32?(zs(),Fr=m.createJsxOpeningElement(Ve,Dt,sr)):(Yr(44),Yr(32,void 0,!1)&&(H?st():zs()),Fr=m.createJsxSelfClosingElement(Ve,Dt,sr)),gr(Fr,be)}function zb(){const H=_e(),be=bC();if(A1(be))return be;let Ve=be;for(;Ms(25);)Ve=gr(re(Ve,kh(!0,!1)),H);return Ve}function bC(){const H=_e();Os();const be=q()===110,Ve=Le();return Ms(59)?(Os(),gr(m.createJsxNamespacedName(Ve,Le()),H)):be?gr(m.createToken(110),H):Ve}function mT(H){const be=_e();if(!Yr(19))return;let Ve,Dt;return q()!==20&&(Ve=qa(26),Dt=gp()),H?Yr(20):Yr(20,void 0,!1)&&zs(),gr(m.createJsxExpression(Ve,Dt),be)}function Xc(){if(q()===19)return gT();const H=_e();return gr(m.createJsxAttribute(Jb(),Q3()),H)}function Q3(){if(q()===64){if(Wo()===11)return ts();if(q()===19)return mT(!0);if(q()===30)return Xg(!0);Jn(p.or_JSX_element_expected)}}function Jb(){const H=_e();Os();const be=Le();return Ms(59)?(Os(),gr(m.createJsxNamespacedName(be,Le()),H)):be}function gT(){const H=_e();Yr(19),Yr(26);const be=gp();return Yr(20),gr(m.createJsxSpreadAttribute(be),H)}function Ub(H,be){const Ve=_e();Yr(31);const Dt=zb();return Yr(32,void 0,!1)&&(be||!U4(H.tagName,Dt)?st():zs()),gr(m.createJsxClosingElement(Dt),Ve)}function hT(H){const be=_e();return Yr(31),Yr(32,p.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(H?st():zs()),gr(m.createJsxJsxClosingFragment(),be)}function C8(){D.assert(Pe!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const H=_e();Yr(30);const be=Pu();Yr(32);const Ve=Jd();return gr(m.createTypeAssertion(be,Ve),H)}function yT(){return st(),Wp(q())||q()===23||Qg()}function Cn(){return q()===29&&ti(yT)}function qu(H){if(H.flags&32)return!0;if(MS(H)){let be=H.expression;for(;MS(be)&&!(be.flags&32);)be=be.expression;if(be.flags&32){for(;MS(H);)H.flags|=32,H=H.expression;return!0}}return!1}function ps(H,be,Ve){const Dt=kh(!0,!0),sr=Ve||qu(be),Fr=sr?z(be,Ve,Dt):re(be,Dt);if(sr&&Ea(Fr.name)&&he(Fr.name,p.An_optional_chain_cannot_contain_private_identifiers),t2(be)&&be.typeArguments){const Si=be.typeArguments.pos-1,aa=tc(Me,be.typeArguments.end)+1;ge(Si,aa,p.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return gr(Fr,H)}function _v(H,be,Ve){let Dt;if(q()===24)Dt=r_(80,!0,p.An_element_access_expression_should_take_an_argument);else{const Fr=Tt(gp);a0(Fr)&&(Fr.text=Zf(Fr.text)),Dt=Fr}Yr(24);const sr=Ve||qu(be)?R(be,Ve,Dt):ce(be,Dt);return gr(sr,H)}function K3(H,be,Ve){for(;;){let Dt,sr=!1;if(Ve&&Cn()?(Dt=ru(29),sr=Wp(q())):sr=Ms(25),sr){be=ps(H,be,Dt);continue}if((Dt||!li())&&Ms(23)){be=_v(H,be,Dt);continue}if(Qg()){be=!Dt&&be.kind===232?Dn(H,be.expression,Dt,be.typeArguments):Dn(H,be,Dt,void 0);continue}if(!Dt){if(q()===54&&!t.hasPrecedingLineBreak()){st(),be=gr(m.createNonNullExpression(be),H);continue}const Fr=Na(y_);if(Fr){be=gr(m.createExpressionWithTypeArguments(be,Fr),H);continue}}return be}}function Qg(){return q()===15||q()===16}function Dn(H,be,Ve,Dt){const sr=m.createTaggedTemplateExpression(be,Dt,q()===15?(Ui(!0),ts()):J(!0));return(Ve||be.flags&32)&&(sr.flags|=32),sr.questionDotToken=Ve,gr(sr,H)}function i6(H,be){for(;;){be=K3(H,be,!0);let Ve;const Dt=qa(29);if(Dt&&(Ve=Na(y_),Qg())){be=Dn(H,be,Dt,Ve);continue}if(Ve||q()===21){!Dt&&be.kind===232&&(Ve=be.typeArguments,be=be.expression);const sr=a6(),Fr=Dt||qu(be)?ae(be,Dt,Ve,sr):le(be,Ve,sr);be=gr(Fr,H);continue}if(Dt){const sr=r_(80,!1,p.Identifier_expected);be=gr(z(be,Dt,sr),H)}break}return be}function a6(){Yr(21);const H=l_(11,o6);return Yr(22),H}function y_(){if(an&262144||ya()!==30)return;st();const H=l_(20,Pu);if(En()===32)return st(),H&&P1()?H:void 0}function P1(){switch(q()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||X3()||!jd()}function J0(){switch(q()){case 15:t.getTokenFlags()&26656&&Ui(!1);case 9:case 10:case 11:return ts();case 110:case 108:case 106:case 112:case 97:return k_();case 21:return s6();case 23:return c6();case 19:return U0();case 134:if(!ti(nx))break;return v2();case 60:return ax();case 86:return Cy();case 100:return v2();case 105:return Rf();case 44:case 69:if(Ti()===14)return ts();break;case 16:return J(!1);case 81:return xi()}return G(p.Expression_expected)}function s6(){const H=_e(),be=pe();Yr(21);const Ve=Tt(gp);return Yr(22),Ar(gr($(Ve),H),be)}function ex(){const H=_e();Yr(26);const be=zd(!0);return gr(m.createSpreadElement(be),H)}function Ty(){return q()===26?ex():q()===28?gr(m.createOmittedExpression(),_e()):zd(!0)}function o6(){return Li(n,Ty)}function c6(){const H=_e(),be=t.getTokenStart(),Ve=Yr(23),Dt=t.hasPrecedingLineBreak(),sr=l_(15,Ty);return uf(23,24,Ve,be),gr(U(sr,Dt),H)}function Dh(){const H=_e(),be=pe();if(qa(26)){const ys=zd(!0);return Ar(gr(m.createSpreadAssignment(ys),H),be)}const Ve=Qf(!0);if(La(139))return Af(H,be,Ve,176,0);if(La(153))return Af(H,be,Ve,177,0);const Dt=qa(42),sr=pc(),Fr=qn(),Si=qa(58),aa=qa(54);if(Dt||q()===21||q()===30)return ky(H,be,Ve,Dt,Fr,Si,aa);let ba;if(sr&&q()!==59){const ys=qa(64),gl=ys?Tt(()=>zd(!0)):void 0;ba=m.createShorthandPropertyAssignment(Fr,gl),ba.equalsToken=ys}else{Yr(59);const ys=Tt(()=>zd(!0));ba=m.createPropertyAssignment(Fr,ys)}return ba.modifiers=Ve,ba.questionToken=Si,ba.exclamationToken=aa,Ar(gr(ba,H),be)}function U0(){const H=_e(),be=t.getTokenStart(),Ve=Yr(19),Dt=t.hasPrecedingLineBreak(),sr=l_(12,Dh,!0);return uf(19,20,Ve,be),gr(V(sr,Dt),H)}function v2(){const H=li();ln(!1);const be=_e(),Ve=pe(),Dt=Qf(!1);Yr(100);const sr=qa(42),Fr=sr?1:0,Si=bt(Dt,P9)?2:0,aa=Fr&&Si?at(nu):Fr?Y(nu):Si?dt(nu):nu(),ba=Va(),sa=d0(Fr|Si),ys=Bd(59,!1),gl=rd(Fr|Si);ln(H);const Ic=m.createFunctionExpression(Dt,sr,aa,ba,sa,ys,gl);return Ar(gr(Ic,be),Ve)}function nu(){return al()?fe():void 0}function Rf(){const H=_e();if(Yr(105),Ms(25)){const Fr=Le();return gr(m.createMetaProperty(105,Fr),H)}const be=_e();let Ve=K3(be,J0(),!1),Dt;Ve.kind===232&&(Dt=Ve.typeArguments,Ve=Ve.expression),q()===29&&Jn(p.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,jw(Me,Ve));const sr=q()===21?a6():void 0;return gr(ye(Ve,Dt,sr),H)}function Nh(H,be){const Ve=_e(),Dt=pe(),sr=t.getTokenStart(),Fr=Yr(19,be);if(Fr||H){const Si=t.hasPrecedingLineBreak(),aa=ne(1,Dm);uf(19,20,Fr,sr);const ba=Ar(gr(ee(aa,Si),Ve),Dt);return q()===64&&(Jn(p.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),st()),ba}else{const Si=Kp();return Ar(gr(ee(Si,void 0),Ve),Dt)}}function rd(H,be){const Ve=$t();wr(!!(H&1));const Dt=Yn();Kr(!!(H&2));const sr=xn;xn=!1;const Fr=li();Fr&&ln(!1);const Si=Nh(!!(H&16),be);return Fr&&ln(!0),xn=sr,wr(Ve),Kr(Dt),Si}function m0(){const H=_e(),be=pe();return Yr(27),Ar(gr(m.createEmptyStatement(),H),be)}function l6(){const H=_e(),be=pe();Yr(101);const Ve=t.getTokenStart(),Dt=Yr(21),sr=Tt(gp);uf(21,22,Dt,Ve);const Fr=Dm(),Si=Ms(93)?Dm():void 0;return Ar(gr(ve(sr,Fr,Si),H),be)}function Yf(){const H=_e(),be=pe();Yr(92);const Ve=Dm();Yr(117);const Dt=t.getTokenStart(),sr=Yr(21),Fr=Tt(gp);return uf(21,22,sr,Dt),Ms(27),Ar(gr(m.createDoStatement(Ve,Fr),H),be)}function vT(){const H=_e(),be=pe();Yr(117);const Ve=t.getTokenStart(),Dt=Yr(21),sr=Tt(gp);uf(21,22,Dt,Ve);const Fr=Dm();return Ar(gr(we(sr,Fr),H),be)}function b2(){const H=_e(),be=pe();Yr(99);const Ve=qa(135);Yr(21);let Dt;q()!==27&&(q()===115||q()===121||q()===87?Dt=f6(!0):Dt=it(gp));let sr;if(Ve?Yr(164):Ms(164)){const Fr=Tt(()=>zd(!0));Yr(22),sr=Ze(Ve,Dt,Fr,Dm())}else if(Ms(103)){const Fr=Tt(gp);Yr(22),sr=m.createForInStatement(Dt,Fr,Dm())}else{Yr(27);const Fr=q()!==27&&q()!==22?Tt(gp):void 0;Yr(27);const Si=q()!==22?Tt(gp):void 0;Yr(22),sr=K(Dt,Fr,Si,Dm())}return Ar(gr(sr,H),be)}function x2(H){const be=_e(),Ve=pe();Yr(H===251?83:88);const Dt=fl()?void 0:G();Cl();const sr=H===251?m.createBreakStatement(Dt):m.createContinueStatement(Dt);return Ar(gr(sr,be),Ve)}function tx(){const H=_e(),be=pe();Yr(107);const Ve=fl()?void 0:Tt(gp);return Cl(),Ar(gr(m.createReturnStatement(Ve),H),be)}function g0(){const H=_e(),be=pe();Yr(118);const Ve=t.getTokenStart(),Dt=Yr(21),sr=Tt(gp);uf(21,22,Dt,Ve);const Fr=ot(33554432,Dm);return Ar(gr(m.createWithStatement(sr,Fr),H),be)}function fv(){const H=_e(),be=pe();Yr(84);const Ve=Tt(gp);Yr(59);const Dt=ne(3,Dm);return Ar(gr(m.createCaseClause(Ve,Dt),H),be)}function u6(){const H=_e();Yr(90),Yr(59);const be=ne(3,Dm);return gr(m.createDefaultClause(be),H)}function ou(){return q()===84?fv():u6()}function Vb(){const H=_e();Yr(19);const be=ne(2,ou);return Yr(20),gr(m.createCaseBlock(be),H)}function rx(){const H=_e(),be=pe();Yr(109),Yr(21);const Ve=Tt(gp);Yr(22);const Dt=Vb();return Ar(gr(m.createSwitchStatement(Ve,Dt),H),be)}function w_(){const H=_e(),be=pe();Yr(111);let Ve=t.hasPrecedingLineBreak()?void 0:Tt(gp);return Ve===void 0&&(yr++,Ve=gr(O(""),_e())),Nu()||Gs(Ve),Ar(gr(m.createThrowStatement(Ve),H),be)}function w8(){const H=_e(),be=pe();Yr(113);const Ve=Nh(!1),Dt=q()===85?z_():void 0;let sr;return(!Dt||q()===98)&&(Yr(98,p.catch_or_finally_expected),sr=Nh(!1)),Ar(gr(m.createTryStatement(Ve,Dt,sr),H),be)}function z_(){const H=_e();Yr(85);let be;Ms(21)?(be=$b(),Yr(22)):be=void 0;const Ve=Nh(!1);return gr(m.createCatchClause(be,Ve),H)}function pv(){const H=_e(),be=pe();return Yr(89),Cl(),Ar(gr(m.createDebuggerStatement(),H),be)}function _6(){const H=_e();let be=pe(),Ve;const Dt=q()===21,sr=Tt(gp);return Be(sr)&&Ms(59)?Ve=m.createLabeledStatement(sr,Dm()):(Nu()||Gs(sr),Ve=me(sr),Dt&&(be=!1)),Ar(gr(Ve,H),be)}function Kg(){return st(),Wp(q())&&!t.hasPrecedingLineBreak()}function om(){return st(),q()===86&&!t.hasPrecedingLineBreak()}function nx(){return st(),q()===100&&!t.hasPrecedingLineBreak()}function Wb(){return st(),(Wp(q())||q()===9||q()===10||q()===11)&&!t.hasPrecedingLineBreak()}function E8(){for(;;)switch(q()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 120:case 156:return H3();case 144:case 145:return bT();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:if(st(),t.hasPrecedingLineBreak())return!1;continue;case 161:return st(),q()===19||q()===80||q()===95;case 102:return st(),q()===11||q()===42||q()===19||Wp(q());case 95:let H=st();if(H===156&&(H=ti(st)),H===64||H===42||H===19||H===90||H===130||H===60)return!0;continue;case 126:st();continue;default:return!1}}function Sy(){return ti(E8)}function dv(){switch(q()){case 60:case 27:case 19:case 115:case 121:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Sy()||ti(Y4);case 87:case 95:return Sy();case 134:case 138:case 120:case 144:case 145:case 156:case 161:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Sy()||!ti(Kg);default:return jd()}}function mv(){return st(),al()||q()===19||q()===23}function xC(){return ti(mv)}function Dm(){switch(q()){case 27:return m0();case 19:return Nh(!1);case 115:return V0(_e(),pe(),void 0);case 121:if(xC())return V0(_e(),pe(),void 0);break;case 100:return S2(_e(),pe(),void 0);case 86:return k2(_e(),pe(),void 0);case 101:return l6();case 92:return Yf();case 117:return vT();case 99:return b2();case 88:return x2(250);case 83:return x2(251);case 107:return tx();case 118:return g0();case 109:return rx();case 111:return w_();case 113:case 85:case 98:return w8();case 89:return pv();case 60:return gv();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 161:if(Sy())return gv();break}return _6()}function A8(H){return H.kind===138}function gv(){const H=_e(),be=pe(),Ve=Qf(!0);if(bt(Ve,A8)){const sr=Nm(H);if(sr)return sr;for(const Fr of Ve)Fr.flags|=16777216;return ot(16777216,()=>Ih(H,be,Ve))}else return Ih(H,be,Ve)}function Nm(H){return ot(16777216,()=>{const be=Qt(Cr,H);if(be)return Kt(be)})}function Ih(H,be,Ve){switch(q()){case 115:case 121:case 87:return V0(H,be,Ve);case 100:return S2(H,be,Ve);case 86:return k2(H,be,Ve);case 120:return CC(H,be,Ve);case 156:return hv(H,be,Ve);case 94:return ie(H,be,Ve);case 161:case 144:case 145:return _a(H,be,Ve);case 102:return nd(H,be,Ve);case 95:switch(st(),q()){case 90:case 64:return WO(H,be,Ve);case 130:return Vd(H,be,Ve);default:return Hu(H,be,Ve)}default:if(Ve){const Dt=r_(281,!0,p.Declaration_expected);return b9(Dt,H),Dt.modifiers=Ve,Dt}return}}function bT(){return st(),!t.hasPrecedingLineBreak()&&(pc()||q()===11)}function qb(H,be){if(q()!==19){if(H&4){p2();return}if(fl()){Cl();return}}return rd(H,be)}function Ec(){const H=_e();if(q()===28)return gr(m.createOmittedExpression(),H);const be=qa(26),Ve=T2(),Dt=by();return gr(m.createBindingElement(be,void 0,Ve,Dt),H)}function ei(){const H=_e(),be=qa(26),Ve=al();let Dt=qn(),sr;Ve&&q()!==59?(sr=Dt,Dt=void 0):(Yr(59),sr=T2());const Fr=by();return gr(m.createBindingElement(be,Dt,sr,Fr),H)}function Im(){const H=_e();Yr(19);const be=l_(9,ei);return Yr(20),gr(m.createObjectBindingPattern(be),H)}function vd(){const H=_e();Yr(23);const be=l_(10,Ec);return Yr(24),gr(m.createArrayBindingPattern(be),H)}function ix(){return q()===19||q()===23||q()===81||al()}function T2(H){return q()===23?vd():q()===19?Im():fe(H)}function TC(){return $b(!0)}function $b(H){const be=_e(),Ve=pe(),Dt=T2(p.Private_identifiers_are_not_allowed_in_variable_declarations);let sr;H&&Dt.kind===80&&q()===54&&!t.hasPrecedingLineBreak()&&(sr=k_());const Fr=cv(),Si=S8(q())?void 0:by(),aa=Re(Dt,sr,Fr,Si);return Ar(gr(aa,be),Ve)}function f6(H){const be=_e();let Ve=0;switch(q()){case 115:break;case 121:Ve|=1;break;case 87:Ve|=2;break;default:D.fail()}st();let Dt;if(q()===164&&ti(O1))Dt=Kp();else{const sr=Jt();rn(H),Dt=l_(8,H?$b:TC),rn(sr)}return gr(Fe(Dt,Ve),be)}function O1(){return su()&&st()===22}function V0(H,be,Ve){const Dt=f6(!1);Cl();const sr=te(Ve,Dt);return Ar(gr(sr,H),be)}function S2(H,be,Ve){const Dt=Yn(),sr=uh(Ve);Yr(100);const Fr=qa(42),Si=sr&1024?nu():fe(),aa=Fr?1:0,ba=sr&512?2:0,sa=Va();sr&1&&Kr(!0);const ys=d0(aa|ba),gl=Bd(59,!1),Ic=qb(aa|ba,p.or_expected);Kr(Dt);const Oo=m.createFunctionDeclaration(Ve,Fr,Si,sa,ys,gl,Ic);return Ar(gr(Oo,H),be)}function Hb(){if(q()===137)return Yr(137);if(q()===11&&ti(st)===21)return Na(()=>{const H=ts();return H.text==="constructor"?H:void 0})}function Ph(H,be,Ve){return Na(()=>{if(Hb()){const Dt=Va(),sr=d0(0),Fr=Bd(59,!1),Si=qb(0,p.or_expected),aa=m.createConstructorDeclaration(Ve,sr,Si);return aa.typeParameters=Dt,aa.type=Fr,Ar(gr(aa,H),be)}})}function ky(H,be,Ve,Dt,sr,Fr,Si,aa){const ba=Dt?1:0,sa=bt(Ve,P9)?2:0,ys=Va(),gl=d0(ba|sa),Ic=Bd(59,!1),Oo=qb(ba|sa,aa),Kf=m.createMethodDeclaration(Ve,Dt,sr,Fr,ys,gl,Ic,Oo);return Kf.exclamationToken=Si,Ar(gr(Kf,H),be)}function Gb(H,be,Ve,Dt,sr){const Fr=!sr&&!t.hasPrecedingLineBreak()?qa(54):void 0,Si=cv(),aa=Li(45056,by);Wl(Dt,Si,aa);const ba=m.createPropertyDeclaration(Ve,Dt,sr||Fr,Si,aa);return Ar(gr(ba,H),be)}function $u(H,be,Ve){const Dt=qa(42),sr=qn(),Fr=qa(58);return Dt||q()===21||q()===30?ky(H,be,Ve,Dt,sr,Fr,void 0,p.or_expected):Gb(H,be,Ve,sr,Fr)}function Af(H,be,Ve,Dt,sr){const Fr=qn(),Si=Va(),aa=d0(0),ba=Bd(59,!1),sa=qb(sr),ys=Dt===176?m.createGetAccessorDeclaration(Ve,Fr,aa,ba,sa):m.createSetAccessorDeclaration(Ve,Fr,aa,sa);return ys.typeParameters=Si,u0(ys)&&(ys.type=ba),Ar(gr(ys,H),be)}function SC(){let H;if(q()===60)return!0;for(;Wv(q());){if(H=q(),Jq(H))return!0;st()}if(q()===42||(gt()&&(H=q(),st()),q()===23))return!0;if(H!==void 0){if(!pd(H)||H===153||H===139)return!0;switch(q()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return fl()}}return!1}function h0(H,be,Ve){ru(126);const Dt=M1(),sr=Ar(gr(m.createClassStaticBlockDeclaration(Dt),H),be);return sr.modifiers=Ve,sr}function M1(){const H=$t(),be=Yn();wr(!1),Kr(!0);const Ve=Nh(!1);return wr(H),Kr(be),Ve}function p6(){if(Yn()&&q()===135){const H=_e(),be=G(p.Expression_expected);st();const Ve=K3(H,be,!0);return i6(H,Ve)}return xy()}function xT(){const H=_e();if(!Ms(60))return;const be=Ge(p6);return gr(m.createDecorator(be),H)}function d6(H,be,Ve){const Dt=_e(),sr=q();if(q()===87&&be){if(!Na(Fs))return}else{if(Ve&&q()===126&&ti(co))return;if(H&&q()===126)return;if(!Ef())return}return gr(B(sr),Dt)}function Qf(H,be,Ve){const Dt=_e();let sr,Fr,Si,aa=!1,ba=!1,sa=!1;if(H&&q()===60)for(;Fr=xT();)sr=Ht(sr,Fr);for(;Si=d6(aa,be,Ve);)Si.kind===126&&(aa=!0),sr=Ht(sr,Si),ba=!0;if(ba&&H&&q()===60)for(;Fr=xT();)sr=Ht(sr,Fr),sa=!0;if(sa)for(;Si=d6(aa,be,Ve);)Si.kind===126&&(aa=!0),sr=Ht(sr,Si);return sr&&Hl(sr,Dt)}function yu(){let H;if(q()===134){const be=_e();st();const Ve=gr(B(134),be);H=Hl([Ve],be)}return H}function kC(){const H=_e(),be=pe();if(q()===27)return st(),Ar(gr(m.createSemicolonClassElement(),H),be);const Ve=Qf(!0,!0,!0);if(q()===126&&ti(co))return h0(H,be,Ve);if(La(139))return Af(H,be,Ve,176,0);if(La(153))return Af(H,be,Ve,177,0);if(q()===137||q()===11){const Dt=Ph(H,be,Ve);if(Dt)return Dt}if(rT())return nT(H,be,Ve);if(Wp(q())||q()===11||q()===9||q()===42||q()===23)if(bt(Ve,A8)){for(const sr of Ve)sr.flags|=16777216;return ot(16777216,()=>$u(H,be,Ve))}else return $u(H,be,Ve);if(Ve){const Dt=r_(80,!0,p.Declaration_expected);return Gb(H,be,Ve,Dt,void 0)}return D.fail("Should not have attempted to parse class member declaration.")}function ax(){const H=_e(),be=pe(),Ve=Qf(!0);if(q()===86)return sx(H,be,Ve,230);const Dt=r_(281,!0,p.Expression_expected);return b9(Dt,H),Dt.modifiers=Ve,Dt}function Cy(){return sx(_e(),pe(),void 0,230)}function k2(H,be,Ve){return sx(H,be,Ve,262)}function sx(H,be,Ve,Dt){const sr=Yn();Yr(86);const Fr=TT(),Si=Va();bt(Ve,FR)&&Kr(!0);const aa=m6();let ba;Yr(19)?(ba=lx(),Yr(20)):ba=Kp(),Kr(sr);const sa=Dt===262?m.createClassDeclaration(Ve,Fr,Si,aa,ba):m.createClassExpression(Ve,Fr,Si,aa,ba);return Ar(gr(sa,H),be)}function TT(){return al()&&!ox()?_f(al()):void 0}function ox(){return q()===119&&ti(ff)}function m6(){if(C2())return ne(22,cx)}function cx(){const H=_e(),be=q();D.assert(be===96||be===119),st();const Ve=l_(7,hg);return gr(m.createHeritageClause(be,Ve),H)}function hg(){const H=_e(),be=xy();if(be.kind===232)return be;const Ve=e1();return gr(m.createExpressionWithTypeArguments(be,Ve),H)}function e1(){return q()===30?mp(20,Pu,30,32):void 0}function C2(){return q()===96||q()===119}function lx(){return ne(5,kC)}function CC(H,be,Ve){Yr(120);const Dt=G(),sr=Va(),Fr=m6(),Si=J3(),aa=m.createInterfaceDeclaration(Ve,Dt,sr,Fr,Si);return Ar(gr(aa,H),be)}function hv(H,be,Ve){Yr(156);const Dt=G(),sr=Va();Yr(64);const Fr=q()===141&&Na(av)||Pu();Cl();const Si=m.createTypeAliasDeclaration(Ve,Dt,sr,Fr);return Ar(gr(Si,H),be)}function S(){const H=_e(),be=pe(),Ve=qn(),Dt=Tt(by);return Ar(gr(m.createEnumMember(Ve,Dt),H),be)}function ie(H,be,Ve){Yr(94);const Dt=G();let sr;Yr(19)?(sr=fr(()=>l_(6,S)),Yr(20)):sr=Kp();const Fr=m.createEnumDeclaration(Ve,Dt,sr);return Ar(gr(Fr,H),be)}function ze(){const H=_e();let be;return Yr(19)?(be=ne(1,Dm),Yr(20)):be=Kp(),gr(m.createModuleBlock(be),H)}function hr(H,be,Ve,Dt){const sr=Dt&16,Fr=G(),Si=Ms(25)?hr(_e(),!1,void 0,4|sr):ze(),aa=m.createModuleDeclaration(Ve,Fr,Si,Dt);return Ar(gr(aa,H),be)}function Rt(H,be,Ve){let Dt=0,sr;q()===161?(sr=G(),Dt|=1024):(sr=ts(),sr.text=Zf(sr.text));let Fr;q()===19?Fr=ze():Cl();const Si=m.createModuleDeclaration(Ve,sr,Fr,Dt);return Ar(gr(Si,H),be)}function _a(H,be,Ve){let Dt=0;if(q()===161)return Rt(H,be,Ve);if(Ms(145))Dt|=16;else if(Yr(144),q()===11)return Rt(H,be,Ve);return hr(H,be,Ve,Dt)}function Gi(){return q()===149&&ti(Ra)}function Ra(){return st()===21}function co(){return st()===19}function Ud(){return st()===44}function Vd(H,be,Ve){Yr(130),Yr(145);const Dt=G();Cl();const sr=m.createNamespaceExportDeclaration(Dt);return sr.modifiers=Ve,Ar(gr(sr,H),be)}function nd(H,be,Ve){Yr(102);const Dt=t.getTokenFullStart();let sr;pc()&&(sr=G());let Fr=!1;if(q()!==160&&(sr==null?void 0:sr.escapedText)==="type"&&(pc()||h6())&&(Fr=!0,sr=pc()?G():void 0),sr&&!Xb())return ux(H,be,Ve,sr,Fr);let Si;(sr||q()===42||q()===19)&&(Si=ST(sr,Dt,Fr),Yr(160));const aa=wy();let ba;q()===132&&!t.hasPrecedingLineBreak()&&(ba=id()),Cl();const sa=m.createImportDeclaration(Ve,Si,aa,ba);return Ar(gr(sa,H),be)}function g6(){const H=_e(),be=Wp(q())?Le():u_(11);Yr(59);const Ve=zd(!0);return gr(m.createAssertEntry(be,Ve),H)}function id(H){const be=_e();H||Yr(132);const Ve=t.getTokenStart();if(Yr(19)){const Dt=t.hasPrecedingLineBreak(),sr=l_(24,g6,!0);if(!Yr(20)){const Fr=io(nt);Fr&&Fr.code===p._0_expected.code&&ic(Fr,pk(Ue,Ve,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return gr(m.createAssertClause(sr,Dt),be)}else{const Dt=Hl([],_e(),void 0,!1);return gr(m.createAssertClause(Dt,!1),be)}}function h6(){return q()===42||q()===19}function Xb(){return q()===28||q()===160}function ux(H,be,Ve,Dt,sr){Yr(64);const Fr=yv();Cl();const Si=m.createImportEqualsDeclaration(Ve,sr,Dt,Fr);return Ar(gr(Si,H),be)}function ST(H,be,Ve){let Dt;return(!H||Ms(28))&&(Dt=q()===42?Pm():vv(274)),gr(m.createImportClause(Ve,H,Dt),be)}function yv(){return Gi()?y0():Hg(!1)}function y0(){const H=_e();Yr(149),Yr(21);const be=wy();return Yr(22),gr(m.createExternalModuleReference(be),H)}function wy(){if(q()===11){const H=ts();return H.text=Zf(H.text),H}else return gp()}function Pm(){const H=_e();Yr(42),Yr(130);const be=G();return gr(m.createNamespaceImport(be),H)}function vv(H){const be=_e(),Ve=H===274?m.createNamedImports(mp(23,Oh,19,20)):m.createNamedExports(mp(23,Zb,19,20));return gr(Ve,be)}function Zb(){const H=pe();return Ar(_x(280),H)}function Oh(){return _x(275)}function _x(H){const be=_e();let Ve=pd(q())&&!pc(),Dt=t.getTokenStart(),sr=t.getTokenEnd(),Fr=!1,Si,aa=!0,ba=Le();if(ba.escapedText==="type")if(q()===130){const gl=Le();if(q()===130){const Ic=Le();Wp(q())?(Fr=!0,Si=gl,ba=ys(),aa=!1):(Si=ba,ba=Ic,aa=!1)}else Wp(q())?(Si=ba,aa=!1,ba=ys()):(Fr=!0,ba=gl)}else Wp(q())&&(Fr=!0,ba=ys());aa&&q()===130&&(Si=ba,Yr(130),ba=ys()),H===275&&Ve&&ge(Dt,sr,p.Identifier_expected);const sa=H===275?m.createImportSpecifier(Fr,Si,ba):m.createExportSpecifier(Fr,Si,ba);return gr(sa,be);function ys(){return Ve=pd(q())&&!pc(),Dt=t.getTokenStart(),sr=t.getTokenEnd(),Le()}}function VO(H){return gr(m.createNamespaceExport(Le()),H)}function Hu(H,be,Ve){const Dt=Yn();Kr(!0);let sr,Fr,Si;const aa=Ms(156),ba=_e();Ms(42)?(Ms(130)&&(sr=VO(ba)),Yr(160),Fr=wy()):(sr=vv(278),(q()===160||q()===11&&!t.hasPrecedingLineBreak())&&(Yr(160),Fr=wy())),Fr&&q()===132&&!t.hasPrecedingLineBreak()&&(Si=id()),Cl(),Kr(Dt);const sa=m.createExportDeclaration(Ve,aa,sr,Fr,Si);return Ar(gr(sa,H),be)}function WO(H,be,Ve){const Dt=Yn();Kr(!0);let sr;Ms(64)?sr=!0:Yr(90);const Fr=zd(!0);Cl(),Kr(Dt);const Si=m.createExportAssignment(Ve,sr,Fr);return Ar(gr(Si,H),be)}let Fc;(H=>{H[H.SourceElements=0]="SourceElements",H[H.BlockStatements=1]="BlockStatements",H[H.SwitchClauses=2]="SwitchClauses",H[H.SwitchClauseStatements=3]="SwitchClauseStatements",H[H.TypeMembers=4]="TypeMembers",H[H.ClassMembers=5]="ClassMembers",H[H.EnumMembers=6]="EnumMembers",H[H.HeritageClauseElement=7]="HeritageClauseElement",H[H.VariableDeclarations=8]="VariableDeclarations",H[H.ObjectBindingElements=9]="ObjectBindingElements",H[H.ArrayBindingElements=10]="ArrayBindingElements",H[H.ArgumentExpressions=11]="ArgumentExpressions",H[H.ObjectLiteralMembers=12]="ObjectLiteralMembers",H[H.JsxAttributes=13]="JsxAttributes",H[H.JsxChildren=14]="JsxChildren",H[H.ArrayLiteralMembers=15]="ArrayLiteralMembers",H[H.Parameters=16]="Parameters",H[H.JSDocParameters=17]="JSDocParameters",H[H.RestProperties=18]="RestProperties",H[H.TypeParameters=19]="TypeParameters",H[H.TypeArguments=20]="TypeArguments",H[H.TupleElementTypes=21]="TupleElementTypes",H[H.HeritageClauses=22]="HeritageClauses",H[H.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",H[H.AssertEntries=24]="AssertEntries",H[H.JSDocComment=25]="JSDocComment",H[H.Count=26]="Count"})(Fc||(Fc={}));let Ac;(H=>{H[H.False=0]="False",H[H.True=1]="True",H[H.Unknown=2]="Unknown"})(Ac||(Ac={}));let D8;(H=>{function be(sa,ys,gl){Wa("file.js",sa,99,void 0,1),t.setText(sa,ys,gl),Zt=t.scan();const Ic=Ve(),Oo=ja("file.js",99,1,!1,[],B(1),0,Ho),Kf=hS(nt,Oo);return wt&&(Oo.jsDocDiagnostics=hS(wt,Oo)),bi(),Ic?{jsDocTypeExpression:Ic,diagnostics:Kf}:void 0}H.parseJSDocTypeExpressionForTests=be;function Ve(sa){const ys=_e(),gl=(sa?Ms:Yr)(19),Ic=ot(8388608,Xr);(!sa||gl)&&du(20);const Oo=m.createJSDocTypeExpression(Ic);return Fn(Oo),gr(Oo,ys)}H.parseJSDocTypeExpression=Ve;function Dt(){const sa=_e(),ys=Ms(19),gl=_e();let Ic=Hg(!1);for(;q()===81;)_s(),Ft(),Ic=gr(m.createJSDocMemberName(Ic,G()),gl);ys&&du(20);const Oo=m.createJSDocNameReference(Ic);return Fn(Oo),gr(Oo,sa)}H.parseJSDocNameReference=Dt;function sr(sa,ys,gl){Wa("",sa,99,void 0,1);const Ic=ot(8388608,()=>ba(ys,gl)),Kf=hS(nt,{languageVariant:0,text:sa});return bi(),Ic?{jsDoc:Ic,diagnostics:Kf}:void 0}H.parseIsolatedJSDocComment=sr;function Fr(sa,ys,gl){const Ic=Zt,Oo=nt.length,Kf=Lr,W0=ot(8388608,()=>ba(ys,gl));return fc(W0,sa),an&262144&&(wt||(wt=[]),wt.push(...nt)),Zt=Ic,nt.length=Oo,Lr=Kf,W0}H.parseJSDocComment=Fr;let Si;(sa=>{sa[sa.BeginningOfLine=0]="BeginningOfLine",sa[sa.SawAsterisk=1]="SawAsterisk",sa[sa.SavingComments=2]="SavingComments",sa[sa.SavingBackticks=3]="SavingBackticks"})(Si||(Si={}));let aa;(sa=>{sa[sa.Property=1]="Property",sa[sa.Parameter=2]="Parameter",sa[sa.CallbackParameter=4]="CallbackParameter"})(aa||(aa={}));function ba(sa=0,ys){const gl=Cr;Cr|=1<<25;const Ic=Me,Oo=ys===void 0?Ic.length:sa+ys;if(ys=Oo-sa,D.assert(sa>=0),D.assert(sa<=Oo),D.assert(Oo<=Ic.length),!oX(Ic,sa))return;let Kf,W0,Yb,yg,Qb,Kb=[];const e4=[],kT=t.scanRange(sa+3,ys-5,CT);return Cr=gl,kT;function CT(){let en=1,ki,ni=sa-(Ic.lastIndexOf(` -`,sa)+1)+4;function ma(sl){ki||(ki=ni),Kb.push(sl),ni+=sl.length}for(Ft();v6(5););v6(4)&&(en=0,ni=0);e:for(;;){switch(q()){case 60:uA(Kb),Qb||(Qb=_e()),pA(fA(ni)),en=0,ki=void 0;break;case 4:Kb.push(t.getTokenText()),en=0,ni=0;break;case 42:const sl=t.getTokenText();en===1?(en=2,ma(sl)):(D.assert(en===0),en=1,ni+=sl.length);break;case 5:D.assert(en!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const hp=t.getTokenText();ki!==void 0&&ni+hp.length>ki&&Kb.push(hp.slice(ki-ni)),ni+=hp.length;break;case 1:break e;case 82:en=2,ma(t.getTokenValue());break;case 19:en=2;const Ey=t.getTokenFullStart(),L1=t.getTokenEnd()-1,t1=E2(L1);if(t1){yg||N8(Kb),e4.push(gr(m.createJSDocText(Kb.join("")),yg!=null?yg:sa,Ey)),e4.push(t1),Kb=[],yg=t.getTokenEnd();break}default:en=2,ma(t.getTokenText());break}en===2?zr(!1):Ft()}const xa=X1(Kb.join(""));e4.length&&xa.length&&e4.push(gr(m.createJSDocText(xa),yg!=null?yg:sa,Qb)),e4.length&&Kf&&D.assertIsDefined(Qb,"having parsed tags implies that the end of the comment span should be set");const vs=Kf&&Hl(Kf,W0,Yb);return gr(m.createJSDocComment(e4.length?Hl(e4,sa,Qb):xa.length?xa:void 0,vs),sa,Oo)}function N8(en){for(;en.length&&(en[0]===` -`||en[0]==="\r");)en.shift()}function uA(en){for(;en.length;){const ki=X1(en[en.length-1]);if(ki==="")en.pop();else if(ki.lengthhp&&(ma.push(F1.slice(hp-en)),sl=2),en+=F1.length;break;case 19:sl=2;const Bp=t.getTokenFullStart(),DC=t.getTokenEnd()-1,i4=E2(DC);i4?(xa.push(gr(m.createJSDocText(ma.join("")),vs!=null?vs:ni,Bp)),xa.push(i4),ma=[],vs=t.getTokenEnd()):Ey(t.getTokenText());break;case 62:sl===3?sl=2:sl=3,Ey(t.getTokenText());break;case 82:sl!==3&&(sl=2),Ey(t.getTokenValue());break;case 42:if(sl===0){sl=1,en+=1;break}default:sl!==3&&(sl=2),Ey(t.getTokenText());break}sl===2||sl===3?L1=zr(sl===3):L1=Ft()}N8(ma);const t1=X1(ma.join(""));if(xa.length)return t1.length&&xa.push(gr(m.createJSDocText(t1),vs!=null?vs:ni)),Hl(xa,ni,t.getTokenEnd());if(t1.length)return t1}function E2(en){const ki=Na(A2);if(!ki)return;Ft(),v0();const ni=_e();let ma=Wp(q())?Hg(!0):void 0;if(ma)for(;q()===81;)_s(),Ft(),ma=gr(m.createJSDocMemberName(ma,G()),ni);const xa=[];for(;q()!==20&&q()!==4&&q()!==1;)xa.push(t.getTokenText()),Ft();const vs=ki==="link"?m.createJSDocLink:ki==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return gr(vs(ma,xa.join("")),en,t.getTokenEnd())}function A2(){if(w2(),q()===19&&Ft()===60&&Wp(Ft())){const en=t.getTokenValue();if(y6(en))return en}}function y6(en){return en==="link"||en==="linkcode"||en==="linkplain"}function D2(en,ki,ni,ma){return gr(m.createJSDocUnknownTag(ki,Vs(en,_e(),ni,ma)),en)}function pA(en){en&&(Kf?Kf.push(en):(Kf=[en],W0=en.pos),Yb=en.end)}function v(){return w2(),q()===19?Ve():void 0}function A(){const en=v6(23);en&&v0();const ki=v6(62),ni=HO();return ki&&dp(62),en&&(v0(),qa(64)&&gp(),Yr(24)),{name:ni,isBracketed:en}}function F(en){switch(en.kind){case 151:return!0;case 187:return F(en.elementType);default:return Rg(en)&&Be(en.typeName)&&en.typeName.escapedText==="Object"&&!en.typeArguments}}function se(en,ki,ni,ma){let xa=v(),vs=!xa;w2();const{name:sl,isBracketed:hp}=A(),Ey=w2();vs&&!ti(A2)&&(xa=v());const L1=Vs(en,_e(),ma,Ey),t1=ni!==4&&Je(xa,sl,ni,ma);t1&&(xa=t1,vs=!0);const F1=ni===1?m.createJSDocPropertyTag(ki,sl,hp,xa,vs,L1):m.createJSDocParameterTag(ki,sl,hp,xa,vs,L1);return gr(F1,en)}function Je(en,ki,ni,ma){if(en&&F(en.type)){const xa=_e();let vs,sl;for(;vs=Na(()=>EC(ni,ma,ki));)vs.kind===347||vs.kind===354?sl=Ht(sl,vs):vs.kind===351&&he(vs.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(sl){const hp=gr(m.createJSDocTypeLiteral(sl,en.type.kind===187),xa);return gr(m.createJSDocTypeExpression(hp),xa)}}}function cr(en,ki,ni,ma){bt(Kf,$R)&&ge(ki.pos,t.getTokenStart(),p._0_tag_already_specified,Ba(ki.escapedText));const xa=v();return gr(m.createJSDocReturnTag(ki,xa,Vs(en,_e(),ni,ma)),en)}function Pn(en,ki,ni,ma){bt(Kf,H9)&&ge(ki.pos,t.getTokenStart(),p._0_tag_already_specified,Ba(ki.escapedText));const xa=Ve(!0),vs=ni!==void 0&&ma!==void 0?Vs(en,_e(),ni,ma):void 0;return gr(m.createJSDocTypeTag(ki,xa,vs),en)}function Ya(en,ki,ni,ma){const vs=q()===23||ti(()=>Ft()===60&&Wp(Ft())&&y6(t.getTokenValue()))?void 0:Dt(),sl=ni!==void 0&&ma!==void 0?Vs(en,_e(),ni,ma):void 0;return gr(m.createJSDocSeeTag(ki,vs,sl),en)}function Zc(en,ki,ni,ma){const xa=v(),vs=Vs(en,_e(),ni,ma);return gr(m.createJSDocThrowsTag(ki,xa,vs),en)}function Gm(en,ki,ni,ma){const xa=_e(),vs=bv();let sl=t.getTokenFullStart();const hp=Vs(en,sl,ni,ma);hp||(sl=t.getTokenFullStart());const Ey=typeof hp!="string"?Hl(Nn([gr(vs,xa,sl)],hp),xa):vs.text+hp;return gr(m.createJSDocAuthorTag(ki,Ey),en)}function bv(){const en=[];let ki=!1,ni=t.getToken();for(;ni!==1&&ni!==4;){if(ni===30)ki=!0;else{if(ni===60&&!ki)break;if(ni===32&&ki){en.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}en.push(t.getTokenText()),ni=Ft()}return m.createJSDocText(en.join(""))}function xv(en,ki,ni,ma){const xa=qO();return gr(m.createJSDocImplementsTag(ki,xa,Vs(en,_e(),ni,ma)),en)}function t4(en,ki,ni,ma){const xa=qO();return gr(m.createJSDocAugmentsTag(ki,xa,Vs(en,_e(),ni,ma)),en)}function $ie(en,ki,ni,ma){const xa=Ve(!1),vs=ni!==void 0&&ma!==void 0?Vs(en,_e(),ni,ma):void 0;return gr(m.createJSDocSatisfiesTag(ki,xa,vs),en)}function qO(){const en=Ms(19),ki=_e(),ni=Hie();t.setInJSDocType(!0);const ma=e1();t.setInJSDocType(!1);const xa=m.createExpressionWithTypeArguments(ni,ma),vs=gr(xa,ki);return en&&Yr(20),vs}function Hie(){const en=_e();let ki=I2();for(;Ms(25);){const ni=I2();ki=gr(re(ki,ni),en)}return ki}function wT(en,ki,ni,ma,xa){return gr(ki(ni,Vs(en,_e(),ma,xa)),en)}function Gie(en,ki,ni,ma){const xa=Ve(!0);return v0(),gr(m.createJSDocThisTag(ki,xa,Vs(en,_e(),ni,ma)),en)}function wC(en,ki,ni,ma){const xa=Ve(!0);return v0(),gr(m.createJSDocEnumTag(ki,xa,Vs(en,_e(),ni,ma)),en)}function kV(en,ki,ni,ma){var L1;let xa=v();w2();const vs=$O();v0();let sl=Gu(ni),hp;if(!xa||F(xa.type)){let t1,F1,Bp,DC=!1;for(;(t1=Na(()=>P8(ni)))&&t1.kind!==351;)if(DC=!0,t1.kind===350)if(F1){const i4=Jn(p.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);i4&&ic(i4,pk(Ue,0,0,p.The_tag_was_first_specified_here));break}else F1=t1;else Bp=Ht(Bp,t1);if(DC){const i4=xa&&xa.type.kind===187,EV=m.createJSDocTypeLiteral(Bp,i4);xa=F1&&F1.typeExpression&&!F(F1.typeExpression.type)?F1.typeExpression:gr(EV,en),hp=xa.end}}hp=hp||sl!==void 0?_e():((L1=vs!=null?vs:xa)!=null?L1:ki).end,sl||(sl=Vs(en,hp,ni,ma));const Ey=m.createJSDocTypedefTag(ki,xa,vs,sl);return gr(Ey,en,hp)}function $O(en){const ki=t.getTokenStart();if(!Wp(q()))return;const ni=I2();if(Ms(25)){const ma=$O(!0),xa=m.createModuleDeclaration(void 0,ni,ma,en?4:void 0);return gr(xa,ki)}return en&&(ni.flags|=2048),ni}function dA(en){const ki=_e();let ni,ma;for(;ni=Na(()=>EC(4,en));){if(ni.kind===351){he(ni.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}ma=Ht(ma,ni)}return Hl(ma||[],ki)}function An(en,ki){const ni=dA(ki),ma=Na(()=>{if(v6(60)){const xa=fA(ki);if(xa&&xa.kind===348)return xa}});return gr(m.createJSDocSignature(void 0,ni,ma),en)}function r4(en,ki,ni,ma){const xa=$O();v0();let vs=Gu(ni);const sl=An(en,ni);vs||(vs=Vs(en,_e(),ni,ma));const hp=vs!==void 0?_e():sl.end;return gr(m.createJSDocCallbackTag(ki,sl,xa,vs),en,hp)}function n4(en,ki,ni,ma){v0();let xa=Gu(ni);const vs=An(en,ni);xa||(xa=Vs(en,_e(),ni,ma));const sl=xa!==void 0?_e():vs.end;return gr(m.createJSDocOverloadTag(ki,vs,xa),en,sl)}function I8(en,ki){for(;!Be(en)||!Be(ki);)if(!Be(en)&&!Be(ki)&&en.right.escapedText===ki.right.escapedText)en=en.left,ki=ki.left;else return!1;return en.escapedText===ki.escapedText}function P8(en){return EC(1,en)}function EC(en,ki,ni){let ma=!0,xa=!1;for(;;)switch(Ft()){case 60:if(ma){const vs=AC(en,ki);return vs&&(vs.kind===347||vs.kind===354)&&en!==4&&ni&&(Be(vs.name)||!I8(ni,vs.name.left))?!1:vs}xa=!1;break;case 4:ma=!0,xa=!1;break;case 42:xa&&(ma=!1),xa=!0;break;case 80:ma=!1;break;case 1:return!1}}function AC(en,ki){D.assert(q()===60);const ni=t.getTokenFullStart();Ft();const ma=I2(),xa=w2();let vs;switch(ma.escapedText){case"type":return en===1&&Pn(ni,ma);case"prop":case"property":vs=1;break;case"arg":case"argument":case"param":vs=6;break;case"template":return wV(ni,ma,ki,xa);default:return!1}return en&vs?se(ni,ma,en,ki):!1}function CV(){const en=_e(),ki=v6(23);ki&&v0();const ni=I2(p.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let ma;if(ki&&(v0(),Yr(64),ma=ot(8388608,Xr),Yr(24)),!Eu(ni))return gr(m.createTypeParameterDeclaration(void 0,ni,void 0,ma),en)}function N2(){const en=_e(),ki=[];do{v0();const ni=CV();ni!==void 0&&ki.push(ni),w2()}while(v6(28));return Hl(ki,en)}function wV(en,ki,ni,ma){const xa=q()===19?Ve():void 0,vs=N2();return gr(m.createJSDocTemplateTag(ki,xa,vs,Vs(en,_e(),ni,ma)),en)}function v6(en){return q()===en?(Ft(),!0):!1}function HO(){let en=I2();for(Ms(23)&&Yr(24);Ms(25);){const ki=I2();Ms(23)&&Yr(24),en=gy(en,ki)}return en}function I2(en){if(!Wp(q()))return r_(80,!en,en||p.Identifier_expected);yr++;const ki=t.getTokenStart(),ni=t.getTokenEnd(),ma=q(),xa=Zf(t.getTokenValue()),vs=gr(O(xa,ma),ki,ni);return Ft(),vs}}})(D8=e.JSDocParser||(e.JSDocParser={}))})(xb||(xb={})),(e=>{function t(k,E,O,N){if(N=N||D.shouldAssert(2),m(k,E,O,N),$ce(O))return k;if(k.statements.length===0)return xb.parseSourceFile(k.fileName,E,k.languageVersion,void 0,!0,k.scriptKind,k.setExternalModuleIndicator);const B=k;D.assert(!B.hasBeenIncrementallyParsed),B.hasBeenIncrementallyParsed=!0,xb.fixupParentReferences(B);const U=k.text,V=y(k),re=_(k,O);m(k,E,re,N),D.assert(re.span.start<=O.span.start),D.assert(qf(re.span)===qf(O.span)),D.assert(qf(Ew(re))===qf(Ew(O)));const z=Ew(re).length-re.span.length;f(B,re.span.start,qf(re.span),qf(Ew(re)),z,U,E,N);const ce=xb.parseSourceFile(k.fileName,E,k.languageVersion,V,!0,k.scriptKind,k.setExternalModuleIndicator);return ce.commentDirectives=n(k.commentDirectives,ce.commentDirectives,re.span.start,qf(re.span),z,U,E,N),ce.impliedNodeFormat=k.impliedNodeFormat,ce}e.updateSourceFile=t;function n(k,E,O,N,B,U,V,re){if(!k)return E;let z,ce=!1;for(const le of k){const{range:ae,type:ye}=le;if(ae.endN){R();const $={range:{pos:ae.pos+B,end:ae.end+B},type:ye};z=Ht(z,$),re&&D.assert(U.substring(ae.pos,ae.end)===V.substring($.range.pos,$.range.end))}}return R(),z;function R(){ce||(ce=!0,z?E&&z.push(...E):z=E)}}function i(k,E,O,N,B,U){E?re(k):V(k);return;function V(z){let ce="";if(U&&s(z)&&(ce=N.substring(z.pos,z.end)),z._children&&(z._children=void 0),ph(z,z.pos+O,z.end+O),U&&s(z)&&D.assert(ce===B.substring(z.pos,z.end)),js(z,V,re),vm(z))for(const R of z.jsDoc)V(R);l(z,U)}function re(z){z._children=void 0,ph(z,z.pos+O,z.end+O);for(const ce of z)V(ce)}}function s(k){switch(k.kind){case 11:case 9:case 80:return!0}return!1}function o(k,E,O,N,B){D.assert(k.end>=E,"Adjusting an element that was entirely before the change range"),D.assert(k.pos<=O,"Adjusting an element that was entirely after the change range"),D.assert(k.pos<=k.end);const U=Math.min(k.pos,N),V=k.end>=O?k.end+B:Math.min(k.end,N);D.assert(U<=V),k.parent&&(D.assertGreaterThanOrEqual(U,k.parent.pos),D.assertLessThanOrEqual(V,k.parent.end)),ph(k,U,V)}function l(k,E){if(E){let O=k.pos;const N=B=>{D.assert(B.pos>=O),O=B.end};if(vm(k))for(const B of k.jsDoc)N(B);js(k,N),D.assert(O<=k.end)}}function f(k,E,O,N,B,U,V,re){z(k);return;function z(R){if(D.assert(R.pos<=R.end),R.pos>O){i(R,!1,B,U,V,re);return}const le=R.end;if(le>=E){if(R.intersectsChange=!0,R._children=void 0,o(R,E,O,N,B),js(R,z,ce),vm(R))for(const ae of R.jsDoc)z(ae);l(R,re);return}D.assert(leO){i(R,!0,B,U,V,re);return}const le=R.end;if(le>=E){R.intersectsChange=!0,R._children=void 0,o(R,E,O,N,B);for(const ae of R)z(ae);return}D.assert(le0&&V<=1;V++){const re=h(k,N);D.assert(re.pos<=N);const z=re.pos;N=Math.max(0,z-1)}const B=L_(N,qf(E.span)),U=E.newLength+(E.span.start-N);return TD(B,U)}function h(k,E){let O=k,N;if(js(k,U),N){const V=B(N);V.pos>O.pos&&(O=V)}return O;function B(V){for(;;){const re=vH(V);if(re)V=re;else return V}}function U(V){if(!Eu(V))if(V.pos<=E){if(V.pos>=O.pos&&(O=V),EE),!0}}function m(k,E,O,N){const B=k.text;if(O&&(D.assert(B.length-O.span.length+O.newLength===E.length),N||D.shouldAssert(3))){const U=B.substr(0,O.span.start),V=E.substr(0,O.span.start);D.assert(U===V);const re=B.substring(qf(O.span),B.length),z=E.substring(qf(Ew(O)),E.length);D.assert(re===z)}}function y(k){let E=k.statements,O=0;D.assert(O=ce.pos&&V=ce.pos&&V{k[k.Value=-1]="Value"})(T||(T={}))})(iB||(iB={})),aB=new Map,ide=/^\/\/\/\s*<(\S+)\s.*?\/>/im,ade=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im}});function sB(e){const t=new Map,n=new Map;return Vt(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&n.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:n}}function Uk(){return jde||(jde=sB(Ky))}function sde(e){return ode(e,zu)}function ode(e,t){const n=zt(e.type.keys()),i=(e.deprecatedKeys?n.filter(s=>!e.deprecatedKeys.has(s)):n).map(s=>`'${s}'`).join(", ");return t(p.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function oB(e,t,n){return Ode(e,g1(t||""),n)}function cde(e,t="",n){if(t=g1(t),Ga(t,"-"))return;if(e.type==="listOrElement"&&!Qo(t,","))return N7(e,t,n);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return Mr(i,s=>N7(e.element,parseInt(s),n));case"string":return Mr(i,s=>N7(e.element,s||"",n));case"boolean":case"object":return D.fail(`List of ${e.element.type} is not yet supported.`);default:return Mr(i,s=>oB(e.element,s,n))}}function lde(e){return e.name}function pX(e,t,n,i,s){var o;if((o=t.alternateMode)!=null&&o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return Tb(s,i,t.alternateMode.diagnostic,e);const l=ds(e,t.optionDeclarations,lde);return l?Tb(s,i,t.unknownDidYouMeanDiagnostic,n||e,l.name):Tb(s,i,t.unknownOptionDiagnostic,n||e)}function dX(e,t,n){const i={};let s;const o=[],l=[];return f(t),{options:i,watchOptions:s,fileNames:o,errors:l};function f(h){let m=0;for(;mCu.readFile(k)));if(!bs(m)){l.push(m);return}const y=[];let T=0;for(;;){for(;T=m.length)break;const k=T;if(m.charCodeAt(k)===34){for(T++;T32;)T++;y.push(m.substring(k,T))}}f(y)}}function ude(e,t,n,i,s,o){if(i.isTSConfigOnly){const l=e[t];l==="null"?(s[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(s[i.name]=N7(i,!1,o),t++):(l==="true"&&t++,o.push(zu(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(zu(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!Ga(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&o.push(zu(n.optionTypeMismatchDiagnostic,i.name,lB(i))),e[t]!=="null")switch(i.type){case"number":s[i.name]=N7(i,parseInt(e[t]),o),t++;break;case"boolean":const l=e[t];s[i.name]=N7(i,l!=="false",o),(l==="false"||l==="true")&&t++;break;case"string":s[i.name]=N7(i,e[t]||"",o),t++;break;case"list":const f=cde(i,e[t],o);s[i.name]=f||[],f&&t++;break;case"listOrElement":D.fail("listOrElement not supported here");break;default:s[i.name]=oB(i,e[t],o),t++;break}else s[i.name]=void 0,t++;return t}function bAe(e,t){return dX(BI,e,t)}function mX(e,t){return gX(Uk,e,t)}function gX(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:s}=e();if(n){const o=s.get(t);o!==void 0&&(t=o)}return i.get(t)}function _de(){return Jde||(Jde=sB(gB))}function xAe(e){const{options:t,watchOptions:n,fileNames:i,errors:s}=dX(Vde,e),o=t;return i.length===0&&i.push("."),o.clean&&o.force&&s.push(zu(p.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&s.push(zu(p.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&s.push(zu(p.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&s.push(zu(p.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:i,errors:s}}function TAe(e,...t){return zu.apply(void 0,arguments).messageText}function wI(e,t,n,i,s,o){const l=AI(e,h=>n.readFile(h));if(!bs(l)){n.onUnRecoverableConfigFileDiagnostic(l);return}const f=CI(e,l),_=n.getCurrentDirectory();return f.path=Sl(e,_,N_(n.useCaseSensitiveFileNames)),f.resolvedPath=f.path,f.originalFileName=f.fileName,NI(f,n,ms(ga(e),_),t,ms(e,_),void 0,o,i,s)}function EI(e,t){const n=AI(e,t);return bs(n)?hX(e,n):{config:{},error:n}}function hX(e,t){const n=CI(e,t);return{config:hde(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function fde(e,t){const n=AI(e,t);return bs(n)?CI(e,n):{fileName:e,parseDiagnostics:[n]}}function AI(e,t){let n;try{n=t(e)}catch(i){return zu(p.Cannot_read_file_0_Colon_1,e,i.message)}return n===void 0?zu(p.Cannot_read_file_0,e):n}function cB(e){return Fm(e,lde)}function pde(){return Wde||(Wde=sB(LI))}function dde(){return qde||(qde=cB(Ky))}function mde(){return $de||($de=cB(LI))}function gde(){return Hde||(Hde=cB(hB))}function SAe(){return JX===void 0&&(JX={name:void 0,type:"object",elementOptions:cB([BX,jX,zX,K9,{name:"references",type:"list",element:{name:"references",type:"object"},category:p.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:p.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:p.File_Management,defaultValueDescription:p.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:p.File_Management,defaultValueDescription:p.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},OI])}),JX}function hde(e,t,n){var i;const s=(i=e.statements[0])==null?void 0:i.expression;if(s&&s.kind!==209){if(t.push(P0(e,s,p.The_root_value_of_a_0_file_must_be_an_object,H_(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Op(s)){const o=on(s.elements,Dc);if(o)return DI(e,o,t,!0,n)}return{}}return DI(e,s,t,!0,n)}function yde(e,t){var n;return DI(e,(n=e.statements[0])==null?void 0:n.expression,t,!0,void 0)}function DI(e,t,n,i,s){if(!t)return i?{}:void 0;return f(t,s==null?void 0:s.rootOptions);function o(h,m){var y;const T=i?{}:void 0;for(const k of h.properties){if(k.kind!==302){n.push(P0(e,k,p.Property_assignment_expected));continue}k.questionToken&&n.push(P0(e,k.questionToken,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),_(k.name)||n.push(P0(e,k.name,p.String_literal_with_double_quotes_expected));const E=RD(k.name)?void 0:U5(k.name),O=E&&Ba(E),N=O?(y=m==null?void 0:m.elementOptions)==null?void 0:y.get(O):void 0,B=f(k.initializer,N);typeof O!="undefined"&&(i&&(T[O]=B),s==null||s.onPropertySet(O,B,k,m,N))}return T}function l(h,m){if(!i){h.forEach(y=>f(y,m));return}return Mn(h.map(y=>f(y,m)),y=>y!==void 0)}function f(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return _(h)||n.push(P0(e,h,p.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 223:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 209:return o(h,m);case 208:return l(h.elements,m&&m.element)}m?n.push(P0(e,h,p.Compiler_option_0_requires_a_value_of_type_1,m.name,lB(m))):n.push(P0(e,h,p.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function _(h){return sc(h)&&uF(h,e)}}function lB(e){return e.type==="listOrElement"?`${lB(e.element)} or Array`:e.type==="list"?"Array":bs(e.type)?e.type:"string"}function vde(e,t){if(e){if(Y9(t))return!e.disallowNullOrUndefined;if(e.type==="list")return ns(t);if(e.type==="listOrElement")return ns(t)||vde(e.element,t);const n=bs(e.type)?e.type:"string";return typeof t===n}return!1}function kAe(e,t,n){var i,s,o;const l=N_(n.useCaseSensitiveFileNames),f=er(Mn(e.fileNames,(s=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&s.validatedIncludeSpecs?wAe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):Cp),y=>fD(ms(t,n.getCurrentDirectory()),ms(y,n.getCurrentDirectory()),l)),_=bX(e.options,{configFilePath:ms(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),h=e.watchOptions&&EAe(e.watchOptions);return Xs(fa({compilerOptions:Xs(fa({},yX(_)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:h&&yX(h),references:er(e.projectReferences,y=>Xs(fa({},y),{path:y.originalPath?y.originalPath:"",originalPath:void 0})),files:Nr(f)?f:void 0},(o=e.options.configFile)!=null&&o.configFileSpecs?{include:CAe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:e.compileOnSave?!0:void 0})}function yX(e){return fa({},zt(e.entries()).reduce((t,n)=>Xs(fa({},t),{[n[0]]:n[1]}),{}))}function CAe(e){if(Nr(e)){if(Nr(e)!==1)return e;if(e[0]!==vB)return e}}function wAe(e,t,n,i){if(!t)return Cp;const s=m9(e,n,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=s.excludePattern&&mb(s.excludePattern,i.useCaseSensitiveFileNames),l=s.includeFilePattern&&mb(s.includeFilePattern,i.useCaseSensitiveFileNames);return l?o?f=>!(l.test(f)&&!o.test(f)):f=>!l.test(f):o?f=>o.test(f):Cp}function bde(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return bde(e.element);default:return e.type}}function vX(e,t){return Zd(t,(n,i)=>{if(n===e)return i})}function bX(e,t){return xde(e,Uk(),t)}function EAe(e){return xde(e,pde())}function xde(e,{optionsNameMap:t},n){const i=new Map,s=n&&N_(n.useCaseSensitiveFileNames);for(const o in e)if(Hs(e,o)){if(t.has(o)&&(t.get(o).category===p.Command_line_Options||t.get(o).category===p.Output_Formatting))continue;const l=e[o],f=t.get(o.toLowerCase());if(f){D.assert(f.type!=="listOrElement");const _=bde(f);_?f.type==="list"?i.set(o,l.map(h=>vX(h,_))):i.set(o,vX(l,_)):n&&f.isFilePath?i.set(o,fD(n.configFilePath,ms(l,ga(n.configFilePath)),s)):i.set(o,l)}}return i}function AAe(e,t){const n=Tde(e);return s();function i(o){return Array(o+1).join(" ")}function s(){const o=[],l=i(2);return pB.forEach(f=>{if(!n.has(f.name))return;const _=n.get(f.name),h=EX(f);_!==h?o.push(`${l}${f.name}: ${_}`):Hs(yB,f.name)&&o.push(`${l}${f.name}: ${h}`)}),o.join(t)+t}}function Tde(e){const t=k0(e,yB);return bX(t)}function DAe(e,t,n){const i=Tde(e);return l();function s(f){return Array(f+1).join(" ")}function o({category:f,name:_,isCommandLineOnly:h}){const m=[p.Command_line_Options,p.Editor_Support,p.Compiler_Diagnostics,p.Backwards_Compatibility,p.Watch_and_Build_Modes,p.Output_Formatting];return!h&&f!==void 0&&(!m.includes(f)||i.has(_))}function l(){const f=new Map;f.set(p.Projects,[]),f.set(p.Language_and_Environment,[]),f.set(p.Modules,[]),f.set(p.JavaScript_Support,[]),f.set(p.Emit,[]),f.set(p.Interop_Constraints,[]),f.set(p.Type_Checking,[]),f.set(p.Completeness,[]);for(const k of Ky)if(o(k)){let E=f.get(k.category);E||f.set(k.category,E=[]),E.push(k)}let _=0,h=0;const m=[];f.forEach((k,E)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${Vo(E)} */`});for(const O of k){let N;i.has(O.name)?N=`"${O.name}": ${JSON.stringify(i.get(O.name))}${(h+=1)===i.size?"":","}`:N=`// "${O.name}": ${JSON.stringify(EX(O))},`,m.push({value:N,description:`/* ${O.description&&Vo(O.description)||O.name} */`}),_=Math.max(N.length,_)}});const y=s(2),T=[];T.push("{"),T.push(`${y}"compilerOptions": {`),T.push(`${y}${y}/* ${Vo(p.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),T.push("");for(const k of m){const{value:E,description:O=""}=k;T.push(E&&`${y}${y}${E}${O&&s(_-E.length+2)+O}`)}if(t.length){T.push(`${y}},`),T.push(`${y}"files": [`);for(let k=0;ktypeof we=="object","object"),ae=re(z("files"));if(ae){const we=le==="no-prop"||ns(le)&&le.length===0,K=Hs(T,"extends");if(ae.length===0&&we&&!K)if(t){const Ze=l||"tsconfig.json",Re=p.The_files_list_in_config_file_0_is_empty,Fe=jD(t,"files",Ae=>Ae.initializer),Ue=Tb(t,Fe,Re,Ze);m.push(Ue)}else R(p.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ye=re(z("include"));const $=z("exclude");let ee=!1,te=re($);if($==="no-prop"&&T.compilerOptions){const we=T.compilerOptions.outDir,K=T.compilerOptions.declarationDir;(we||K)&&(te=[we,K].filter(Ze=>!!Ze))}ae===void 0&&ye===void 0&&(ye=[vB],ee=!0);let me,ve;return ye&&(me=Bde(ye,m,!0,t,"include")),te&&(ve=Bde(te,m,!1,t,"exclude")),{filesSpecs:ae,includeSpecs:ye,excludeSpecs:te,validatedFilesSpec:Mn(ae,bs),validatedIncludeSpecs:me,validatedExcludeSpecs:ve,pathPatterns:void 0,isDefaultIncludeSpec:ee}}function U(le){const ae=PI(O,le,k,n,_);return wde(ae,II(T),f)&&m.push(Cde(O,l)),ae}function V(le){let ae;const ye=ce("references",$=>typeof $=="object","object");if(ns(ye))for(const $ of ye)typeof $.path!="string"?R(p.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ae||(ae=[])).push({path:ms($.path,le),originalPath:$.path,prepend:$.prepend,circular:$.circular});return ae}function re(le){return ns(le)?le:void 0}function z(le){return ce(le,bs,"string")}function ce(le,ae,ye){if(Hs(T,le)&&!Y9(T[le]))if(ns(T[le])){const $=T[le];return!t&&!yn($,ae)&&m.push(zu(p.Compiler_option_0_requires_a_value_of_type_1,le,ye)),$}else return R(p.Compiler_option_0_requires_a_value_of_type_1,le,"Array"),"not-array";return"no-prop"}function R(le,...ae){t||m.push(zu(le,...ae))}}function PAe(e){return e.code===p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function Cde({includeSpecs:e,excludeSpecs:t},n){return zu(p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function wde(e,t,n){return e.length===0&&t&&(!n||n.length===0)}function II(e){return!Hs(e,"files")&&!Hs(e,"references")}function SX(e,t,n,i,s){const o=i.length;return wde(e,s)?i.push(Cde(n,t)):kd(i,l=>!PAe(l)),o!==i.length}function OAe(e){return!!e.options}function Ede(e,t,n,i,s,o,l,f){var _;i=kc(i);const h=ms(s||"",i);if(o.indexOf(h)>=0)return l.push(zu(p.Circularity_detected_while_resolving_configuration_Colon_0,[...o,h].join(" -> "))),{raw:e||yde(t,l)};const m=e?MAe(e,n,i,s,l):LAe(t,n,i,s,l);if((_=m.options)!=null&&_.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){o=o.concat([h]);const T={options:{}};bs(m.extendedConfigPath)?y(T,m.extendedConfigPath):m.extendedConfigPath.forEach(k=>y(T,k)),!m.raw.include&&T.include&&(m.raw.include=T.include),!m.raw.exclude&&T.exclude&&(m.raw.exclude=T.exclude),!m.raw.files&&T.files&&(m.raw.files=T.files),m.raw.compileOnSave===void 0&&T.compileOnSave&&(m.raw.compileOnSave=T.compileOnSave),t&&T.extendedSourceFiles&&(t.extendedSourceFiles=zt(T.extendedSourceFiles.keys())),m.options=_m(T.options,m.options),m.watchOptions=m.watchOptions&&T.watchOptions?_m(T.watchOptions,m.watchOptions):m.watchOptions||T.watchOptions}return m;function y(T,k){const E=FAe(t,k,n,o,l,f,T);if(E&&OAe(E)){const O=E.raw;let N;const B=U=>{O[U]&&(T[U]=er(O[U],V=>t0(V)?V:ta(N||(N=Tw(ga(k),i,N_(n.useCaseSensitiveFileNames))),V)))};B("include"),B("exclude"),B("files"),O.compileOnSave!==void 0&&(T.compileOnSave=O.compileOnSave),_m(T.options,E.options),T.watchOptions=T.watchOptions&&E.watchOptions?_m({},T.watchOptions,E.watchOptions):T.watchOptions||E.watchOptions}}}function MAe(e,t,n,i,s){Hs(e,"excludes")&&s.push(zu(p.Unknown_option_excludes_Did_you_mean_exclude));const o=Ide(e.compilerOptions,n,s,i),l=Pde(e.typeAcquisition,n,s,i),f=zAe(e.watchOptions,n,s);e.compileOnSave=RAe(e,n,s);const _=e.extends||e.extends===""?Ade(e.extends,t,n,i,s):void 0;return{raw:e,options:o,watchOptions:f,typeAcquisition:l,extendedConfigPath:_}}function Ade(e,t,n,i,s,o,l,f){let _;const h=i?Sde(i,n):n;if(bs(e))_=Dde(e,t,h,s,l,f);else if(ns(e)){_=[];for(let m=0;mU.name===k)&&(h=Ht(h,O.name))))}}function Dde(e,t,n,i,s,o){if(e=kc(e),t0(e)||Ga(e,"./")||Ga(e,"../")){let f=ms(e,n);if(!t.fileExists(f)&&!gi(f,".json")&&(f=`${f}.json`,!t.fileExists(f))){i.push(Tb(o,s,p.File_0_not_found,e));return}return f}const l=lme(e,ta(n,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(Tb(o,s,p.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(Tb(o,s,p.File_0_not_found,e))}function FAe(e,t,n,i,s,o,l){var y;const f=n.useCaseSensitiveFileNames?t:Cd(t);let _,h,m;if(o&&(_=o.get(f))?{extendedResult:h,extendedConfig:m}=_:(h=fde(t,T=>n.readFile(T)),h.parseDiagnostics.length||(m=Ede(void 0,h,n,ga(t),H_(t),i,s,o)),o&&o.set(f,{extendedResult:h,extendedConfig:m})),e&&(((y=l.extendedSourceFiles)!=null?y:l.extendedSourceFiles=new Set).add(h.fileName),h.extendedSourceFiles))for(const T of h.extendedSourceFiles)l.extendedSourceFiles.add(T);if(h.parseDiagnostics.length){s.push(...h.parseDiagnostics);return}return m}function RAe(e,t,n){if(!Hs(e,OI.name))return!1;const i=US(OI,e.compileOnSave,t,n);return typeof i=="boolean"&&i}function BAe(e,t,n){const i=[];return{options:Ide(e,t,i,n),errors:i}}function jAe(e,t,n){const i=[];return{options:Pde(e,t,i,n),errors:i}}function Nde(e){return e&&H_(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function Ide(e,t,n,i){const s=Nde(i);return kX(dde(),e,t,s,BI,n),i&&(s.configFilePath=kc(i)),s}function uB(e){return{enable:!!e&&H_(e)==="jsconfig.json",include:[],exclude:[]}}function Pde(e,t,n,i){const s=uB(i);return kX(gde(),e,t,s,RX,n),s}function zAe(e,t,n){return kX(mde(),e,t,void 0,jI,n)}function kX(e,t,n,i,s,o){if(t){for(const l in t){const f=e.get(l);f?(i||(i={}))[f.name]=US(f,t[l],n,o):o.push(pX(l,s))}return i}}function Tb(e,t,n,...i){return e&&t?P0(e,t,n,...i):zu(n,...i)}function US(e,t,n,i,s,o,l){if(e.isCommandLineOnly){i.push(Tb(l,s==null?void 0:s.name,p.Option_0_can_only_be_specified_on_command_line,e.name));return}if(vde(e,t)){const f=e.type;if(f==="list"&&ns(t))return Mde(e,t,n,i,s,o,l);if(f==="listOrElement")return ns(t)?Mde(e,t,n,i,s,o,l):US(e.element,t,n,i,s,o,l);if(!bs(e.type))return Ode(e,t,i,o,l);const _=N7(e,t,i,o,l);return Y9(_)?_:JAe(e,n,_)}else i.push(Tb(l,o,p.Compiler_option_0_requires_a_value_of_type_1,e.name,lB(e)))}function JAe(e,t,n){return e.isFilePath&&(n=ms(n,t),n===""&&(n=".")),n}function N7(e,t,n,i,s){var o;if(Y9(t))return;const l=(o=e.extraValidation)==null?void 0:o.call(e,t);if(!l)return t;n.push(Tb(s,i,...l))}function Ode(e,t,n,i,s){if(Y9(t))return;const o=t.toLowerCase(),l=e.type.get(o);if(l!==void 0)return N7(e,l,n,i,s);n.push(ode(e,(f,..._)=>Tb(s,i,f,..._)))}function Mde(e,t,n,i,s,o,l){return Mn(er(t,(f,_)=>US(e.element,f,n,i,s,o==null?void 0:o.elements[_],l)),f=>e.listPreserveFalsyValues?!0:!!f)}function PI(e,t,n,i,s=tt){t=ec(t);const o=N_(i.useCaseSensitiveFileNames),l=new Map,f=new Map,_=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:y}=e,T=g9(n,s),k=IN(n,T);if(h)for(const B of h){const U=ms(B,t);l.set(o(U),U)}let E;if(m&&m.length>0)for(const B of i.readDirectory(t,x_(k),y,m,void 0)){if(Xl(B,".json")){if(!E){const re=m.filter(ce=>gi(ce,".json")),z=er(VF(re,t,"files"),ce=>`^${ce}$`);E=z?z.map(ce=>mb(ce,i.useCaseSensitiveFileNames)):tt}if(zi(E,re=>re.test(B))!==-1){const re=o(B);!l.has(re)&&!_.has(re)&&_.set(re,B)}continue}if(WAe(B,l,f,T,o))continue;qAe(B,f,T,o);const U=o(B);!l.has(U)&&!f.has(U)&&f.set(U,B)}const O=zt(l.values()),N=zt(f.values());return O.concat(N,zt(_.values()))}function Lde(e,t,n,i,s){const{validatedFilesSpec:o,validatedIncludeSpecs:l,validatedExcludeSpecs:f}=t;if(!Nr(l)||!Nr(f))return!1;n=ec(n);const _=N_(i);if(o){for(const h of o)if(_(ms(h,n))===e)return!1}return Rde(e,f,i,s,n)}function Fde(e){const t=Ga(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(gi(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function _B(e,t,n,i){return Rde(e,Mn(t,s=>!Fde(s)),n,i)}function Rde(e,t,n,i,s){const o=d9(t,ta(ec(i),s),"exclude"),l=o&&mb(o,n);return l?l.test(e)?!0:!Gh(e)&&l.test(Dp(e)):!1}function Bde(e,t,n,i,s){return e.filter(l=>{if(!bs(l))return!1;const f=CX(l,n);return f!==void 0&&t.push(o(...f)),f===void 0});function o(l,f){const _=eF(i,s,f);return Tb(i,_,l,f)}}function CX(e,t){if(D.assert(typeof e=="string"),t&&Gde.test(e))return[p.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(Fde(e))return[p.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function UAe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,i){const s=d9(t,n,"exclude"),o=s&&new RegExp(s,i?"":"i"),l={};if(e!==void 0){const f=[];for(const _ of e){const h=ec(ta(n,_));if(o&&o.test(h))continue;const m=VAe(h,i);if(m){const{key:y,flags:T}=m,k=l[y];(k===void 0||kZl(e,l)?l:void 0);if(!o)return!1;for(const l of o){if(Xl(e,l))return!1;const f=s(m3(e,l));if(t.has(f)||n.has(f)){if(l===".d.ts"&&(Xl(e,".js")||Xl(e,".jsx")))continue;return!0}}return!1}function qAe(e,t,n,i){const s=Vt(n,o=>Zl(e,o)?o:void 0);if(s)for(let o=s.length-1;o>=0;o--){const l=s[o];if(Xl(e,l))return;const f=i(m3(e,l));t.delete(f)}}function $Ae(e){const t={};for(const n in e)if(Hs(e,n)){const i=mX(n);i!==void 0&&(t[n]=wX(e[n],i))}return t}function wX(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!ns(e))return wX(e,t.element);case"list":const n=t.element;return ns(e)?Mr(e,i=>wX(i,n)):"";default:return Zd(t.type,(i,s)=>{if(i===e)return s})}}function EX(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return EX(e.element);case"object":return{};default:const n=nc(e.type.keys());return n!==void 0?n:D.fail("Expected 'option.type' to have entries.")}}var OI,AX,Q9,DX,MI,fB,LI,FI,RI,NX,pB,Ky,IX,PX,OX,dB,mB,MX,LX,FX,gB,hB,jde,zde,yB,BI,Jde,Ude,Vde,RX,Wde,jI,qde,$de,Hde,K9,BX,jX,zX,JX,vB,Gde,Xde,HAe=or({"src/compiler/commandLineParser.ts"(){"use strict";ho(),OI={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},AX=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),Q9=new Map(tf(AX.entries(),([e,t])=>[""+t,e])),DX=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],MI=DX.map(e=>e[0]),fB=new Map(DX),LI=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:p.Watch_and_Build_Modes,description:p.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:p.Watch_and_Build_Modes,description:p.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:p.Watch_and_Build_Modes,description:p.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:p.Watch_and_Build_Modes,description:p.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:CX},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:CX},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_files_from_the_watch_mode_s_processing}],FI=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:p.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:p.Output_Formatting,description:p.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:p.Output_Formatting,description:p.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:p.Compiler_Diagnostics,description:p.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:p.FILE_OR_DIRECTORY,category:p.Compiler_Diagnostics,description:p.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:p.DIRECTORY,category:p.Compiler_Diagnostics,description:p.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:p.Projects,description:p.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:p.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:p.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:p.Emit,description:p.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Watch_and_Build_Modes,description:p.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:p.Platform_specific}],RI={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:p.VERSION,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},NX={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Modules,description:p.Specify_what_module_code_is_generated,defaultValueDescription:void 0},pB=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:p.Command_line_Options,paramType:p.FILE_OR_DIRECTORY,description:p.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},RI,NX,{name:"lib",type:"list",element:{name:"lib",type:fB,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:p.JavaScript_Support,description:p.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:p.JavaScript_Support,description:p.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:AX,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.FILE,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.DIRECTORY,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.LOCATION,category:p.Modules,description:p.Specify_the_root_folder_within_your_source_files,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:p.FILE,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:p.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:p.Emit,description:p.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:p.Interop_Constraints,description:p.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:p.Interop_Constraints,description:p.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Type_Checking,description:p.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:p.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Ensure_use_strict_is_always_emitted,defaultValueDescription:p.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:p.Type_Checking,description:p.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsModuleResolution:!0,paramType:p.STRATEGY,category:p.Modules,description:p.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:p.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:p.Modules,description:p.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:p.Modules,description:p.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:p.Modules,description:p.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:p.Modules,description:p.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Modules,description:p.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Interop_Constraints,description:p.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:p.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Interop_Constraints,description:p.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:p.Interop_Constraints,description:p.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:p.Modules,description:p.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:p.Modules,description:p.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:p.Language_and_Environment,description:p.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:p.Language_and_Environment,description:p.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:p.Language_and_Environment,description:p.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:p.Modules,description:p.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:p.Backwards_Compatibility,paramType:p.FILE,transpileOptionValue:void 0,description:p.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:p.Backwards_Compatibility,description:p.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:p.NEWLINE,category:p.Emit,description:p.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Output_Formatting,description:p.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:p.Language_and_Environment,affectsProgramStructure:!0,description:p.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:p.Editor_Support,description:p.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.DIRECTORY,category:p.Emit,transpileOptionValue:void 0,description:p.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:p.Interop_Constraints,description:p.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:p.JavaScript_Support,description:p.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:p.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:p.Backwards_Compatibility,description:p.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:p.Specify_a_list_of_language_service_plugins_to_include,category:p.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:p.Control_what_method_is_used_to_detect_module_format_JS_files,category:p.Language_and_Environment,defaultValueDescription:p.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],Ky=[...FI,...pB],IX=Ky.filter(e=>!!e.affectsSemanticDiagnostics),PX=Ky.filter(e=>!!e.affectsEmit),OX=Ky.filter(e=>!!e.affectsDeclarationPath),dB=Ky.filter(e=>!!e.affectsModuleResolution),mB=Ky.filter(e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics),MX=Ky.filter(e=>!!e.affectsProgramStructure),LX=Ky.filter(e=>Hs(e,"transpileOptionValue")),FX=[{name:"verbose",shortName:"v",category:p.Command_line_Options,description:p.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:p.Command_line_Options,description:p.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:p.Command_line_Options,description:p.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:p.Command_line_Options,description:p.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],gB=[...FI,...FX],hB=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],zde={diagnostic:p.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:_de},yB={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},BI={alternateMode:zde,getOptionsNameMap:Uk,optionDeclarations:Ky,unknownOptionDiagnostic:p.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:p.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Compiler_option_0_expects_an_argument},Ude={diagnostic:p.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Uk},Vde={alternateMode:Ude,getOptionsNameMap:_de,optionDeclarations:gB,unknownOptionDiagnostic:p.Unknown_build_option_0,unknownDidYouMeanDiagnostic:p.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Build_option_0_requires_a_value_of_type_1},RX={optionDeclarations:hB,unknownOptionDiagnostic:p.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:p.Unknown_type_acquisition_option_0_Did_you_mean_1},jI={getOptionsNameMap:pde,optionDeclarations:LI,unknownOptionDiagnostic:p.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:p.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Watch_option_0_requires_a_value_of_type_1},K9={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:p.File_Management,disallowNullOrUndefined:!0},BX={name:"compilerOptions",type:"object",elementOptions:dde(),extraKeyDiagnostics:BI},jX={name:"watchOptions",type:"object",elementOptions:mde(),extraKeyDiagnostics:jI},zX={name:"typeAcquisition",type:"object",elementOptions:gde(),extraKeyDiagnostics:RX},vB="**/*",Gde=/(^|\/)\*\*\/?$/,Xde=/^[^*?]*(?=\/[^/]*[*?])/}});function es(e){e.trace(SH.apply(void 0,arguments))}function ev(e,t){return!!e.traceResolution&&t.trace!==void 0}function I7(e,t){let n;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(n={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Yl.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:n,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function bB(e){return I7(void 0,e)}function Zde(e){if(e)return D.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function UX(e){const t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function VX(e){if(e)return D.assert($F(e.extension)),{fileName:e.path,packageId:e.packageId}}function Yde(e,t,n,i,s,o,l,f){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!hf(e)){const{resolvedFileName:_,originalPath:h}=eme(t.path,l.host,l.traceEnabled);h&&(t=Xs(fa({},t),{path:_,originalPath:h}))}return Qde(t,n,i,s,o,l.resultFromCache,f)}function Qde(e,t,n,i,s,o,l){return o?(o.failedLookupLocations=Vk(o.failedLookupLocations,n),o.affectingLocations=Vk(o.affectingLocations,i),o.resolutionDiagnostics=Vk(o.resolutionDiagnostics,s),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:eE(n),affectingLocations:eE(i),resolutionDiagnostics:eE(s),node10Result:l}}function eE(e){return e.length?e:void 0}function Vk(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function Kde(e,t,n,i){if(!Hs(e,t)){i.traceEnabled&&es(i.host,p.package_json_does_not_have_a_0_field,t);return}const s=e[t];if(typeof s!==n||s===null){i.traceEnabled&&es(i.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,s===null?"null":typeof s);return}return s}function xB(e,t,n,i){const s=Kde(e,t,"string",i);if(s===void 0)return;if(!s){i.traceEnabled&&es(i.host,p.package_json_had_a_falsy_0_field,t);return}const o=ec(ta(n,s));return i.traceEnabled&&es(i.host,p.package_json_has_0_field_1_that_references_2,t,s,o),o}function GAe(e,t,n){return xB(e,"typings",t,n)||xB(e,"types",t,n)}function XAe(e,t,n){return xB(e,"tsconfig",t,n)}function ZAe(e,t,n){return xB(e,"main",t,n)}function YAe(e,t){const n=Kde(e,"typesVersions","object",t);if(n!==void 0)return t.traceEnabled&&es(t.host,p.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}function QAe(e,t){const n=YAe(e,t);if(n===void 0)return;if(t.traceEnabled)for(const l in n)Hs(n,l)&&!Bv.tryParse(l)&&es(t.host,p.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=TB(n);if(!i){t.traceEnabled&&es(t.host,p.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,kp);return}const{version:s,paths:o}=i;if(typeof o!="object"){t.traceEnabled&&es(t.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${s}']`,"object",typeof o);return}return i}function TB(e){aZ||(aZ=new Ed(Zu));for(const t in e){if(!Hs(e,t))continue;const n=Bv.tryParse(t);if(n!==void 0&&n.test(aZ))return{version:t,paths:e[t]}}}function zI(e,t){if(e.typeRoots)return e.typeRoots;let n;if(e.configFilePath?n=ga(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),n!==void 0)return KAe(n)}function KAe(e){let t;return jy(ec(e),n=>{const i=ta(n,wme);(t!=null?t:t=[]).push(i)}),t}function eDe(e,t,n){const i=typeof n.useCaseSensitiveFileNames=="function"?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return Yx(e,t,!i)===0}function eme(e,t,n){const i=dDe(e,t,n),s=eDe(e,i,t);return{resolvedFileName:s?e:i,originalPath:s?void 0:e}}function tme(e,t,n){const i=gi(e,"/node_modules/@types")||gi(e,"/node_modules/@types/")?xme(t,n):t;return ta(e,i)}function WX(e,t,n,i,s,o,l){D.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const f=ev(n,i);s&&(n=s.commandLine.options);const _=t?ga(t):void 0;let h=_?o==null?void 0:o.getFromDirectoryCache(e,l,_,s):void 0;if(!h&&_&&!hf(e)&&(h=o==null?void 0:o.getFromNonRelativeNameCache(e,l,_,s)),h)return f&&(es(i,p.Resolving_type_reference_directive_0_containing_file_1,e,t),s&&es(i,p.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),es(i,p.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,_),re(h)),h;const m=zI(n,i);f&&(t===void 0?m===void 0?es(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):es(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?es(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):es(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),s&&es(i,p.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const y=[],T=[];let k=qX(n);l===99&&(Ju(n)===3||Ju(n)===99)&&(k|=32);const E=k&8?Wk(n,!!(k&32)):[],O=[],N={compilerOptions:n,host:i,traceEnabled:f,failedLookupLocations:y,affectingLocations:T,packageJsonInfoCache:o,features:k,conditions:E,requestContainingDirectory:_,reportDiagnostic:R=>void O.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let B=z(),U=!0;B||(B=ce(),U=!1);let V;if(B){const{fileName:R,packageId:le}=B;let ae=R,ye;n.preserveSymlinks||({resolvedFileName:ae,originalPath:ye}=eme(R,i,f)),V={primary:U,resolvedFileName:ae,originalPath:ye,packageId:le,isExternalLibraryImport:$k(R)}}return h={resolvedTypeReferenceDirective:V,failedLookupLocations:eE(y),affectingLocations:eE(T),resolutionDiagnostics:eE(O)},_&&(o==null||o.getOrCreateCacheForDirectory(_,s).set(e,l,h),hf(e)||o==null||o.getOrCreateCacheForNonRelativeName(e,l,s).set(_,h)),f&&re(h),h;function re(R){var le;(le=R.resolvedTypeReferenceDirective)!=null&&le.resolvedFileName?R.resolvedTypeReferenceDirective.packageId?es(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,R.resolvedTypeReferenceDirective.resolvedFileName,ub(R.resolvedTypeReferenceDirective.packageId),R.resolvedTypeReferenceDirective.primary):es(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,R.resolvedTypeReferenceDirective.resolvedFileName,R.resolvedTypeReferenceDirective.primary):es(i,p.Type_reference_directive_0_was_not_resolved,e)}function z(){if(m&&m.length)return f&&es(i,p.Resolving_with_primary_search_path_0,m.join(", ")),bo(m,R=>{const le=tme(R,e,N),ae=Mg(R,i);if(!ae&&f&&es(i,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,R),n.typeRoots){const ye=VS(4,le,!ae,N);if(ye){const $=JI(ye.path),ee=$?w3($,!1,N):void 0;return VX(I7(ee,ye))}}return VX(KX(4,le,!ae,N))});f&&es(i,p.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ce(){const R=t&&ga(t);if(R!==void 0){let le;if(!n.typeRoots||!gi(t,fP))if(f&&es(i,p.Looking_up_in_node_modules_folder_initial_location_0,R),hf(e)){const{path:ae}=ume(R,e);le=wB(4,ae,!1,N,!0)}else{const ae=hme(4,e,R,N,void 0,void 0);le=ae&&ae.value}else f&&es(i,p.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return VX(le)}else f&&es(i,p.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function qX(e){let t=0;switch(Ju(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function Wk(e,t){const n=t||Ju(e)===100?["import"]:["require"];return e.noDtsResolution||n.push("types"),Ju(e)!==100&&n.push("node"),Nn(n,e.customConditions)}function tDe(e,t,n,i,s){const o=EB(s==null?void 0:s.getPackageJsonInfoCache(),i,n);return jy(t,l=>{if(H_(l)!=="node_modules"){const f=ta(l,"node_modules"),_=ta(f,e);return w3(_,!1,o)}})}function SB(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const i=zI(e,t);if(i){for(const s of i)if(t.directoryExists(s))for(const o of t.getDirectories(s)){const l=ec(o),f=ta(s,l,"package.json");if(!(t.fileExists(f)&&s9(f,t).typings===null)){const h=H_(l);h.charCodeAt(0)!==46&&n.push(h)}}}}return n}function $X(e){var t;if(e===null||typeof e!="object")return""+e;if(ns(e))return`[${(t=e.map(i=>$X(i)))==null?void 0:t.join(",")}]`;let n="{";for(const i in e)Hs(e,i)&&(n+=`${i}: ${$X(e[i])}`);return n+"}"}function HX(e,t){return t.map(n=>$X(jF(e,n))).join("|")+(e.pathsBasePath?`|${e.pathsBasePath}`:void 0)}function GX(e){const t=new Map,n=new Map,i=new Map;let s=new Map;return e&&t.set(e,s),{getMapOfCacheRedirects:o,getOrCreateMapOfCacheRedirects:l,update:f,clear:h};function o(y){return y?_(y.commandLine.options,!1):s}function l(y){return y?_(y.commandLine.options,!0):s}function f(y){e!==y&&(e?s=_(y,!0):t.set(y,s),e=y)}function _(y,T){let k=t.get(y);if(k)return k;const E=m(y);if(k=i.get(E),!k){if(e){const O=m(e);O===E?k=s:i.has(O)||i.set(O,s)}T&&(k!=null||(k=new Map)),k&&i.set(E,k)}return k&&t.set(y,k),k}function h(){const y=e&&n.get(e);s.clear(),t.clear(),n.clear(),i.clear(),e&&(y&&n.set(e,y),t.set(e,s))}function m(y){let T=n.get(y);return T||n.set(y,T=HX(y,dB)),T}}function rDe(e,t){let n;return{getPackageJsonInfo:i,setPackageJsonInfo:s,clear:o,entries:l,getInternalMap:f};function i(_){return n==null?void 0:n.get(Sl(_,e,t))}function s(_,h){(n||(n=new Map)).set(Sl(_,e,t),h)}function o(){n=void 0}function l(){const _=n==null?void 0:n.entries();return _?zt(_):[]}function f(){return n}}function rme(e,t,n,i){const s=e.getOrCreateMapOfCacheRedirects(t);let o=s.get(n);return o||(o=i(),s.set(n,o)),o}function nDe(e,t,n){const i=GX(n);return{getFromDirectoryCache:f,getOrCreateCacheForDirectory:l,clear:s,update:o};function s(){i.clear()}function o(_){i.update(_)}function l(_,h){const m=Sl(_,e,t);return rme(i,h,m,()=>P7())}function f(_,h,m,y){var T,k;const E=Sl(m,e,t);return(k=(T=i.getMapOfCacheRedirects(y))==null?void 0:T.get(E))==null?void 0:k.get(_,h)}}function tE(e,t){return t===void 0?e:`${t}|${e}`}function P7(){const e=new Map,t=new Map,n={get(s,o){return e.get(i(s,o))},set(s,o,l){return e.set(i(s,o),l),n},delete(s,o){return e.delete(i(s,o)),n},has(s,o){return e.has(i(s,o))},forEach(s){return e.forEach((o,l)=>{const[f,_]=t.get(l);return s(o,f,_)})},size(){return e.size}};return n;function i(s,o){const l=tE(s,o);return t.set(l,[s,o]),l}}function XX(e,t,n,i){D.assert(t.length===n.length);const s=P7();for(let o=0;oi,clearAllExceptPackageJsonInfoCache:_});function f(){_(),i.clear()}function _(){o.clear(),l.clear()}function h(m){o.update(m),l.update(m)}}function qk(e,t,n,i){const s=nme(e,t,n,i,iDe);return s.getOrCreateCacheForModuleName=(o,l,f)=>s.getOrCreateCacheForNonRelativeName(o,l,f),s}function kB(e,t,n,i){return nme(e,t,n,i,aDe)}function ZX(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function CB(e,t,n,i,s){return rE(e,t,ZX(n),i,s)}function oDe(e,t,n,i){const s=ga(t);return n.getFromDirectoryCache(e,i,s,void 0)}function rE(e,t,n,i,s,o,l){var f,_,h;const m=ev(n,i);o&&(n=o.commandLine.options),m&&(es(i,p.Resolving_module_0_from_1,e,t),o&&es(i,p.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const y=ga(t);let T=s==null?void 0:s.getFromDirectoryCache(e,l,y,o);if(T)m&&es(i,p.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let k=n.moduleResolution;if(k===void 0){switch(Ff(n)){case 1:k=2;break;case 100:k=3;break;case 199:k=99;break;default:k=1;break}m&&es(i,p.Module_resolution_kind_is_not_specified_using_0,a_[k])}else m&&es(i,p.Explicitly_specified_module_resolution_kind_Colon_0,a_[k]);switch((f=jm)==null||f.logStartResolveModule(e),k){case 3:T=_De(e,t,n,i,s,o,l);break;case 99:T=fDe(e,t,n,i,s,o,l);break;case 2:T=cme(e,t,n,i,s,o);break;case 1:T=Sme(e,t,n,i,s,o);break;case 100:T=ome(e,t,n,i,s,o);break;default:return D.fail(`Unexpected moduleResolution: ${k}`)}T&&T.resolvedModule&&((_=jm)==null||_.logInfoEvent(`Module "${e}" resolved to "${T.resolvedModule.resolvedFileName}"`)),(h=jm)==null||h.logStopResolveModule(T&&T.resolvedModule?""+T.resolvedModule.resolvedFileName:"null"),s==null||s.getOrCreateCacheForDirectory(y,o).set(e,l,T),hf(e)||s==null||s.getOrCreateCacheForNonRelativeName(e,l,o).set(y,T)}return m&&(T.resolvedModule?T.resolvedModule.packageId?es(i,p.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,T.resolvedModule.resolvedFileName,ub(T.resolvedModule.packageId)):es(i,p.Module_name_0_was_successfully_resolved_to_1,e,T.resolvedModule.resolvedFileName):es(i,p.Module_name_0_was_not_resolved,e)),T}function ime(e,t,n,i,s){const o=cDe(e,t,i,s);return o?o.value:hf(t)?lDe(e,t,n,i,s):uDe(e,t,i,s)}function cDe(e,t,n,i){var s;const{baseUrl:o,paths:l,configFile:f}=i.compilerOptions;if(l&&!ap(t)){i.traceEnabled&&(o&&es(i.host,p.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),es(i.host,p.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const _=kF(i.compilerOptions,i.host),h=f!=null&&f.configFileSpecs?(s=f.configFileSpecs).pathPatterns||(s.pathPatterns=qF(l)):void 0;return iZ(e,t,_,l,h,n,!1,i)}}function lDe(e,t,n,i,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&es(s.host,p.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=ec(ta(n,t));let l,f;for(const _ of s.compilerOptions.rootDirs){let h=ec(_);gi(h,Yl)||(h+=Yl);const m=Ga(o,h)&&(f===void 0||f.lengthvoid B.push(ce),isConfigLookup:f,candidateIsFromPackageJsonField:!1};k&&vS(Ju(i))&&es(s,p.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",N.map(ce=>`'${ce}'`).join(", "));let V;if(Ju(i)===2){const ce=l&5,R=l&-6;V=ce&&z(ce,U)||R&&z(R,U)||void 0}else V=z(l,U);let re;if((h=V==null?void 0:V.value)!=null&&h.isExternalLibraryImport&&!f&&l&5&&e&8&&!hf(t)&&!eZ(5,V.value.resolved.extension)&&N.indexOf("import")>-1){E3(U,p.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ce=Xs(fa({},U),{features:U.features&-9,reportDiagnostic:Ho}),R=z(l&5,ce);(m=R==null?void 0:R.value)!=null&&m.isExternalLibraryImport&&(re=R.value.resolved.path)}return Yde(t,(y=V==null?void 0:V.value)==null?void 0:y.resolved,(T=V==null?void 0:V.value)==null?void 0:T.isExternalLibraryImport,E,O,B,U,re);function z(ce,R){const ae=ime(ce,t,n,(ye,$,ee,te)=>wB(ye,$,ee,te,!0),R);if(ae)return km({resolved:ae,isExternalLibraryImport:$k(ae.path)});if(hf(t)){const{path:ye,parts:$}=ume(n,t),ee=wB(ce,ye,!1,R,!0);return ee&&km({resolved:ee,isExternalLibraryImport:Zn($,"node_modules")})}else{let ye;if(e&2&&Ga(t,"#")&&(ye=bDe(ce,t,n,R,o,_)),!ye&&e&4&&(ye=vDe(ce,t,n,R,o,_)),!ye){if(t.indexOf(":")>-1){k&&es(s,p.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,UX(ce));return}k&&es(s,p.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,UX(ce)),ye=hme(ce,t,n,R,o,_)}return ce&4&&(ye!=null||(ye=kme(t,R))),ye&&{value:ye.value&&{resolved:ye.value,isExternalLibraryImport:!0}}}}}function ume(e,t){const n=ta(e,t),i=G_(n),s=io(i);return{path:s==="."||s===".."?Dp(ec(n)):ec(n),parts:i}}function dDe(e,t,n){if(!t.realpath)return e;const i=ec(t.realpath(e));return n&&es(t,p.Resolving_real_path_for_0_result_1,e,i),D.assert(t.fileExists(i),`${e} linked to nonexistent file ${i}`),i}function wB(e,t,n,i,s){if(i.traceEnabled&&es(i.host,p.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,UX(e)),!Xh(t)){if(!n){const l=ga(t);Mg(l,i.host)||(i.traceEnabled&&es(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),n=!0)}const o=VS(e,t,n,i);if(o){const l=s?JI(o.path):void 0,f=l?w3(l,!1,i):void 0;return I7(f,o)}}if(n||Mg(t,i.host)||(i.traceEnabled&&es(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(i.features&32))return KX(e,t,n,i,s)}function $k(e){return Qo(e,i2)}function JI(e,t){const n=ec(e),i=n.lastIndexOf(i2);if(i===-1)return;const s=i+i2.length;let o=_me(n,s,t);return n.charCodeAt(s)===64&&(o=_me(n,o,t)),n.slice(0,o)}function _me(e,t,n){const i=e.indexOf(Yl,t+1);return i===-1?n?e.length:t:i}function YX(e,t,n,i){return bB(VS(e,t,n,i))}function VS(e,t,n,i){const s=fme(e,t,n,i);if(s)return s;if(!(i.features&32)){const o=pme(t,e,"",n,i);if(o)return o}}function fme(e,t,n,i){if(H_(t).indexOf(".")===-1)return;let o=Pd(t);o===t&&(o=t.substring(0,t.lastIndexOf(".")));const l=t.substring(o.length);return i.traceEnabled&&es(i.host,p.File_name_0_has_a_1_extension_stripping_it,t,l),pme(o,e,l,n,i)}function QX(e,t,n,i){return e&1&&Zl(t,rR)||e&4&&Zl(t,tR)?UI(t,n,i)!==void 0?{path:t,ext:AF(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Xl(t,".json")?UI(t,n,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:fme(e,t,n,i)}function pme(e,t,n,i,s){if(!i){const l=ga(e);l&&(i=!Mg(l,s.host))}switch(n){case".mjs":case".mts":case".d.mts":return t&1&&o(".mts",n===".mts"||n===".d.mts")||t&4&&o(".d.mts",n===".mts"||n===".d.mts")||t&2&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&o(".cts",n===".cts"||n===".d.cts")||t&4&&o(".d.cts",n===".cts"||n===".d.cts")||t&2&&o(".cjs")||void 0;case".json":return t&4&&o(".d.json.ts")||t&8&&o(".json")||void 0;case".tsx":case".jsx":return t&1&&(o(".tsx",n===".tsx")||o(".ts",n===".tsx"))||t&4&&o(".d.ts",n===".tsx")||t&2&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(o(".ts",n===".ts"||n===".d.ts")||o(".tsx",n===".ts"||n===".d.ts"))||t&4&&o(".d.ts",n===".ts"||n===".d.ts")||t&2&&(o(".js")||o(".jsx"))||s.isConfigLookup&&o(".json")||void 0;default:return t&4&&!md(e+n)&&o(`.d${n}.ts`)||void 0}function o(l,f){const _=UI(e+l,i,s);return _===void 0?void 0:{path:_,ext:l,resolvedUsingTsExtension:!s.candidateIsFromPackageJsonField&&f}}}function UI(e,t,n){var l;var i;if(!((i=n.compilerOptions.moduleSuffixes)!=null&&i.length))return dme(e,t,n);const s=(l=oy(e))!=null?l:"",o=s?ON(e,s):e;return Vt(n.compilerOptions.moduleSuffixes,f=>dme(o+f+s,t,n))}function dme(e,t,n){var i;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&es(n.host,p.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&es(n.host,p.File_0_does_not_exist,e)}(i=n.failedLookupLocations)==null||i.push(e)}function KX(e,t,n,i,s=!0){const o=s?w3(t,n,i):void 0,l=o&&o.contents.packageJsonContent,f=o&&VI(o,i);return I7(o,DB(e,t,n,i,l,f))}function mDe(e,t,n,i,s){if(!s&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let o;const l=5|(s?2:0),f=qX(t),_=EB(i==null?void 0:i.getPackageJsonInfoCache(),n,t);_.conditions=Wk(t),_.requestContainingDirectory=e.packageDirectory;const h=DB(l,e.packageDirectory,!1,_,e.contents.packageJsonContent,VI(e,_));if(o=Ht(o,h==null?void 0:h.path),f&8&&e.contents.packageJsonContent.exports){const m=No([Wk(t,!0),Wk(t,!1)],Lo);for(const y of m){const T=Xs(fa({},_),{failedLookupLocations:[],conditions:y}),k=gDe(e,e.contents.packageJsonContent.exports,T,l);if(k)for(const E of k)o=ct(o,E.path)}}return e.contents.resolvedEntrypoints=o||!1}function gDe(e,t,n,i){let s;if(ns(t))for(const l of t)o(l);else if(typeof t=="object"&&t!==null&&NB(t))for(const l in t)o(t[l]);else o(t);return s;function o(l){var f,_;if(typeof l=="string"&&Ga(l,"./")&&l.indexOf("*")===-1){const h=G_(l).slice(2);if(h.indexOf("..")>=0||h.indexOf(".")>=0||h.indexOf("node_modules")>=0)return!1;const m=ta(e.packageDirectory,l),y=ms(m,(_=(f=n.host).getCurrentDirectory)==null?void 0:_.call(f)),T=QX(i,y,!1,n);if(T)return s=ct(s,T,(k,E)=>k.path===E.path),!0}else if(Array.isArray(l)){for(const h of l)if(o(h))return!0}else if(typeof l=="object"&&l!==null)return Vt(eo(l),h=>{if(h==="default"||Zn(n.conditions,h)||WI(n.conditions,h))return o(l[h]),!0})}}function EB(e,t,n){return{host:t,compilerOptions:n,traceEnabled:ev(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:tt,requestContainingDirectory:void 0,reportDiagnostic:Ho,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function AB(e,t){const n=G_(e);for(n.pop();n.length>0;){const i=w3(M_(n),!1,t);if(i)return i;n.pop()}}function VI(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=QAe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function w3(e,t,n){var i,s,o,l,f,_,h,m;const{host:y,traceEnabled:T}=n,k=ta(e,"package.json");if(t){(i=n.failedLookupLocations)==null||i.push(k);return}const E=(s=n.packageJsonInfoCache)==null?void 0:s.getPackageJsonInfo(k);if(E!==void 0){if(typeof E!="boolean")return T&&es(y,p.File_0_exists_according_to_earlier_cached_lookups,k),(o=n.affectingLocations)==null||o.push(k),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E&&T&&es(y,p.File_0_does_not_exist_according_to_earlier_cached_lookups,k),(l=n.failedLookupLocations)==null||l.push(k);return}const O=Mg(e,y);if(O&&y.fileExists(k)){const N=s9(k,y);T&&es(y,p.Found_package_json_at_0,k);const B={packageDirectory:e,contents:{packageJsonContent:N,versionPaths:void 0,resolvedEntrypoints:void 0}};return(f=n.packageJsonInfoCache)==null||f.setPackageJsonInfo(k,B),(_=n.affectingLocations)==null||_.push(k),B}else O&&T&&es(y,p.File_0_does_not_exist,k),(h=n.packageJsonInfoCache)==null||h.setPackageJsonInfo(k,O),(m=n.failedLookupLocations)==null||m.push(k)}function DB(e,t,n,i,s,o){let l;s&&(i.isConfigLookup?l=XAe(s,t,i):l=e&4&&GAe(s,t,i)||e&7&&ZAe(s,t,i)||void 0);const f=(T,k,E,O)=>{const N=UI(k,E,O);if(N){const z=hDe(T,N);if(z)return bB(z);O.traceEnabled&&es(O.host,p.File_0_has_an_unsupported_extension_so_skipping_it,N)}const B=T===4?5:T,U=O.features,V=O.candidateIsFromPackageJsonField;O.candidateIsFromPackageJsonField=!0,(s==null?void 0:s.type)!=="module"&&(O.features&=-33);const re=wB(B,k,E,O,!1);return O.features=U,O.candidateIsFromPackageJsonField=V,re},_=l?!Mg(ga(l),i.host):void 0,h=n||!Mg(t,i.host),m=ta(t,i.isConfigLookup?"tsconfig":"index");if(o&&(!l||tb(t,l))){const T=th(t,l||m,!1);i.traceEnabled&&es(i.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,Zu,T);const k=iZ(e,T,t,o.paths,void 0,f,_||h,i);if(k)return Zde(k.value)}const y=l&&Zde(f(e,l,_,i));if(y)return y;if(!(i.features&32))return VS(e,m,h,i)}function hDe(e,t,n){const i=oy(t);return i!==void 0&&eZ(e,i)?{path:t,ext:i,resolvedUsingTsExtension:n}:void 0}function eZ(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function tZ(e){let t=e.indexOf(Yl);return e[0]==="@"&&(t=e.indexOf(Yl,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function NB(e){return yn(eo(e),t=>Ga(t,"."))}function yDe(e){return!bt(eo(e),t=>Ga(t,"."))}function vDe(e,t,n,i,s,o){var l,f;const _=ms(ta(n,"dummy"),(f=(l=i.host).getCurrentDirectory)==null?void 0:f.call(l)),h=AB(_,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!="string")return;const m=G_(t),y=G_(h.contents.packageJsonContent.name);if(!yn(y,(N,B)=>m[B]===N))return;const T=m.slice(y.length),k=Nr(T)?`.${Yl}${T.join(Yl)}`:".",E=e&5,O=e&-6;return rZ(h,E,k,i,s,o)||rZ(h,O,k,i,s,o)}function rZ(e,t,n,i,s,o){if(e.contents.packageJsonContent.exports){if(n==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&yDe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Hs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return gme(t,i,s,o,n,e,!1)(l,"",!1,".")}else if(NB(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&es(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),km(void 0);const l=mme(t,i,s,o,n,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&es(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),km(void 0)}}function bDe(e,t,n,i,s,o){var l,f;if(t==="#"||Ga(t,"#/"))return i.traceEnabled&&es(i.host,p.Invalid_import_specifier_0_has_no_possible_resolutions,t),km(void 0);const _=ms(ta(n,"dummy"),(f=(l=i.host).getCurrentDirectory)==null?void 0:f.call(l)),h=AB(_,i);if(!h)return i.traceEnabled&&es(i.host,p.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,_),km(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&es(i.host,p.package_json_scope_0_has_no_imports_defined,h.packageDirectory),km(void 0);const m=mme(e,i,s,o,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&es(i.host,p.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),km(void 0))}function nZ(e,t){const n=e.indexOf("*"),i=t.indexOf("*"),s=n===-1?e.length:n+1,o=i===-1?t.length:i+1;return s>o?-1:o>s||n===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function mme(e,t,n,i,s,o,l,f){const _=gme(e,t,n,i,s,l,f);if(!gi(s,Yl)&&s.indexOf("*")===-1&&Hs(o,s)){const y=o[s];return _(y,"",!1,s)}const h=qt(Mn(eo(o),y=>y.indexOf("*")!==-1||gi(y,"/")),nZ);for(const y of h)if(t.features&16&&m(y,s)){const T=o[y],k=y.indexOf("*"),E=s.substring(y.substring(0,k).length,s.length-(y.length-1-k));return _(T,E,!0,y)}else if(gi(y,"*")&&Ga(s,y.substring(0,y.length-1))){const T=o[y],k=s.substring(y.length-1);return _(T,k,!0,y)}else if(Ga(s,y)){const T=o[y],k=s.substring(y.length);return _(T,k,!1,y)}function m(y,T){if(gi(y,"*"))return!1;const k=y.indexOf("*");return k===-1?!1:Ga(T,y.substring(0,k))&&gi(T,y.substring(k+1))}}function gme(e,t,n,i,s,o,l){return f;function f(_,h,m,y){if(typeof _=="string"){if(!m&&h.length>0&&!gi(_,"/"))return t.traceEnabled&&es(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),km(void 0);if(!Ga(_,"./")){if(l&&!Ga(_,"../")&&!Ga(_,"/")&&!t0(_)){const ce=m?_.replace(/\*/g,h):_+h;E3(t,p.Using_0_subpath_1_with_target_2,"imports",y,ce),E3(t,p.Resolving_module_0_from_1,ce,o.packageDirectory+"/");const R=nE(t.features,ce,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,i);return km(R.resolvedModule?{path:R.resolvedModule.resolvedFileName,extension:R.resolvedModule.extension,packageId:R.resolvedModule.packageId,originalPath:R.resolvedModule.originalPath,resolvedUsingTsExtension:R.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&es(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),km(void 0)}const B=(ap(_)?G_(_).slice(1):G_(_)).slice(1);if(B.indexOf("..")>=0||B.indexOf(".")>=0||B.indexOf("node_modules")>=0)return t.traceEnabled&&es(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),km(void 0);const U=ta(o.packageDirectory,_),V=G_(h);if(V.indexOf("..")>=0||V.indexOf(".")>=0||V.indexOf("node_modules")>=0)return t.traceEnabled&&es(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),km(void 0);t.traceEnabled&&es(t.host,p.Using_0_subpath_1_with_target_2,l?"imports":"exports",y,m?_.replace(/\*/g,h):_+h);const re=T(m?U.replace(/\*/g,h):U+h),z=O(re,h,ta(o.packageDirectory,"package.json"),l);return z||km(I7(o,QX(e,re,!1,t)))}else if(typeof _=="object"&&_!==null)if(Array.isArray(_)){if(!Nr(_))return t.traceEnabled&&es(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),km(void 0);for(const N of _){const B=f(N,h,m,y);if(B)return B}}else{E3(t,p.Entering_conditional_exports);for(const N of eo(_))if(N==="default"||t.conditions.indexOf(N)>=0||WI(t.conditions,N)){E3(t,p.Matched_0_condition_1,l?"imports":"exports",N);const B=_[N],U=f(B,h,m,y);if(U)return E3(t,p.Resolved_under_condition_0,N),E3(t,p.Exiting_conditional_exports),U;E3(t,p.Failed_to_resolve_under_condition_0,N)}else E3(t,p.Saw_non_matching_condition_0,N);E3(t,p.Exiting_conditional_exports);return}else if(_===null)return t.traceEnabled&&es(t.host,p.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,s),km(void 0);return t.traceEnabled&&es(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),km(void 0);function T(N){var B,U;return N===void 0?N:ms(N,(U=(B=t.host).getCurrentDirectory)==null?void 0:U.call(B))}function k(N,B){return Dp(ta(N,B))}function E(){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}function O(N,B,U,V){var re,z,ce,R;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&N.indexOf("/node_modules/")===-1&&(!t.compilerOptions.configFile||tb(o.packageDirectory,T(t.compilerOptions.configFile.fileName),!E()))){const ae=Gv({useCaseSensitiveFileNames:E}),ye=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const $=T(rP(t.compilerOptions,()=>[],((z=(re=t.host).getCurrentDirectory)==null?void 0:z.call(re))||"",ae));ye.push($)}else if(t.requestContainingDirectory){const $=T(ta(t.requestContainingDirectory,"index.ts")),ee=T(rP(t.compilerOptions,()=>[$,T(U)],((R=(ce=t.host).getCurrentDirectory)==null?void 0:R.call(ce))||"",ae));ye.push(ee);let te=Dp(ee);for(;te&&te.length>1;){const me=G_(te);me.pop();const ve=M_(me);ye.unshift(ve),te=Dp(ve)}}ye.length>1&&t.reportDiagnostic(zu(V?p.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:p.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,B===""?".":B,U));for(const $ of ye){const ee=le($);for(const te of ee)if(tb(te,N,!E())){const me=N.slice(te.length+1),ve=ta($,me),we=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const K of we)if(Xl(ve,K)){const Ze=Wue(ve);for(const Re of Ze){if(!eZ(e,Re))continue;const Fe=mq(ve,Re,K,!E());if(t.host.fileExists(Fe))return km(I7(o,QX(e,Fe,!1,t)))}}}}}return;function le(ae){var ye,$;const ee=t.compilerOptions.configFile?(($=(ye=t.host).getCurrentDirectory)==null?void 0:$.call(ye))||"":ae,te=[];return t.compilerOptions.declarationDir&&te.push(T(k(ee,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&te.push(T(k(ee,t.compilerOptions.outDir))),te}}}}function WI(e,t){if(e.indexOf("types")===-1||!Ga(t,"types@"))return!1;const n=Bv.tryParse(t.substring(6));return n?n.test(Zu):!1}function hme(e,t,n,i,s,o){return yme(e,t,n,i,!1,s,o)}function xDe(e,t,n){return yme(4,e,t,n,!0,void 0,void 0)}function yme(e,t,n,i,s,o,l){const f=i.features===0?void 0:i.features&32?99:1,_=e&5,h=e&-6;if(_){const y=m(_);if(y)return y}if(h&&!s)return m(h);function m(y){return jy(kc(n),T=>{if(H_(T)!=="node_modules"){const k=Tme(o,t,f,T,l,i);return k||km(vme(y,t,T,i,s,o,l))}})}}function vme(e,t,n,i,s,o,l){const f=ta(n,"node_modules"),_=Mg(f,i.host);if(!_&&i.traceEnabled&&es(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,f),!s){const h=bme(e,t,f,_,i,o,l);if(h)return h}if(e&4){const h=ta(f,"@types");let m=_;return _&&!Mg(h,i.host)&&(i.traceEnabled&&es(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),bme(4,xme(t,i),h,m,i,o,l)}}function bme(e,t,n,i,s,o,l){var B;var f,_;const h=ec(ta(n,t)),{packageName:m,rest:y}=tZ(t),T=ta(n,m);let k,E=w3(h,!i,s);if(y!==""&&E&&(!(s.features&8)||!Hs((B=(f=k=w3(T,!i,s))==null?void 0:f.contents.packageJsonContent)!=null?B:tt,"exports"))){const U=VS(e,h,!i,s);if(U)return bB(U);const V=DB(e,h,!i,s,E.contents.packageJsonContent,VI(E,s));return I7(E,V)}const O=(U,V,re,z)=>{let ce=(y||!(z.features&32))&&VS(U,V,re,z)||DB(U,V,re,z,E&&E.contents.packageJsonContent,E&&VI(E,z));return!ce&&E&&(E.contents.packageJsonContent.exports===void 0||E.contents.packageJsonContent.exports===null)&&z.features&32&&(ce=VS(U,ta(V,"index.js"),re,z)),I7(E,ce)};if(y!==""&&(E=k!=null?k:w3(T,!i,s)),E&&E.contents.packageJsonContent.exports&&s.features&8)return(_=rZ(E,e,ta(".",y),s,o,l))==null?void 0:_.value;const N=y!==""&&E?VI(E,s):void 0;if(N){s.traceEnabled&&es(s.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,N.version,Zu,y);const U=i&&Mg(T,s.host),V=iZ(e,y,T,N.paths,void 0,O,!U,s);if(V)return V.value}return O(e,h,!i,s)}function iZ(e,t,n,i,s,o,l,f){s||(s=qF(i));const _=MH(s,t);if(_){const h=bs(_)?void 0:zT(_,t),m=bs(_)?_:j6(_);return f.traceEnabled&&es(f.host,p.Module_name_0_matched_pattern_1,t,m),{value:Vt(i[m],T=>{const k=h?T.replace("*",h):T,E=ec(ta(n,k));f.traceEnabled&&es(f.host,p.Trying_substitution_0_candidate_module_location_Colon_1,T,k);const O=oy(T);if(O!==void 0){const N=UI(E,l,f);if(N!==void 0)return bB({path:N,ext:O,resolvedUsingTsExtension:void 0})}return o(e,E,l||!Mg(ga(E),f.host),f)})}}}function xme(e,t){const n=iE(e);return t.traceEnabled&&n!==e&&es(t.host,p.Scoped_package_detected_looking_in_0,n),n}function IB(e){return`@types/${iE(e)}`}function iE(e){if(Ga(e,"@")){const t=e.replace(Yl,OB);if(t!==e)return t.slice(1)}return e}function qI(e){const t=cu(e,"@types/");return t!==e?PB(t):e}function PB(e){return Qo(e,OB)?"@"+e.replace(OB,Yl):e}function Tme(e,t,n,i,s,o){const l=e&&e.getFromNonRelativeNameCache(t,n,i,s);if(l)return o.traceEnabled&&es(o.host,p.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),o.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function Sme(e,t,n,i,s,o){const l=ev(n,i),f=[],_=[],h=ga(t),m=[],y={compilerOptions:n,host:i,traceEnabled:l,failedLookupLocations:f,affectingLocations:_,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:E=>void m.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},T=k(5)||k(2|(n.resolveJsonModule?8:0));return Yde(e,T&&T.value,(T==null?void 0:T.value)&&$k(T.value.path),f,_,m,y);function k(E){const O=ime(E,e,h,YX,y);if(O)return{value:O};if(hf(e)){const N=ec(ta(h,e));return km(YX(E,N,!1,y))}else{const N=jy(h,B=>{const U=Tme(s,e,void 0,B,o,y);if(U)return U;const V=ec(ta(B,e));return km(YX(E,V,!1,y))});if(N)return N;if(E&5){let B=xDe(e,h,y);return E&4&&(B!=null||(B=kme(e,y))),B}}}}function kme(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const i=tme(n,e,t),s=Mg(n,t.host);!s&&t.traceEnabled&&es(t.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=VS(4,i,!s,t);if(o){const f=JI(o.path),_=f?w3(f,!1,t):void 0;return km(I7(_,o))}const l=KX(4,i,!s,t);if(l)return km(l)}}function Hk(e,t){return!!e.allowImportingTsExtensions||t&&md(t)}function Cme(e,t,n,i,s,o){const l=ev(n,i);l&&es(i,p.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,s);const f=[],_=[],h=[],m={compilerOptions:n,host:i,traceEnabled:l,failedLookupLocations:f,affectingLocations:_,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:T=>void h.push(T),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},y=vme(4,e,s,m,!1,void 0,void 0);return Qde(y,!0,f,_,h,m.resultFromCache)}function km(e){return e!==void 0?{value:e}:void 0}function E3(e,t,...n){e.traceEnabled&&es(e.host,t,...n)}var aZ,wme,sZ,i2,OB,TDe=or({"src/compiler/moduleNameResolver.ts"(){"use strict";ho(),wme=ta("node_modules","@types"),sZ=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(sZ||{}),i2="/node_modules/",OB="__"}});function tv(e,t){return e.body&&!e.body.parent&&(fc(e.body,e),gb(e.body,!1)),e.body?oZ(e.body,t):1}function oZ(e,t=new Map){const n=Nc(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const i=SDe(e,t);return t.set(n,i),i}function SDe(e,t){switch(e.kind){case 263:case 264:return 0;case 265:if(n3(e))return 2;break;case 271:case 270:if(!Pi(e,1))return 0;break;case 277:const n=e;if(!n.moduleSpecifier&&n.exportClause&&n.exportClause.kind===278){let i=0;for(const s of n.exportClause.elements){const o=kDe(s,t);if(o>i&&(i=o),i===1)return i}return i}break;case 267:{let i=0;return js(e,s=>{const o=oZ(s,t);switch(o){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:D.assertNever(o)}}),i}case 266:return tv(e,t);case 80:if(e.flags&2048)return 0}return 1}function kDe(e,t){const n=e.propertyName||e.name;let i=e.parent;for(;i;){if(oo(i)||C1(i)||Ja(i)){const s=i.statements;let o;for(const l of s)if(SD(l,n)){l.parent||(fc(l,i),gb(l,!1));const f=oZ(l,t);if((o===void 0||f>o)&&(o=f),o===1)return o}if(o!==void 0)return o}i=i.parent}return 1}function O7(e){return D.attachFlowNodeDebugInfo(e),e}function Eme(e,t){var n,i;Kc("beforeBind"),(n=jm)==null||n.logStartBindFile(""+e.fileName),Nme(e,t),(i=jm)==null||i.logStopBindFile(),Kc("afterBind"),I_("Bind","beforeBind","afterBind")}function CDe(){var e,t,n,i,s,o,l,f,_,h,m,y,T,k,E,O,N,B,U,V,re,z,ce=!1,R=0,le,ae,ye={flags:1},$={flags:1},ee=w();return me;function te(J,Xe,...ir){return P0(bn(J)||e,J,Xe,...ir)}function me(J,Xe){var ir,kn;e=J,t=Xe,n=gc(t),z=ve(e,Xe),ae=new Set,R=0,le=bf.getSymbolConstructor(),D.attachFlowNodeDebugInfo(ye),D.attachFlowNodeDebugInfo($),e.locals||((ir=Hi)==null||ir.push(Hi.Phase.Bind,"bindSourceFile",{path:e.path},!0),Nt(e),(kn=Hi)==null||kn.pop(),e.symbolCount=R,e.classifiableNames=ae,du()),e=void 0,t=void 0,n=void 0,i=void 0,s=void 0,o=void 0,l=void 0,f=void 0,_=void 0,h=!1,m=void 0,y=void 0,T=void 0,k=void 0,E=void 0,O=void 0,N=void 0,U=void 0,V=!1,ce=!1,re=0}function ve(J,Xe){return R0(Xe,"alwaysStrict")&&!J.isDeclarationFile?!0:!!J.externalModuleIndicator}function we(J,Xe){return R++,new le(J,Xe)}function K(J,Xe,ir){J.flags|=ir,Xe.symbol=J,J.declarations=ct(J.declarations,Xe),ir&1955&&!J.exports&&(J.exports=To()),ir&6240&&!J.members&&(J.members=To()),J.constEnumOnlyModule&&J.flags&304&&(J.constEnumOnlyModule=!1),ir&111551&&KD(J,Xe)}function Ze(J){if(J.kind===276)return J.isExportEquals?"export=":"default";const Xe=Es(J);if(Xe){if(Np(J)){const ir=ng(Xe);return x1(J)?"__global":`"${ir}"`}if(Xe.kind===166){const ir=Xe.expression;if(a0(ir))return Kl(ir.text);if(vF(ir))return Uo(ir.operator)+ir.operand.text;D.fail("Only computed properties with literal names have declaration names")}if(Ea(Xe)){const ir=Z_(J);if(!ir)return;const kn=ir.symbol;return fN(kn,Xe.escapedText)}return A1(Xe)?vk(Xe):rg(Xe)?Zw(Xe):void 0}switch(J.kind){case 175:return"__constructor";case 183:case 178:case 329:return"__call";case 184:case 179:return"__new";case 180:return"__index";case 277:return"__export";case 311:return"export=";case 225:if(Au(J)===2)return"export=";D.fail("Unknown binary declaration kind");break;case 323:return ek(J)?"__new":"__call";case 168:return D.assert(J.parent.kind===323,"Impossible parameter parent kind",()=>`parent is: ${D.formatSyntaxKind(J.parent.kind)}, expected JSDocFunctionType`),"arg"+J.parent.parameters.indexOf(J)}}function Re(J){return sp(J)?il(J.name):Ba(D.checkDefined(Ze(J)))}function Fe(J,Xe,ir,kn,Js,va,ts){D.assert(ts||!Hv(ir));const Us=Pi(ir,1024)||dd(ir)&&ir.name.escapedText==="default",ml=ts?"__computed":Us&&Xe?"default":Ze(ir);let dc;if(ml===void 0)dc=we(0,"__missing");else if(dc=J.get(ml),kn&2885600&&ae.add(ml),!dc)J.set(ml,dc=we(0,ml)),va&&(dc.isReplaceableByMethod=!0);else{if(va&&!dc.isReplaceableByMethod)return dc;if(dc.flags&Js){if(dc.isReplaceableByMethod)J.set(ml,dc=we(0,ml));else if(!(kn&3&&dc.flags&67108864)){sp(ir)&&fc(ir.name,ir);let u_=dc.flags&2?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,Rd=!0;(dc.flags&384||kn&384)&&(u_=p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Rd=!1);let ed=!1;Nr(dc.declarations)&&(Us||dc.declarations&&dc.declarations.length&&ir.kind===276&&!ir.isExportEquals)&&(u_=p.A_module_cannot_have_multiple_default_exports,Rd=!1,ed=!0);const dg=[];zg(ir)&&Eu(ir.type)&&Pi(ir,1)&&dc.flags&2887656&&dg.push(te(ir,p.Did_you_mean_0,`export type { ${Ba(ir.name.escapedText)} }`));const Gg=Es(ir)||ir;Vt(dc.declarations,(Ie,Ke)=>{const pt=Es(Ie)||Ie,pr=Rd?te(pt,u_,Re(Ie)):te(pt,u_);e.bindDiagnostics.push(ed?ic(pr,te(Gg,Ke===0?p.Another_export_default_is_here:p.and_here)):pr),ed&&dg.push(te(pt,p.The_first_export_default_is_here))});const mg=Rd?te(Gg,u_,Re(ir)):te(Gg,u_);e.bindDiagnostics.push(ic(mg,...dg)),dc=we(0,ml)}}}return K(dc,ir,kn),dc.parent?D.assert(dc.parent===Xe,"Existing symbol parent should match new one"):dc.parent=Xe,dc}function Ue(J,Xe,ir){const kn=!!(Vv(J)&1)||Ae(J);if(Xe&2097152)return J.kind===280||J.kind===270&&kn?Fe(s.symbol.exports,s.symbol,J,Xe,ir):(D.assertNode(s,nh),Fe(s.locals,void 0,J,Xe,ir));if(M0(J)&&D.assert(jn(J)),!Np(J)&&(kn||s.flags&64)){if(!nh(s)||!s.locals||Pi(J,1024)&&!Ze(J))return Fe(s.symbol.exports,s.symbol,J,Xe,ir);const Js=Xe&111551?1048576:0,va=Fe(s.locals,void 0,J,Js,ir);return va.exportSymbol=Fe(s.symbol.exports,s.symbol,J,Xe,ir),J.localSymbol=va,va}else return D.assertNode(s,nh),Fe(s.locals,void 0,J,Xe,ir)}function Ae(J){if(J.parent&&Vu(J)&&(J=J.parent),!M0(J))return!1;if(!fI(J)&&J.fullName)return!0;const Xe=Es(J);return Xe?!!(SN(Xe.parent)&&si(Xe.parent)||cp(Xe.parent)&&Vv(Xe.parent)&1):!1}function Me(J,Xe){const ir=s,kn=o,Js=l;if(Xe&1?(J.kind!==218&&(o=s),s=l=J,Xe&32&&(s.locals=To(),Os(s))):Xe&2&&(l=J,Xe&32&&(l.locals=void 0)),Xe&4){const va=m,ts=y,Us=T,ml=k,dc=N,u_=U,Rd=V,ed=Xe&16&&!Pi(J,512)&&!J.asteriskToken&&!!c7(J)||J.kind===174;ed||(m=O7({flags:2}),Xe&144&&(m.node=J)),k=ed||J.kind===175||jn(J)&&(J.kind===261||J.kind===217)?Lt():void 0,N=void 0,y=void 0,T=void 0,U=void 0,V=!1,nt(J),J.flags&=-2817,!(m.flags&1)&&Xe&8&&I0(J.body)&&(J.flags|=256,V&&(J.flags|=512),J.endFlowNode=m),J.kind===311&&(J.flags|=re,J.endFlowNode=m),k&&(In(k,m),m=Pt(k),(J.kind===175||J.kind===174||jn(J)&&(J.kind===261||J.kind===217))&&(J.returnFlowNode=m)),ed||(m=va),y=ts,T=Us,k=ml,N=dc,U=u_,V=Rd}else Xe&64?(h=!1,nt(J),D.assertNotNode(J,Be),J.flags=h?J.flags|128:J.flags&-129):nt(J);s=ir,o=kn,l=Js}function He(J){je(J,Xe=>Xe.kind===261?Nt(Xe):void 0),je(J,Xe=>Xe.kind!==261?Nt(Xe):void 0)}function je(J,Xe=Nt){J!==void 0&&Vt(J,Xe)}function Pe(J){js(J,Nt,je)}function nt(J){const Xe=ce;if(ce=!1,Ch(J)){Pe(J),Rn(J),ce=Xe;return}switch(J.kind>=242&&J.kind<=258&&!t.allowUnreachableCode&&(J.flowNode=m),J.kind){case 246:wr(J);break;case 245:ln(J);break;case 247:Kr(J);break;case 248:case 249:Li(J);break;case 244:ot(J);break;case 252:case 256:Tt(J);break;case 251:case 250:nr(J);break;case 257:Y(J);break;case 254:Ge(J);break;case 268:dt(J);break;case 295:Q(J);break;case 243:at(J);break;case 255:Ne(J);break;case 223:li(J);break;case 224:Yn(J);break;case 225:if(Zv(J)){ce=Xe,Jn(J);return}ee(J);break;case 219:ge(J);break;case 226:he(J);break;case 259:_e(J);break;case 210:case 211:ya(J);break;case 212:_s(J);break;case 234:Ui(J);break;case 352:case 344:case 346:ar(J);break;case 311:{He(J.statements),Nt(J.endOfFileToken);break}case 240:case 267:He(J.statements);break;case 207:pe(J);break;case 168:q(J);break;case 209:case 208:case 302:case 229:ce=Xe;default:Pe(J);break}Rn(J),ce=Xe}function wt(J){switch(J.kind){case 80:case 81:case 110:case 210:case 211:return Zt(J);case 212:return Qe(J);case 216:case 234:return wt(J.expression);case 225:return yr(J);case 223:return J.operator===54&&wt(J.operand);case 220:return wt(J.expression)}return!1}function xt(J){return i9(J)||(mi(J)||MS(J)||Md(J))&&xt(J.expression)||Un(J)&&J.operatorToken.kind===28&&xt(J.right)||Ll(J)&&(a0(J.argumentExpression)||ju(J.argumentExpression))&&xt(J.expression)||Hp(J)&&xt(J.left)}function Zt(J){return xt(J)||op(J)&&Zt(J.expression)}function Qe(J){if(J.arguments){for(const Xe of J.arguments)if(Zt(Xe))return!0}return!!(J.expression.kind===210&&Zt(J.expression.expression))}function Mt(J,Xe){return Ak(J)&&Cr(J.expression)&&Wc(Xe)}function yr(J){switch(J.operatorToken.kind){case 64:case 76:case 77:case 78:return Zt(J.left);case 35:case 36:case 37:case 38:return Cr(J.left)||Cr(J.right)||Mt(J.right,J.left)||Mt(J.left,J.right);case 104:return Cr(J.left);case 103:return wt(J.right);case 28:return wt(J.right)}return!1}function Cr(J){switch(J.kind){case 216:return Cr(J.expression);case 225:switch(J.operatorToken.kind){case 64:return Cr(J.left);case 28:return Cr(J.right)}}return Zt(J)}function Lt(){return O7({flags:4,antecedents:void 0})}function an(){return O7({flags:8,antecedents:void 0})}function xn(J,Xe,ir){return O7({flags:1024,target:J,antecedents:Xe,antecedent:ir})}function Lr(J){J.flags|=J.flags&2048?4096:2048}function In(J,Xe){!(Xe.flags&1)&&!Zn(J.antecedents,Xe)&&((J.antecedents||(J.antecedents=[])).push(Xe),Lr(Xe))}function vi(J,Xe,ir){return Xe.flags&1?Xe:ir?(ir.kind===112&&J&64||ir.kind===97&&J&32)&&!TL(ir)&&!Lq(ir.parent)?ye:wt(ir)?(Lr(Xe),O7({flags:J,antecedent:Xe,node:ir})):Xe:J&32?Xe:ye}function ia(J,Xe,ir,kn){return Lr(J),O7({flags:128,antecedent:J,switchStatement:Xe,clauseStart:ir,clauseEnd:kn})}function Wa(J,Xe,ir){Lr(Xe);const kn=O7({flags:J,antecedent:Xe,node:ir});return N&&In(N,kn),kn}function bi(J,Xe){return Lr(J),O7({flags:512,antecedent:J,node:Xe})}function Pt(J){const Xe=J.antecedents;return Xe?Xe.length===1?Xe[0]:J:ye}function Ar(J){const Xe=J.parent;switch(Xe.kind){case 244:case 246:case 245:return Xe.expression===J;case 247:case 226:return Xe.condition===J}return!1}function Yt(J){for(;;)if(J.kind===216)J=J.expression;else if(J.kind===223&&J.operator===54)J=J.operand;else return xN(J)}function Qr(J){return lH(kl(J))}function $r(J){for(;Md(J.parent)||B4(J.parent)&&J.parent.operator===54;)J=J.parent;return!Ar(J)&&!Yt(J.parent)&&!(op(J.parent)&&J.parent.expression===J)}function Fn(J,Xe,ir,kn){const Js=E,va=O;E=ir,O=kn,J(Xe),E=Js,O=va}function ja(J,Xe,ir){Fn(Nt,J,Xe,ir),(!J||!Qr(J)&&!Yt(J)&&!(op(J)&&Iw(J)))&&(In(Xe,vi(32,m,J)),In(ir,vi(64,m,J)))}function Ca(J,Xe,ir){const kn=y,Js=T;y=Xe,T=ir,Nt(J),y=kn,T=Js}function rn(J,Xe){let ir=U;for(;ir&&J.parent.kind===255;)ir.continueTarget=Xe,ir=ir.next,J=J.parent;return Xe}function wr(J){const Xe=rn(J,an()),ir=Lt(),kn=Lt();In(Xe,m),m=Xe,ja(J.expression,ir,kn),m=Pt(ir),Ca(J.statement,kn,Xe),In(Xe,m),m=Pt(kn)}function ln(J){const Xe=an(),ir=rn(J,Lt()),kn=Lt();In(Xe,m),m=Xe,Ca(J.statement,kn,ir),In(ir,m),m=Pt(ir),ja(J.expression,Xe,kn),m=Pt(kn)}function Kr(J){const Xe=rn(J,an()),ir=Lt(),kn=Lt();Nt(J.initializer),In(Xe,m),m=Xe,ja(J.condition,ir,kn),m=Pt(ir),Ca(J.statement,kn,Xe),Nt(J.incrementor),In(Xe,m),m=Pt(kn)}function Li(J){const Xe=rn(J,an()),ir=Lt();Nt(J.expression),In(Xe,m),m=Xe,J.kind===249&&Nt(J.awaitModifier),In(ir,m),Nt(J.initializer),J.initializer.kind!==260&&Jt(J.initializer),Ca(J.statement,ir,Xe),In(Xe,m),m=Pt(ir)}function ot(J){const Xe=Lt(),ir=Lt(),kn=Lt();ja(J.expression,Xe,ir),m=Pt(Xe),Nt(J.thenStatement),In(kn,m),m=Pt(ir),Nt(J.elseStatement),In(kn,m),m=Pt(kn)}function Tt(J){Nt(J.expression),J.kind===252&&(V=!0,k&&In(k,m)),m=ye}function it(J){for(let Xe=U;Xe;Xe=Xe.next)if(Xe.name===J)return Xe}function Wt(J,Xe,ir){const kn=J.kind===251?Xe:ir;kn&&(In(kn,m),m=ye)}function nr(J){if(Nt(J.label),J.label){const Xe=it(J.label.escapedText);Xe&&(Xe.referenced=!0,Wt(J,Xe.breakTarget,Xe.continueTarget))}else Wt(J,y,T)}function Y(J){const Xe=k,ir=N,kn=Lt(),Js=Lt();let va=Lt();if(J.finallyBlock&&(k=Js),In(va,m),N=va,Nt(J.tryBlock),In(kn,m),J.catchClause&&(m=Pt(va),va=Lt(),In(va,m),N=va,Nt(J.catchClause),In(kn,m)),k=Xe,N=ir,J.finallyBlock){const ts=Lt();ts.antecedents=Nn(Nn(kn.antecedents,va.antecedents),Js.antecedents),m=ts,Nt(J.finallyBlock),m.flags&1?m=ye:(k&&Js.antecedents&&In(k,xn(ts,Js.antecedents,m)),N&&va.antecedents&&In(N,xn(ts,va.antecedents,m)),m=kn.antecedents?xn(ts,kn.antecedents,m):ye)}else m=Pt(kn)}function Ge(J){const Xe=Lt();Nt(J.expression);const ir=y,kn=B;y=Xe,B=m,Nt(J.caseBlock),In(Xe,m);const Js=Vt(J.caseBlock.clauses,va=>va.kind===296);J.possiblyExhaustive=!Js&&!Xe.antecedents,Js||In(Xe,ia(B,J,0,0)),y=ir,B=kn,m=Pt(Xe)}function dt(J){const Xe=J.clauses,ir=wt(J.parent.expression);let kn=ye;for(let Js=0;JsSf(ir)||Wu(ir))}function Na(J){J.flags&16777216&&!ti(J)?J.flags|=64:J.flags&=-65}function al(J){if(Na(J),Np(J))if(Pi(J,1)&&fe(J,p.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),f$(J))pc(J);else{let Xe;if(J.name.kind===11){const{text:kn}=J.name;Xe=dk(kn),Xe===void 0&&fe(J.name,p.Pattern_0_can_have_at_most_one_Asterisk_character,kn)}const ir=zs(J,512,110735);e.patternAmbientModules=Ht(e.patternAmbientModules,Xe&&!bs(Xe)?{pattern:Xe,symbol:ir}:void 0)}else{const Xe=pc(J);if(Xe!==0){const{symbol:ir}=J;ir.constEnumOnlyModule=!(ir.flags&304)&&Xe===2&&ir.constEnumOnlyModule!==!1}}}function pc(J){const Xe=tv(J),ir=Xe!==0;return zs(J,ir?512:1024,ir?110735:0),Xe}function Yr(J){const Xe=we(131072,Ze(J));K(Xe,J,131072);const ir=we(2048,"__type");K(ir,J,2048),ir.members=To(),ir.members.set(Xe.escapedName,Xe)}function os(J){return el(J,4096,"__object")}function Gs(J){return el(J,4096,"__jsxAttributes")}function Ua(J,Xe,ir){return zs(J,Xe,ir)}function el(J,Xe,ir){const kn=we(Xe,ir);return Xe&106508&&(kn.parent=s.symbol),K(kn,J,Xe),kn}function Wl(J,Xe,ir){switch(l.kind){case 266:Ue(J,Xe,ir);break;case 311:if(bm(s)){Ue(J,Xe,ir);break}default:D.assertNode(l,nh),l.locals||(l.locals=To(),Os(l)),Fe(l.locals,void 0,J,Xe,ir)}}function du(){if(!_)return;const J=s,Xe=f,ir=l,kn=i,Js=m;for(const va of _){const ts=va.parent.parent;s=Sn(ts.parent,ml=>!!(Dme(ml)&1))||e,l=sh(ts)||e,m=O7({flags:2}),i=va,Nt(va.typeExpression);const Us=Es(va);if((fI(va)||!va.fullName)&&Us&&SN(Us.parent)){const ml=si(Us.parent);if(ml){xr(e.symbol,Us.parent,ml,!!Sn(Us,u_=>mi(u_)&&u_.name.escapedText==="prototype"),!1);const dc=s;switch(YD(Us.parent)){case 1:case 2:bm(e)?s=e:s=void 0;break;case 4:s=Us.parent.expression;break;case 3:s=Us.parent.expression.name;break;case 5:s=A3(e,Us.parent.expression)?e:mi(Us.parent.expression)?Us.parent.expression.name:Us.parent.expression;break;case 0:return D.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&Ue(va,524288,788968),s=dc}}else fI(va)||!va.fullName||va.fullName.kind===80?(i=va.parent,Wl(va,524288,788968)):Nt(va.fullName)}s=J,f=Xe,l=ir,i=kn,m=Js}function uf(J){if(!e.parseDiagnostics.length&&!(J.flags&16777216)&&!(J.flags&8388608)&&!Mue(J)){const Xe=C4(J);if(Xe===void 0)return;z&&Xe>=119&&Xe<=127?e.bindDiagnostics.push(te(J,Ms(J),il(J))):Xe===135?c_(e)&&rF(J)?e.bindDiagnostics.push(te(J,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,il(J))):J.flags&32768&&e.bindDiagnostics.push(te(J,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,il(J))):Xe===127&&J.flags&8192&&e.bindDiagnostics.push(te(J,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,il(J)))}}function Ms(J){return Z_(J)?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:p.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function qa(J){J.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(te(J,p.constructor_is_a_reserved_word,il(J))))}function h_(J){z&&Dd(J.left)&&Xv(J.operatorToken.kind)&&wf(J,J.left)}function ru(J){z&&J.variableDeclaration&&wf(J,J.variableDeclaration.name)}function dp(J){if(z&&J.expression.kind===80){const Xe=r3(e,J.expression);e.bindDiagnostics.push(af(e,Xe.start,Xe.length,p.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function k_(J){return Be(J)&&(J.escapedText==="eval"||J.escapedText==="arguments")}function wf(J,Xe){if(Xe&&Xe.kind===80){const ir=Xe;if(k_(ir)){const kn=r3(e,Xe);e.bindDiagnostics.push(af(e,kn.start,kn.length,fl(J),ri(ir)))}}}function fl(J){return Z_(J)?p.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:p.Invalid_use_of_0_in_strict_mode}function Nu(J){z&&wf(J,J.name)}function Cl(J){return Z_(J)?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Hl(J){if(n<2&&l.kind!==311&&l.kind!==266&&!P5(l)){const Xe=r3(e,J);e.bindDiagnostics.push(af(e,Xe.start,Xe.length,Cl(J)))}}function gr(J){z&&wf(J,J.operand)}function r_(J){z&&(J.operator===46||J.operator===47)&&wf(J,J.operand)}function Zf(J){z&&fe(J,p.with_statements_are_not_allowed_in_strict_mode)}function _f(J){z&&gc(t)>=2&&(Nle(J.statement)||S_(J.statement))&&fe(J.label,p.A_label_is_not_allowed_here)}function fe(J,Xe,...ir){const kn=oh(e,J.pos);e.bindDiagnostics.push(af(e,kn.start,kn.length,Xe,...ir))}function G(J,Xe,ir){Le(J,Xe,Xe,ir)}function Le(J,Xe,ir,kn){gt(J,{pos:s7(Xe,e),end:ir.end},kn)}function gt(J,Xe,ir){const kn=af(e,Xe.pos,Xe.end-Xe.pos,ir);J?e.bindDiagnostics.push(kn):e.bindSuggestionDiagnostics=Ht(e.bindSuggestionDiagnostics,Xs(fa({},kn),{category:2}))}function Nt(J){if(!J)return;fc(J,i),Hi&&(J.tracingPath=e.path);const Xe=z;if(xi(J),J.kind>164){const ir=i;i=J;const kn=Dme(J);kn===0?nt(J):Me(J,kn),i=ir}else{const ir=i;J.kind===1&&(i=J),Rn(J),i=ir}z=Xe}function Rn(J){if(vm(J))if(jn(J))for(const Xe of J.jsDoc)Nt(Xe);else for(const Xe of J.jsDoc)fc(Xe,J),gb(Xe,!1)}function qn(J){if(!z)for(const Xe of J){if(!eg(Xe))return;if(Di(Xe)){z=!0;return}}}function Di(J){const Xe=e3(e,J.expression);return Xe==='"use strict"'||Xe==="'use strict'"}function xi(J){switch(J.kind){case 80:if(J.flags&2048){let ts=J.parent;for(;ts&&!M0(ts);)ts=ts.parent;Wl(ts,524288,788968);break}case 110:return m&&(ht(J)||i.kind===303)&&(J.flowNode=m),uf(J);case 165:m&&oF(J)&&(J.flowNode=m);break;case 235:case 108:J.flowNode=m;break;case 81:return qa(J);case 210:case 211:const Xe=J;m&&xt(Xe)&&(Xe.flowNode=m),Sue(Xe)&&un(Xe),jn(Xe)&&e.commonJsModuleIndicator&&ny(Xe)&&!$I(l,"module")&&Fe(e.locals,void 0,Xe.expression,134217729,111550);break;case 225:switch(Au(J)){case 1:su(J);break;case 2:ff(J);break;case 3:ne(J.left,J);break;case 6:da(J);break;case 4:Qp(J);break;case 5:const ts=J.left.expression;if(jn(J)&&Be(ts)){const Us=$I(l,ts.escapedText);if(nF(Us==null?void 0:Us.valueDeclaration)){Qp(J);break}}Qt(J);break;case 0:break;default:D.fail("Unknown binary expression special property assignment kind")}return h_(J);case 298:return ru(J);case 219:return dp(J);case 224:return gr(J);case 223:return r_(J);case 253:return Zf(J);case 255:return _f(J);case 196:h=!0;return;case 181:break;case 167:return gy(J);case 168:return Am(J);case 259:return l_(J);case 207:return J.flowNode=m,l_(J);case 171:case 170:return La(J);case 302:case 303:return mp(J,4,0);case 305:return mp(J,8,900095);case 178:case 179:case 180:return zs(J,131072,0);case 173:case 172:return mp(J,8192|(J.questionToken?16777216:0),tg(J)?0:103359);case 261:return Kp(J);case 175:return zs(J,16384,0);case 176:return mp(J,32768,46015);case 177:return mp(J,65536,78783);case 183:case 323:case 329:case 184:return Yr(J);case 186:case 328:case 199:return Fs(J);case 338:return st(J);case 209:return os(J);case 217:case 218:return nm(J);case 212:switch(Au(J)){case 7:return _t(J);case 8:return Yp(J);case 9:return Rs(J);case 0:break;default:return D.fail("Unknown call expression assignment declaration kind")}jn(J)&&Rl(J);break;case 230:case 262:return z=!0,gd(J);case 263:return Wl(J,64,788872);case 264:return Wl(J,524288,788968);case 265:return p0(J);case 266:return al(J);case 291:return Gs(J);case 290:return Ua(J,4,0);case 270:case 273:case 275:case 280:return zs(J,2097152,2097152);case 269:return Ef(J);case 272:return tl(J);case 277:return gu(J);case 276:return Gc(J);case 311:return qn(J.statements),mu();case 240:if(!P5(J.parent))return;case 267:return qn(J.statements);case 347:if(J.parent.kind===329)return Am(J);if(J.parent.kind!==328)break;case 354:const Js=J,va=Js.isBracketed||Js.typeExpression&&Js.typeExpression.type.kind===322?16777220:4;return zs(Js,va,0);case 352:case 344:case 346:return(_||(_=[])).push(J);case 345:return Nt(J.typeExpression)}}function La(J){const Xe=ym(J),ir=Xe?98304:4,kn=Xe?13247:0;return mp(J,ir|(J.questionToken?16777216:0),kn)}function Fs(J){return el(J,2048,"__type")}function mu(){if(Na(e),c_(e))Hc();else if(O0(e)){Hc();const J=e.symbol;Fe(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=J}}function Hc(){el(e,512,`"${Pd(e.fileName)}"`)}function Gc(J){if(!s.symbol||!s.symbol.exports)el(J,111551,Ze(J));else{const Xe=rk(J)?2097152:4,ir=Fe(s.symbol.exports,s.symbol,J,Xe,67108863);J.isExportEquals&&KD(ir,J)}}function Ef(J){bt(J.modifiers)&&e.bindDiagnostics.push(te(J,p.Modifiers_cannot_appear_here));const Xe=Ja(J.parent)?c_(J.parent)?J.parent.isDeclarationFile?void 0:p.Global_module_exports_may_only_appear_in_declaration_files:p.Global_module_exports_may_only_appear_in_module_files:p.Global_module_exports_may_only_appear_at_top_level;Xe?e.bindDiagnostics.push(te(J,Xe)):(e.symbol.globalExports=e.symbol.globalExports||To(),Fe(e.symbol.globalExports,e.symbol,J,2097152,2097152))}function gu(J){!s.symbol||!s.symbol.exports?el(J,8388608,Ze(J)):J.exportClause?_y(J.exportClause)&&(fc(J.exportClause,J),Fe(s.symbol.exports,s.symbol,J.exportClause,2097152,2097152)):Fe(s.symbol.exports,s.symbol,J,8388608,0)}function tl(J){J.name&&zs(J,2097152,2097152)}function Lc(J){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=J,e.externalModuleIndicator||Hc()),!0)}function Yp(J){if(!Lc(J))return;const Xe=wl(J.arguments[0],void 0,(ir,kn)=>(kn&&K(kn,ir,67110400),kn));Xe&&Fe(Xe.exports,Xe,J,1048580,0)}function su(J){if(!Lc(J))return;const Xe=wl(J.left.expression,void 0,(ir,kn)=>(kn&&K(kn,ir,67110400),kn));if(Xe){const kn=uN(J.right)&&(l7(J.left.expression)||ny(J.left.expression))?2097152:1048580;fc(J.left,J),Fe(Xe.exports,Xe,J.left,kn,0)}}function ff(J){if(!Lc(J))return;const Xe=GD(J.right);if(fH(Xe)||s===e&&A3(e,Xe))return;if(Dc(Xe)&&yn(Xe.properties,_0)){Vt(Xe.properties,C_);return}const ir=rk(J)?2097152:1049092,kn=Fe(e.symbol.exports,e.symbol,J,ir|67108864,0);KD(kn,J)}function C_(J){Fe(e.symbol.exports,e.symbol,J,69206016,0)}function Qp(J){if(D.assert(jn(J)),Un(J)&&mi(J.left)&&Ea(J.left.name)||mi(J)&&Ea(J.name))return;const ir=_d(J,!1,!1);switch(ir.kind){case 261:case 217:let kn=ir.symbol;if(Un(ir.parent)&&ir.parent.operatorToken.kind===64){const ts=ir.parent.left;u7(ts)&&O4(ts.expression)&&(kn=Ro(ts.expression.expression,o))}kn&&kn.valueDeclaration&&(kn.members=kn.members||To(),Hv(J)?Ce(J,kn,kn.members):Fe(kn.members,kn,J,67108868,0),K(kn,kn.valueDeclaration,32));break;case 175:case 171:case 173:case 176:case 177:case 174:const Js=ir.parent,va=so(ir)?Js.symbol.exports:Js.symbol.members;Hv(J)?Ce(J,Js.symbol,va):Fe(va,Js.symbol,J,67108868,0,!0);break;case 311:if(Hv(J))break;ir.commonJsModuleIndicator?Fe(ir.symbol.exports,ir.symbol,J,1048580,0):zs(J,1,111550);break;case 266:break;default:D.failBadSyntaxKind(ir)}}function Ce(J,Xe,ir){Fe(ir,Xe,J,4,0,!0,!0),Gt(J,Xe)}function Gt(J,Xe){Xe&&(Xe.assignmentDeclarationMembers||(Xe.assignmentDeclarationMembers=new Map)).set(Nc(J),J)}function un(J){J.expression.kind===110?Qp(J):u7(J)&&J.parent.parent.kind===311&&(O4(J.expression)?ne(J,J.parent):Kt(J))}function da(J){fc(J.left,J),fc(J.right,J),Bi(J.left.expression,J.left,!1,!0)}function Rs(J){const Xe=Ro(J.arguments[0].expression);Xe&&Xe.valueDeclaration&&K(Xe,Xe.valueDeclaration,32),fn(J,Xe,!0)}function ne(J,Xe){const ir=J.expression,kn=ir.expression;fc(kn,ir),fc(ir,J),fc(J,Xe),Bi(kn,J,!0,!0)}function _t(J){let Xe=Ro(J.arguments[0]);const ir=J.parent.parent.kind===311;Xe=xr(Xe,J.arguments[0],ir,!1,!1),fn(J,Xe,!1)}function Qt(J){var Xe;const ir=Ro(J.left.expression,s)||Ro(J.left.expression,l);if(!jn(J)&&!kue(ir))return;const kn=_9(J.left);if(!(Be(kn)&&((Xe=$I(s,kn.escapedText))==null?void 0:Xe.flags)&2097152))if(fc(J.left,J),fc(J.right,J),Be(J.left.expression)&&s===e&&A3(e,J.left.expression))su(J);else if(Hv(J)){el(J,67108868,"__computed");const Js=xr(ir,J.left.expression,si(J.left),!1,!1);Gt(J,Js)}else Kt(Ws(J.left,aS))}function Kt(J){D.assert(!Be(J)),fc(J.expression,J),Bi(J.expression,J,!1,!1)}function xr(J,Xe,ir,kn,Js){return(J==null?void 0:J.flags)&2097152||(ir&&!kn&&(J=wl(Xe,J,(Us,ml,dc)=>{if(ml)return K(ml,Us,67110400),ml;{const u_=dc?dc.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=To());return Fe(u_,dc,Us,67110400,110735)}})),Js&&J&&J.valueDeclaration&&K(J,J.valueDeclaration,32)),J}function fn(J,Xe,ir){if(!Xe||!Ia(Xe))return;const kn=ir?Xe.members||(Xe.members=To()):Xe.exports||(Xe.exports=To());let Js=0,va=0;Jl(nS(J))?(Js=8192,va=103359):go(J)&&iS(J)&&(bt(J.arguments[2].properties,ts=>{const Us=Es(ts);return!!Us&&Be(Us)&&ri(Us)==="set"})&&(Js|=65540,va|=78783),bt(J.arguments[2].properties,ts=>{const Us=Es(ts);return!!Us&&Be(Us)&&ri(Us)==="get"})&&(Js|=32772,va|=46015)),Js===0&&(Js=4,va=0),Fe(kn,Xe,J,Js|67108864,va&-67108865)}function si(J){return Un(J.parent)?As(J.parent).parent.kind===311:J.parent.parent.kind===311}function Bi(J,Xe,ir,kn){let Js=Ro(J,s)||Ro(J,l);const va=si(Xe);Js=xr(Js,Xe.expression,va,ir,kn),fn(Xe,Js,ir)}function Ia(J){if(J.flags&1072)return!0;const Xe=J.valueDeclaration;if(Xe&&go(Xe))return!!nS(Xe);let ir=Xe?Fa(Xe)?Xe.initializer:Un(Xe)?Xe.right:mi(Xe)&&Un(Xe.parent)?Xe.parent.right:void 0:void 0;if(ir=ir&&GD(ir),ir){const kn=O4(Fa(Xe)?Xe.name:Un(Xe)?Xe.left:Xe);return!!D4(Un(ir)&&(ir.operatorToken.kind===57||ir.operatorToken.kind===61)?ir.right:ir,kn)}return!1}function As(J){for(;Un(J.parent);)J=J.parent;return J.parent}function Ro(J,Xe=s){if(Be(J))return $I(Xe,J.escapedText);{const ir=Ro(J.expression);return ir&&ir.exports&&ir.exports.get(Hy(J))}}function wl(J,Xe,ir){if(A3(e,J))return e.symbol;if(Be(J))return ir(J,Ro(J),Xe);{const kn=wl(J.expression,Xe,ir),Js=ZD(J);return Ea(Js)&&D.fail("unexpected PrivateIdentifier"),ir(Js,kn&&kn.exports&&kn.exports.get(Hy(J)),kn)}}function Rl(J){!e.commonJsModuleIndicator&&Nd(J,!1)&&Lc(J)}function gd(J){if(J.kind===262)Wl(J,32,899503);else{const Js=J.name?J.name.escapedText:"__class";el(J,32,Js),J.name&&ae.add(J.name.escapedText)}const{symbol:Xe}=J,ir=we(4194308,"prototype"),kn=Xe.exports.get(ir.escapedName);kn&&(J.name&&fc(J.name,J),e.bindDiagnostics.push(te(kn.declarations[0],p.Duplicate_identifier_0,Bu(ir)))),Xe.exports.set(ir.escapedName,ir),ir.parent=Xe}function p0(J){return n3(J)?Wl(J,128,899967):Wl(J,256,899327)}function l_(J){if(z&&wf(J,J.name),!_o(J.name)){const Xe=J.kind===259?J:J.parent.parent;jn(J)&&BF(t)&&o3(Xe)&&!X6(J)&&!(Vv(J)&1)?zs(J,2097152,2097152):l$(J)?Wl(J,2,111551):f7(J)?zs(J,1,111551):zs(J,1,111550)}}function Am(J){if(!(J.kind===347&&s.kind!==329)&&(z&&!(J.flags&16777216)&&wf(J,J.name),_o(J.name)?el(J,1,"__"+J.parent.parameters.indexOf(J)):zs(J,1,111551),gm(J,J.parent))){const Xe=J.parent.parent;Fe(Xe.symbol.members,Xe.symbol,J,4|(J.questionToken?16777216:0),0)}}function Kp(J){!e.isDeclarationFile&&!(J.flags&16777216)&&ak(J)&&(re|=2048),Nu(J),z?(Hl(J),Wl(J,16,110991)):zs(J,16,110991)}function nm(J){!e.isDeclarationFile&&!(J.flags&16777216)&&ak(J)&&(re|=2048),m&&(J.flowNode=m),Nu(J);const Xe=J.name?J.name.escapedText:"__function";return el(J,16,Xe)}function mp(J,Xe,ir){return!e.isDeclarationFile&&!(J.flags&16777216)&&ak(J)&&(re|=2048),m&&KL(J)&&(J.flowNode=m),Hv(J)?el(J,Xe,"__computed"):zs(J,Xe,ir)}function Hg(J){const Xe=Sn(J,ir=>ir.parent&&Ek(ir.parent)&&ir.parent.extendsType===ir);return Xe&&Xe.parent}function gy(J){var Xe,ir;if(Ug(J.parent)){const kn=mF(J.parent);kn?(D.assertNode(kn,nh),(Xe=kn.locals)!=null||(kn.locals=To()),Fe(kn.locals,void 0,J,262144,526824)):zs(J,262144,526824)}else if(J.parent.kind===194){const kn=Hg(J.parent);kn?(D.assertNode(kn,nh),(ir=kn.locals)!=null||(kn.locals=To()),Fe(kn.locals,void 0,J,262144,526824)):el(J,262144,Ze(J))}else zs(J,262144,526824)}function kh(J){const Xe=tv(J);return Xe===1||Xe===2&&h7(t)}function Ch(J){if(!(m.flags&1))return!1;if(m===ye&&(PD(J)&&J.kind!==241||J.kind===262||J.kind===266&&kh(J))&&(m=$,!t.allowUnreachableCode)){const ir=O_e(t)&&!(J.flags&16777216)&&(!S_(J)||!!(b1(J.declarationList)&3)||J.declarationList.declarations.some(kn=>!!kn.initializer));wDe(J,(kn,Js)=>Le(ir,kn,Js,p.Unreachable_code_detected))}return!0}}function wDe(e,t){if(us(e)&&Ame(e)&&oo(e.parent)){const{statements:n}=e.parent,i=LH(n,e);ua(i,Ame,(s,o)=>t(i[s],i[o-1]))}else t(e,e)}function Ame(e){return!B_(e)&&!EDe(e)&&!j4(e)&&!(S_(e)&&!(b1(e)&3)&&e.declarationList.declarations.some(t=>!t.initializer))}function EDe(e){switch(e.kind){case 263:case 264:return!0;case 266:return tv(e)!==1;case 265:return Pi(e,2048);default:return!1}}function A3(e,t){let n=0;const i=Jf();for(i.enqueue(t);!i.isEmpty()&&n<100;){if(n++,t=i.dequeue(),l7(t)||ny(t))return!0;if(Be(t)){const s=$I(e,t.escapedText);if(s&&s.valueDeclaration&&Fa(s.valueDeclaration)&&s.valueDeclaration.initializer){const o=s.valueDeclaration.initializer;i.enqueue(o),Hp(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function Dme(e){switch(e.kind){case 230:case 262:case 265:case 209:case 186:case 328:case 291:return 1;case 263:return 65;case 266:case 264:case 199:case 180:return 33;case 311:return 37;case 176:case 177:case 173:if(KL(e))return 173;case 175:case 261:case 172:case 178:case 329:case 323:case 183:case 179:case 184:case 174:return 45;case 217:case 218:return 61;case 267:return 4;case 171:return e.initializer?4:0;case 298:case 247:case 248:case 249:case 268:return 34;case 240:return Qs(e.parent)||fu(e.parent)?0:34}return 0}function $I(e,t){var f;var n,i,s,o;const l=(i=(n=di(e,nh))==null?void 0:n.locals)==null?void 0:i.get(t);if(l)return(f=l.exportSymbol)!=null?f:l;if(Ja(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(rh(e))return(o=(s=e.symbol)==null?void 0:s.exports)==null?void 0:o.get(t)}var cZ,Nme,ADe=or({"src/compiler/binder.ts"(){"use strict";ho(),Q1(),cZ=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(cZ||{}),Nme=CDe()}});function Ime(e,t,n,i,s,o,l,f,_,h){return m;function m(y=()=>!0){const T=[],k=[];return{walkType:ae=>{try{return E(ae),{visitedTypes:If(T),visitedSymbols:If(k)}}finally{vu(T),vu(k)}},walkSymbol:ae=>{try{return le(ae),{visitedTypes:If(T),visitedSymbols:If(k)}}finally{vu(T),vu(k)}}};function E(ae){if(!(!ae||T[ae.id]||(T[ae.id]=ae,le(ae.symbol)))){if(ae.flags&524288){const $=ae,ee=$.objectFlags;ee&4&&O(ae),ee&32&&re(ae),ee&3&&ce(ae),ee&24&&R($)}ae.flags&262144&&N(ae),ae.flags&3145728&&B(ae),ae.flags&4194304&&U(ae),ae.flags&8388608&&V(ae)}}function O(ae){E(ae.target),Vt(h(ae),E)}function N(ae){E(f(ae))}function B(ae){Vt(ae.types,E)}function U(ae){E(ae.type)}function V(ae){E(ae.objectType),E(ae.indexType),E(ae.constraint)}function re(ae){E(ae.typeParameter),E(ae.constraintType),E(ae.templateType),E(ae.modifiersType)}function z(ae){const ye=t(ae);ye&&E(ye.type),Vt(ae.typeParameters,E);for(const $ of ae.parameters)le($);E(e(ae)),E(n(ae))}function ce(ae){R(ae),Vt(ae.typeParameters,E),Vt(i(ae),E),E(ae.thisType)}function R(ae){const ye=s(ae);for(const $ of ye.indexInfos)E($.keyType),E($.type);for(const $ of ye.callSignatures)z($);for(const $ of ye.constructSignatures)z($);for(const $ of ye.properties)le($)}function le(ae){if(!ae)return!1;const ye=oc(ae);if(k[ye])return!1;if(k[ye]=ae,!y(ae))return!0;const $=o(ae);return E($),ae.exports&&ae.exports.forEach(le),Vt(ae.declarations,ee=>{if(ee.type&&ee.type.kind===185){const te=ee.type,me=l(_(te.exprName));le(me)}}),!1}}}var DDe=or({"src/compiler/symbolWalker.ts"(){"use strict";ho()}});function MB({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},n,i,s){const o=l();return{relativePreference:s!==void 0?hf(s)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:f=>{if((f!=null?f:i.impliedNodeFormat)===99)return Hk(n,i.fileName)?[3,2]:[2];if(Ju(n)===1)return o===2?[2,1]:[1,2];const _=Hk(n,i.fileName);switch(o){case 2:return _?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return _?[1,0,3,2]:[1,0,2];case 0:return _?[0,1,3,2]:[0,1,2];default:D.assertNever(o)}}};function l(){if(s!==void 0){if(d3(s))return 2;if(gi(s,"/index"))return 1}return OH(t,i.impliedNodeFormat,n,i)}}function NDe(e,t,n,i,s,o,l={}){const f=Pme(e,t,n,i,s,MB({},e,t,o),{},l);if(f!==o)return f}function HI(e,t,n,i,s,o={}){return Pme(e,t,n,i,s,MB({},e,t),{},o)}function IDe(e,t,n,i,s,o={}){const l=lZ(t.path,i),f=zme(t.path,n,i,s,o);return bo(f,_=>uZ(_,l,t,i,e,s,!0,o.overrideImportMode))}function Pme(e,t,n,i,s,o,l,f={}){const _=lZ(n,s),h=zme(n,i,s,l,f);return bo(h,m=>uZ(m,_,t,s,e,l,void 0,f.overrideImportMode))||Fme(i,_,e,s,f.overrideImportMode||t.impliedNodeFormat,o)}function PDe(e,t,n,i,s={}){return Ome(e,t,n,i,s)[0]}function Ome(e,t,n,i,s={}){var o;const l=jL(e);if(!l)return tt;const f=(o=n.getModuleSpecifierCache)==null?void 0:o.call(n),_=f==null?void 0:f.get(t.path,l.path,i,s);return[_==null?void 0:_.moduleSpecifiers,l,_==null?void 0:_.modulePaths,f]}function Mme(e,t,n,i,s,o,l={}){return Lme(e,t,n,i,s,o,l).moduleSpecifiers}function Lme(e,t,n,i,s,o,l={}){let f=!1;const _=MDe(e,t);if(_)return{moduleSpecifiers:[_],computedWithoutCache:f};let[h,m,y,T]=Ome(e,i,s,o,l);if(h)return{moduleSpecifiers:h,computedWithoutCache:f};if(!m)return{moduleSpecifiers:tt,computedWithoutCache:f};f=!0,y||(y=Jme(i.path,m.originalFileName,s));const k=ODe(y,n,i,s,o,l);return T==null||T.set(i.path,m.path,o,l,y,k),{moduleSpecifiers:k,computedWithoutCache:f}}function ODe(e,t,n,i,s,o={}){const l=lZ(n.path,i),f=MB(s,t,n),_=Vt(e,E=>Vt(i.getFileIncludeReasons().get(Sl(E.path,i.getCurrentDirectory(),l.getCanonicalFileName)),O=>{if(O.kind!==3||O.file!==n.path||n.impliedNodeFormat&&n.impliedNodeFormat!==sY(n,O.index))return;const N=_j(n,O.index).text;return f.relativePreference!==1||!ap(N)?N:void 0}));if(_)return[_];const h=bt(e,E=>E.isInNodeModules);let m,y,T,k;for(const E of e){const O=E.isInNodeModules?uZ(E,l,n,i,t,s,void 0,o.overrideImportMode):void 0;if(m=Ht(m,O),O&&E.isRedirect)return m;if(!O){const N=Fme(E.path,l,t,i,o.overrideImportMode||n.impliedNodeFormat,f,E.isRedirect);if(!N)continue;E.isRedirect?T=Ht(T,N):eb(N)?y=Ht(y,N):(!h||E.isInNodeModules)&&(k=Ht(k,N))}}return y!=null&&y.length?y:T!=null&&T.length?T:m!=null&&m.length?m:D.checkDefined(k)}function lZ(e,t){const n=N_(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ga(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:i}}function Fme(e,t,n,i,s,{getAllowedEndingsInPreferredOrder:o,relativePreference:l},f){const{baseUrl:_,paths:h,rootDirs:m}=n;if(f&&!h)return;const{sourceDirectory:y,getCanonicalFileName:T}=t,k=o(s),E=m&&LDe(m,e,y,T,k,n)||aE(G6(th(y,e,T)),k,n);if(!_&&!h||l===0)return f?void 0:E;const O=ms(kF(n,i)||_,i.getCurrentDirectory()),N=qme(e,O,T);if(!N)return f?void 0:E;const B=h&&Ume(N,h,k,i,n);if(f)return B;const U=B===void 0&&_!==void 0?aE(N,k,n):B;if(!U)return E;if(l===1&&!ap(U))return U;if(l===3&&!ap(U)){const V=n.configFilePath?Sl(ga(n.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),re=Sl(e,V,T),z=Ga(y,V),ce=Ga(re,V);if(z&&!ce||!z&&ce)return U;const R=Bme(i,ga(re));return Bme(i,y)!==R?U:E}return $me(U)||GI(E)e.fileExists(ta(n,"package.json"))?!0:void 0)}function jme(e,t,n,i,s){var o;const l=Gv(n),f=n.getCurrentDirectory(),_=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,h=Sl(t,f,l),m=n.redirectTargetsMap.get(h)||tt,T=[..._?[_]:tt,t,...m].map(B=>ms(B,f));let k=!yn(T,T9);if(!i){const B=Vt(T,U=>!(k&&T9(U))&&s(U,_===U));if(B)return B}const E=(o=n.getSymlinkCache)==null?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),O=ms(t,f);return E&&jy(ga(O),B=>{const U=E.get(Dp(Sl(B,f,l)));if(U)return hq(e,B,l)?!1:Vt(T,V=>{if(!hq(V,B,l))return;const re=th(B,V,l);for(const z of U){const ce=ud(z,re),R=s(ce,V===_);if(k=!0,R)return R}})})||(i?Vt(T,B=>k&&T9(B)?void 0:s(B,B===_)):void 0)}function zme(e,t,n,i,s={}){var o;const l=Sl(t,n.getCurrentDirectory(),Gv(n)),f=(o=n.getModuleSpecifierCache)==null?void 0:o.call(n);if(f){const h=f.get(e,l,i,s);if(h!=null&&h.modulePaths)return h.modulePaths}const _=Jme(e,t,n);return f&&f.setModulePaths(e,l,i,s,_),_}function Jme(e,t,n){const i=Gv(n),s=new Map;let o=!1;jme(e,t,n,!0,(f,_)=>{const h=$k(f);s.set(f,{path:i(f),isRedirect:_,isInNodeModules:h}),o=o||h});const l=[];for(let f=ga(e);s.size!==0;){const _=Dp(f);let h;s.forEach(({path:y,isRedirect:T,isInNodeModules:k},E)=>{Ga(y,_)&&((h||(h=[])).push({path:E,isRedirect:T,isInNodeModules:k}),s.delete(E))}),h&&(h.length>1&&h.sort(Rme),l.push(...h));const m=ga(f);if(m===f)break;f=m}if(s.size){const f=zt(s.values());f.length>1&&f.sort(Rme),l.push(...f)}return l}function MDe(e,t){var n;const i=(n=e.declarations)==null?void 0:n.find(l=>_$(l)&&(!t3(l)||!hf(ng(l.name))));if(i)return i.name.text;const o=Mr(e.declarations,l=>{var f,_,h,m;if(!Vu(l))return;const y=O(l);if(!((f=y==null?void 0:y.parent)!=null&&f.parent&&C1(y.parent)&&Np(y.parent.parent)&&Ja(y.parent.parent.parent)))return;const T=(m=(h=(_=y.parent.parent.symbol.exports)==null?void 0:_.get("export="))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!T)return;const k=t.getSymbolAtLocation(T);if(!k)return;if(((k==null?void 0:k.flags)&2097152?t.getAliasedSymbol(k):k)===l.symbol)return y.parent.parent;function O(N){for(;N.flags&4;)N=N.parent;return N}})[0];if(o)return o.name.text}function Ume(e,t,n,i,s){for(const l in t)for(const f of t[l]){const _=ec(f),h=_.indexOf("*"),m=n.map(y=>({ending:y,value:aE(e,[y],s)}));if(oy(_)&&m.push({ending:void 0,value:e}),h!==-1){const y=_.substring(0,h),T=_.substring(h+1);for(const{ending:k,value:E}of m)if(E.length>=y.length+T.length&&Ga(E,y)&&gi(E,T)&&o({ending:k,value:E})){const O=E.substring(y.length,E.length-T.length);return ap(O)?void 0:l.replace("*",O)}}else if(bt(m,y=>y.ending!==0&&_===y.value)||bt(m,y=>y.ending===0&&_===y.value&&o(y)))return l}function o({ending:l,value:f}){return l!==0||f===aE(e,[l],s,i)}}function LB(e,t,n,i,s,o,l=0){if(typeof s=="string"){const f=ms(ta(n,s),void 0),_=h9(t)?Pd(t)+FB(t,e):void 0;switch(l){case 0:if(Yx(t,f)===0||_&&Yx(_,f)===0)return{moduleFileToTry:i};break;case 1:if(tb(f,t)){const T=th(f,t,!1);return{moduleFileToTry:ms(ta(ta(i,s),T),void 0)}}break;case 2:const h=f.indexOf("*"),m=f.slice(0,h),y=f.slice(h+1);if(Ga(t,m)&&gi(t,y)){const T=t.slice(m.length,t.length-y.length);return{moduleFileToTry:i.replace("*",T)}}if(_&&Ga(_,m)&&gi(_,y)){const T=_.slice(m.length,_.length-y.length);return{moduleFileToTry:i.replace("*",T)}}break}}else{if(Array.isArray(s))return Vt(s,f=>LB(e,t,n,i,f,o));if(typeof s=="object"&&s!==null){if(NB(s))return Vt(eo(s),f=>{const _=ms(ta(i,f),void 0),h=gi(f,"/")?1:Qo(f,"*")?2:0;return LB(e,t,n,_,s[f],o,h)});for(const f of eo(s))if(f==="default"||o.indexOf(f)>=0||WI(o,f)){const _=s[f],h=LB(e,t,n,i,_,o);if(h)return h}}}}function LDe(e,t,n,i,s,o){const l=Vme(t,e,i);if(l===void 0)return;const f=Vme(n,e,i),_=lo(f,m=>er(l,y=>G6(th(m,y,i)))),h=$1(_,PN);if(h)return aE(h,s,o)}function uZ({path:e,isRedirect:t},{getCanonicalFileName:n,sourceDirectory:i},s,o,l,f,_,h){if(!o.fileExists||!o.readFile)return;const m=UH(e);if(!m)return;const T=MB(f,l,s).getAllowedEndingsInPreferredOrder();let k=e,E=!1;if(!_){let re=m.packageRootIndex,z;for(;;){const{moduleFileToTry:ce,packageRootPath:R,blockedByExports:le,verbatimFromExports:ae}=V(re);if(Ju(l)!==1){if(le)return;if(ae)return ce}if(R){k=R,E=!0;break}if(z||(z=ce),re=e.indexOf(Yl,re+1),re===-1){k=aE(z,T,l,o);break}}}if(t&&!E)return;const O=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),N=n(k.substring(0,m.topLevelNodeModulesIndex));if(!(Ga(i,N)||O&&Ga(n(O),N)))return;const B=k.substring(m.topLevelPackageNameIndex+1),U=qI(B);return Ju(l)===1&&U===B?void 0:U;function V(re){var z,ce;const R=e.substring(0,re),le=ta(R,"package.json");let ae=e,ye=!1;const $=(ce=(z=o.getPackageJsonInfoCache)==null?void 0:z.call(o))==null?void 0:ce.getPackageJsonInfo(le);if(typeof $=="object"||$===void 0&&o.fileExists(le)){const ee=($==null?void 0:$.contents.packageJsonContent)||JSON.parse(o.readFile(le)),te=h||s.impliedNodeFormat;if(CH(l)){const we=R.substring(m.topLevelPackageNameIndex+1),K=qI(we),Ze=Wk(l,te===99),Re=ee.exports?LB(l,e,R,K,ee.exports,Ze):void 0;if(Re){const Fe=h9(Re.moduleFileToTry)?{moduleFileToTry:Pd(Re.moduleFileToTry)+FB(Re.moduleFileToTry,l)}:Re;return Xs(fa({},Fe),{verbatimFromExports:!0})}if(ee.exports)return{moduleFileToTry:e,blockedByExports:!0}}const me=ee.typesVersions?TB(ee.typesVersions):void 0;if(me){const we=e.slice(R.length+1),K=Ume(we,me.paths,T,o,l);K===void 0?ye=!0:ae=ta(R,K)}const ve=ee.typings||ee.types||ee.main||"index.js";if(bs(ve)&&!(ye&&MH(qF(me.paths),ve))){const we=Sl(ve,R,n),K=n(ae);if(Pd(we)===Pd(K))return{packageRootPath:R,moduleFileToTry:ae};if(ee.type!=="module"&&!Zl(K,VN)&&Ga(K,we)&&ga(K)===H6(we)&&Pd(H_(K))==="index")return{packageRootPath:R,moduleFileToTry:ae}}}else{const ee=n(ae.substring(m.packageRootIndex+1));if(ee==="index.d.ts"||ee==="index.js"||ee==="index.ts"||ee==="index.tsx")return{moduleFileToTry:ae,packageRootPath:R}}return{moduleFileToTry:ae}}}function FDe(e,t){if(!e.fileExists)return;const n=x_(g9({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of n){const s=t+i;if(e.fileExists(s))return s}}function Vme(e,t,n){return Mr(t,i=>{const s=qme(e,i,n);return s!==void 0&&$me(s)?void 0:s})}function aE(e,t,n,i){if(Zl(e,[".json",".mjs",".cjs"]))return e;const s=Pd(e);if(e===s)return e;const o=t.indexOf(2),l=t.indexOf(3);if(Zl(e,[".mts",".cts"])&&l!==-1&&lh===0||h===1);return _!==-1&&_GI,forEachFileNameOfModule:()=>jme,getModuleSpecifier:()=>HI,getModuleSpecifiers:()=>Mme,getModuleSpecifiersWithCacheInfo:()=>Lme,getNodeModulesPackageName:()=>IDe,tryGetJSExtensionForFile:()=>FB,tryGetModuleSpecifiersFromCache:()=>PDe,tryGetRealFileNameForNonJsDeclarationFileName:()=>Wme,updateModuleSpecifier:()=>NDe});var fZ=or({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";Hme()}});function RDe(){this.flags=0}function Nc(e){return e.id||(e.id=gZ,gZ++),e.id}function oc(e){return e.id||(e.id=mZ,mZ++),e.id}function pZ(e,t){const n=tv(e);return n===1||t&&n===2}function Gme(e){var t=[],n=r=>{t.push(r)},i,s=new Set,o,l,f=bf.getSymbolConstructor(),_=bf.getTypeConstructor(),h=bf.getSignatureConstructor(),m=0,y=0,T=0,k=0,E=0,O=0,N,B,U=!1,V=To(),re=[1],z=e.getCompilerOptions(),ce=gc(z),R=Ff(z),le=!!z.experimentalDecorators,ae=NN(z),ye=yS(z),$=R0(z,"strictNullChecks"),ee=R0(z,"strictFunctionTypes"),te=R0(z,"strictBindCallApply"),me=R0(z,"strictPropertyInitialization"),ve=R0(z,"noImplicitAny"),we=R0(z,"noImplicitThis"),K=R0(z,"useUnknownInCatchVariables"),Ze=!!z.keyofStringsOnly,Re=Ze?1:0,Fe=z.suppressExcessPropertyErrors?0:8192,Ue=z.exactOptionalPropertyTypes,Ae=utt(),Me=Uit(),He=Vd(),je=To(),Pe=vc(4,"undefined");Pe.declarations=[];var nt=vc(1536,"globalThis",8);nt.exports=je,nt.declarations=[],je.set(nt.escapedName,nt);var wt=vc(4,"arguments"),xt=vc(4,"require"),Zt=z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Qe=!z.verbatimModuleSyntax||!!z.importsNotUsedAsValues,Mt;const yr={getNodeCount:()=>la(e.getSourceFiles(),(r,a)=>r+a.nodeCount,0),getIdentifierCount:()=>la(e.getSourceFiles(),(r,a)=>r+a.identifierCount,0),getSymbolCount:()=>la(e.getSourceFiles(),(r,a)=>r+a.symbolCount,y),getTypeCount:()=>m,getInstantiationCount:()=>T,getRelationCacheSizes:()=>({assignable:td.size,identity:yd.size,subtype:N1.size,strictSubtype:Hm.size}),isUndefinedSymbol:r=>r===Pe,isArgumentsSymbol:r=>r===wt,isUnknownSymbol:r=>r===Kr,getMergedSymbol:Ec,getDiagnostics:xCe,getGlobalDiagnostics:iit,getRecursionIdentity:hM,getUnmatchedProperties:kse,getTypeOfSymbolAtLocation:(r,a)=>{const c=gs(a);return c?rQe(r,c):Y},getTypeOfSymbol:An,getSymbolsOfParameterPropertyDeclaration:(r,a)=>{const c=gs(r,Cs);return c===void 0?D.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(D.assert(gm(c,c.parent)),y2(c,Kl(a)))},getDeclaredTypeOfSymbol:hl,getPropertiesOfType:Pc,getPropertyOfType:(r,a)=>So(r,Kl(a)),getPrivateIdentifierPropertyOfType:(r,a,c)=>{const u=gs(c);if(!u)return;const d=Kl(a),g=NW(d,u);return g?ooe(r,g):void 0},getTypeOfPropertyOfType:(r,a)=>Hu(r,Kl(a)),getIndexInfoOfType:(r,a)=>Fh(r,a===0?w:ge),getIndexInfosOfType:bp,getIndexInfosOfIndexSymbol:xae,getSignaturesOfType:ro,getIndexTypeOfType:(r,a)=>Sv(r,a===0?w:ge),getIndexType:r=>a1(r),getBaseTypes:vs,getBaseTypeOfLiteralType:V2,getWidenedType:lm,getTypeFromTypeNode:r=>{const a=gs(r,Oa);return a?Qi(a):Y},getParameterType:Cg,getParameterIdentifierNameAtPosition:Eet,getPromisedTypeOfPromise:KA,getAwaitedType:r=>Ex(r),getReturnTypeOfSignature:Oc,isNullableType:DW,getNullableType:iW,getNonNullableType:My,getNonOptionalType:mse,getTypeArguments:yl,typeToTypeNode:He.typeToTypeNode,indexInfoToIndexSignatureDeclaration:He.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:He.signatureToSignatureDeclaration,symbolToEntityName:He.symbolToEntityName,symbolToExpression:He.symbolToExpression,symbolToNode:He.symbolToNode,symbolToTypeParameterDeclarations:He.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:He.symbolToParameterDeclaration,typeParameterToDeclaration:He.typeParameterToDeclaration,getSymbolsInScope:(r,a)=>{const c=gs(r);return c?ait(c,a):[]},getSymbolAtLocation:r=>{const a=gs(r);return a?H0(a,!0):void 0},getIndexInfosAtLocation:r=>{const a=gs(r);return a?pit(a):void 0},getShorthandAssignmentValueSymbol:r=>{const a=gs(r);return a?dit(a):void 0},getExportSpecifierLocalTargetSymbol:r=>{const a=gs(r,dd);return a?mit(a):void 0},getExportSymbolOfSymbol(r){return Ec(r.exportSymbol||r)},getTypeAtLocation:r=>{const a=gs(r);return a?LT(a):Y},getTypeOfAssignmentPattern:r=>{const a=gs(r,Lw);return a&&nq(a)||Y},getPropertySymbolOfDestructuringAssignment:r=>{const a=gs(r,Be);return a?git(a):void 0},signatureToString:(r,a,c,u)=>hr(r,gs(a),c,u),typeToString:(r,a,c)=>Rt(r,gs(a),c),symbolToString:(r,a,c,u)=>ze(r,gs(a),c,u),typePredicateToString:(r,a,c)=>nd(r,gs(a),c),writeSignature:(r,a,c,u,d)=>hr(r,gs(a),c,u,d),writeType:(r,a,c,u)=>Rt(r,gs(a),c,u),writeSymbol:(r,a,c,u,d)=>ze(r,gs(a),c,u,d),writeTypePredicate:(r,a,c,u)=>nd(r,gs(a),c,u),getAugmentedPropertiesOfType:lce,getRootSymbols:ACe,getSymbolOfExpando:BW,getContextualType:(r,a)=>{const c=gs(r,ht);if(c)return a&4?Lt(c,()=>sd(c,a)):sd(c,a)},getContextualTypeForObjectLiteralElement:r=>{const a=gs(r,qv);return a?$se(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(r,a)=>{const c=gs(r,n7);return c&&qse(c,a)},getContextualTypeForJsxAttribute:r=>{const a=gs(r,PL);return a&&H8e(a,void 0)},isContextSensitive:Xm,getTypeOfPropertyOfContextualType:O6,getFullyQualifiedName:g0,getResolvedSignature:(r,a,c)=>an(r,a,c,0),getResolvedSignatureForStringLiteralCompletions:(r,a,c)=>Lt(a,()=>an(r,c,void 0,32)),getResolvedSignatureForSignatureHelp:(r,a,c)=>Cr(r,()=>an(r,a,c,16)),getExpandedParameters:K7e,hasEffectiveRestParameter:J1,containsArgumentsReference:hae,getConstantValue:r=>{const a=gs(r,OCe);return a?uce(a):void 0},isValidPropertyAccess:(r,a)=>{const c=gs(r,xle);return!!c&&FKe(c,Kl(a))},isValidPropertyAccessForCompletions:(r,a,c)=>{const u=gs(r,mi);return!!u&&S5e(u,a,c)},getSignatureFromDeclaration:r=>{const a=gs(r,Qs);return a?i1(a):void 0},isImplementationOfOverload:r=>{const a=gs(r,Qs);return a?ICe(a):void 0},getImmediateAliasedSymbol:Yse,getAliasedSymbol:Rf,getEmitResolver:q3,getExportsOfModule:dv,getExportsAndPropertiesOfModule:mv,forEachExportAndPropertyOfModule:xC,getSymbolWalker:Ime(wGe,b0,Oc,vs,bg,An,q0,yp,Tm,yl),getAmbientModules:Iat,getJsxIntrinsicTagNamesAt:mKe,isOptionalParameter:r=>{const a=gs(r,Cs);return a?vA(a):!1},tryGetMemberInModuleExports:(r,a)=>Dm(Kl(r),a),tryGetMemberInModuleExportsAndProperties:(r,a)=>A8(Kl(r),a),tryFindAmbientModule:r=>gae(r,!0),tryFindAmbientModuleWithoutAugmentations:r=>gae(r,!1),getApparentType:ad,getUnionType:Oi,isTypeAssignableTo:Zo,createAnonymousType:yu,createSignature:Lh,createSymbol:vc,createIndexInfo:j1,getAnyType:()=>it,getStringType:()=>w,getStringLiteralType:Wd,getNumberType:()=>ge,getNumberLiteralType:Sg,getBigIntType:()=>he,createPromiseType:UM,createArrayType:ep,getElementTypeOfArrayType:use,getBooleanType:()=>rt,getFalseType:r=>r?ue:_e,getTrueType:r=>r?pe:q,getVoidType:()=>st,getUndefinedType:()=>Ne,getNullType:()=>Yn,getESSymbolType:()=>ar,getNeverType:()=>Ft,getOptionalType:()=>li,getPromiseType:()=>aM(!1),getPromiseLikeType:()=>jTe(!1),getAsyncIterableType:()=>{const r=LV(!1);if(r!==qa)return r},isSymbolAccessible:e1,isArrayType:Ym,isTupleType:Yo,isArrayLikeType:U2,isEmptyAnonymousObjectType:Oy,isTypeInvalidDueToUnionDiscriminant:cGe,getExactOptionalProperties:PZe,getAllPossiblePropertiesOfTypes:lGe,getSuggestedSymbolForNonexistentProperty:uoe,getSuggestionForNonexistentProperty:_oe,getSuggestedSymbolForNonexistentJSXAttribute:x5e,getSuggestedSymbolForNonexistentSymbol:(r,a,c)=>foe(r,Kl(a),c),getSuggestionForNonexistentSymbol:(r,a,c)=>PKe(r,Kl(a),c),getSuggestedSymbolForNonexistentModule:PW,getSuggestionForNonexistentExport:OKe,getSuggestedSymbolForNonexistentClassMember:b5e,getBaseConstraintOfType:vp,getDefaultFromTypeParameter:r=>r&&r.flags&262144?dx(r):void 0,resolveName(r,a,c,u){return hu(a,Kl(r),c,void 0,void 0,!1,u)},getJsxNamespace:r=>Ba(Q4(r)),getJsxFragmentFactory:r=>{const a=fce(r);return a&&Ba(Tm(a).escapedText)},getAccessibleSymbolChain:k2,getTypePredicateOfSignature:b0,resolveExternalModuleName:r=>{const a=gs(r,ht);return a&&z_(a,a,!0)},resolveExternalModuleSymbol:om,tryGetThisTypeAt:(r,a,c)=>{const u=gs(r);return u&&Jse(u,a,c)},getTypeArgumentConstraint:r=>{const a=gs(r,Oa);return a&&Utt(a)},getSuggestionDiagnostics:(r,a)=>{const c=gs(r,Ja)||D.fail("Could not determine parsed source file.");if(y9(c,z,e))return tt;let u;try{return i=a,oce(c),D.assert(!!(Ei(c).flags&1)),u=Et(u,V3.getDiagnostics(c.fileName)),Bke(bCe(c),(d,g,x)=>{!z5(d)&&!vCe(g,!!(d.flags&16777216))&&(u||(u=[])).push(Xs(fa({},x),{category:2}))}),u||tt}finally{i=void 0}},runWithCancellationToken:(r,a)=>{try{return i=r,a(yr)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:N2,isDeclarationVisible:y0,isPropertyAccessible:doe,getTypeOnlyAliasDeclaration:Yf,getMemberOverrideModifierStatus:vnt,isTypeParameterPossiblyReferenced:_M,typeHasCallOrConstructSignatures:iq};function Cr(r,a){const c=Sn(r,n7),u=c&&Ei(c).resolvedSignature;c&&(Ei(c).resolvedSignature=void 0);const d=a();return c&&(Ei(c).resolvedSignature=u),d}function Lt(r,a){const c=Sn(r,n7);if(c){let d=r;do Ei(d).skipDirectInference=!0,d=d.parent;while(d&&d!==c)}U=!0;const u=Cr(r,a);if(U=!1,c){let d=r;do Ei(d).skipDirectInference=void 0,d=d.parent;while(d&&d!==c)}return u}function an(r,a,c,u){const d=gs(r,n7);Mt=c;const g=d?$C(d,a,u):void 0;return Mt=void 0,g}var xn=new Map,Lr=new Map,In=new Map,vi=new Map,ia=new Map,Wa=new Map,bi=new Map,Pt=new Map,Ar=new Map,Yt=new Map,Qr=new Map,$r=new Map,Fn=new Map,ja=new Map,Ca=new Map,rn=[],wr=new Map,ln=new Set,Kr=vc(4,"unknown"),Li=vc(0,"__resolving__"),ot=new Map,Tt=new Map,it=$u(1,"any"),Wt=$u(1,"any",262144),nr=$u(1,"any"),Y=$u(1,"error"),Ge=$u(1,"unresolved"),dt=$u(1,"any",65536),Q=$u(1,"intrinsic"),at=$u(2,"unknown"),fr=$u(2,"unknown"),Ne=$u(32768,"undefined"),$t=$?Ne:$u(32768,"undefined",65536),Jt=$u(32768,"undefined"),Pr=Ue?Jt:Ne,li=$u(32768,"undefined"),Yn=$u(65536,"null"),Jn=$?Yn:$u(65536,"null",65536),w=$u(4,"string"),ge=$u(8,"number"),he=$u(64,"bigint"),ue=$u(512,"false"),_e=$u(512,"false"),pe=$u(512,"true"),q=$u(512,"true");pe.regularType=q,pe.freshType=pe,q.regularType=q,q.freshType=pe,ue.regularType=_e,ue.freshType=ue,_e.regularType=_e,_e.freshType=ue;var rt=Oi([_e,q]),ar=$u(4096,"symbol"),st=$u(16384,"void"),Ft=$u(131072,"never"),zr=$u(131072,"never",262144),En=$u(131072,"never"),Ti=$u(131072,"never"),Ui=$u(67108864,"object"),ya=Oi([w,ge]),_s=Oi([w,ge,ar]),Os=Ze?w:_s,zs=Oi([ge,he]),Wo=Oi([w,ge,rt,he,Yn,Ne]),Ks=gx(["",""],[ge]),ti=uM(r=>r.flags&262144?aZe(r):r,()=>"(restrictive mapper)"),Na=uM(r=>r.flags&262144?nr:r,()=>"(permissive mapper)"),al=$u(131072,"never"),pc=uM(r=>r.flags&262144?al:r,()=>"(unique literal mapper)"),Yr,os=uM(r=>(Yr&&(r===wf||r===fl||r===Nu)&&Yr(!0),r),()=>"(unmeasurable reporter)"),Gs=uM(r=>(Yr&&(r===wf||r===fl||r===Nu)&&Yr(!1),r),()=>"(unreliable reporter)"),Ua=yu(void 0,V,tt,tt,tt),el=yu(void 0,V,tt,tt,tt);el.objectFlags|=2048;var Wl=vc(2048,"__type");Wl.members=To();var du=yu(Wl,V,tt,tt,tt),uf=yu(void 0,V,tt,tt,tt),Ms=$?Oi([Ne,Yn,uf]):at,qa=yu(void 0,V,tt,tt,tt);qa.instantiations=new Map;var h_=yu(void 0,V,tt,tt,tt);h_.objectFlags|=262144;var ru=yu(void 0,V,tt,tt,tt),dp=yu(void 0,V,tt,tt,tt),k_=yu(void 0,V,tt,tt,tt),wf=h0(),fl=h0();fl.constraint=wf;var Nu=h0(),Cl=h0(),Hl=h0();Hl.constraint=Cl;var gr=rM(1,"<>",0,it),r_=Lh(void 0,void 0,void 0,tt,it,void 0,0,0),Zf=Lh(void 0,void 0,void 0,tt,Y,void 0,0,0),_f=Lh(void 0,void 0,void 0,tt,it,void 0,0,0),fe=Lh(void 0,void 0,void 0,tt,zr,void 0,0,0),G=j1(ge,w,!0),Le=new Map,gt={get yieldType(){return D.fail("Not supported")},get returnType(){return D.fail("Not supported")},get nextType(){return D.fail("Not supported")}},Nt=Ov(it,it,it),Rn=Ov(it,it,at),qn=Ov(Ft,it,Ne),Di={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:JGe,getGlobalIterableType:LV,getGlobalIterableIteratorType:UGe,getGlobalGeneratorType:VGe,resolveIterationType:(r,a)=>Ex(r,a,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:p.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},xi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:WGe,getGlobalIterableType:Dae,getGlobalIterableIteratorType:qGe,getGlobalGeneratorType:$Ge,resolveIterationType:(r,a)=>r,mustHaveANextMethodDiagnostic:p.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},La,Fs=new Map,mu=!1,Hc,Gc,Ef,gu,tl,Lc,Yp,su,ff,C_,Qp,Ce,Gt,un,da,Rs,ne,_t,Qt,Kt,xr,fn,si,Bi,Ia,As,Ro,wl,Rl,gd,p0,l_,Am,Kp,nm,mp,Hg,gy,kh,Ch,J,Xe,ir,kn,Js,va,ts,Us,ml,dc,u_,Rd,ed,dg,Gg=new Map,mg=0,Ie=0,Ke=0,pt=!1,pr=0,Vr,Gr,Xr,Tn=[],ra=[],Va=[],Bn=0,pi=[],Hn=[],qs=0,Iu=Wd(""),K_=Sg(0),Bd=zV({negative:!1,base10Value:"0"}),wh=[],Eh=[],d0=[],p2=0,Pb=!1,rT=0,d2=10,nT=[],j3=[],Z4=[],z3=[],Ob=[],m8=[],Y4=[],g8=[],J3=[],h8=[],iT=[],U3=[],Mb=[],Lb=[],Fb=[],aT=[],m2=[],yc=sk(),V3=sk(),y8=SC(),av,hy,N1=new Map,Hm=new Map,td=new Map,hd=new Map,yd=new Map,yy=new Map,sT=To();sT.set(Pe.escapedName,Pe);var v8=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",z.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Vit(),yr;function W3(r){return r?Ca.get(r):void 0}function oT(r,a){return r&&Ca.set(r,a),a}function Q4(r){if(r){const a=bn(r);if(a)if(FS(r)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const c=a.pragmas.get("jsxfrag");if(c){const d=ns(c)?c[0]:c;if(a.localJsxFragmentFactory=JS(d.arguments.factory,ce),Ye(a.localJsxFragmentFactory,K4,hm),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Tm(a.localJsxFragmentFactory).escapedText}const u=fce(r);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=Tm(u).escapedText}else{const c=b8(a);if(c)return a.localJsxNamespace=c}}return av||(av="React",z.jsxFactory?(hy=JS(z.jsxFactory,ce),Ye(hy,K4),hy&&(av=Tm(hy).escapedText)):z.reactNamespace&&(av=Kl(z.reactNamespace))),hy||(hy=M.createQualifiedName(M.createIdentifier(Ba(av)),"createElement")),av}function b8(r){if(r.localJsxNamespace)return r.localJsxNamespace;const a=r.pragmas.get("jsx");if(a){const c=ns(a)?a[0]:a;if(r.localJsxFactory=JS(c.arguments.factory,ce),Ye(r.localJsxFactory,K4,hm),r.localJsxFactory)return r.localJsxNamespace=Tm(r.localJsxFactory).escapedText}}function K4(r){return ph(r,-1,-1),nn(r,K4,rv)}function q3(r,a){return xCe(r,a),Me}function x8(r,a,...c){const u=r?ai(r,a,...c):zu(a,...c),d=yc.lookup(u);return d||(yc.add(u),u)}function sv(r,a,c,...u){const d=qe(a,c,...u);return d.skippedOn=r,d}function cT(r,a,...c){return r?ai(r,a,...c):zu(a,...c)}function qe(r,a,...c){const u=cT(r,a,...c);return yc.add(u),u}function Ah(r,a){r?yc.add(a):V3.add(Xs(fa({},a),{category:2}))}function vy(r,a,c,...u){if(a.pos<0||a.end<0){if(!r)return;const d=bn(a);Ah(r,"message"in c?af(d,0,0,c,...u):b$(d,c));return}Ah(r,"message"in c?ai(a,c,...u):Wy(bn(a),a,c))}function g2(r,a,c,...u){const d=qe(r,c,...u);if(a){const g=ai(r,p.Did_you_forget_to_use_await);ic(d,g)}return d}function e6(r,a){const c=Array.isArray(r)?Vt(r,Nq):Nq(r);return c&&ic(a,ai(c,p.The_declaration_was_marked_as_deprecated_here)),V3.add(a),a}function ov(r){const a=vd(r);return a&&Nr(r.declarations)>1?a.flags&64?bt(r.declarations,t6):yn(r.declarations,t6):!!r.valueDeclaration&&t6(r.valueDeclaration)||Nr(r.declarations)&&yn(r.declarations,t6)}function t6(r){return!!(b1(r)&268435456)}function Pu(r,a,c){const u=ai(r,p._0_is_deprecated,c);return e6(a,u)}function cv(r,a,c,u){const d=c?ai(r,p.The_signature_0_of_1_is_deprecated,u,c):ai(r,p._0_is_deprecated,u);return e6(a,d)}function vc(r,a,c){y++;const u=new f(r|33554432,a);return u.links=new vZ,u.links.checkFlags=c||0,u}function jd(r,a){const c=vc(1,r);return c.links.type=a,c}function $3(r,a){const c=vc(4,r);return c.links.type=a,c}function gp(r){let a=0;return r&2&&(a|=111551),r&1&&(a|=111550),r&4&&(a|=0),r&8&&(a|=900095),r&16&&(a|=110991),r&32&&(a|=899503),r&64&&(a|=788872),r&256&&(a|=899327),r&128&&(a|=899967),r&512&&(a|=110735),r&8192&&(a|=103359),r&32768&&(a|=46015),r&65536&&(a|=78783),r&262144&&(a|=526824),r&524288&&(a|=788968),r&2097152&&(a|=2097152),a}function by(r,a){a.mergeId||(a.mergeId=hZ,hZ++),nT[a.mergeId]=r}function zd(r){const a=vc(r.flags,r.escapedName);return a.declarations=r.declarations?r.declarations.slice():[],a.parent=r.parent,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),r.members&&(a.members=new Map(r.members)),r.exports&&(a.exports=new Map(r.exports)),by(a,r),a}function h2(r,a,c=!1){if(!(r.flags&gp(a.flags))||(a.flags|r.flags)&67108864){if(a===r)return r;if(!(r.flags&33554432)){const d=nu(r);if(d===Kr)return a;r=zd(d)}a.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!a.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=a.flags,a.valueDeclaration&&KD(r,a.valueDeclaration),Et(r.declarations,a.declarations),a.members&&(r.members||(r.members=To()),I1(r.members,a.members,c)),a.exports&&(r.exports||(r.exports=To()),I1(r.exports,a.exports,c)),c||by(r,a)}else if(r.flags&1024)r!==nt&&qe(a.declarations&&Es(a.declarations[0]),p.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ze(r));else{const d=!!(r.flags&384||a.flags&384),g=!!(r.flags&2||a.flags&2),x=d?p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,P=a.declarations&&bn(a.declarations[0]),L=r.declarations&&bn(r.declarations[0]),X=zL(P,z.checkJs),Z=zL(L,z.checkJs),Te=ze(a);if(P&&L&&La&&!d&&P!==L){const Ee=Yx(P.path,L.path)===-1?P:L,De=Ee===P?L:P,ut=$d(La,`${Ee.path}|${De.path}`,()=>({firstFile:Ee,secondFile:De,conflictingSymbols:new Map})),jt=$d(ut.conflictingSymbols,Te,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));X||u(jt.firstFileLocations,a),Z||u(jt.secondFileLocations,r)}else X||H3(a,x,Te,r),Z||H3(r,x,Te,a)}return r;function u(d,g){if(g.declarations)for(const x of g.declarations)kr(d,x)}}function H3(r,a,c,u){Vt(r.declarations,d=>{G3(d,a,c,u.declarations)})}function G3(r,a,c,u){const d=(D4(r,!1)?P$(r):Es(r))||r,g=x8(d,a,c);for(const x of u||tt){const P=(D4(x,!1)?P$(x):Es(x))||x;if(P===d)continue;g.relatedInformation=g.relatedInformation||[];const L=ai(P,p._0_was_also_declared_here,c),X=ai(P,p.and_here);Nr(g.relatedInformation)>=5||bt(g.relatedInformation,Z=>p9(Z,X)===0||p9(Z,L)===0)||ic(g,Nr(g.relatedInformation)?X:L)}}function T8(r,a){if(!(r!=null&&r.size))return a;if(!(a!=null&&a.size))return r;const c=To();return I1(c,r),I1(c,a),c}function I1(r,a,c=!1){a.forEach((u,d)=>{const g=r.get(d);r.set(d,g?h2(g,u,c):Ec(u))})}function lT(r){var a,c,u;const d=r.parent;if(((a=d.symbol.declarations)==null?void 0:a[0])!==d){D.assert(d.symbol.declarations.length>1);return}if(x1(d))I1(je,d.symbol.exports);else{const g=r.parent.parent.flags&16777216?void 0:p.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let x=pv(r,r,g,!0);if(!x)return;if(x=om(x),x.flags&1920)if(bt(Gc,P=>x===P.symbol)){const P=h2(d.symbol,x,!0);Ef||(Ef=new Map),Ef.set(r.text,P)}else{if((c=x.exports)!=null&&c.get("__export")&&((u=d.symbol.exports)!=null&&u.size)){const P=Yie(x,"resolvedExports");for(const[L,X]of zt(d.symbol.exports.entries()))P.has(L)&&!x.exports.has(L)&&h2(P.get(L),X)}h2(x,d.symbol)}else qe(r,p.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function uT(r,a,c){a.forEach((d,g)=>{const x=r.get(g);x?Vt(x.declarations,u(Ba(g),c)):r.set(g,d)});function u(d,g){return x=>yc.add(ai(x,g,d))}}function Pa(r){var c;if(r.flags&33554432)return r.links;const a=oc(r);return(c=j3[a])!=null?c:j3[a]=new vZ}function Ei(r){const a=Nc(r);return Z4[a]||(Z4[a]=new RDe)}function im(r){return r.kind===311&&!bm(r)}function pf(r,a,c){if(c){const u=Ec(r.get(a));if(u&&(D.assert((Du(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&c||u.flags&2097152&&rd(u)&c))return u}}function y2(r,a){const c=r.parent,u=r.parent.parent,d=pf(c.locals,a,111551),g=pf(P2(u.symbol),a,111551);return d&&g?[d,g]:D.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function lv(r,a){const c=bn(r),u=bn(a),d=sh(r);if(c!==u){if(R&&(c.externalModuleIndicator||u.externalModuleIndicator)||!Ml(z)||zC(a)||r.flags&16777216||x(a,r))return!0;const L=e.getSourceFiles();return L.indexOf(c)<=L.indexOf(u)}if(r.pos<=a.pos&&!(fo(r)&&JD(a.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===207){const L=I4(a,207);return L?Sn(L,Cc)!==Sn(r,Cc)||r.posjc(L)&&L.parent.parent===r);if(fo(r))return!P(r,a,!1);if(gm(r,r.parent))return!(gc(z)===99&&ae&&Z_(r)===Z_(a)&&x(a,r))}return!0}if(a.parent.kind===280||a.parent.kind===276&&a.parent.isExportEquals||a.kind===276&&a.isExportEquals||a.flags&8388608||zC(a)||Pse(a))return!0;if(x(a,r))return gc(z)>=9&&ae&&Z_(r)&&(fo(r)||gm(r,r.parent))?!P(r,a,!0):!0;return!1;function g(L,X){switch(L.parent.parent.kind){case 242:case 247:case 249:if(Zg(X,L,d))return!0;break}const Z=L.parent.parent;return L5(Z)&&Zg(X,Z.expression,d)}function x(L,X){return!!Sn(L,Z=>{if(Z===d)return"quit";if(Qs(Z))return!0;if(fu(Z))return X.posL.end?!1:Sn(X,Ee=>{if(Ee===L)return"quit";switch(Ee.kind){case 218:return!0;case 171:return Z&&(fo(L)&&Ee.parent===L.parent||gm(L,L.parent)&&Ee.parent===L.parent.parent)?"quit":!0;case 240:switch(Ee.parent.kind){case 176:case 173:case 177:return!0;default:return!1}default:return!1}})===void 0}}function r6(r,a,c){const u=gc(z),d=a;if(Cs(c)&&d.body&&r.valueDeclaration&&r.valueDeclaration.pos>=d.body.pos&&r.valueDeclaration.end<=d.body.end&&u>=2){const P=Ei(d);return P.declarationRequiresScopeChange===void 0&&(P.declarationRequiresScopeChange=Vt(d.parameters,g)||!1),!P.declarationRequiresScopeChange}return!1;function g(P){return x(P.name)||!!P.initializer&&x(P.initializer)}function x(P){switch(P.kind){case 218:case 217:case 261:case 175:return!1;case 173:case 176:case 177:case 302:return x(P.name);case 171:return R_(P)?u<99||!ae:x(P.name);default:return Lq(P)||op(P)?u<7:Cc(P)&&P.dotDotDotToken&&Bg(P.parent)?u<4:Oa(P)?!1:js(P,x)||!1}}}function S8(r){return i7(r)&&Vy(r.type)||H9(r)&&Vy(r.typeExpression)}function hu(r,a,c,u,d,g,x=!1,P=!0){return X3(r,a,c,u,d,g,x,P,pf)}function X3(r,a,c,u,d,g,x,P,L){var X,Z,Te;const Ee=r;let De,ut,jt,Jr,Hr,vn=!1;const br=r;let Tr,$n=!1;e:for(;r;){if(a==="const"&&S8(r))return;if(Vu(r)&&ut&&r.name===ut&&(ut=r,r=r.parent),nh(r)&&r.locals&&!im(r)&&(De=L(r.locals,a,c))){let Br=!0;if(Qs(r)&&ut&&ut!==r.body?(c&De.flags&788968&&ut.kind!==326&&(Br=De.flags&262144?ut===r.type||ut.kind===168||ut.kind===347||ut.kind===348||ut.kind===167:!1),c&De.flags&3&&(r6(De,r,ut)?Br=!1:De.flags&1&&(Br=ut.kind===168||ut===r.type&&!!Sn(De.valueDeclaration,Cs)))):r.kind===193&&(Br=ut===r.trueType),Br)break e;De=void 0}switch(vn=vn||_T(r,ut),r.kind){case 311:if(!bm(r))break;$n=!0;case 266:const Br=((X=ei(r))==null?void 0:X.exports)||V;if(r.kind===311||Vu(r)&&r.flags&16777216&&!x1(r)){if(De=Br.get("default")){const ji=uk(De);if(ji&&De.flags&c&&ji.escapedName===a)break e;De=void 0}const Ni=Br.get(a);if(Ni&&Ni.flags===2097152&&(wu(Ni,280)||wu(Ni,279)))break}if(a!=="default"&&(De=L(Br,a,c&2623475)))if(Ja(r)&&r.commonJsModuleIndicator&&!((Z=De.declarations)!=null&&Z.some(M0)))De=void 0;else break e;break;case 265:if(De=L(((Te=ei(r))==null?void 0:Te.exports)||V,a,c&8)){u&&Fg(z)&&!(r.flags&16777216)&&bn(r)!==bn(De.valueDeclaration)&&qe(br,p.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ba(a),Zt,`${Ba(Im(r).escapedName)}.${Ba(a)}`);break e}break;case 171:if(!so(r)){const Ni=Hb(r.parent);Ni&&Ni.locals&&L(Ni.locals,a,c&111551)&&(D.assertNode(r,fo),Jr=r)}break;case 262:case 230:case 263:if(De=L(ei(r).members||V,a,c&788968)){if(!fT(De,r)){De=void 0;break}if(ut&&so(ut)){u&&qe(br,p.Static_members_cannot_reference_class_type_parameters);return}break e}if(Mp(r)&&c&32){const Ni=r.name;if(Ni&&a===Ni.escapedText){De=r.symbol;break e}}break;case 232:if(ut===r.expression&&r.parent.token===96){const Ni=r.parent.parent;if(Yi(Ni)&&(De=L(ei(Ni).members,a,c&788968))){u&&qe(br,p.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 166:if(Tr=r.parent.parent,(Yi(Tr)||Tr.kind===263)&&(De=L(ei(Tr).members,a,c&788968))){u&&qe(br,p.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 218:if(gc(z)>=2)break;case 173:case 175:case 176:case 177:case 261:if(c&3&&a==="arguments"){De=wt;break e}break;case 217:if(c&3&&a==="arguments"){De=wt;break e}if(c&16){const Ni=r.name;if(Ni&&a===Ni.escapedText){De=r.symbol;break e}}break;case 169:r.parent&&r.parent.kind===168&&(r=r.parent),r.parent&&(yf(r.parent)||r.parent.kind===262)&&(r=r.parent);break;case 352:case 344:case 346:const _n=Hw(r);_n&&(r=_n.parent);break;case 168:ut&&(ut===r.initializer||ut===r.name&&_o(ut))&&(Hr||(Hr=r));break;case 207:ut&&(ut===r.initializer||ut===r.name&&_o(ut))&&f7(r)&&!Hr&&(Hr=r);break;case 194:if(c&262144){const Ni=r.typeParameter.name;if(Ni&&a===Ni.escapedText){De=r.typeParameter.symbol;break e}}break;case 280:ut&&ut===r.propertyName&&r.parent.parent.moduleSpecifier&&(r=r.parent.parent.parent);break}Y3(r)&&(jt=r),ut=r,r=Ug(r)?mF(r)||r.parent:(Jg(r)||$R(r))&&N4(r)||r.parent}if(g&&De&&(!jt||De!==jt.symbol)&&(De.isReferenced|=c),!De){if(ut&&(D.assertNode(ut,Ja),ut.commonJsModuleIndicator&&a==="exports"&&c&ut.symbol.flags))return ut.symbol;x||(De=L(je,a,c))}if(!De&&Ee&&jn(Ee)&&Ee.parent&&Nd(Ee.parent,!1))return xt;function Sr(){return Jr&&!(ae&&gc(z)>=9)?(qe(br,br&&Jr.type&&dL(Jr.type,br.pos)?p.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:p.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,il(Jr.name),gg(d)),!0):!1}if(De){if(u&&Sr())return}else{u&&n(()=>{if(!br||br.parent.kind!==330&&!yC(br,a,d)&&!Sr()&&!Rb(br)&&!am(br,a,c)&&!Bb(br,a)&&!Xg(br,a,c)&&!k8(br,a,c)&&!uv(br,a,c)){let Br,_n;if(d&&(_n=NKe(d),_n&&qe(br,u,gg(d),_n)),!_n&&P&&rT{if(br&&(c&2||(c&32||c&384)&&(c&111551)===111551)){const Br=V0(De);(Br.flags&2||Br.flags&32||Br.flags&384)&&vC(Br,br)}if(De&&$n&&(c&111551)===111551&&!(Ee.flags&8388608)){const Br=Ec(De);Nr(Br.declarations)&&yn(Br.declarations,_n=>uI(_n)||Ja(_n)&&!!_n.symbol.globalExports)&&vy(!z.allowUmdGlobalAccess,br,p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ba(a))}if(De&&Hr&&!vn&&(c&111551)===111551){const Br=Ec(AV(De)),_n=ch(Hr);Br===ei(Hr)?qe(br,p.Parameter_0_cannot_reference_itself,il(Hr.name)):Br.valueDeclaration&&Br.valueDeclaration.pos>Hr.pos&&_n.parent.locals&&L(_n.parent.locals,Br.escapedName,c)===Br&&qe(br,p.Parameter_0_cannot_reference_identifier_1_declared_after_it,il(Hr.name),il(br))}if(De&&br&&c&111551&&De.flags&2097152&&!(De.flags&111551)&&!v7(br)){const Br=Yf(De,111551);if(Br){const _n=Br.kind===280||Br.kind===277||Br.kind===279?p._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Ni=Ba(a);Z3(qe(br,_n,Ni),Br,Ni)}}}),De}function Z3(r,a,c){return a?ic(r,ai(a,a.kind===280||a.kind===277||a.kind===279?p._0_was_exported_here:p._0_was_imported_here,c)):r}function _T(r,a){return r.kind!==218&&r.kind!==217?F9(r)||(Jl(r)||r.kind===171&&!so(r))&&(!a||a!==r.name):a&&a===r.name?!1:r.asteriskToken||Pi(r,512)?!0:!c7(r)}function Y3(r){switch(r.kind){case 261:case 262:case 263:case 265:case 264:case 266:return!0;default:return!1}}function gg(r){return bs(r)?Ba(r):il(r)}function fT(r,a){if(r.declarations){for(const c of r.declarations)if(c.kind===167&&(Ug(c.parent)?lS(c.parent):c.parent)===a)return!(Ug(c.parent)&&on(c.parent.parent.tags,M0))}return!1}function yC(r,a,c){if(!Be(r)||r.escapedText!==a||TCe(r)||zC(r))return!1;const u=_d(r,!1,!1);let d=u;for(;d;){if(Yi(d.parent)){const g=ei(d.parent);if(!g)break;const x=An(g);if(So(x,a))return qe(r,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,gg(c),ze(g)),!0;if(d===u&&!so(d)){const P=hl(g).thisType;if(So(P,a))return qe(r,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,gg(c)),!0}}d=d.parent}return!1}function Rb(r){const a=pT(r);return a&&ou(a,64,!0)?(qe(r,p.Cannot_extend_an_interface_0_Did_you_mean_implements,F_(a)),!0):!1}function pT(r){switch(r.kind){case 80:case 210:return r.parent?pT(r.parent):void 0;case 232:if(ju(r.expression))return r.expression;default:return}}function am(r,a,c){const u=1920|(jn(r)?111551:0);if(c===u){const d=nu(hu(r,a,788968&~u,void 0,void 0,!1)),g=r.parent;if(d){if(Od(g)){D.assert(g.left===r,"Should only be resolving left side of qualified name as a namespace");const x=g.right.escapedText;if(So(hl(d),x))return qe(g,p.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ba(a),Ba(x)),!0}return qe(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ba(a)),!0}}return!1}function uv(r,a,c){if(c&788584){const u=nu(hu(r,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return qe(r,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ba(a)),!0}return!1}function Jd(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function Bb(r,a){return Jd(a)&&r.parent.kind===280?(qe(r,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function k8(r,a,c){if(c&111551){if(Jd(a))return xy(r)?qe(r,p.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,Ba(a)):qe(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ba(a)),!0;const u=nu(hu(r,a,788544,void 0,void 0,!1)),d=u&&rd(u);if(u&&d!==void 0&&!(d&111551)){const g=Ba(a);return dT(a)?qe(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):jb(r,u)?qe(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g==="K"?"P":"K"):qe(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function xy(r){const a=r.parent.parent,c=a.parent;if(a&&c){const u=Kd(a)&&a.token===96,d=Lp(c);return u&&d}return!1}function jb(r,a){const c=Sn(r.parent,u=>jc(u)||Vm(u)?!1:Sm(u)||"quit");if(c&&c.members.length===1){const u=hl(a);return!!(u.flags&1048576)&&qM(u,384,!0)}return!1}function dT(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Xg(r,a,c){if(c&111127){if(nu(hu(r,a,1024,void 0,void 0,!1)))return qe(r,p.Cannot_use_namespace_0_as_a_value,Ba(a)),!0}else if(c&788544&&nu(hu(r,a,1536,void 0,void 0,!1)))return qe(r,p.Cannot_use_namespace_0_as_a_type,Ba(a)),!0;return!1}function vC(r,a){var c;if(D.assert(!!(r.flags&2||r.flags&32||r.flags&384)),r.flags&67108881&&r.flags&32)return;const u=(c=r.declarations)==null?void 0:c.find(d=>l$(d)||Yi(d)||d.kind===265);if(u===void 0)return D.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&16777216)&&!lv(u,a)){let d;const g=il(Es(u));r.flags&2?d=qe(a,p.Block_scoped_variable_0_used_before_its_declaration,g):r.flags&32?d=qe(a,p.Class_0_used_before_its_declaration,g):r.flags&256&&(d=qe(a,p.Enum_0_used_before_its_declaration,g)),d&&ic(d,ai(u,p._0_is_declared_here,g))}}function Zg(r,a,c){return!!a&&!!Sn(r,u=>u===a||(u===c||Qs(u)&&(!c7(u)||ak(u))?"quit":!1))}function Yg(r){switch(r.kind){case 270:return r;case 272:return r.parent;case 273:return r.parent.parent;case 275:return r.parent.parent.parent;default:return}}function sm(r){return r.declarations&&rl(r.declarations,n6)}function n6(r){return r.kind===270||r.kind===269||r.kind===272&&!!r.name||r.kind===273||r.kind===279||r.kind===275||r.kind===280||r.kind===276&&rk(r)||Un(r)&&Au(r)===2&&rk(r)||$l(r)&&Un(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64&&zb(r.parent.right)||r.kind===303||r.kind===302&&zb(r.initializer)||r.kind===259&&o3(r)||r.kind===207&&o3(r.parent.parent)}function zb(r){return uN(r)||_l(r)&&c1(r)}function bC(r,a){const c=s6(r);if(c){const d=_9(c.expression).arguments[0];return Be(c.name)?nu(So(hTe(d),c.name.escapedText)):void 0}if(Fa(r)||r.moduleReference.kind===282){const d=z_(r,A$(r)||qw(r)),g=om(d);return m0(r,d,g,!1),g}const u=tx(r.moduleReference,a);return mT(r,u),u}function mT(r,a){if(m0(r,void 0,a,!1)&&!r.isTypeOnly){const c=Yf(ei(r)),u=c.kind===280||c.kind===277,d=u?p.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:p.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?p._0_was_exported_here:p._0_was_imported_here,x=c.kind===277?"*":Ba(c.name.escapedText);ic(qe(r.moduleReference,d),ai(c,g,x))}}function Xc(r,a,c,u){const d=r.exports.get("export="),g=d?So(An(d),a,!0):r.exports.get(a),x=nu(g,u);return m0(c,g,x,!1),x}function Q3(r){return Wu(r)&&!r.isExportEquals||Pi(r,1024)||dd(r)}function Jb(r){return Wc(r)?_g(bn(r),r):void 0}function gT(r,a){return r===99&&a===1}function Ub(r){return Jb(r)===99&&gi(r.text,".json")}function hT(r,a,c,u){const d=r&&Jb(u);if(r&&d!==void 0){const g=gT(d,r.impliedNodeFormat);if(d===99||g)return g}if(!ye)return!1;if(!r||r.isDeclarationFile){const g=Xc(a,"default",void 0,!0);return!(g&&bt(g.declarations,Q3)||Xc(a,Kl("__esModule"),void 0,c))}return Ip(r)?typeof r.externalModuleIndicator!="object"&&!Xc(a,Kl("__esModule"),void 0,c):Sy(a)}function C8(r,a){const c=z_(r,r.parent.moduleSpecifier);if(c)return yT(c,r,a)}function yT(r,a,c){var u;let d;zw(r)?d=r:d=Xc(r,"default",a,c);const g=(u=r.declarations)==null?void 0:u.find(Ja),x=Cn(a);if(!x)return d;const P=Ub(x),L=hT(g,r,c,x);if(!d&&!L&&!P)if(Sy(r)&&!ye){const X=R>=5?"allowSyntheticDefaultImports":"esModuleInterop",Te=r.exports.get("export=").valueDeclaration,Ee=qe(a.name,p.Module_0_can_only_be_default_imported_using_the_1_flag,ze(r),X);Te&&ic(Ee,ai(Te,p.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,X))}else hh(a)?qu(r,a):a6(r,r,a,YT(a)&&a.propertyName||a.name);else if(L||P){const X=om(r,c)||nu(r,c);return m0(a,r,X,!1),X}return m0(a,d,void 0,!1),d}function Cn(r){switch(r.kind){case 272:return r.parent.moduleSpecifier;case 270:return yh(r.moduleReference)?r.moduleReference.expression:void 0;case 273:return r.parent.parent.moduleSpecifier;case 275:return r.parent.parent.parent.moduleSpecifier;case 280:return r.parent.parent.moduleSpecifier;default:return D.assertNever(r)}}function qu(r,a){var c,u,d;if((c=r.exports)!=null&&c.has(a.symbol.escapedName))qe(a.name,p.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ze(r),ze(a.symbol));else{const g=qe(a.name,p.Module_0_has_no_default_export,ze(r)),x=(u=r.exports)==null?void 0:u.get("__export");if(x){const P=(d=x.declarations)==null?void 0:d.find(L=>{var X,Z;return!!(Sf(L)&&L.moduleSpecifier&&((Z=(X=z_(L,L.moduleSpecifier))==null?void 0:X.exports)!=null&&Z.has("default")))});P&&ic(g,ai(P,p.export_Asterisk_does_not_re_export_a_default))}}}function ps(r,a){const c=r.parent.parent.moduleSpecifier,u=z_(r,c),d=Wb(u,c,a,!1);return m0(r,u,d,!1),d}function _v(r,a){const c=r.parent.moduleSpecifier,u=c&&z_(r,c),d=c&&Wb(u,c,a,!1);return m0(r,u,d,!1),d}function K3(r,a){if(r===Kr&&a===Kr)return Kr;if(r.flags&790504)return r;const c=vc(r.flags|a.flags,r.escapedName);return D.assert(r.declarations||a.declarations),c.declarations=No(Nn(r.declarations,a.declarations),Dg),c.parent=r.parent||a.parent,r.valueDeclaration&&(c.valueDeclaration=r.valueDeclaration),a.members&&(c.members=new Map(a.members)),r.exports&&(c.exports=new Map(r.exports)),c}function Qg(r,a,c,u){var d;if(r.flags&1536){const g=Nm(r).get(a.escapedText),x=nu(g,u),P=(d=Pa(r).typeOnlyExportStarMap)==null?void 0:d.get(a.escapedText);return m0(c,g,x,!1,P,a.escapedText),x}}function Dn(r,a){if(r.flags&3){const c=r.valueDeclaration.type;if(c)return nu(So(Qi(c),a))}}function i6(r,a,c=!1){var u;const d=A$(r)||r.moduleSpecifier,g=z_(r,d),x=!mi(a)&&a.propertyName||a.name;if(!Be(x))return;const P=x.escapedText==="default"&&ye,L=Wb(g,d,!1,P);if(L&&x.escapedText){if(zw(g))return g;let X;g&&g.exports&&g.exports.get("export=")?X=So(An(L),x.escapedText,!0):X=Dn(L,x.escapedText),X=nu(X,c);let Z=Qg(L,x,a,c);if(Z===void 0&&x.escapedText==="default"){const Ee=(u=g.declarations)==null?void 0:u.find(Ja);(Ub(d)||hT(Ee,g,c,d))&&(Z=om(g,c)||nu(g,c))}const Te=Z&&X&&Z!==X?K3(X,Z):Z||X;return Te||a6(g,L,r,x),Te}}function a6(r,a,c,u){var d;const g=g0(r,c),x=il(u),P=PW(u,a);if(P!==void 0){const L=ze(P),X=qe(u,p._0_has_no_exported_member_named_1_Did_you_mean_2,g,x,L);P.valueDeclaration&&ic(X,ai(P.valueDeclaration,p._0_is_declared_here,L))}else(d=r.exports)!=null&&d.has("default")?qe(u,p.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,x):y_(c,u,x,r,g)}function y_(r,a,c,u,d){var g,x;const P=(x=(g=di(u.valueDeclaration,nh))==null?void 0:g.locals)==null?void 0:x.get(a.escapedText),L=u.exports;if(P){const X=L==null?void 0:L.get("export=");if(X)O1(X,P)?P1(r,a,c,d):qe(a,p.Module_0_has_no_exported_member_1,d,c);else{const Z=L?on(mae(L),Ee=>!!O1(Ee,P)):void 0,Te=Z?qe(a,p.Module_0_declares_1_locally_but_it_is_exported_as_2,d,c,ze(Z)):qe(a,p.Module_0_declares_1_locally_but_it_is_not_exported,d,c);P.declarations&&ic(Te,...er(P.declarations,(Ee,De)=>ai(Ee,De===0?p._0_is_declared_here:p.and_here,c)))}}else qe(a,p.Module_0_has_no_exported_member_1,d,c)}function P1(r,a,c,u){if(R>=5){const d=fh(z)?p._0_can_only_be_imported_by_using_a_default_import:p._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,d,c)}else if(jn(r)){const d=fh(z)?p._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:p._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,d,c)}else{const d=fh(z)?p._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:p._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,d,c,c,u)}}function J0(r,a){if(Ld(r)&&ri(r.propertyName||r.name)==="default"){const x=Cn(r),P=x&&z_(r,x);if(P)return yT(P,r,a)}const c=Cc(r)?ch(r):r.parent.parent.parent,u=s6(c),d=i6(c,u||r,a),g=r.propertyName||r.name;return u&&d&&Be(g)?nu(So(An(d),g.escapedText),a):(m0(r,void 0,d,!1),d)}function s6(r){if(Fa(r)&&r.initializer&&mi(r.initializer))return r.initializer}function ex(r,a){if(rh(r.parent)){const c=om(r.parent.symbol,a);return m0(r,void 0,c,!1),c}}function Ty(r,a,c){if(ri(r.propertyName||r.name)==="default"){const d=Cn(r),g=d&&z_(r,d);if(g)return yT(g,r,!!c)}const u=r.parent.parent.moduleSpecifier?i6(r.parent.parent,r,c):ou(r.propertyName||r.name,a,!1,c);return m0(r,void 0,u,!1),u}function o6(r,a){const c=Wu(r)?r.expression:r.right,u=c6(c,a);return m0(r,void 0,u,!1),u}function c6(r,a){if(Mp(r))return n_(r).symbol;if(!hm(r)&&!ju(r))return;const c=ou(r,901119,!0,a);return c||(n_(r),Ei(r).resolvedSymbol)}function Dh(r,a){if(Un(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64)return c6(r.parent.right,a)}function U0(r,a=!1){switch(r.kind){case 270:case 259:return bC(r,a);case 272:return C8(r,a);case 273:return ps(r,a);case 279:return _v(r,a);case 275:case 207:return J0(r,a);case 280:return Ty(r,901119,a);case 276:case 225:return o6(r,a);case 269:return ex(r,a);case 303:return ou(r.name,901119,!0,a);case 302:return c6(r.initializer,a);case 211:case 210:return Dh(r,a);default:return D.fail()}}function v2(r,a=901119){return r?(r.flags&(2097152|a))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function nu(r,a){return!a&&v2(r)?Rf(r):r}function Rf(r){D.assert((r.flags&2097152)!==0,"Should only get Alias here.");const a=Pa(r);if(a.aliasTarget)a.aliasTarget===Li&&(a.aliasTarget=Kr);else{a.aliasTarget=Li;const c=sm(r);if(!c)return D.fail();const u=U0(c);a.aliasTarget===Li?a.aliasTarget=u||Kr:qe(c,p.Circular_definition_of_import_alias_0,ze(r))}return a.aliasTarget}function Nh(r){if(Pa(r).aliasTarget!==Li)return Rf(r)}function rd(r){let a=r.flags,c;for(;r.flags&2097152;){const u=Rf(r);if(u===Kr)return 67108863;if(u===r||c!=null&&c.has(u))break;u.flags&2097152&&(c?c.add(u):c=new Set([r,u])),a|=u.flags,r=u}return a}function m0(r,a,c,u,d,g){if(!r||mi(r))return!1;const x=ei(r);if(Q6(r)){const L=Pa(x);return L.typeOnlyDeclaration=r,!0}if(d){const L=Pa(x);return L.typeOnlyDeclaration=d,x.escapedName!==g&&(L.typeOnlyExportStarName=g),!0}const P=Pa(x);return l6(P,a,u)||l6(P,c,u)}function l6(r,a,c){var d,g;var u;if(a&&(r.typeOnlyDeclaration===void 0||c&&r.typeOnlyDeclaration===!1)){const x=(d=(u=a.exports)==null?void 0:u.get("export="))!=null?d:a,P=x.declarations&&on(x.declarations,Q6);r.typeOnlyDeclaration=(g=P!=null?P:Pa(x).typeOnlyDeclaration)!=null?g:!1}return!!r.typeOnlyDeclaration}function Yf(r,a){if(!(r.flags&2097152))return;const c=Pa(r);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){const u=c.typeOnlyDeclaration.kind===277?nu(Ih(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||r.escapedName)):Rf(c.typeOnlyDeclaration.symbol);return rd(u)&a?c.typeOnlyDeclaration:void 0}}function vT(r){if(!Qe)return;const a=ei(r),c=Rf(a);c&&(c===Kr||rd(c)&111551&&!iD(c)&&!Yf(a,111551))&&b2(a)}function b2(r){D.assert(Qe);const a=Pa(r);if(!a.referenced){a.referenced=!0;const c=sm(r);if(!c)return D.fail();Z5(c)&&rd(nu(r))&111551&&n_(c.moduleReference)}}function x2(r){const a=Pa(r);a.constEnumReferenced||(a.constEnumReferenced=!0)}function tx(r,a){return r.kind===80&&a9(r)&&(r=r.parent),r.kind===80||r.parent.kind===165?ou(r,1920,!1,a):(D.assert(r.parent.kind===270),ou(r,901119,!1,a))}function g0(r,a){return r.parent?g0(r.parent,a)+"."+ze(r):ze(r,a,void 0,36)}function fv(r){for(;Od(r.parent);)r=r.parent;return r}function u6(r){let a=Tm(r),c=hu(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Od(a.parent);){const u=An(c);if(c=So(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function ou(r,a,c,u,d){if(Eu(r))return;const g=1920|(jn(r)?a&111551:0);let x;if(r.kind===80){const P=a===g||Ol(r)?p.Cannot_find_namespace_0:o8e(Tm(r)),L=jn(r)&&!Ol(r)?Vb(r,a):void 0;if(x=Ec(hu(d||r,r.escapedText,a,c||L?void 0:P,r,!0,!1)),!x)return Ec(L)}else if(r.kind===165||r.kind===210){const P=r.kind===165?r.left:r.expression,L=r.kind===165?r.right:r.name;let X=ou(P,g,c,!1,d);if(!X||Eu(L))return;if(X===Kr)return X;if(X.valueDeclaration&&jn(X.valueDeclaration)&&Ju(z)!==100&&Fa(X.valueDeclaration)&&X.valueDeclaration.initializer&&W5e(X.valueDeclaration.initializer)){const Z=X.valueDeclaration.initializer.arguments[0],Te=z_(Z,Z);if(Te){const Ee=om(Te);Ee&&(X=Ee)}}if(x=Ec(pf(Nm(X),L.escapedText,a)),!x&&X.flags&2097152&&(x=Ec(pf(Nm(Rf(X)),L.escapedText,a))),!x){if(!c){const Z=g0(X),Te=il(L),Ee=PW(L,X);if(Ee){qe(L,p._0_has_no_exported_member_named_1_Did_you_mean_2,Z,Te,ze(Ee));return}const De=Od(r)&&fv(r);if(gu&&a&788968&&De&&!Ak(De.parent)&&u6(De)){qe(De,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Yd(De));return}if(a&1920&&Od(r.parent)){const jt=Ec(pf(Nm(X),L.escapedText,788968));if(jt){qe(r.parent.right,p.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ze(jt),Ba(r.parent.right.escapedText));return}}qe(L,p.Namespace_0_has_no_exported_member_1,Z,Te)}return}}else D.assertNever(r,"Unknown entity name kind.");return D.assert((Du(x)&1)===0,"Should never get an instantiated symbol here."),!Ol(r)&&hm(r)&&(x.flags&2097152||r.parent.kind===276)&&m0(z$(r),x,void 0,!0),x.flags&a||u?x:Rf(x)}function Vb(r,a){if(OV(r.parent)){const c=rx(r.parent);if(c)return hu(c,r.escapedText,a,void 0,r,!0)}}function rx(r){if(Sn(r,d=>F5(d)||d.flags&8388608?M0(d):"quit"))return;const c=lS(r);if(c&&$f(c)&&QD(c.expression)){const d=ei(c.expression.left);if(d)return w_(d)}if(c&&_l(c)&&QD(c.parent)&&$f(c.parent.parent)){const d=ei(c.parent.left);if(d)return w_(d)}if(c&&(tg(c)||Y_(c))&&Un(c.parent.parent)&&Au(c.parent.parent)===6){const d=ei(c.parent.parent.left);if(d)return w_(d)}const u=cS(r);if(u&&Qs(u)){const d=ei(u);return d&&d.valueDeclaration}}function w_(r){const a=r.parent.valueDeclaration;return a?($w(a)?nS(a):a7(a)?HD(a):void 0)||a:void 0}function w8(r){const a=r.valueDeclaration;if(!a||!jn(a)||r.flags&524288||D4(a,!1))return;const c=Fa(a)?HD(a):nS(a);if(c){const u=Im(c);if(u)return Toe(u,r)}}function z_(r,a,c){const d=Ju(z)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations;return pv(r,a,c?void 0:d)}function pv(r,a,c,u=!1){return Wc(a)?_6(r,a.text,c,a,u):void 0}function _6(r,a,c,u,d=!1){var g,x,P,L,X,Z,Te,Ee,De;if(Ga(a,"@types/")){const Br=p.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,_n=cu(a,"@types/");qe(u,Br,_n,a)}const ut=gae(a,!0);if(ut)return ut;const jt=bn(r),Jr=Wc(r)?r:((g=Sn(r,xm))==null?void 0:g.arguments[0])||((x=Sn(r,Tf))==null?void 0:x.moduleSpecifier)||((P=Sn(r,A4))==null?void 0:P.moduleReference.expression)||((L=Sn(r,Sf))==null?void 0:L.moduleSpecifier)||((X=Vu(r)?r:r.parent&&Vu(r.parent)&&r.parent.name===r?r.parent:void 0)==null?void 0:X.name)||((Z=E4(r)?r:void 0)==null?void 0:Z.argument.literal),Hr=Jr&&Wc(Jr)?_g(jt,Jr):jt.impliedNodeFormat,vn=Ju(z),br=j5(jt,a,Hr),Tr=br&&dY(z,br,jt),$n=br&&(!Tr||Tr===p.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(br.resolvedFileName);if($n){if(Tr&&qe(u,Tr,a,br.resolvedFileName),br.resolvedUsingTsExtension&&md(a)){const Br=((Te=Sn(r,Tf))==null?void 0:Te.importClause)||Sn(r,Mf(Hf,Sf));(Br&&!Br.isTypeOnly||Sn(r,xm))&&qe(u,p.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Sr(D.checkDefined(AF(a))))}else if(br.resolvedUsingTsExtension&&!Hk(z,jt.fileName)){const Br=D.checkDefined(AF(a));qe(u,p.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Br)}if($n.symbol){if(br.isExternalLibraryImport&&!MN(br.extension)&&Kg(!1,u,jt,Hr,br,a),vn===3||vn===99){const Br=jt.impliedNodeFormat===1&&!Sn(r,xm)||!!Sn(r,Hf),_n=Sn(r,ji=>Qy(ji)||Sf(ji)||Tf(ji)),Ni=_n&&Qy(_n)?(Ee=_n.assertions)==null?void 0:Ee.assertClause:_n==null?void 0:_n.assertClause;if(Br&&$n.impliedNodeFormat===99&&!WS(Ni))if(Sn(r,Hf))qe(u,p.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let ji;const fs=oy(jt.fileName);if(fs===".ts"||fs===".js"||fs===".tsx"||fs===".jsx"){const mo=jt.packageJsonScope,J_=fs===".ts"?".mts":fs===".js"?".mjs":void 0;mo&&!mo.contents.packageJsonContent.type?J_?ji=Ps(void 0,p.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,J_,ta(mo.packageDirectory,"package.json")):ji=Ps(void 0,p.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,ta(mo.packageDirectory,"package.json")):J_?ji=Ps(void 0,p.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,J_):ji=Ps(void 0,p.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}yc.add(Wy(bn(u),u,Ps(ji,p.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return Ec($n.symbol)}c&&qe(u,p.File_0_is_not_a_module,$n.fileName);return}if(Gc){const Br=Ox(Gc,_n=>_n.pattern,a);if(Br){const _n=Ef&&Ef.get(a);return Ec(_n||Br.symbol)}}if(br&&!MN(br.extension)&&Tr===void 0||Tr===p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(d){const Br=p.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;qe(u,Br,a,br.resolvedFileName)}else Kg(ve&&!!c,u,jt,Hr,br,a);return}if(c){if(br){const Br=e.getProjectReferenceRedirect(br.resolvedFileName);if(Br){qe(u,p.Output_file_0_has_not_been_built_from_source_file_1,Br,br.resolvedFileName);return}}if(Tr)qe(u,Tr,a,br.resolvedFileName);else{const Br=ap(a)&&!Gh(a),_n=vn===3||vn===99;if(!g7(z)&&Xl(a,".json")&&vn!==1&&FF(z))qe(u,p.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Hr===99&&_n&&Br){const Ni=ms(a,ga(jt.path)),ji=(De=v8.find(([fs,mo])=>e.fileExists(Ni+fs)))==null?void 0:De[1];ji?qe(u,p.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+ji):qe(u,p.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else qe(u,c,a)}}return;function Sr(Br){const _n=ON(a,Br);if(LF(R)||Hr===99){const Ni=md(a)&&Hk(z);return _n+(Br===".mts"||Br===".d.mts"?Ni?".mts":".mjs":Br===".cts"||Br===".d.mts"?Ni?".cts":".cjs":Ni?".ts":".js")}return _n}}function Kg(r,a,c,u,{packageId:d,resolvedFileName:g},x){let P;!hf(x)&&d&&(P=n$(c,e,x,u,d.name)),vy(r,a,Ps(P,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,g))}function om(r,a){if(r!=null&&r.exports){const c=nu(r.exports.get("export="),a),u=nx(Ec(c),Ec(r));return Ec(u)||r}}function nx(r,a){if(!r||r===Kr||r===a||a.exports.size===1||r.flags&2097152)return r;const c=Pa(r);if(c.cjsExportMerged)return c.cjsExportMerged;const u=r.flags&33554432?r:zd(r);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=To()),a.exports.forEach((d,g)=>{g!=="export="&&u.exports.set(g,u.exports.has(g)?h2(u.exports.get(g),d):d)}),u===r&&(Pa(u).resolvedExports=void 0,Pa(u).resolvedMembers=void 0),Pa(u).cjsExportMerged=u,c.cjsExportMerged=u}function Wb(r,a,c,u){var d;const g=om(r,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!wu(g,311)){const P=R>=5?"allowSyntheticDefaultImports":"esModuleInterop";return qe(a,p.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,P),g}const x=a.parent;if(Tf(x)&&K5(x)||xm(x)){const P=xm(x)?x.arguments[0]:x.moduleSpecifier,L=An(g),X=U5e(L,g,r,P);if(X)return E8(g,X,x);const Z=(d=r==null?void 0:r.declarations)==null?void 0:d.find(Ja),Te=Z&&gT(Jb(P),Z.impliedNodeFormat);if(fh(z)||Te){let Ee=eM(L,0);if((!Ee||!Ee.length)&&(Ee=eM(L,1)),Ee&&Ee.length||So(L,"default",!0)||Te){const De=L.flags&3670016?V5e(L,g,r,P):Soe(g,g.parent);return E8(g,De,x)}}}}return g}function E8(r,a,c){const u=vc(r.flags,r.escapedName);u.declarations=r.declarations?r.declarations.slice():[],u.parent=r.parent,u.links.target=r,u.links.originatingImport=c,r.valueDeclaration&&(u.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),r.members&&(u.members=new Map(r.members)),r.exports&&(u.exports=new Map(r.exports));const d=bg(a);return u.links.type=yu(u,d.members,tt,tt,d.indexInfos),u}function Sy(r){return r.exports.get("export=")!==void 0}function dv(r){return mae(Ih(r))}function mv(r){const a=dv(r),c=om(r);if(c!==r){const u=An(c);gv(u)&&Et(a,Pc(u))}return a}function xC(r,a){Ih(r).forEach((d,g)=>{M1(g)||a(d,g)});const u=om(r);if(u!==r){const d=An(u);gv(d)&&oGe(d,(g,x)=>{a(g,x)})}}function Dm(r,a){const c=Ih(a);if(c)return c.get(r)}function A8(r,a){const c=Dm(r,a);if(c)return c;const u=om(a);if(u===a)return;const d=An(u);return gv(d)?So(d,r):void 0}function gv(r){return!(r.flags&402784252||Mi(r)&1||Ym(r)||Yo(r))}function Nm(r){return r.flags&6256?Yie(r,"resolvedExports"):r.flags&1536?Ih(r):r.exports||V}function Ih(r){const a=Pa(r);if(!a.resolvedExports){const{exports:c,typeOnlyExportStarMap:u}=qb(r);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function bT(r,a,c,u){a&&a.forEach((d,g)=>{if(g==="default")return;const x=r.get(g);if(!x)r.set(g,d),c&&u&&c.set(g,{specifierText:F_(u.moduleSpecifier)});else if(c&&u&&x&&nu(x)!==nu(d)){const P=c.get(g);P.exportsWithDuplicate?P.exportsWithDuplicate.push(u):P.exportsWithDuplicate=[u]}})}function qb(r){const a=[];let c;const u=new Set;r=om(r);const d=g(r)||V;return c&&u.forEach(x=>c.delete(x)),{exports:d,typeOnlyExportStarMap:c};function g(x,P,L){if(!L&&(x!=null&&x.exports)&&x.exports.forEach((Te,Ee)=>u.add(Ee)),!(x&&x.exports&&kr(a,x)))return;const X=new Map(x.exports),Z=x.exports.get("__export");if(Z){const Te=To(),Ee=new Map;if(Z.declarations)for(const De of Z.declarations){const ut=z_(De,De.moduleSpecifier),jt=g(ut,De,L||De.isTypeOnly);bT(Te,jt,Ee,De)}Ee.forEach(({exportsWithDuplicate:De},ut)=>{if(!(ut==="export="||!(De&&De.length)||X.has(ut)))for(const jt of De)yc.add(ai(jt,p.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Ee.get(ut).specifierText,Ba(ut)))}),bT(X,Te)}return P!=null&&P.isTypeOnly&&(c!=null||(c=new Map),X.forEach((Te,Ee)=>c.set(Ee,P))),X}}function Ec(r){let a;return r&&r.mergeId&&(a=nT[r.mergeId])?a:r}function ei(r){return Ec(r.symbol&&AV(r.symbol))}function Im(r){return rh(r)?ei(r):void 0}function vd(r){return Ec(r.parent&&AV(r.parent))}function ix(r,a){const c=bn(a),u=Nc(c),d=Pa(r);let g;if(d.extendedContainersByFile&&(g=d.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(const P of c.imports){if(Ol(P))continue;const L=z_(a,P,!0);!L||!f6(L,r)||(g=Ht(g,L))}if(Nr(g))return(d.extendedContainersByFile||(d.extendedContainersByFile=new Map)).set(u,g),g}if(d.extendedContainers)return d.extendedContainers;const x=e.getSourceFiles();for(const P of x){if(!c_(P))continue;const L=ei(P);f6(L,r)&&(g=Ht(g,L))}return d.extendedContainers=g||tt}function T2(r,a,c){const u=vd(r);if(u&&!(r.flags&262144)){const x=Mr(u.declarations,g),P=a&&ix(r,a),L=TC(u,c);if(a&&u.flags&Cy(c)&&k2(u,a,1920,!1))return Ht(Nn(Nn([u],x),P),L);const X=!(u.flags&Cy(c))&&u.flags&788968&&hl(u).flags&524288&&c===111551?ax(a,Te=>Zd(Te,Ee=>{if(Ee.flags&Cy(c)&&An(Ee)===hl(u))return Ee})):void 0;let Z=X?[X,...x,u]:[...x,u];return Z=Ht(Z,L),Z=Et(Z,P),Z}const d=Mr(r.declarations,x=>{if(!Np(x)&&x.parent){if(hv(x.parent))return ei(x.parent);if(C1(x.parent)&&x.parent.parent&&om(ei(x.parent.parent))===r)return ei(x.parent.parent)}if(Mp(x)&&Un(x.parent)&&x.parent.operatorToken.kind===64&&$l(x.parent.left)&&ju(x.parent.left.expression))return ny(x.parent.left)||l7(x.parent.left.expression)?ei(bn(x)):(n_(x.parent.left.expression),Ei(x.parent.left.expression).resolvedSymbol)});if(!Nr(d))return;return Mr(d,x=>f6(x,r)?x:void 0);function g(x){return u&&$b(x,u)}}function TC(r,a){const c=!!Nr(r.declarations)&&Fi(r.declarations);if(a&111551&&c&&c.parent&&Fa(c.parent)&&(Dc(c)&&c===c.parent.initializer||Sm(c)&&c===c.parent.type))return ei(c.parent)}function $b(r,a){const c=lx(r),u=c&&c.exports&&c.exports.get("export=");return u&&O1(u,a)?c:void 0}function f6(r,a){if(r===vd(a))return a;const c=r.exports&&r.exports.get("export=");if(c&&O1(c,a))return r;const u=Nm(r),d=u.get(a.escapedName);return d&&O1(d,a)?d:Zd(u,g=>{if(O1(g,a))return g})}function O1(r,a){if(Ec(nu(Ec(r)))===Ec(nu(Ec(a))))return r}function V0(r){return Ec(r&&(r.flags&1048576)!==0&&r.exportSymbol||r)}function S2(r,a){return!!(r.flags&111551||r.flags&2097152&&rd(r)&111551&&(a||!Yf(r)))}function Hb(r){const a=r.members;for(const c of a)if(c.kind===175&&I0(c.body))return c}function Ph(r){var a;const c=new _(yr,r);return m++,c.id=m,(a=Hi)==null||a.recordType(c),c}function ky(r,a){const c=Ph(r);return c.symbol=a,c}function Gb(r){return new _(yr,r)}function $u(r,a,c=0){const u=Ph(r);return u.intrinsicName=a,u.objectFlags=c,u}function Af(r,a){const c=ky(524288,a);return c.objectFlags=r,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function SC(){return Oi(zt(jB.keys(),Wd))}function h0(r){return ky(262144,r)}function M1(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function p6(r){let a;return r.forEach((c,u)=>{xT(c,u)&&(a||(a=[])).push(c)}),a||tt}function xT(r,a){return!M1(a)&&S2(r)}function d6(r){const a=p6(r),c=bae(r);return c?Nn(a,[c]):a}function Qf(r,a,c,u,d){const g=r;return g.members=a,g.properties=tt,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=d,a!==V&&(g.properties=p6(a)),g}function yu(r,a,c,u,d){return Qf(Af(16,r),a,c,u,d)}function kC(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;const a=Mn(r.constructSignatures,u=>!(u.flags&4));if(r.constructSignatures===a)return r;const c=yu(r.symbol,r.members,r.callSignatures,bt(a)?a:tt,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function ax(r,a){let c;for(let u=r;u;u=u.parent){if(nh(u)&&u.locals&&!im(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 311:if(!bm(u))break;case 266:const d=ei(u);if(c=a((d==null?void 0:d.exports)||V,void 0,!0,u))return c;break;case 262:case 230:case 263:let g;if((ei(u).members||V).forEach((x,P)=>{x.flags&788968&&(g||(g=To())).set(P,x)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(je,void 0,!0)}function Cy(r){return r===111551?111551:1920}function k2(r,a,c,u,d=new Map){if(!(r&&!TT(r)))return;const g=Pa(r),x=g.accessibleChainCache||(g.accessibleChainCache=new Map),P=ax(a,(Hr,vn,br,Tr)=>Tr),L=`${u?0:1}|${P&&Nc(P)}|${c}`;if(x.has(L))return x.get(L);const X=oc(r);let Z=d.get(X);Z||d.set(X,Z=[]);const Te=ax(a,Ee);return x.set(L,Te),Te;function Ee(Hr,vn,br){if(!kr(Z,Hr))return;const Tr=jt(Hr,vn,br);return Z.pop(),Tr}function De(Hr,vn){return!sx(Hr,a,vn)||!!k2(Hr.parent,a,Cy(vn),u,d)}function ut(Hr,vn,br){return(r===(vn||Hr)||Ec(r)===Ec(vn||Hr))&&!bt(Hr.declarations,hv)&&(br||De(Ec(Hr),c))}function jt(Hr,vn,br){return ut(Hr.get(r.escapedName),void 0,vn)?[r]:Zd(Hr,$n=>{if($n.flags&2097152&&$n.escapedName!=="export="&&$n.escapedName!=="default"&&!(PF($n)&&a&&c_(bn(a)))&&(!u||bt($n.declarations,A4))&&(!br||!bt($n.declarations,vue))&&(vn||!wu($n,280))){const Sr=Rf($n),Br=Jr($n,Sr,vn);if(Br)return Br}if($n.escapedName===r.escapedName&&$n.exportSymbol&&ut(Ec($n.exportSymbol),void 0,vn))return[r]})||(Hr===je?Jr(nt,nt,vn):void 0)}function Jr(Hr,vn,br){if(ut(Hr,vn,br))return[Hr];const Tr=Nm(vn),$n=Tr&&Ee(Tr,!0);if($n&&De(Hr,Cy(c)))return[Hr].concat($n)}}function sx(r,a,c){let u=!1;return ax(a,d=>{let g=Ec(d.get(r.escapedName));if(!g)return!1;if(g===r)return!0;const x=g.flags&2097152&&!wu(g,280);return g=x?Rf(g):g,(x?rd(g):g.flags)&c?(u=!0,!0):!1}),u}function TT(r){if(r.declarations&&r.declarations.length){for(const a of r.declarations)switch(a.kind){case 171:case 173:case 176:case 177:continue;default:return!1}return!0}return!1}function ox(r,a){return C2(r,a,788968,!1,!0).accessibility===0}function m6(r,a){return C2(r,a,111551,!1,!0).accessibility===0}function cx(r,a,c){return C2(r,a,c,!1,!1).accessibility===0}function hg(r,a,c,u,d,g){if(!Nr(r))return;let x,P=!1;for(const L of r){const X=k2(L,a,u,!1);if(X){x=L;const Ee=S(X[0],d);if(Ee)return Ee}if(g&&bt(L.declarations,hv)){if(d){P=!0;continue}return{accessibility:0}}const Z=T2(L,a,u),Te=hg(Z,a,c,c===L?Cy(u):u,d,g);if(Te)return Te}if(P)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:ze(c,a,u),errorModuleName:x!==c?ze(x,a,1920):void 0}}function e1(r,a,c,u){return C2(r,a,c,u,!0)}function C2(r,a,c,u,d){if(r&&a){const g=hg([r],a,r,c,u,d);if(g)return g;const x=Vt(r.declarations,lx);if(x){const P=lx(a);if(x!==P)return{accessibility:2,errorSymbolName:ze(r,a,c),errorModuleName:ze(x),errorNode:jn(a)?a:void 0}}return{accessibility:1,errorSymbolName:ze(r,a,c)}}return{accessibility:0}}function lx(r){const a=Sn(r,CC);return a&&ei(a)}function CC(r){return Np(r)||r.kind===311&&bm(r)}function hv(r){return WL(r)||r.kind===311&&bm(r)}function S(r,a){let c;if(!yn(Mn(r.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var x,P;if(!y0(g)){const L=Yg(g);if(L&&!Pi(L,1)&&y0(L.parent))return d(g,L);if(Fa(g)&&S_(g.parent.parent)&&!Pi(g.parent.parent,1)&&y0(g.parent.parent.parent))return d(g,g.parent.parent);if(qL(g)&&!Pi(g,1)&&y0(g.parent))return d(g,g);if(Cc(g)){if(r.flags&2097152&&jn(g)&&((x=g.parent)!=null&&x.parent)&&Fa(g.parent.parent)&&((P=g.parent.parent.parent)!=null&&P.parent)&&S_(g.parent.parent.parent.parent)&&!Pi(g.parent.parent.parent.parent,1)&&g.parent.parent.parent.parent.parent&&y0(g.parent.parent.parent.parent.parent))return d(g,g.parent.parent.parent.parent);if(r.flags&2){const X=Sn(g,S_);return Pi(X,1)?!0:y0(X.parent)?d(g,X):!1}}return!1}return!0}function d(g,x){return a&&(Ei(g).isVisible=!0,c=ct(c,x)),!0}}function ie(r,a){let c;r.parent.kind===185||r.parent.kind===232&&!ry(r.parent)||r.parent.kind===166?c=1160127:r.kind===165||r.kind===210||r.parent.kind===270?c=1920:c=788968;const u=Tm(r),d=hu(a,u.escapedText,c,void 0,void 0,!1);return d&&d.flags&262144&&c&788968?{accessibility:0}:!d&&f3(u)&&e1(ei(_d(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:d&&S(d,!0)||{accessibility:1,errorSymbolName:F_(u),errorNode:u}}function ze(r,a,c,u=4,d){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);const x=u&4?He.symbolToNode:He.symbolToEntityName;return d?P(d).getText():Rw(P);function P(L){const X=x(r,c,a,g),Z=(a==null?void 0:a.kind)===311?ZZ():O3(),Te=a&&bn(a);return Z.writeNode(4,X,Te,L),L}}function hr(r,a,c=0,u,d){return d?g(d).getText():Rw(g);function g(x){let P;c&262144?P=u===1?184:183:P=u===1?179:178;const L=He.signatureToSignatureDeclaration(r,P,a,co(c)|70221824|512),X=iP(),Z=a&&bn(a);return X.writeNode(4,L,Z,Y$(x)),x}}function Rt(r,a,c=1064960,u=yN("")){const d=z.noErrorTruncation||c&1,g=He.typeToTypeNode(r,a,co(c)|70221824|(d?1:0));if(g===void 0)return D.fail("should always get typenode");const x=r!==Ge?O3():XZ(),P=a&&bn(a);x.writeNode(4,g,P,u);const L=u.getText(),X=d?QF*2:zN*2;return X&&L&&L.length>=X?L.substr(0,X-3)+"...":L}function _a(r,a){let c=Ra(r.symbol)?Rt(r,r.symbol.valueDeclaration):Rt(r),u=Ra(a.symbol)?Rt(a,a.symbol.valueDeclaration):Rt(a);return c===u&&(c=Gi(r),u=Gi(a)),[c,u]}function Gi(r){return Rt(r,void 0,64)}function Ra(r){return r&&!!r.valueDeclaration&&ht(r.valueDeclaration)&&!Xm(r.valueDeclaration)}function co(r=0){return r&848330091}function Ud(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===Bp(r.symbol)||!!(r.flags&524288)&&!!(Mi(r)&16777216))}function Vd(){return{typeToTypeNode:(ft,ke,wn,hn)=>a(ke,wn,hn,Qn=>u(ft,Qn)),indexInfoToIndexSignatureDeclaration:(ft,ke,wn,hn)=>a(ke,wn,hn,Qn=>Z(ft,Qn,void 0)),signatureToSignatureDeclaration:(ft,ke,wn,hn,Qn)=>a(wn,hn,Qn,Xn=>Te(ft,ke,Xn)),symbolToEntityName:(ft,ke,wn,hn,Qn)=>a(wn,hn,Qn,Xn=>fs(ft,Xn,ke,!1)),symbolToExpression:(ft,ke,wn,hn,Qn)=>a(wn,hn,Qn,Xn=>mo(ft,Xn,ke)),symbolToTypeParameterDeclarations:(ft,ke,wn,hn)=>a(ke,wn,hn,Qn=>br(ft,Qn)),symbolToParameterDeclaration:(ft,ke,wn,hn)=>a(ke,wn,hn,Qn=>jt(ft,Qn)),typeParameterToDeclaration:(ft,ke,wn,hn)=>a(ke,wn,hn,Qn=>ut(ft,Qn)),symbolTableToDeclarationStatements:(ft,ke,wn,hn,Qn)=>a(ke,wn,hn,Xn=>zp(ft,Xn,Qn)),symbolToNode:(ft,ke,wn,hn,Qn)=>a(wn,hn,Qn,Xn=>r(ft,Xn,ke))};function r(ft,ke,wn){if(ke.flags&1073741824){if(ft.valueDeclaration){const Qn=Es(ft.valueDeclaration);if(Qn&&jc(Qn))return Qn}const hn=Pa(ft).nameType;if(hn&&hn.flags&9216)return ke.enclosingDeclaration=hn.symbol.valueDeclaration,M.createComputedPropertyName(mo(hn.symbol,ke,wn))}return mo(ft,ke,wn)}function a(ft,ke,wn,hn){D.assert(ft===void 0||(ft.flags&8)===0);const Qn=wn!=null&&wn.trackSymbol?wn.moduleResolverHost:ke&134217728?jDe(e):void 0,Xn={enclosingDeclaration:ft,flags:ke||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Xn.tracker=new YI(Xn,wn,Qn);const Ds=hn(Xn);return Xn.truncating&&Xn.flags&1&&Xn.tracker.reportTruncationError(),Xn.encounteredError?void 0:Ds}function c(ft){return ft.truncating?ft.truncating:ft.truncating=ft.approximateLength>(ft.flags&1?QF:zN)}function u(ft,ke){const wn=ke.flags,hn=d(ft,ke);return ke.flags=wn,hn}function d(ft,ke){var wn,hn;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const Qn=ke.flags&8388608;if(ke.flags&=-8388609,!ft){if(!(ke.flags&262144)){ke.encounteredError=!0;return}return ke.approximateLength+=3,M.createKeywordTypeNode(133)}if(ke.flags&536870912||(ft=xg(ft)),ft.flags&1)return ft.aliasSymbol?M.createTypeReferenceNode(Br(ft.aliasSymbol),L(ft.aliasTypeArguments,ke)):ft===Ge?ZN(M.createKeywordTypeNode(133),3,"unresolved"):(ke.approximateLength+=3,M.createKeywordTypeNode(ft===Q?141:133));if(ft.flags&2)return M.createKeywordTypeNode(159);if(ft.flags&4)return ke.approximateLength+=6,M.createKeywordTypeNode(154);if(ft.flags&8)return ke.approximateLength+=6,M.createKeywordTypeNode(150);if(ft.flags&64)return ke.approximateLength+=6,M.createKeywordTypeNode(162);if(ft.flags&16&&!ft.aliasSymbol)return ke.approximateLength+=7,M.createKeywordTypeNode(136);if(ft.flags&1056){if(ft.symbol.flags&8){const qr=vd(ft.symbol),ii=_n(qr,ke,788968);if(hl(qr)===ft)return ii;const Xi=Bu(ft.symbol);return r0(Xi,0)?rs(ii,M.createTypeReferenceNode(Xi,void 0)):Qy(ii)?(ii.isTypeOf=!0,M.createIndexedAccessTypeNode(ii,M.createLiteralTypeNode(M.createStringLiteral(Xi)))):Rg(ii)?M.createIndexedAccessTypeNode(M.createTypeQueryNode(ii.typeName),M.createLiteralTypeNode(M.createStringLiteral(Xi))):D.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return _n(ft.symbol,ke,788968)}if(ft.flags&128)return ke.approximateLength+=ft.value.length+2,M.createLiteralTypeNode(Ln(M.createStringLiteral(ft.value,!!(ke.flags&268435456)),16777216));if(ft.flags&256){const qr=ft.value;return ke.approximateLength+=(""+qr).length,M.createLiteralTypeNode(qr<0?M.createPrefixUnaryExpression(41,M.createNumericLiteral(-qr)):M.createNumericLiteral(qr))}if(ft.flags&2048)return ke.approximateLength+=g3(ft.value).length+1,M.createLiteralTypeNode(M.createBigIntLiteral(ft.value));if(ft.flags&512)return ke.approximateLength+=ft.intrinsicName.length,M.createLiteralTypeNode(ft.intrinsicName==="true"?M.createTrue():M.createFalse());if(ft.flags&8192){if(!(ke.flags&1048576)){if(m6(ft.symbol,ke.enclosingDeclaration))return ke.approximateLength+=6,_n(ft.symbol,ke,111551);ke.tracker.reportInaccessibleUniqueSymbolError&&ke.tracker.reportInaccessibleUniqueSymbolError()}return ke.approximateLength+=13,M.createTypeOperatorNode(158,M.createKeywordTypeNode(155))}if(ft.flags&16384)return ke.approximateLength+=4,M.createKeywordTypeNode(116);if(ft.flags&32768)return ke.approximateLength+=9,M.createKeywordTypeNode(157);if(ft.flags&65536)return ke.approximateLength+=4,M.createLiteralTypeNode(M.createNull());if(ft.flags&131072)return ke.approximateLength+=5,M.createKeywordTypeNode(146);if(ft.flags&4096)return ke.approximateLength+=6,M.createKeywordTypeNode(155);if(ft.flags&67108864)return ke.approximateLength+=6,M.createKeywordTypeNode(151);if(k9(ft))return ke.flags&4194304&&(!ke.encounteredError&&!(ke.flags&32768)&&(ke.encounteredError=!0),(hn=(wn=ke.tracker).reportInaccessibleThisError)==null||hn.call(wn)),ke.approximateLength+=4,M.createThisTypeNode();if(!Qn&&ft.aliasSymbol&&(ke.flags&16384||ox(ft.aliasSymbol,ke.enclosingDeclaration))){const qr=L(ft.aliasTypeArguments,ke);return M1(ft.aliasSymbol.escapedName)&&!(ft.aliasSymbol.flags&32)?M.createTypeReferenceNode(M.createIdentifier(""),qr):Nr(qr)===1&&ft.aliasSymbol===su.symbol?M.createArrayTypeNode(qr[0]):_n(ft.aliasSymbol,ke,788968,qr)}const Xn=Mi(ft);if(Xn&4)return D.assert(!!(ft.flags&524288)),ft.node?lr(ft,mn):mn(ft);if(ft.flags&262144||Xn&3){if(ft.flags&262144&&Zn(ke.inferTypeParameters,ft)){ke.approximateLength+=Bu(ft.symbol).length+6;let ii;const Xi=yp(ft);if(Xi){const qi=TTe(ft,!0);qi&&Iy(Xi,qi)||(ke.approximateLength+=9,ii=Xi&&u(Xi,ke))}return M.createInferTypeNode(De(ft,ke,ii))}if(ke.flags&4&&ft.flags&262144&&!ox(ft.symbol,ke.enclosingDeclaration)){const ii=ji(ft,ke);return ke.approximateLength+=ri(ii).length,M.createTypeReferenceNode(M.createIdentifier(ri(ii)),void 0)}if(ft.symbol)return _n(ft.symbol,ke,788968);const qr=(ft===Cl||ft===Hl)&&B&&B.symbol?(ft===Hl?"sub-":"super-")+Bu(B.symbol):"?";return M.createTypeReferenceNode(M.createIdentifier(qr),void 0)}if(ft.flags&1048576&&ft.origin&&(ft=ft.origin),ft.flags&3145728){const qr=ft.flags&1048576?g6(ft.types):ft.types;if(Nr(qr)===1)return u(qr[0],ke);const ii=L(qr,ke,!0);if(ii&&ii.length>0)return ft.flags&1048576?M.createUnionTypeNode(ii):M.createIntersectionTypeNode(ii);!ke.encounteredError&&!(ke.flags&262144)&&(ke.encounteredError=!0);return}if(Xn&48)return D.assert(!!(ft.flags&524288)),vr(ft);if(ft.flags&4194304){const qr=ft.type;ke.approximateLength+=6;const ii=u(qr,ke);return M.createTypeOperatorNode(143,ii)}if(ft.flags&134217728){const qr=ft.texts,ii=ft.types,Xi=M.createTemplateHead(qr[0]),qi=M.createNodeArray(er(ii,(Bs,vl)=>M.createTemplateLiteralTypeSpan(u(Bs,ke),(vlDs(qr));if(ft.flags&33554432)return u(ft.baseType,ke);return D.fail("Should be unreachable.");function Ds(qr){const ii=u(qr.checkType,ke);if(ke.approximateLength+=15,ke.flags&4&&qr.root.isDistributive&&!(qr.checkType.flags&262144)){const mc=h0(vc(262144,"T")),b_=ji(mc,ke),$e=M.createTypeReferenceNode(b_);ke.approximateLength+=37;const Ct=NT(qr.root.checkType,mc,qr.mapper),dr=ke.inferTypeParameters;ke.inferTypeParameters=qr.root.inferTypeParameters;const pn=u($a(qr.root.extendsType,Ct),ke);ke.inferTypeParameters=dr;const Gn=ca($a(Qi(qr.root.node.trueType),Ct)),Or=ca($a(Qi(qr.root.node.falseType),Ct));return M.createConditionalTypeNode(ii,M.createInferTypeNode(M.createTypeParameterDeclaration(void 0,M.cloneNode($e.typeName))),M.createConditionalTypeNode(M.createTypeReferenceNode(M.cloneNode(b_)),u(qr.checkType,ke),M.createConditionalTypeNode($e,pn,Gn,Or),M.createKeywordTypeNode(146)),M.createKeywordTypeNode(146))}const Xi=ke.inferTypeParameters;ke.inferTypeParameters=qr.root.inferTypeParameters;const qi=u(qr.extendsType,ke);ke.inferTypeParameters=Xi;const Bs=ca(s4(qr)),vl=ca(o4(qr));return M.createConditionalTypeNode(ii,qi,Bs,vl)}function ca(qr){var ii,Xi,qi;return qr.flags&1048576?(ii=ke.visitedTypes)!=null&&ii.has(xp(qr))?(ke.flags&131072||(ke.encounteredError=!0,(qi=(Xi=ke.tracker)==null?void 0:Xi.reportCyclicStructureError)==null||qi.call(Xi)),g(ke)):lr(qr,Bs=>u(Bs,ke)):u(qr,ke)}function Kn(qr){return!!$V(qr)}function St(qr){return!!qr.target&&Kn(qr.target)&&!Kn(qr)}function Xt(qr){D.assert(!!(qr.flags&524288));const ii=qr.declaration.readonlyToken?M.createToken(qr.declaration.readonlyToken.kind):void 0,Xi=qr.declaration.questionToken?M.createToken(qr.declaration.questionToken.kind):void 0;let qi,Bs;if(QO(qr)){if(St(qr)&&ke.flags&4){const dr=h0(vc(262144,"T")),pn=ji(dr,ke);Bs=M.createTypeReferenceNode(pn)}qi=M.createTypeOperatorNode(143,Bs||u(hA(qr),ke))}else qi=u(n1(qr),ke);const vl=De(vg(qr),ke,qi),mc=qr.declaration.nameType?u(Tv(qr),ke):void 0,b_=u(yx(Ay(qr),!!(R1(qr)&4)),ke),$e=M.createMappedTypeNode(ii,vl,mc,Xi,b_,void 0);ke.approximateLength+=10;const Ct=Ln($e,1);if(St(qr)&&ke.flags&4){const dr=$a(yp(Qi(qr.declaration.typeParameter.constraint.type))||at,qr.mapper);return M.createConditionalTypeNode(u(hA(qr),ke),M.createInferTypeNode(M.createTypeParameterDeclaration(void 0,M.cloneNode(Bs.typeName),dr.flags&2?void 0:u(dr,ke))),Ct,M.createKeywordTypeNode(146))}return Ct}function vr(qr){var ii,Xi;const qi=qr.id,Bs=qr.symbol;if(Bs){const mc=Ud(qr)?788968:111551;if(c1(Bs.valueDeclaration))return _n(Bs,ke,mc);if(Bs.flags&32&&!xv(Bs)&&!(Bs.valueDeclaration&&Yi(Bs.valueDeclaration)&&ke.flags&2048&&(!cf(Bs.valueDeclaration)||e1(Bs,ke.enclosingDeclaration,mc,!1).accessibility!==0))||Bs.flags&896||vl())return _n(Bs,ke,mc);if((ii=ke.visitedTypes)!=null&&ii.has(qi)){const b_=h6(qr);return b_?_n(b_,ke,788968):g(ke)}else return lr(qr,Wr)}else{if(!!(Mi(qr)&8388608)){const b_=qr;if(F9(b_.node)){const $e=cc(ke,b_.node);if($e)return $e}return(Xi=ke.visitedTypes)!=null&&Xi.has(qi)?g(ke):lr(qr,Wr)}return Wr(qr)}function vl(){var mc;const b_=!!(Bs.flags&8192)&&bt(Bs.declarations,Ct=>so(Ct)),$e=!!(Bs.flags&16)&&(Bs.parent||Vt(Bs.declarations,Ct=>Ct.parent.kind===311||Ct.parent.kind===267));if(b_||$e)return(!!(ke.flags&4096)||((mc=ke.visitedTypes)==null?void 0:mc.has(qi)))&&(!(ke.flags&8)||m6(Bs,ke.enclosingDeclaration))}}function lr(qr,ii){var Xi,qi;const Bs=qr.id,vl=Mi(qr)&16&&qr.symbol&&qr.symbol.flags&32,mc=Mi(qr)&4&&qr.node?"N"+Nc(qr.node):qr.flags&16777216?"N"+Nc(qr.root.node):qr.symbol?(vl?"+":"")+oc(qr.symbol):void 0;ke.visitedTypes||(ke.visitedTypes=new Set),mc&&!ke.symbolDepth&&(ke.symbolDepth=new Map);const b_=ke.enclosingDeclaration&&Ei(ke.enclosingDeclaration),$e=`${xp(qr)}|${ke.flags}`;b_&&(b_.serializedTypes||(b_.serializedTypes=new Map));const Ct=(Xi=b_==null?void 0:b_.serializedTypes)==null?void 0:Xi.get($e);if(Ct)return Ct.truncating&&(ke.truncating=!0),ke.approximateLength+=Ct.addedLength,Wn(Ct.node);let dr;if(mc){if(dr=ke.symbolDepth.get(mc)||0,dr>10)return g(ke);ke.symbolDepth.set(mc,dr+1)}ke.visitedTypes.add(Bs);const pn=ke.approximateLength,Gn=ii(qr),Or=ke.approximateLength-pn;return!ke.reportedDiagnostic&&!ke.encounteredError&&((qi=b_==null?void 0:b_.serializedTypes)==null||qi.set($e,{node:Gn,truncating:ke.truncating,addedLength:Or})),ke.visitedTypes.delete(Bs),mc&&ke.symbolDepth.set(mc,dr),Gn;function Wn(oa){return!Ol(oa)&&gs(oa)===oa?oa:yt(M.cloneNode(nn(oa,Wn,rv,Vi)),oa)}function Vi(oa,ws,no,yo,Zi){return oa&&oa.length===0?yt(M.createNodeArray(void 0,oa.hasTrailingComma),oa):dn(oa,ws,no,yo,Zi)}}function Wr(qr){if(Om(qr)||qr.containsError)return Xt(qr);const ii=bg(qr);if(!ii.properties.length&&!ii.indexInfos.length){if(!ii.callSignatures.length&&!ii.constructSignatures.length)return ke.approximateLength+=2,Ln(M.createTypeLiteralNode(void 0),1);if(ii.callSignatures.length===1&&!ii.constructSignatures.length){const mc=ii.callSignatures[0];return Te(mc,183,ke)}if(ii.constructSignatures.length===1&&!ii.callSignatures.length){const mc=ii.constructSignatures[0];return Te(mc,184,ke)}}const Xi=Mn(ii.constructSignatures,mc=>!!(mc.flags&4));if(bt(Xi)){const mc=er(Xi,mx);return ii.callSignatures.length+(ii.constructSignatures.length-Xi.length)+ii.indexInfos.length+(ke.flags&2048?ef(ii.properties,$e=>!($e.flags&4194304)):Nr(ii.properties))&&mc.push(kC(ii)),u(Xo(mc),ke)}const qi=ke.flags;ke.flags|=4194304;const Bs=ko(ii);ke.flags=qi;const vl=M.createTypeLiteralNode(Bs);return ke.approximateLength+=2,Ln(vl,ke.flags&1024?0:1),vl}function mn(qr){let ii=yl(qr);if(qr.target===su||qr.target===ff){if(ke.flags&2){const Bs=u(ii[0],ke);return M.createTypeReferenceNode(qr.target===su?"Array":"ReadonlyArray",[Bs])}const Xi=u(ii[0],ke),qi=M.createArrayTypeNode(Xi);return qr.target===su?qi:M.createTypeOperatorNode(148,qi)}else if(qr.target.objectFlags&8){if(ii=ll(ii,(Xi,qi)=>yx(Xi,!!(qr.target.elementFlags[qi]&2))),ii.length>0){const Xi=Cv(qr),qi=L(ii.slice(0,Xi),ke);if(qi){if(qr.target.labeledElementDeclarations)for(let vl=0;vl0){const $e=(qr.target.typeParameters||tt).length;vl=L(ii.slice(qi,$e),ke)}const mc=ke.flags;ke.flags|=16;const b_=_n(qr.symbol,ke,788968,vl);return ke.flags=mc,Bs?rs(Bs,b_):b_}}}function rs(qr,ii){if(Qy(qr)){let Xi=qr.typeArguments,qi=qr.qualifier;qi&&(Be(qi)?Xi!==b7(qi)&&(qi=e2(M.cloneNode(qi),Xi)):Xi!==b7(qi.right)&&(qi=M.updateQualifiedName(qi,qi.left,e2(M.cloneNode(qi.right),Xi)))),Xi=ii.typeArguments;const Bs=za(ii);for(const vl of Bs)qi=qi?M.createQualifiedName(qi,vl):vl;return M.updateImportTypeNode(qr,qr.argument,qr.assertions,qi,Xi,qr.isTypeOf)}else{let Xi=qr.typeArguments,qi=qr.typeName;Be(qi)?Xi!==b7(qi)&&(qi=e2(M.cloneNode(qi),Xi)):Xi!==b7(qi.right)&&(qi=M.updateQualifiedName(qi,qi.left,e2(M.cloneNode(qi.right),Xi))),Xi=ii.typeArguments;const Bs=za(ii);for(const vl of Bs)qi=M.createQualifiedName(qi,vl);return M.updateTypeReferenceNode(qr,qi,Xi)}}function za(qr){let ii=qr.typeName;const Xi=[];for(;!Be(ii);)Xi.unshift(ii.right),ii=ii.left;return Xi.unshift(ii),Xi}function ko(qr){if(c(ke))return[M.createPropertySignature(void 0,"...",void 0,void 0)];const ii=[];for(const Bs of qr.callSignatures)ii.push(Te(Bs,178,ke));for(const Bs of qr.constructSignatures)Bs.flags&4||ii.push(Te(Bs,179,ke));for(const Bs of qr.indexInfos)ii.push(Z(Bs,ke,qr.objectFlags&1024?g(ke):void 0));const Xi=qr.properties;if(!Xi)return ii;let qi=0;for(const Bs of Xi){if(qi++,ke.flags&2048){if(Bs.flags&4194304)continue;c0(Bs)&24&&ke.tracker.reportPrivateInBaseOfClassExpression&&ke.tracker.reportPrivateInBaseOfClassExpression(Ba(Bs.escapedName))}if(c(ke)&&qi+2!(vr.flags&32768)),0);for(const vr of Xt){const lr=Te(vr,172,ke,{name:ca,questionToken:Kn});wn.push(St(lr))}}else{let Xt;x(ft,ke)?Xt=g(ke):(Qn&&(ke.reverseMappedStack||(ke.reverseMappedStack=[]),ke.reverseMappedStack.push(ft)),Xt=Xn?Qa(ke,Xn,ft,Ds):M.createKeywordTypeNode(133),Qn&&ke.reverseMappedStack.pop());const vr=wg(ft)?[M.createToken(148)]:void 0;vr&&(ke.approximateLength+=9);const lr=M.createPropertySignature(vr,ca,Kn,Xt);wn.push(St(lr))}function St(Xt){var vr;if(bt(ft.declarations,lr=>lr.kind===354)){const lr=(vr=ft.declarations)==null?void 0:vr.find(mn=>mn.kind===354),Wr=CD(lr.comment);Wr&&F4(Xt,[{kind:3,text:`* - * `+Wr.replace(/\n/g,` - * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ft.valueDeclaration&&xf(Xt,ft.valueDeclaration);return Xt}}function L(ft,ke,wn){if(bt(ft)){if(c(ke))if(wn){if(ft.length>2)return[u(ft[0],ke),M.createTypeReferenceNode(`... ${ft.length-2} more ...`,void 0),u(ft[ft.length-1],ke)]}else return[M.createTypeReferenceNode("...",void 0)];const Qn=!(ke.flags&64)?Pf():void 0,Xn=[];let Ds=0;for(const ca of ft){if(Ds++,c(ke)&&Ds+2{if(!G_e(Kn,([St],[Xt])=>X(St,Xt)))for(const[St,Xt]of Kn)Xn[Xt]=u(St,ke)}),ke.flags=ca}return Xn}}function X(ft,ke){return ft===ke||!!ft.symbol&&ft.symbol===ke.symbol||!!ft.aliasSymbol&&ft.aliasSymbol===ke.aliasSymbol}function Z(ft,ke,wn){const hn=nue(ft)||"x",Qn=u(ft.keyType,ke),Xn=M.createParameterDeclaration(void 0,void 0,hn,void 0,Qn,void 0);return wn||(wn=u(ft.type||it,ke)),!ft.type&&!(ke.flags&2097152)&&(ke.encounteredError=!0),ke.approximateLength+=hn.length+4,M.createIndexSignature(ft.isReadonly?[M.createToken(148)]:void 0,[Xn],wn)}function Te(ft,ke,wn,hn){var za,ko,qr,ii,Xi;const Qn=wn.flags&256;Qn&&(wn.flags&=-257),wn.approximateLength+=3;let Xn,Ds;wn.flags&32&&ft.target&&ft.mapper&&ft.target.typeParameters?Ds=ft.target.typeParameters.map(qi=>u($a(qi,ft.mapper),wn)):Xn=ft.typeParameters&&ft.typeParameters.map(qi=>ut(qi,wn));const ca=K7e(ft,!0)[0];let Kn;if(wn.enclosingDeclaration&&ft.declaration&&ft.declaration!==wn.enclosingDeclaration&&!jn(ft.declaration)&&bt(ca)){const qi=Ei(wn.enclosingDeclaration).fakeScopeForSignatureDeclaration?wn.enclosingDeclaration:void 0;D.assertOptionalNode(qi,oo);const Bs=(za=qi==null?void 0:qi.locals)!=null?za:To();let vl;for(const mc of ca)Bs.has(mc.escapedName)||(vl=Ht(vl,mc.escapedName),Bs.set(mc.escapedName,mc));if(vl){let mc=function(){Vt(vl,b_=>Bs.delete(b_))};var St=mc;if(qi)Kn=mc;else{const b_=vh.createBlock(tt);Ei(b_).fakeScopeForSignatureDeclaration=!0,b_.locals=Bs;const $e=wn.enclosingDeclaration;fc(b_,$e),wn.enclosingDeclaration=b_,Kn=()=>{wn.enclosingDeclaration=$e,mc()}}}}const Xt=(bt(ca,qi=>qi!==ca[ca.length-1]&&!!(Du(qi)&32768))?ft.parameters:ca).map(qi=>jt(qi,wn,ke===175,hn==null?void 0:hn.privateSymbolVisitor,hn==null?void 0:hn.bundledImports)),vr=wn.flags&33554432?void 0:Ee(ft,wn);vr&&Xt.unshift(vr);let lr;const Wr=b0(ft);if(Wr){const qi=Wr.kind===2||Wr.kind===3?M.createToken(131):void 0,Bs=Wr.kind===1||Wr.kind===3?Ln(M.createIdentifier(Wr.parameterName),16777216):M.createThisTypeNode(),vl=Wr.type&&u(Wr.type,wn);lr=M.createTypePredicateNode(qi,Bs,vl)}else{const qi=Oc(ft);qi&&!(Qn&&Fc(qi))?lr=ol(wn,qi,ft,hn==null?void 0:hn.privateSymbolVisitor,hn==null?void 0:hn.bundledImports):Qn||(lr=M.createKeywordTypeNode(133))}let mn=hn==null?void 0:hn.modifiers;if(ke===184&&ft.flags&4){const qi=uh(mn);mn=M.createModifiersFromModifierFlags(qi|256)}const rs=ke===178?M.createCallSignature(Xn,Xt,lr):ke===179?M.createConstructSignature(Xn,Xt,lr):ke===172?M.createMethodSignature(mn,(ko=hn==null?void 0:hn.name)!=null?ko:M.createIdentifier(""),hn==null?void 0:hn.questionToken,Xn,Xt,lr):ke===173?M.createMethodDeclaration(mn,void 0,(qr=hn==null?void 0:hn.name)!=null?qr:M.createIdentifier(""),void 0,Xn,Xt,lr,void 0):ke===175?M.createConstructorDeclaration(mn,Xt,void 0):ke===176?M.createGetAccessorDeclaration(mn,(ii=hn==null?void 0:hn.name)!=null?ii:M.createIdentifier(""),Xt,lr,void 0):ke===177?M.createSetAccessorDeclaration(mn,(Xi=hn==null?void 0:hn.name)!=null?Xi:M.createIdentifier(""),Xt,void 0):ke===180?M.createIndexSignature(mn,Xt,lr):ke===323?M.createJSDocFunctionType(Xt,lr):ke===183?M.createFunctionTypeNode(Xn,Xt,lr!=null?lr:M.createTypeReferenceNode(M.createIdentifier(""))):ke===184?M.createConstructorTypeNode(mn,Xn,Xt,lr!=null?lr:M.createTypeReferenceNode(M.createIdentifier(""))):ke===261?M.createFunctionDeclaration(mn,void 0,hn!=null&&hn.name?Ws(hn.name,Be):M.createIdentifier(""),Xn,Xt,lr,void 0):ke===217?M.createFunctionExpression(mn,void 0,hn!=null&&hn.name?Ws(hn.name,Be):M.createIdentifier(""),Xn,Xt,lr,M.createBlock([])):ke===218?M.createArrowFunction(mn,Xn,Xt,lr,void 0,M.createBlock([])):D.assertNever(ke);return Ds&&(rs.typeArguments=M.createNodeArray(Ds)),Kn==null||Kn(),rs}function Ee(ft,ke){if(ft.thisParameter)return jt(ft.thisParameter,ke);if(ft.declaration&&jn(ft.declaration)){const wn=vL(ft.declaration);if(wn&&wn.typeExpression)return M.createParameterDeclaration(void 0,void 0,"this",void 0,u(Qi(wn.typeExpression),ke))}}function De(ft,ke,wn){const hn=ke.flags;ke.flags&=-513;const Qn=M.createModifiersFromModifierFlags(ose(ft)),Xn=ji(ft,ke),Ds=dx(ft),ca=Ds&&u(Ds,ke);return ke.flags=hn,M.createTypeParameterDeclaration(Qn,Xn,wn,ca)}function ut(ft,ke,wn=yp(ft)){const hn=wn&&u(wn,ke);return De(ft,ke,hn)}function jt(ft,ke,wn,hn,Qn){let Xn=wu(ft,168);!Xn&&!ih(ft)&&(Xn=wu(ft,347));let Ds=An(ft);Xn&&PCe(Xn)&&(Ds=Dv(Ds));const ca=Qa(ke,Ds,ft,ke.enclosingDeclaration,hn,Qn),Kn=!(ke.flags&8192)&&wn&&Xn&&lg(Xn)?er(Kx(Xn),M.cloneNode):void 0,Xt=Xn&&ty(Xn)||Du(ft)&32768?M.createToken(26):void 0,vr=Xn&&Xn.name?Xn.name.kind===80?Ln(M.cloneNode(Xn.name),16777216):Xn.name.kind===165?Ln(M.cloneNode(Xn.name.right),16777216):rs(Xn.name):Bu(ft),Wr=Xn&&vA(Xn)||Du(ft)&16384?M.createToken(58):void 0,mn=M.createParameterDeclaration(Kn,Xt,vr,Wr,ca,void 0);return ke.approximateLength+=Bu(ft).length+3,mn;function rs(za){return ko(za);function ko(qr){ke.tracker.canTrackSymbol&&jc(qr)&&Zie(qr)&&Jr(qr.expression,ke.enclosingDeclaration,ke);let ii=nn(qr,ko,rv,void 0,ko);return Cc(ii)&&(ii=M.updateBindingElement(ii,ii.dotDotDotToken,ii.propertyName,ii.name,void 0)),Ol(ii)||(ii=M.cloneNode(ii)),Ln(ii,16777217)}}}function Jr(ft,ke,wn){if(!wn.tracker.canTrackSymbol)return;const hn=Tm(ft),Qn=hu(hn,hn.escapedText,1160127,void 0,void 0,!0);Qn&&wn.tracker.trackSymbol(Qn,ke,111551)}function Hr(ft,ke,wn,hn){return ke.tracker.trackSymbol(ft,ke.enclosingDeclaration,wn),vn(ft,ke,wn,hn)}function vn(ft,ke,wn,hn){let Qn;return!(ft.flags&262144)&&(ke.enclosingDeclaration||ke.flags&64)&&!(ke.flags&134217728)?(Qn=D.checkDefined(Ds(ft,wn,!0)),D.assert(Qn&&Qn.length>0)):Qn=[ft],Qn;function Ds(ca,Kn,St){let Xt=k2(ca,ke.enclosingDeclaration,Kn,!!(ke.flags&128)),vr;if(!Xt||sx(Xt[0],ke.enclosingDeclaration,Xt.length===1?Kn:Cy(Kn))){const Wr=T2(Xt?Xt[0]:ca,ke.enclosingDeclaration,Kn);if(Nr(Wr)){vr=Wr.map(za=>bt(za.declarations,hv)?Sr(za,ke):void 0);const mn=Wr.map((za,ko)=>ko);mn.sort(lr);const rs=mn.map(za=>Wr[za]);for(const za of rs){const ko=Ds(za,Cy(Kn),!1);if(ko){if(za.exports&&za.exports.get("export=")&&O1(za.exports.get("export="),ca)){Xt=ko;break}Xt=ko.concat(Xt||[f6(za,ca)||ca]);break}}}}if(Xt)return Xt;if(St||!(ca.flags&6144))return!St&&!hn&&Vt(ca.declarations,hv)?void 0:[ca];function lr(Wr,mn){const rs=vr[Wr],za=vr[mn];if(rs&&za){const ko=ap(za);return ap(rs)===ko?GI(rs)-GI(za):ko?-1:1}return 0}}}function br(ft,ke){let wn;return Z8(ft).flags&524384&&(wn=M.createNodeArray(er(N2(ft),Qn=>ut(Qn,ke)))),wn}function Tr(ft,ke,wn){var hn;D.assert(ft&&0<=ke&&kec4(Xt,Kn.links.mapper)),wn)}else Ds=br(Qn,wn)}return Ds}function $n(ft){return IS(ft.objectType)?$n(ft.objectType):ft}function Sr(ft,ke,wn){var St;let hn=wu(ft,311);if(!hn){const Xt=bo(ft.declarations,vr=>$b(vr,ft));Xt&&(hn=wu(Xt,311))}if(hn&&hn.moduleName!==void 0)return hn.moduleName;if(!hn){if(ke.tracker.trackReferencedAmbientModule){const Xt=Mn(ft.declarations,Np);if(Nr(Xt))for(const vr of Xt)ke.tracker.trackReferencedAmbientModule(vr,ft)}if(RB.test(ft.escapedName))return ft.escapedName.substring(1,ft.escapedName.length-1)}if(!ke.enclosingDeclaration||!ke.tracker.moduleResolverHost)return RB.test(ft.escapedName)?ft.escapedName.substring(1,ft.escapedName.length-1):bn(p$(ft)).fileName;const Qn=bn(au(ke.enclosingDeclaration)),Xn=wn||(Qn==null?void 0:Qn.impliedNodeFormat),Ds=tE(Qn.path,Xn),ca=Pa(ft);let Kn=ca.specifierCache&&ca.specifierCache.get(Ds);if(!Kn){const Xt=!!Ml(z),{moduleResolverHost:vr}=ke.tracker,lr=Xt?Xs(fa({},z),{baseUrl:vr.getCommonSourceDirectory()}):z;Kn=Fi(Mme(ft,yr,lr,Qn,vr,{importModuleSpecifierPreference:Xt?"non-relative":"project-relative",importModuleSpecifierEnding:Xt?"minimal":Xn===99?"js":void 0},{overrideImportMode:wn})),(St=ca.specifierCache)!=null||(ca.specifierCache=new Map),ca.specifierCache.set(Ds,Kn)}return Kn}function Br(ft){const ke=M.createIdentifier(Ba(ft.escapedName));return ft.parent?M.createQualifiedName(Br(ft.parent),ke):ke}function _n(ft,ke,wn,hn){var Qn,Xn,Ds,ca;const Kn=Hr(ft,ke,wn,!(ke.flags&16384)),St=wn===111551;if(bt(Kn[0].declarations,hv)){const lr=Kn.length>1?vr(Kn,Kn.length-1,1):void 0,Wr=hn||Tr(Kn,0,ke),mn=bn(au(ke.enclosingDeclaration)),rs=jL(Kn[0]);let za,ko;if((Ju(z)===3||Ju(z)===99)&&(rs==null?void 0:rs.impliedNodeFormat)===99&&rs.impliedNodeFormat!==(mn==null?void 0:mn.impliedNodeFormat)&&(za=Sr(Kn[0],ke,99),ko=M.createImportTypeAssertionContainer(M.createAssertClause(M.createNodeArray([M.createAssertEntry(M.createStringLiteral("resolution-mode"),M.createStringLiteral("import"))]))),(Xn=(Qn=ke.tracker).reportImportTypeNodeResolutionModeOverride)==null||Xn.call(Qn)),za||(za=Sr(Kn[0],ke)),!(ke.flags&67108864)&&Ju(z)!==1&&za.indexOf("/node_modules/")>=0){const ii=za;if(Ju(z)===3||Ju(z)===99){const Xi=(mn==null?void 0:mn.impliedNodeFormat)===99?1:99;za=Sr(Kn[0],ke,Xi),za.indexOf("/node_modules/")>=0?za=ii:(ko=M.createImportTypeAssertionContainer(M.createAssertClause(M.createNodeArray([M.createAssertEntry(M.createStringLiteral("resolution-mode"),M.createStringLiteral(Xi===99?"import":"require"))]))),(ca=(Ds=ke.tracker).reportImportTypeNodeResolutionModeOverride)==null||ca.call(Ds))}ko||(ke.encounteredError=!0,ke.tracker.reportLikelyUnsafeImportRequiredError&&ke.tracker.reportLikelyUnsafeImportRequiredError(ii))}const qr=M.createLiteralTypeNode(M.createStringLiteral(za));if(ke.tracker.trackExternalModuleSymbolOfImportTypeNode&&ke.tracker.trackExternalModuleSymbolOfImportTypeNode(Kn[0]),ke.approximateLength+=za.length+10,!lr||hm(lr)){if(lr){const ii=Be(lr)?lr:lr.right;e2(ii,void 0)}return M.createImportTypeNode(qr,ko,lr,Wr,St)}else{const ii=$n(lr),Xi=ii.objectType.typeName;return M.createIndexedAccessTypeNode(M.createImportTypeNode(qr,ko,Xi,Wr,St),ii.indexType)}}const Xt=vr(Kn,Kn.length-1,0);if(IS(Xt))return Xt;if(St)return M.createTypeQueryNode(Xt);{const lr=Be(Xt)?Xt:Xt.right,Wr=b7(lr);return e2(lr,void 0),M.createTypeReferenceNode(Xt,Wr)}function vr(lr,Wr,mn){const rs=Wr===lr.length-1?hn:Tr(lr,Wr,ke),za=lr[Wr],ko=lr[Wr-1];let qr;if(Wr===0)ke.flags|=16777216,qr=yv(za,ke),ke.approximateLength+=(qr?qr.length:0)+1,ke.flags^=16777216;else if(ko&&Nm(ko)){const Xi=Nm(ko);Zd(Xi,(qi,Bs)=>{if(O1(qi,za)&&!mA(Bs)&&Bs!=="export=")return qr=Ba(Bs),!0})}if(qr===void 0){const Xi=bo(za.declarations,Es);if(Xi&&jc(Xi)&&hm(Xi.expression)){const qi=vr(lr,Wr-1,mn);return hm(qi)?M.createIndexedAccessTypeNode(M.createParenthesizedType(M.createTypeQueryNode(qi)),M.createTypeQueryNode(Xi.expression)):qi}qr=yv(za,ke)}if(ke.approximateLength+=qr.length+1,!(ke.flags&16)&&ko&&P2(ko)&&P2(ko).get(za.escapedName)&&O1(P2(ko).get(za.escapedName),za)){const Xi=vr(lr,Wr-1,mn);return IS(Xi)?M.createIndexedAccessTypeNode(Xi,M.createLiteralTypeNode(M.createStringLiteral(qr))):M.createIndexedAccessTypeNode(M.createTypeReferenceNode(Xi,rs),M.createLiteralTypeNode(M.createStringLiteral(qr)))}const ii=Ln(M.createIdentifier(qr),16777216);if(rs&&e2(ii,M.createNodeArray(rs)),ii.symbol=za,Wr>mn){const Xi=vr(lr,Wr-1,mn);return hm(Xi)?M.createQualifiedName(Xi,ii):D.fail("Impossible construct - an export of an indexed access cannot be reachable")}return ii}}function Ni(ft,ke,wn){const hn=hu(ke.enclosingDeclaration,ft,788968,void 0,ft,!1);return hn?!(hn.flags&262144&&hn===wn.symbol):!1}function ji(ft,ke){var wn,hn;if(ke.flags&4&&ke.typeParameterNames){const Xn=ke.typeParameterNames.get(xp(ft));if(Xn)return Xn}let Qn=fs(ft.symbol,ke,788968,!0);if(!(Qn.kind&80))return M.createIdentifier("(Missing type parameter)");if(ke.flags&4){const Xn=Qn.escapedText;let Ds=((wn=ke.typeParameterNamesByTextNextNameCount)==null?void 0:wn.get(Xn))||0,ca=Xn;for(;(hn=ke.typeParameterNamesByText)!=null&&hn.has(ca)||Ni(ca,ke,ft);)Ds++,ca=`${Xn}_${Ds}`;if(ca!==Xn){const Kn=b7(Qn);Qn=M.createIdentifier(ca),e2(Qn,Kn)}(ke.typeParameterNamesByTextNextNameCount||(ke.typeParameterNamesByTextNextNameCount=new Map)).set(Xn,Ds),(ke.typeParameterNames||(ke.typeParameterNames=new Map)).set(xp(ft),Qn),(ke.typeParameterNamesByText||(ke.typeParameterNamesByText=new Set)).add(Xn)}return Qn}function fs(ft,ke,wn,hn){const Qn=Hr(ft,ke,wn);return hn&&Qn.length!==1&&!ke.encounteredError&&!(ke.flags&65536)&&(ke.encounteredError=!0),Xn(Qn,Qn.length-1);function Xn(Ds,ca){const Kn=Tr(Ds,ca,ke),St=Ds[ca];ca===0&&(ke.flags|=16777216);const Xt=yv(St,ke);ca===0&&(ke.flags^=16777216);const vr=Ln(M.createIdentifier(Xt),16777216);return Kn&&e2(vr,M.createNodeArray(Kn)),vr.symbol=St,ca>0?M.createQualifiedName(Xn(Ds,ca-1),vr):vr}}function mo(ft,ke,wn){const hn=Hr(ft,ke,wn);return Qn(hn,hn.length-1);function Qn(Xn,Ds){const ca=Tr(Xn,Ds,ke),Kn=Xn[Ds];Ds===0&&(ke.flags|=16777216);let St=yv(Kn,ke);Ds===0&&(ke.flags^=16777216);let Xt=St.charCodeAt(0);if(qD(Xt)&&bt(Kn.declarations,hv))return M.createStringLiteral(Sr(Kn,ke));if(Ds===0||VH(St,ce)){const vr=Ln(M.createIdentifier(St),16777216);return ca&&e2(vr,M.createNodeArray(ca)),vr.symbol=Kn,Ds>0?M.createPropertyAccessExpression(Qn(Xn,Ds-1),vr):vr}else{Xt===91&&(St=St.substring(1,St.length-1),Xt=St.charCodeAt(0));let vr;if(qD(Xt)&&!(Kn.flags&8)?vr=M.createStringLiteral(ig(St).replace(/\\./g,lr=>lr.substring(1)),Xt===39):""+ +St===St&&(vr=M.createNumericLiteral(+St)),!vr){const lr=Ln(M.createIdentifier(St),16777216);ca&&e2(lr,M.createNodeArray(ca)),lr.symbol=Kn,vr=lr}return M.createElementAccessExpression(Qn(Xn,Ds-1),vr)}}}function J_(ft){const ke=Es(ft);return!!ke&&sc(ke)}function Qm(ft){const ke=Es(ft);return!!(ke&&sc(ke)&&(ke.singleQuote||!Ol(ke)&&Ga(F_(ke,!1),"'")))}function Mm(ft,ke){const wn=!!Nr(ft.declarations)&&yn(ft.declarations,J_),hn=!!Nr(ft.declarations)&&yn(ft.declarations,Qm),Qn=Ka(ft,ke,hn,wn);if(Qn)return Qn;const Xn=Ba(ft.escapedName);return XF(Xn,gc(z),hn,wn)}function Ka(ft,ke,wn,hn){const Qn=Pa(ft).nameType;if(Qn){if(Qn.flags&384){const Xn=""+Qn.value;return!r0(Xn,gc(z))&&(hn||!cy(Xn))?M.createStringLiteral(Xn,!!wn):cy(Xn)&&Ga(Xn,"-")?M.createComputedPropertyName(M.createNumericLiteral(+Xn)):XF(Xn,gc(z))}if(Qn.flags&8192)return M.createComputedPropertyName(mo(Qn.symbol,ke,111551))}}function sn(ft){const ke=fa({},ft);return ke.typeParameterNames&&(ke.typeParameterNames=new Map(ke.typeParameterNames)),ke.typeParameterNamesByText&&(ke.typeParameterNamesByText=new Set(ke.typeParameterNamesByText)),ke.typeParameterSymbolList&&(ke.typeParameterSymbolList=new Set(ke.typeParameterSymbolList)),ke.tracker=new YI(ke,ke.tracker.inner,ke.tracker.moduleResolverHost),ke}function On(ft,ke){return ft.declarations&&on(ft.declarations,wn=>!!Lf(wn)&&(!ke||!!Sn(wn,hn=>hn===ke)))}function Ha(ft,ke){return!(Mi(ke)&4)||!Rg(ft)||Nr(ft.typeArguments)>=B1(ke.target.typeParameters)}function $s(ft){return Ei(ft).fakeScopeForSignatureDeclaration?ft.parent:ft}function Qa(ft,ke,wn,hn,Qn,Xn){if(!Ac(ke)&&hn){const Kn=On(wn,$s(hn));if(Kn&&!Jl(Kn)&&!sg(Kn)){const St=Lf(Kn);if(hc(St,Kn,ke)&&Ha(St,ke)){const Xt=cc(ft,St,Qn,Xn);if(Xt)return Xt}}}const Ds=ft.flags;ke.flags&8192&&ke.symbol===wn&&(!ft.enclosingDeclaration||bt(wn.declarations,Kn=>bn(Kn)===bn(ft.enclosingDeclaration)))&&(ft.flags|=1048576);const ca=u(ke,ft);return ft.flags=Ds,ca}function hc(ft,ke,wn){const hn=Qi(ft);return hn===wn?!0:Cs(ke)&&ke.questionToken?T0(wn,524288)===hn:!1}function ol(ft,ke,wn,hn,Qn){if(!Ac(ke)&&ft.enclosingDeclaration){const Xn=wn.declaration&&Og(wn.declaration),Ds=$s(ft.enclosingDeclaration);if(Sn(Xn,ca=>ca===Ds)&&Xn){const ca=Qi(Xn);if((ca.flags&262144&&ca.isThisType?$a(ca,wn.mapper):ca)===ke&&Ha(Xn,ke)){const St=cc(ft,Xn,hn,Qn);if(St)return St}}}return u(ke,ft)}function Xu(ft,ke,wn){let hn=!1;const Qn=Tm(ft);if(jn(ft)&&(l7(Qn)||ny(Qn.parent)||Od(Qn.parent)&&O$(Qn.parent.left)&&l7(Qn.parent.right)))return hn=!0,{introducesError:hn,node:ft};const Xn=ou(Qn,67108863,!0,!0);if(Xn&&(e1(Xn,ke.enclosingDeclaration,67108863,!1).accessibility!==0?hn=!0:(ke.tracker.trackSymbol(Xn,ke.enclosingDeclaration,67108863),wn==null||wn(Xn)),Be(ft))){const Ds=hl(Xn),ca=Xn.flags&262144&&!ox(Ds.symbol,ke.enclosingDeclaration)?ji(Ds,ke):M.cloneNode(ft);return ca.symbol=Xn,{introducesError:hn,node:Ln(yi(ca,ft),16777216)}}return{introducesError:hn,node:ft}}function cc(ft,ke,wn,hn){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Qn=!1;const Xn=bn(ke),Ds=Ye(ke,ca,Oa);if(Qn)return;return Ds===ke?yt(M.cloneNode(ke),ke):Ds;function ca(Kn){if(ope(Kn)||Kn.kind===325)return M.createKeywordTypeNode(133);if(cpe(Kn))return M.createKeywordTypeNode(159);if(Pk(Kn))return M.createUnionTypeNode([Ye(Kn.type,ca,Oa),M.createLiteralTypeNode(M.createNull())]);if(JG(Kn))return M.createUnionTypeNode([Ye(Kn.type,ca,Oa),M.createKeywordTypeNode(157)]);if(VR(Kn))return Ye(Kn.type,ca);if(WR(Kn))return M.createArrayTypeNode(Ye(Kn.type,ca,Oa));if(Mk(Kn))return M.createTypeLiteralNode(er(Kn.jsDocPropertyTags,lr=>{const Wr=Be(lr.name)?lr.name:lr.name.right,mn=Hu(Qi(Kn),Wr.escapedText),rs=mn&&lr.typeExpression&&Qi(lr.typeExpression.type)!==mn?u(mn,ft):void 0;return M.createPropertySignature(void 0,Wr,lr.isBracketed||lr.typeExpression&&JG(lr.typeExpression.type)?M.createToken(58):void 0,rs||lr.typeExpression&&Ye(lr.typeExpression.type,ca,Oa)||M.createKeywordTypeNode(133))}));if(Rg(Kn)&&Be(Kn.typeName)&&Kn.typeName.escapedText==="")return yi(M.createKeywordTypeNode(133),Kn);if((t2(Kn)||Rg(Kn))&&lF(Kn))return M.createTypeLiteralNode([M.createIndexSignature(void 0,[M.createParameterDeclaration(void 0,void 0,"x",void 0,Ye(Kn.typeArguments[0],ca,Oa))],Ye(Kn.typeArguments[1],ca,Oa))]);if(Ok(Kn))if(ek(Kn)){let lr;return M.createConstructorTypeNode(void 0,dn(Kn.typeParameters,ca,eu),Mr(Kn.parameters,(Wr,mn)=>Wr.name&&Be(Wr.name)&&Wr.name.escapedText==="new"?(lr=Wr.type,void 0):M.createParameterDeclaration(void 0,St(Wr),Xt(Wr,mn),Wr.questionToken,Ye(Wr.type,ca,Oa),void 0)),Ye(lr||Kn.type,ca,Oa)||M.createKeywordTypeNode(133))}else return M.createFunctionTypeNode(dn(Kn.typeParameters,ca,eu),er(Kn.parameters,(lr,Wr)=>M.createParameterDeclaration(void 0,St(lr),Xt(lr,Wr),lr.questionToken,Ye(lr.type,ca,Oa),void 0)),Ye(Kn.type,ca,Oa)||M.createKeywordTypeNode(133));if(Rg(Kn)&&WD(Kn)&&(!Ha(Kn,Qi(Kn))||NTe(Kn)||Kr===z8(Kn,788968,!0)))return yi(u(Qi(Kn),ft),Kn);if(E4(Kn)){const lr=Ei(Kn).resolvedSymbol;return WD(Kn)&&lr&&(!Kn.isTypeOf&&!(lr.flags&788968)||!(Nr(Kn.typeArguments)>=B1(N2(lr))))?yi(u(Qi(Kn),ft),Kn):M.updateImportTypeNode(Kn,M.updateLiteralTypeNode(Kn.argument,vr(Kn,Kn.argument.literal)),Kn.assertions,Kn.qualifier,dn(Kn.typeArguments,ca,Oa),Kn.isTypeOf)}if(hm(Kn)||ju(Kn)){const{introducesError:lr,node:Wr}=Xu(Kn,ft,wn);if(Qn=Qn||lr,Wr!==Kn)return Wr}return Xn&&wk(Kn)&&Ql(Xn,Kn.pos).line===Ql(Xn,Kn.end).line&&Ln(Kn,1),nn(Kn,ca,rv);function St(lr){return lr.dotDotDotToken||(lr.type&&WR(lr.type)?M.createToken(26):void 0)}function Xt(lr,Wr){return lr.name&&Be(lr.name)&&lr.name.escapedText==="this"?"this":St(lr)?"args":`arg${Wr}`}function vr(lr,Wr){if(hn){if(ft.tracker&&ft.tracker.moduleResolverHost){const mn=pce(lr);if(mn){const za={getCanonicalFileName:N_(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ft.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ft.tracker.moduleResolverHost.getCommonSourceDirectory()},ko=SF(za,mn);return M.createStringLiteral(ko)}}}else if(ft.tracker&&ft.tracker.trackExternalModuleSymbolOfImportTypeNode){const mn=pv(Wr,Wr,void 0);mn&&ft.tracker.trackExternalModuleSymbolOfImportTypeNode(mn)}return Wr}}}function zp(ft,ke,wn){const hn=Eg(M.createPropertyDeclaration,173,!0),Qn=Eg((Ut,oi,$i,Wi)=>M.createPropertySignature(Ut,oi,$i,Wi),172,!1),Xn=ke.enclosingDeclaration;let Ds=[];const ca=new Set,Kn=[],St=ke;ke=Xs(fa({},St),{usedSymbolNames:new Set(St.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0});const Xt=Xs(fa({},St.tracker.inner),{trackSymbol:(Ut,oi,$i)=>{var Wi;if(e1(Ut,oi,$i,!1).accessibility===0){const Rc=vn(Ut,ke,$i);Ut.flags&4||mc(Rc[0])}else if((Wi=St.tracker.inner)!=null&&Wi.trackSymbol)return St.tracker.inner.trackSymbol(Ut,oi,$i);return!1}});ke.tracker=new YI(ke,Xt,St.tracker.moduleResolverHost),Zd(ft,(Ut,oi)=>{const $i=Ba(oi);qd(Ut,$i)});let vr=!wn;const lr=ft.get("export=");return lr&&ft.size>1&&lr.flags&2097152&&(ft=To(),ft.set("export=",lr)),qi(ft),qr(Ds);function Wr(Ut){return!!Ut&&Ut.kind===80}function mn(Ut){return S_(Ut)?Mn(er(Ut.declarationList.declarations,Es),Wr):Mn([Es(Ut)],Wr)}function rs(Ut){const oi=on(Ut,Wu),$i=zi(Ut,Vu);let Wi=$i!==-1?Ut[$i]:void 0;if(Wi&&oi&&oi.isExportEquals&&Be(oi.expression)&&Be(Wi.name)&&ri(Wi.name)===ri(oi.expression)&&Wi.body&&C1(Wi.body)){const ea=Mn(Ut,ss=>!!(Pp(ss)&1)),Rc=Wi.name;let vo=Wi.body;if(Nr(ea)&&(Wi=M.updateModuleDeclaration(Wi,Wi.modifiers,Wi.name,vo=M.updateModuleBlock(vo,M.createNodeArray([...Wi.body.statements,M.createExportDeclaration(void 0,!1,M.createNamedExports(er(lo(ea,ss=>mn(ss)),ss=>M.createExportSpecifier(!1,void 0,ss))),void 0)]))),Ut=[...Ut.slice(0,$i),Wi,...Ut.slice($i+1)]),!on(Ut,ss=>ss!==Wi&&SD(ss,Rc))){Ds=[];const ss=!bt(vo.statements,Mo=>Pi(Mo,1)||Wu(Mo)||Sf(Mo));Vt(vo.statements,Mo=>{$e(Mo,ss?1:0)}),Ut=[...Mn(Ut,Mo=>Mo!==Wi&&Mo!==oi),...Ds]}}return Ut}function za(Ut){const oi=Mn(Ut,Wi=>Sf(Wi)&&!Wi.moduleSpecifier&&!!Wi.exportClause&&og(Wi.exportClause));Nr(oi)>1&&(Ut=[...Mn(Ut,ea=>!Sf(ea)||!!ea.moduleSpecifier||!ea.exportClause),M.createExportDeclaration(void 0,!1,M.createNamedExports(lo(oi,ea=>Ws(ea.exportClause,og).elements)),void 0)]);const $i=Mn(Ut,Wi=>Sf(Wi)&&!!Wi.moduleSpecifier&&!!Wi.exportClause&&og(Wi.exportClause));if(Nr($i)>1){const Wi=V1($i,ea=>sc(ea.moduleSpecifier)?">"+ea.moduleSpecifier.text:">");if(Wi.length!==$i.length)for(const ea of Wi)ea.length>1&&(Ut=[...Mn(Ut,Rc=>ea.indexOf(Rc)===-1),M.createExportDeclaration(void 0,!1,M.createNamedExports(lo(ea,Rc=>Ws(Rc.exportClause,og).elements)),ea[0].moduleSpecifier)])}return Ut}function ko(Ut){const oi=zi(Ut,$i=>Sf($i)&&!$i.moduleSpecifier&&!$i.assertClause&&!!$i.exportClause&&og($i.exportClause));if(oi>=0){const $i=Ut[oi],Wi=Mr($i.exportClause.elements,ea=>{if(!ea.propertyName){const Rc=rc(Ut),vo=Mn(Rc,ss=>SD(Ut[ss],ea.name));if(Nr(vo)&&yn(vo,ss=>FN(Ut[ss]))){for(const ss of vo)Ut[ss]=ii(Ut[ss]);return}}return ea});Nr(Wi)?Ut[oi]=M.updateExportDeclaration($i,$i.modifiers,$i.isTypeOnly,M.updateNamedExports($i.exportClause,Wi),$i.moduleSpecifier,$i.assertClause):Z0(Ut,oi)}return Ut}function qr(Ut){return Ut=rs(Ut),Ut=za(Ut),Ut=ko(Ut),Xn&&(Ja(Xn)&&bm(Xn)||Vu(Xn))&&(!bt(Ut,ID)||!Ale(Ut)&&bt(Ut,DL))&&Ut.push(dI(M)),Ut}function ii(Ut){const oi=(Pp(Ut)|1)&-3;return M.updateModifiers(Ut,oi)}function Xi(Ut){const oi=Pp(Ut)&-2;return M.updateModifiers(Ut,oi)}function qi(Ut,oi,$i){oi||Kn.push(new Map),Ut.forEach(Wi=>{Bs(Wi,!1,!!$i)}),oi||(Kn[Kn.length-1].forEach(Wi=>{Bs(Wi,!0,!!$i)}),Kn.pop())}function Bs(Ut,oi,$i){const Wi=Ec(Ut);if(ca.has(oc(Wi)))return;if(ca.add(oc(Wi)),!oi||Nr(Ut.declarations)&&bt(Ut.declarations,Rc=>!!Sn(Rc,vo=>vo===Xn))){const Rc=ke;ke=sn(ke),vl(Ut,oi,$i),ke.reportedDiagnostic&&(St.reportedDiagnostic=ke.reportedDiagnostic),ke=Rc}}function vl(Ut,oi,$i){var Wi,ea,Rc,vo;const ss=Ba(Ut.escapedName),Mo=Ut.escapedName==="default";if(oi&&!(ke.flags&131072)&&uS(ss)&&!Mo){ke.encounteredError=!0;return}let bc=Mo&&!!(Ut.flags&-113||Ut.flags&16&&Nr(Pc(An(Ut))))&&!(Ut.flags&2097152),Ou=!bc&&!oi&&uS(ss)&&!Mo;(bc||Ou)&&(oi=!0);const gf=(oi?0:1)|(Mo&&!bc?1024:0),Sd=Ut.flags&1536&&Ut.flags&7&&Ut.escapedName!=="export=",rp=Sd&&tp(An(Ut),Ut);if((Ut.flags&8208||rp)&&Vi(An(Ut),Ut,qd(Ut,ss),gf),Ut.flags&524288&&Ct(Ut,ss,gf),Ut.flags&98311&&Ut.escapedName!=="export="&&!(Ut.flags&4194304)&&!(Ut.flags&32)&&!(Ut.flags&8192)&&!rp)if($i)$c(Ut)&&(Ou=!1,bc=!1);else{const Al=An(Ut),Mu=qd(Ut,ss);if(!(Ut.flags&16)&&tp(Al,Ut))Vi(Al,Ut,Mu,gf);else{const Mv=Ut.flags&2?UC(Ut)?2:1:(Wi=Ut.parent)!=null&&Wi.valueDeclaration&&Ja((ea=Ut.parent)==null?void 0:ea.valueDeclaration)?2:void 0,Jh=bc||!(Ut.flags&4)?Mu:e5(Mu,Ut);let Uh=Ut.declarations&&on(Ut.declarations,$2=>Fa($2));Uh&&of(Uh.parent)&&Uh.parent.declarations.length===1&&(Uh=Uh.parent.parent);const BT=(Rc=Ut.declarations)==null?void 0:Rc.find(mi);if(BT&&Un(BT.parent)&&Be(BT.parent.right)&&((vo=Al.symbol)!=null&&vo.valueDeclaration)&&Ja(Al.symbol.valueDeclaration)){const $2=Mu===BT.parent.right.escapedText?void 0:BT.parent.right;$e(M.createExportDeclaration(void 0,!1,M.createNamedExports([M.createExportSpecifier(!1,$2,Mu)])),0),ke.tracker.trackSymbol(Al.symbol,ke.enclosingDeclaration,111551)}else{const $2=yt(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(Jh,void 0,Qa(ke,Al,Ut,Xn,mc,wn))],Mv)),Uh);$e($2,Jh!==Mu?gf&-2:gf),Jh!==Mu&&!oi&&($e(M.createExportDeclaration(void 0,!1,M.createNamedExports([M.createExportSpecifier(!1,Jh,Mu)])),0),Ou=!1,bc=!1)}}}if(Ut.flags&384&&Wn(Ut,ss,gf),Ut.flags&32&&(Ut.flags&4&&Ut.valueDeclaration&&Un(Ut.valueDeclaration.parent)&&Mp(Ut.valueDeclaration.parent.right)?jo(Ut,qd(Ut,ss),gf):Zi(Ut,qd(Ut,ss),gf)),(Ut.flags&1536&&(!Sd||Gn(Ut))||rp)&&Or(Ut,ss,gf),Ut.flags&64&&!(Ut.flags&32)&&dr(Ut,ss,gf),Ut.flags&2097152&&jo(Ut,qd(Ut,ss),gf),Ut.flags&4&&Ut.escapedName==="export="&&$c(Ut),Ut.flags&8388608&&Ut.declarations)for(const Al of Ut.declarations){const Mu=z_(Al,Al.moduleSpecifier);Mu&&$e(M.createExportDeclaration(void 0,Al.isTypeOnly,void 0,M.createStringLiteral(Sr(Mu,ke))),0)}bc?$e(M.createExportAssignment(void 0,!1,M.createIdentifier(qd(Ut,ss))),0):Ou&&$e(M.createExportDeclaration(void 0,!1,M.createNamedExports([M.createExportSpecifier(!1,qd(Ut,ss),ss)])),0)}function mc(Ut){if(bt(Ut.declarations,f7))return;D.assertIsDefined(Kn[Kn.length-1]),e5(Ba(Ut.escapedName),Ut);const oi=!!(Ut.flags&2097152)&&!bt(Ut.declarations,$i=>!!Sn($i,Sf)||_y($i)||Hf($i)&&!yh($i.moduleReference));Kn[oi?0:Kn.length-1].set(oc(Ut),Ut)}function b_(Ut){return Ja(Ut)&&(bm(Ut)||O0(Ut))||Np(Ut)&&!x1(Ut)}function $e(Ut,oi){if(lg(Ut)){let $i=0;const Wi=ke.enclosingDeclaration&&(M0(ke.enclosingDeclaration)?bn(ke.enclosingDeclaration):ke.enclosingDeclaration);oi&1&&Wi&&(b_(Wi)||Vu(Wi))&&FN(Ut)&&($i|=1),vr&&!($i&1)&&(!Wi||!(Wi.flags&16777216))&&(j4(Ut)||S_(Ut)||B_(Ut)||cf(Ut)||Vu(Ut))&&($i|=2),oi&1024&&(cf(Ut)||Lp(Ut)||B_(Ut))&&($i|=1024),$i&&(Ut=M.updateModifiers(Ut,$i|Pp(Ut)))}Ds.push(Ut)}function Ct(Ut,oi,$i){var Wi;const ea=DC(Ut),Rc=Pa(Ut).typeParameters,vo=er(Rc,Sd=>ut(Sd,ke)),ss=(Wi=Ut.declarations)==null?void 0:Wi.find(M0),Mo=CD(ss?ss.comment||ss.parent.comment:void 0),bc=ke.flags;ke.flags|=8388608;const Ou=ke.enclosingDeclaration;ke.enclosingDeclaration=ss;const gf=ss&&ss.typeExpression&&E7(ss.typeExpression)&&cc(ke,ss.typeExpression.type,mc,wn)||u(ea,ke);$e(F4(M.createTypeAliasDeclaration(void 0,qd(Ut,oi),vo,gf),Mo?[{kind:3,text:`* - * `+Mo.replace(/\n/g,` - * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),$i),ke.flags=bc,ke.enclosingDeclaration=Ou}function dr(Ut,oi,$i){const Wi=Bp(Ut),ea=N2(Ut),Rc=er(ea,rp=>ut(rp,ke)),vo=vs(Wi),ss=Nr(vo)?Xo(vo):void 0,Mo=lo(Pc(Wi),rp=>zh(rp,ss)),bc=p4(0,Wi,ss,178),Ou=p4(1,Wi,ss,179),gf=RT(Wi,ss),Sd=Nr(vo)?[M.createHeritageClause(96,Mr(vo,rp=>U1(rp,111551)))]:void 0;$e(M.createInterfaceDeclaration(void 0,qd(Ut,oi),Rc,Sd,[...gf,...Ou,...bc,...Mo]),$i)}function pn(Ut){const oi=Nm(Ut);return oi?Mn(zt(oi.values()),$i=>no($i)&&r0($i.escapedName,99)):[]}function Gn(Ut){return yn(pn(Ut),oi=>!(rd(nu(oi))&111551))}function Or(Ut,oi,$i){const Wi=pn(Ut),ea=_1(Wi,ss=>ss.parent&&ss.parent===Ut?"real":"merged"),Rc=ea.get("real")||tt,vo=ea.get("merged")||tt;if(Nr(Rc)){const ss=qd(Ut,oi);ws(Rc,ss,$i,!!(Ut.flags&67108880))}if(Nr(vo)){const ss=bn(ke.enclosingDeclaration),Mo=qd(Ut,oi),bc=M.createModuleBlock([M.createExportDeclaration(void 0,!1,M.createNamedExports(Mr(Mn(vo,Ou=>Ou.escapedName!=="export="),Ou=>{var gf,Sd;const rp=Ba(Ou.escapedName),Al=qd(Ou,rp),Mu=Ou.declarations&&sm(Ou);if(ss&&(Mu?ss!==bn(Mu):!bt(Ou.declarations,Uh=>bn(Uh)===ss))){(Sd=(gf=ke.tracker)==null?void 0:gf.reportNonlocalAugmentation)==null||Sd.call(gf,ss,Ut,Ou);return}const Mv=Mu&&U0(Mu,!0);mc(Mv||Ou);const Jh=Mv?qd(Mv,Ba(Mv.escapedName)):Al;return M.createExportSpecifier(!1,rp===Jh?void 0:Jh,rp)})))]);$e(M.createModuleDeclaration(void 0,M.createIdentifier(Mo),bc,16),0)}}function Wn(Ut,oi,$i){$e(M.createEnumDeclaration(M.createModifiersFromModifierFlags(Moe(Ut)?2048:0),qd(Ut,oi),er(Mn(Pc(An(Ut)),Wi=>!!(Wi.flags&8)),Wi=>{const ea=Wi.declarations&&Wi.declarations[0]&&C3(Wi.declarations[0])?uce(Wi.declarations[0]):void 0;return M.createEnumMember(Ba(Wi.escapedName),ea===void 0?void 0:typeof ea=="string"?M.createStringLiteral(ea):M.createNumericLiteral(ea))})),$i)}function Vi(Ut,oi,$i,Wi){const ea=ro(Ut,0);for(const Rc of ea){const vo=Te(Rc,261,ke,{name:M.createIdentifier($i),privateSymbolVisitor:mc,bundledImports:wn});$e(yt(vo,oa(Rc)),Wi)}if(!(oi.flags&1536&&oi.exports&&oi.exports.size)){const Rc=Mn(Pc(Ut),no);ws(Rc,$i,Wi,!0)}}function oa(Ut){if(Ut.declaration&&Ut.declaration.parent){if(Un(Ut.declaration.parent)&&Au(Ut.declaration.parent)===5)return Ut.declaration.parent;if(Fa(Ut.declaration.parent)&&Ut.declaration.parent.parent)return Ut.declaration.parent.parent}return Ut.declaration}function ws(Ut,oi,$i,Wi){if(Nr(Ut)){const Rc=_1(Ut,Al=>!Nr(Al.declarations)||bt(Al.declarations,Mu=>bn(Mu)===bn(ke.enclosingDeclaration))?"local":"remote").get("local")||tt;let vo=vh.createModuleDeclaration(void 0,M.createIdentifier(oi),M.createModuleBlock([]),16);fc(vo,Xn),vo.locals=To(Ut),vo.symbol=Ut[0].parent;const ss=Ds;Ds=[];const Mo=vr;vr=!1;const bc=Xs(fa({},ke),{enclosingDeclaration:vo}),Ou=ke;ke=bc,qi(To(Rc),Wi,!0),ke=Ou,vr=Mo;const gf=Ds;Ds=ss;const Sd=er(gf,Al=>Wu(Al)&&!Al.isExportEquals&&Be(Al.expression)?M.createExportDeclaration(void 0,!1,M.createNamedExports([M.createExportSpecifier(!1,Al.expression,M.createIdentifier("default"))])):Al),rp=yn(Sd,Al=>Pi(Al,1))?er(Sd,Xi):Sd;vo=M.updateModuleDeclaration(vo,vo.modifiers,vo.name,M.createModuleBlock(rp)),$e(vo,$i)}}function no(Ut){return!!(Ut.flags&2887656)||!(Ut.flags&4194304||Ut.escapedName==="prototype"||Ut.valueDeclaration&&so(Ut.valueDeclaration)&&Yi(Ut.valueDeclaration.parent))}function yo(Ut){const oi=Mr(Ut,$i=>{const Wi=ke.enclosingDeclaration;ke.enclosingDeclaration=$i;let ea=$i.expression;if(ju(ea)){if(Be(ea)&&ri(ea)==="")return Rc(void 0);let vo;if({introducesError:vo,node:ea}=Xu(ea,ke,mc),vo)return Rc(void 0)}return Rc(M.createExpressionWithTypeArguments(ea,er($i.typeArguments,vo=>cc(ke,vo,mc,wn)||u(Qi(vo),ke))));function Rc(vo){return ke.enclosingDeclaration=Wi,vo}});if(oi.length===Ut.length)return oi}function Zi(Ut,oi,$i){var Wi,ea;const Rc=(Wi=Ut.declarations)==null?void 0:Wi.find(Yi),vo=ke.enclosingDeclaration;ke.enclosingDeclaration=Rc||vo;const ss=N2(Ut),Mo=er(ss,u1=>ut(u1,ke)),bc=cm(Bp(Ut)),Ou=vs(bc),gf=Rc&&nk(Rc),Sd=gf&&yo(gf)||Mr(ma(bc),K8),rp=An(Ut),Al=!!((ea=rp.symbol)!=null&&ea.valueDeclaration)&&Yi(rp.symbol.valueDeclaration),Mu=Al?ni(rp):it,Mv=[...Nr(Ou)?[M.createHeritageClause(96,er(Ou,u1=>nw(u1,Mu,oi)))]:[],...Nr(Sd)?[M.createHeritageClause(119,Sd)]:[]],Jh=Tnt(bc,Ou,Pc(bc)),Uh=Mn(Jh,u1=>{const iw=u1.valueDeclaration;return!!iw&&!(sp(iw)&&Ea(iw.name))}),$2=bt(Jh,u1=>{const iw=u1.valueDeclaration;return!!iw&&sp(iw)&&Ea(iw.name)})?[M.createPropertyDeclaration(void 0,M.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:tt,bce=lo(Uh,u1=>hn(u1,!1,Ou[0])),xce=lo(Mn(Pc(rp),u1=>!(u1.flags&4194304)&&u1.escapedName!=="prototype"&&!no(u1)),u1=>hn(u1,!0,Mu)),zat=!Al&&!!Ut.valueDeclaration&&jn(Ut.valueDeclaration)&&!bt(ro(rp,1))?[M.createConstructorDeclaration(M.createModifiersFromModifierFlags(8),[],void 0)]:p4(1,rp,Mu,175),Jat=RT(bc,Ou[0]);ke.enclosingDeclaration=vo,$e(yt(M.createClassDeclaration(void 0,oi,Mo,Mv,[...Jat,...xce,...zat,...bce,...$2]),Ut.declarations&&Mn(Ut.declarations,u1=>cf(u1)||Mp(u1))[0]),$i)}function Ns(Ut){return bo(Ut,oi=>{if(Ld(oi)||dd(oi))return ri(oi.propertyName||oi.name);if(Un(oi)||Wu(oi)){const $i=Wu(oi)?oi.expression:oi.right;if(mi($i))return ri($i.name)}if(n6(oi)){const $i=Es(oi);if($i&&Be($i))return ri($i)}})}function jo(Ut,oi,$i){var Wi,ea,Rc,vo,ss;const Mo=sm(Ut);if(!Mo)return D.fail();const bc=Ec(U0(Mo,!0));if(!bc)return;let Ou=zw(bc)&&Ns(Ut.declarations)||Ba(bc.escapedName);Ou==="export="&&ye&&(Ou="default");const gf=qd(bc,Ou);switch(mc(bc),Mo.kind){case 207:if(((ea=(Wi=Mo.parent)==null?void 0:Wi.parent)==null?void 0:ea.kind)===259){const Al=Sr(bc.parent||bc,ke),{propertyName:Mu}=Mo;$e(M.createImportDeclaration(void 0,M.createImportClause(!1,void 0,M.createNamedImports([M.createImportSpecifier(!1,Mu&&Be(Mu)?M.createIdentifier(ri(Mu)):void 0,M.createIdentifier(oi))])),M.createStringLiteral(Al),void 0),0);break}D.failBadSyntaxKind(((Rc=Mo.parent)==null?void 0:Rc.parent)||Mo,"Unhandled binding element grandparent kind in declaration serialization");break;case 303:((ss=(vo=Mo.parent)==null?void 0:vo.parent)==null?void 0:ss.kind)===225&&zo(Ba(Ut.escapedName),gf);break;case 259:if(mi(Mo.initializer)){const Al=Mo.initializer,Mu=M.createUniqueName(oi),Mv=Sr(bc.parent||bc,ke);$e(M.createImportEqualsDeclaration(void 0,!1,Mu,M.createExternalModuleReference(M.createStringLiteral(Mv))),0),$e(M.createImportEqualsDeclaration(void 0,!1,M.createIdentifier(oi),M.createQualifiedName(Mu,Al.name)),$i);break}case 270:if(bc.escapedName==="export="&&bt(bc.declarations,Al=>Ja(Al)&&O0(Al))){$c(Ut);break}const Sd=!(bc.flags&512)&&!Fa(Mo);$e(M.createImportEqualsDeclaration(void 0,!1,M.createIdentifier(oi),Sd?fs(bc,ke,67108863,!1):M.createExternalModuleReference(M.createStringLiteral(Sr(bc,ke)))),Sd?$i:0);break;case 269:$e(M.createNamespaceExportDeclaration(ri(Mo.name)),0);break;case 272:{const Al=Sr(bc.parent||bc,ke),Mu=wn?M.createStringLiteral(Al):Mo.parent.moduleSpecifier;$e(M.createImportDeclaration(void 0,M.createImportClause(!1,M.createIdentifier(oi),void 0),Mu,Mo.parent.assertClause),0);break}case 273:{const Al=Sr(bc.parent||bc,ke),Mu=wn?M.createStringLiteral(Al):Mo.parent.parent.moduleSpecifier;$e(M.createImportDeclaration(void 0,M.createImportClause(!1,void 0,M.createNamespaceImport(M.createIdentifier(oi))),Mu,Mo.parent.parent.assertClause),0);break}case 279:$e(M.createExportDeclaration(void 0,!1,M.createNamespaceExport(M.createIdentifier(oi)),M.createStringLiteral(Sr(bc,ke))),0);break;case 275:{const Al=Sr(bc.parent||bc,ke),Mu=wn?M.createStringLiteral(Al):Mo.parent.parent.parent.moduleSpecifier;$e(M.createImportDeclaration(void 0,M.createImportClause(!1,void 0,M.createNamedImports([M.createImportSpecifier(!1,oi!==Ou?M.createIdentifier(Ou):void 0,M.createIdentifier(oi))])),Mu,Mo.parent.parent.parent.assertClause),0);break}case 280:const rp=Mo.parent.parent.moduleSpecifier;zo(Ba(Ut.escapedName),rp?Ou:gf,rp&&Wc(rp)?M.createStringLiteral(rp.text):void 0);break;case 276:$c(Ut);break;case 225:case 210:case 211:Ut.escapedName==="default"||Ut.escapedName==="export="?$c(Ut):zo(oi,gf);break;default:return D.failBadSyntaxKind(Mo,"Unhandled alias declaration kind in symbol serializer!")}}function zo(Ut,oi,$i){$e(M.createExportDeclaration(void 0,!1,M.createNamedExports([M.createExportSpecifier(!1,Ut!==oi?oi:void 0,Ut)]),$i),0)}function $c(Ut){var oi;if(Ut.flags&4194304)return!1;const $i=Ba(Ut.escapedName),Wi=$i==="export=",Rc=Wi||$i==="default",vo=Ut.declarations&&sm(Ut),ss=vo&&U0(vo,!0);if(ss&&Nr(ss.declarations)&&bt(ss.declarations,Mo=>bn(Mo)===bn(Xn))){const Mo=vo&&(Wu(vo)||Un(vo)?J$(vo):Lue(vo)),bc=Mo&&ju(Mo)?Rnt(Mo):void 0,Ou=bc&&ou(bc,67108863,!0,!0,Xn);(Ou||ss)&&mc(Ou||ss);const gf=ke.tracker.disableTrackSymbol;if(ke.tracker.disableTrackSymbol=!0,Rc)Ds.push(M.createExportAssignment(void 0,Wi,mo(ss,ke,67108863)));else if(bc===Mo&&bc)zo($i,ri(bc));else if(Mo&&Mp(Mo))zo($i,qd(ss,Bu(ss)));else{const Sd=e5($i,Ut);$e(M.createImportEqualsDeclaration(void 0,!1,M.createIdentifier(Sd),fs(ss,ke,67108863,!1)),0),zo($i,Sd)}return ke.tracker.disableTrackSymbol=gf,!0}else{const Mo=e5($i,Ut),bc=lm(An(Ec(Ut)));if(tp(bc,Ut))Vi(bc,Ut,Mo,Rc?0:1);else{const Ou=M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(Mo,void 0,Qa(ke,bc,Ut,Xn,mc,wn))],((oi=ke.enclosingDeclaration)==null?void 0:oi.kind)===266?1:2));$e(Ou,ss&&ss.flags&4&&ss.escapedName==="export="?2:$i===Mo?1:0)}return Rc?(Ds.push(M.createExportAssignment(void 0,Wi,M.createIdentifier(Mo))),!0):$i!==Mo?(zo($i,Mo),!0):!1}}function tp(Ut,oi){const $i=bn(ke.enclosingDeclaration);return Mi(Ut)&48&&!Nr(bp(Ut))&&!Ud(Ut)&&!!(Nr(Mn(Pc(Ut),no))||Nr(ro(Ut,0)))&&!Nr(ro(Ut,1))&&!On(oi,Xn)&&!(Ut.symbol&&bt(Ut.symbol.declarations,Wi=>bn(Wi)!==$i))&&!bt(Pc(Ut),Wi=>mA(Wi.escapedName))&&!bt(Pc(Ut),Wi=>bt(Wi.declarations,ea=>bn(ea)!==$i))&&yn(Pc(Ut),Wi=>r0(Bu(Wi),ce))}function Eg(Ut,oi,$i){return function(ea,Rc,vo){var ss,Mo,bc,Ou,gf;const Sd=c0(ea),rp=!!(Sd&8);if(Rc&&ea.flags&2887656)return[];if(ea.flags&4194304||ea.escapedName==="constructor"||vo&&So(vo,ea.escapedName)&&wg(So(vo,ea.escapedName))===wg(ea)&&(ea.flags&16777216)===(So(vo,ea.escapedName).flags&16777216)&&Iy(An(ea),Hu(vo,ea.escapedName)))return[];const Al=Sd&-513|(Rc?32:0),Mu=Mm(ea,ke),Mv=(ss=ea.declarations)==null?void 0:ss.find(Mf(fo,w4,Fa,Vm,Un,mi));if(ea.flags&98304&&$i){const Jh=[];if(ea.flags&65536&&Jh.push(yt(M.createSetAccessorDeclaration(M.createModifiersFromModifierFlags(Al),Mu,[M.createParameterDeclaration(void 0,void 0,"arg",void 0,rp?void 0:Qa(ke,An(ea),ea,Xn,mc,wn))],void 0),((Mo=ea.declarations)==null?void 0:Mo.find($v))||Mv)),ea.flags&32768){const Uh=Sd&8;Jh.push(yt(M.createGetAccessorDeclaration(M.createModifiersFromModifierFlags(Al),Mu,[],Uh?void 0:Qa(ke,An(ea),ea,Xn,mc,wn),void 0),((bc=ea.declarations)==null?void 0:bc.find(cb))||Mv))}return Jh}else if(ea.flags&98311)return yt(Ut(M.createModifiersFromModifierFlags((wg(ea)?64:0)|Al),Mu,ea.flags&16777216?M.createToken(58):void 0,rp?void 0:Qa(ke,dA(ea),ea,Xn,mc,wn),void 0),((Ou=ea.declarations)==null?void 0:Ou.find(Mf(fo,Fa)))||Mv);if(ea.flags&8208){const Jh=An(ea),Uh=ro(Jh,0);if(Al&8)return yt(Ut(M.createModifiersFromModifierFlags((wg(ea)?64:0)|Al),Mu,ea.flags&16777216?M.createToken(58):void 0,void 0,void 0),((gf=ea.declarations)==null?void 0:gf.find(Jl))||Uh[0]&&Uh[0].declaration||ea.declarations&&ea.declarations[0]);const BT=[];for(const $2 of Uh){const bce=Te($2,oi,ke,{name:Mu,questionToken:ea.flags&16777216?M.createToken(58):void 0,modifiers:Al?M.createModifiersFromModifierFlags(Al):void 0}),xce=$2.declaration&&QD($2.declaration.parent)?$2.declaration.parent:$2.declaration;BT.push(yt(bce,xce))}return BT}return D.fail(`Unhandled class member kind! ${ea.__debugFlags||ea.flags}`)}}function zh(Ut,oi){return Qn(Ut,!1,oi)}function p4(Ut,oi,$i,Wi){const ea=ro(oi,Ut);if(Ut===1){if(!$i&&yn(ea,ss=>Nr(ss.parameters)===0))return[];if($i){const ss=ro($i,1);if(!Nr(ss)&&yn(ea,Mo=>Nr(Mo.parameters)===0))return[];if(ss.length===ea.length){let Mo=!1;for(let bc=0;bcu(ea,ke)),Wi=mo(Ut.target.symbol,ke,788968)):Ut.symbol&&cx(Ut.symbol,Xn,oi)&&(Wi=mo(Ut.symbol,ke,788968)),Wi)return M.createExpressionWithTypeArguments(Wi,$i)}function K8(Ut){const oi=U1(Ut,788968);if(oi)return oi;if(Ut.symbol)return M.createExpressionWithTypeArguments(mo(Ut.symbol,ke,788968),void 0)}function e5(Ut,oi){var $i,Wi;const ea=oi?oc(oi):void 0;if(ea&&ke.remappedSymbolNames.has(ea))return ke.remappedSymbolNames.get(ea);oi&&(Ut=Ax(oi,Ut));let Rc=0;const vo=Ut;for(;($i=ke.usedSymbolNames)!=null&&$i.has(Ut);)Rc++,Ut=`${vo}_${Rc}`;return(Wi=ke.usedSymbolNames)==null||Wi.add(Ut),ea&&ke.remappedSymbolNames.set(ea,Ut),Ut}function Ax(Ut,oi){if(oi==="default"||oi==="__class"||oi==="__function"){const $i=ke.flags;ke.flags|=16777216;const Wi=yv(Ut,ke);ke.flags=$i,oi=Wi.length>0&&qD(Wi.charCodeAt(0))?ig(Wi):Wi}return oi==="default"?oi="_default":oi==="export="&&(oi="_exports"),oi=r0(oi,ce)&&!uS(oi)?oi:"_"+oi.replace(/[^a-zA-Z0-9]/g,"_"),oi}function qd(Ut,oi){const $i=oc(Ut);return ke.remappedSymbolNames.has($i)?ke.remappedSymbolNames.get($i):(oi=Ax(Ut,oi),ke.remappedSymbolNames.set($i,oi),oi)}}}function nd(r,a,c=16384,u){return u?d(u).getText():Rw(d);function d(g){const x=M.createTypePredicateNode(r.kind===2||r.kind===3?M.createToken(131):void 0,r.kind===1||r.kind===3?M.createIdentifier(r.parameterName):M.createThisTypeNode(),r.type&&He.typeToTypeNode(r.type,a,co(c)|70221824|512)),P=O3(),L=a&&bn(a);return P.writeNode(4,x,L,g),g}}function g6(r){const a=[];let c=0;for(let u=0;uEs(g)?g:void 0);const d=u&&Es(u);if(u&&d){if(go(u)&&iS(u))return Bu(r);if(jc(d)&&!(Du(r)&4096)){const g=Pa(r).nameType;if(g&&g.flags&384){const x=ST(r,a);if(x!==void 0)return x}}return il(d)}if(u||(u=r.declarations[0]),u.parent&&u.parent.kind===259)return il(u.parent.name);switch(u.kind){case 230:case 217:case 218:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),u.kind===230?"(Anonymous class)":"(Anonymous function)"}}const c=ST(r,a);return c!==void 0?c:Bu(r)}function y0(r){if(r){const c=Ei(r);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(r.kind){case 344:case 352:case 346:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&Ja(r.parent.parent.parent));case 207:return y0(r.parent.parent);case 259:if(_o(r.name)&&!r.name.elements.length)return!1;case 266:case 262:case 263:case 264:case 261:case 265:case 270:if(t3(r))return!0;const c=_x(r);return!(Vv(r)&1)&&!(r.kind!==270&&c.kind!==311&&c.flags&16777216)?im(c):y0(c);case 171:case 170:case 176:case 177:case 173:case 172:if(Qd(r,24))return!1;case 175:case 179:case 178:case 180:case 168:case 267:case 183:case 184:case 186:case 182:case 187:case 188:case 191:case 192:case 195:case 201:return y0(r.parent);case 272:case 273:case 275:return!1;case 167:case 311:case 269:return!0;case 276:return!1;default:return!1}}}function wy(r,a){let c;r.parent&&r.parent.kind===276?c=hu(r,r.escapedText,2998271,void 0,r,!1):r.parent.kind===280&&(c=Ty(r.parent,2998271));let u,d;return c&&(d=new Set,d.add(oc(c)),g(c.declarations)),u;function g(x){Vt(x,P=>{const L=Yg(P)||P;if(a?Ei(P).isVisible=!0:(u=u||[],kr(u,L)),Z5(P)){const X=P.moduleReference,Z=Tm(X),Te=hu(P,Z.escapedText,901119,void 0,void 0,!1);Te&&d&&bu(d,oc(Te))&&g(Te.declarations)}})}}function Pm(r,a){const c=vv(r,a);if(c>=0){const{length:u}=wh;for(let d=c;d=p2;c--){if(Zb(wh[c],d0[c]))return-1;if(wh[c]===r&&d0[c]===a)return c}return-1}function Zb(r,a){switch(a){case 0:return!!Pa(r).type;case 5:return!!Ei(r).resolvedEnumType;case 2:return!!Pa(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 6:return!!r.resolvedTypeArguments;case 7:return!!r.baseTypesResolved;case 8:return!!Pa(r).writeType;case 9:return Ei(r).parameterInitializerContainsUndefined!==void 0}return D.assertNever(a)}function Oh(){return wh.pop(),d0.pop(),Eh.pop()}function _x(r){return Sn(ch(r),a=>{switch(a.kind){case 259:case 260:case 275:case 274:case 273:case 272:return!1;default:return!0}}).parent}function VO(r){const a=hl(vd(r));return a.typeParameters?kv(a,er(a.typeParameters,c=>it)):a}function Hu(r,a){const c=So(r,a);return c?An(c):void 0}function WO(r,a){var c;return Hu(r,a)||((c=F8(r,a))==null?void 0:c.type)||at}function Fc(r){return r&&(r.flags&1)!==0}function Ac(r){return r===Y||!!(r.flags&1&&r.aliasSymbol)}function D8(r,a){if(a!==0)return Kf(r,!1,a);const c=ei(r);return c&&Pa(c).type||Kf(r,!1,a)}function H(r,a,c){if(r=E_(r,L=>!(L.flags&98304)),r.flags&131072)return Ua;if(r.flags&1048576)return El(r,L=>H(L,a,c));let u=Oi(er(a,wv));const d=[],g=[];for(const L of Pc(r)){const X=OC(L,8576);!Zo(X,u)&&!(c0(L)&24)&&jV(L)?d.push(L):g.push(X)}if(k6(r)||a4(u)){if(g.length&&(u=Oi([u,...g])),u.flags&131072)return r;const L=ZGe();return L?j8(L,[r,u]):Y}const x=To();for(const L of d)x.set(L.escapedName,$ae(L,!1));const P=yu(c,x,tt,tt,bp(r));return P.objectFlags|=4194304,P}function be(r){return!!(r.flags&465829888)&&iu(vp(r)||at,32768)}function Ve(r){const a=Nv(r,be)?El(r,c=>c.flags&465829888?Dy(c):c):r;return T0(a,524288)}function Dt(r,a){const c=sr(r);return c?W2(c,a):a}function sr(r){const a=Fr(r);if(a&&iN(a)&&a.flowNode){const c=Si(r);if(c){const u=yt(vh.createStringLiteral(c),r),d=Dd(a)?a:vh.createParenthesizedExpression(a),g=yt(vh.createElementAccessExpression(d,u),r);return fc(u,g),fc(g,r),d!==a&&fc(d,g),g.flowNode=a.flowNode,g}}}function Fr(r){const a=r.parent.parent;switch(a.kind){case 207:case 302:return sr(a);case 208:return sr(r.parent);case 259:return a.initializer;case 225:return a.right}}function Si(r){const a=r.parent;return r.kind===207&&a.kind===205?aa(r.propertyName||r.name):r.kind===302||r.kind===303?aa(r.name):""+a.elements.indexOf(r)}function aa(r){const a=wv(r);return a.flags&384?""+a.value:void 0}function ba(r){const a=r.dotDotDotToken?64:0,c=D8(r.parent.parent,a);return c&&sa(r,c)}function sa(r,a){if(Fc(a))return a;const c=r.parent;$&&r.flags&16777216&&f7(r)?a=My(a):$&&c.parent.initializer&&!(Tp(b8e(c.parent.initializer))&65536)&&(a=T0(a,524288));let u;if(c.kind===205)if(r.dotDotDotToken){if(a=xg(a),a.flags&2||!IM(a))return qe(r,p.Rest_types_may_only_be_created_from_object_types),Y;const d=[];for(const g of c.elements)g.dotDotDotToken||d.push(g.propertyName||g.name);u=H(a,d,r.symbol)}else{const d=r.propertyName||r.name,g=wv(d),x=bd(a,g,32,d);u=Dt(r,x)}else{const d=Pv(65|(r.dotDotDotToken?0:128),a,Ne,c),g=c.elements.indexOf(r);if(r.dotDotDotToken){const x=El(a,P=>P.flags&58982400?Dy(P):P);u=$0(x,Yo)?El(x,P=>PC(P,g)):ep(d)}else if(U2(a)){const x=Sg(g),P=32|(VC(r)?16:0),L=B2(a,x,P,r.name)||Y;u=Dt(r,L)}else u=d}return r.initializer?Lf(A5(r))?$&&!(Tp(XA(r,0))&16777216)?Ve(u):u:Foe(r,Oi([Ve(u),XA(r,0)],2)):u}function ys(r){const a=ib(r);if(a)return Qi(a)}function gl(r){const a=kl(r,!0);return a.kind===106||a.kind===80&&q0(a)===Pe}function Ic(r){const a=kl(r,!0);return a.kind===208&&a.elements.length===0}function Oo(r,a=!1,c=!0){return $&&c?Dv(r,a):r}function Kf(r,a,c){if(Fa(r)&&r.parent.parent.kind===248){const x=a1(aoe(as(r.parent.parent.expression,c)));return x.flags&4456448?aSe(x):w}if(Fa(r)&&r.parent.parent.kind===249){const x=r.parent.parent;return eL(x)||it}if(_o(r.parent))return ba(r);const u=fo(r)&&!lh(r)||Vm(r)||_pe(r),d=a&&WH(r),g=A(r);if(u$(r))return g?Fc(g)||g===at?g:Y:K?at:it;if(g)return Oo(g,u,d);if((ve||jn(r))&&Fa(r)&&!_o(r.name)&&!(Vv(r)&1)&&!(r.flags&16777216)){if(!(b1(r)&2)&&(!r.initializer||gl(r.initializer)))return Wt;if(r.initializer&&Ic(r.initializer))return Rs}if(Cs(r)){const x=r.parent;if(x.kind===177&&O8(x)){const X=wu(ei(r.parent),176);if(X){const Z=i1(X),Te=hce(x);return Te&&r===Te?(D.assert(!Te.type),An(Z.thisParameter)):Oc(Z)}}const P=SGe(x,r);if(P)return P;const L=r.symbol.escapedName==="this"?J8e(x):U8e(r);if(L)return Oo(L,!1,d)}if(a7(r)&&r.initializer){if(jn(r)&&!Cs(r)){const P=N8(r,ei(r),HD(r));if(P)return P}const x=Foe(r,XA(r,c));return Oo(x,u,d)}if(fo(r)&&(ve||jn(r)))if(R_(r)){const x=Mn(r.parent.members,fu),P=x.length?Kb(r.symbol,x):Pp(r)&2?eW(r.symbol):void 0;return P&&Oo(P,!0,d)}else{const x=Hb(r.parent),P=x?e4(r.symbol,x):Pp(r)&2?eW(r.symbol):void 0;return P&&Oo(P,!0,d)}if(E1(r))return pe;if(_o(r.name))return A2(r.name,!1,!0)}function W0(r){if(r.valueDeclaration&&Un(r.valueDeclaration)){const a=Pa(r);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!yg(r)&&yn(r.declarations,c=>Un(c)&&SW(c)&&(c.left.kind!==211||a0(c.left.argumentExpression))&&!uA(void 0,c,r,c))),a.isConstructorDeclaredProperty}return!1}function Yb(r){const a=r.valueDeclaration;return a&&fo(a)&&!Lf(a)&&!a.initializer&&(ve||jn(a))}function yg(r){if(r.declarations)for(const a of r.declarations){const c=_d(a,!1,!1);if(c&&(c.kind===175||c1(c)))return c}}function Qb(r){const a=bn(r.declarations[0]),c=Ba(r.escapedName),u=r.declarations.every(g=>jn(g)&&$l(g)&&ny(g.expression)),d=u?M.createPropertyAccessExpression(M.createPropertyAccessExpression(M.createIdentifier("module"),M.createIdentifier("exports")),c):M.createPropertyAccessExpression(M.createIdentifier("exports"),c);return u&&fc(d.expression.expression,d.expression),fc(d.expression,d),fc(d,a),d.flowNode=a.endFlowNode,W2(d,Wt,Ne)}function Kb(r,a){const c=Ga(r.escapedName,"__#")?M.createPrivateIdentifier(r.escapedName.split("@")[1]):Ba(r.escapedName);for(const u of a){const d=M.createPropertyAccessExpression(M.createThis(),c);fc(d.expression,d),fc(d,u),d.flowNode=u.returnFlowNode;const g=kT(d,r);if(ve&&(g===Wt||g===Rs)&&qe(r.valueDeclaration,p.Member_0_implicitly_has_an_1_type,ze(r),Rt(g)),!$0(g,DW))return nD(g)}}function e4(r,a){const c=Ga(r.escapedName,"__#")?M.createPrivateIdentifier(r.escapedName.split("@")[1]):Ba(r.escapedName),u=M.createPropertyAccessExpression(M.createThis(),c);fc(u.expression,u),fc(u,a),u.flowNode=a.returnFlowNode;const d=kT(u,r);return ve&&(d===Wt||d===Rs)&&qe(r.valueDeclaration,p.Member_0_implicitly_has_an_1_type,ze(r),Rt(d)),$0(d,DW)?void 0:nD(d)}function kT(r,a){const c=(a==null?void 0:a.valueDeclaration)&&(!Yb(a)||Pp(a.valueDeclaration)&2)&&eW(a)||Ne;return W2(r,Wt,c)}function CT(r,a){const c=nS(r.valueDeclaration);if(c){const P=jn(c)?X6(c):void 0;return P&&P.typeExpression?Qi(P.typeExpression):r.valueDeclaration&&N8(r.valueDeclaration,r,c)||N6(n_(c))}let u,d=!1,g=!1;if(W0(r)&&(u=e4(r,yg(r))),!u){let P;if(r.declarations){let L;for(const X of r.declarations){const Z=Un(X)||go(X)?X:$l(X)?Un(X.parent)?X.parent:X:void 0;if(!Z)continue;const Te=$l(Z)?YD(Z):Au(Z);(Te===4||Un(Z)&&SW(Z,Te))&&(w2(Z)?d=!0:g=!0),go(Z)||(L=uA(L,Z,r,X)),L||(P||(P=[])).push(Un(Z)||go(Z)?_A(r,a,Z,Te):Ft)}u=L}if(!u){if(!Nr(P))return Y;let L=d&&r.declarations?fA(P,r.declarations):void 0;if(g){const Z=eW(r);Z&&((L||(L=[])).push(Z),d=!0)}const X=bt(L,Z=>!!(Z.flags&-98305))?L:P;u=Oi(X)}}const x=lm(Oo(u,!1,g&&!d));return r.valueDeclaration&&E_(x,P=>!!(P.flags&-98305))===Ft?(u4(r.valueDeclaration,it),it):x}function N8(r,a,c){var u,d;if(!jn(r)||!c||!Dc(c)||c.properties.length)return;const g=To();for(;Un(r)||mi(r);){const L=Im(r);(u=L==null?void 0:L.exports)!=null&&u.size&&I1(g,L.exports),r=Un(r)?r.parent:r.parent.parent}const x=Im(r);(d=x==null?void 0:x.exports)!=null&&d.size&&I1(g,x.exports);const P=yu(a,g,tt,tt,tt);return P.objectFlags|=4096,P}function uA(r,a,c,u){var d;const g=Lf(a.parent);if(g){const x=lm(Qi(g));if(r)!Ac(r)&&!Ac(x)&&!Iy(r,x)&&Vke(void 0,r,u,x);else return x}if((d=c.parent)!=null&&d.valueDeclaration){const x=Lf(c.parent.valueDeclaration);if(x){const P=So(Qi(x),c.escapedName);if(P)return r4(P)}}return r}function _A(r,a,c,u){if(go(c)){if(a)return An(a);const x=n_(c.arguments[2]),P=Hu(x,"value");if(P)return P;const L=Hu(x,"get");if(L){const Z=MT(L);if(Z)return Oc(Z)}const X=Hu(x,"set");if(X){const Z=MT(X);if(Z)return Eoe(Z)}return it}if(v0(c.left,c.right))return it;const d=u===1&&(mi(c.left)||Ll(c.left))&&(ny(c.left.expression)||Be(c.left.expression)&&l7(c.left.expression)),g=a?An(a):d?jp(n_(c.right)):N6(n_(c.right));if(g.flags&524288&&u===2&&r.escapedName==="export="){const x=bg(g),P=To();RL(x.members,P);const L=P.size;a&&!a.exports&&(a.exports=To()),(a||r).exports.forEach((Z,Te)=>{var Ee;const De=P.get(Te);if(De&&De!==Z&&!(Z.flags&2097152))if(Z.flags&111551&&De.flags&111551){if(Z.valueDeclaration&&De.valueDeclaration&&bn(Z.valueDeclaration)!==bn(De.valueDeclaration)){const jt=Ba(Z.escapedName),Jr=((Ee=di(De.valueDeclaration,sp))==null?void 0:Ee.name)||De.valueDeclaration;ic(qe(Z.valueDeclaration,p.Duplicate_identifier_0,jt),ai(Jr,p._0_was_also_declared_here,jt)),ic(qe(Jr,p.Duplicate_identifier_0,jt),ai(Z.valueDeclaration,p._0_was_also_declared_here,jt))}const ut=vc(Z.flags|De.flags,Te);ut.links.type=Oi([An(Z),An(De)]),ut.valueDeclaration=De.valueDeclaration,ut.declarations=Nn(De.declarations,Z.declarations),P.set(Te,ut)}else P.set(Te,h2(Z,De));else P.set(Te,Z)});const X=yu(L!==P.size?void 0:x.symbol,P,x.callSignatures,x.constructSignatures,x.indexInfos);if(L===P.size&&(g.aliasSymbol&&(X.aliasSymbol=g.aliasSymbol,X.aliasTypeArguments=g.aliasTypeArguments),Mi(g)&4)){X.aliasSymbol=g.symbol;const Z=yl(g);X.aliasTypeArguments=Nr(Z)?Z:void 0}return X.objectFlags|=Mi(g)&4096,X.symbol&&X.symbol.flags&32&&g===Bp(X.symbol)&&(X.objectFlags|=16777216),X}return rW(g)?(u4(c,da),da):g}function v0(r,a){return mi(r)&&r.expression.kind===110&&Z9(a,c=>Df(r,c))}function w2(r){const a=_d(r,!1,!1);return a.kind===175||a.kind===261||a.kind===217&&!QD(a.parent)}function fA(r,a){return D.assert(r.length===a.length),r.filter((c,u)=>{const d=a[u],g=Un(d)?d:Un(d.parent)?d.parent:void 0;return g&&w2(g)})}function Vs(r,a,c){if(r.initializer){const u=_o(r.name)?A2(r.name,!0,!1):at;return Oo(Foe(r,XA(r,0,u)))}return _o(r.name)?A2(r.name,a,c):(c&&!v(r)&&u4(r,it),a?dt:it)}function Gu(r,a,c){const u=To();let d,g=131200;Vt(r.elements,P=>{const L=P.propertyName||P.name;if(P.dotDotDotToken){d=j1(w,it,!1);return}const X=wv(L);if(!Mh(X)){g|=512;return}const Z=r1(X),Te=4|(P.initializer?16777216:0),Ee=vc(Te,Z);Ee.links.type=Vs(P,a,c),Ee.links.bindingElement=P,u.set(Ee.escapedName,Ee)});const x=yu(void 0,u,tt,tt,d?[d]:tt);return x.objectFlags|=g,a&&(x.pattern=r,x.objectFlags|=131072),x}function E2(r,a,c){const u=r.elements,d=io(u),g=d&&d.kind===207&&d.dotDotDotToken?d:void 0;if(u.length===0||u.length===1&&g)return ce>=2?UTe(it):da;const x=er(u,Z=>sf(Z)?it:Vs(Z,a,c)),P=xo(u,Z=>!(Z===g||sf(Z)||VC(Z)),u.length-1)+1,L=er(u,(Z,Te)=>Z===g?4:Te>=P?2:1);let X=Tg(x,L);return a&&(X=kTe(X),X.pattern=r,X.objectFlags|=131072),X}function A2(r,a=!1,c=!1){return r.kind===205?Gu(r,a,c):E2(r,a,c)}function y6(r,a){return pA(Kf(r,!0,0),r,a)}function D2(r){const a=Im(r),c=jGe(!1);return c&&a&&a===c}function pA(r,a,c){return r?(r.flags&4096&&D2(a.parent)&&(r=Hae(a)),c&&lW(a,r),r.flags&8192&&(Cc(a)||!a.type)&&r.symbol!==ei(a)&&(r=ar),lm(r)):(r=Cs(a)&&a.dotDotDotToken?da:it,c&&(v(a)||u4(a,r)),r)}function v(r){const a=ch(r),c=a.kind===168?a.parent:a;return GM(c)}function A(r){const a=Lf(r);if(a)return Qi(a)}function F(r){let a=r.valueDeclaration;return a?(Cc(a)&&(a=A5(a)),Cs(a)?GV(a.parent):!1):!1}function se(r){const a=Pa(r);if(!a.type){const c=Je(r);return!a.type&&!F(r)&&(a.type=c),c}return a.type}function Je(r){if(r.flags&4194304)return VO(r);if(r===xt)return it;if(r.flags&134217728&&r.valueDeclaration){const u=ei(bn(r.valueDeclaration)),d=vc(u.flags,"exports");d.declarations=u.declarations?u.declarations.slice():[],d.parent=r,d.links.target=u,u.valueDeclaration&&(d.valueDeclaration=u.valueDeclaration),u.members&&(d.members=new Map(u.members)),u.exports&&(d.exports=new Map(u.exports));const g=To();return g.set("exports",d),yu(r,g,tt,tt,tt)}D.assertIsDefined(r.valueDeclaration);const a=r.valueDeclaration;if(Ja(a)&&O0(a))return a.statements.length?lm(N6(as(a.statements[0].expression))):Ua;if(w4(a))return Gm(r);if(!Pm(r,0))return r.flags&512&&!(r.flags&67108864)?t4(r):wC(r);let c;if(a.kind===276)c=pA(A(a)||n_(a.expression),a);else if(Un(a)||jn(a)&&(go(a)||(mi(a)||fF(a))&&Un(a.parent)))c=CT(r);else if(mi(a)||Ll(a)||Be(a)||Wc(a)||Um(a)||cf(a)||B_(a)||g_(a)&&!tg(a)||ly(a)||Ja(a)){if(r.flags&9136)return t4(r);c=Un(a.parent)?CT(r):A(a)||it}else if(Y_(a))c=A(a)||mke(a);else if(E1(a))c=A(a)||e5e(a);else if(_0(a))c=A(a)||XC(a.name,0);else if(tg(a))c=A(a)||gke(a,0);else if(Cs(a)||fo(a)||Vm(a)||Fa(a)||Cc(a)||kL(a))c=y6(a,!0);else if(j4(a))c=t4(r);else if(C3(a))c=qO(r);else return D.fail("Unhandled declaration kind! "+D.formatSyntaxKind(a.kind)+" for "+D.formatSymbol(r));return Oh()?c:r.flags&512&&!(r.flags&67108864)?t4(r):wC(r)}function cr(r){if(r)switch(r.kind){case 176:return Og(r);case 177:return Gue(r);case 171:return D.assert(lh(r)),Lf(r)}}function Pn(r){const a=cr(r);return a&&Qi(a)}function Ya(r){const a=hce(r);return a&&a.symbol}function Zc(r){return T6(i1(r))}function Gm(r){const a=Pa(r);if(!a.type){if(!Pm(r,0))return Y;const c=wu(r,176),u=wu(r,177),d=di(wu(r,171),ym);let g=c&&jn(c)&&ys(c)||Pn(c)||Pn(u)||Pn(d)||c&&c.body&&JW(c)||d&&d.initializer&&y6(d,!0);g||(u&&!GM(u)?vy(ve,u,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ze(r)):c&&!GM(c)?vy(ve,c,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ze(r)):d&&!GM(d)&&vy(ve,d,p.Member_0_implicitly_has_an_1_type,ze(r),"any"),g=it),Oh()||(cr(c)?qe(c,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ze(r)):cr(u)||cr(d)?qe(u,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ze(r)):c&&ve&&qe(c,p._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,ze(r)),g=it),a.type=g}return a.type}function bv(r){var c;const a=Pa(r);if(!a.writeType){if(!Pm(r,8))return Y;const u=(c=wu(r,177))!=null?c:di(wu(r,171),ym);let d=Pn(u);Oh()||(cr(u)&&qe(u,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ze(r)),d=it),a.writeType=d||Gm(r)}return a.writeType}function xv(r){const a=ni(Bp(r));return a.flags&8650752?a:a.flags&2097152?on(a.types,c=>!!(c.flags&8650752)):void 0}function t4(r){let a=Pa(r);const c=a;if(!a.type){const u=r.valueDeclaration&&BW(r.valueDeclaration,!1);if(u){const d=Toe(r,u);d&&(r=d,a=d.links)}c.type=a.type=$ie(r)}return a.type}function $ie(r){const a=r.valueDeclaration;if(r.flags&1536&&zw(r))return it;if(a&&(a.kind===225||$l(a)&&a.parent.kind===225))return CT(r);if(r.flags&512&&a&&Ja(a)&&a.commonJsModuleIndicator){const u=om(r);if(u!==r){if(!Pm(r,0))return Y;const d=Ec(r.exports.get("export=")),g=CT(d,d===u?void 0:u);return Oh()?g:wC(r)}}const c=Af(16,r);if(r.flags&32){const u=xv(r);return u?Xo([c,u]):c}else return $&&r.flags&16777216?Dv(c,!0):c}function qO(r){const a=Pa(r);return a.type||(a.type=W7e(r))}function Hie(r){const a=Pa(r);if(!a.type){const c=Rf(r),u=r.declarations&&U0(sm(r),!0),d=bo(u==null?void 0:u.declarations,g=>Wu(g)?A(g):void 0);a.type=u!=null&&u.declarations&&tq(u.declarations)&&r.declarations.length?Qb(u):tq(r.declarations)?Wt:d||(rd(c)&111551?An(c):Y)}return a.type}function wT(r){const a=Pa(r);return a.type||(a.type=$a(An(a.target),a.mapper))}function Gie(r){const a=Pa(r);return a.writeType||(a.writeType=$a(dA(a.target),a.mapper))}function wC(r){const a=r.valueDeclaration;return Lf(a)?(qe(r.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ze(r)),Y):(ve&&(a.kind!==168||a.initializer)&&qe(r.valueDeclaration,p._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ze(r)),it)}function kV(r){const a=Pa(r);return a.type||(D.assertIsDefined(a.deferralParent),D.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?Oi(a.deferralConstituents):Xo(a.deferralConstituents)),a.type}function $O(r){const a=Pa(r);return!a.writeType&&a.deferralWriteConstituents&&(D.assertIsDefined(a.deferralParent),D.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?Oi(a.deferralWriteConstituents):Xo(a.deferralWriteConstituents)),a.writeType}function dA(r){const a=Du(r);return r.flags&4?a&2?a&65536?$O(r)||kV(r):r.links.writeType||r.links.type:An(r):r.flags&98304?a&1?Gie(r):bv(r):An(r)}function An(r){const a=Du(r);return a&65536?kV(r):a&1?wT(r):a&262144?aGe(r):a&8192?gYe(r):r.flags&7?se(r):r.flags&9136?t4(r):r.flags&8?qO(r):r.flags&98304?Gm(r):r.flags&2097152?Hie(r):Y}function r4(r){return yx(An(r),!!(r.flags&16777216))}function n4(r,a){return r!==void 0&&a!==void 0&&(Mi(r)&4)!==0&&r.target===a}function I8(r){return Mi(r)&4?r.target:r}function P8(r,a){return c(r);function c(u){if(Mi(u)&7){const d=I8(u);return d===a||bt(vs(d),c)}else if(u.flags&2097152)return bt(u.types,c);return!1}}function EC(r,a){for(const c of a)r=ct(r,fx(ei(c)));return r}function AC(r,a){for(;;){if(r=r.parent,r&&Un(r)){const c=Au(r);if(c===6||c===3){const u=ei(r.left);u&&u.parent&&!Sn(u.parent.valueDeclaration,d=>r===d)&&(r=u.parent.valueDeclaration)}}if(!r)return;switch(r.kind){case 262:case 230:case 263:case 178:case 179:case 172:case 183:case 184:case 323:case 261:case 173:case 217:case 218:case 264:case 351:case 352:case 346:case 344:case 199:case 193:{const u=AC(r,a);if(r.kind===199)return Ht(u,fx(ei(r.typeParameter)));if(r.kind===193)return Nn(u,mSe(r));const d=EC(u,ab(r)),g=a&&(r.kind===262||r.kind===230||r.kind===263||c1(r))&&Bp(ei(r)).thisType;return g?Ht(d,g):d}case 347:const c=sN(r);c&&(r=c.valueDeclaration);break;case 326:{const u=AC(r,a);return r.tags?EC(u,lo(r.tags,d=>Ug(d)?d.typeParameters:void 0)):u}}}}function CV(r){var a;const c=r.flags&32||r.flags&16?r.valueDeclaration:(a=r.declarations)==null?void 0:a.find(u=>{if(u.kind===263)return!0;if(u.kind!==259)return!1;const d=u.initializer;return!!d&&(d.kind===217||d.kind===218)});return D.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),AC(c)}function N2(r){if(!r.declarations)return;let a;for(const c of r.declarations)(c.kind===263||c.kind===262||c.kind===230||c1(c)||nN(c))&&(a=EC(a,ab(c)));return a}function wV(r){return Nn(CV(r),N2(r))}function v6(r){const a=ro(r,1);if(a.length===1){const c=a[0];if(!c.typeParameters&&c.parameters.length===1&&up(c)){const u=zM(c.parameters[0]);return Fc(u)||use(u)===it}}return!1}function HO(r){if(ro(r,1).length>0)return!0;if(r.flags&8650752){const a=vp(r);return!!a&&v6(a)}return!1}function I2(r){const a=Zy(r.symbol);return a&&T1(a)}function en(r,a,c){const u=Nr(a),d=jn(c);return Mn(ro(r,1),g=>(d||u>=B1(g.typeParameters))&&u<=Nr(g.typeParameters))}function ki(r,a,c){const u=en(r,a,c),d=er(a,Qi);return ll(u,g=>bt(g.typeParameters)?xA(g,d,jn(c)):g)}function ni(r){if(!r.resolvedBaseConstructorType){const a=Zy(r.symbol),c=a&&T1(a),u=I2(r);if(!u)return r.resolvedBaseConstructorType=Ne;if(!Pm(r,1))return Y;const d=as(u.expression);if(c&&u!==c&&(D.assert(!c.typeArguments),as(c.expression)),d.flags&2621440&&bg(d),!Oh())return qe(r.symbol.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ze(r.symbol)),r.resolvedBaseConstructorType=Y;if(!(d.flags&1)&&d!==Jn&&!HO(d)){const g=qe(u.expression,p.Type_0_is_not_a_constructor_function_type,Rt(d));if(d.flags&262144){const x=IC(d);let P=at;if(x){const L=ro(x,1);L[0]&&(P=Oc(L[0]))}d.symbol.declarations&&ic(g,ai(d.symbol.declarations[0],p.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ze(d.symbol),Rt(P)))}return r.resolvedBaseConstructorType=Y}r.resolvedBaseConstructorType=d}return r.resolvedBaseConstructorType}function ma(r){let a=tt;if(r.symbol.declarations)for(const c of r.symbol.declarations){const u=nk(c);if(u)for(const d of u){const g=Qi(d);Ac(g)||(a===tt?a=[g]:a.push(g))}}return a}function xa(r,a){qe(r,p.Type_0_recursively_references_itself_as_a_base_type,Rt(a,void 0,2))}function vs(r){if(!r.baseTypesResolved){if(Pm(r,7)&&(r.objectFlags&8?r.resolvedBaseTypes=[sl(r)]:r.symbol.flags&96?(r.symbol.flags&32&&hp(r),r.symbol.flags&64&&t1(r)):D.fail("type must be class or interface"),!Oh()&&r.symbol.declarations))for(const a of r.symbol.declarations)(a.kind===262||a.kind===263)&&xa(a,r);r.baseTypesResolved=!0}return r.resolvedBaseTypes}function sl(r){const a=ll(r.typeParameters,(c,u)=>r.elementFlags[u]&8?bd(c,ge):c);return ep(Oi(a||tt),r.readonly)}function hp(r){r.resolvedBaseTypes=YF;const a=ad(ni(r));if(!(a.flags&2621441))return r.resolvedBaseTypes=tt;const c=I2(r);let u;const d=a.symbol?hl(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Ey(d))u=CTe(c,a.symbol);else if(a.flags&1)u=a;else{const x=ki(a,c.typeArguments,c);if(!x.length)return qe(c.expression,p.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=tt;u=Oc(x[0])}if(Ac(u))return r.resolvedBaseTypes=tt;const g=xg(u);if(!L1(g)){const x=uae(void 0,u),P=Ps(x,p.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Rt(g));return yc.add(Wy(bn(c.expression),c.expression,P)),r.resolvedBaseTypes=tt}return r===g||P8(g,r)?(qe(r.symbol.valueDeclaration,p.Type_0_recursively_references_itself_as_a_base_type,Rt(r,void 0,2)),r.resolvedBaseTypes=tt):(r.resolvedBaseTypes===YF&&(r.members=void 0),r.resolvedBaseTypes=[g])}function Ey(r){const a=r.outerTypeParameters;if(a){const c=a.length-1,u=yl(r);return a[c].symbol!==u[c].symbol}return!0}function L1(r){if(r.flags&262144){const a=vp(r);if(a)return L1(a)}return!!(r.flags&67633153&&!Om(r)||r.flags&2097152&&yn(r.types,L1))}function t1(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||tt,r.symbol.declarations){for(const a of r.symbol.declarations)if(a.kind===263&&Xw(a))for(const c of Xw(a)){const u=xg(Qi(c));Ac(u)||(L1(u)?r!==u&&!P8(u,r)?r.resolvedBaseTypes===tt?r.resolvedBaseTypes=[u]:r.resolvedBaseTypes.push(u):xa(a,r):qe(c,p.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function F1(r){if(!r.declarations)return!0;for(const a of r.declarations)if(a.kind===263){if(a.flags&128)return!1;const c=Xw(a);if(c){for(const u of c)if(ju(u.expression)){const d=ou(u.expression,788968,!0);if(!d||!(d.flags&64)||Bp(d).thisType)return!1}}}return!0}function Bp(r){let a=Pa(r);const c=a;if(!a.declaredType){const u=r.flags&32?1:2,d=Toe(r,r.valueDeclaration&&det(r.valueDeclaration));d&&(r=d,a=d.links);const g=c.declaredType=a.declaredType=Af(u,r),x=CV(r),P=N2(r);(x||P||u===1||!F1(r))&&(g.objectFlags|=4,g.typeParameters=Nn(x,P),g.outerTypeParameters=x,g.localTypeParameters=P,g.instantiations=new Map,g.instantiations.set(x0(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=h0(r),g.thisType.isThisType=!0,g.thisType.constraint=g)}return a.declaredType}function DC(r){var a;const c=Pa(r);if(!c.declaredType){if(!Pm(r,2))return Y;const u=D.checkDefined((a=r.declarations)==null?void 0:a.find(nN),"Type alias symbol with no valid declaration found"),d=M0(u)?u.typeExpression:u.type;let g=d?Qi(d):Y;if(Oh()){const x=N2(r);x&&(c.typeParameters=x,c.instantiations=new Map,c.instantiations.set(x0(x),g))}else g=Y,u.kind===346?qe(u.typeExpression.type,p.Type_alias_0_circularly_references_itself,ze(r)):qe(sp(u)&&u.name||u,p.Type_alias_0_circularly_references_itself,ze(r));c.declaredType=g}return c.declaredType}function i4(r){return r.flags&1056&&r.symbol.flags&8?hl(vd(r.symbol)):r}function EV(r){const a=Pa(r);if(!a.declaredType){const c=[];if(r.declarations){for(const d of r.declarations)if(d.kind===265){for(const g of d.members)if(O8(g)){const x=ei(g),P=oq(g),L=V8(P!==void 0?YXe(P,oc(r),x):V7e(x));Pa(x).declaredType=L,c.push(jp(L))}}}const u=c.length?Oi(c,1,r,void 0):V7e(r);u.flags&1048576&&(u.flags|=1024,u.symbol=r),a.declaredType=u}return a.declaredType}function V7e(r){const a=ky(32,r),c=ky(32,r);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function W7e(r){const a=Pa(r);if(!a.declaredType){const c=EV(vd(r));a.declaredType||(a.declaredType=c)}return a.declaredType}function fx(r){const a=Pa(r);return a.declaredType||(a.declaredType=h0(r))}function RHe(r){const a=Pa(r);return a.declaredType||(a.declaredType=hl(Rf(r)))}function hl(r){return q7e(r)||Y}function q7e(r){if(r.flags&96)return Bp(r);if(r.flags&524288)return DC(r);if(r.flags&262144)return fx(r);if(r.flags&384)return EV(r);if(r.flags&8)return W7e(r);if(r.flags&2097152)return RHe(r)}function GO(r){switch(r.kind){case 133:case 159:case 154:case 150:case 162:case 136:case 155:case 151:case 116:case 157:case 146:case 200:return!0;case 187:return GO(r.elementType);case 182:return!r.typeArguments||r.typeArguments.every(GO)}return!1}function BHe(r){const a=N5(r);return!a||GO(a)}function $7e(r){const a=Lf(r);return a?GO(a):!lb(r)}function jHe(r){const a=Og(r),c=ab(r);return(r.kind===175||!!a&&GO(a))&&r.parameters.every($7e)&&c.every(BHe)}function zHe(r){if(r.declarations&&r.declarations.length===1){const a=r.declarations[0];if(a)switch(a.kind){case 171:case 170:return $7e(a);case 173:case 172:case 175:case 176:case 177:return jHe(a)}}return!1}function H7e(r,a,c){const u=To();for(const d of r)u.set(d.escapedName,c&&zHe(d)?d:Xae(d,a));return u}function G7e(r,a){for(const c of a){if(X7e(c))continue;const u=r.get(c.escapedName);(!u||u.valueDeclaration&&Un(u.valueDeclaration)&&!W0(u)&&!mue(u.valueDeclaration))&&(r.set(c.escapedName,c),r.set(c.escapedName,c))}}function X7e(r){return!!r.valueDeclaration&&qp(r.valueDeclaration)&&so(r.valueDeclaration)}function Xie(r){if(!r.declaredProperties){const a=r.symbol,c=P2(a);r.declaredProperties=p6(c),r.declaredCallSignatures=tt,r.declaredConstructSignatures=tt,r.declaredIndexInfos=tt,r.declaredCallSignatures=x6(c.get("__call")),r.declaredConstructSignatures=x6(c.get("__new")),r.declaredIndexInfos=xTe(a)}return r}function Mh(r){return!!(r.flags&8576)}function Zie(r){if(!jc(r)&&!Ll(r))return!1;const a=jc(r)?r.expression:r.argumentExpression;return ju(a)&&Mh(jc(r)?Rh(r):n_(a))}function mA(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function XO(r){const a=Es(r);return!!a&&Zie(a)}function O8(r){return!Hv(r)||XO(r)}function JHe(r){return bF(r)&&!Zie(r)}function r1(r){return r.flags&8192?r.escapedName:r.flags&384?Kl(""+r.value):D.fail()}function UHe(r,a,c){D.assert(!!(Du(r)&4096),"Expected a late-bound symbol."),r.flags|=c,Pa(a.symbol).lateSymbol=r,r.declarations?a.symbol.isReplaceableByMethod||r.declarations.push(a):r.declarations=[a],c&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==a.kind)&&(r.valueDeclaration=a)}function Z7e(r,a,c,u){D.assert(!!u.symbol,"The member is expected to have a symbol.");const d=Ei(u);if(!d.resolvedSymbol){d.resolvedSymbol=u.symbol;const g=Un(u)?u.left:u.name,x=Ll(g)?n_(g.argumentExpression):Rh(g);if(Mh(x)){const P=r1(x),L=u.symbol.flags;let X=c.get(P);X||c.set(P,X=vc(0,P,4096));const Z=a&&a.get(P);if(X.flags&gp(L)||Z){const Te=Z?Nn(Z.declarations,X.declarations):X.declarations,Ee=!(x.flags&8192)&&Ba(P)||il(g);Vt(Te,De=>qe(Es(De)||De,p.Property_0_was_also_declared_here,Ee)),qe(g||u,p.Duplicate_property_0,Ee),X=vc(0,P,4096)}return X.links.nameType=x,UHe(X,u,L),X.parent?D.assert(X.parent===r,"Existing symbol parent should match new one"):X.parent=r,d.resolvedSymbol=X}}return d.resolvedSymbol}function Yie(r,a){const c=Pa(r);if(!c[a]){const u=a==="resolvedExports",d=u?r.flags&1536?qb(r).exports:r.exports:r.members;c[a]=d||V;const g=To();for(const P of r.declarations||tt){const L=oue(P);if(L)for(const X of L)u===R_(X)&&XO(X)&&Z7e(r,d,g,X)}const x=r.assignmentDeclarationMembers;if(x){const P=zt(x.values());for(const L of P){const X=Au(L),Z=X===3||Un(L)&&SW(L,X)||X===9||X===6;u===!Z&&XO(L)&&Z7e(r,d,g,L)}}c[a]=T8(d,g)||V}return c[a]}function P2(r){return r.flags&6256?Yie(r,"resolvedMembers"):r.members||V}function AV(r){if(r.flags&106500&&r.escapedName==="__computed"){const a=Pa(r);if(!a.lateSymbol&&bt(r.declarations,XO)){const c=Ec(r.parent);bt(r.declarations,R_)?Nm(c):P2(c)}return a.lateSymbol||(a.lateSymbol=r)}return r}function cm(r,a,c){if(Mi(r)&4){const u=r.target,d=yl(r);return Nr(u.typeParameters)===Nr(d)?kv(u,Nn(d,[a||u.thisType])):r}else if(r.flags&2097152){const u=ll(r.types,d=>cm(d,a,c));return u!==r.types?Xo(u):r}return c?ad(r):r}function Y7e(r,a,c,u){let d,g,x,P,L;Sa(c,u,0,c.length)?(g=a.symbol?P2(a.symbol):To(a.declaredProperties),x=a.declaredCallSignatures,P=a.declaredConstructSignatures,L=a.declaredIndexInfos):(d=xd(c,u),g=H7e(a.declaredProperties,d,c.length===1),x=VV(a.declaredCallSignatures,d),P=VV(a.declaredConstructSignatures,d),L=xSe(a.declaredIndexInfos,d));const X=vs(a);if(X.length){a.symbol&&g===P2(a.symbol)&&(g=To(a.declaredProperties)),Qf(r,g,x,P,L);const Z=io(u);for(const Te of X){const Ee=Z?cm($a(Te,d),Z):Te;G7e(g,Pc(Ee)),x=Nn(x,ro(Ee,0)),P=Nn(P,ro(Ee,1));const De=Ee!==it?bp(Ee):[j1(w,it,!1)];L=Nn(L,Mn(De,ut=>!_ae(L,ut.keyType)))}}Qf(r,g,x,P,L)}function VHe(r){Y7e(r,Xie(r),tt,tt)}function WHe(r){const a=Xie(r.target),c=Nn(a.typeParameters,[a.thisType]),u=yl(r),d=u.length===c.length?u:Nn(u,[r]);Y7e(r,a,c,d)}function Lh(r,a,c,u,d,g,x,P){const L=new h(yr,P);return L.declaration=r,L.typeParameters=a,L.parameters=u,L.thisParameter=c,L.resolvedReturnType=d,L.resolvedTypePredicate=g,L.minArgumentCount=x,L.resolvedMinArgumentCount=void 0,L.target=void 0,L.mapper=void 0,L.compositeSignatures=void 0,L.compositeKind=void 0,L}function gA(r){const a=Lh(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&39);return a.target=r.target,a.mapper=r.mapper,a.compositeSignatures=r.compositeSignatures,a.compositeKind=r.compositeKind,a}function Q7e(r,a){const c=gA(r);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function qHe(r,a){if((r.flags&24)===a)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});const c=a===8?"inner":"outer";return r.optionalCallSignatureCache[c]||(r.optionalCallSignatureCache[c]=$He(r,a))}function $He(r,a){D.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const c=gA(r);return c.flags|=a,c}function K7e(r,a){if(up(r)){const d=r.parameters.length-1,g=An(r.parameters[d]);if(Yo(g))return[c(g,d)];if(!a&&g.flags&1048576&&yn(g.types,Yo))return er(g.types,x=>c(x,d))}return[r.parameters];function c(d,g){const x=F2(d),P=u(d),L=er(x,(X,Z)=>{const Te=P&&P[Z]?P[Z]:HC(r,g+Z,d),Ee=d.target.elementFlags[Z],De=Ee&12?32768:Ee&2?16384:0,ut=vc(1,Te,De);return ut.links.type=Ee&4?ep(X):X,ut});return Nn(r.parameters.slice(0,g),L)}function u(d){const g=new Map;return er(d.target.labeledElementDeclarations,x=>{const P=zW(x),L=g.get(P);return L===void 0?(g.set(P,1),P):(g.set(P,L+1),`${P}_${L}`)})}}function HHe(r){const a=ni(r),c=ro(a,1),u=Zy(r.symbol),d=!!u&&Pi(u,256);if(c.length===0)return[Lh(void 0,r.localTypeParameters,void 0,tt,r,void 0,0,d?4:0)];const g=I2(r),x=jn(g),P=iM(g),L=Nr(P),X=[];for(const Z of c){const Te=B1(Z.typeParameters),Ee=Nr(Z.typeParameters);if(x||L>=Te&&L<=Ee){const De=Ee?DV(Z,M2(P,Z.typeParameters,Te,x)):gA(Z);De.typeParameters=r.localTypeParameters,De.resolvedReturnType=r,De.flags=d?De.flags|4:De.flags&-5,X.push(De)}}return X}function Qie(r,a,c,u,d){for(const g of r)if(yM(g,a,c,u,d,c?gZe:DA))return g}function GHe(r,a,c){if(a.typeParameters){if(c>0)return;for(let d=1;d1&&(c=c===void 0?u:-1);for(const d of r[u])if(!a||!Qie(a,d,!1,!1,!0)){const g=GHe(r,d,u);if(g){let x=d;if(g.length>1){let P=d.thisParameter;const L=Vt(g,X=>X.thisParameter);if(L){const X=Xo(Mr(g,Z=>Z.thisParameter&&An(Z.thisParameter)));P=vx(L,X)}x=Q7e(d,g),x.thisParameter=P}(a||(a=[])).push(x)}}}if(!Nr(a)&&c!==-1){const u=r[c!==void 0?c:0];let d=u.slice();for(const g of r)if(g!==u){const x=g[0];if(D.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),d=x.typeParameters&&bt(d,P=>!!P.typeParameters&&!eTe(x.typeParameters,P.typeParameters))?void 0:er(d,P=>YHe(P,x)),!d)break}a=d}return a||tt}function eTe(r,a){if(Nr(r)!==Nr(a))return!1;if(!r||!a)return!0;const c=xd(a,r);for(let u=0;u=d?r:a,x=g===r?a:r,P=g===r?u:d,L=J1(r)||J1(a),X=L&&!J1(g),Z=new Array(P+(X?1:0));for(let Te=0;Te=l1(g)&&Te>=l1(x),Hr=Te>=u?void 0:HC(r,Te),vn=Te>=d?void 0:HC(a,Te),br=Hr===vn?Hr:Hr?vn?void 0:Hr:vn,Tr=vc(1|(Jr&&!jt?16777216:0),br||`arg${Te}`);Tr.links.type=jt?ep(ut):ut,Z[Te]=Tr}if(X){const Te=vc(1,"args");Te.links.type=ep(Cg(x,P)),x===a&&(Te.links.type=$a(Te.links.type,c)),Z[P]=Te}return Z}function YHe(r,a){const c=r.typeParameters||a.typeParameters;let u;r.typeParameters&&a.typeParameters&&(u=xd(a.typeParameters,r.typeParameters));const d=r.declaration,g=ZHe(r,a,u),x=XHe(r.thisParameter,a.thisParameter,u),P=Math.max(r.minArgumentCount,a.minArgumentCount),L=Lh(d,c,x,g,void 0,void 0,P,(r.flags|a.flags)&39);return L.compositeKind=1048576,L.compositeSignatures=Nn(r.compositeKind!==2097152&&r.compositeSignatures||[r],[a]),u&&(L.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?l4(r.mapper,u):u),L}function tTe(r){const a=bp(r[0]);if(a){const c=[];for(const u of a){const d=u.keyType;yn(r,g=>!!Fh(g,d))&&c.push(j1(d,Oi(er(r,g=>Sv(g,d))),bt(r,g=>Fh(g,d).isReadonly)))}return c}return tt}function QHe(r){const a=Kie(er(r.types,d=>d===tl?[Zf]:ro(d,0))),c=Kie(er(r.types,d=>ro(d,1))),u=tTe(r.types);Qf(r,V,a,c,u)}function ZO(r,a){return r?a?Xo([r,a]):r:a}function rTe(r){const a=ef(r,u=>ro(u,1).length>0),c=er(r,v6);if(a>0&&a===ef(c,u=>u)){const u=c.indexOf(!0);c[u]=!1}return c}function KHe(r,a,c,u){const d=[];for(let g=0;gP);for(let P=0;P0&&(X=er(X,Z=>{const Te=gA(Z);return Te.resolvedReturnType=KHe(Oc(Z),d,g,P),Te})),c=nTe(c,X)}a=nTe(a,ro(L,0)),u=la(bp(L),(X,Z)=>iTe(X,Z,!1),u)}Qf(r,V,a||tt,c||tt,u||tt)}function nTe(r,a){for(const c of a)(!r||yn(r,u=>!yM(u,c,!1,!1,!1,DA)))&&(r=Ht(r,c));return r}function iTe(r,a,c){if(r)for(let u=0;u{var L;!(P.flags&418)&&!(P.flags&512&&((L=P.declarations)!=null&&L.length)&&yn(P.declarations,Np))&&x.set(P.escapedName,P)}),c=x}let d;if(Qf(r,c,tt,tt,tt),a.flags&32){const x=Bp(a),P=ni(x);P.flags&11272192?(c=To(d6(c)),G7e(c,Pc(P))):P===it&&(d=j1(w,it,!1))}const g=bae(c);if(g?u=xae(g):(d&&(u=Ht(u,d)),a.flags&384&&(hl(a).flags&32||bt(r.properties,x=>!!(An(x).flags&296)))&&(u=Ht(u,G))),Qf(r,c,tt,tt,u||tt),a.flags&8208&&(r.callSignatures=x6(a)),a.flags&32){const x=Bp(a);let P=a.members?x6(a.members.get("__constructor")):tt;a.flags&16&&(P=Et(P.slice(),Mr(r.callSignatures,L=>c1(L.declaration)?Lh(L.declaration,L.typeParameters,L.thisParameter,L.parameters,x,void 0,L.minArgumentCount,L.flags&39):void 0))),P.length||(P=HHe(x)),r.constructSignatures=P}}function rGe(r,a,c){return $a(r,xd([a.indexType,a.objectType],[Sg(0),Tg([c])]))}function nGe(r){const a=Fh(r.source,w),c=R1(r.mappedType),u=!(c&1),d=c&4?0:16777216,g=a?[j1(w,_W(a.type,r.mappedType,r.constraintType),u&&a.isReadonly)]:tt,x=To();for(const P of Pc(r.source)){const L=8192|(u&&wg(P)?8:0),X=vc(4|P.flags&d,P.escapedName,L);if(X.declarations=P.declarations,X.links.nameType=Pa(P).nameType,X.links.propertyType=An(P),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){const Z=r.constraintType.type.objectType,Te=rGe(r.mappedType,r.constraintType.type,Z);X.links.mappedType=Te,X.links.constraintType=a1(Z)}else X.links.mappedType=r.mappedType,X.links.constraintType=r.constraintType;x.set(P.escapedName,X)}Qf(r,x,tt,tt,g)}function YO(r){if(r.flags&4194304){const a=ad(r.type);return Av(a)?$Te(a):a1(a)}if(r.flags&16777216){if(r.root.isDistributive){const a=r.checkType,c=YO(a);if(c!==a)return Qae(r,NT(r.root.checkType,c,r.mapper))}return r}if(r.flags&1048576)return El(r,YO,!0);if(r.flags&2097152){const a=r.types;return a.length===2&&a[0].flags&76&&a[1]===du?r:Xo(ll(r.types,YO))}return r}function eae(r){return Du(r)&4096}function tae(r,a,c,u){for(const d of Pc(r))u(OC(d,a));if(r.flags&1)u(w);else for(const d of bp(r))(!c||d.keyType.flags&134217732)&&u(d.keyType)}function iGe(r){const a=To();let c;Qf(r,V,tt,tt,tt);const u=vg(r),d=n1(r),g=r.target||r,x=Tv(g),P=!x||oTe(g),L=Ay(g),X=ad(hA(r)),Z=R1(r),Te=Ze?128:8576;QO(r)?tae(X,Te,Ze,Ee):Tx(YO(d),Ee),Qf(r,a,tt,tt,c||tt);function Ee(ut){const jt=x?$a(x,AA(r.mapper,u,ut)):ut;Tx(jt,Jr=>De(ut,Jr))}function De(ut,jt){if(Mh(jt)){const Jr=r1(jt),Hr=a.get(Jr);if(Hr)Hr.links.nameType=Oi([Hr.links.nameType,jt]),Hr.links.keyType=Oi([Hr.links.keyType,ut]);else{const vn=Mh(ut)?So(X,r1(ut)):void 0,br=!!(Z&4||!(Z&8)&&vn&&vn.flags&16777216),Tr=!!(Z&1||!(Z&2)&&vn&&wg(vn)),$n=$&&!br&&vn&&vn.flags&16777216,Sr=vn?eae(vn):0,Br=vc(4|(br?16777216:0),Jr,Sr|262144|(Tr?8:0)|($n?524288:0));Br.links.mappedType=r,Br.links.nameType=jt,Br.links.keyType=ut,vn&&(Br.links.syntheticOrigin=vn,Br.declarations=P?vn.declarations:void 0),a.set(Jr,Br)}}else if(NV(jt)||jt.flags&33){const Jr=jt.flags&5?w:jt.flags&40?ge:jt,Hr=$a(L,AA(r.mapper,u,ut)),vn=j1(Jr,Hr,!!(Z&1));c=iTe(c,vn,!0)}}}function aGe(r){if(!r.links.type){const a=r.links.mappedType;if(!Pm(r,0))return a.containsError=!0,Y;const c=Ay(a.target||a),u=AA(a.mapper,vg(a),r.links.keyType),d=$a(c,u);let g=$&&r.flags&16777216&&!iu(d,49152)?Dv(d,!0):r.links.checkFlags&524288?sW(d):d;Oh()||(qe(N,p.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ze(r),Rt(a)),g=Y),r.links.type=g}return r.links.type}function vg(r){return r.typeParameter||(r.typeParameter=fx(ei(r.declaration.typeParameter)))}function n1(r){return r.constraintType||(r.constraintType=yp(vg(r))||Y)}function Tv(r){return r.declaration.nameType?r.nameType||(r.nameType=$a(Qi(r.declaration.nameType),r.mapper)):void 0}function Ay(r){return r.templateType||(r.templateType=r.declaration.type?$a(Oo(Qi(r.declaration.type),!0,!!(R1(r)&4)),r.mapper):Y)}function aTe(r){return N5(r.declaration.typeParameter)}function QO(r){const a=aTe(r);return a.kind===197&&a.operator===143}function hA(r){if(!r.modifiersType)if(QO(r))r.modifiersType=$a(Qi(aTe(r).type),r.mapper);else{const a=Uae(r.declaration),c=n1(a),u=c&&c.flags&262144?yp(c):c;r.modifiersType=u&&u.flags&4194304?$a(u.type,r.mapper):at}return r.modifiersType}function R1(r){const a=r.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function sTe(r){const a=R1(r);return a&8?-1:a&4?1:0}function rae(r){const a=sTe(r),c=hA(r);return a||(Om(c)?sTe(c):0)}function sGe(r){return!!(Mi(r)&32&&R1(r)&4)}function Om(r){if(Mi(r)&32){const a=n1(r);if(a4(a))return!0;const c=Tv(r);if(c&&a4($a(c,E6(vg(r),a))))return!0}return!1}function oTe(r){const a=Tv(r);return!!a&&Zo(a,vg(r))}function bg(r){return r.members||(r.flags&524288?r.objectFlags&4?WHe(r):r.objectFlags&3?VHe(r):r.objectFlags&1024?nGe(r):r.objectFlags&16?tGe(r):r.objectFlags&32?iGe(r):D.fail("Unhandled object type "+D.formatObjectFlags(r.objectFlags)):r.flags&1048576?QHe(r):r.flags&2097152?eGe(r):D.fail("Unhandled type "+D.formatTypeFlags(r.flags))),r}function O2(r){return r.flags&524288?bg(r).properties:tt}function b6(r,a){if(r.flags&524288){const u=bg(r).members.get(a);if(u&&S2(u))return u}}function KO(r){if(!r.resolvedProperties){const a=To();for(const c of r.types){for(const u of Pc(c))if(!a.has(u.escapedName)){const d=cae(r,u.escapedName);d&&a.set(u.escapedName,d)}if(r.flags&1048576&&bp(c).length===0)break}r.resolvedProperties=p6(a)}return r.resolvedProperties}function Pc(r){return r=NC(r),r.flags&3145728?KO(r):O2(r)}function oGe(r,a){r=NC(r),r.flags&3670016&&bg(r).members.forEach((c,u)=>{xT(c,u)&&a(c,u)})}function cGe(r,a){return a.properties.some(u=>{const d=u.name&&(A1(u.name)?Wd(jN(u.name)):wv(u.name)),g=d&&Mh(d)?r1(d):void 0,x=g===void 0?void 0:Hu(r,g);return!!x&&PA(x)&&!Zo(LT(u),x)})}function lGe(r){const a=Oi(r);if(!(a.flags&1048576))return lce(a);const c=To();for(const u of r)for(const{escapedName:d}of lce(u))if(!c.has(d)){const g=fTe(a,d);g&&c.set(d,g)}return zt(c.values())}function px(r){return r.flags&262144?yp(r):r.flags&8388608?uGe(r):r.flags&16777216?uTe(r):vp(r)}function yp(r){return yA(r)?IC(r):void 0}function M8(r){var a;return!!(r&&(r.flags&262144&&bt((a=r.symbol)==null?void 0:a.declarations,c=>Pi(c,2048))||r.flags&1048576&&bt(r.types,M8)||r.flags&8388608&&M8(r.objectType)||r.flags&16777216&&M8(uTe(r))||r.flags&33554432&&M8(r.baseType)||Av(r)&&zi(F2(r),(c,u)=>!!(r.target.elementFlags[u]&8)&&M8(c))>=0))}function uGe(r){return yA(r)?_Ge(r):void 0}function nae(r){const a=Ny(r,!1);return a!==r?a:px(r)}function _Ge(r){if(oae(r)||Om(r.objectType))return RV(r.objectType,r.indexType);const a=nae(r.indexType);if(a&&a!==r.indexType){const u=B2(r.objectType,a,r.accessFlags);if(u)return u}const c=nae(r.objectType);if(c&&c!==r.objectType)return B2(c,r.indexType,r.accessFlags)}function iae(r){if(!r.resolvedDefaultConstraint){const a=qXe(r),c=o4(r);r.resolvedDefaultConstraint=Fc(a)?c:Fc(c)?a:Oi([a,c])}return r.resolvedDefaultConstraint}function cTe(r){if(r.resolvedConstraintOfDistributive!==void 0)return r.resolvedConstraintOfDistributive||void 0;if(r.root.isDistributive&&r.restrictiveInstantiation!==r){const a=Ny(r.checkType,!1),c=a===r.checkType?px(a):a;if(c&&c!==r.checkType){const u=Qae(r,NT(r.root.checkType,c,r.mapper));if(!(u.flags&131072))return r.resolvedConstraintOfDistributive=u,u}}r.resolvedConstraintOfDistributive=!1}function lTe(r){return cTe(r)||iae(r)}function uTe(r){return yA(r)?lTe(r):void 0}function fGe(r,a){let c,u=!1;for(const d of r)if(d.flags&465829888){let g=px(d);for(;g&&g.flags&21233664;)g=px(g);g&&(c=Ht(c,g),a&&(c=Ht(c,d)))}else(d.flags&469892092||Oy(d))&&(u=!0);if(c&&(a||u)){if(u)for(const d of r)(d.flags&469892092||Oy(d))&&(c=Ht(c,d));return dM(Xo(c),!1)}}function vp(r){if(r.flags&464781312||Av(r)){const a=aae(r);return a!==ru&&a!==dp?a:void 0}return r.flags&4194304?Os:void 0}function Dy(r){return vp(r)||r}function yA(r){return aae(r)!==dp}function aae(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;const a=[];return r.resolvedBaseConstraint=c(r);function c(g){if(!g.immediateBaseConstraint){if(!Pm(g,4))return dp;let x;const P=hM(g);if((a.length<10||a.length<50&&!Zn(a,P))&&(a.push(P),x=d(Ny(g,!1)),a.pop()),!Oh()){if(g.flags&262144){const L=Tae(g);if(L){const X=qe(L,p.Type_parameter_0_has_a_circular_constraint,Rt(g));N&&!c3(L,N)&&!c3(N,L)&&ic(X,ai(N,p.Circularity_originates_in_type_at_this_location))}}x=dp}g.immediateBaseConstraint=x||ru}return g.immediateBaseConstraint}function u(g){const x=c(g);return x!==ru&&x!==dp?x:void 0}function d(g){if(g.flags&262144){const x=IC(g);return g.isThisType||!x?x:u(x)}if(g.flags&3145728){const x=g.types,P=[];let L=!1;for(const X of x){const Z=u(X);Z?(Z!==X&&(L=!0),P.push(Z)):L=!0}return L?g.flags&1048576&&P.length===x.length?Oi(P):g.flags&2097152&&P.length?Xo(P):void 0:g}if(g.flags&4194304)return Os;if(g.flags&134217728){const x=g.types,P=Mr(x,u);return P.length===x.length?gx(g.texts,P):w}if(g.flags&268435456){const x=u(g.type);return x&&x!==g.type?AT(g.symbol,x):w}if(g.flags&8388608){if(oae(g))return u(RV(g.objectType,g.indexType));const x=u(g.objectType),P=u(g.indexType),L=x&&P&&B2(x,P,g.accessFlags);return L&&u(L)}if(g.flags&16777216){const x=lTe(g);return x&&u(x)}if(g.flags&33554432)return u(Cae(g));if(Av(g)){const x=er(F2(g),(P,L)=>{const X=P.flags&262144&&g.target.elementFlags[L]&8&&u(P)||P;return X!==P&&$0(X,Z=>D6(Z)&&!Av(Z))?X:P});return Tg(x,g.target.elementFlags,g.target.readonly,g.target.labeledElementDeclarations)}return g}}function pGe(r,a){return r.resolvedApparentType||(r.resolvedApparentType=cm(r,a,!0))}function sae(r){if(r.default)r.default===k_&&(r.default=dp);else if(r.target){const a=sae(r.target);r.default=a?$a(a,r.mapper):ru}else{r.default=k_;const a=r.symbol&&Vt(r.symbol.declarations,u=>eu(u)&&u.default),c=a?Qi(a):ru;r.default===k_&&(r.default=c)}return r.default}function dx(r){const a=sae(r);return a!==ru&&a!==dp?a:void 0}function dGe(r){return sae(r)!==dp}function _Te(r){return!!(r.symbol&&Vt(r.symbol.declarations,a=>eu(a)&&a.default))}function mGe(r){return r.resolvedApparentType||(r.resolvedApparentType=gGe(r))}function gGe(r){const a=$V(r);if(a&&!r.declaration.nameType){const c=yp(a);if(c&&$0(c,D6))return $a(r,NT(a,c,r.mapper))}return r}function oae(r){let a;return!!(r.flags&8388608&&Mi(a=r.objectType)&32&&!Om(a)&&a4(r.indexType)&&!(R1(a)&8)&&!a.declaration.nameType)}function ad(r){const a=r.flags&465829888?vp(r)||at:r,c=Mi(a);return c&32?mGe(a):c&4&&a!==r?cm(a,r):a.flags&2097152?pGe(a,r):a.flags&402653316?C_:a.flags&296?Qp:a.flags&2112?YGe():a.flags&528?Ce:a.flags&12288?BTe():a.flags&67108864?Ua:a.flags&4194304?Os:a.flags&2&&!$?Ua:a}function NC(r){return xg(ad(xg(r)))}function fTe(r,a,c){var u,d,g;let x,P,L;const X=r.flags&1048576;let Z,Te=4,Ee=X?0:8,De=!1;for(const Br of r.types){const _n=ad(Br);if(!(Ac(_n)||_n.flags&131072)){const Ni=So(_n,a,c),ji=Ni?c0(Ni):0;if(Ni){if(Ni.flags&106500&&(Z!=null||(Z=X?0:16777216),X?Z|=Ni.flags&16777216:Z&=Ni.flags),!x)x=Ni;else if(Ni!==x)if((Z8(Ni)||Ni)===(Z8(x)||x)&&lse(x,Ni,(mo,J_)=>mo===J_?-1:0)===-1)De=!!x.parent&&!!Nr(N2(x.parent));else{P||(P=new Map,P.set(oc(x),x));const mo=oc(Ni);P.has(mo)||P.set(mo,Ni)}X&&wg(Ni)?Ee|=8:!X&&!wg(Ni)&&(Ee&=-9),Ee|=(ji&24?0:256)|(ji&16?512:0)|(ji&8?1024:0)|(ji&32?2048:0),noe(Ni)||(Te=2)}else if(X){const fs=!mA(a)&&F8(_n,a);fs?(Ee|=32|(fs.isReadonly?8:0),L=Ht(L,Yo(_n)?vM(_n)||Ne:fs.type)):_4(_n)&&!(Mi(_n)&2097152)?(Ee|=32,L=Ht(L,Ne)):Ee|=16}}}if(!x||X&&(P||Ee&48)&&Ee&1536&&!(P&&hGe(P.values())))return;if(!P&&!(Ee&16)&&!L)if(De){const Br=(u=di(x,ih))==null?void 0:u.links,_n=vx(x,Br==null?void 0:Br.type);return _n.parent=(g=(d=x.valueDeclaration)==null?void 0:d.symbol)==null?void 0:g.parent,_n.links.containingType=r,_n.links.mapper=Br==null?void 0:Br.mapper,_n}else return x;const ut=P?zt(P.values()):[x];let jt,Jr,Hr;const vn=[];let br,Tr,$n=!1;for(const Br of ut){Tr?Br.valueDeclaration&&Br.valueDeclaration!==Tr&&($n=!0):Tr=Br.valueDeclaration,jt=Et(jt,Br.declarations);const _n=An(Br);Jr||(Jr=_n,Hr=Pa(Br).nameType);const Ni=dA(Br);br||Ni!==_n?br=Ht(br||vn.slice(),Ni):_n!==Jr&&(Ee|=64),(PA(_n)||J8(_n))&&(Ee|=128),_n.flags&131072&&_n!==al&&(Ee|=131072),vn.push(_n)}Et(vn,L);const Sr=vc(4|(Z!=null?Z:0),a,Te|Ee);return Sr.links.containingType=r,!$n&&Tr&&(Sr.valueDeclaration=Tr,Tr.symbol.parent&&(Sr.parent=Tr.symbol.parent)),Sr.declarations=jt,Sr.links.nameType=Hr,vn.length>2?(Sr.links.checkFlags|=65536,Sr.links.deferralParent=r,Sr.links.deferralConstituents=vn,Sr.links.deferralWriteConstituents=br):(Sr.links.type=X?Oi(vn):Xo(vn),br&&(Sr.links.writeType=X?Oi(br):Xo(br))),Sr}function pTe(r,a,c){var u,d;let g=(u=r.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&u.get(a)||!c?(d=r.propertyCache)==null?void 0:d.get(a):void 0;return g||(g=fTe(r,a,c),g&&(c?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=To()):r.propertyCache||(r.propertyCache=To())).set(a,g)),g}function hGe(r){let a;for(const c of r){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(u=>{Zn(c.declarations,u)||a.delete(u)}),a.size===0)return}return a}function cae(r,a,c){const u=pTe(r,a,c);return u&&!(Du(u)&16)?u:void 0}function xg(r){return r.flags&1048576&&r.objectFlags&16777216?r.resolvedReducedType||(r.resolvedReducedType=yGe(r)):r.flags&2097152?(r.objectFlags&16777216||(r.objectFlags|=16777216|(bt(KO(r),vGe)?33554432:0)),r.objectFlags&33554432?Ft:r):r}function yGe(r){const a=ll(r.types,xg);if(a===r.types)return r;const c=Oi(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function vGe(r){return dTe(r)||mTe(r)}function dTe(r){return!(r.flags&16777216)&&(Du(r)&131264)===192&&!!(An(r).flags&131072)}function mTe(r){return!r.valueDeclaration&&!!(Du(r)&1024)}function lae(r){return!!(r.flags&1048576&&r.objectFlags&16777216&&bt(r.types,lae)||r.flags&2097152&&bGe(r))}function bGe(r){const a=r.uniqueLiteralFilledInstantiation||(r.uniqueLiteralFilledInstantiation=$a(r,pc));return xg(a)!==a}function uae(r,a){if(a.flags&2097152&&Mi(a)&33554432){const c=on(KO(a),dTe);if(c)return Ps(r,p.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Rt(a,void 0,536870912),ze(c));const u=on(KO(a),mTe);if(u)return Ps(r,p.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Rt(a,void 0,536870912),ze(u))}return r}function So(r,a,c,u){if(r=NC(r),r.flags&524288){const d=bg(r),g=d.members.get(a);if(g&&S2(g,u))return g;if(c)return;const x=d===h_?tl:d.callSignatures.length?Lc:d.constructSignatures.length?Yp:void 0;if(x){const P=b6(x,a);if(P)return P}return b6(gu,a)}if(r.flags&3145728)return cae(r,a,c)}function eM(r,a){if(r.flags&3670016){const c=bg(r);return a===0?c.callSignatures:c.constructSignatures}return tt}function ro(r,a){return eM(NC(r),a)}function _ae(r,a){return on(r,c=>c.keyType===a)}function fae(r,a){let c,u,d;for(const g of r)g.keyType===w?c=g:L8(a,g.keyType)&&(u?(d||(d=[u])).push(g):u=g);return d?j1(at,Xo(er(d,g=>g.type)),la(d,(g,x)=>g&&x.isReadonly,!0)):u||(c&&L8(a,w)?c:void 0)}function L8(r,a){return Zo(r,a)||a===w&&Zo(r,ge)||a===ge&&(r===Ks||!!(r.flags&128)&&cy(r.value))}function pae(r){return r.flags&3670016?bg(r).indexInfos:tt}function bp(r){return pae(NC(r))}function Fh(r,a){return _ae(bp(r),a)}function Sv(r,a){var c;return(c=Fh(r,a))==null?void 0:c.type}function dae(r,a){return bp(r).filter(c=>L8(a,c.keyType))}function tM(r,a){return fae(bp(r),a)}function F8(r,a){return tM(r,mA(a)?ar:Wd(Ba(a)))}function gTe(r){var a;let c;for(const u of ab(r))c=ct(c,fx(u.symbol));return c!=null&&c.length?c:B_(r)?(a=bA(r))==null?void 0:a.typeParameters:void 0}function mae(r){const a=[];return r.forEach((c,u)=>{M1(u)||a.push(c)}),a}function gae(r,a){if(hf(r))return;const c=pf(je,'"'+r+'"',512);return c&&a?Ec(c):c}function vA(r){if(oS(r)||RN(r)||BN(r))return!0;if(r.initializer){const c=i1(r.parent),u=r.parent.parameters.indexOf(r);return D.assert(u>=0),u>=l1(c,3)}const a=c7(r.parent);return a?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=a.arguments.length:!1}function xGe(r){return fo(r)&&!lh(r)&&r.questionToken}function rM(r,a,c,u){return{kind:r,parameterName:a,parameterIndex:c,type:u}}function B1(r){let a=0;if(r)for(let c=0;c=c&&g<=d){const x=r?r.slice():[];for(let L=g;LP.arguments.length&&!Jr||BN(ut)||(d=c.length)}if((r.kind===176||r.kind===177)&&O8(r)&&(!x||!g)){const De=r.kind===176?177:176,ut=wu(ei(r),De);ut&&(g=Ya(ut))}if(jn(r)){const De=vL(r);De&&De.typeExpression&&(g=vx(vc(1,"this"),Qi(De.typeExpression)))}const Z=J4(r)?cS(r):r,Te=Z&&Uu(Z)?Bp(Ec(Z.parent.symbol)):void 0,Ee=Te?Te.localTypeParameters:gTe(r);(Yq(r)||jn(r)&&TGe(r,c))&&(u|=1),(L9(r)&&Pi(r,256)||Uu(r)&&Pi(r.parent,256))&&(u|=4),a.resolvedSignature=Lh(r,Ee,g,c,void 0,void 0,d,u)}return a.resolvedSignature}function TGe(r,a){if(J4(r)||!hae(r))return!1;const c=io(r.parameters),u=c?D5(c):Z6(r).filter(Jg),d=bo(u,x=>x.typeExpression&&WR(x.typeExpression.type)?x.typeExpression.type:void 0),g=vc(3,"args",32768);return d?g.links.type=ep(Qi(d.type)):(g.links.checkFlags|=65536,g.links.deferralParent=Ft,g.links.deferralConstituents=[da],g.links.deferralWriteConstituents=[da]),d&&a.pop(),a.push(g),!0}function bA(r){if(!(jn(r)&&Jl(r)))return;const a=X6(r);return(a==null?void 0:a.typeExpression)&&MT(Qi(a.typeExpression))}function SGe(r,a){const c=bA(r);if(!c)return;const u=r.parameters.indexOf(a);return a.dotDotDotToken?qA(c,u):Cg(c,u)}function kGe(r){const a=bA(r);return a&&Oc(a)}function hae(r){const a=Ei(r);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(r.body)),a.containsArgumentsReference;function c(u){if(!u)return!1;switch(u.kind){case 80:return u.escapedText===wt.escapedName&&aD(u)===wt;case 171:case 173:case 176:case 177:return u.name.kind===166&&c(u.name);case 210:case 211:return c(u.expression);case 302:return c(u.initializer);default:return!q$(u)&&!ry(u)&&!!js(u,c)}}}function x6(r){if(!r||!r.declarations)return tt;const a=[];for(let c=0;c0&&u.body){const d=r.declarations[c-1];if(u.parent===d.parent&&u.kind===d.kind&&u.pos===d.end)continue}if(jn(u)&&u.jsDoc){let d=!1;for(const g of u.jsDoc)if(g.tags){for(const x of g.tags)if($9(x)){const P=x.typeExpression;P.type===void 0&&!Uu(u)&&u4(P,it),a.push(i1(P)),d=!0}}if(d)continue}a.push(!hk(u)&&!tg(u)&&bA(u)||i1(u))}}return a}function hTe(r){const a=z_(r,r);if(a){const c=om(a);if(c)return An(c)}return it}function T6(r){if(r.thisParameter)return An(r.thisParameter)}function b0(r){if(!r.resolvedTypePredicate){if(r.target){const a=b0(r.target);r.resolvedTypePredicate=a?sZe(a,r.mapper):gr}else if(r.compositeSignatures)r.resolvedTypePredicate=vXe(r.compositeSignatures,r.compositeKind)||gr;else{const a=r.declaration&&Og(r.declaration);let c;if(!a){const u=bA(r.declaration);u&&r!==u&&(c=b0(u))}r.resolvedTypePredicate=a&&RR(a)?CGe(a,r):c||gr}D.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===gr?void 0:r.resolvedTypePredicate}function CGe(r,a){const c=r.parameterName,u=r.type&&Qi(r.type);return c.kind===196?rM(r.assertsModifier?2:0,void 0,void 0,u):rM(r.assertsModifier?3:1,c.escapedText,zi(a.parameters,d=>d.escapedName===c.escapedText),u)}function yTe(r,a,c){return a!==2097152?Oi(r,c):Xo(r)}function Oc(r){if(!r.resolvedReturnType){if(!Pm(r,3))return Y;let a=r.target?$a(Oc(r.target),r.mapper):r.compositeSignatures?$a(yTe(er(r.compositeSignatures,Oc),r.compositeKind,2),r.mapper):R8(r.declaration)||(Eu(r.declaration.body)?it:JW(r.declaration));if(r.flags&8?a=ZSe(a):r.flags&16&&(a=Dv(a)),!Oh()){if(r.declaration){const c=Og(r.declaration);if(c)qe(c,p.Return_type_annotation_circularly_references_itself);else if(ve){const u=r.declaration,d=Es(u);d?qe(d,p._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,il(d)):qe(u,p.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=it}r.resolvedReturnType=a}return r.resolvedReturnType}function R8(r){if(r.kind===175)return Bp(Ec(r.parent.symbol));const a=Og(r);if(J4(r)){const c=Hw(r);if(c&&Uu(c.parent)&&!a)return Bp(Ec(c.parent.parent.symbol))}if(ek(r))return Qi(r.parameters[0].type);if(a)return Qi(a);if(r.kind===176&&O8(r)){const c=jn(r)&&ys(r);if(c)return c;const u=wu(ei(r),177),d=Pn(u);if(d)return d}return kGe(r)}function yae(r){return!r.resolvedReturnType&&vv(r,3)>=0}function wGe(r){return vTe(r)||it}function vTe(r){if(up(r)){const a=An(r.parameters[r.parameters.length-1]),c=Yo(a)?vM(a):a;return c&&Sv(c,ge)}}function xA(r,a,c,u){const d=vae(r,M2(a,r.typeParameters,B1(r.typeParameters),c));if(u){const g=E5e(Oc(d));if(g){const x=gA(g);x.typeParameters=u;const P=gA(d);return P.resolvedReturnType=mx(x),P}}return d}function vae(r,a){const c=r.instantiations||(r.instantiations=new Map),u=x0(a);let d=c.get(u);return d||c.set(u,d=DV(r,a)),d}function DV(r,a){return W8(r,EGe(r,a),!0)}function EGe(r,a){return xd(r.typeParameters,a)}function TA(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=AGe(r)):r}function AGe(r){return W8(r,TSe(r.typeParameters),!0)}function DGe(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=NGe(r)):r}function NGe(r){return xA(r,er(r.typeParameters,a=>a.target&&!yp(a.target)?a.target:a),jn(r.declaration))}function IGe(r){const a=r.typeParameters;if(a){if(r.baseSignatureCache)return r.baseSignatureCache;const c=TSe(a),u=xd(a,er(a,g=>yp(g)||at));let d=er(a,g=>$a(g,u)||at);for(let g=0;g{NV(d)&&!_ae(a,d)&&a.push(j1(d,c.type?Qi(c.type):it,Qd(c,64),c))})}return a}return tt}function NV(r){return!!(r.flags&4108)||J8(r)||!!(r.flags&2097152)&&!MC(r)&&bt(r.types,NV)}function Tae(r){return Mr(Mn(r.symbol&&r.symbol.declarations,eu),N5)[0]}function TTe(r,a){var c;let u;if((c=r.symbol)!=null&&c.declarations){for(const d of r.symbol.declarations)if(d.parent.kind===194){const[g=d.parent,x]=Oue(d.parent.parent);if(x.kind===182&&!a){const P=x,L=Joe(P);if(L){const X=P.typeArguments.indexOf(g);if(X()=>ztt(P,L,ut))),Ee=$a(Z,Te);Ee!==r&&(u=Ht(u,Ee))}}}}else if(x.kind===168&&x.dotDotDotToken||x.kind===190||x.kind===201&&x.dotDotDotToken)u=Ht(u,ep(at));else if(x.kind===203)u=Ht(u,w);else if(x.kind===167&&x.parent.kind===199)u=Ht(u,Os);else if(x.kind===199&&x.type&&kl(x.type)===d.parent&&x.parent.kind===193&&x.parent.extendsType===x&&x.parent.checkType.kind===199&&x.parent.checkType.type){const P=x.parent.checkType,L=Qi(P.type);u=Ht(u,$a(L,E6(fx(ei(P.typeParameter)),P.typeParameter.constraint?Qi(P.typeParameter.constraint):Os)))}}}return u&&Xo(u)}function IC(r){if(!r.constraint)if(r.target){const a=yp(r.target);r.constraint=a?$a(a,r.mapper):ru}else{const a=Tae(r);if(!a)r.constraint=TTe(r)||ru;else{let c=Qi(a);c.flags&1&&!Ac(c)&&(c=a.parent.parent.kind===199?Os:at),r.constraint=c}}return r.constraint===ru?void 0:r.constraint}function STe(r){const a=wu(r.symbol,167),c=Ug(a.parent)?mF(a.parent):a.parent;return c&&Im(c)}function x0(r){let a="";if(r){const c=r.length;let u=0;for(;u1&&(a+=":"+g),u+=g}}return a}function ET(r,a){return r?`@${oc(r)}`+(a?`:${x0(a)}`:""):""}function nM(r,a){let c=0;for(const u of r)(a===void 0||!(u.flags&a))&&(c|=Mi(u));return c&458752}function B8(r,a){return bt(a)&&r===qa?at:kv(r,a)}function kv(r,a){const c=x0(a);let u=r.instantiations.get(c);return u||(u=Af(4,r.symbol),r.instantiations.set(c,u),u.objectFlags|=a?nM(a):0,u.target=r,u.resolvedTypeArguments=a),u}function kTe(r){const a=ky(r.flags,r.symbol);return a.objectFlags=r.objectFlags,a.target=r.target,a.resolvedTypeArguments=r.resolvedTypeArguments,a}function Sae(r,a,c,u,d){if(!u){u=DT(a);const x=U8(u);d=c?Ev(x,c):x}const g=Af(4,r.symbol);return g.target=r,g.node=a,g.mapper=c,g.aliasSymbol=u,g.aliasTypeArguments=d,g}function yl(r){var a,c;if(!r.resolvedTypeArguments){if(!Pm(r,6))return((a=r.target.localTypeParameters)==null?void 0:a.map(()=>Y))||tt;const u=r.node,d=u?u.kind===182?Nn(r.target.outerTypeParameters,WW(u,r.target.localTypeParameters)):u.kind===187?[Qi(u.elementType)]:er(u.elements,Qi):tt;Oh()?r.resolvedTypeArguments=r.mapper?Ev(d,r.mapper):d:(r.resolvedTypeArguments=((c=r.target.localTypeParameters)==null?void 0:c.map(()=>Y))||tt,qe(r.node||N,r.target.symbol?p.Type_arguments_for_0_circularly_reference_themselves:p.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&ze(r.target.symbol)))}return r.resolvedTypeArguments}function Cv(r){return Nr(r.target.typeParameters)}function CTe(r,a){const c=hl(Ec(a)),u=c.localTypeParameters;if(u){const d=Nr(r.typeArguments),g=B1(u),x=jn(r);if(!(!ve&&x)&&(du.length)){const X=x&&t2(r)&&!Lk(r.parent),Z=g===u.length?X?p.Expected_0_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_1_type_argument_s:X?p.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_between_1_and_2_type_arguments,Te=Rt(c,void 0,2);if(qe(r,Z,Te,g,u.length),!x)return Y}if(r.kind===182&&WTe(r,Nr(r.typeArguments)!==u.length))return Sae(c,r,void 0);const L=Nn(c.outerTypeParameters,M2(iM(r),u,g,x));return kv(c,L)}return S6(r,a)?c:Y}function j8(r,a,c,u){const d=hl(r);if(d===Q&&ZI.has(r.escapedName)&&a&&a.length===1)return AT(r,a[0]);const g=Pa(r),x=g.typeParameters,P=x0(a)+ET(c,u);let L=g.instantiations.get(P);return L||g.instantiations.set(P,L=CSe(d,xd(x,M2(a,x,B1(x),jn(r.valueDeclaration))),c,u)),L}function PGe(r,a){if(Du(a)&1048576){const d=iM(r),g=ET(a,d);let x=Tt.get(g);return x||(x=$u(1,"error"),x.aliasSymbol=a,x.aliasTypeArguments=d,Tt.set(g,x)),x}const c=hl(a),u=Pa(a).typeParameters;if(u){const d=Nr(r.typeArguments),g=B1(u);if(du.length)return qe(r,g===u.length?p.Generic_type_0_requires_1_type_argument_s:p.Generic_type_0_requires_between_1_and_2_type_arguments,ze(a),g,u.length),Y;const x=DT(r);let P=x&&(wTe(a)||!wTe(x))?x:void 0,L;if(P)L=U8(P);else if(FL(r)){const X=z8(r,2097152,!0);if(X&&X!==Kr){const Z=Rf(X);Z&&Z.flags&524288&&(P=Z,L=iM(r)||(u?[]:void 0))}}return j8(a,iM(r),P,L)}return S6(r,a)?c:Y}function wTe(r){var a;const c=(a=r.declarations)==null?void 0:a.find(nN);return!!(c&&Jm(c))}function OGe(r){switch(r.kind){case 182:return r.typeName;case 232:const a=r.expression;if(ju(a))return a}}function ETe(r){return r.parent?`${ETe(r.parent)}.${r.escapedName}`:r.escapedName}function IV(r){const c=(r.kind===165?r.right:r.kind===210?r.name:r).escapedText;if(c){const u=r.kind===165?IV(r.left):r.kind===210?IV(r.expression):void 0,d=u?`${ETe(u)}.${c}`:c;let g=ot.get(d);return g||(ot.set(d,g=vc(524288,c,1048576)),g.parent=u,g.links.declaredType=Ge),g}return Kr}function z8(r,a,c){const u=OGe(r);if(!u)return Kr;const d=ou(u,a,c);return d&&d!==Kr?d:c?Kr:IV(u)}function PV(r,a){if(a===Kr)return Y;if(a=w8(a)||a,a.flags&96)return CTe(r,a);if(a.flags&524288)return PGe(r,a);const c=q7e(a);if(c)return S6(r,a)?jp(c):Y;if(a.flags&111551&&OV(r)){const u=MGe(r,a);return u||(z8(r,788968),An(a))}return Y}function MGe(r,a){const c=Ei(r);if(!c.resolvedJSDocType){const u=An(a);let d=u;if(a.valueDeclaration){const g=r.kind===204&&r.qualifier;u.symbol&&u.symbol!==a&&g&&(d=PV(r,u.symbol))}c.resolvedJSDocType=d}return c.resolvedJSDocType}function kae(r,a){if(a.flags&3||a===r||r.flags&1)return r;const c=`${xp(r)}>${xp(a)}`,u=$r.get(c);if(u)return u;const d=Ph(33554432);return d.baseType=r,d.constraint=a,$r.set(c,d),d}function Cae(r){return Xo([r.constraint,r.baseType])}function ATe(r){return r.kind===188&&r.elements.length===1}function DTe(r,a,c){return ATe(a)&&ATe(c)?DTe(r,a.elements[0],c.elements[0]):j2(Qi(a))===j2(r)?Qi(c):void 0}function LGe(r,a){let c,u=!0;for(;a&&!us(a)&&a.kind!==326;){const d=a.parent;if(d.kind===168&&(u=!u),(u||r.flags&8650752)&&d.kind===193&&a===d.trueType){const g=DTe(r,d.checkType,d.extendsType);g&&(c=Ht(c,g))}else if(r.flags&262144&&d.kind===199&&a===d.type){const g=Qi(d);if(vg(g)===j2(r)){const x=$V(g);if(x){const P=yp(x);P&&$0(P,D6)&&(c=Ht(c,Oi([ge,Ks])))}}}a=d}return c?kae(r,Xo(c)):r}function OV(r){return!!(r.flags&8388608)&&(r.kind===182||r.kind===204)}function S6(r,a){return r.typeArguments?(qe(r,p.Type_0_is_not_generic,a?ze(a):r.typeName?il(r.typeName):XI),!1):!0}function NTe(r){if(Be(r.typeName)){const a=r.typeArguments;switch(r.typeName.escapedText){case"String":return S6(r),w;case"Number":return S6(r),ge;case"Boolean":return S6(r),rt;case"Void":return S6(r),st;case"Undefined":return S6(r),Ne;case"Null":return S6(r),Yn;case"Function":case"function":return S6(r),tl;case"array":return(!a||!a.length)&&!ve?da:void 0;case"promise":return(!a||!a.length)&&!ve?UM(it):void 0;case"Object":if(a&&a.length===2){if(lF(r)){const c=Qi(a[0]),u=Qi(a[1]),d=c===w||c===ge?[j1(c,u,!1)]:tt;return yu(void 0,V,tt,tt,d)}return it}return S6(r),ve?void 0:it}}}function FGe(r){const a=Qi(r.type);return $?iW(a,65536):a}function wae(r){const a=Ei(r);if(!a.resolvedType){if(Vy(r)&&i7(r.parent))return a.resolvedSymbol=Kr,a.resolvedType=n_(r.parent.expression);let c,u;const d=788968;OV(r)&&(u=NTe(r),u||(c=z8(r,d,!0),c===Kr?c=z8(r,d|111551):z8(r,d),u=PV(r,c))),u||(c=z8(r,d),u=PV(r,c)),a.resolvedSymbol=c,a.resolvedType=u}return a.resolvedType}function iM(r){return er(r.typeArguments,Qi)}function ITe(r){const a=Ei(r);if(!a.resolvedType){const c=H5e(r);a.resolvedType=jp(lm(c))}return a.resolvedType}function PTe(r,a){function c(d){const g=d.declarations;if(g)for(const x of g)switch(x.kind){case 262:case 263:case 265:return x}}if(!r)return a?qa:Ua;const u=hl(r);return u.flags&524288?Nr(u.typeParameters)!==a?(qe(c(r),p.Global_type_0_must_have_1_type_parameter_s,Bu(r),a),a?qa:Ua):u:(qe(c(r),p.Global_type_0_must_be_a_class_or_interface_type,Bu(r)),a?qa:Ua)}function Eae(r,a){return SA(r,111551,a?p.Cannot_find_global_value_0:void 0)}function OTe(r,a){return SA(r,788968,a?p.Cannot_find_global_type_0:void 0)}function MV(r,a,c){const u=SA(r,788968,c?p.Cannot_find_global_type_0:void 0);if(u&&(hl(u),Nr(Pa(u).typeParameters)!==a)){const d=u.declarations&&on(u.declarations,zg);qe(d,p.Global_type_0_must_have_1_type_parameter_s,Bu(u),a);return}return u}function SA(r,a,c){return hu(void 0,r,a,c,r,!1,!1,!1)}function v_(r,a,c){const u=OTe(r,c);return u||c?PTe(u,a):void 0}function RGe(){return fn||(fn=v_("TypedPropertyDescriptor",1,!0)||qa)}function BGe(){return Hg||(Hg=v_("TemplateStringsArray",0,!0)||Ua)}function MTe(){return gy||(gy=v_("ImportMeta",0,!0)||Ua)}function LTe(){if(!kh){const r=vc(0,"ImportMetaExpression"),a=MTe(),c=vc(4,"meta",8);c.parent=r,c.links.type=a;const u=To([c]);r.members=u,kh=yu(r,u,tt,tt,tt)}return kh}function FTe(r){return Ch||(Ch=v_("ImportCallOptions",0,r))||Ua}function RTe(r){return Qt||(Qt=Eae("Symbol",r))}function jGe(r){return Kt||(Kt=OTe("SymbolConstructor",r))}function BTe(){return xr||(xr=v_("Symbol",0,!1))||Ua}function aM(r){return si||(si=v_("Promise",1,r))||qa}function jTe(r){return Bi||(Bi=v_("PromiseLike",1,r))||qa}function Aae(r){return Ia||(Ia=Eae("Promise",r))}function zGe(r){return As||(As=v_("PromiseConstructorLike",0,r))||Ua}function LV(r){return Am||(Am=v_("AsyncIterable",1,r))||qa}function JGe(r){return Kp||(Kp=v_("AsyncIterator",3,r))||qa}function UGe(r){return nm||(nm=v_("AsyncIterableIterator",1,r))||qa}function VGe(r){return mp||(mp=v_("AsyncGenerator",3,r))||qa}function Dae(r){return Ro||(Ro=v_("Iterable",1,r))||qa}function WGe(r){return wl||(wl=v_("Iterator",3,r))||qa}function qGe(r){return Rl||(Rl=v_("IterableIterator",1,r))||qa}function $Ge(r){return gd||(gd=v_("Generator",3,r))||qa}function HGe(r){return p0||(p0=v_("IteratorYieldResult",1,r))||qa}function GGe(r){return l_||(l_=v_("IteratorReturnResult",1,r))||qa}function zTe(r,a=0){const c=SA(r,788968,void 0);return c&&PTe(c,a)}function XGe(){return J||(J=MV("Extract",2,!0)||Kr),J===Kr?void 0:J}function ZGe(){return Xe||(Xe=MV("Omit",2,!0)||Kr),Xe===Kr?void 0:Xe}function Nae(r){return ir||(ir=MV("Awaited",1,r)||(r?Kr:void 0)),ir===Kr?void 0:ir}function YGe(){return kn||(kn=v_("BigInt",0,!1))||Ua}function QGe(r){var a;return(a=ts!=null?ts:ts=v_("ClassDecoratorContext",1,r))!=null?a:qa}function KGe(r){var a;return(a=Us!=null?Us:Us=v_("ClassMethodDecoratorContext",2,r))!=null?a:qa}function eXe(r){var a;return(a=ml!=null?ml:ml=v_("ClassGetterDecoratorContext",2,r))!=null?a:qa}function tXe(r){var a;return(a=dc!=null?dc:dc=v_("ClassSetterDecoratorContext",2,r))!=null?a:qa}function rXe(r){var a;return(a=u_!=null?u_:u_=v_("ClassAccessorDecoratorContext",2,r))!=null?a:qa}function nXe(r){var a;return(a=Rd!=null?Rd:Rd=v_("ClassAccessorDecoratorTarget",2,r))!=null?a:qa}function iXe(r){var a;return(a=ed!=null?ed:ed=v_("ClassAccessorDecoratorResult",2,r))!=null?a:qa}function aXe(r){var a;return(a=dg!=null?dg:dg=v_("ClassFieldDecoratorContext",2,r))!=null?a:qa}function sXe(){return Js||(Js=Eae("NaN",!1))}function oXe(){return va||(va=MV("Record",2,!0)||Kr),va===Kr?void 0:va}function kA(r,a){return r!==qa?kv(r,a):Ua}function JTe(r){return kA(RGe(),[r])}function UTe(r){return kA(Dae(!0),[r])}function ep(r,a){return kA(a?ff:su,[r])}function Iae(r){switch(r.kind){case 189:return 2;case 190:return VTe(r);case 201:return r.questionToken?2:r.dotDotDotToken?VTe(r):1;default:return 1}}function VTe(r){return lM(r.type)?4:8}function cXe(r){const a=uXe(r.parent);if(lM(r))return a?ff:su;const u=er(r.elements,Iae),d=bt(r.elements,g=>g.kind!==201);return Pae(u,a,d?void 0:r.elements)}function WTe(r,a){return!!DT(r)||qTe(r)&&(r.kind===187?L2(r.elementType):r.kind===188?bt(r.elements,L2):a||bt(r.typeArguments,L2))}function qTe(r){const a=r.parent;switch(a.kind){case 195:case 201:case 182:case 191:case 192:case 198:case 193:case 197:case 187:case 188:return qTe(a);case 264:return!0}return!1}function L2(r){switch(r.kind){case 182:return OV(r)||!!(z8(r,788968).flags&524288);case 185:return!0;case 197:return r.operator!==158&&L2(r.type);case 195:case 189:case 201:case 322:case 320:case 321:case 315:return L2(r.type);case 190:return r.type.kind!==187||L2(r.type.elementType);case 191:case 192:return bt(r.types,L2);case 198:return L2(r.objectType)||L2(r.indexType);case 193:return L2(r.checkType)||L2(r.extendsType)||L2(r.trueType)||L2(r.falseType)}return!1}function lXe(r){const a=Ei(r);if(!a.resolvedType){const c=cXe(r);if(c===qa)a.resolvedType=Ua;else if(!(r.kind===188&&bt(r.elements,u=>!!(Iae(u)&8)))&&WTe(r))a.resolvedType=r.kind===188&&r.elements.length===0?c:Sae(c,r,void 0);else{const u=r.kind===187?[Qi(r.elementType)]:er(r.elements,Qi);a.resolvedType=Oae(c,u)}}return a.resolvedType}function uXe(r){return NS(r)&&r.operator===148}function Tg(r,a,c=!1,u){const d=Pae(a||er(r,g=>1),c,u);return d===qa?Ua:r.length?Oae(d,r):d}function Pae(r,a,c){if(r.length===1&&r[0]&4)return a?ff:su;const u=er(r,g=>g&1?"#":g&2?"?":g&4?".":"*").join()+(a?"R":"")+(c&&c.length?","+er(c,Nc).join(","):"");let d=xn.get(u);return d||xn.set(u,d=_Xe(r,a,c)),d}function _Xe(r,a,c){const u=r.length,d=ef(r,Te=>!!(Te&9));let g;const x=[];let P=0;if(u){g=new Array(u);for(let Te=0;Te!!(r.elementFlags[jt]&8&&ut.flags&1179648));if(De>=0)return sM(er(a,(ut,jt)=>r.elementFlags[jt]&8?ut:at))?El(a[De],ut=>Mae(r,We(a,De,ut))):Y}const g=[],x=[];let P=[],L=-1,X=-1,Z=-1;for(let De=0;De=1e4)return qe(N,ry(N)?p.Type_produces_a_tuple_type_that_is_too_large_to_represent:p.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Y;Vt(Jr,(Hr,vn)=>{var br;return Ee(Hr,ut.target.elementFlags[vn],(br=ut.target.labeledElementDeclarations)==null?void 0:br[vn])})}else Ee(U2(ut)&&Sv(ut,ge)||Y,4,(u=r.labeledElementDeclarations)==null?void 0:u[De]);else Ee(ut,jt,(d=r.labeledElementDeclarations)==null?void 0:d[De])}for(let De=0;De=0&&Xx[X+ut]&8?bd(De,ge):De)),g.splice(X+1,Z-X),x.splice(X+1,Z-X),P==null||P.splice(X+1,Z-X));const Te=Pae(x,r.readonly,P);return Te===qa?Ua:x.length?kv(Te,g):Te;function Ee(De,ut,jt){ut&1&&(L=x.length),ut&4&&X<0&&(X=x.length),ut&6&&(Z=x.length),g.push(ut&2?Oo(De,!0):De),x.push(ut),P&&jt?P.push(jt):P=void 0}}function PC(r,a,c=0){const u=r.target,d=Cv(r)-c;return a>u.fixedLength?YZe(r)||Tg(tt):Tg(yl(r).slice(a,d),u.elementFlags.slice(a,d),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,d))}function $Te(r){return Oi(Ht(H2(r.target.fixedLength,a=>Wd(""+a)),a1(r.target.readonly?ff:su)))}function fXe(r,a){const c=zi(r.elementFlags,u=>!(u&a));return c>=0?c:r.elementFlags.length}function CA(r,a){return r.elementFlags.length-xo(r.elementFlags,c=>!(c&a))-1}function F2(r){const a=yl(r),c=Cv(r);return a.length===c?a:a.slice(0,c)}function pXe(r){return Oo(Qi(r.type),!0)}function xp(r){return r.id}function R2(r,a){return tr(r,a,xp,Uc)>=0}function Lae(r,a){const c=tr(r,a,xp,Uc);return c<0?(r.splice(~c,0,a),!0):!1}function dXe(r,a,c){const u=c.flags;if(!(u&131072))if(a|=u&473694207,u&465829888&&(a|=33554432),c===nr&&(a|=8388608),!$&&u&98304)Mi(c)&65536||(a|=4194304);else{const d=r.length,g=d&&c.id>r[d-1].id?~d:tr(r,c,xp,Uc);g<0&&r.splice(~g,0,c)}return a}function HTe(r,a,c){let u;for(const d of c)d!==u&&(a=d.flags&1048576?HTe(r,a|(yXe(d)?1048576:0),d.types):dXe(r,a,d),u=d);return a}function mXe(r,a){var c;if(r.length<2)return r;const u=x0(r),d=Fn.get(u);if(d)return d;const g=a&&bt(r,X=>!!(X.flags&524288)&&!Om(X)&&rse(bg(X))),x=r.length;let P=x,L=0;for(;P>0;){P--;const X=r[P];if(g||X.flags&469499904){if(X.flags&262144&&Dy(X).flags&1048576){s1(X,Oi(er(r,Ee=>Ee===X?Ft:Ee)),Hm)&&Z0(r,P);continue}const Z=X.flags&61603840?on(Pc(X),Ee=>kg(An(Ee))):void 0,Te=Z&&jp(An(Z));for(const Ee of r)if(X!==Ee){if(L===1e5&&L/(x-P)*x>1e6){(c=Hi)==null||c.instant(Hi.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:r.map(ut=>ut.id)}),qe(N,p.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(L++,Z&&Ee.flags&61603840){const De=Hu(Ee,Z.escapedName);if(De&&kg(De)&&jp(De)!==Te)continue}if(s1(X,Ee,Hm)&&(!(Mi(I8(X))&1)||!(Mi(I8(Ee))&1)||A6(X,Ee))){Z0(r,P);break}}}}return Fn.set(u,r),r}function gXe(r,a,c){let u=r.length;for(;u>0;){u--;const d=r[u],g=d.flags;(g&402653312&&a&4||g&256&&a&8||g&2048&&a&64||g&8192&&a&4096||c&&g&32768&&a&16384||w6(d)&&R2(r,d.regularType))&&Z0(r,u)}}function hXe(r){const a=Mn(r,c=>!!(c.flags&134217728)&&J8(c));if(a.length){let c=r.length;for(;c>0;){c--;const u=r[c];u.flags&128&&bt(a,d=>Ese(u,d))&&Z0(r,c)}}}function yXe(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function GTe(r,a){for(const c of a)if(c.flags&1048576){const u=c.origin;c.aliasSymbol||u&&!(u.flags&1048576)?kr(r,c):u&&u.flags&1048576&>e(r,u.types)}}function Fae(r,a){const c=Gb(r);return c.types=a,c}function Oi(r,a=1,c,u,d){if(r.length===0)return Ft;if(r.length===1)return r[0];if(r.length===2&&!d&&(r[0].flags&1048576||r[1].flags&1048576)){const g=a===0?"N":a===2?"S":"L",x=r[0].id=2&&g[0]===Ne&&g[1]===Jt&&Z0(g,1),(x&402664352||x&16384&&x&32768)&&gXe(g,x,!!(a&2)),x&128&&x&134217728&&hXe(g),a===2&&(g=mXe(g,!!(x&524288)),!g))return Y;if(g.length===0)return x&65536?x&4194304?Yn:Jn:x&32768?x&4194304?Ne:$t:Ft}if(!d&&x&1048576){const L=[];GTe(L,r);const X=[];for(const Te of g)bt(L,Ee=>R2(Ee.types,Te))||X.push(Te);if(!c&&L.length===1&&X.length===0)return L[0];if(la(L,(Te,Ee)=>Te+Ee.types.length,0)+X.length===g.length){for(const Te of L)Lae(X,Te);d=Fae(1048576,X)}}const P=(x&36323331?0:32768)|(x&2097152?16777216:0);return Bae(g,P,c,u,d)}function vXe(r,a){let c;const u=[];for(const g of r){const x=b0(g);if(x){if(x.kind!==0&&x.kind!==1||c&&!Rae(c,x))return;c=x,u.push(x.type)}else{const P=a!==2097152?Oc(g):void 0;if(P!==ue&&P!==_e)return}}if(!c)return;const d=yTe(u,a);return rM(c.kind,c.parameterName,c.parameterIndex,d)}function Rae(r,a){return r.kind===a.kind&&r.parameterIndex===a.parameterIndex}function Bae(r,a,c,u,d){if(r.length===0)return Ft;if(r.length===1)return r[0];const x=(d?d.flags&1048576?`|${x0(d.types)}`:d.flags&2097152?`&${x0(d.types)}`:`#${d.type.id}|${x0(r)}`:x0(r))+ET(c,u);let P=Lr.get(x);return P||(P=Ph(1048576),P.objectFlags=a|nM(r,98304),P.types=r,P.origin=d,P.aliasSymbol=c,P.aliasTypeArguments=u,r.length===2&&r[0].flags&512&&r[1].flags&512&&(P.flags|=16,P.intrinsicName="boolean"),Lr.set(x,P)),P}function bXe(r){const a=Ei(r);if(!a.resolvedType){const c=DT(r);a.resolvedType=Oi(er(r.types,Qi),1,c,U8(c))}return a.resolvedType}function xXe(r,a,c){const u=c.flags;return u&2097152?ZTe(r,a,c.types):(Oy(c)?a&16777216||(a|=16777216,r.set(c.id.toString(),c)):(u&3?c===nr&&(a|=8388608):($||!(u&98304))&&(c===Jt&&(a|=262144,c=Ne),r.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),r.set(c.id.toString(),c))),a|=u&473694207),a)}function ZTe(r,a,c){for(const u of c)a=xXe(r,a,jp(u));return a}function TXe(r,a){let c=r.length;for(;c>0;){c--;const u=r[c];(u.flags&4&&a&402653312||u.flags&8&&a&256||u.flags&64&&a&2048||u.flags&4096&&a&8192||u.flags&16384&&a&32768||Oy(u)&&a&470302716)&&Z0(r,c)}}function SXe(r,a){for(const c of r)if(!R2(c.types,a)){const u=a.flags&128?w:a.flags&288?ge:a.flags&2048?he:a.flags&8192?ar:void 0;if(!u||!R2(c.types,u))return!1}return!0}function kXe(r){let a=r.length;const c=Mn(r,u=>!!(u.flags&128));for(;a>0;){a--;const u=r[a];if(u.flags&134217728){for(const d of c)if(z2(d,u)){Z0(r,a);break}else if(J8(u))return!0}}return!1}function YTe(r,a){for(let c=0;c!(u.flags&a))}function CXe(r){let a;const c=zi(r,x=>!!(Mi(x)&32768));if(c<0)return!1;let u=c+1;for(;u!!(X.flags&1048576&&X.types[0].flags&32768))){const X=bt(x,MA)?Jt:Ne;YTe(x,32768),L=Oi([Xo(x),X],1,a,c)}else if(yn(x,X=>!!(X.flags&1048576&&(X.types[0].flags&65536||X.types[1].flags&65536))))YTe(x,65536),L=Oi([Xo(x),Yn],1,a,c);else{if(!sM(x))return Y;const X=EXe(x),Z=bt(X,Te=>!!(Te.flags&2097152))&&jae(X)>jae(x)?Fae(2097152,x):void 0;L=Oi(X,1,a,c,Z)}else L=wXe(x,a,c);vi.set(P,L)}return L}function QTe(r){return la(r,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function sM(r){var a;const c=QTe(r);return c>=1e5?((a=Hi)==null||a.instant(Hi.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:r.map(u=>u.id),size:c}),qe(N,p.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function EXe(r){const a=QTe(r),c=[];for(let u=0;u=0;P--)if(r[P].flags&1048576){const L=r[P].types,X=L.length;d[P]=L[g%X],g=Math.floor(g/X)}const x=Xo(d);x.flags&131072||c.push(x)}return c}function KTe(r){return!(r.flags&3145728)||r.aliasSymbol?1:r.flags&1048576&&r.origin?KTe(r.origin):jae(r.types)}function jae(r){return la(r,(a,c)=>a+KTe(c),0)}function eSe(r,a){return!!(r.flags&76)&&a===du}function AXe(r){const a=Ei(r);if(!a.resolvedType){const c=DT(r),u=er(r.types,Qi),d=u.length===2&&(eSe(u[0],u[1])||eSe(u[1],u[0]));a.resolvedType=Xo(u,c,U8(c),d)}return a.resolvedType}function tSe(r,a){const c=Ph(4194304);return c.type=r,c.indexFlags=a,c}function DXe(r){const a=Gb(4194304);return a.type=r,a}function rSe(r,a){return a&1?r.resolvedStringIndexType||(r.resolvedStringIndexType=tSe(r,1)):r.resolvedIndexType||(r.resolvedIndexType=tSe(r,0))}function NXe(r,a){const c=vg(r),u=n1(r),d=Tv(r.target||r);if(!d&&!(a&2))return u;const g=[];if(QO(r)){if(a4(u))return rSe(r,a);{const L=ad(hA(r));tae(L,8576,!!(a&1),P)}}else Tx(YO(u),P);a4(u)&&Tx(u,P);const x=a&2?E_(Oi(g),L=>!(L.flags&5)):Oi(g);if(x.flags&1048576&&u.flags&1048576&&x0(x.types)===x0(u.types))return u;return x;function P(L){const X=d?$a(d,AA(r.mapper,c,L)):L;g.push(X===w?ya:X)}}function IXe(r){const a=vg(r);return c(Tv(r)||a);function c(u){return u.flags&470810623?!0:u.flags&16777216?u.root.isDistributive&&u.checkType===a:u.flags&137363456?yn(u.types,c):u.flags&8388608?c(u.objectType)&&c(u.indexType):u.flags&33554432?c(u.baseType)&&c(u.constraint):u.flags&268435456?c(u.type):!1}}function wv(r){if(Ea(r))return Ft;if(Um(r))return jp(as(r));if(jc(r))return jp(Rh(r));const a=P4(r);return a!==void 0?Wd(Ba(a)):ht(r)?jp(as(r)):Ft}function OC(r,a,c){if(c||!(c0(r)&24)){let u=Pa(AV(r)).nameType;if(!u){const d=Es(r.valueDeclaration);u=r.escapedName==="default"?Wd("default"):d&&wv(d)||(pN(r)?void 0:Wd(Bu(r)))}if(u&&u.flags&a)return u}return Ft}function nSe(r,a){return!!(r.flags&a||r.flags&2097152&&bt(r.types,c=>nSe(c,a)))}function PXe(r,a,c){const u=c&&(Mi(r)&7||r.aliasSymbol)?DXe(r):void 0,d=er(Pc(r),x=>OC(x,a)),g=er(bp(r),x=>x!==G&&nSe(x.keyType,a)?x.keyType===w&&a&8?ya:x.keyType:Ft);return Oi(Nn(d,g),1,void 0,void 0,u)}function iSe(r,a=0){return!!(r.flags&58982400||Av(r)||Om(r)&&!IXe(r)||r.flags&1048576&&!(a&4)&&lae(r)||r.flags&2097152&&iu(r,465829888)&&bt(r.types,Oy))}function a1(r,a=Re){return r=xg(r),iSe(r,a)?rSe(r,a):r.flags&1048576?Xo(er(r.types,c=>a1(c,a))):r.flags&2097152?Oi(er(r.types,c=>a1(c,a))):Mi(r)&32?NXe(r,a):r===nr?nr:r.flags&2?Ft:r.flags&131073?Os:PXe(r,(a&2?128:402653316)|(a&1?0:12584),a===Re)}function aSe(r){if(Ze)return r;const a=XGe();return a?j8(a,[r,w]):w}function OXe(r){const a=aSe(a1(r));return a.flags&131072?w:a}function MXe(r){const a=Ei(r);if(!a.resolvedType)switch(r.operator){case 143:a.resolvedType=a1(Qi(r.type));break;case 158:a.resolvedType=r.type.kind===155?Hae(oN(r.parent)):Y;break;case 148:a.resolvedType=Qi(r.type);break;default:D.assertNever(r.operator)}return a.resolvedType}function LXe(r){const a=Ei(r);return a.resolvedType||(a.resolvedType=gx([r.head.text,...er(r.templateSpans,c=>c.literal.text)],er(r.templateSpans,c=>Qi(c.type)))),a.resolvedType}function gx(r,a){const c=zi(a,X=>!!(X.flags&1179648));if(c>=0)return sM(a)?El(a[c],X=>gx(r,We(a,c,X))):Y;if(Zn(a,nr))return nr;const u=[],d=[];let g=r[0];if(!L(r,a))return w;if(u.length===0)return Wd(g);if(d.push(g),yn(d,X=>X==="")){if(yn(u,X=>!!(X.flags&4)))return w;if(u.length===1&&J8(u[0]))return u[0]}const x=`${x0(u)}|${er(d,X=>X.length).join(",")}|${d.join("")}`;let P=Yt.get(x);return P||Yt.set(x,P=RXe(d,u)),P;function L(X,Z){for(let Te=0;TeAT(r,c)):a.flags&128?Wd(sSe(r,a.value)):a.flags&134217728?gx(...BXe(r,a.texts,a.types)):a.flags&268435456&&r===a.symbol?a:a.flags&268435461||a4(a)?oSe(r,a):oM(a)?oSe(r,gx(["",""],[a])):a}function sSe(r,a){switch(ZI.get(r.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function BXe(r,a,c){switch(ZI.get(r.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),c.map(u=>AT(r,u))];case 1:return[a.map(u=>u.toLowerCase()),c.map(u=>AT(r,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[AT(r,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[AT(r,c[0]),...c.slice(1)]:c]}return[a,c]}function oSe(r,a){const c=`${oc(r)},${xp(a)}`;let u=Qr.get(c);return u||Qr.set(c,u=jXe(r,a)),u}function jXe(r,a){const c=ky(268435456,r);return c.type=a,c}function zXe(r,a,c,u,d){const g=Ph(8388608);return g.objectType=r,g.indexType=a,g.accessFlags=c,g.aliasSymbol=u,g.aliasTypeArguments=d,g}function wA(r){if(ve)return!1;if(Mi(r)&4096)return!0;if(r.flags&1048576)return yn(r.types,wA);if(r.flags&2097152)return bt(r.types,wA);if(r.flags&465829888){const a=aae(r);return a!==r&&wA(a)}return!1}function FV(r,a){return Mh(r)?r1(r):a&&_u(a)?P4(a):void 0}function zae(r,a){if(a.flags&8208){const c=Sn(r.parent,u=>!$l(u))||r.parent;return n7(c)?ey(c)&&Be(r)&&d8e(c,r):yn(a.declarations,u=>!Qs(u)||!!(b1(u)&268435456))}return!0}function cSe(r,a,c,u,d,g){var X;const x=d&&d.kind===211?d:void 0,P=d&&Ea(d)?void 0:FV(c,d);if(P!==void 0){if(g&256)return O6(a,P)||it;const Z=So(a,P);if(Z){if(g&64&&d&&Z.declarations&&ov(Z)&&zae(d,Z)){const Ee=(X=x==null?void 0:x.argumentExpression)!=null?X:IS(d)?d.indexType:d;Pu(Ee,Z.declarations,P)}if(x){if(FM(Z,x,T5e(x.expression,a.symbol)),lke(x,Z,_7(x))){qe(x.argumentExpression,p.Cannot_assign_to_0_because_it_is_a_read_only_property,ze(Z));return}if(g&8&&(Ei(d).resolvedSymbol=Z),m5e(x,Z))return Wt}const Te=An(Z);return x&&_7(x)!==1?W2(x,Te):d&&IS(d)&&MA(Te)?Oi([Te,Ne]):Te}if($0(a,Yo)&&cy(P)){const Te=+P;if(d&&$0(a,Ee=>!Ee.target.hasRestElement)&&!(g&16)){const Ee=Jae(d);if(Yo(a)){if(Te<0)return qe(Ee,p.A_tuple_type_cannot_be_indexed_with_a_negative_value),Ne;qe(Ee,p.Tuple_type_0_of_length_1_has_no_element_at_index_2,Rt(a),Cv(a),Ba(P))}else qe(Ee,p.Property_0_does_not_exist_on_type_1,Ba(P),Rt(a))}if(Te>=0)return L(Fh(a,ge)),El(a,Ee=>{const De=vM(Ee)||Ne;return g&1?Oi([De,Jt]):De})}}if(!(c.flags&98304)&&df(c,402665900)){if(a.flags&131073)return a;const Z=tM(a,c)||Fh(a,w);if(Z){if(g&2&&Z.keyType!==ge){x&&qe(x,p.Type_0_cannot_be_used_to_index_type_1,Rt(c),Rt(r));return}if(d&&Z.keyType===w&&!df(c,12)){const Te=Jae(d);return qe(Te,p.Type_0_cannot_be_used_as_an_index_type,Rt(c)),g&1?Oi([Z.type,Jt]):Z.type}return L(Z),g&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&vd(c.symbol)===a.symbol)?Oi([Z.type,Jt]):Z.type}if(c.flags&131072)return Ft;if(wA(a))return it;if(x&&!Ooe(a)){if(_4(a)){if(ve&&c.flags&384)return yc.add(ai(x,p.Property_0_does_not_exist_on_type_1,c.value,Rt(a))),Ne;if(c.flags&12){const Te=er(a.properties,Ee=>An(Ee));return Oi(Ht(Te,Ne))}}if(a.symbol===nt&&P!==void 0&&nt.exports.has(P)&&nt.exports.get(P).flags&418)qe(x,p.Property_0_does_not_exist_on_type_1,Ba(P),Rt(a));else if(ve&&!z.suppressImplicitAnyIndexErrors&&!(g&128))if(P!==void 0&&v5e(P,a)){const Te=Rt(a);qe(x,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,P,Te,Te+"["+F_(x.argumentExpression)+"]")}else if(Sv(a,ge))qe(x.argumentExpression,p.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Te;if(P!==void 0&&(Te=_oe(P,a)))Te!==void 0&&qe(x.argumentExpression,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,P,Rt(a),Te);else{const Ee=MKe(a,x,c);if(Ee!==void 0)qe(x,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Rt(a),Ee);else{let De;if(c.flags&1024)De=Ps(void 0,p.Property_0_does_not_exist_on_type_1,"["+Rt(c)+"]",Rt(a));else if(c.flags&8192){const ut=g0(c.symbol,x);De=Ps(void 0,p.Property_0_does_not_exist_on_type_1,"["+ut+"]",Rt(a))}else c.flags&128||c.flags&256?De=Ps(void 0,p.Property_0_does_not_exist_on_type_1,c.value,Rt(a)):c.flags&12&&(De=Ps(void 0,p.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Rt(c),Rt(a)));De=Ps(De,p.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Rt(u),Rt(a)),yc.add(Wy(bn(x),x,De))}}}return}}if(wA(a))return it;if(d){const Z=Jae(d);c.flags&384?qe(Z,p.Property_0_does_not_exist_on_type_1,""+c.value,Rt(a)):c.flags&12?qe(Z,p.Type_0_has_no_matching_index_signature_for_type_1,Rt(a),Rt(c)):qe(Z,p.Type_0_cannot_be_used_as_an_index_type,Rt(c))}if(Fc(c))return c;return;function L(Z){Z&&Z.isReadonly&&x&&(iy(x)||j$(x))&&qe(x,p.Index_signature_in_type_0_only_permits_reading,Rt(a))}}function Jae(r){return r.kind===211?r.argumentExpression:r.kind===198?r.indexType:r.kind===166?r.expression:r}function oM(r){return r.flags&2097152?bt(r.types,a=>!!(a.flags&101248)||oM(a)):!!(r.flags&77)||J8(r)}function J8(r){return!!(r.flags&134217728)&&yn(r.types,oM)||!!(r.flags&268435456)&&oM(r.type)}function MC(r){return!!EA(r)}function k6(r){return!!(EA(r)&4194304)}function a4(r){return!!(EA(r)&8388608)}function EA(r){return r.flags&137363456?(r.objectFlags&2097152||(r.objectFlags|=2097152|la(r.types,(a,c)=>a|EA(c),0)),r.objectFlags&12582912):r.flags&33554432?(r.objectFlags&2097152||(r.objectFlags|=2097152|EA(r.baseType)|EA(r.constraint)),r.objectFlags&12582912):(r.flags&58982400||Om(r)||Av(r)?4194304:0)|(r.flags&331612160&&!J8(r)?8388608:0)}function Ny(r,a){return r.flags&8388608?UXe(r,a):r.flags&16777216?VXe(r,a):r}function lSe(r,a,c){if(r.flags&1048576||r.flags&2097152&&!iSe(r)){const u=er(r.types,d=>Ny(bd(d,a),c));return r.flags&2097152||c?Xo(u):Oi(u)}}function JXe(r,a,c){if(a.flags&1048576){const u=er(a.types,d=>Ny(bd(r,d),c));return c?Xo(u):Oi(u)}}function UXe(r,a){const c=a?"simplifiedForWriting":"simplifiedForReading";if(r[c])return r[c]===dp?r:r[c];r[c]=dp;const u=Ny(r.objectType,a),d=Ny(r.indexType,a),g=JXe(u,d,a);if(g)return r[c]=g;if(!(d.flags&465829888)){const x=lSe(u,d,a);if(x)return r[c]=x}if(Av(u)&&d.flags&296){const x=jC(u,d.flags&8?0:u.target.fixedLength,0,a);if(x)return r[c]=x}return Om(u)&&(!Tv(u)||oTe(u))?r[c]=El(RV(u,r.indexType),x=>Ny(x,a)):r[c]=r}function VXe(r,a){const c=r.checkType,u=r.extendsType,d=s4(r),g=o4(r);if(g.flags&131072&&j2(d)===j2(c)){if(c.flags&1||Zo(hx(c),hx(u)))return Ny(d,a);if(uSe(c,u))return Ft}else if(d.flags&131072&&j2(g)===j2(c)){if(!(c.flags&1)&&Zo(hx(c),hx(u)))return Ft;if(c.flags&1||uSe(c,u))return Ny(g,a)}return r}function uSe(r,a){return!!(Oi([ZO(r,a),Ft]).flags&131072)}function RV(r,a){const c=xd([vg(r)],[a]),u=l4(r.mapper,c);return $a(Ay(r.target||r),u)}function bd(r,a,c=0,u,d,g){return B2(r,a,c,u,d,g)||(u?Y:at)}function _Se(r,a){return $0(r,c=>{if(c.flags&384){const u=r1(c);if(cy(u)){const d=+u;return d>=0&&d0&&!bt(r.elements,a=>OG(a)||MG(a)||R9(a)&&!!(a.questionToken||a.dotDotDotToken))}function dSe(r,a){return MC(r)||a&&Yo(r)&&bt(F2(r),MC)}function Vae(r,a,c,u){let d,g,x=0;for(;;){if(x===1e3)return qe(N,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),Y;const L=$a(j2(r.checkType),a),X=$a(r.extendsType,a);if(L===Y||X===Y)return Y;if(L===nr||X===nr)return nr;const Z=pSe(r.node.checkType)&&pSe(r.node.extendsType)&&Nr(r.node.checkType.elements)===Nr(r.node.extendsType.elements),Te=dSe(L,Z);let Ee;if(r.inferTypeParameters){const ut=ll(r.inferTypeParameters,WXe),jt=ut!==r.inferTypeParameters?xd(r.inferTypeParameters,ut):void 0,Jr=LA(ut,void 0,0);if(jt){const vn=l4(a,jt);for(const br of ut)r.inferTypeParameters.indexOf(br)===-1&&(br.mapper=vn)}Te||Ly(Jr.inferences,L,$a(X,jt),1536);const Hr=l4(jt,Jr.mapper);Ee=a?l4(Hr,a):Hr}const De=Ee?$a(r.extendsType,Ee):X;if(!Te&&!dSe(De,Z)){if(!(De.flags&3)&&(L.flags&1||!Zo(HV(L),HV(De)))){L.flags&1&&(g||(g=[])).push($a(Qi(r.node.trueType),Ee||a));const ut=Qi(r.node.falseType);if(ut.flags&16777216){const jt=ut.root;if(jt.node.parent===r.node&&(!jt.isDistributive||jt.checkType===r.checkType)){r=jt;continue}if(P(ut,a))continue}d=$a(ut,a);break}if(De.flags&3||Zo(hx(L),hx(De))){const ut=Qi(r.node.trueType),jt=Ee||a;if(P(ut,jt))continue;d=$a(ut,jt);break}}d=Ph(16777216),d.root=r,d.checkType=$a(r.checkType,a),d.extendsType=$a(r.extendsType,a),d.mapper=a,d.combinedMapper=Ee,d.aliasSymbol=c||r.aliasSymbol,d.aliasTypeArguments=c?u:Ev(r.aliasTypeArguments,a);break}return g?Oi(Ht(g,d)):d;function P(L,X){if(L.flags&16777216&&X){const Z=L.root;if(Z.outerTypeParameters){const Te=l4(L.mapper,X),Ee=er(Z.outerTypeParameters,jt=>c4(jt,Te)),De=xd(Z.outerTypeParameters,Ee),ut=Z.isDistributive?c4(Z.checkType,De):void 0;if(!ut||ut===Z.checkType||!(ut.flags&1179648))return r=Z,a=De,c=void 0,u=void 0,Z.aliasSymbol&&x++,!0}}return!1}}function s4(r){return r.resolvedTrueType||(r.resolvedTrueType=$a(Qi(r.root.node.trueType),r.mapper))}function o4(r){return r.resolvedFalseType||(r.resolvedFalseType=$a(Qi(r.root.node.falseType),r.mapper))}function qXe(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?$a(Qi(r.root.node.trueType),r.combinedMapper):s4(r))}function mSe(r){let a;return r.locals&&r.locals.forEach(c=>{c.flags&262144&&(a=Ht(a,hl(c)))}),a}function $Xe(r){return r.isDistributive&&(_M(r.checkType,r.node.trueType)||_M(r.checkType,r.node.falseType))}function HXe(r){const a=Ei(r);if(!a.resolvedType){const c=Qi(r.checkType),u=DT(r),d=U8(u),g=AC(r,!0),x=d?g:Mn(g,L=>_M(L,r)),P={node:r,checkType:c,extendsType:Qi(r.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:mSe(r),outerTypeParameters:x,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:d};a.resolvedType=Vae(P,void 0),x&&(P.instantiations=new Map,P.instantiations.set(x0(x),a.resolvedType))}return a.resolvedType}function GXe(r){const a=Ei(r);return a.resolvedType||(a.resolvedType=fx(ei(r.typeParameter))),a.resolvedType}function gSe(r){return Be(r)?[r]:Ht(gSe(r.left),r.right)}function XXe(r){var a;const c=Ei(r);if(!c.resolvedType){if(!E4(r))return qe(r.argument,p.String_literal_expected),c.resolvedSymbol=Kr,c.resolvedType=Y;const u=r.isTypeOf?111551:r.flags&8388608?900095:788968,d=z_(r,r.argument.literal);if(!d)return c.resolvedSymbol=Kr,c.resolvedType=Y;const g=!!((a=d.exports)!=null&&a.get("export=")),x=om(d,!1);if(Eu(r.qualifier))if(x.flags&u)c.resolvedType=hSe(r,c,x,u);else{const P=u===111551?p.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;qe(r,P,r.argument.literal.text),c.resolvedSymbol=Kr,c.resolvedType=Y}else{const P=gSe(r.qualifier);let L=x,X;for(;X=P.shift();){const Z=P.length?1920:u,Te=Ec(nu(L)),Ee=r.isTypeOf||jn(r)&&g?So(An(Te),X.escapedText,!1,!0):void 0,De=r.isTypeOf?void 0:pf(Nm(Te),X.escapedText,Z),ut=De!=null?De:Ee;if(!ut)return qe(X,p.Namespace_0_has_no_exported_member_1,g0(L),il(X)),c.resolvedType=Y;Ei(X).resolvedSymbol=ut,Ei(X.parent).resolvedSymbol=ut,L=ut}c.resolvedType=hSe(r,c,L,u)}}return c.resolvedType}function hSe(r,a,c,u){const d=nu(c);return a.resolvedSymbol=d,u===111551?G5e(An(c),r):PV(r,d)}function ySe(r){const a=Ei(r);if(!a.resolvedType){const c=DT(r);if(P2(r.symbol).size===0&&!c)a.resolvedType=du;else{let u=Af(16,r.symbol);u.aliasSymbol=c,u.aliasTypeArguments=U8(c),Mk(r)&&r.isArrayType&&(u=ep(u)),a.resolvedType=u}}return a.resolvedType}function DT(r){let a=r.parent;for(;DS(a)||E7(a)||NS(a)&&a.operator===148;)a=a.parent;return nN(a)?ei(a):void 0}function U8(r){return r?N2(r):void 0}function BV(r){return!!(r.flags&524288)&&!Om(r)}function Wae(r){return Py(r)||!!(r.flags&474058748)}function qae(r,a){if(!(r.flags&1048576))return r;if(yn(r.types,Wae))return on(r.types,Py)||Ua;const c=on(r.types,g=>!Wae(g));if(!c||on(r.types,g=>g!==c&&!Wae(g)))return r;return d(c);function d(g){const x=To();for(const L of Pc(g))if(!(c0(L)&24)){if(jV(L)){const X=L.flags&65536&&!(L.flags&32768),Te=vc(16777220,L.escapedName,eae(L)|(a?8:0));Te.links.type=X?Ne:Oo(An(L),!0),Te.declarations=L.declarations,Te.links.nameType=Pa(L).nameType,Te.links.syntheticOrigin=L,x.set(L.escapedName,Te)}}const P=yu(g.symbol,x,tt,tt,bp(g));return P.objectFlags|=131200,P}}function C6(r,a,c,u,d){if(r.flags&1||a.flags&1)return it;if(r.flags&2||a.flags&2)return at;if(r.flags&131072)return a;if(a.flags&131072)return r;if(r=qae(r,d),r.flags&1048576)return sM([r,a])?El(r,X=>C6(X,a,c,u,d)):Y;if(a=qae(a,d),a.flags&1048576)return sM([r,a])?El(a,X=>C6(r,X,c,u,d)):Y;if(a.flags&473960444)return r;if(k6(r)||k6(a)){if(Py(r))return a;if(r.flags&2097152){const X=r.types,Z=X[X.length-1];if(BV(Z)&&BV(a))return Xo(Nn(X.slice(0,X.length-1),[C6(Z,a,c,u,d)]))}return Xo([r,a])}const g=To(),x=new Set,P=r===Ua?bp(a):tTe([r,a]);for(const X of Pc(a))c0(X)&24?x.add(X.escapedName):jV(X)&&g.set(X.escapedName,$ae(X,d));for(const X of Pc(r))if(!(x.has(X.escapedName)||!jV(X)))if(g.has(X.escapedName)){const Z=g.get(X.escapedName),Te=An(Z);if(Z.flags&16777216){const Ee=Nn(X.declarations,Z.declarations),De=4|X.flags&16777216,ut=vc(De,X.escapedName),jt=An(X),Jr=sW(jt),Hr=sW(Te);ut.links.type=Jr===Hr?jt:Oi([jt,Hr],2),ut.links.leftSpread=X,ut.links.rightSpread=Z,ut.declarations=Ee,ut.links.nameType=Pa(X).nameType,g.set(X.escapedName,ut)}}else g.set(X.escapedName,$ae(X,d));const L=yu(c,g,tt,tt,ll(P,X=>ZXe(X,d)));return L.objectFlags|=2228352|u,L}function jV(r){var a;return!bt(r.declarations,qp)&&(!(r.flags&106496)||!((a=r.declarations)!=null&&a.some(c=>Yi(c.parent))))}function $ae(r,a){const c=r.flags&65536&&!(r.flags&32768);if(!c&&a===wg(r))return r;const u=4|r.flags&16777216,d=vc(u,r.escapedName,eae(r)|(a?8:0));return d.links.type=c?Ne:An(r),d.declarations=r.declarations,d.links.nameType=Pa(r).nameType,d.links.syntheticOrigin=r,d}function ZXe(r,a){return r.isReadonly!==a?j1(r.keyType,r.type,a,r.declaration):r}function cM(r,a,c,u){const d=ky(r,c);return d.value=a,d.regularType=u||d,d}function V8(r){if(r.flags&2976){if(!r.freshType){const a=cM(r.flags,r.value,r.symbol,r);a.freshType=a,r.freshType=a}return r.freshType}return r}function jp(r){return r.flags&2976?r.regularType:r.flags&1048576?r.regularType||(r.regularType=El(r,jp)):r}function w6(r){return!!(r.flags&2976)&&r.freshType===r}function Wd(r){let a;return ia.get(r)||(ia.set(r,a=cM(128,r)),a)}function Sg(r){let a;return Wa.get(r)||(Wa.set(r,a=cM(256,r)),a)}function zV(r){let a;const c=g3(r);return bi.get(c)||(bi.set(c,a=cM(2048,r)),a)}function YXe(r,a,c){let u;const d=`${a}${typeof r=="string"?"@":"#"}${r}`,g=1024|(typeof r=="string"?128:256);return Pt.get(d)||(Pt.set(d,u=cM(g,r,c)),u)}function QXe(r){if(r.literal.kind===106)return Yn;const a=Ei(r);return a.resolvedType||(a.resolvedType=jp(as(r.literal))),a.resolvedType}function KXe(r){const a=ky(8192,r);return a.escapedName=`__@${a.symbol.escapedName}@${oc(a.symbol)}`,a}function Hae(r){if(uue(r)){const a=QL(r)?Im(r.left):Im(r);if(a){const c=Pa(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=KXe(a))}}return ar}function eZe(r){const a=_d(r,!1,!1),c=a&&a.parent;if(c&&(Yi(c)||c.kind===263)&&!so(a)&&(!Uu(a)||c3(r,a.body)))return Bp(ei(c)).thisType;if(c&&Dc(c)&&Un(c.parent)&&Au(c.parent)===6)return Bp(Im(c.parent.left).parent).thisType;const u=r.flags&8388608?N4(r):void 0;return u&&_l(u)&&Un(u.parent)&&Au(u.parent)===3?Bp(Im(u.parent.left).parent).thisType:c1(a)&&c3(r,a.body)?Bp(ei(a)).thisType:(qe(r,p.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Y)}function JV(r){const a=Ei(r);return a.resolvedType||(a.resolvedType=eZe(r)),a.resolvedType}function vSe(r){return Qi(lM(r.type)||r.type)}function lM(r){switch(r.kind){case 195:return lM(r.type);case 188:if(r.elements.length===1&&(r=r.elements[0],r.kind===190||r.kind===201&&r.dotDotDotToken))return lM(r.type);break;case 187:return r.elementType}}function tZe(r){const a=Ei(r);return a.resolvedType||(a.resolvedType=r.dotDotDotToken?vSe(r):Oo(Qi(r.type),!0,!!r.questionToken))}function Qi(r){return LGe(bSe(r),r)}function bSe(r){switch(r.kind){case 133:case 318:case 319:return it;case 159:return at;case 154:return w;case 150:return ge;case 162:return he;case 136:return rt;case 155:return ar;case 116:return st;case 157:return Ne;case 106:return Yn;case 146:return Ft;case 151:return r.flags&262144&&!ve?it:Ui;case 141:return Q;case 196:case 110:return JV(r);case 200:return QXe(r);case 182:return wae(r);case 181:return r.assertsModifier?st:rt;case 232:return wae(r);case 185:return ITe(r);case 187:case 188:return lXe(r);case 189:return pXe(r);case 191:return bXe(r);case 192:return AXe(r);case 320:return FGe(r);case 322:return Oo(Qi(r.type));case 201:return tZe(r);case 195:case 321:case 315:return Qi(r.type);case 190:return vSe(r);case 324:return Qnt(r);case 183:case 184:case 186:case 328:case 323:case 329:return ySe(r);case 197:return MXe(r);case 198:return fSe(r);case 199:return Uae(r);case 193:return HXe(r);case 194:return GXe(r);case 202:return LXe(r);case 204:return XXe(r);case 80:case 165:case 210:const a=H0(r);return a?hl(a):Y;default:return Y}}function UV(r,a,c){if(r&&r.length)for(let u=0;uu.typeParameter),er(c,()=>at))}function l4(r,a){return r?WV(4,r,a):a}function iZe(r,a){return r?WV(5,r,a):a}function NT(r,a,c){return c?WV(5,E6(r,a),c):E6(r,a)}function AA(r,a,c){return r?WV(5,r,E6(a,c)):E6(a,c)}function aZe(r){return!r.constraint&&!Tae(r)||r.constraint===ru?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=h0(r.symbol),r.restrictiveInstantiation.constraint=ru,r.restrictiveInstantiation)}function qV(r){const a=h0(r.symbol);return a.target=r,a}function sZe(r,a){return rM(r.kind,r.parameterName,r.parameterIndex,$a(r.type,a))}function W8(r,a,c){let u;if(r.typeParameters&&!c){u=er(r.typeParameters,qV),a=l4(xd(r.typeParameters,u),a);for(const g of u)g.mapper=a}const d=Lh(r.declaration,u,r.thisParameter&&Xae(r.thisParameter,a),UV(r.parameters,a,Xae),void 0,void 0,r.minArgumentCount,r.flags&39);return d.target=r,d.mapper=a,d}function Xae(r,a){const c=Pa(r);if(c.type&&!I6(c.type))return r;Du(r)&1&&(r=c.target,a=l4(c.mapper,a));const u=vc(r.flags,r.escapedName,1|Du(r)&53256);return u.declarations=r.declarations,u.parent=r.parent,u.links.target=r,u.links.mapper=a,r.valueDeclaration&&(u.valueDeclaration=r.valueDeclaration),c.nameType&&(u.links.nameType=c.nameType),u}function oZe(r,a,c,u){const d=r.objectFlags&4||r.objectFlags&8388608?r.node:r.symbol.declarations[0],g=Ei(d),x=r.objectFlags&4?g.resolvedType:r.objectFlags&64?r.target:r;let P=g.outerTypeParameters;if(!P){let L=AC(d,!0);if(c1(d)){const Z=gTe(d);L=Et(L,Z)}P=L||tt;const X=r.objectFlags&8388612?[d]:r.symbol.declarations;P=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?Mn(P,Z=>bt(X,Te=>_M(Z,Te))):P,g.outerTypeParameters=P}if(P.length){const L=l4(r.mapper,a),X=er(P,ut=>c4(ut,L)),Z=c||r.aliasSymbol,Te=c?u:Ev(r.aliasTypeArguments,a),Ee=x0(X)+ET(Z,Te);x.instantiations||(x.instantiations=new Map,x.instantiations.set(x0(P)+ET(x.aliasSymbol,x.aliasTypeArguments),x));let De=x.instantiations.get(Ee);if(!De){const ut=xd(P,X);if(De=x.objectFlags&4?Sae(r.target,r.node,ut,Z,Te):x.objectFlags&32?SSe(x,ut,Z,Te):Yae(x,ut,Z,Te),De.flags&138117121&&!(De.objectFlags&524288)){const jt=bt(X,I6);De.objectFlags&524288||(De.objectFlags|=524288|(jt?1048576:0))}x.instantiations.set(Ee,De)}return De}return r}function cZe(r){return!(r.parent.kind===182&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===204&&r.parent.typeArguments&&r===r.parent.qualifier)}function _M(r,a){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){const u=r.symbol.declarations[0].parent;for(let d=a;d!==u;d=d.parent)if(!d||d.kind===240||d.kind===193&&js(d.extendsType,c))return!0;return c(a)}return!0;function c(u){switch(u.kind){case 196:return!!r.isThisType;case 80:return!r.isThisType&&ry(u)&&cZe(u)&&bSe(u)===r;case 185:const d=u.exprName,g=Tm(d);if(!f3(g)){const x=q0(g),P=r.symbol.declarations[0],L=P.kind===167?P.parent:r.isThisType?P:void 0;if(x.declarations&&L)return bt(x.declarations,X=>c3(X,L))||bt(u.typeArguments,c)}return!0;case 173:case 172:return!u.type&&!!u.body||bt(u.typeParameters,c)||bt(u.parameters,c)||!!u.type&&c(u.type)}return!!js(u,c)}}function $V(r){const a=n1(r);if(a.flags&4194304){const c=j2(a.type);if(c.flags&262144)return c}}function SSe(r,a,c,u){const d=$V(r);if(d){const g=$a(d,a);if(d!==g)return k8e(xg(g),x=>{if(x.flags&61603843&&x!==nr&&!Ac(x)){if(!r.declaration.nameType){let P;if(Ym(x)||x.flags&1&&vv(d,4)<0&&(P=yp(d))&&$0(P,D6))return uZe(x,r,NT(d,x,a));if(Av(x))return lZe(x,r,d,a);if(Yo(x))return _Ze(x,r,NT(d,x,a))}return Yae(r,NT(d,x,a))}return x},c,u)}return $a(n1(r),a)===nr?nr:Yae(r,a,c,u)}function Zae(r,a){return a&1?!0:a&2?!1:r}function lZe(r,a,c,u){const d=r.target.elementFlags,g=er(F2(r),(P,L)=>{const X=d[L]&8?P:d[L]&4?ep(P):Tg([P],[d[L]]);return SSe(a,NT(c,X,u))}),x=Zae(r.target.readonly,R1(a));return Tg(g,er(g,P=>8),x)}function uZe(r,a,c){const u=kSe(a,ge,!0,c);return Ac(u)?Y:ep(u,Zae(RC(r),R1(a)))}function _Ze(r,a,c){const u=r.target.elementFlags,d=er(F2(r),(L,X)=>kSe(a,Wd(""+X),!!(u[X]&2),c)),g=R1(a),x=g&4?er(u,L=>L&1?2:L):g&8?er(u,L=>L&2?1:L):u,P=Zae(r.target.readonly,g);return Zn(d,Y)?Y:Tg(d,x,P,r.target.labeledElementDeclarations)}function kSe(r,a,c,u){const d=AA(u,vg(r),a),g=$a(Ay(r.target||r),d),x=R1(r);return $&&x&4&&!iu(g,49152)?Dv(g,!0):$&&x&8&&c?T0(g,524288):g}function Yae(r,a,c,u){const d=Af(r.objectFlags&-1572865|64,r.symbol);if(r.objectFlags&32){d.declaration=r.declaration;const g=vg(r),x=qV(g);d.typeParameter=x,a=l4(E6(g,x),a),x.mapper=a}return r.objectFlags&8388608&&(d.node=r.node),d.target=r,d.mapper=a,d.aliasSymbol=c||r.aliasSymbol,d.aliasTypeArguments=c?u:Ev(r.aliasTypeArguments,a),d.objectFlags|=d.aliasTypeArguments?nM(d.aliasTypeArguments):0,d}function Qae(r,a,c,u){const d=r.root;if(d.outerTypeParameters){const g=er(d.outerTypeParameters,L=>c4(L,a)),x=x0(g)+ET(c,u);let P=d.instantiations.get(x);if(!P){const L=xd(d.outerTypeParameters,g),X=d.checkType,Z=d.isDistributive?c4(X,L):void 0;P=Z&&X!==Z&&Z.flags&1179648?k8e(xg(Z),Te=>Vae(d,NT(X,Te,L)),c,u):Vae(d,L,c,u),d.instantiations.set(x,P)}return P}return r}function $a(r,a){return r&&a?CSe(r,a,void 0,void 0):r}function CSe(r,a,c,u){var d;if(!I6(r))return r;if(E===100||k>=5e6)return(d=Hi)==null||d.instant(Hi.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:E,instantiationCount:k}),qe(N,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),Y;T++,k++,E++;const g=fZe(r,a,c,u);return E--,g}function fZe(r,a,c,u){const d=r.flags;if(d&262144)return c4(r,a);if(d&524288){const g=r.objectFlags;if(g&52){if(g&4&&!r.node){const x=r.resolvedTypeArguments,P=Ev(x,a);return P!==x?Oae(r.target,P):r}return g&1024?pZe(r,a):oZe(r,a,c,u)}return r}if(d&3145728){const g=r.flags&1048576?r.origin:void 0,x=g&&g.flags&3145728?g.types:r.types,P=Ev(x,a);if(P===x&&c===r.aliasSymbol)return r;const L=c||r.aliasSymbol,X=c?u:Ev(r.aliasTypeArguments,a);return d&2097152||g&&g.flags&2097152?Xo(P,L,X):Oi(P,1,L,X)}if(d&4194304)return a1($a(r.type,a));if(d&134217728)return gx(r.texts,Ev(r.types,a));if(d&268435456)return AT(r.symbol,$a(r.type,a));if(d&8388608){const g=c||r.aliasSymbol,x=c?u:Ev(r.aliasTypeArguments,a);return bd($a(r.objectType,a),$a(r.indexType,a),r.accessFlags,void 0,g,x)}if(d&16777216)return Qae(r,l4(r.mapper,a),c,u);if(d&33554432){const g=$a(r.baseType,a),x=$a(r.constraint,a);return g.flags&8650752&&MC(x)?kae(g,x):x.flags&3||Zo(hx(g),hx(x))?g:g.flags&8650752?kae(g,x):Xo([x,g])}return r}function pZe(r,a){const c=$a(r.mappedType,a);if(!(Mi(c)&32))return r;const u=$a(r.constraintType,a);if(!(u.flags&4194304))return r;const d=t8e($a(r.source,a),c,u);return d||r}function HV(r){return r.flags&402915327?r:r.permissiveInstantiation||(r.permissiveInstantiation=$a(r,Na))}function hx(r){return r.flags&402915327?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=$a(r,ti),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function dZe(r,a){return j1(r.keyType,$a(r.type,a),r.isReadonly,r.declaration)}function Xm(r){switch(D.assert(r.kind!==173||tg(r)),r.kind){case 217:case 218:case 173:case 261:return wSe(r);case 209:return bt(r.properties,Xm);case 208:return bt(r.elements,Xm);case 226:return Xm(r.whenTrue)||Xm(r.whenFalse);case 225:return(r.operatorToken.kind===57||r.operatorToken.kind===61)&&(Xm(r.left)||Xm(r.right));case 302:return Xm(r.initializer);case 216:return Xm(r.expression);case 291:return bt(r.properties,Xm)||w1(r.parent)&&bt(r.parent.parent.children,Xm);case 290:{const{initializer:a}=r;return!!a&&Xm(a)}case 293:{const{expression:a}=r;return!!a&&Xm(a)}}return!1}function wSe(r){return GF(r)||mZe(r)}function mZe(r){return r.typeParameters||Og(r)||!r.body?!1:r.body.kind!==240?Xm(r.body):!!i3(r.body,a=>!!a.expression&&Xm(a.expression))}function GV(r){return(hk(r)||tg(r))&&wSe(r)}function ESe(r){if(r.flags&524288){const a=bg(r);if(a.constructSignatures.length||a.callSignatures.length){const c=Af(16,r.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=tt,c.constructSignatures=tt,c.indexInfos=tt,c}}else if(r.flags&2097152)return Xo(er(r.types,ESe));return r}function Iy(r,a){return s1(r,a,yd)}function DA(r,a){return s1(r,a,yd)?-1:0}function Kae(r,a){return s1(r,a,td)?-1:0}function gZe(r,a){return s1(r,a,N1)?-1:0}function z2(r,a){return s1(r,a,N1)}function ASe(r,a){return s1(r,a,Hm)}function Zo(r,a){return s1(r,a,td)}function A6(r,a){return r.flags&1048576?yn(r.types,c=>A6(c,a)):a.flags&1048576?bt(a.types,c=>A6(r,c)):r.flags&2097152?bt(r.types,c=>A6(c,a)):r.flags&58982400?A6(vp(r)||at,a):Oy(a)?!!(r.flags&67633152):a===gu?!!(r.flags&67633152)&&!Oy(r):a===tl?!!(r.flags&524288)&&Mse(r):P8(r,I8(a))||Ym(a)&&!RC(a)&&A6(r,ff)}function XV(r,a){return s1(r,a,hd)}function fM(r,a){return XV(r,a)||XV(a,r)}function Td(r,a,c,u,d,g){return Zm(r,a,td,c,u,d,g)}function J2(r,a,c,u,d,g){return ese(r,a,td,c,u,d,g,void 0)}function ese(r,a,c,u,d,g,x,P){return s1(r,a,c)?!0:!u||!NA(d,r,a,c,g,x,P)?Zm(r,a,c,u,g,x,P):!1}function DSe(r){return!!(r.flags&16777216||r.flags&2097152&&bt(r.types,DSe))}function NA(r,a,c,u,d,g,x){if(!r||DSe(c))return!1;if(!Zm(a,c,u,void 0)&&hZe(r,a,c,u,d,g,x))return!0;switch(r.kind){case 293:case 216:return NA(r.expression,a,c,u,d,g,x);case 225:switch(r.operatorToken.kind){case 64:case 28:return NA(r.right,a,c,u,d,g,x)}break;case 209:return CZe(r,a,c,u,g,x);case 208:return SZe(r,a,c,u,g,x);case 291:return TZe(r,a,c,u,g,x);case 218:return yZe(r,a,c,u,g,x)}return!1}function hZe(r,a,c,u,d,g,x){const P=ro(a,0),L=ro(a,1);for(const X of[L,P])if(bt(X,Z=>{const Te=Oc(Z);return!(Te.flags&131073)&&Zm(Te,c,u,void 0)})){const Z=x||{};Td(a,c,r,d,g,Z);const Te=Z.errors[Z.errors.length-1];return ic(Te,ai(r,X===L?p.Did_you_mean_to_use_new_with_this_expression:p.Did_you_mean_to_call_this_expression)),!0}return!1}function yZe(r,a,c,u,d,g){if(oo(r.body)||bt(r.parameters,LL))return!1;const x=MT(a);if(!x)return!1;const P=ro(c,0);if(!Nr(P))return!1;const L=r.body,X=Oc(x),Z=Oi(er(P,Oc));if(!Zm(X,Z,u,void 0)){const Te=L&&NA(L,X,Z,u,void 0,d,g);if(Te)return Te;const Ee=g||{};if(Zm(X,Z,u,L,void 0,d,Ee),Ee.errors)return c.symbol&&Nr(c.symbol.declarations)&&ic(Ee.errors[Ee.errors.length-1],ai(c.symbol.declarations[0],p.The_expected_type_comes_from_the_return_type_of_this_signature)),!(vf(r)&2)&&!Hu(X,"then")&&Zm(UM(X),Z,u,void 0)&&ic(Ee.errors[Ee.errors.length-1],ai(r,p.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function NSe(r,a,c){const u=B2(a,c);if(u)return u;if(a.flags&1048576){const d=BSe(r,a);if(d)return B2(d,c)}}function ISe(r,a){NM(r,a,!1);const c=XC(r,1);return JA(),c}function pM(r,a,c,u,d,g){let x=!1;for(const P of r){const{errorNode:L,innerExpression:X,nameType:Z,errorMessage:Te}=P;let Ee=NSe(a,c,Z);if(!Ee||Ee.flags&8388608)continue;let De=B2(a,Z);if(!De)continue;const ut=FV(Z,void 0);if(!Zm(De,Ee,u,void 0)){const jt=X&&NA(X,De,Ee,u,void 0,d,g);if(x=!0,!jt){const Jr=g||{},Hr=X?ISe(X,De):De;if(Ue&&YV(Hr,Ee)){const vn=ai(L,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Rt(Hr),Rt(Ee));yc.add(vn),Jr.errors=[vn]}else{const vn=!!(ut&&(So(c,ut)||Kr).flags&16777216),br=!!(ut&&(So(a,ut)||Kr).flags&16777216);Ee=yx(Ee,vn),De=yx(De,vn&&br),Zm(Hr,Ee,u,L,Te,d,Jr)&&Hr!==De&&Zm(De,Ee,u,L,Te,d,Jr)}if(Jr.errors){const vn=Jr.errors[Jr.errors.length-1],br=Mh(Z)?r1(Z):void 0,Tr=br!==void 0?So(c,br):void 0;let $n=!1;if(!Tr){const Sr=tM(c,Z);Sr&&Sr.declaration&&!bn(Sr.declaration).hasNoDefaultLib&&($n=!0,ic(vn,ai(Sr.declaration,p.The_expected_type_comes_from_this_index_signature)))}if(!$n&&(Tr&&Nr(Tr.declarations)||c.symbol&&Nr(c.symbol.declarations))){const Sr=Tr&&Nr(Tr.declarations)?Tr.declarations[0]:c.symbol.declarations[0];bn(Sr).hasNoDefaultLib||ic(vn,ai(Sr,p.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,br&&!(Z.flags&8192)?Ba(br):Rt(Z),Rt(c)))}}}}}return x}function vZe(r,a,c,u,d,g){const x=E_(c,nW),P=E_(c,Z=>!nW(Z)),L=P!==Ft?Yoe(13,0,P,void 0):void 0;let X=!1;for(let Z=r.next();!Z.done;Z=r.next()){const{errorNode:Te,innerExpression:Ee,nameType:De,errorMessage:ut}=Z.value;let jt=L;const Jr=x!==Ft?NSe(a,x,De):void 0;if(Jr&&!(Jr.flags&8388608)&&(jt=L?Oi([L,Jr]):Jr),!jt)continue;let Hr=B2(a,De);if(!Hr)continue;const vn=FV(De,void 0);if(!Zm(Hr,jt,u,void 0)){const br=Ee&&NA(Ee,Hr,jt,u,void 0,d,g);if(X=!0,!br){const Tr=g||{},$n=Ee?ISe(Ee,Hr):Hr;if(Ue&&YV($n,jt)){const Sr=ai(Te,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Rt($n),Rt(jt));yc.add(Sr),Tr.errors=[Sr]}else{const Sr=!!(vn&&(So(x,vn)||Kr).flags&16777216),Br=!!(vn&&(So(a,vn)||Kr).flags&16777216);jt=yx(jt,Sr),Hr=yx(Hr,Sr&&Br),Zm($n,jt,u,Te,ut,d,Tr)&&$n!==Hr&&Zm(Hr,jt,u,Te,ut,d,Tr)}}}}return X}function*bZe(r){if(Nr(r.properties))for(const a of r.properties)RS(a)||Qse(jN(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Wd(jN(a.name))})}function*xZe(r,a){if(!Nr(r.children))return;let c=0;for(let u=0;u1;let Jr,Hr;if(Dae(!1)!==qa){const br=UTe(it);Jr=E_(De,Tr=>Zo(Tr,br)),Hr=E_(De,Tr=>!Zo(Tr,br))}else Jr=E_(De,nW),Hr=E_(De,br=>!nW(br));if(jt){if(Jr!==Ft){const br=Tg(EW(X,0)),Tr=xZe(X,L);x=vZe(Tr,br,Jr,u,d,g)||x}else if(!s1(bd(a,Ee),De,u)){x=!0;const br=qe(X.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Te,Rt(De));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(br)}}else if(Hr!==Ft){const br=ut[0],Tr=PSe(br,Ee,L);Tr&&(x=pM(function*(){yield Tr}(),a,c,u,d,g)||x)}else if(!s1(bd(a,Ee),De,u)){x=!0;const br=qe(X.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Te,Rt(De));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(br)}}return x;function L(){if(!P){const X=F_(r.parent.tagName),Z=PM(kx(r)),Te=Z===void 0?"children":Ba(Z),Ee=bd(c,Wd(Te)),De=p._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;P=Xs(fa({},De),{key:"!!ALREADY FORMATTED!!",message:SH(void 0,De,X,Te,Rt(Ee))})}return P}}function*OSe(r,a){const c=Nr(r.elements);if(c)for(let u=0;uL:l1(r)>L))return u&&!(c&8)&&d(p.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,l1(r),L),0;r.typeParameters&&r.typeParameters!==a.typeParameters&&(a=DGe(a),r=A5e(r,a,void 0,x));const Z=um(r),Te=HA(r),Ee=HA(a);(Te||Ee)&&$a(Te||Ee,P);const De=a.declaration?a.declaration.kind:0,ut=!(c&3)&&ee&&De!==173&&De!==172&&De!==175;let jt=-1;const Jr=T6(r);if(Jr&&Jr!==st){const br=T6(a);if(br){const Tr=!ut&&x(Jr,br,!1)||x(br,Jr,u);if(!Tr)return u&&d(p.The_this_types_of_each_signature_are_incompatible),0;jt&=Tr}}const Hr=Te||Ee?Math.min(Z,L):Math.max(Z,L),vn=Te||Ee?Hr-1:-1;for(let br=0;br=l1(r)&&br=3&&a[0].flags&32768&&a[1].flags&65536&&bt(a,Oy)?67108864:0)}return!!(r.objectFlags&67108864)}return!1}function LC(r){return!!((r.flags&1048576?r.types[0]:r).flags&32768)}function LSe(r){return r.flags&524288&&!Om(r)&&Pc(r).length===0&&bp(r).length===1&&!!Fh(r,w)||r.flags&3145728&&yn(r.types,LSe)||!1}function nse(r,a,c){const u=r.flags&8?vd(r):r,d=a.flags&8?vd(a):a;if(u===d)return!0;if(u.escapedName!==d.escapedName||!(u.flags&256)||!(d.flags&256))return!1;const g=oc(u)+","+oc(d),x=yy.get(g);if(x!==void 0&&!(!(x&4)&&x&2&&c))return!!(x&1);const P=An(d);for(const L of Pc(An(u)))if(L.flags&8){const X=So(P,L.escapedName);if(!X||!(X.flags&8))return c?(c(p.Property_0_is_missing_in_type_1,Bu(L),Rt(hl(d),void 0,64)),yy.set(g,6)):yy.set(g,2),!1}return yy.set(g,1),!0}function IA(r,a,c,u){const d=r.flags,g=a.flags;return g&1||d&131072||r===nr||g&2&&!(c===Hm&&d&1)?!0:g&131072?!1:!!(d&402653316&&g&4||d&128&&d&1024&&g&128&&!(g&1024)&&r.value===a.value||d&296&&g&8||d&256&&d&1024&&g&256&&!(g&1024)&&r.value===a.value||d&2112&&g&64||d&528&&g&16||d&12288&&g&4096||d&32&&g&32&&r.symbol.escapedName===a.symbol.escapedName&&nse(r.symbol,a.symbol,u)||d&1024&&g&1024&&(d&1048576&&g&1048576&&nse(r.symbol,a.symbol,u)||d&2944&&g&2944&&r.value===a.value&&nse(r.symbol,a.symbol,u))||d&32768&&(!$&&!(g&3145728)||g&49152)||d&65536&&(!$&&!(g&3145728)||g&65536)||d&524288&&g&67108864&&!(c===Hm&&Oy(r)&&!(Mi(r)&8192))||(c===td||c===hd)&&(d&1||d&8&&(g&32||g&256&&g&1024)||d&256&&!(d&1024)&&(g&32||g&256&&g&1024&&r.value===a.value)||DZe(a)))}function s1(r,a,c){if(w6(r)&&(r=r.regularType),w6(a)&&(a=a.regularType),r===a)return!0;if(c!==yd){if(c===hd&&!(a.flags&131072)&&IA(a,r,c)||IA(r,a,c))return!0}else if(!((r.flags|a.flags)&61865984)){if(r.flags!==a.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&a.flags&524288){const u=c.get(cse(r,a,0,c,!1));if(u!==void 0)return!!(u&1)}return r.flags&469499904||a.flags&469499904?Zm(r,a,c,void 0):!1}function FSe(r,a){return Mi(r)&2048&&Qse(a.escapedName)}function dM(r,a){for(;;){const c=w6(r)?r.regularType:Av(r)?IZe(r,a):Mi(r)&4?r.node?kv(r.target,yl(r)):_se(r)||r:r.flags&3145728?NZe(r,a):r.flags&33554432?a?r.baseType:Cae(r):r.flags&25165824?Ny(r,a):r;if(c===r)return c;r=c}}function NZe(r,a){const c=xg(r);if(c!==r)return c;if(r.flags&2097152&&bt(r.types,Oy)){const u=ll(r.types,d=>dM(d,a));if(u!==r.types)return Xo(u)}return r}function IZe(r,a){const c=F2(r),u=ll(c,d=>d.flags&25165824?Ny(d,a):d);return c!==u?Mae(r.target,u):r}function Zm(r,a,c,u,d,g,x){var P;let L,X,Z,Te,Ee,De=0,ut=0,jt=0,Jr=0,Hr=!1,vn=0,br,Tr;D.assert(c!==yd||!u,"no error reporting in identity checking");const $n=Ka(r,a,3,!!u,d);if(Tr&&Ni(),Hr){(P=Hi)==null||P.instant(Hi.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:a.id,depth:ut,targetDepth:jt});const $e=qe(u||N,p.Excessive_stack_depth_comparing_types_0_and_1,Rt(r),Rt(a));x&&(x.errors||(x.errors=[])).push($e)}else if(L){if(g){const dr=g();dr&&(A_e(dr,L),L=dr)}let $e;if(d&&u&&!$n&&r.symbol){const dr=Pa(r.symbol);if(dr.originatingImport&&!xm(dr.originatingImport)&&Zm(An(dr.target),a,c,void 0)){const Gn=ai(dr.originatingImport,p.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);$e=Ht($e,Gn)}}const Ct=Wy(bn(u),u,L,$e);X&&ic(Ct,...X),x&&(x.errors||(x.errors=[])).push(Ct),(!x||!x.skipLogging)&&yc.add(Ct)}return u&&x&&x.skipLogging&&$n===0&&D.assert(!!x.errors,"missed opportunity to interact with error."),$n!==0;function Sr($e){L=$e.errorInfo,br=$e.lastSkippedInfo,Tr=$e.incompatibleStack,vn=$e.overrideNextErrorInfo,X=$e.relatedInfo}function Br(){return{errorInfo:L,lastSkippedInfo:br,incompatibleStack:Tr==null?void 0:Tr.slice(),overrideNextErrorInfo:vn,relatedInfo:X==null?void 0:X.slice()}}function _n($e,...Ct){vn++,br=void 0,(Tr||(Tr=[])).push([$e,...Ct])}function Ni(){const $e=Tr||[];Tr=void 0;const Ct=br;if(br=void 0,$e.length===1){ji(...$e[0]),Ct&&mo(void 0,...Ct);return}let dr="";const pn=[];for(;$e.length;){const[Gn,...Or]=$e.pop();switch(Gn.code){case p.Types_of_property_0_are_incompatible.code:{dr.indexOf("new ")===0&&(dr=`(${dr})`);const Wn=""+Or[0];dr.length===0?dr=`${Wn}`:r0(Wn,gc(z))?dr=`${dr}.${Wn}`:Wn[0]==="["&&Wn[Wn.length-1]==="]"?dr=`${dr}${Wn}`:dr=`${dr}[${Wn}]`;break}case p.Call_signature_return_types_0_and_1_are_incompatible.code:case p.Construct_signature_return_types_0_and_1_are_incompatible.code:case p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(dr.length===0){let Wn=Gn;Gn.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Wn=p.Call_signature_return_types_0_and_1_are_incompatible:Gn.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Wn=p.Construct_signature_return_types_0_and_1_are_incompatible),pn.unshift([Wn,Or[0],Or[1]])}else{const Wn=Gn.code===p.Construct_signature_return_types_0_and_1_are_incompatible.code||Gn.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Vi=Gn.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Gn.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";dr=`${Wn}${dr}(${Vi})`}break}case p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{pn.unshift([p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Or[0],Or[1]]);break}case p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{pn.unshift([p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Or[0],Or[1],Or[2]]);break}default:return D.fail(`Unhandled Diagnostic: ${Gn.code}`)}}dr?ji(dr[dr.length-1]===")"?p.The_types_returned_by_0_are_incompatible_between_these_types:p.The_types_of_0_are_incompatible_between_these_types,dr):pn.shift();for(const[Gn,...Or]of pn){const Wn=Gn.elidedInCompatabilityPyramid;Gn.elidedInCompatabilityPyramid=!1,ji(Gn,...Or),Gn.elidedInCompatabilityPyramid=Wn}Ct&&mo(void 0,...Ct)}function ji($e,...Ct){D.assert(!!u),Tr&&Ni(),!$e.elidedInCompatabilityPyramid&&(L=Ps(L,$e,...Ct))}function fs($e){D.assert(!!L),X?X.push($e):X=[$e]}function mo($e,Ct,dr){Tr&&Ni();const[pn,Gn]=_a(Ct,dr);let Or=Ct,Wn=pn;if(PA(Ct)&&!ise(dr)&&(Or=V2(Ct),D.assert(!Zo(Or,dr),"generalized source shouldn't be assignable"),Wn=Gi(Or)),(dr.flags&8388608&&!(Ct.flags&8388608)?dr.objectType.flags:dr.flags)&262144&&dr!==Cl&&dr!==Hl){const oa=vp(dr);let ws;oa&&(Zo(Or,oa)||(ws=Zo(Ct,oa)))?ji(p._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,ws?pn:Wn,Gn,Rt(oa)):(L=void 0,ji(p._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Gn,Wn))}if($e)$e===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ue&&RSe(Ct,dr).length&&($e=p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(c===hd)$e=p.Type_0_is_not_comparable_to_type_1;else if(pn===Gn)$e=p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ue&&RSe(Ct,dr).length)$e=p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(Ct.flags&128&&dr.flags&1048576){const oa=LKe(Ct,dr);if(oa){ji(p.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Wn,Gn,Rt(oa));return}}$e=p.Type_0_is_not_assignable_to_type_1}ji($e,Wn,Gn)}function J_($e,Ct){const dr=Ra($e.symbol)?Rt($e,$e.symbol.valueDeclaration):Rt($e),pn=Ra(Ct.symbol)?Rt(Ct,Ct.symbol.valueDeclaration):Rt(Ct);(C_===$e&&w===Ct||Qp===$e&&ge===Ct||Ce===$e&&rt===Ct||BTe()===$e&&ar===Ct)&&ji(p._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,pn,dr)}function Qm($e,Ct,dr){return Yo($e)?$e.target.readonly&&tW(Ct)?(dr&&ji(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Rt($e),Rt(Ct)),!1):D6(Ct):RC($e)&&tW(Ct)?(dr&&ji(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Rt($e),Rt(Ct)),!1):Yo(Ct)?Ym($e):!0}function Mm($e,Ct,dr){return Ka($e,Ct,3,dr)}function Ka($e,Ct,dr=3,pn=!1,Gn,Or=0){if($e===Ct)return-1;if($e.flags&524288&&Ct.flags&402784252)return c===hd&&!(Ct.flags&131072)&&IA(Ct,$e,c)||IA($e,Ct,c,pn?ji:void 0)?-1:(pn&&sn($e,Ct,$e,Ct,Gn),0);const Wn=dM($e,!1);let Vi=dM(Ct,!0);if(Wn===Vi)return-1;if(c===yd)return Wn.flags!==Vi.flags?0:Wn.flags&67358815?-1:(On(Wn,Vi),hn(Wn,Vi,!1,0,dr));if(Wn.flags&262144&&px(Wn)===Vi)return-1;if(Wn.flags&470302716&&Vi.flags&1048576){const oa=Vi.types,ws=oa.length===2&&oa[0].flags&98304?oa[1]:oa.length===3&&oa[0].flags&98304&&oa[1].flags&98304?oa[2]:void 0;if(ws&&!(ws.flags&98304)&&(Vi=dM(ws,!0),Wn===Vi))return-1}if(c===hd&&!(Vi.flags&131072)&&IA(Vi,Wn,c)||IA(Wn,Vi,c,pn?ji:void 0))return-1;if(Wn.flags&469499904||Vi.flags&469499904){if(!(Or&2)&&_4(Wn)&&Mi(Wn)&8192&&$s(Wn,Vi,pn))return pn&&mo(Gn,Wn,Ct.aliasSymbol?Ct:Vi),0;const ws=(c!==hd||kg(Wn))&&!(Or&2)&&Wn.flags&405405692&&Wn!==gu&&Vi.flags&2621440&&jSe(Vi)&&(Pc(Wn).length>0||iq(Wn)),no=!!(Mi(Wn)&2048);if(ws&&!OZe(Wn,Vi,no)){if(pn){const Ns=Rt($e.aliasSymbol?$e:Wn),jo=Rt(Ct.aliasSymbol?Ct:Vi),zo=ro(Wn,0),$c=ro(Wn,1);zo.length>0&&Ka(Oc(zo[0]),Vi,1,!1)||$c.length>0&&Ka(Oc($c[0]),Vi,1,!1)?ji(p.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Ns,jo):ji(p.Type_0_has_no_properties_in_common_with_type_1,Ns,jo)}return 0}On(Wn,Vi);const Zi=Wn.flags&1048576&&Wn.types.length<4&&!(Vi.flags&1048576)||Vi.flags&1048576&&Vi.types.length<4&&!(Wn.flags&469499904)?hc(Wn,Vi,pn,Or):hn(Wn,Vi,pn,Or,dr);if(Zi)return Zi}return pn&&sn($e,Ct,Wn,Vi,Gn),0}function sn($e,Ct,dr,pn,Gn){var Or,Wn;const Vi=!!_se($e),oa=!!_se(Ct);dr=$e.aliasSymbol||Vi?$e:dr,pn=Ct.aliasSymbol||oa?Ct:pn;let ws=vn>0;if(ws&&vn--,dr.flags&524288&&pn.flags&524288){const no=L;Qm(dr,pn,!0),L!==no&&(ws=!!L)}if(dr.flags&524288&&pn.flags&402784252)J_(dr,pn);else if(dr.symbol&&dr.flags&524288&&gu===dr)ji(p.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Mi(dr)&2048&&pn.flags&2097152){const no=pn.types,yo=L6(Cm.IntrinsicAttributes,u),Zi=L6(Cm.IntrinsicClassAttributes,u);if(!Ac(yo)&&!Ac(Zi)&&(Zn(no,yo)||Zn(no,Zi)))return}else L=uae(L,Ct);if(!Gn&&ws){br=[dr,pn];return}if(mo(Gn,dr,pn),dr.flags&262144&&((Wn=(Or=dr.symbol)==null?void 0:Or.declarations)!=null&&Wn[0])&&!px(dr)){const no=qV(dr);if(no.constraint=$a(pn,E6(dr,no)),yA(no)){const yo=Rt(pn,dr.symbol.declarations[0]);fs(ai(dr.symbol.declarations[0],p.This_type_parameter_might_need_an_extends_0_constraint,yo))}}}function On($e,Ct){if(Hi&&$e.flags&3145728&&Ct.flags&3145728){const dr=$e,pn=Ct;if(dr.objectFlags&pn.objectFlags&32768)return;const Gn=dr.types.length,Or=pn.types.length;Gn*Or>1e6&&Hi.instant(Hi.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:$e.id,sourceSize:Gn,targetId:Ct.id,targetSize:Or,pos:u==null?void 0:u.pos,end:u==null?void 0:u.end})}}function Ha($e,Ct){return Oi(la($e,(pn,Gn)=>{var Or;Gn=ad(Gn);const Wn=Gn.flags&3145728?cae(Gn,Ct):b6(Gn,Ct),Vi=Wn&&An(Wn)||((Or=F8(Gn,Ct))==null?void 0:Or.type)||Ne;return Ht(pn,Vi)},void 0)||tt)}function $s($e,Ct,dr){var pn;if(!MM(Ct)||!ve&&Mi(Ct)&4096)return!1;const Gn=!!(Mi($e)&2048);if((c===td||c===hd)&&(jA(gu,Ct)||!Gn&&Py(Ct)))return!1;let Or=Ct,Wn;Ct.flags&1048576&&(Or=HCe($e,Ct,Ka)||Bat(Ct),Wn=Or.flags&1048576?Or.types:[Or]);for(const Vi of Pc($e))if(Qa(Vi,$e.symbol)&&!FSe($e,Vi)){if(!toe(Or,Vi.escapedName,Gn)){if(dr){const oa=E_(Or,MM);if(!u)return D.fail();if(S3(u)||$p(u)||$p(u.parent)){Vi.valueDeclaration&&E1(Vi.valueDeclaration)&&bn(u)===bn(Vi.valueDeclaration.name)&&(u=Vi.valueDeclaration.name);const ws=ze(Vi),no=x5e(ws,oa),yo=no?ze(no):void 0;yo?ji(p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ws,Rt(oa),yo):ji(p.Property_0_does_not_exist_on_type_1,ws,Rt(oa))}else{const ws=((pn=$e.symbol)==null?void 0:pn.declarations)&&Ji($e.symbol.declarations);let no;if(Vi.valueDeclaration&&Sn(Vi.valueDeclaration,yo=>yo===ws)&&bn(ws)===bn(u)){const yo=Vi.valueDeclaration;D.assertNode(yo,qv);const Zi=yo.name;u=Zi,Be(Zi)&&(no=_oe(Zi,oa))}no!==void 0?ji(p.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ze(Vi),Rt(oa),no):ji(p.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ze(Vi),Rt(oa))}}return!0}if(Wn&&!Ka(An(Vi),Ha(Wn,Vi.escapedName),3,dr))return dr&&_n(p.Types_of_property_0_are_incompatible,ze(Vi)),!0}return!1}function Qa($e,Ct){return $e.valueDeclaration&&Ct.valueDeclaration&&$e.valueDeclaration.parent===Ct.valueDeclaration}function hc($e,Ct,dr,pn){if($e.flags&1048576)return c===hd?zp($e,Ct,dr&&!($e.flags&402784252),pn):ke($e,Ct,dr&&!($e.flags&402784252),pn);if(Ct.flags&1048576)return Xu(bM($e),Ct,dr&&!($e.flags&402784252)&&!(Ct.flags&402784252));if(Ct.flags&2097152)return cc($e,Ct,dr,2);if(c===hd&&Ct.flags&402784252){const Gn=ll($e.types,Or=>Or.flags&465829888?vp(Or)||at:Or);if(Gn!==$e.types){if($e=Xo(Gn),$e.flags&131072)return 0;if(!($e.flags&2097152))return Ka($e,Ct,1,!1)||Ka(Ct,$e,1,!1)}}return zp($e,Ct,!1,1)}function ol($e,Ct){let dr=-1;const pn=$e.types;for(const Gn of pn){const Or=Xu(Gn,Ct,!1);if(!Or)return 0;dr&=Or}return dr}function Xu($e,Ct,dr){const pn=Ct.types;if(Ct.flags&1048576){if(R2(pn,$e))return-1;if(c!==hd&&Mi(Ct)&32768&&!($e.flags&1024)&&($e.flags&2688||(c===N1||c===Hm)&&$e.flags&256)){const Or=$e===$e.regularType?$e.freshType:$e.regularType,Wn=$e.flags&128?w:$e.flags&256?ge:$e.flags&2048?he:void 0;return Wn&&R2(pn,Wn)||Or&&R2(pn,Or)?-1:0}const Gn=f8e(Ct,$e);if(Gn){const Or=Ka($e,Gn,2,!1);if(Or)return Or}}for(const Gn of pn){const Or=Ka($e,Gn,2,!1);if(Or)return Or}if(dr){const Gn=BSe($e,Ct,Ka);Gn&&Ka($e,Gn,2,!0)}return 0}function cc($e,Ct,dr,pn){let Gn=-1;const Or=Ct.types;for(const Wn of Or){const Vi=Ka($e,Wn,2,dr,void 0,pn);if(!Vi)return 0;Gn&=Vi}return Gn}function zp($e,Ct,dr,pn){const Gn=$e.types;if($e.flags&1048576&&R2(Gn,Ct))return-1;const Or=Gn.length;for(let Wn=0;Wn=Wn.types.length&&Or.length%Wn.types.length===0){const no=Ka(oa,Wn.types[Vi%Wn.types.length],3,!1,void 0,pn);if(no){Gn&=no;continue}}const ws=Ka(oa,Ct,1,dr,void 0,pn);if(!ws)return 0;Gn&=ws}return Gn}function wn($e=tt,Ct=tt,dr=tt,pn,Gn){if($e.length!==Ct.length&&c===yd)return 0;const Or=$e.length<=Ct.length?$e.length:Ct.length;let Wn=-1;for(let Vi=0;Vi(Ns|=zo?16:8,Zi(zo)));let jo;if(Jr===3?((Or=Hi)==null||Or.instant(Hi.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:$e.id,sourceIdStack:Te.map(zo=>zo.id),targetId:Ct.id,targetIdStack:Ee.map(zo=>zo.id),depth:ut,targetDepth:jt}),jo=3):((Wn=Hi)==null||Wn.push(Hi.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:$e.id,targetId:Ct.id}),jo=Qn($e,Ct,dr,pn),(Vi=Hi)==null||Vi.pop()),Yr&&(Yr=Zi),Gn&1&&ut--,Gn&2&&jt--,Jr=yo,jo){if(jo===-1||ut===0&&jt===0){if(jo===-1||jo===3)for(let zo=no;zoVi!==$e)&&(Or=Ka(Wn,Ct,1,!1,void 0,pn))}Or&&!(pn&2)&&Ct.flags&2097152&&!k6(Ct)&&$e.flags&2621440?(Or&=lr($e,Ct,dr,void 0,!1,0),Or&&_4($e)&&Mi($e)&8192&&(Or&=Bs($e,Ct,!1,dr,0))):Or&&BV(Ct)&&!D6(Ct)&&$e.flags&2097152&&ad($e).flags&3670016&&!bt($e.types,Wn=>Wn===Ct||!!(Mi(Wn)&262144))&&(Or&=lr($e,Ct,dr,void 0,!0,pn))}return Or&&Sr(Gn),Or}function Xn($e,Ct,dr,pn,Gn){let Or,Wn,Vi=!1,oa=$e.flags;const ws=Ct.flags;if(c===yd){if(oa&3145728){let Zi=ol($e,Ct);return Zi&&(Zi&=ol(Ct,$e)),Zi}if(oa&4194304)return Ka($e.type,Ct.type,3,!1);if(oa&8388608&&(Or=Ka($e.objectType,Ct.objectType,3,!1))&&(Or&=Ka($e.indexType,Ct.indexType,3,!1))||oa&16777216&&$e.root.isDistributive===Ct.root.isDistributive&&(Or=Ka($e.checkType,Ct.checkType,3,!1))&&(Or&=Ka($e.extendsType,Ct.extendsType,3,!1))&&(Or&=Ka(s4($e),s4(Ct),3,!1))&&(Or&=Ka(o4($e),o4(Ct),3,!1))||oa&33554432&&(Or=Ka($e.baseType,Ct.baseType,3,!1))&&(Or&=Ka($e.constraint,Ct.constraint,3,!1)))return Or;if(!(oa&524288))return 0}else if(oa&3145728||ws&3145728){if(Or=hc($e,Ct,dr,pn))return Or;if(!(oa&465829888||oa&524288&&ws&1048576||oa&2097152&&ws&467402752))return 0}if(oa&17301504&&$e.aliasSymbol&&$e.aliasTypeArguments&&$e.aliasSymbol===Ct.aliasSymbol&&!(QV($e)||QV(Ct))){const Zi=zSe($e.aliasSymbol);if(Zi===tt)return 1;const Ns=Pa($e.aliasSymbol).typeParameters,jo=B1(Ns),zo=M2($e.aliasTypeArguments,Ns,jo,jn($e.aliasSymbol.valueDeclaration)),$c=M2(Ct.aliasTypeArguments,Ns,jo,jn($e.aliasSymbol.valueDeclaration)),tp=yo(zo,$c,Zi,pn);if(tp!==void 0)return tp}if(HSe($e)&&!$e.target.readonly&&(Or=Ka(yl($e)[0],Ct,1))||HSe(Ct)&&(Ct.target.readonly||tW(vp($e)||$e))&&(Or=Ka($e,yl(Ct)[0],2)))return Or;if(ws&262144){if(Mi($e)&32&&!$e.declaration.nameType&&Ka(a1(Ct),n1($e),3)&&!(R1($e)&4)){const Zi=Ay($e),Ns=bd(Ct,vg($e));if(Or=Ka(Zi,Ns,3,dr))return Or}if(c===hd&&oa&262144){let Zi=yp($e);if(Zi&&yA($e))for(;Zi&&Nv(Zi,Ns=>!!(Ns.flags&262144));){if(Or=Ka(Zi,Ct,1,!1))return Or;Zi=yp(Zi)}return 0}}else if(ws&4194304){const Zi=Ct.type;if(oa&4194304&&(Or=Ka(Zi,$e.type,3,!1)))return Or;if(Yo(Zi)){if(Or=Ka($e,$Te(Zi),2,dr))return Or}else{const Ns=nae(Zi);if(Ns){if(Ka($e,a1(Ns,Ct.indexFlags|4),2,dr)===-1)return-1}else if(Om(Zi)){const jo=Tv(Zi),zo=n1(Zi);let $c;if(jo&&QO(Zi)){const tp=ad(hA(Zi)),Eg=[];tae(tp,8576,!1,zh=>void Eg.push($a(jo,AA(Zi.mapper,vg(Zi),zh)))),$c=Oi([...Eg,jo])}else $c=jo||zo;if(Ka($e,$c,2,dr)===-1)return-1}}}else if(ws&8388608){if(oa&8388608){if((Or=Ka($e.objectType,Ct.objectType,3,dr))&&(Or&=Ka($e.indexType,Ct.indexType,3,dr)),Or)return Or;dr&&(Wn=L)}if(c===td||c===hd){const Zi=Ct.objectType,Ns=Ct.indexType,jo=vp(Zi)||Zi,zo=vp(Ns)||Ns;if(!k6(jo)&&!a4(zo)){const $c=4|(jo!==Zi?2:0),tp=B2(jo,zo,$c);if(tp){if(dr&&Wn&&Sr(Gn),Or=Ka($e,tp,2,dr,void 0,pn))return Or;dr&&Wn&&L&&(L=no([Wn])<=no([L])?Wn:L)}}}dr&&(Wn=void 0)}else if(Om(Ct)&&c!==yd){const Zi=!!Ct.declaration.nameType,Ns=Ay(Ct),jo=R1(Ct);if(!(jo&8)){if(!Zi&&Ns.flags&8388608&&Ns.objectType===$e&&Ns.indexType===vg(Ct))return-1;if(!Om($e)){const zo=Zi?Tv(Ct):n1(Ct),$c=a1($e,2),tp=jo&4,Eg=tp?ZO(zo,$c):void 0;if(tp?!(Eg.flags&131072):Ka(zo,$c,3)){const zh=Ay(Ct),p4=vg(Ct),RT=JC(zh,-98305);if(!Zi&&RT.flags&8388608&&RT.indexType===p4){if(Or=Ka($e,RT.objectType,2,dr))return Or}else{const nw=Zi?Eg||zo:Eg?Xo([Eg,p4]):p4,U1=bd($e,nw);if(Or=Ka(U1,zh,3,dr))return Or}}Wn=L,Sr(Gn)}}}else if(ws&16777216){if(FC(Ct,Ee,jt,10))return 3;const Zi=Ct;if(!Zi.root.inferTypeParameters&&!$Xe(Zi.root)&&!($e.flags&16777216&&$e.root===Zi.root)){const Ns=!Zo(HV(Zi.checkType),HV(Zi.extendsType)),jo=!Ns&&Zo(hx(Zi.checkType),hx(Zi.extendsType));if((Or=Ns?-1:Ka($e,s4(Zi),2,!1,void 0,pn))&&(Or&=jo?-1:Ka($e,o4(Zi),2,!1,void 0,pn),Or))return Or}}else if(ws&134217728){if(oa&134217728){if(c===hd)return vYe($e,Ct)?0:-1;$a($e,os)}if(Ese($e,Ct))return-1}else if(Ct.flags&268435456&&!($e.flags&268435456)&&wse($e,Ct))return-1;if(oa&8650752){if(!(oa&8388608&&ws&8388608)){const Zi=px($e)||at;if(Or=Ka(Zi,Ct,1,!1,void 0,pn))return Or;if(Or=Ka(cm(Zi,$e),Ct,1,dr&&Zi!==at&&!(ws&oa&262144),void 0,pn))return Or;if(oa&8388608){const Ns=$e.indexType;if(Ns.flags&4194304){const jo=vp(Ns.type),zo=jo&&jo!==ru?a1(jo):Os,$c=bd($e.objectType,zo);if(Or=Ka($c,Ct,1,!1,void 0,pn))return Or}}if(oae($e)){const Ns=px($e.indexType);if(Ns&&(Or=Ka(bd($e.objectType,Ns),Ct,1,dr)))return Or}}}else if(oa&4194304){if(Or=Ka(Os,Ct,1,dr))return Or}else if(oa&134217728&&!(ws&524288)){if(!(ws&134217728)){const Zi=vp($e);if(Zi&&Zi!==$e&&(Or=Ka(Zi,Ct,1,dr)))return Or}}else if(oa&268435456)if(ws&268435456){if($e.symbol!==Ct.symbol)return 0;if(Or=Ka($e.type,Ct.type,3,dr))return Or}else{const Zi=vp($e);if(Zi&&(Or=Ka(Zi,Ct,1,dr)))return Or}else if(oa&16777216){if(FC($e,Te,ut,10))return 3;if(ws&16777216){const Ns=$e.root.inferTypeParameters;let jo=$e.extendsType,zo;if(Ns){const $c=LA(Ns,void 0,0,Mm);Ly($c.inferences,Ct.extendsType,jo,1536),jo=$a(jo,$c.mapper),zo=$c.mapper}if(Iy(jo,Ct.extendsType)&&(Ka($e.checkType,Ct.checkType,3)||Ka(Ct.checkType,$e.checkType,3))&&((Or=Ka($a(s4($e),zo),s4(Ct),3,dr))&&(Or&=Ka(o4($e),o4(Ct),3,dr)),Or))return Or}else{const Ns=yA($e)?cTe($e):void 0;if(Ns&&(Or=Ka(Ns,Ct,1,dr)))return Or}const Zi=iae($e);if(Zi&&(Or=Ka(Zi,Ct,1,dr)))return Or}else{if(c!==N1&&c!==Hm&&sGe(Ct)&&Py($e))return-1;if(Om(Ct))return Om($e)&&(Or=Ds($e,Ct,dr))?Or:0;const Zi=!!(oa&402784252);if(c!==yd)$e=ad($e),oa=$e.flags;else if(Om($e))return 0;if(Mi($e)&4&&Mi(Ct)&4&&$e.target===Ct.target&&!Yo($e)&&!(QV($e)||QV(Ct))){if(rW($e))return-1;const Ns=sse($e.target);if(Ns===tt)return 1;const jo=yo(yl($e),yl(Ct),Ns,pn);if(jo!==void 0)return jo}else{if(RC(Ct)?$0($e,D6):Ym(Ct)&&$0($e,Ns=>Yo(Ns)&&!Ns.target.readonly))return c!==yd?Ka(Sv($e,ge)||it,Sv(Ct,ge)||it,3,dr):0;if(Av($e)&&Yo(Ct)&&!Av(Ct)){const Ns=Dy($e);if(Ns!==$e)return Ka(Ns,Ct,1,dr)}else if((c===N1||c===Hm)&&Py(Ct)&&Mi(Ct)&8192&&!Py($e))return 0}if(oa&2621440&&ws&524288){const Ns=dr&&L===Gn.errorInfo&&!Zi;if(Or=lr($e,Ct,Ns,void 0,!1,pn),Or&&(Or&=mn($e,Ct,0,Ns,pn),Or&&(Or&=mn($e,Ct,1,Ns,pn),Or&&(Or&=Bs($e,Ct,Zi,Ns,pn)))),Vi&&Or)L=Wn||L||Gn.errorInfo;else if(Or)return Or}if(oa&2621440&&ws&1048576){const Ns=JC(Ct,36175872);if(Ns.flags&1048576){const jo=ca($e,Ns);if(jo)return jo}}}return 0;function no(Zi){return Zi?la(Zi,(Ns,jo)=>Ns+1+no(jo.next),0):0}function yo(Zi,Ns,jo,zo){if(Or=wn(Zi,Ns,jo,dr,zo))return Or;if(bt(jo,tp=>!!(tp&24))){Wn=void 0,Sr(Gn);return}const $c=Ns&&MZe(Ns,jo);if(Vi=!$c,jo!==tt&&!$c){if(Vi&&!(dr&&bt(jo,tp=>(tp&7)===0)))return 0;Wn=L,Sr(Gn)}}}function Ds($e,Ct,dr){if(c===hd||(c===yd?R1($e)===R1(Ct):rae($e)<=rae(Ct))){let Gn;const Or=n1(Ct),Wn=$a(n1($e),rae($e)<0?Gs:os);if(Gn=Ka(Or,Wn,3,dr)){const Vi=xd([vg($e)],[vg(Ct)]);if($a(Tv($e),Vi)===$a(Tv(Ct),Vi))return Gn&Ka($a(Ay($e),Vi),Ay(Ct),3,dr)}}return 0}function ca($e,Ct){var dr;const pn=Pc($e),Gn=_8e(pn,Ct);if(!Gn)return 0;let Or=1;for(const yo of Gn)if(Or*=HYe(r4(yo)),Or>25)return(dr=Hi)==null||dr.instant(Hi.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:$e.id,targetId:Ct.id,numCombinations:Or}),0;const Wn=new Array(Gn.length),Vi=new Set;for(let yo=0;yoyo[jo],!1,0,$||c===hd))continue e}kr(ws,Ns,Dg),Zi=!0}if(!Zi)return 0}let no=-1;for(const yo of ws)if(no&=lr($e,yo,!1,Vi,!1,0),no&&(no&=mn($e,yo,0,!1,0),no&&(no&=mn($e,yo,1,!1,0),no&&!(Yo($e)&&Yo(yo))&&(no&=Bs($e,yo,!1,!1,0)))),!no)return no;return no}function Kn($e,Ct){if(!Ct||$e.length===0)return $e;let dr;for(let pn=0;pn<$e.length;pn++)Ct.has($e[pn].escapedName)?dr||(dr=$e.slice(0,pn)):dr&&dr.push($e[pn]);return dr||$e}function St($e,Ct,dr,pn,Gn){const Or=$&&!!(Du(Ct)&48),Wn=Oo(r4(Ct),!1,Or),Vi=dr($e);return Ka(Vi,Wn,3,pn,void 0,Gn)}function Xt($e,Ct,dr,pn,Gn,Or,Wn,Vi){const oa=c0(dr),ws=c0(pn);if(oa&8||ws&8){if(dr.valueDeclaration!==pn.valueDeclaration)return Or&&(oa&8&&ws&8?ji(p.Types_have_separate_declarations_of_a_private_property_0,ze(pn)):ji(p.Property_0_is_private_in_type_1_but_not_in_type_2,ze(pn),Rt(oa&8?$e:Ct),Rt(oa&8?Ct:$e))),0}else if(ws&16){if(!jZe(dr,pn))return Or&&ji(p.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,ze(pn),Rt(IT(dr)||$e),Rt(IT(pn)||Ct)),0}else if(oa&16)return Or&&ji(p.Property_0_is_protected_in_type_1_but_public_in_type_2,ze(pn),Rt($e),Rt(Ct)),0;if(c===Hm&&wg(dr)&&!wg(pn))return 0;const no=St(dr,pn,Gn,Or,Wn);return no?!Vi&&dr.flags&16777216&&pn.flags&106500&&!(pn.flags&16777216)?(Or&&ji(p.Property_0_is_optional_in_type_1_but_required_in_type_2,ze(pn),Rt($e),Rt(Ct)),0):no:(Or&&_n(p.Types_of_property_0_are_incompatible,ze(pn)),0)}function vr($e,Ct,dr,pn){let Gn=!1;if(dr.valueDeclaration&&sp(dr.valueDeclaration)&&Ea(dr.valueDeclaration.name)&&$e.symbol&&$e.symbol.flags&32){const Wn=dr.valueDeclaration.name.escapedText,Vi=fN($e.symbol,Wn);if(Vi&&So($e,Vi)){const oa=M.getDeclarationName($e.symbol.valueDeclaration),ws=M.getDeclarationName(Ct.symbol.valueDeclaration);ji(p.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,gg(Wn),gg(oa.escapedText===""?XI:oa),gg(ws.escapedText===""?XI:ws));return}}const Or=zt(kse($e,Ct,pn,!1));if((!d||d.code!==p.Class_0_incorrectly_implements_interface_1.code&&d.code!==p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(Gn=!0),Or.length===1){const Wn=ze(dr,void 0,0,20);ji(p.Property_0_is_missing_in_type_1_but_required_in_type_2,Wn,..._a($e,Ct)),Nr(dr.declarations)&&fs(ai(dr.declarations[0],p._0_is_declared_here,Wn)),Gn&&L&&vn++}else Qm($e,Ct,!1)&&(Or.length>5?ji(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Rt($e),Rt(Ct),er(Or.slice(0,4),Wn=>ze(Wn)).join(", "),Or.length-4):ji(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Rt($e),Rt(Ct),er(Or,Wn=>ze(Wn)).join(", ")),Gn&&L&&vn++)}function lr($e,Ct,dr,pn,Gn,Or){if(c===yd)return Wr($e,Ct,pn);let Wn=-1;if(Yo(Ct)){if(D6($e)){if(!Ct.target.readonly&&(RC($e)||Yo($e)&&$e.target.readonly))return 0;const yo=Cv($e),Zi=Cv(Ct),Ns=Yo($e)?$e.target.combinedFlags&4:4,jo=Ct.target.combinedFlags&4,zo=Yo($e)?$e.target.minLength:0,$c=Ct.target.minLength;if(!Ns&&yo<$c)return dr&&ji(p.Source_has_0_element_s_but_target_requires_1,yo,$c),0;if(!jo&&Zi=zh?Zi-1-Math.min(e5,p4):U1,qd=Ct.target.elementFlags[Ax];if(qd&8&&!(K8&8))return dr&&ji(p.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Ax),0;if(K8&8&&!(qd&12))return dr&&ji(p.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,U1,Ax),0;if(qd&1&&!(K8&1))return dr&&ji(p.Source_provides_no_match_for_required_element_at_position_0_in_target,Ax),0;if(nw&&((K8&12||qd&12)&&(nw=!1),nw&&(pn!=null&&pn.has(""+U1))))continue;const Ut=yx(tp[U1],!!(K8&qd&2)),oi=Eg[Ax],$i=K8&8&&qd&4?ep(oi):yx(oi,!!(qd&2)),Wi=Ka(Ut,$i,3,dr,void 0,Or);if(!Wi)return dr&&(Zi>1||yo>1)&&(RT&&U1>=zh&&e5>=p4&&zh!==yo-p4-1?_n(p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,zh,yo-p4-1,Ax):_n(p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,U1,Ax)),0;Wn&=Wi}return Wn}if(Ct.target.combinedFlags&12)return 0}const Vi=(c===N1||c===Hm)&&!_4($e)&&!rW($e)&&!Yo($e),oa=Cse($e,Ct,Vi,!1);if(oa)return dr&&rs($e,Ct)&&vr($e,Ct,oa,Vi),0;if(_4(Ct)){for(const yo of Kn(Pc($e),pn))if(!b6(Ct,yo.escapedName)&&!(An(yo).flags&32768))return dr&&ji(p.Property_0_does_not_exist_on_type_1,ze(yo),Rt(Ct)),0}const ws=Pc(Ct),no=Yo($e)&&Yo(Ct);for(const yo of Kn(ws,pn)){const Zi=yo.escapedName;if(!(yo.flags&4194304)&&(!no||cy(Zi)||Zi==="length")&&(!Gn||yo.flags&16777216)){const Ns=So($e,Zi);if(Ns&&Ns!==yo){const jo=Xt($e,Ct,Ns,yo,r4,dr,Or,c===hd);if(!jo)return 0;Wn&=jo}}}return Wn}function Wr($e,Ct,dr){if(!($e.flags&524288&&Ct.flags&524288))return 0;const pn=Kn(O2($e),dr),Gn=Kn(O2(Ct),dr);if(pn.length!==Gn.length)return 0;let Or=-1;for(const Wn of pn){const Vi=b6(Ct,Wn.escapedName);if(!Vi)return 0;const oa=lse(Wn,Vi,Ka);if(!oa)return 0;Or&=oa}return Or}function mn($e,Ct,dr,pn,Gn){var Or,Wn;if(c===yd)return ii($e,Ct,dr);if(Ct===h_||$e===h_)return-1;const Vi=$e.symbol&&c1($e.symbol.valueDeclaration),oa=Ct.symbol&&c1(Ct.symbol.valueDeclaration),ws=ro($e,Vi&&dr===1?0:dr),no=ro(Ct,oa&&dr===1?0:dr);if(dr===1&&ws.length&&no.length){const zo=!!(ws[0].flags&4),$c=!!(no[0].flags&4);if(zo&&!$c)return pn&&ji(p.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!b_(ws[0],no[0],pn))return 0}let yo=-1;const Zi=dr===1?ko:za,Ns=Mi($e),jo=Mi(Ct);if(Ns&64&&jo&64&&$e.symbol===Ct.symbol||Ns&4&&jo&4&&$e.target===Ct.target)for(let zo=0;zohr(zh,void 0,262144,dr);return ji(p.Type_0_is_not_assignable_to_type_1,Eg($c),Eg(tp)),ji(p.Types_of_construct_signatures_are_incompatible),yo}}else e:for(const zo of no){const $c=Br();let tp=pn;for(const Eg of ws){const zh=qr(Eg,zo,!0,tp,Gn,Zi(Eg,zo));if(zh){yo&=zh,Sr($c);continue e}tp=!1}return tp&&ji(p.Type_0_provides_no_match_for_the_signature_1,Rt($e),hr(zo,void 0,void 0,dr)),0}return yo}function rs($e,Ct){const dr=eM($e,0),pn=eM($e,1),Gn=O2($e);return(dr.length||pn.length)&&!Gn.length?!!(ro(Ct,0).length&&dr.length||ro(Ct,1).length&&pn.length):!0}function za($e,Ct){return $e.parameters.length===0&&Ct.parameters.length===0?(dr,pn)=>_n(p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Rt(dr),Rt(pn)):(dr,pn)=>_n(p.Call_signature_return_types_0_and_1_are_incompatible,Rt(dr),Rt(pn))}function ko($e,Ct){return $e.parameters.length===0&&Ct.parameters.length===0?(dr,pn)=>_n(p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Rt(dr),Rt(pn)):(dr,pn)=>_n(p.Construct_signature_return_types_0_and_1_are_incompatible,Rt(dr),Rt(pn))}function qr($e,Ct,dr,pn,Gn,Or){const Wn=c===N1?16:c===Hm?24:0;return tse(dr?TA($e):$e,dr?TA(Ct):Ct,Wn,pn,ji,Or,Vi,os);function Vi(oa,ws,no){return Ka(oa,ws,3,no,void 0,Gn)}}function ii($e,Ct,dr){const pn=ro($e,dr),Gn=ro(Ct,dr);if(pn.length!==Gn.length)return 0;let Or=-1;for(let Wn=0;Wnoa.keyType===w);let Vi=-1;for(const oa of Or){const ws=c!==Hm&&!dr&&Wn&&oa.type.flags&1?-1:Om($e)&&Wn?Ka(Ay($e),oa.type,3,pn):vl($e,oa,pn,Gn);if(!ws)return 0;Vi&=ws}return Vi}function vl($e,Ct,dr,pn){const Gn=tM($e,Ct.keyType);return Gn?qi(Gn,Ct,dr,pn):!(pn&1)&&(c!==Hm||Mi($e)&8192)&&oW($e)?Xi($e,Ct,dr,pn):(dr&&ji(p.Index_signature_for_type_0_is_missing_in_type_1,Rt(Ct.keyType),Rt($e)),0)}function mc($e,Ct){const dr=bp($e),pn=bp(Ct);if(dr.length!==pn.length)return 0;for(const Gn of pn){const Or=Fh($e,Gn.keyType);if(!(Or&&Ka(Or.type,Gn.type,3)&&Or.isReadonly===Gn.isReadonly))return 0}return-1}function b_($e,Ct,dr){if(!$e.declaration||!Ct.declaration)return!0;const pn=dS($e.declaration,24),Gn=dS(Ct.declaration,24);return Gn===8||Gn===16&&pn!==8||Gn!==16&&!pn?!0:(dr&&ji(p.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,id(pn),id(Gn)),!1)}}function ise(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!Vt(r.types,ise);if(r.flags&465829888){const a=px(r);if(a&&a!==r)return ise(a)}return kg(r)||!!(r.flags&134217728)||!!(r.flags&268435456)}function RSe(r,a){return Yo(r)&&Yo(a)?tt:Pc(a).filter(c=>YV(Hu(r,c.escapedName),An(c)))}function YV(r,a){return!!r&&!!a&&iu(r,32768)&&!!MA(a)}function PZe(r){return Pc(r).filter(a=>MA(An(a)))}function BSe(r,a,c=Kae){return HCe(r,a,c)||Mat(r,a)||Lat(r,a)||Fat(r,a)||Rat(r,a)}function ase(r,a,c){const u=r.types,d=u.map(x=>x.flags&402784252?0:-1);for(const[x,P]of a){let L=!1;for(let X=0;Xd[P])):r;return g.flags&131072?r:g}function jSe(r){if(r.flags&524288){const a=bg(r);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&yn(a.properties,c=>!!(c.flags&16777216))}return r.flags&2097152?yn(r.types,jSe):!1}function OZe(r,a,c){for(const u of Pc(r))if(toe(a,u.escapedName,c))return!0;return!1}function sse(r){return r===su||r===ff||r.objectFlags&8?re:JSe(r.symbol,r.typeParameters)}function zSe(r){return JSe(r,Pa(r).typeParameters)}function JSe(r,a=tt){var c,u;const d=Pa(r);if(!d.variances){(c=Hi)==null||c.push(Hi.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:xp(hl(r))});const g=Pb;Pb||(Pb=!0,p2=wh.length),d.variances=tt;const x=[];for(const P of a){const L=ose(P);let X=L&65536?L&32768?0:1:L&32768?2:void 0;if(X===void 0){let Z=!1,Te=!1;const Ee=Yr;Yr=jt=>jt?Te=!0:Z=!0;const De=mM(r,P,wf),ut=mM(r,P,fl);X=(Zo(ut,De)?1:0)|(Zo(De,ut)?2:0),X===3&&Zo(mM(r,P,Nu),De)&&(X=4),Yr=Ee,(Z||Te)&&(Z&&(X|=8),Te&&(X|=16))}x.push(X)}g||(Pb=!1,p2=0),d.variances=x,(u=Hi)==null||u.pop({variances:x.map(D.formatVariance)})}return d.variances}function mM(r,a,c){const u=E6(a,c),d=hl(r);if(Ac(d))return d;const g=r.flags&524288?j8(r,Ev(Pa(r).typeParameters,u)):kv(d,Ev(d.typeParameters,u));return ln.add(xp(g)),g}function QV(r){return ln.has(xp(r))}function ose(r){var a;return la((a=r.symbol)==null?void 0:a.declarations,(c,u)=>c|Pp(u),0)&100352}function MZe(r,a){for(let c=0;c!!(a.flags&262144)||KV(a))}function RZe(r,a,c,u){const d=[];let g="";const x=L(r,0),P=L(a,0);return`${g}${x},${P}${c}`;function L(X,Z=0){let Te=""+X.target.id;for(const Ee of yl(X)){if(Ee.flags&262144){if(u||LZe(Ee)){let De=d.indexOf(Ee);De<0&&(De=d.length,d.push(Ee)),Te+="="+De;continue}g="*"}else if(Z<4&&KV(Ee)){Te+="<"+L(Ee,Z+1)+">";continue}Te+="-"+Ee.id}return Te}}function cse(r,a,c,u,d){if(u===yd&&r.id>a.id){const x=r;r=a,a=x}const g=c?":"+c:"";return KV(r)&&KV(a)?RZe(r,a,g,d):`${r.id},${a.id}${g}`}function gM(r,a){if(Du(r)&6){for(const c of r.links.containingType.types){const u=So(c,r.escapedName),d=u&&gM(u,a);if(d)return d}return}return a(r)}function IT(r){return r.parent&&r.parent.flags&32?hl(vd(r)):void 0}function eW(r){const a=IT(r),c=a&&vs(a)[0];return c&&Hu(c,r.escapedName)}function BZe(r,a){return gM(r,c=>{const u=IT(c);return u?P8(u,a):!1})}function jZe(r,a){return!gM(a,c=>c0(c)&16?!BZe(r,IT(c)):!1)}function USe(r,a,c){return gM(a,u=>c0(u,c)&16?!P8(r,IT(u)):!1)?void 0:r}function FC(r,a,c,u=3){if(c>=u){if(r.flags&2097152)return bt(r.types,P=>FC(P,a,c,u));const d=hM(r);let g=0,x=0;for(let P=0;PhM(X)===d):hM(L)===d){if(L.id>=x&&(g++,g>=u))return!0;x=L.id}}}return!1}function hM(r){if(r.flags&524288&&!Ase(r)){if(Mi(r)&&r.node)return r.node;if(r.symbol&&!(Mi(r)&16&&r.symbol.flags&32))return r.symbol;if(Yo(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function zZe(r,a){return lse(r,a,DA)!==0}function lse(r,a,c){if(r===a)return-1;const u=c0(r)&24,d=c0(a)&24;if(u!==d)return 0;if(u){if(Z8(r)!==Z8(a))return 0}else if((r.flags&16777216)!==(a.flags&16777216))return 0;return wg(r)!==wg(a)?0:c(An(r),An(a))}function JZe(r,a,c){const u=um(r),d=um(a),g=l1(r),x=l1(a),P=J1(r),L=J1(a);return!!(u===d&&g===x&&P===L||c&&g<=x)}function yM(r,a,c,u,d,g){if(r===a)return-1;if(!JZe(r,a,c)||Nr(r.typeParameters)!==Nr(a.typeParameters))return 0;if(a.typeParameters){const L=xd(r.typeParameters,a.typeParameters);for(let X=0;Xa|(c.flags&1048576?VSe(c.types):c.flags),0)}function WZe(r){if(r.length===1)return r[0];const a=$?ll(r,u=>E_(u,d=>!(d.flags&98304))):r,c=VZe(a)?Oi(a):la(a,(u,d)=>z2(u,d)?d:u);return a===r?c:iW(c,VSe(r)&98304)}function qZe(r){return la(r,(a,c)=>z2(c,a)?c:a)}function Ym(r){return!!(Mi(r)&4)&&(r.target===su||r.target===ff)}function RC(r){return!!(Mi(r)&4)&&r.target===ff}function D6(r){return Ym(r)||Yo(r)}function tW(r){return Ym(r)&&!RC(r)||Yo(r)&&!r.target.readonly}function use(r){return Ym(r)?yl(r)[0]:void 0}function U2(r){return Ym(r)||!(r.flags&98304)&&Zo(r,ne)}function _se(r){if(!(Mi(r)&4)||!(Mi(r.target)&3))return;if(Mi(r)&33554432)return Mi(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;const a=r.target;if(Mi(a)&1){const d=I2(a);if(d&&d.expression.kind!==80&&d.expression.kind!==210)return}const c=vs(a);if(c.length!==1||P2(r.symbol).size)return;let u=Nr(a.typeParameters)?$a(c[0],xd(a.typeParameters,yl(r).slice(0,a.typeParameters.length))):c[0];return Nr(yl(r))>Nr(a.typeParameters)&&(u=cm(u,fi(yl(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=u}function WSe(r){return $?r===En:r===$t}function rW(r){const a=use(r);return!!a&&WSe(a)}function BC(r){return Yo(r)||!!So(r,"0")}function nW(r){return U2(r)||BC(r)}function $Ze(r,a){const c=Hu(r,""+a);if(c)return c;if($0(r,Yo))return El(r,u=>{const d=u,g=vM(d);return g?z.noUncheckedIndexedAccess&&a>=d.target.fixedLength+CA(d.target,3)?Oi([g,Ne]):g:Ne})}function HZe(r){return!(r.flags&240544)}function kg(r){return!!(r.flags&109472)}function qSe(r){const a=Dy(r);return a.flags&2097152?bt(a.types,kg):kg(a)}function GZe(r){return r.flags&2097152&&on(r.types,kg)||r}function PA(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:yn(r.types,kg):kg(r)}function V2(r){return r.flags&1056?i4(r):r.flags&402653312?w:r.flags&256?ge:r.flags&2048?he:r.flags&512?rt:r.flags&1048576?XZe(r):r}function XZe(r){var c;const a=`B${xp(r)}`;return(c=W3(a))!=null?c:oT(a,El(r,V2))}function fse(r){return r.flags&402653312?w:r.flags&288?ge:r.flags&2048?he:r.flags&512?rt:r.flags&1048576?El(r,fse):r}function N6(r){return r.flags&1056&&w6(r)?i4(r):r.flags&128&&w6(r)?w:r.flags&256&&w6(r)?ge:r.flags&2048&&w6(r)?he:r.flags&512&&w6(r)?rt:r.flags&1048576?El(r,N6):r}function $Se(r){return r.flags&8192?ar:r.flags&1048576?El(r,$Se):r}function pse(r,a){return VW(r,a)||(r=$Se(N6(r))),jp(r)}function ZZe(r,a,c){if(r&&kg(r)){const u=a?c?KA(a):a:void 0;r=pse(r,u)}return r}function dse(r,a,c,u){if(r&&kg(r)){const d=a?F6(c,a,u):void 0;r=pse(r,d)}return r}function Yo(r){return!!(Mi(r)&4&&r.target.objectFlags&8)}function Av(r){return Yo(r)&&!!(r.target.combinedFlags&8)}function HSe(r){return Av(r)&&r.target.elementFlags.length===1}function vM(r){return jC(r,r.target.fixedLength)}function YZe(r){const a=vM(r);return a&&ep(a)}function jC(r,a,c=0,u=!1,d=!1){const g=Cv(r)-c;if(a(c&12)===(a.target.elementFlags[u]&12))}function GSe({value:r}){return r.base10Value==="0"}function XSe(r){return E_(r,a=>!!(Tp(a)&4194304))}function KZe(r){return El(r,eYe)}function eYe(r){return r.flags&4?Iu:r.flags&8?K_:r.flags&64?Bd:r===_e||r===ue||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&GSe(r)?r:Ft}function iW(r,a){const c=a&~r.flags&98304;return c===0?r:Oi(c===32768?[r,Ne]:c===65536?[r,Yn]:[r,Ne,Yn])}function Dv(r,a=!1){D.assert($);const c=a?Pr:Ne;return r===c||r.flags&1048576&&r.types[0]===c?r:Oi([r,c])}function tYe(r){return _t||(_t=SA("NonNullable",524288,void 0)||Kr),_t!==Kr?j8(_t,[r]):Xo([r,Ua])}function My(r){return $?xx(r,2097152):r}function ZSe(r){return $?Oi([r,li]):r}function mse(r){return $?mW(r,li):r}function aW(r,a,c){return c?Iw(a)?Dv(r):ZSe(r):r}function OA(r,a){return TL(a)?My(r):op(a)?mse(r):r}function yx(r,a){return Ue&&a?mW(r,Jt):r}function MA(r){return r===Jt||!!(r.flags&1048576)&&r.types[0]===Jt}function sW(r){return Ue?mW(r,Jt):T0(r,524288)}function rYe(r,a){return(r.flags&524)!==0&&(a.flags&28)!==0}function oW(r){const a=Mi(r);return r.flags&2097152?yn(r.types,oW):!!(r.symbol&&r.symbol.flags&7040&&!(r.symbol.flags&32)&&!iq(r))||!!(a&4194304)||!!(a&1024&&oW(r.source))}function vx(r,a){const c=vc(r.flags,r.escapedName,Du(r)&8);c.declarations=r.declarations,c.parent=r.parent,c.links.type=a,c.links.target=r,r.valueDeclaration&&(c.valueDeclaration=r.valueDeclaration);const u=Pa(r).nameType;return u&&(c.links.nameType=u),c}function nYe(r,a){const c=To();for(const u of O2(r)){const d=An(u),g=a(d);c.set(u.escapedName,g===d?u:vx(u,g))}return c}function bM(r){if(!(_4(r)&&Mi(r)&8192))return r;const a=r.regularType;if(a)return a;const c=r,u=nYe(r,bM),d=yu(c.symbol,u,c.callSignatures,c.constructSignatures,c.indexInfos);return d.flags=c.flags,d.objectFlags|=c.objectFlags&-8193,r.regularType=d,d}function YSe(r,a,c){return{parent:r,propertyName:a,siblings:c,resolvedProperties:void 0}}function QSe(r){if(!r.siblings){const a=[];for(const c of QSe(r.parent))if(_4(c)){const u=b6(c,r.propertyName);u&&Tx(An(u),d=>{a.push(d)})}r.siblings=a}return r.siblings}function iYe(r){if(!r.resolvedProperties){const a=new Map;for(const c of QSe(r))if(_4(c)&&!(Mi(c)&2097152))for(const u of Pc(c))a.set(u.escapedName,u);r.resolvedProperties=zt(a.values())}return r.resolvedProperties}function aYe(r,a){if(!(r.flags&4))return r;const c=An(r),u=a&&YSe(a,r.escapedName,void 0),d=gse(c,u);return d===c?r:vx(r,d)}function sYe(r){const a=wr.get(r.escapedName);if(a)return a;const c=vx(r,Pr);return c.flags|=16777216,wr.set(r.escapedName,c),c}function oYe(r,a){const c=To();for(const d of O2(r))c.set(d.escapedName,aYe(d,a));if(a)for(const d of iYe(a))c.has(d.escapedName)||c.set(d.escapedName,sYe(d));const u=yu(r.symbol,c,tt,tt,ll(bp(r),d=>j1(d.keyType,lm(d.type),d.isReadonly)));return u.objectFlags|=Mi(r)&266240,u}function lm(r){return gse(r,void 0)}function gse(r,a){if(Mi(r)&196608){if(a===void 0&&r.widened)return r.widened;let c;if(r.flags&98305)c=it;else if(_4(r))c=oYe(r,a);else if(r.flags&1048576){const u=a||YSe(void 0,void 0,r.types),d=ll(r.types,g=>g.flags&98304?g:gse(g,u));c=Oi(d,bt(d,Py)?2:1)}else r.flags&2097152?c=Xo(ll(r.types,lm)):D6(r)&&(c=kv(r.target,ll(yl(r),lm)));return c&&a===void 0&&(r.widened=c),c||r}return r}function cW(r){let a=!1;if(Mi(r)&65536){if(r.flags&1048576)if(bt(r.types,Py))a=!0;else for(const c of r.types)cW(c)&&(a=!0);if(D6(r))for(const c of yl(r))cW(c)&&(a=!0);if(_4(r))for(const c of O2(r)){const u=An(c);Mi(u)&65536&&(cW(u)||qe(c.valueDeclaration,p.Object_literal_s_property_0_implicitly_has_an_1_type,ze(c),Rt(lm(u))),a=!0)}}return a}function u4(r,a,c){const u=Rt(lm(a));if(jn(r)&&!LN(bn(r),z))return;let d;switch(r.kind){case 225:case 171:case 170:d=ve?p.Member_0_implicitly_has_an_1_type:p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 168:const g=r;if(Be(g.name)){const x=C4(g.name);if((Ck(g.parent)||ly(g.parent)||uy(g.parent))&&g.parent.parameters.indexOf(g)>-1&&(hu(g,g.name.escapedText,788968,void 0,g.name.escapedText,!0)||x&&bH(x))){const P="arg"+g.parent.parameters.indexOf(g),L=il(g.name)+(g.dotDotDotToken?"[]":"");vy(ve,r,p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,P,L);return}}d=r.dotDotDotToken?ve?p.Rest_parameter_0_implicitly_has_an_any_type:p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ve?p.Parameter_0_implicitly_has_an_1_type:p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 207:if(d=p.Binding_element_0_implicitly_has_an_1_type,!ve)return;break;case 323:qe(r,p.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return;case 329:ve&&$9(r.parent)&&qe(r.parent.tagName,p.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,u);return;case 261:case 173:case 172:case 176:case 177:case 217:case 218:if(ve&&!r.name){c===3?qe(r,p.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,u):qe(r,p.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return}d=ve?c===3?p._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 199:ve&&qe(r,p.Mapped_object_type_implicitly_has_an_any_template_type);return;default:d=ve?p.Variable_0_implicitly_has_an_1_type:p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}vy(ve,r,d,il(Es(r)),u)}function lW(r,a,c){n(()=>{ve&&Mi(a)&65536&&(!c||!Xse(r))&&(cW(a)||u4(r,a,c))})}function hse(r,a,c){const u=um(r),d=um(a),g=$A(r),x=$A(a),P=x?d-1:d,L=g?P:Math.min(u,P),X=T6(r);if(X){const Z=T6(a);Z&&c(X,Z)}for(let Z=0;Za.typeParameter),er(r.inferences,(a,c)=>()=>(a.isFixed||(_Ye(r),uW(r.inferences),a.isFixed=!0),Dse(r,c))))}function uYe(r){return Gae(er(r.inferences,a=>a.typeParameter),er(r.inferences,(a,c)=>()=>Dse(r,c)))}function uW(r){for(const a of r)a.isFixed||(a.inferredType=void 0)}function bse(r,a,c){var u;((u=r.intraExpressionInferenceSites)!=null?u:r.intraExpressionInferenceSites=[]).push({node:a,type:c})}function _Ye(r){if(r.intraExpressionInferenceSites){for(const{node:a,type:c}of r.intraExpressionInferenceSites){const u=a.kind===173?$8e(a,2):sd(a,2);u&&Ly(r.inferences,c,u)}r.intraExpressionInferenceSites=void 0}}function xse(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function KSe(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function fYe(r){const a=Mn(r.inferences,X8);return a.length?vse(er(a,KSe),r.signature,r.flags,r.compareTypes):void 0}function Tse(r){return r&&r.mapper}function I6(r){const a=Mi(r);if(a&524288)return!!(a&1048576);const c=!!(r.flags&465829888||r.flags&524288&&!e8e(r)&&(a&4&&(r.node||bt(yl(r),I6))||a&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||a&12583968)||r.flags&137363456&&!(r.flags&1024)&&!e8e(r)&&bt(r.types,I6));return r.flags&138117121&&(r.objectFlags|=524288|(c?1048576:0)),c}function e8e(r){if(r.aliasSymbol&&!r.aliasTypeArguments){const a=wu(r.aliasSymbol,264);return!!(a&&Sn(a.parent,c=>c.kind===311?!0:c.kind===266?!1:"quit"))}return!1}function FA(r,a,c=0){return!!(r===a||r.flags&3145728&&bt(r.types,u=>FA(u,a,c))||c<3&&r.flags&16777216&&(FA(s4(r),a,c+1)||FA(o4(r),a,c+1)))}function pYe(r,a){const c=b0(r);return c?!!c.type&&FA(c.type,a):FA(Oc(r),a)}function dYe(r){const a=To();Tx(r,u=>{if(!(u.flags&128))return;const d=Kl(u.value),g=vc(4,d);g.links.type=it,u.symbol&&(g.declarations=u.symbol.declarations,g.valueDeclaration=u.symbol.valueDeclaration),a.set(d,g)});const c=r.flags&4?[j1(w,Ua,!1)]:tt;return yu(void 0,a,tt,tt,c)}function t8e(r,a,c){if(mu)return;const u=r.id+","+a.id+","+c.id;if(Fs.has(u))return Fs.get(u);mu=!0;const d=mYe(r,a,c);return mu=!1,Fs.set(u,d),d}function Sse(r){return!(Mi(r)&262144)||_4(r)&&bt(Pc(r),a=>Sse(An(a)))||Yo(r)&&bt(F2(r),Sse)}function mYe(r,a,c){if(!(Fh(r,w)||Pc(r).length!==0&&Sse(r)))return;if(Ym(r))return ep(_W(yl(r)[0],a,c),RC(r));if(Yo(r)){const d=er(F2(r),x=>_W(x,a,c)),g=R1(a)&4?ll(r.target.elementFlags,x=>x&2?1:x):r.target.elementFlags;return Tg(d,g,r.target.readonly,r.target.labeledElementDeclarations)}const u=Af(1040,void 0);return u.source=r,u.mappedType=a,u.constraintType=c,u}function gYe(r){const a=Pa(r);return a.type||(a.type=_W(r.links.propertyType,r.links.mappedType,r.links.constraintType)),a.type}function _W(r,a,c){const u=bd(c.type,vg(a)),d=Ay(a),g=xse(u);return Ly([g],r,d),r8e(g)||at}function*kse(r,a,c,u){const d=Pc(a);for(const g of d)if(!X7e(g)&&(c||!(g.flags&16777216||Du(g)&48))){const x=So(r,g.escapedName);if(!x)yield g;else if(u){const P=An(g);if(P.flags&109472){const L=An(x);L.flags&1||jp(L)===jp(P)||(yield g)}}}}function Cse(r,a,c,u){return nc(kse(r,a,c,u))}function hYe(r,a){return!(a.target.combinedFlags&8)&&a.target.minLength>r.target.minLength||!a.target.hasRestElement&&(r.target.hasRestElement||a.target.fixedLengthAT(g,d),r)===r&&wse(r,a)}return!1}function xYe(r,a){if(r===a||a.flags&5)return!0;if(r.flags&128){const c=r.value;return!!(a.flags&8&&i8e(c,!1)||a.flags&64&&HF(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&wse(Wd(c),a))}if(r.flags&134217728){const c=r.texts;return c.length===2&&c[0]===""&&c[1]===""&&Zo(r.types[0],a)}return Zo(r,a)}function a8e(r,a){return r.flags&128?s8e([r.value],tt,a):r.flags&134217728?cl(r.texts,a.texts)?er(r.types,TYe):s8e(r.texts,r.types,a):void 0}function Ese(r,a){const c=a8e(r,a);return!!c&&yn(c,(u,d)=>xYe(u,a.types[d]))}function TYe(r){return r.flags&402653317?r:gx(["",""],[r])}function s8e(r,a,c){const u=r.length-1,d=r[0],g=r[u],x=c.texts,P=x.length-1,L=x[0],X=x[P];if(u===0&&d.length0){let vn=Ee,br=De;for(;br=ut(vn).indexOf(Hr,br),!(br>=0);){if(vn++,vn===r.length)return;br=0}jt(vn,br),De+=Hr.length}else if(De!Zn($s,hc)):sn,Qa?Mn(On,hc=>!Zn(Qa,hc)):On]}function br(sn,On,Ha){const $s=sn.length!!Sr(Qa));if(!$s||On&&$s!==On)return;On=$s}return On}function _n(sn,On,Ha){let $s=0;if(Ha&1048576){let Qa;const hc=sn.flags&1048576?sn.types:[sn],ol=new Array(hc.length);let Xu=!1;for(const cc of On)if(Sr(cc))Qa=cc,$s++;else for(let zp=0;zpol[ft]?void 0:zp);if(cc.length){De(Oi(cc),Qa);return}}}else for(const Qa of On)Sr(Qa)?$s++:De(sn,Qa);if(Ha&2097152?$s===1:$s>0)for(const Qa of On)Sr(Qa)&&ut(sn,Qa,1)}function Ni(sn,On,Ha){if(Ha.flags&1048576){let $s=!1;for(const Qa of Ha.types)$s=Ni(sn,On,Qa)||$s;return $s}if(Ha.flags&4194304){const $s=Sr(Ha.type);if($s&&!$s.isFixed&&!n8e(sn)){const Qa=t8e(sn,On,Ha);Qa&&ut(Qa,$s.typeParameter,Mi(sn)&262144?16:8)}return!0}if(Ha.flags&262144){ut(a1(sn,sn.pattern?2:0),Ha,32);const $s=px(Ha);if($s&&Ni(sn,On,$s))return!0;const Qa=er(Pc(sn),An),hc=er(bp(sn),ol=>ol!==G?ol.type:Ft);return De(Oi(Nn(Qa,hc)),Ay(On)),!0}return!1}function ji(sn,On){if(sn.flags&16777216)De(sn.checkType,On.checkType),De(sn.extendsType,On.extendsType),De(s4(sn),s4(On)),De(o4(sn),o4(On));else{const Ha=[s4(On),o4(On)];Jr(sn,Ha,On.flags,d?64:0)}}function fs(sn,On){const Ha=a8e(sn,On),$s=On.types;if(Ha||yn(On.texts,Qa=>Qa.length===0))for(let Qa=0;Qa<$s.length;Qa++){const hc=Ha?Ha[Qa]:Ft,ol=$s[Qa];if(hc.flags&128&&ol.flags&8650752){const Xu=Sr(ol),cc=Xu?vp(Xu.typeParameter):void 0;if(cc&&!Fc(cc)){const zp=cc.flags&1048576?cc.types:[cc];let ft=la(zp,(ke,wn)=>ke|wn.flags,0);if(!(ft&4)){const ke=hc.value;ft&296&&!i8e(ke,!0)&&(ft&=-297),ft&2112&&!HF(ke,!0)&&(ft&=-2113);const wn=la(zp,(hn,Qn)=>Qn.flags&ft?hn.flags&4?hn:Qn.flags&4?hc:hn.flags&134217728?hn:Qn.flags&134217728&&Ese(hc,Qn)?hc:hn.flags&268435456?hn:Qn.flags&268435456&&ke===sSe(Qn.symbol,ke)?hc:hn.flags&128?hn:Qn.flags&128&&Qn.value===ke?Qn:hn.flags&8?hn:Qn.flags&8?Sg(+ke):hn.flags&32?hn:Qn.flags&32?Sg(+ke):hn.flags&256?hn:Qn.flags&256&&Qn.value===+ke?Qn:hn.flags&64?hn:Qn.flags&64?bYe(ke):hn.flags&2048?hn:Qn.flags&2048&&g3(Qn.value)===ke?Qn:hn.flags&16?hn:Qn.flags&16?ke==="true"?pe:ke==="false"?ue:rt:hn.flags&512?hn:Qn.flags&512&&Qn.intrinsicName===ke?Qn:hn.flags&32768?hn:Qn.flags&32768&&Qn.intrinsicName===ke?Qn:hn.flags&65536?hn:Qn.flags&65536&&Qn.intrinsicName===ke?Qn:hn:hn,Ft);if(!(wn.flags&131072)){De(wn,ol);continue}}}}De(hc,ol)}}function mo(sn,On){var Ha,$s;if(Mi(sn)&4&&Mi(On)&4&&(sn.target===On.target||Ym(sn)&&Ym(On))){br(yl(sn),yl(On),sse(sn.target));return}if(Om(sn)&&Om(On)){De(n1(sn),n1(On)),De(Ay(sn),Ay(On));const Qa=Tv(sn),hc=Tv(On);Qa&&hc&&De(Qa,hc)}if(Mi(On)&32&&!On.declaration.nameType){const Qa=n1(On);if(Ni(sn,On,Qa))return}if(!yYe(sn,On)){if(D6(sn)){if(Yo(On)){const Qa=Cv(sn),hc=Cv(On),ol=yl(On),Xu=On.target.elementFlags;if(Yo(sn)&&QZe(sn,On)){for(let ft=0;ft1){const a=Mn(r,Ase);if(a.length){const c=Oi(a,2);return Nn(Mn(r,u=>!Ase(u)),[c])}}return r}function EYe(r){return r.priority&416?Xo(r.contraCandidates):qZe(r.contraCandidates)}function AYe(r,a){const c=wYe(r.candidates),u=CYe(r.typeParameter)||M8(r.typeParameter),d=!u&&r.topLevel&&(r.isFixed||!pYe(a,r.typeParameter)),g=u?ll(c,jp):d?ll(c,N6):c,x=r.priority&416?Oi(g,2):WZe(g);return lm(x)}function Dse(r,a){const c=r.inferences[a];if(!c.inferredType){let u,d;if(r.signature){const x=c.candidates?AYe(c,r.signature):void 0,P=c.contraCandidates?EYe(c):void 0;if(x||P){const L=x&&(!P||!(x.flags&131072)&&bt(c.contraCandidates,X=>z2(x,X))&&yn(r.inferences,X=>X!==c&&yp(X.typeParameter)!==c.typeParameter||yn(X.candidates,Z=>z2(Z,x))));u=L?x:P,d=L?P:x}else if(r.flags&1)u=zr;else{const L=dx(c.typeParameter);L&&(u=$a(L,iZe(nZe(r,a),r.nonFixingMapper)))}}else u=r8e(c);c.inferredType=u||Nse(!!(r.flags&2));const g=yp(c.typeParameter);if(g){const x=$a(g,r.nonFixingMapper);(!u||!r.compareTypes(u,cm(x,u)))&&(c.inferredType=d&&r.compareTypes(d,cm(x,d))?d:x)}}return c.inferredType}function Nse(r){return r?it:at}function Ise(r){const a=[];for(let c=0;ca.kind===185?!0:a.kind===80||a.kind===165?!1:"quit")}function Pse(r){return!!(r.flags&16777216||Sn(r,a=>Lp(a)||zg(a)||Sm(a)))}function pW(r,a,c,u){switch(r.kind){case 80:if(!pS(r)){const x=q0(r);return x!==Kr?`${u?Nc(u):"-1"}|${xp(a)}|${xp(c)}|${oc(x)}`:void 0}case 110:return`0|${u?Nc(u):"-1"}|${xp(a)}|${xp(c)}`;case 234:case 216:return pW(r.expression,a,c,u);case 165:const d=pW(r.left,a,c,u);return d&&d+"."+r.right.escapedText;case 210:case 211:const g=bx(r);if(g!==void 0){const x=pW(r.expression,a,c,u);return x&&x+"."+g}break;case 205:case 206:case 261:case 217:case 218:case 173:return`${Nc(r)}#${xp(a)}`}}function Df(r,a){switch(a.kind){case 216:case 234:return Df(r,a.expression);case 225:return Hp(a)&&Df(r,a.left)||Un(a)&&a.operatorToken.kind===28&&Df(r,a.right)}switch(r.kind){case 235:return a.kind===235&&r.keywordToken===a.keywordToken&&r.name.escapedText===a.name.escapedText;case 80:case 81:return pS(r)?a.kind===110:a.kind===80&&q0(r)===q0(a)||(Fa(a)||Cc(a))&&V0(q0(r))===ei(a);case 110:return a.kind===110;case 108:return a.kind===108;case 234:case 216:return Df(r.expression,a);case 210:case 211:const c=bx(r),u=$l(a)?bx(a):void 0;return c!==void 0&&u!==void 0&&u===c&&Df(r.expression,a.expression);case 165:return $l(a)&&r.right.escapedText===bx(a)&&Df(r.left,a.expression);case 225:return Un(r)&&r.operatorToken.kind===28&&Df(r.right,a)}return!1}function bx(r){if(mi(r))return r.name.escapedText;if(Ll(r))return DYe(r);if(Cc(r)){const a=Si(r);return a?Kl(a):void 0}if(Cs(r))return""+r.parent.parameters.indexOf(r)}function c8e(r){return r.flags&8192?r.escapedName:r.flags&384?Kl(""+r.value):void 0}function DYe(r){return a0(r.argumentExpression)?Kl(r.argumentExpression.text):ju(r.argumentExpression)?l8e(r.argumentExpression):void 0}function l8e(r){const a=ou(r,111551,!0);if(!a||!(UC(a)||a.flags&8))return;const c=a.valueDeclaration;if(c===void 0)return;const u=A(c);if(u){const d=c8e(u);if(d!==void 0)return d}if(a7(c)&&lv(c,r)){const d=$D(c);if(d)return c8e(Sp(d));if(C3(c))return U5(c.name)}}function u8e(r,a){for(;$l(r);)if(r=r.expression,Df(r,a))return!0;return!1}function PT(r,a){for(;op(r);)if(r=r.expression,Df(r,a))return!0;return!1}function RA(r,a){if(r&&r.flags&1048576){const c=pTe(r,a);if(c&&Du(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!MC(An(c))),!!c.links.isDiscriminantProperty}return!1}function _8e(r,a){let c;for(const u of r)if(RA(a,u.escapedName)){if(c){c.push(u);continue}c=[u]}return c}function NYe(r,a){const c=new Map;let u=0;for(const d of r)if(d.flags&61603840){const g=Hu(d,a);if(g){if(!PA(g))return;let x=!1;Tx(g,P=>{const L=xp(jp(P)),X=c.get(L);X?X!==at&&(c.set(L,at),x=!0):c.set(L,d)}),x||u++}}return u>=10&&u*2>=r.length?c:void 0}function xM(r){const a=r.types;if(!(a.length<10||Mi(r)&32768||ef(a,c=>!!(c.flags&59506688))<10)){if(r.keyPropertyName===void 0){const c=Vt(a,d=>d.flags&59506688?Vt(Pc(d),g=>kg(An(g))?g.escapedName:void 0):void 0),u=c&&NYe(a,c);r.keyPropertyName=u?c:"",r.constituentMap=u}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function TM(r,a){var c;const u=(c=r.constituentMap)==null?void 0:c.get(xp(jp(a)));return u!==at?u:void 0}function f8e(r,a){const c=xM(r),u=c&&Hu(a,c);return u&&TM(r,u)}function IYe(r,a){const c=xM(r),u=c&&on(a.properties,g=>g.symbol&&g.kind===302&&g.symbol.escapedName===c&&DM(g.initializer)),d=u&&HM(u.initializer);return d&&TM(r,d)}function p8e(r,a){return Df(r,a)||u8e(r,a)}function d8e(r,a){if(r.arguments){for(const c of r.arguments)if(p8e(a,c))return!0}return!!(r.expression.kind===210&&p8e(a,r.expression.expression))}function Ose(r){return(!r.id||r.id<0)&&(r.id=yZ,yZ++),r.id}function PYe(r,a){if(!(r.flags&1048576))return Zo(r,a);for(const c of r.types)if(Zo(c,a))return!0;return!1}function OYe(r,a){var u;if(r===a)return r;if(a.flags&131072)return a;const c=`A${xp(r)},${xp(a)}`;return(u=W3(c))!=null?u:oT(c,MYe(r,a))}function MYe(r,a){const c=E_(r,d=>PYe(a,d)),u=a.flags&512&&w6(a)?El(c,V8):c;return Zo(a,u)?u:r}function Mse(r){const a=bg(r);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&z2(r,tl))}function Tp(r){r.flags&467927040&&(r=vp(r)||at);const a=r.flags;if(a&268435460)return $?16317953:16776705;if(a&134217856){const c=a&128&&r.value==="";return $?c?12123649:7929345:c?12582401:16776705}if(a&40)return $?16317698:16776450;if(a&256){const c=r.value===0;return $?c?12123394:7929090:c?12582146:16776450}if(a&64)return $?16317188:16775940;if(a&2048){const c=GSe(r);return $?c?12122884:7928580:c?12581636:16775940}return a&16?$?16316168:16774920:a&528?$?r===ue||r===_e?12121864:7927560:r===ue||r===_e?12580616:16774920:a&524288?Mi(r)&16&&Py(r)?$?83427327:83886079:Mse(r)?$?7880640:16728e3:$?7888800:16736160:a&16384?9830144:a&32768?26607360:a&65536?42917664:a&12288?$?7925520:16772880:a&67108864?$?7888800:16736160:a&131072?0:a&1048576?la(r.types,(c,u)=>c|Tp(u),0):a&2097152?LYe(r):83886079}function LYe(r){const a=iu(r,402784252);let c=0,u=134217727;for(const d of r.types)if(!(a&&d.flags&524288)){const g=Tp(d);c|=g,u&=g}return c&8256|u&134209471}function T0(r,a){return E_(r,c=>(Tp(c)&a)!==0)}function xx(r,a){const c=m8e(T0($&&r.flags&2?Ms:r,a));if($)switch(a){case 524288:return El(c,u=>Tp(u)&65536?Xo([u,Tp(u)&131072&&!iu(c,65536)?Oi([Ua,Yn]):Ua]):u);case 1048576:return El(c,u=>Tp(u)&131072?Xo([u,Tp(u)&65536&&!iu(c,32768)?Oi([Ua,Ne]):Ua]):u);case 2097152:case 4194304:return El(c,u=>Tp(u)&262144?tYe(u):u)}return c}function m8e(r){return r===Ms?at:r}function Lse(r,a){return a?Oi([Ve(r),Sp(a)]):r}function g8e(r,a){var c;const u=wv(a);if(!Mh(u))return Y;const d=r1(u);return Hu(r,d)||BA((c=F8(r,d))==null?void 0:c.type)||Y}function h8e(r,a){return $0(r,BC)&&$Ze(r,a)||BA(Pv(65,r,Ne,void 0))||Y}function BA(r){return r&&(z.noUncheckedIndexedAccess?Oi([r,Jt]):r)}function y8e(r){return ep(Pv(65,r,Ne,void 0)||Y)}function FYe(r){return r.parent.kind===208&&Fse(r.parent)||r.parent.kind===302&&Fse(r.parent.parent)?Lse(SM(r),r.right):Sp(r.right)}function Fse(r){return r.parent.kind===225&&r.parent.left===r||r.parent.kind===249&&r.parent.initializer===r}function RYe(r,a){return h8e(SM(r),r.elements.indexOf(a))}function BYe(r){return y8e(SM(r.parent))}function v8e(r){return g8e(SM(r.parent),r.name)}function jYe(r){return Lse(v8e(r),r.objectAssignmentInitializer)}function SM(r){const{parent:a}=r;switch(a.kind){case 248:return w;case 249:return eL(a)||Y;case 225:return FYe(a);case 219:return Ne;case 208:return RYe(a,r);case 229:return BYe(a);case 302:return v8e(a);case 303:return jYe(a)}return Y}function zYe(r){const a=r.parent,c=x8e(a.parent),u=a.kind===205?g8e(c,r.propertyName||r.name):r.dotDotDotToken?y8e(c):h8e(c,a.elements.indexOf(r));return Lse(u,r.initializer)}function b8e(r){return Ei(r).resolvedType||Sp(r)}function JYe(r){return r.initializer?b8e(r.initializer):r.parent.parent.kind===248?w:r.parent.parent.kind===249&&eL(r.parent.parent)||Y}function x8e(r){return r.kind===259?JYe(r):zYe(r)}function UYe(r){return r.kind===259&&r.initializer&&Ic(r.initializer)||r.kind!==207&&r.parent.kind===225&&Ic(r.parent.right)}function P6(r){switch(r.kind){case 216:return P6(r.expression);case 225:switch(r.operatorToken.kind){case 64:case 76:case 77:case 78:return P6(r.left);case 28:return P6(r.right)}}return r}function T8e(r){const{parent:a}=r;return a.kind===216||a.kind===225&&a.operatorToken.kind===64&&a.left===r||a.kind===225&&a.operatorToken.kind===28&&a.right===r?T8e(a):r}function VYe(r){return r.kind===295?jp(Sp(r.expression)):Ft}function dW(r){const a=Ei(r);if(!a.switchTypes){a.switchTypes=[];for(const c of r.caseBlock.clauses)a.switchTypes.push(VYe(c))}return a.switchTypes}function S8e(r){if(bt(r.caseBlock.clauses,c=>c.kind===295&&!Wc(c.expression)))return;const a=[];for(const c of r.caseBlock.clauses){const u=c.kind===295?c.expression.text:void 0;a.push(u&&!Zn(a,u)?u:void 0)}return a}function WYe(r,a){return r.flags&1048576?!Vt(r.types,c=>!Zn(a,c)):Zn(a,r)}function jA(r,a){return!!(r===a||r.flags&131072||a.flags&1048576&&qYe(r,a))}function qYe(r,a){if(r.flags&1048576){for(const c of r.types)if(!R2(a.types,c))return!1;return!0}return r.flags&1056&&i4(r)===a?!0:R2(a.types,r)}function Tx(r,a){return r.flags&1048576?Vt(r.types,a):a(r)}function Nv(r,a){return r.flags&1048576?bt(r.types,a):a(r)}function $0(r,a){return r.flags&1048576?yn(r.types,a):a(r)}function $Ye(r,a){return r.flags&3145728?yn(r.types,a):a(r)}function E_(r,a){if(r.flags&1048576){const c=r.types,u=Mn(c,a);if(u===c)return r;const d=r.origin;let g;if(d&&d.flags&1048576){const x=d.types,P=Mn(x,L=>!!(L.flags&1048576)||a(L));if(x.length-P.length===c.length-u.length){if(P.length===1)return P[0];g=Fae(1048576,P)}}return Bae(u,r.objectFlags&16809984,void 0,void 0,g)}return r.flags&131072||a(r)?r:Ft}function mW(r,a){return E_(r,c=>c!==a)}function HYe(r){return r.flags&1048576?r.types.length:1}function El(r,a,c){if(r.flags&131072)return r;if(!(r.flags&1048576))return a(r);const u=r.origin,d=u&&u.flags&1048576?u.types:r.types;let g,x=!1;for(const P of d){const L=P.flags&1048576?El(P,a,c):a(P);x||(x=P!==L),L&&(g?g.push(L):g=[L])}return x?g&&Oi(g,c?0:1):r}function k8e(r,a,c,u){return r.flags&1048576&&c?Oi(er(r.types,a),1,c,u):El(r,a)}function JC(r,a){return E_(r,c=>(c.flags&a)!==0)}function C8e(r,a){return iu(r,134217804)&&iu(a,402655616)?El(r,c=>c.flags&4?JC(a,402653316):J8(c)&&!iu(a,402653188)?JC(a,128):c.flags&8?JC(a,264):c.flags&64?JC(a,2112):c):r}function q8(r){return r.flags===0}function Sx(r){return r.flags===0?r.type:r}function $8(r,a){return a?{flags:0,type:r.flags&131072?zr:r}:r}function GYe(r){const a=Af(256);return a.elementType=r,a}function Rse(r){return rn[r.id]||(rn[r.id]=GYe(r))}function w8e(r,a){const c=bM(V2(HM(a)));return jA(c,r.elementType)?r:Rse(Oi([r.elementType,c]))}function XYe(r){return r.flags&131072?Rs:ep(r.flags&1048576?Oi(r.types,2):r)}function ZYe(r){return r.finalArrayType||(r.finalArrayType=XYe(r.elementType))}function kM(r){return Mi(r)&256?ZYe(r):r}function YYe(r){return Mi(r)&256?r.elementType:Ft}function QYe(r){let a=!1;for(const c of r)if(!(c.flags&131072)){if(!(Mi(c)&256))return!1;a=!0}return a}function E8e(r){const a=T8e(r),c=a.parent,u=mi(c)&&(c.name.escapedText==="length"||c.parent.kind===212&&Be(c.name)&&W$(c.name)),d=c.kind===211&&c.expression===a&&c.parent.kind===225&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!iy(c.parent)&&df(Sp(c.argumentExpression),296);return u||d}function KYe(r){return(Fa(r)||fo(r)||Vm(r)||Cs(r))&&!!(Lf(r)||jn(r)&&lb(r)&&r.initializer&&hk(r.initializer)&&Og(r.initializer))}function gW(r,a){if(r=nu(r),r.flags&8752)return An(r);if(r.flags&7){if(Du(r)&262144){const u=r.links.syntheticOrigin;if(u&&gW(u))return An(r)}const c=r.valueDeclaration;if(c){if(KYe(c))return An(r);if(Fa(c)&&c.parent.parent.kind===249){const u=c.parent.parent,d=CM(u.expression,void 0);if(d){const g=u.awaitModifier?15:13;return Pv(g,d,Ne,void 0)}}a&&ic(a,ai(c,p._0_needs_an_explicit_type_annotation,ze(r)))}}}function CM(r,a){if(!(r.flags&33554432))switch(r.kind){case 80:const c=V0(q0(r));return gW(c,a);case 110:return yQe(r);case 108:return Use(r);case 210:{const u=CM(r.expression,a);if(u){const d=r.name;let g;if(Ea(d)){if(!u.symbol)return;g=So(u,fN(u.symbol,d.escapedText))}else g=So(u,d.escapedText);return g&&gW(g,a)}return}case 216:return CM(r.expression,a)}}function hW(r){const a=Ei(r);let c=a.effectsSignature;if(c===void 0){let u;r.parent.kind===243?u=CM(r.expression,void 0):r.expression.kind!==108&&(op(r)?u=o1(OA(as(r.expression),r.expression),r.expression):u=WC(r.expression));const d=ro(u&&ad(u)||at,0),g=d.length===1&&!d[0].typeParameters?d[0]:bt(d,A8e)?$C(r):void 0;c=a.effectsSignature=g&&A8e(g)?g:Zf}return c===Zf?void 0:c}function A8e(r){return!!(b0(r)||r.declaration&&(R8(r.declaration)||at).flags&131072)}function eQe(r,a){if(r.kind===1||r.kind===3)return a.arguments[r.parameterIndex];const c=kl(a.expression);return $l(c)?kl(c.expression):void 0}function tQe(r){const a=Sn(r,Uq),c=bn(r),u=oh(c,a.statements.pos);yc.add(af(c,u.start,u.length,p.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function wM(r){const a=yW(r,!1);return Vr=r,Gr=a,a}function EM(r){const a=kl(r,!0);return a.kind===97||a.kind===225&&(a.operatorToken.kind===56&&(EM(a.left)||EM(a.right))||a.operatorToken.kind===57&&EM(a.left)&&EM(a.right))}function yW(r,a){for(;;){if(r===Vr)return Gr;const c=r.flags;if(c&4096){if(!a){const u=Ose(r),d=h8[u];return d!==void 0?d:h8[u]=yW(r,!0)}a=!1}if(c&368)r=r.antecedent;else if(c&512){const u=hW(r.node);if(u){const d=b0(u);if(d&&d.kind===3&&!d.type){const g=r.node.arguments[d.parameterIndex];if(g&&EM(g))return!1}if(Oc(u).flags&131072)return!1}r=r.antecedent}else{if(c&4)return bt(r.antecedents,u=>yW(u,!1));if(c&8){const u=r.antecedents;if(u===void 0||u.length===0)return!1;r=u[0]}else if(c&128){if(r.clauseStart===r.clauseEnd&&ake(r.switchStatement))return!1;r=r.antecedent}else if(c&1024){Vr=void 0;const u=r.target,d=u.antecedents;u.antecedents=r.antecedents;const g=yW(r.antecedent,!1);return u.antecedents=d,g}else return!(c&1)}}}function vW(r,a){for(;;){const c=r.flags;if(c&4096){if(!a){const u=Ose(r),d=iT[u];return d!==void 0?d:iT[u]=vW(r,!0)}a=!1}if(c&496)r=r.antecedent;else if(c&512){if(r.node.expression.kind===108)return!0;r=r.antecedent}else{if(c&4)return yn(r.antecedents,u=>vW(u,!1));if(c&8)r=r.antecedents[0];else if(c&1024){const u=r.target,d=u.antecedents;u.antecedents=r.antecedents;const g=vW(r.antecedent,!1);return u.antecedents=d,g}else return!!(c&1)}}}function D8e(r){switch(r.kind){case 80:if(!pS(r)){const a=q0(r);return UC(a)||JH(a)&&!bW(a)}break;case 210:case 211:return D8e(r.expression)&&wg(Ei(r).resolvedSymbol||Kr)}return!1}function W2(r,a,c=a,u,d=(g=>(g=di(r,iN))==null?void 0:g.flowNode)()){let g,x=!1,P=0;if(pt)return Y;if(!d)return a;pr++;const L=Ke,X=Sx(Ee(d));Ke=L;const Z=Mi(X)&256&&E8e(r)?Rs:kM(X);if(Z===Ti||r.parent&&r.parent.kind===234&&!(Z.flags&131072)&&T0(Z,2097152).flags&131072)return a;return Z===fr?at:Z;function Te(){return x?g:(x=!0,g=pW(r,a,c,u))}function Ee(St){var Xt;if(P===2e3)return(Xt=Hi)==null||Xt.instant(Hi.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:St.id}),pt=!0,tQe(r),Y;P++;let vr;for(;;){const lr=St.flags;if(lr&4096){for(let mn=L;mn=0&&vr.parameterIndex!(mn.flags&163840)):Xt.kind===220&&PT(Xt.expression,r)&&(lr=Qa(lr,St.switchStatement,St.clauseStart,St.clauseEnd,mn=>!(mn.flags&131072||mn.flags&128&&mn.value==="undefined"))));const Wr=_n(Xt,lr);Wr&&(lr=fs(lr,Wr,St.switchStatement,St.clauseStart,St.clauseEnd))}return $8(lr,q8(vr))}function Tr(St){const Xt=[];let vr=!1,lr=!1,Wr;for(const mn of St.antecedents){if(!Wr&&mn.flags&128&&mn.clauseStart===mn.clauseEnd){Wr=mn;continue}const rs=Ee(mn),za=Sx(rs);if(za===a&&a===c)return za;kr(Xt,za),jA(za,c)||(vr=!0),q8(rs)&&(lr=!0)}if(Wr){const mn=Ee(Wr),rs=Sx(mn);if(!(rs.flags&131072)&&!Zn(Xt,rs)&&!ake(Wr.switchStatement)){if(rs===a&&a===c)return rs;Xt.push(rs),jA(rs,c)||(vr=!0),q8(mn)&&(lr=!0)}}return $8(Sr(Xt,vr?2:1),lr)}function $n(St){const Xt=Ose(St),vr=z3[Xt]||(z3[Xt]=new Map),lr=Te();if(!lr)return a;const Wr=vr.get(lr);if(Wr)return Wr;for(let qr=mg;qr{const qr=WO(ko,lr);return!(qr.flags&131072)&&!(za.flags&131072)&&fM(za,qr)})}function ji(St,Xt,vr,lr,Wr){if((vr===37||vr===38)&&St.flags&1048576){const mn=xM(St);if(mn&&mn===bx(Xt)){const rs=TM(St,Sp(lr));if(rs)return vr===(Wr?37:38)?rs:kg(Hu(rs,mn)||at)?mW(St,rs):St}}return Ni(St,Xt,mn=>On(mn,vr,lr,Wr))}function fs(St,Xt,vr,lr,Wr){if(lrTM(St,za)||at));if(rs!==at)return rs}return Ni(St,Xt,mn=>hc(mn,vr,lr,Wr))}function mo(St,Xt,vr){if(Df(r,Xt))return xx(St,vr?4194304:8388608);$&&vr&&PT(Xt,r)&&(St=xx(St,2097152));const lr=_n(Xt,St);return lr?Ni(St,lr,Wr=>T0(Wr,vr?4194304:8388608)):St}function J_(St,Xt,vr){const lr=So(St,Xt);return lr?!!(lr.flags&16777216||Du(lr)&48)||vr:!!F8(St,Xt)||!vr}function Qm(St,Xt,vr){const lr=r1(Xt);if(Nv(St,mn=>J_(mn,lr,!0)))return E_(St,mn=>J_(mn,lr,vr));if(vr){const mn=oXe();if(mn)return Xo([St,j8(mn,[Xt,at])])}return St}function Mm(St,Xt,vr){switch(Xt.operatorToken.kind){case 64:case 76:case 77:case 78:return mo(ca(St,Xt.right,vr),Xt.left,vr);case 35:case 36:case 37:case 38:const lr=Xt.operatorToken.kind,Wr=P6(Xt.left),mn=P6(Xt.right);if(Wr.kind===220&&Wc(mn))return Ha(St,Wr,lr,mn,vr);if(mn.kind===220&&Wc(Wr))return Ha(St,mn,lr,Wr,vr);if(Df(r,Wr))return On(St,lr,mn,vr);if(Df(r,mn))return On(St,lr,Wr,vr);$&&(PT(Wr,r)?St=sn(St,lr,mn,vr):PT(mn,r)&&(St=sn(St,lr,Wr,vr)));const rs=_n(Wr,St);if(rs)return ji(St,rs,lr,mn,vr);const za=_n(mn,St);if(za)return ji(St,za,lr,Wr,vr);if(zp(Wr))return ft(St,lr,mn,vr);if(zp(mn))return ft(St,lr,Wr,vr);break;case 104:return ke(St,Xt,vr);case 103:if(Ea(Xt.left))return Ka(St,Xt,vr);const ko=P6(Xt.right),qr=Sp(Xt.left);if(qr.flags&8576){if(MA(St)&&$l(r)&&Df(r.expression,ko)&&bx(r)===r1(qr))return T0(St,vr?524288:65536);if(Df(r,ko))return Qm(St,qr,vr)}break;case 28:return ca(St,Xt.right,vr);case 56:return vr?ca(ca(St,Xt.left,!0),Xt.right,!0):Oi([ca(St,Xt.left,!1),ca(St,Xt.right,!1)]);case 57:return vr?Oi([ca(St,Xt.left,!0),ca(St,Xt.right,!0)]):ca(ca(St,Xt.left,!1),Xt.right,!1)}return St}function Ka(St,Xt,vr){const lr=P6(Xt.right);if(!Df(r,lr))return St;D.assertNode(Xt.left,Ea);const Wr=IW(Xt.left);if(Wr===void 0)return St;const mn=Wr.parent,rs=R_(D.checkDefined(Wr.valueDeclaration,"should always have a declaration"))?An(mn):hl(mn);return hn(St,rs,vr,!0)}function sn(St,Xt,vr,lr){const Wr=Xt===35||Xt===37,mn=Xt===35||Xt===36?98304:32768,rs=Sp(vr);return Wr!==lr&&$0(rs,ko=>!!(ko.flags&mn))||Wr===lr&&$0(rs,ko=>!(ko.flags&(3|mn)))?xx(St,2097152):St}function On(St,Xt,vr,lr){if(St.flags&1)return St;(Xt===36||Xt===38)&&(lr=!lr);const Wr=Sp(vr),mn=Xt===35||Xt===36;if(Wr.flags&98304){if(!$)return St;const rs=mn?lr?262144:2097152:Wr.flags&65536?lr?131072:1048576:lr?65536:524288;return xx(St,rs)}if(lr){if(!mn&&(St.flags&2||Nv(St,Oy))){if(Wr.flags&469893116||Oy(Wr))return Wr;if(Wr.flags&524288)return Ui}const rs=E_(St,za=>fM(za,Wr)||mn&&rYe(za,Wr));return C8e(rs,Wr)}return kg(Wr)?E_(St,rs=>!(qSe(rs)&&fM(rs,Wr))):St}function Ha(St,Xt,vr,lr,Wr){(vr===36||vr===38)&&(Wr=!Wr);const mn=P6(Xt.expression);if(!Df(r,mn)){$&&PT(mn,r)&&Wr===(lr.text!=="undefined")&&(St=xx(St,2097152));const rs=_n(mn,St);return rs?Ni(St,rs,za=>$s(za,lr,Wr)):St}return $s(St,lr,Wr)}function $s(St,Xt,vr){return vr?ol(St,Xt.text):xx(St,jB.get(Xt.text)||32768)}function Qa(St,Xt,vr,lr,Wr){return vr!==lr&&yn(dW(Xt).slice(vr,lr),Wr)?T0(St,2097152):St}function hc(St,Xt,vr,lr){const Wr=dW(Xt);if(!Wr.length)return St;const mn=Wr.slice(vr,lr),rs=vr===lr||Zn(mn,Ft);if(St.flags&2&&!rs){let ii;for(let Xi=0;XifM(za,ii)),za);if(!rs)return ko;const qr=E_(St,ii=>!(qSe(ii)&&Zn(Wr,jp(GZe(ii)))));return ko.flags&131072?qr:Oi([ko,qr])}function ol(St,Xt){switch(Xt){case"string":return Xu(St,w,1);case"number":return Xu(St,ge,2);case"bigint":return Xu(St,he,4);case"boolean":return Xu(St,rt,8);case"symbol":return Xu(St,ar,16);case"object":return St.flags&1?St:Oi([Xu(St,Ui,32),Xu(St,Yn,131072)]);case"function":return St.flags&1?St:Xu(St,tl,64);case"undefined":return Xu(St,Ne,65536)}return Xu(St,Ui,128)}function Xu(St,Xt,vr){return El(St,lr=>s1(lr,Xt,Hm)?Tp(lr)&vr?lr:Ft:z2(Xt,lr)?Xt:Tp(lr)&vr?Xo([lr,Xt]):Ft)}function cc(St,Xt,vr,lr){const Wr=S8e(Xt);if(!Wr)return St;const mn=zi(Xt.caseBlock.clauses,ko=>ko.kind===296);if(vr===lr||mn>=vr&&mn(Tp(qr)&ko)===ko)}const za=Wr.slice(vr,lr);return Oi(er(za,ko=>ko?ol(St,ko):Ft))}function zp(St){return(mi(St)&&ri(St.name)==="constructor"||Ll(St)&&Wc(St.argumentExpression)&&St.argumentExpression.text==="constructor")&&Df(r,St.expression)}function ft(St,Xt,vr,lr){if(lr?Xt!==35&&Xt!==37:Xt!==36&&Xt!==38)return St;const Wr=Sp(vr);if(!_ce(Wr)&&!HO(Wr))return St;const mn=So(Wr,"prototype");if(!mn)return St;const rs=An(mn),za=Fc(rs)?void 0:rs;if(!za||za===gu||za===tl)return St;if(Fc(St))return za;return E_(St,qr=>ko(qr,za));function ko(qr,ii){return qr.flags&524288&&Mi(qr)&1||ii.flags&524288&&Mi(ii)&1?qr.symbol===ii.symbol:z2(qr,ii)}}function ke(St,Xt,vr){const lr=P6(Xt.left);if(!Df(r,lr))return vr&&$&&PT(lr,r)?xx(St,2097152):St;const Wr=Sp(Xt.right);if(!A6(Wr,tl))return St;const mn=El(Wr,wn);return Fc(St)&&(mn===gu||mn===tl)||!vr&&!(mn.flags&524288&&!Oy(mn))?St:hn(St,mn,vr,!0)}function wn(St){const Xt=Hu(St,"prototype");if(Xt&&!Fc(Xt))return Xt;const vr=ro(St,1);return vr.length?Oi(er(vr,lr=>Oc(TA(lr)))):Ua}function hn(St,Xt,vr,lr){var mn;const Wr=St.flags&1048576?`N${xp(St)},${xp(Xt)},${(vr?1:0)|(lr?2:0)}`:void 0;return(mn=W3(Wr))!=null?mn:oT(Wr,Qn(St,Xt,vr,lr))}function Qn(St,Xt,vr,lr){if(!vr){if(lr)return E_(St,ko=>!A6(ko,Xt));const za=hn(St,Xt,!0,!1);return E_(St,ko=>!jA(ko,za))}if(St.flags&3)return Xt;const Wr=lr?A6:z2,mn=St.flags&1048576?xM(St):void 0,rs=El(Xt,za=>{const ko=mn&&Hu(za,mn),qr=ko&&TM(St,ko),ii=El(qr||St,lr?Xi=>A6(Xi,za)?Xi:A6(za,Xi)?za:Ft:Xi=>ASe(Xi,za)?Xi:ASe(za,Xi)?za:z2(Xi,za)?Xi:z2(za,Xi)?za:Ft);return ii.flags&131072?El(St,Xi=>iu(Xi,465829888)&&Wr(za,vp(Xi)||at)?Xo([Xi,za]):Ft):ii});return rs.flags&131072?z2(Xt,St)?Xt:Zo(St,Xt)?St:Zo(Xt,St)?Xt:Xo([St,Xt]):rs}function Xn(St,Xt,vr){if(d8e(Xt,r)){const lr=vr||!e7(Xt)?hW(Xt):void 0,Wr=lr&&b0(lr);if(Wr&&(Wr.kind===0||Wr.kind===1))return Ds(St,Wr,Xt,vr)}if(MA(St)&&$l(r)&&mi(Xt.expression)){const lr=Xt.expression;if(Df(r.expression,P6(lr.expression))&&Be(lr.name)&&lr.name.escapedText==="hasOwnProperty"&&Xt.arguments.length===1){const Wr=Xt.arguments[0];if(Wc(Wr)&&bx(r)===Kl(Wr.text))return T0(St,vr?524288:65536)}}return St}function Ds(St,Xt,vr,lr){if(Xt.type&&!(Fc(St)&&(Xt.type===gu||Xt.type===tl))){const Wr=eQe(Xt,vr);if(Wr){if(Df(r,Wr))return hn(St,Xt.type,lr,!1);$&&lr&&PT(Wr,r)&&!(Tp(Xt.type)&65536)&&(St=xx(St,2097152));const mn=_n(Wr,St);if(mn)return Ni(St,mn,rs=>hn(rs,Xt.type,lr,!1))}}return St}function ca(St,Xt,vr){if(TL(Xt)||Un(Xt.parent)&&(Xt.parent.operatorToken.kind===61||Xt.parent.operatorToken.kind===78)&&Xt.parent.left===Xt)return Kn(St,Xt,vr);switch(Xt.kind){case 80:if(!Df(r,Xt)&&O<5){const lr=q0(Xt);if(UC(lr)){const Wr=lr.valueDeclaration;if(Wr&&Fa(Wr)&&!Wr.type&&Wr.initializer&&D8e(r)){O++;const mn=ca(St,Wr.initializer,vr);return O--,mn}}}case 110:case 108:case 210:case 211:return mo(St,Xt,vr);case 212:return Xn(St,Xt,vr);case 216:case 234:return ca(St,Xt.expression,vr);case 225:return Mm(St,Xt,vr);case 223:if(Xt.operator===54)return ca(St,Xt.operand,!vr);break}return St}function Kn(St,Xt,vr){if(Df(r,Xt))return xx(St,vr?2097152:262144);const lr=_n(Xt,St);return lr?Ni(St,lr,Wr=>T0(Wr,vr?2097152:262144)):St}}function rQe(r,a){if(r=V0(r),(a.kind===80||a.kind===81)&&(a9(a)&&(a=a.parent),$y(a)&&(!iy(a)||u9(a)))){const c=Sp(a);if(V0(Ei(a).resolvedSymbol)===r)return c}return Gy(a)&&$v(a.parent)&&cr(a.parent)?bv(a.parent.symbol):r4(r)}function zA(r){return Sn(r.parent,a=>Qs(a)&&!c7(a)||a.kind===267||a.kind===311||a.kind===171)}function bW(r){if(!r.valueDeclaration)return!1;const a=ch(r.valueDeclaration).parent,c=Ei(a);return c.flags&524288||(c.flags|=524288,nQe(a)||N8e(a)),r.isAssigned||!1}function nQe(r){return!!Sn(r.parent,a=>(Qs(a)||Ik(a))&&!!(Ei(a).flags&524288))}function N8e(r){if(r.kind===80){if(iy(r)){const a=q0(r);JH(a)&&(a.isAssigned=!0)}}else js(r,N8e)}function UC(r){return r.flags&3&&(roe(r)&2)!==0}function iQe(r){const a=Ei(r);if(a.parameterInitializerContainsUndefined===void 0){if(!Pm(r,9))return wC(r.symbol),!0;const c=!!(Tp(XA(r,0))&16777216);if(!Oh())return wC(r.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function aQe(r,a){return $&&a.kind===168&&a.initializer&&Tp(r)&16777216&&!iQe(a)?T0(r,524288):r}function sQe(r,a){const c=a.parent;return c.kind===210||c.kind===165||c.kind===212&&c.expression===a||c.kind===211&&c.expression===a&&!(Nv(r,P8e)&&a4(Sp(c.argumentExpression)))}function I8e(r){return r.flags&2097152?bt(r.types,I8e):!!(r.flags&465829888&&Dy(r).flags&1146880)}function P8e(r){return r.flags&2097152?bt(r.types,P8e):!!(r.flags&465829888&&!iu(Dy(r),98304))}function oQe(r,a){const c=(Be(r)||mi(r)||Ll(r))&&!((w1(r.parent)||C7(r.parent))&&r.parent.tagName===r)&&(a&&a&64?sd(r,8):sd(r,void 0));return c&&!MC(c)}function Bse(r,a,c){return!(c&&c&2)&&Nv(r,I8e)&&(sQe(r,a)||oQe(a,c))?El(r,Dy):r}function O8e(r){return!!Sn(r,a=>{const c=a.parent;return c===void 0?"quit":Wu(c)?c.expression===a&&ju(a):dd(c)?c.name===a||c.propertyName===a:!1})}function xW(r,a){if(Qe&&v2(r,111551)&&!zC(a)&&!Yf(r,111551)){const c=Rf(r);rd(c)&1160127&&(Fg(z)||h7(z)&&O8e(a)||!iD(V0(c))?b2(r):x2(r))}}function cQe(r,a){var c;const u=An(r),d=r.valueDeclaration;if(d){if(Cc(d)&&!d.initializer&&!d.dotDotDotToken&&d.parent.elements.length>=2){const g=d.parent.parent;if(g.kind===259&&b1(d)&2||g.kind===168){const x=Ei(g);if(!(x.flags&16777216)){x.flags|=16777216;const P=D8(g,0),L=P&&El(P,Dy);if(x.flags&=-16777217,L&&L.flags&1048576&&!(g.kind===168&&bW(r))){const X=d.parent,Z=W2(X,L,L,void 0,a.flowNode);return Z.flags&131072?Ft:sa(d,Z)}}}}if(Cs(d)&&!d.type&&!d.initializer&&!d.dotDotDotToken){const g=d.parent;if(g.parameters.length>=2&&GV(g)){const x=UA(g);if(x&&x.parameters.length===1&&up(x)){const P=NC($a(An(x.parameters[0]),(c=M6(g))==null?void 0:c.nonFixingMapper));if(P.flags&1048576&&$0(P,Yo)&&!bW(r)){const L=W2(g,P,P,void 0,a.flowNode),X=g.parameters.indexOf(d)-(u3(g)?1:0);return bd(L,Sg(X))}}}}}return u}function lQe(r,a){if(pS(r))return AM(r);const c=q0(r);if(c===Kr)return Y;if(c===wt){if(h5e(r))return qe(r,p.arguments_cannot_be_referenced_in_property_initializers),Y;const Tr=Jm(r);return ce<2&&(Tr.kind===218?qe(r,p.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Pi(Tr,512)&&qe(r,p.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Ei(Tr).flags|=512,An(c)}_Qe(r)&&xW(c,r);const u=V0(c),d=ace(u,r);ov(d)&&zae(r,d)&&d.declarations&&Pu(r,d.declarations,r.escapedText);let g=u.valueDeclaration;if(g&&u.flags&32){if(g.kind===262&&G5(le,g)){let Tr=Z_(r);for(;Tr!==void 0;){if(Tr===g&&Tr.name!==r){Ei(g).flags|=1048576,Ei(r).flags|=2097152;break}Tr=Z_(Tr)}}else if(g.kind===230){let Tr=_d(r,!1,!1);for(;Tr.kind!==311;){if(Tr.parent===g){(fo(Tr)&&so(Tr)||fu(Tr))&&(Ei(g).flags|=1048576,Ei(r).flags|=2097152);break}Tr=_d(Tr,!1,!1)}}}dQe(r,c);let x=cQe(u,r);const P=_7(r);if(P){if(!(u.flags&3)&&!(jn(r)&&u.flags&512)){const Tr=u.flags&384?p.Cannot_assign_to_0_because_it_is_an_enum:u.flags&32?p.Cannot_assign_to_0_because_it_is_a_class:u.flags&1536?p.Cannot_assign_to_0_because_it_is_a_namespace:u.flags&16?p.Cannot_assign_to_0_because_it_is_a_function:u.flags&2097152?p.Cannot_assign_to_0_because_it_is_an_import:p.Cannot_assign_to_0_because_it_is_not_a_variable;return qe(r,Tr,ze(c)),Y}if(wg(u))return u.flags&3?qe(r,p.Cannot_assign_to_0_because_it_is_a_constant,ze(c)):qe(r,p.Cannot_assign_to_0_because_it_is_a_read_only_property,ze(c)),Y}const L=u.flags&2097152;if(u.flags&3){if(P===1)return x}else if(L)g=sm(c);else return x;if(!g)return x;x=Bse(x,r,a);const X=ch(g).kind===168,Z=zA(g);let Te=zA(r);const Ee=Te!==Z,De=r.parent&&r.parent.parent&&k3(r.parent)&&Fse(r.parent.parent),ut=c.flags&134217728,jt=x===Wt||x===Rs,Jr=jt&&r.parent.kind===234;for(;Te!==Z&&(Te.kind===217||Te.kind===218||KL(Te))&&(UC(u)&&x!==Rs||X&&!bW(u));)Te=zA(Te);const Hr=X||L||Ee||De||ut||uQe(r,g)||x!==Wt&&x!==Rs&&(!$||(x.flags&16387)!==0||zC(r)||Pse(r)||r.parent.kind===280)||r.parent.kind===234||g.kind===259&&g.exclamationToken||g.flags&16777216,vn=Jr?Ne:Hr?X?aQe(x,g):x:jt?Ne:Dv(x),br=Jr?My(W2(r,x,vn,Te)):W2(r,x,vn,Te);if(!E8e(r)&&(x===Wt||x===Rs)){if(br===Wt||br===Rs)return ve&&(qe(Es(g),p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ze(c),Rt(br)),qe(r,p.Variable_0_implicitly_has_an_1_type,ze(c),Rt(br))),nD(br)}else if(!Hr&&!LC(x)&&LC(br))return qe(r,p.Variable_0_is_used_before_being_assigned,ze(c)),x;return P?V2(br):br}function uQe(r,a){if(Cc(a)){const c=Sn(r,Cc);return c&&ch(c)===ch(a)}}function _Qe(r){var a;const c=r.parent;if(c){if(mi(c)&&c.expression===r||dd(c)&&c.isTypeOnly)return!1;const u=(a=c.parent)==null?void 0:a.parent;if(u&&Sf(u)&&u.isTypeOnly)return!1}return!0}function fQe(r,a){return!!Sn(r,c=>c===a?"quit":Qs(c)||c.parent&&fo(c.parent)&&!R_(c.parent)&&c.parent.initializer===c)}function pQe(r,a){return Sn(r,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function jse(r){return Sn(r,a=>!a||q$(a)?"quit":ob(a,!1))}function dQe(r,a){if(ce>=2||!(a.flags&34)||!a.valueDeclaration||Ja(a.valueDeclaration)||a.valueDeclaration.parent.kind===298)return;const c=sh(a.valueDeclaration),u=fQe(r,c),d=jse(c);if(d){if(u){let g=!0;if(k7(c)){const x=I4(a.valueDeclaration,260);if(x&&x.parent===c){const P=pQe(r.parent,c);if(P){const L=Ei(P);L.flags|=8192;const X=L.capturedBlockScopeBindings||(L.capturedBlockScopeBindings=[]);kr(X,a),P===c.initializer&&(g=!1)}}}g&&(Ei(d).flags|=4096)}if(k7(c)){const g=I4(a.valueDeclaration,260);g&&g.parent===c&&gQe(r,c)&&(Ei(a.valueDeclaration).flags|=262144)}Ei(a.valueDeclaration).flags|=32768}u&&(Ei(a.valueDeclaration).flags|=16384)}function mQe(r,a){const c=Ei(r);return!!c&&Zn(c.capturedBlockScopeBindings,ei(a))}function gQe(r,a){let c=r;for(;c.parent.kind===216;)c=c.parent;let u=!1;if(iy(c))u=!0;else if(c.parent.kind===223||c.parent.kind===224){const d=c.parent;u=d.operator===46||d.operator===47}return u?!!Sn(c,d=>d===a?"quit":d===a.statement):!1}function zse(r,a){if(Ei(r).flags|=2,a.kind===171||a.kind===175){const c=a.parent;Ei(c).flags|=4}else Ei(a).flags|=4}function M8e(r){return W5(r)?r:Qs(r)?void 0:js(r,M8e)}function L8e(r){const a=ei(r),c=hl(a);return ni(c)===Jn}function F8e(r,a,c){const u=a.parent;l3(u)&&!L8e(u)&&iN(r)&&r.flowNode&&!vW(r.flowNode,!1)&&qe(r,c)}function hQe(r,a){fo(a)&&R_(a)&&le&&a.initializer&&dL(a.initializer,r.pos)&&o0(a.parent)&&qe(r,p.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function AM(r){const a=zC(r);let c=_d(r,!0,!0),u=!1,d=!1;for(c.kind===175&&F8e(r,c,p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===218&&(c=_d(c,!1,!d),u=!0),c.kind===166){c=_d(c,!u,!1),d=!0;continue}break}if(hQe(r,c),d)qe(r,p.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 266:qe(r,p.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 265:qe(r,p.this_cannot_be_referenced_in_current_location);break;case 175:R8e(r,c)&&qe(r,p.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&ce<2&&zse(r,c);const g=Jse(r,!0,c);if(we){const x=An(nt);if(g===x&&u)qe(r,p.The_containing_arrow_function_captures_the_global_value_of_this);else if(!g){const P=qe(r,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Ja(c)){const L=Jse(c);L&&L!==x&&ic(P,ai(c,p.An_outer_value_of_this_is_shadowed_by_this_container))}}}return g||it}function Jse(r,a=!0,c=_d(r,!1,!1)){const u=jn(r);if(Qs(c)&&(!Wse(r)||u3(c))){let d=Zc(c)||u&&bQe(c);if(!d){const g=vQe(c);if(u&&g){const x=as(g).symbol;x&&x.members&&x.flags&16&&(d=hl(x).thisType)}else c1(c)&&(d=hl(Ec(c.symbol)).thisType);d||(d=J8e(c))}if(d)return W2(r,d)}if(Yi(c.parent)){const d=ei(c.parent),g=so(c)?An(d):hl(d).thisType;return W2(r,g)}if(Ja(c))if(c.commonJsModuleIndicator){const d=ei(c);return d&&An(d)}else{if(c.externalModuleIndicator)return Ne;if(a)return An(nt)}}function yQe(r){const a=_d(r,!1,!1);if(Qs(a)){const c=i1(a);if(c.thisParameter)return gW(c.thisParameter)}if(Yi(a.parent)){const c=ei(a.parent);return so(a)?An(c):hl(c).thisType}}function vQe(r){if(r.kind===217&&Un(r.parent)&&Au(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===173&&r.parent.kind===209&&Un(r.parent.parent)&&Au(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===217&&r.parent.kind===302&&r.parent.parent.kind===209&&Un(r.parent.parent.parent)&&Au(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===217&&Y_(r.parent)&&Be(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&Dc(r.parent.parent)&&go(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&Au(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(g_(r)&&Be(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&Dc(r.parent)&&go(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&Au(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function bQe(r){const a=ib(r);if(a&&a.kind===323){const u=a;if(u.parameters.length>0&&u.parameters[0].name&&u.parameters[0].name.escapedText==="this")return Qi(u.parameters[0].type)}const c=vL(r);if(c&&c.typeExpression)return Qi(c.typeExpression)}function R8e(r,a){return!!Sn(r,c=>Jl(c)?"quit":c.kind===168&&c.parent===a)}function Use(r){const a=r.parent.kind===212&&r.parent.expression===r,c=zD(r,!0);let u=c,d=!1,g=!1;if(!a){for(;u&&u.kind===218;)Pi(u,512)&&(g=!0),u=zD(u,!0),d=ce<2;u&&Pi(u,512)&&(g=!0)}let x=0;if(!u||!Z(u)){const Te=Sn(r,Ee=>Ee===u?"quit":Ee.kind===166);return Te&&Te.kind===166?qe(r,p.super_cannot_be_referenced_in_a_computed_property_name):a?qe(r,p.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!u||!u.parent||!(Yi(u.parent)||u.parent.kind===209)?qe(r,p.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):qe(r,p.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Y}if(!a&&c.kind===175&&F8e(r,u,p.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),so(u)||a?(x=32,!a&&ce>=2&&ce<=8&&(fo(u)||fu(u))&&rue(r.parent,Te=>{(!Ja(Te)||bm(Te))&&(Ei(Te).flags|=8388608)})):x=16,Ei(r).flags|=x,u.kind===173&&g&&(fd(r.parent)&&iy(r.parent)?Ei(u).flags|=256:Ei(u).flags|=128),d&&zse(r.parent,u),u.parent.kind===209)return ce<2?(qe(r,p.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Y):it;const P=u.parent;if(!l3(P))return qe(r,p.super_can_only_be_referenced_in_a_derived_class),Y;const L=hl(ei(P)),X=L&&vs(L)[0];if(!X)return Y;if(u.kind===175&&R8e(r,u))return qe(r,p.super_cannot_be_referenced_in_constructor_arguments),Y;return x===32?ni(L):cm(X,L.thisType);function Z(Te){return a?Te.kind===175:Yi(Te.parent)||Te.parent.kind===209?so(Te)?Te.kind===173||Te.kind===172||Te.kind===176||Te.kind===177||Te.kind===171||Te.kind===174:Te.kind===173||Te.kind===172||Te.kind===176||Te.kind===177||Te.kind===171||Te.kind===170||Te.kind===175:!1}}function B8e(r){return(r.kind===173||r.kind===176||r.kind===177)&&r.parent.kind===209?r.parent:r.kind===217&&r.parent.kind===302?r.parent.parent:void 0}function j8e(r){return Mi(r)&4&&r.target===un?yl(r)[0]:void 0}function z8e(r){return El(r,a=>a.flags&2097152?Vt(a.types,j8e):j8e(a))}function J8e(r){if(r.kind===218)return;if(GV(r)){const c=UA(r);if(c){const u=c.thisParameter;if(u)return An(u)}}const a=jn(r);if(we||a){const c=B8e(r);if(c){const d=f4(c,void 0);let g=c,x=d;for(;x;){const P=z8e(x);if(P)return $a(P,Tse(M6(c)));if(g.parent.kind!==302)break;g=g.parent.parent,x=f4(g,void 0)}return lm(d?My(d):n_(c))}const u=fb(r.parent);if(u.kind===225&&u.operatorToken.kind===64){const d=u.left;if($l(d)){const{expression:g}=d;if(a&&Be(g)){const x=bn(u);if(x.commonJsModuleIndicator&&q0(g)===x.symbol)return}return lm(n_(g))}}}}function U8e(r){const a=r.parent;if(!GV(a))return;const c=c7(a);if(c&&c.arguments){const d=voe(c),g=a.parameters.indexOf(r);if(r.dotDotDotToken)return hoe(d,g,d.length,it,void 0,0);const x=Ei(c),P=x.resolvedSignature;x.resolvedSignature=r_;const L=g0)return A2(c.name,!0,!1)}}function kQe(r,a){const c=Jm(r);if(c){let u=TW(c,a);if(u){const d=vf(c);if(d&1){const g=(d&2)!==0;u.flags&1048576&&(u=E_(u,P=>!!F6(1,P,g)));const x=F6(1,u,(d&2)!==0);if(!x)return;u=x}if(d&2){const g=El(u,Iv);return g&&Oi([g,tke(g)])}return u}}}function CQe(r,a){const c=sd(r,a);if(c){const u=Iv(c);return u&&Oi([u,tke(u)])}}function wQe(r,a){const c=Jm(r);if(c){const u=vf(c);let d=TW(c,a);if(d){const g=(u&2)!==0;return!r.asteriskToken&&d.flags&1048576&&(d=E_(d,x=>!!F6(1,x,g))),r.asteriskToken?d:F6(0,d,g)}}}function Wse(r){let a=!1;for(;r.parent&&!Qs(r.parent);){if(Cs(r.parent)&&(a||r.parent.initializer===r))return!0;Cc(r.parent)&&r.parent.initializer===r&&(a=!0),r=r.parent}return!1}function V8e(r,a){const c=!!(vf(a)&2),u=TW(a,void 0);if(u)return F6(r,u,c)||void 0}function TW(r,a){const c=R8(r);if(c)return c;const u=Xse(r);if(u&&!yae(u))return Oc(u);const d=c7(r);if(d)return sd(d,a)}function W8e(r,a){const u=voe(r).indexOf(a);return u===-1?void 0:qse(r,u)}function qse(r,a){if(xm(r))return a===0?w:a===1?FTe(!1):it;const c=Ei(r).resolvedSignature===_f?_f:$C(r);if($p(r)&&a===0)return wW(c,r);const u=c.parameters.length-1;return up(c)&&a>=u?bd(An(c.parameters[u]),Sg(a-u),256):Cg(c,a)}function EQe(r){const a=Noe(r);return a?mx(a):void 0}function AQe(r,a){if(r.parent.kind===214)return W8e(r.parent,a)}function DQe(r,a){const c=r.parent,{left:u,operatorToken:d,right:g}=c;switch(d.kind){case 64:case 77:case 76:case 78:return r===g?IQe(c):void 0;case 57:case 61:const x=sd(c,a);return r===g&&(x&&x.pattern||!x&&!Tue(c))?Sp(u):x;case 56:case 28:return r===g?sd(c,a):void 0;default:return}}function NQe(r){if(rh(r)&&r.symbol)return r.symbol;if(Be(r))return q0(r);if(mi(r)){const c=Sp(r.expression);return Ea(r.name)?a(c,r.name):So(c,r.name.escapedText)}if(Ll(r)){const c=n_(r.argumentExpression);if(!Mh(c))return;const u=Sp(r.expression);return So(u,r1(c))}return;function a(c,u){const d=NW(u.escapedText,u);return d&&ooe(c,d)}}function IQe(r){var a,c;const u=Au(r);switch(u){case 0:case 4:const d=NQe(r.left),g=d&&d.valueDeclaration;if(g&&(fo(g)||Vm(g))){const L=Lf(g);return L&&$a(Qi(L),Pa(d).mapper)||(fo(g)?g.initializer&&Sp(r.left):void 0)}return u===0?Sp(r.left):q8e(r);case 5:if(SW(r,u))return q8e(r);if(!rh(r.left)||!r.left.symbol)return Sp(r.left);{const L=r.left.symbol.valueDeclaration;if(!L)return;const X=Ws(r.left,$l),Z=Lf(L);if(Z)return Qi(Z);if(Be(X.expression)){const Te=X.expression,Ee=hu(Te,Te.escapedText,111551,void 0,Te.escapedText,!0);if(Ee){const De=Ee.valueDeclaration&&Lf(Ee.valueDeclaration);if(De){const ut=Hy(X);if(ut!==void 0)return O6(Qi(De),ut)}return}}return jn(L)||L===r.left?void 0:Sp(r.left)}case 1:case 6:case 3:case 2:let x;u!==2&&(x=rh(r.left)?(a=r.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(c=r.symbol)==null?void 0:c.valueDeclaration);const P=x&&Lf(x);return P?Qi(P):void 0;case 7:case 8:case 9:return D.fail("Does not apply");default:return D.assertNever(u)}}function SW(r,a=Au(r)){if(a===4)return!0;if(!jn(r)||a!==5||!Be(r.left.expression))return!1;const c=r.left.expression.escapedText,u=hu(r.left,c,111551,void 0,void 0,!0,!0);return nF(u==null?void 0:u.valueDeclaration)}function q8e(r){if(!r.symbol)return Sp(r.left);if(r.symbol.valueDeclaration){const d=Lf(r.symbol.valueDeclaration);if(d){const g=Qi(d);if(g)return g}}const a=Ws(r.left,$l);if(!tg(_d(a.expression,!1,!1)))return;const c=AM(a.expression),u=Hy(a);return u!==void 0&&O6(c,u)||void 0}function PQe(r){return!!(Du(r)&262144&&!r.links.type&&vv(r,0)>=0)}function O6(r,a,c){return El(r,u=>{var d;if(Om(u)&&!u.declaration.nameType){const g=n1(u),x=vp(g)||g,P=c||Wd(Ba(a));if(Zo(P,x))return RV(u,P)}else if(u.flags&3670016){const g=So(u,a);if(g)return PQe(g)?void 0:An(g);if(Yo(u)&&cy(a)&&+a>=0){const x=jC(u,u.target.fixedLength,0,!1,!0);if(x)return x}return(d=fae(pae(u),c||Wd(Ba(a))))==null?void 0:d.type}},!0)}function $8e(r,a){if(D.assert(tg(r)),!(r.flags&33554432))return $se(r,a)}function $se(r,a){const c=r.parent,u=Y_(r)&&Vse(r,a);if(u)return u;const d=f4(c,a);if(d){if(O8(r)){const g=ei(r);return O6(d,g.escapedName,Pa(g).nameType)}if(Hv(r)){const g=Es(r);if(g&&jc(g)){const x=as(g.expression),P=Mh(x)&&O6(d,r1(x));if(P)return P}}if(r.name){const g=wv(r.name);return El(d,x=>{var P;return(P=fae(pae(x),g))==null?void 0:P.type},!0)}}}function OQe(r){let a,c;for(let u=0;u{if(Yo(g)){if((u===void 0||ad)?c-a:0,P=x>0&&g.target.hasRestElement?CA(g.target,3):0;return x>0&&x<=P?yl(g)[Cv(g)-x]:jC(g,u===void 0?g.target.fixedLength:Math.min(g.target.fixedLength,u),c===void 0||d===void 0?P:Math.min(P,c-d),!1,!0)}return(!u||aU2(L)?bd(L,Sg(x)):L,!0))}function FQe(r,a){const c=r.parent;return PL(c)?sd(r,a):fy(c)?LQe(c,r,a):void 0}function H8e(r,a){if(E1(r)){const c=f4(r.parent,a);return!c||Fc(c)?void 0:O6(c,C9(r.name))}else return sd(r.parent,a)}function DM(r){switch(r.kind){case 11:case 9:case 10:case 15:case 112:case 97:case 106:case 80:case 157:return!0;case 210:case 216:return DM(r.expression);case 293:return!r.expression||DM(r.expression)}return!1}function RQe(r,a){return IYe(a,r)||ase(a,Nn(er(Mn(r.properties,c=>!!c.symbol&&c.kind===302&&DM(c.initializer)&&RA(a,c.symbol.escapedName)),c=>[()=>HM(c.initializer),c.symbol.escapedName]),er(Mn(Pc(a),c=>{var u;return!!(c.flags&16777216)&&!!((u=r==null?void 0:r.symbol)!=null&&u.members)&&!r.symbol.members.has(c.escapedName)&&RA(a,c.escapedName)}),c=>[()=>Ne,c.escapedName])),Zo)}function BQe(r,a){const c=PM(kx(r));return ase(a,Nn(er(Mn(r.properties,u=>!!u.symbol&&u.kind===290&&RA(a,u.symbol.escapedName)&&(!u.initializer||DM(u.initializer))),u=>[u.initializer?()=>HM(u.initializer):()=>pe,u.symbol.escapedName]),er(Mn(Pc(a),u=>{var d;if(!(u.flags&16777216)||!((d=r==null?void 0:r.symbol)!=null&&d.members))return!1;const g=r.parent.parent;return u.escapedName===c&&fy(g)&&Qw(g.children).length?!1:!r.symbol.members.has(u.escapedName)&&RA(a,u.escapedName)}),u=>[()=>Ne,u.escapedName])),Zo)}function f4(r,a){const c=tg(r)?$8e(r,a):sd(r,a),u=kW(c,r,a);if(u&&!(a&&a&2&&u.flags&8650752)){const d=El(u,g=>Mi(g)&32?g:ad(g),!0);return d.flags&1048576&&Dc(r)?RQe(r,d):d.flags&1048576&&S3(r)?BQe(r,d):d}}function kW(r,a,c){if(r&&iu(r,465829888)){const u=M6(a);if(u&&c&1&&bt(u.inferences,btt))return CW(r,u.nonFixingMapper);if(u!=null&&u.returnMapper){const d=CW(r,u.returnMapper);return d.flags&1048576&&R2(d.types,_e)&&R2(d.types,q)?E_(d,g=>g!==_e&&g!==q):d}}return r}function CW(r,a){return r.flags&465829888?$a(r,a):r.flags&1048576?Oi(er(r.types,c=>CW(c,a)),0):r.flags&2097152?Xo(er(r.types,c=>CW(c,a))):r}function sd(r,a){var g;var c;if(r.flags&33554432)return;const u=X8e(r,!a);if(u>=0)return ra[u];const{parent:d}=r;switch(d.kind){case 259:case 168:case 171:case 170:case 207:return SQe(r,a);case 218:case 252:return kQe(r,a);case 228:return wQe(d,a);case 222:return CQe(d,a);case 212:case 213:return W8e(d,r);case 169:return EQe(d);case 215:case 233:return Vy(d.type)?sd(d,a):Qi(d.type);case 225:return DQe(r,a);case 302:case 303:return $se(d,a);case 304:return sd(d.parent,a);case 208:{const x=d,P=f4(x,a),L=J5(x.elements,r),X=(g=(c=Ei(x)).spreadIndices)!=null?g:c.spreadIndices=OQe(x.elements);return Hse(P,L,x.elements.length,X.first,X.last)}case 226:return MQe(r,a);case 238:return D.assert(d.parent.kind===227),AQe(d.parent,r);case 216:{if(jn(d)){if(qH(d))return Qi($H(d));const x=X6(d);if(x&&!Vy(x.typeExpression.type))return Qi(x.typeExpression.type)}return sd(d,a)}case 234:return sd(d,a);case 237:return Qi(d.type);case 276:return A(d);case 293:return FQe(d,a);case 290:case 292:return H8e(d,a);case 285:case 284:return JQe(d,a)}}function G8e(r){NM(r,sd(r,void 0),!0)}function NM(r,a,c){Tn[Bn]=r,ra[Bn]=a,Va[Bn]=c,Bn++}function JA(){Bn--}function X8e(r,a){for(let c=Bn-1;c>=0;c--)if(r===Tn[c]&&(a||!Va[c]))return c;return-1}function jQe(r,a){pi[qs]=r,Hn[qs]=a,qs++}function zQe(){qs--}function M6(r){for(let a=qs-1;a>=0;a--)if(c3(r,pi[a]))return Hn[a]}function JQe(r,a){if(w1(r)&&a!==4){const c=X8e(r.parent,!a);if(c>=0)return ra[c]}return qse(r,0)}function wW(r,a){return I5e(a)!==0?UQe(r,a):qQe(r,a)}function UQe(r,a){let c=Aoe(r,at);c=Z8e(a,kx(a),c);const u=L6(Cm.IntrinsicAttributes,a);return Ac(u)||(c=ZO(u,c)),c}function VQe(r,a){if(r.compositeSignatures){const u=[];for(const d of r.compositeSignatures){const g=Oc(d);if(Fc(g))return g;const x=Hu(g,a);if(!x)return;u.push(x)}return Xo(u)}const c=Oc(r);return Fc(c)?c:Hu(c,a)}function WQe(r){if(OT(r.tagName)){const c=a5e(r),u=RW(r,c);return mx(u)}const a=n_(r.tagName);if(a.flags&128){const c=i5e(a,r);if(!c)return Y;const u=RW(r,c);return mx(u)}return a}function Z8e(r,a,c){const u=uKe(a);if(u){const d=WQe(r),g=c5e(u,jn(r),d,c);if(g)return g}return c}function qQe(r,a){const c=kx(a),u=fKe(c);let d=u===void 0?Aoe(r,at):u===""?Oc(r):VQe(r,u);if(!d)return u&&Nr(a.attributes.properties)&&qe(a,p.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ba(u)),at;if(d=Z8e(a,c,d),Fc(d))return d;{let g=d;const x=L6(Cm.IntrinsicClassAttributes,a);if(!Ac(x)){const L=N2(x.symbol),X=Oc(r);let Z;if(L){const Te=M2([X],L,B1(L),jn(a));Z=$a(x,xd(L,Te))}else Z=x;g=ZO(Z,g)}const P=L6(Cm.IntrinsicAttributes,a);return Ac(P)||(g=ZO(P,g)),g}}function $Qe(r){return R0(z,"noImplicitAny")?la(r,(a,c)=>a===c||!a?a:eTe(a.typeParameters,c.typeParameters)?XQe(a,c):void 0):void 0}function HQe(r,a,c){if(!r||!a)return r||a;const u=Oi([An(r),$a(An(a),c)]);return vx(r,u)}function GQe(r,a,c){const u=um(r),d=um(a),g=u>=d?r:a,x=g===r?a:r,P=g===r?u:d,L=J1(r)||J1(a),X=L&&!J1(g),Z=new Array(P+(X?1:0));for(let Te=0;Te=l1(g)&&Te>=l1(x),Hr=Te>=u?void 0:HC(r,Te),vn=Te>=d?void 0:HC(a,Te),br=Hr===vn?Hr:Hr?vn?void 0:Hr:vn,Tr=vc(1|(Jr&&!jt?16777216:0),br||`arg${Te}`);Tr.links.type=jt?ep(ut):ut,Z[Te]=Tr}if(X){const Te=vc(1,"args");Te.links.type=ep(Cg(x,P)),x===a&&(Te.links.type=$a(Te.links.type,c)),Z[P]=Te}return Z}function XQe(r,a){const c=r.typeParameters||a.typeParameters;let u;r.typeParameters&&a.typeParameters&&(u=xd(a.typeParameters,r.typeParameters));const d=r.declaration,g=GQe(r,a,u),x=HQe(r.thisParameter,a.thisParameter,u),P=Math.max(r.minArgumentCount,a.minArgumentCount),L=Lh(d,c,x,g,void 0,void 0,P,(r.flags|a.flags)&39);return L.compositeKind=2097152,L.compositeSignatures=Nn(r.compositeKind===2097152&&r.compositeSignatures||[r],[a]),u&&(L.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?l4(r.mapper,u):u),L}function Gse(r,a){const c=ro(r,0),u=Mn(c,d=>!ZQe(d,a));return u.length===1?u[0]:$Qe(u)}function ZQe(r,a){let c=0;for(;cx[ut]&8?B2(De,ge)||it:De),2):$?En:$t,X))}function Q8e(r){if(!(Mi(r)&4))return r;let a=r.literalType;return a||(a=r.literalType=kTe(r),a.objectFlags|=147456),a}function KQe(r){switch(r.kind){case 166:return eKe(r);case 80:return cy(r.escapedText);case 9:case 11:return cy(r.text);default:return!1}}function eKe(r){return df(Rh(r),296)}function Rh(r){const a=Ei(r.expression);if(!a.resolvedType){if((Sm(r.parent.parent)||Yi(r.parent.parent)||Lp(r.parent.parent))&&Un(r.expression)&&r.expression.operatorToken.kind===103&&r.parent.kind!==176&&r.parent.kind!==177)return a.resolvedType=Y;if(a.resolvedType=as(r.expression),fo(r.parent)&&!R_(r.parent)&&Mp(r.parent.parent)){const c=sh(r.parent.parent),u=jse(c);u&&(Ei(u).flags|=4096,Ei(r).flags|=32768,Ei(r.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!df(a.resolvedType,402665900)&&!Zo(a.resolvedType,_s))&&qe(r,p.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function tKe(r){var a;const c=(a=r.declarations)==null?void 0:a[0];return cy(r.escapedName)||c&&sp(c)&&KQe(c.name)}function K8e(r){var a;const c=(a=r.declarations)==null?void 0:a[0];return pN(r)||c&&sp(c)&&jc(c.name)&&df(Rh(c.name),4096)}function Zse(r,a,c,u){const d=[];for(let x=a;x0&&(P=C6(P,$n(),r.symbol,jt,Z),x=[],g=To(),Hr=!1,vn=!1,br=!1);const Ni=xg(as(Sr.expression,a&2));if(IM(Ni)){const ji=qae(Ni,Z);if(d&&t5e(ji,d,Sr),Tr=x.length,Ac(P))continue;P=C6(P,ji,r.symbol,jt,Z)}else qe(Sr,p.Spread_types_may_only_be_created_from_object_types),P=Y;continue}else D.assert(Sr.kind===176||Sr.kind===177),Y8(Sr);_n&&!(_n.flags&8576)?Zo(_n,_s)&&(Zo(_n,ge)?vn=!0:Zo(_n,ar)?br=!0:Hr=!0,u&&(Jr=!0)):g.set(Br.escapedName,Br),x.push(Br)}if(JA(),X){const Sr=Sn(L.pattern.parent,_n=>_n.kind===259||_n.kind===225||_n.kind===168);if(Sn(r,_n=>_n===Sr||_n.kind===304).kind!==304)for(const _n of Pc(L))!g.get(_n.escapedName)&&!So(P,_n.escapedName)&&(_n.flags&16777216||qe(_n.valueDeclaration||((c=di(_n,ih))==null?void 0:c.links.bindingElement),p.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),g.set(_n.escapedName,_n),x.push(_n))}if(Ac(P))return Y;if(P!==Ua)return x.length>0&&(P=C6(P,$n(),r.symbol,jt,Z),x=[],g=To(),Hr=!1,vn=!1),El(P,Sr=>Sr===Ua?$n():Sr);return $n();function $n(){const Sr=[];Hr&&Sr.push(Zse(r,Tr,x,w)),vn&&Sr.push(Zse(r,Tr,x,ge)),br&&Sr.push(Zse(r,Tr,x,ar));const Br=yu(r.symbol,g,tt,tt,Sr);return Br.objectFlags|=jt|128|131072,ut&&(Br.objectFlags|=4096),Jr&&(Br.objectFlags|=512),u&&(Br.pattern=r),Br}}function IM(r){const a=XSe(El(r,Dy));return!!(a.flags&126615553||a.flags&3145728&&yn(a.types,IM))}function nKe(r){eoe(r)}function iKe(r,a){return Y8(r),OM(r)||it}function aKe(r){eoe(r.openingElement),OT(r.closingElement.tagName)?AW(r.closingElement):as(r.closingElement.tagName),EW(r)}function sKe(r,a){return Y8(r),OM(r)||it}function oKe(r){eoe(r.openingFragment);const a=bn(r);return zF(z)&&(z.jsxFactory||a.pragmas.has("jsx"))&&!z.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&qe(r,z.jsxFactory?p.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:p.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),EW(r),OM(r)||it}function Qse(r){return Qo(r,"-")}function OT(r){return Be(r)&&ok(r.escapedText)||A1(r)}function e5e(r,a){return r.initializer?XC(r.initializer,a):pe}function cKe(r,a=0){const c=r.attributes,u=sd(c,0),d=$?To():void 0;let g=To(),x=el,P=!1,L,X=!1,Z=2048;const Te=PM(kx(r));for(const ut of c.properties){const jt=ut.symbol;if(E1(ut)){const Jr=e5e(ut,a);Z|=Mi(Jr)&458752;const Hr=vc(4|jt.flags,jt.escapedName);if(Hr.declarations=jt.declarations,Hr.parent=jt.parent,jt.valueDeclaration&&(Hr.valueDeclaration=jt.valueDeclaration),Hr.links.type=Jr,Hr.links.target=jt,g.set(Hr.escapedName,Hr),d==null||d.set(Hr.escapedName,Hr),C9(ut.name)===Te&&(X=!0),u){const vn=So(u,jt.escapedName);vn&&vn.declarations&&ov(vn)&&Be(ut.name)&&Pu(ut.name,vn.declarations,ut.name.escapedText)}if(u&&a&2&&!(a&4)&&Xm(ut)){const vn=M6(c);D.assert(vn);const br=ut.initializer.expression;bse(vn,br,Jr)}}else{D.assert(ut.kind===292),g.size>0&&(x=C6(x,De(),c.symbol,Z,!1),g=To());const Jr=xg(as(ut.expression,a&2));Fc(Jr)&&(P=!0),IM(Jr)?(x=C6(x,Jr,c.symbol,Z,!1),d&&t5e(Jr,d,ut)):(qe(ut.expression,p.Spread_types_may_only_be_created_from_object_types),L=L?Xo([L,Jr]):Jr)}}P||g.size>0&&(x=C6(x,De(),c.symbol,Z,!1));const Ee=r.parent.kind===283?r.parent:void 0;if(Ee&&Ee.openingElement===r&&Ee.children.length>0){const ut=EW(Ee,a);if(!P&&Te&&Te!==""){X&&qe(c,p._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ba(Te));const jt=f4(r.attributes,void 0),Jr=jt&&O6(jt,Te),Hr=vc(4,Te);Hr.links.type=ut.length===1?ut[0]:Jr&&Nv(Jr,BC)?Tg(ut):ep(Oi(ut)),Hr.valueDeclaration=M.createPropertySignature(void 0,Ba(Te),void 0,void 0),fc(Hr.valueDeclaration,c),Hr.valueDeclaration.symbol=Hr;const vn=To();vn.set(Te,Hr),x=C6(x,yu(c.symbol,vn,tt,tt,tt),c.symbol,Z,!1)}}if(P)return it;if(L&&x!==el)return Xo([L,x]);return L||(x===el?De():x);function De(){Z|=Fe;const ut=yu(c.symbol,g,tt,tt,tt);return ut.objectFlags|=Z|128|131072,ut}}function EW(r,a){const c=[];for(const u of r.children)if(u.kind===12)u.containsOnlyTriviaWhiteSpaces||c.push(w);else{if(u.kind===293&&!u.expression)continue;c.push(XC(u,a))}return c}function t5e(r,a,c){for(const u of Pc(r))if(!(u.flags&16777216)){const d=a.get(u.escapedName);if(d){const g=qe(d.valueDeclaration,p._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Ba(d.escapedName));ic(g,ai(c,p.This_spread_always_overwrites_this_property))}}}function lKe(r,a){return cKe(r.parent,a)}function L6(r,a){const c=kx(a),u=c&&Nm(c),d=u&&pf(u,r,788968);return d?hl(d):Y}function AW(r){const a=Ei(r);if(!a.resolvedSymbol){const c=L6(Cm.IntrinsicElements,r);if(Ac(c))return ve&&qe(r,p.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Ba(Cm.IntrinsicElements)),a.resolvedSymbol=Kr;{if(!Be(r.tagName)&&!A1(r.tagName))return D.fail();const u=So(c,A1(r.tagName)?vk(r.tagName):r.tagName.escapedText);return u?(a.jsxFlags|=1,a.resolvedSymbol=u):Sv(c,w)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(qe(r,p.Property_0_does_not_exist_on_type_1,HH(r.tagName),"JSX."+Cm.IntrinsicElements),a.resolvedSymbol=Kr)}}return a.resolvedSymbol}function Kse(r){const a=r&&bn(r),c=a&&Ei(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const u=UF(JF(z,a),z);if(!u)return;const g=Ju(z)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations,x=_6(r,u,g,r),P=x&&x!==Kr?Ec(nu(x)):void 0;return c&&(c.jsxImplicitImportContainer=P||!1),P}function kx(r){const a=r&&Ei(r);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=Kse(r);if(!u||u===Kr){const d=Q4(r);u=hu(r,d,1920,void 0,d,!1)}if(u){const d=nu(pf(Nm(nu(u)),Cm.JSX,1920));if(d&&d!==Kr)return a&&(a.jsxNamespace=d),d}a&&(a.jsxNamespace=!1)}const c=nu(SA(Cm.JSX,1920,void 0));if(c!==Kr)return c}function r5e(r,a){const c=a&&pf(a.exports,r,788968),u=c&&hl(c),d=u&&Pc(u);if(d){if(d.length===0)return"";if(d.length===1)return d[0].escapedName;d.length>1&&c.declarations&&qe(c.declarations[0],p.The_global_type_JSX_0_may_not_have_more_than_one_property,Ba(r))}}function uKe(r){return r&&pf(r.exports,Cm.LibraryManagedAttributes,788968)}function _Ke(r){return r&&pf(r.exports,Cm.ElementType,788968)}function fKe(r){return r5e(Cm.ElementAttributesPropertyNameContainer,r)}function PM(r){return r5e(Cm.ElementChildrenAttributeNameContainer,r)}function n5e(r,a){if(r.flags&4)return[r_];if(r.flags&128){const d=i5e(r,a);return d?[RW(a,d)]:(qe(a,p.Property_0_does_not_exist_on_type_1,r.value,"JSX."+Cm.IntrinsicElements),tt)}const c=ad(r);let u=ro(c,1);return u.length===0&&(u=ro(c,0)),u.length===0&&c.flags&1048576&&(u=Kie(er(c.types,d=>n5e(d,a)))),u}function i5e(r,a){const c=L6(Cm.IntrinsicElements,a);if(!Ac(c)){const u=r.value,d=So(c,Kl(u));if(d)return An(d);const g=Sv(c,w);return g||void 0}return it}function pKe(r,a,c){if(r===1){const d=o5e(c);d&&Zm(a,d,td,c.tagName,p.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(r===0){const d=s5e(c);d&&Zm(a,d,td,c.tagName,p.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{const d=o5e(c),g=s5e(c);if(!d||!g)return;const x=Oi([d,g]);Zm(a,x,td,c.tagName,p.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){const d=F_(c.tagName);return Ps(void 0,p._0_cannot_be_used_as_a_JSX_component,d)}}function a5e(r){D.assert(OT(r.tagName));const a=Ei(r);if(!a.resolvedJsxElementAttributesType){const c=AW(r);return a.jsxFlags&1?a.resolvedJsxElementAttributesType=An(c)||Y:a.jsxFlags&2?a.resolvedJsxElementAttributesType=Sv(L6(Cm.IntrinsicElements,r),w)||Y:a.resolvedJsxElementAttributesType=Y}return a.resolvedJsxElementAttributesType}function s5e(r){const a=L6(Cm.ElementClass,r);if(!Ac(a))return a}function OM(r){return L6(Cm.Element,r)}function o5e(r){const a=OM(r);if(a)return Oi([a,Yn])}function dKe(r){const a=kx(r);if(!a)return;const c=_Ke(a);if(!c)return;const u=c5e(c,jn(r));if(!(!u||Ac(u)))return u}function c5e(r,a,...c){const u=hl(r);if(r.flags&524288){const d=Pa(r).typeParameters;if(Nr(d)>=c.length){const g=M2(c,d,c.length,a);return Nr(g)===0?u:j8(r,g)}}if(Nr(u.typeParameters)>=c.length){const d=M2(c,u.typeParameters,c.length,a);return kv(u,d)}}function mKe(r){const a=L6(Cm.IntrinsicElements,r);return a?Pc(a):tt}function gKe(r){(z.jsx||0)===0&&qe(r,p.Cannot_use_JSX_unless_the_jsx_flag_is_provided),OM(r)===void 0&&ve&&qe(r,p.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function eoe(r){const a=$p(r);if(a&&lat(r),gKe(r),!Kse(r)){const c=yc&&z.jsx===2?p.Cannot_find_name_0:void 0,u=Q4(r),d=a?r.tagName:r;let g;if(FS(r)&&u==="null"||(g=hu(d,u,111551,c,u,!0)),g&&(g.isReferenced=67108863,Qe&&g.flags&2097152&&!Yf(g)&&b2(g)),FS(r)){const x=bn(r),P=b8(x);P&&hu(d,P,111551,c,P,!0)}}if(a){const c=r,u=$C(c);jW(u,r);const d=dKe(c);if(d!==void 0){const g=c.tagName,x=OT(g)?Wd(HH(g)):as(g);Zm(x,d,td,g,p.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const P=F_(g);return Ps(void 0,p._0_cannot_be_used_as_a_JSX_component,P)})}else pKe(I5e(c),Oc(u),c)}}function toe(r,a,c){if(r.flags&524288){if(b6(r,a)||F8(r,a)||mA(a)&&Fh(r,w)||c&&Qse(a))return!0}else if(r.flags&3145728&&MM(r)){for(const u of r.types)if(toe(u,a,c))return!0}return!1}function MM(r){return!!(r.flags&524288&&!(Mi(r)&512)||r.flags&67108864||r.flags&1048576&&bt(r.types,MM)||r.flags&2097152&&yn(r.types,MM))}function hKe(r,a){if(_at(r),r.expression){const c=as(r.expression,a);return r.dotDotDotToken&&c!==it&&!Ym(c)&&qe(r,p.JSX_spread_child_must_be_an_array_type),c}else return Y}function roe(r){return r.valueDeclaration?b1(r.valueDeclaration):0}function noe(r){if(r.flags&8192||Du(r)&4)return!0;if(jn(r.valueDeclaration)){const a=r.valueDeclaration.parent;return a&&Un(a)&&Au(a)===3}}function ioe(r,a,c,u,d,g=!0){const x=g?r.kind===165?r.right:r.kind===204?r:r.kind===207&&r.propertyName?r.propertyName:r.name:void 0;return l5e(r,a,c,u,d,x)}function l5e(r,a,c,u,d,g){const x=c0(d,c);if(a){if(ce<2&&u5e(d))return g&&qe(g,p.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(x&256)return g&&qe(g,p.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ze(d),Rt(IT(d))),!1}if(x&256&&u5e(d)&&(JD(r)||yue(r)||Bg(r.parent)&&nF(r.parent.parent))){const L=Zy(vd(d));if(L&&cit(r))return g&&qe(g,p.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ze(d),ng(L.name)),!1}if(!(x&24))return!0;if(x&8){const L=Zy(vd(d));return cce(r,L)?!0:(g&&qe(g,p.Property_0_is_private_and_only_accessible_within_class_1,ze(d),Rt(IT(d))),!1)}if(a)return!0;let P=SCe(r,L=>{const X=hl(ei(L));return USe(X,d,c)});return!P&&(P=yKe(r),P=P&&USe(P,d,c),x&32||!P)?(g&&qe(g,p.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ze(d),Rt(IT(d)||u)),!1):x&32?!0:(u.flags&262144&&(u=u.isThisType?yp(u):vp(u)),!u||!P8(u,P)?(g&&qe(g,p.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ze(d),Rt(P),Rt(u)),!1):!0)}function yKe(r){const a=vKe(r);let c=(a==null?void 0:a.type)&&Qi(a.type);if(c&&c.flags&262144&&(c=yp(c)),c&&Mi(c)&7)return I8(c)}function vKe(r){const a=_d(r,!1,!1);return a&&Qs(a)?u3(a):void 0}function u5e(r){return!!gM(r,a=>!(a.flags&8192))}function WC(r){return o1(as(r),r)}function DW(r){return!!(Tp(r)&50331648)}function aoe(r){return DW(r)?My(r):r}function bKe(r,a){const c=ju(r)?Yd(r):void 0;if(r.kind===106){qe(r,p.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Be(r)&&c==="undefined"){qe(r,p.The_value_0_cannot_be_used_here,"undefined");return}qe(r,a&16777216?a&33554432?p._0_is_possibly_null_or_undefined:p._0_is_possibly_undefined:p._0_is_possibly_null,c)}else qe(r,a&16777216?a&33554432?p.Object_is_possibly_null_or_undefined:p.Object_is_possibly_undefined:p.Object_is_possibly_null)}function xKe(r,a){qe(r,a&16777216?a&33554432?p.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:p.Cannot_invoke_an_object_which_is_possibly_undefined:p.Cannot_invoke_an_object_which_is_possibly_null)}function _5e(r,a,c){if($&&r.flags&2){if(ju(a)){const d=Yd(a);if(d.length<100)return qe(a,p._0_is_of_type_unknown,d),Y}return qe(a,p.Object_is_of_type_unknown),Y}const u=Tp(r);if(u&50331648){c(a,u);const d=My(r);return d.flags&229376?Y:d}return r}function o1(r,a){return _5e(r,a,bKe)}function f5e(r,a){const c=o1(r,a);if(c.flags&16384){if(ju(a)){const u=Yd(a);if(Be(a)&&u==="undefined")return qe(a,p.The_value_0_cannot_be_used_here,u),c;if(u.length<100)return qe(a,p._0_is_possibly_undefined,u),c}qe(a,p.Object_is_possibly_undefined)}return c}function soe(r,a,c){return r.flags&32?TKe(r,a):coe(r,r.expression,WC(r.expression),r.name,a,c)}function TKe(r,a){const c=as(r.expression),u=OA(c,r.expression);return aW(coe(r,r.expression,o1(u,r.expression),r.name,a),r,u!==c)}function p5e(r,a){const c=oF(r)&&f3(r.left)?o1(AM(r.left),r.left):WC(r.left);return coe(r,r.left,c,r.right,a)}function d5e(r){for(;r.parent.kind===216;)r=r.parent;return ey(r.parent)&&r.parent.expression===r}function NW(r,a){for(let c=Z_(a);c;c=Z_(c)){const{symbol:u}=c,d=fN(u,r),g=u.members&&u.members.get(d)||u.exports&&u.exports.get(d);if(g)return g}}function SKe(r){if(!Z_(r))return Rr(r,p.Private_identifiers_are_not_allowed_outside_class_bodies);if(!RG(r.parent)){if(!$y(r))return Rr(r,p.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const a=Un(r.parent)&&r.parent.operatorToken.kind===103;if(!IW(r)&&!a)return Rr(r,p.Cannot_find_name_0,ri(r))}return!1}function kKe(r){SKe(r);const a=IW(r);return a&&FM(a,void 0,!1),it}function IW(r){if(!$y(r))return;const a=Ei(r);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=NW(r.escapedText,r)),a.resolvedSymbol}function ooe(r,a){return So(r,a.escapedName)}function CKe(r,a,c){let u;const d=Pc(r);d&&Vt(d,x=>{const P=x.valueDeclaration;if(P&&sp(P)&&Ea(P.name)&&P.name.escapedText===a.escapedText)return u=x,!0});const g=gg(a);if(u){const x=D.checkDefined(u.valueDeclaration),P=D.checkDefined(Z_(x));if(c!=null&&c.valueDeclaration){const L=c.valueDeclaration,X=Z_(L);if(D.assert(!!X),Sn(X,Z=>P===Z)){const Z=qe(a,p.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,g,Rt(r));return ic(Z,ai(L,p.The_shadowing_declaration_of_0_is_defined_here,g),ai(x,p.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,g)),!0}}return qe(a,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,g,gg(P.name||XI)),!0}return!1}function m5e(r,a){return(W0(a)||JD(r)&&Yb(a))&&_d(r,!0,!1)===yg(a)}function coe(r,a,c,u,d,g){const x=Ei(a).resolvedSymbol,P=_7(r),L=ad(P!==0||d5e(r)?lm(c):c),X=Fc(L)||L===zr;let Z;if(Ea(u)){ce<99&&(P!==0&&A_(r,1048576),P!==1&&A_(r,524288));const Ee=NW(u.escapedText,u);if(P&&Ee&&Ee.valueDeclaration&&g_(Ee.valueDeclaration)&&Rr(u,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,ri(u)),X){if(Ee)return Ac(L)?Y:L;if(!Z_(u))return Rr(u,p.Private_identifiers_are_not_allowed_outside_class_bodies),it}if(Z=Ee?ooe(c,Ee):void 0,!Z&&CKe(c,u,Ee))return Y;Z&&Z.flags&65536&&!(Z.flags&32768)&&P!==1&&qe(r,p.Private_accessor_was_defined_without_a_getter)}else{if(X)return Be(a)&&x&&xW(x,r),Ac(L)?Y:L;Z=So(L,u.escapedText,!1,r.kind===165)}Be(a)&&x&&(Fg(z)||!(Z&&(iD(Z)||Z.flags&8&&r.parent.kind===305))||h7(z)&&O8e(r))&&xW(x,r);let Te;if(Z){const Ee=ace(Z,u);if(ov(Ee)&&zae(r,Ee)&&Ee.declarations&&Pu(u,Ee.declarations,u.escapedText),wKe(Z,r,u),FM(Z,r,T5e(a,x)),Ei(r).resolvedSymbol=Z,ioe(r,a.kind===108,u9(r),L,Z),lke(r,Z,P))return qe(u,p.Cannot_assign_to_0_because_it_is_a_read_only_property,ri(u)),Y;Te=m5e(r,Z)?Wt:g||IF(r)?dA(Z):An(Z)}else{const Ee=!Ea(u)&&(P===0||!k6(c)||k9(c))?F8(L,u.escapedText):void 0;if(!(Ee&&Ee.type)){const De=loe(r,c.symbol,!0);return!De&&wA(c)?it:c.symbol===nt?(nt.exports.has(u.escapedText)&&nt.exports.get(u.escapedText).flags&418?qe(u,p.Property_0_does_not_exist_on_type_1,Ba(u.escapedText),Rt(c)):ve&&qe(u,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Rt(c)),it):(u.escapedText&&!Rb(r)&&y5e(u,k9(c)?L:c,De),Y)}Ee.isReadonly&&(iy(r)||j$(r))&&qe(r,p.Index_signature_in_type_0_only_permits_reading,Rt(L)),Te=z.noUncheckedIndexedAccess&&!iy(r)?Oi([Ee.type,Jt]):Ee.type,z.noPropertyAccessFromIndexSignature&&mi(r)&&qe(u,p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Ba(u.escapedText)),Ee.declaration&&b1(Ee.declaration)&268435456&&Pu(u,[Ee.declaration],u.escapedText)}return g5e(r,Z,Te,u,d)}function loe(r,a,c){const u=bn(r);if(u&&z.checkJs===void 0&&u.checkJsDirective===void 0&&(u.scriptKind===1||u.scriptKind===2)){const d=Vt(a==null?void 0:a.declarations,bn);return!(u!==d&&d&&im(d))&&!(c&&a&&a.flags&32)&&!(r&&c&&mi(r)&&r.expression.kind===110)}return!1}function g5e(r,a,c,u,d){const g=_7(r);if(g===1)return yx(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!tq(a.declarations))return c;if(c===Wt)return kT(r,a);c=Bse(c,r,d);let x=!1;if($&&me&&$l(r)&&r.expression.kind===110){const L=a&&a.valueDeclaration;if(L&&_Ce(L)&&!so(L)){const X=zA(r);X.kind===175&&X.parent===L.parent&&!(L.flags&16777216)&&(x=!0)}}else $&&a&&a.valueDeclaration&&mi(a.valueDeclaration)&&YD(a.valueDeclaration)&&zA(r)===zA(a.valueDeclaration)&&(x=!0);const P=W2(r,c,x?Dv(c):c);return x&&!LC(c)&&LC(P)?(qe(u,p.Property_0_is_used_before_being_assigned,ze(a)),c):g?V2(P):P}function wKe(r,a,c){const{valueDeclaration:u}=r;if(!u||bn(a).isDeclarationFile)return;let d;const g=ri(c);h5e(a)&&!xGe(u)&&!($l(a)&&$l(a.expression))&&!lv(u,c)&&!(g_(u)&&Vv(u)&32)&&(z.useDefineForClassFields||!EKe(r))?d=qe(c,p.Property_0_is_used_before_its_initialization,g):u.kind===262&&a.parent.kind!==182&&!(u.flags&16777216)&&!lv(u,c)&&(d=qe(c,p.Class_0_used_before_its_declaration,g)),d&&ic(d,ai(u,p._0_is_declared_here,g))}function h5e(r){return!!Sn(r,a=>{switch(a.kind){case 171:return!0;case 302:case 173:case 176:case 177:case 304:case 166:case 238:case 293:case 290:case 291:case 292:case 285:case 232:case 297:return!1;case 218:case 243:return oo(a.parent)&&fu(a.parent.parent)?!0:"quit";default:return $y(a)?!1:"quit"}})}function EKe(r){if(!(r.parent.flags&32))return!1;let a=An(r.parent);for(;;){if(a=a.symbol&&AKe(a),!a)return!1;const c=So(a,r.escapedName);if(c&&c.valueDeclaration)return!0}}function AKe(r){const a=vs(r);if(a.length!==0)return Xo(a)}function y5e(r,a,c){let u,d;if(!Ea(r)&&a.flags&1048576&&!(a.flags&402784252)){for(const x of a.types)if(!So(x,r.escapedText)&&!F8(x,r.escapedText)){u=Ps(u,p.Property_0_does_not_exist_on_type_1,il(r),Rt(x));break}}if(v5e(r.escapedText,a)){const x=il(r),P=Rt(a);u=Ps(u,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,P,P+"."+x)}else{const x=KA(a);if(x&&So(x,r.escapedText))u=Ps(u,p.Property_0_does_not_exist_on_type_1,il(r),Rt(a)),d=ai(r,p.Did_you_forget_to_use_await);else{const P=il(r),L=Rt(a),X=IKe(P,a);if(X!==void 0)u=Ps(u,p.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,P,L,X);else{const Z=uoe(r,a);if(Z!==void 0){const Te=Bu(Z),Ee=c?p.Property_0_may_not_exist_on_type_1_Did_you_mean_2:p.Property_0_does_not_exist_on_type_1_Did_you_mean_2;u=Ps(u,Ee,P,L,Te),d=Z.valueDeclaration&&ai(Z.valueDeclaration,p._0_is_declared_here,Te)}else{const Te=DKe(a)?p.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:p.Property_0_does_not_exist_on_type_1;u=Ps(uae(u,a),Te,P,L)}}}}const g=Wy(bn(r),r,u);d&&ic(g,d),Ah(!c||u.code!==p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,g)}function DKe(r){return z.lib&&!z.lib.includes("dom")&&$Ye(r,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Ba(a.symbol.escapedName)))&&Py(r)}function v5e(r,a){const c=a.symbol&&So(An(a.symbol),r);return c!==void 0&&!!c.valueDeclaration&&so(c.valueDeclaration)}function NKe(r){const a=gg(r),u=c$().get(a);return u&&Nl(u.keys())}function IKe(r,a){const c=ad(a).symbol;if(!c)return;const u=Bu(c),g=c$().get(u);if(g){for(const[x,P]of g)if(Zn(P,r))return x}}function b5e(r,a){return LM(r,Pc(a),106500)}function uoe(r,a){let c=Pc(a);if(typeof r!="string"){const u=r.parent;mi(u)&&(c=Mn(c,d=>S5e(u,a,d))),r=ri(r)}return LM(r,c,111551)}function x5e(r,a){const c=bs(r)?r:ri(r),u=Pc(a),d=c==="for"?on(u,g=>Bu(g)==="htmlFor"):c==="class"?on(u,g=>Bu(g)==="className"):void 0;return d!=null?d:LM(c,u,111551)}function _oe(r,a){const c=uoe(r,a);return c&&Bu(c)}function foe(r,a,c){return D.assert(a!==void 0,"outername should always be defined"),X3(r,a,c,void 0,a,!1,!1,!0,(d,g,x)=>{D.assertEqual(a,g,"name should equal outerName");const P=pf(d,g,x);if(P)return P;let L;return d===je?L=Mr(["string","number","boolean","object","bigint","symbol"],Z=>d.has(Z.charAt(0).toUpperCase()+Z.slice(1))?vc(524288,Z):void 0).concat(zt(d.values())):L=zt(d.values()),LM(Ba(g),L,x)})}function PKe(r,a,c){const u=foe(r,a,c);return u&&Bu(u)}function PW(r,a){return a.exports&&LM(ri(r),dv(a),2623475)}function OKe(r,a){const c=PW(r,a);return c&&Bu(c)}function MKe(r,a,c){function u(x){const P=b6(r,x);if(P){const L=MT(An(P));return!!L&&l1(L)>=1&&Zo(c,Cg(L,0))}return!1}const d=iy(a)?"set":"get";if(!u(d))return;let g=kN(a.expression);return g===void 0?g=d:g+="."+d,g}function LKe(r,a){const c=a.types.filter(u=>!!(u.flags&128));return ds(r.value,c,u=>u.value)}function LM(r,a,c){return ds(r,a,u);function u(d){const g=Bu(d);if(!Ga(g,'"')){if(d.flags&c)return g;if(d.flags&2097152){const x=Nh(d);if(x&&x.flags&c)return g}}}}function FM(r,a,c){const u=r&&r.flags&106500&&r.valueDeclaration;if(!u)return;const d=Qd(u,8),g=r.valueDeclaration&&sp(r.valueDeclaration)&&Ea(r.valueDeclaration.name);if(!(!d&&!g)&&!(a&&IF(a)&&!(r.flags&65536))){if(c){const x=Sn(a,Jl);if(x&&x.symbol===r)return}(Du(r)&1?Pa(r).target:r).isReferenced=67108863}}function T5e(r,a){return r.kind===110||!!a&&ju(r)&&a===q0(Tm(r))}function FKe(r,a){switch(r.kind){case 210:return poe(r,r.expression.kind===108,a,lm(as(r.expression)));case 165:return poe(r,!1,a,lm(as(r.left)));case 204:return poe(r,!1,a,Qi(r))}}function S5e(r,a,c){return doe(r,r.kind===210&&r.expression.kind===108,!1,a,c)}function poe(r,a,c,u){if(Fc(u))return!0;const d=So(u,c);return!!d&&doe(r,a,!1,u,d)}function doe(r,a,c,u,d){if(Fc(u))return!0;if(d.valueDeclaration&&qp(d.valueDeclaration)){const g=Z_(d.valueDeclaration);return!op(r)&&!!Sn(r,x=>x===g)}return l5e(r,a,c,u,d)}function RKe(r){const a=r.initializer;if(a.kind===260){const c=a.declarations[0];if(c&&!_o(c.name))return ei(c)}else if(a.kind===80)return q0(a)}function BKe(r){return bp(r).length===1&&!!Fh(r,ge)}function jKe(r){const a=kl(r);if(a.kind===80){const c=q0(a);if(c.flags&3){let u=r,d=r.parent;for(;d;){if(d.kind===248&&u===d.statement&&RKe(d)===c&&BKe(Sp(d.expression)))return!0;u=d,d=d.parent}}}return!1}function zKe(r,a){return r.flags&32?JKe(r,a):k5e(r,WC(r.expression),a)}function JKe(r,a){const c=as(r.expression),u=OA(c,r.expression);return aW(k5e(r,o1(u,r.expression),a),r,u!==c)}function k5e(r,a,c){const u=_7(r)!==0||d5e(r)?lm(a):a,d=r.argumentExpression,g=as(d);if(Ac(u)||u===zr)return u;if(Ooe(u)&&!Wc(d))return qe(d,p.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Y;const x=jKe(d)?ge:g,P=iy(r)?4|(k6(u)&&!k9(u)?2:0):32,L=B2(u,x,P,r)||Y;return Dke(g5e(r,Ei(r).resolvedSymbol,L,d,c),r)}function C5e(r){return ey(r)||T7(r)||$p(r)}function H8(r){return C5e(r)&&Vt(r.typeArguments,Bo),r.kind===214?as(r.template):$p(r)?as(r.attributes):r.kind!==169&&Vt(r.arguments,a=>{as(a)}),r_}function z1(r){return H8(r),Zf}function UKe(r,a,c){let u,d,g=0,x,P=-1,L;D.assert(!a.length);for(const X of r){const Z=X.declaration&&ei(X.declaration),Te=X.declaration&&X.declaration.parent;!d||Z===d?u&&Te===u?x=x+1:(u=Te,x=g):(x=g=a.length,u=Te),d=Z,dZ(X)?(P++,L=P,g++):L=x,a.splice(L,0,c?qHe(X,c):X)}}function OW(r){return!!r&&(r.kind===229||r.kind===236&&r.isSpread)}function MW(r){return zi(r,OW)}function w5e(r){return!!(r.flags&16384)}function VKe(r){return!!(r.flags&49155)}function LW(r,a,c,u=!1){let d,g=!1,x=um(c),P=l1(c);if(r.kind===214)if(d=a.length,r.template.kind===227){const L=fi(r.template.templateSpans);g=Eu(L.literal)||!!L.literal.isUnterminated}else{const L=r.template;D.assert(L.kind===15),g=!!L.isUnterminated}else if(r.kind===169)d=O5e(r,c);else if($p(r)){if(g=r.attributes.end===r.end,g)return!0;d=P===0?a.length:1,x=a.length===0?x:1,P=Math.min(P,1)}else if(r.arguments){d=u?a.length+1:a.length,g=r.arguments.end===r.end;const L=MW(a);if(L>=0)return L>=l1(c)&&(J1(c)||Lx)return!1;if(g||d>=P)return!0;for(let L=d;L=u&&a.length<=c}function MT(r){return VA(r,0,!1)}function E5e(r){return VA(r,0,!1)||VA(r,1,!1)}function VA(r,a,c){if(r.flags&524288){const u=bg(r);if(c||u.properties.length===0&&u.indexInfos.length===0){if(a===0&&u.callSignatures.length===1&&u.constructSignatures.length===0)return u.callSignatures[0];if(a===1&&u.constructSignatures.length===1&&u.callSignatures.length===0)return u.constructSignatures[0]}}}function A5e(r,a,c,u){const d=LA(r.typeParameters,r,0,u),g=$A(a),x=c&&(g&&g.flags&262144?c.nonFixingMapper:c.mapper),P=x?W8(a,x):a;return hse(P,r,(L,X)=>{Ly(d.inferences,L,X)}),c||yse(a,r,(L,X)=>{Ly(d.inferences,L,X,128)}),xA(r,Ise(d),jn(a.declaration))}function WKe(r,a,c,u){const d=wW(a,r),g=G8(r.attributes,d,u,c);return Ly(u.inferences,g,d),Ise(u)}function D5e(r){if(!r)return st;const a=as(r);return Nw(r.parent)?My(a):op(r.parent)?mse(a):a}function goe(r,a,c,u,d){if($p(r))return WKe(r,a,u,d);if(r.kind!==169){const L=yn(a.typeParameters,Z=>!!dx(Z)),X=sd(r,L?8:0);if(X){const Z=Oc(a);if(I6(Z)){const Te=M6(r);if(!(!L&&sd(r,8)!==X)){const jt=Tse(cYe(Te,1)),Jr=$a(X,jt),Hr=MT(Jr),vn=Hr&&Hr.typeParameters?mx(vae(Hr,Hr.typeParameters)):Jr;Ly(d.inferences,vn,Z,128)}const De=LA(a.typeParameters,a,d.flags),ut=$a(X,Te&&Te.returnMapper);Ly(De.inferences,ut,Z),d.returnMapper=bt(De.inferences,X8)?Tse(fYe(De)):void 0}}}const g=HA(a),x=g?Math.min(um(a)-1,c.length):c.length;if(g&&g.flags&262144){const L=on(d.inferences,X=>X.typeParameter===g);L&&(L.impliedArity=zi(c,OW,x)<0?c.length-x:void 0)}const P=T6(a);if(P&&I6(P)){const L=P5e(r);Ly(d.inferences,D5e(L),P)}for(let L=0;L=c-1){const Z=r[c-1];if(OW(Z)){const Te=Z.kind===236?Z.type:G8(Z.expression,u,d,g);return U2(Te)?N5e(Te):ep(Pv(33,Te,Ne,Z.kind===229?Z.expression:Z),x)}}const P=[],L=[],X=[];for(let Z=a;ZPs(void 0,p.Type_0_does_not_satisfy_the_constraint_1):void 0,Te=u||p.Type_0_does_not_satisfy_the_constraint_1;P||(P=xd(g,x));const Ee=x[L];if(!Td(Ee,cm($a(X,P),Ee),c?a[L]:void 0,Te,Z))return}}return x}function I5e(r){if(OT(r.tagName))return 2;const a=ad(as(r.tagName));return Nr(ro(a,1))?0:Nr(ro(a,0))?1:2}function qKe(r,a,c,u,d,g,x){const P=wW(a,r),L=G8(r.attributes,P,void 0,u);return X()&&ese(L,P,c,d?r.tagName:void 0,r.attributes,void 0,g,x);function X(){var Z;if(Kse(r))return!0;const Te=(w1(r)||C7(r))&&!(OT(r.tagName)||A1(r.tagName))?as(r.tagName):void 0;if(!Te)return!0;const Ee=ro(Te,0);if(!Nr(Ee))return!0;const De=MCe(r);if(!De)return!0;const ut=ou(De,111551,!0,!1,r);if(!ut)return!0;const jt=An(ut),Jr=ro(jt,0);if(!Nr(Jr))return!0;let Hr=!1,vn=0;for(const Tr of Jr){const $n=Cg(Tr,0),Sr=ro($n,0);if(Nr(Sr))for(const Br of Sr){if(Hr=!0,J1(Br))return!0;const _n=um(Br);_n>vn&&(vn=_n)}}if(!Hr)return!0;let br=1/0;for(const Tr of Ee){const $n=l1(Tr);$n{d.push(g.expression)}),d}if(r.kind===169)return $Ke(r);if($p(r))return r.attributes.properties.length>0||w1(r)&&r.parent.children.length>0?[r.attributes]:tt;const a=r.arguments||tt,c=MW(a);if(c>=0){const u=a.slice(0,c);for(let d=c;d{var X;const Z=x.target.elementFlags[L],Te=BM(g,Z&4?ep(P):P,!!(Z&12),(X=x.target.labeledElementDeclarations)==null?void 0:X[L]);u.push(Te)}):u.push(g)}return u}return a}function $Ke(r){const a=r.expression,c=Noe(r);if(c){const u=[];for(const d of c.parameters){const g=An(d);u.push(BM(a,g))}return u}return D.fail()}function O5e(r,a){return z.experimentalDecorators?HKe(r,a):2}function HKe(r,a){switch(r.parent.kind){case 262:case 230:return 1;case 171:return lh(r.parent)?3:2;case 173:case 176:case 177:return ce===0||a.parameters.length<=2?2:3;case 168:return 3;default:return D.fail()}}function M5e(r,a){let c,u;const d=bn(r);if(mi(r.expression)){const g=r3(d,r.expression.name);c=g.start,u=a?g.length:r.end-c}else{const g=r3(d,r.expression);c=g.start,u=a?g.length:r.end-c}return{start:c,length:u,sourceFile:d}}function WA(r,a,...c){if(go(r)){const{sourceFile:u,start:d,length:g}=M5e(r);return"message"in a?af(u,d,g,a,...c):b$(u,a)}else return"message"in a?ai(r,a,...c):Wy(bn(r),r,a)}function GKe(r){if(!go(r)||!Be(r.expression))return!1;const a=hu(r.expression,r.expression.escapedText,111551,void 0,void 0,!1),c=a==null?void 0:a.valueDeclaration;if(!c||!Cs(c)||!hk(c.parent)||!v3(c.parent.parent)||!Be(c.parent.parent.expression))return!1;const u=Aae(!1);return u?H0(c.parent.parent.expression,!0)===u:!1}function L5e(r,a,c,u){var d;const g=MW(c);if(g>-1)return ai(c[g],p.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,P=Number.NEGATIVE_INFINITY,L=Number.NEGATIVE_INFINITY,X=Number.POSITIVE_INFINITY,Z;for(const jt of a){const Jr=l1(jt),Hr=um(jt);JrL&&(L=Jr),c.lengthd?x=Math.min(x,L):X1&&(vn=$n(Te,N1,De,br)),vn||(vn=$n(Te,td,De,br)),vn)return vn;if(vn=ZKe(r,Te,Ee,!!c,u),Ei(r).resolvedSignature=vn,X)if(jt)if(jt.length===1||jt.length>3){const Sr=jt[jt.length-1];let Br;jt.length>3&&(Br=Ps(Br,p.The_last_overload_gave_the_following_error),Br=Ps(Br,p.No_overload_matches_this_call)),g&&(Br=Ps(Br,g));const _n=RM(r,Ee,Sr,td,0,!0,()=>Br);if(_n)for(const Ni of _n)Sr.declaration&&jt.length>3&&ic(Ni,ai(Sr.declaration,p.The_last_overload_is_declared_here)),Tr(Sr,Ni),yc.add(Ni);else D.fail("No error for last overload signature")}else{const Sr=[];let Br=0,_n=Number.MAX_VALUE,Ni=0,ji=0;for(const Mm of jt){const sn=RM(r,Ee,Mm,td,0,!0,()=>Ps(void 0,p.Overload_0_of_1_2_gave_the_following_error,ji+1,Te.length,hr(Mm)));sn?(sn.length<=_n&&(_n=sn.length,Ni=ji),Br=Math.max(Br,sn.length),Sr.push(sn)):D.fail("No error for 3 or fewer overload signatures"),ji++}const fs=Br>1?Sr[Ni]:x_(Sr);D.assert(fs.length>0,"No errors reported for 3 or fewer overload signatures");let mo=Ps(er(fs,iue),p.No_overload_matches_this_call);g&&(mo=Ps(mo,g));const J_=[...lo(fs,Mm=>Mm.relatedInformation)];let Qm;if(yn(fs,Mm=>Mm.start===fs[0].start&&Mm.length===fs[0].length&&Mm.file===fs[0].file)){const{file:Mm,start:Ka,length:sn}=fs[0];Qm={file:Mm,start:Ka,length:sn,code:mo.code,category:mo.category,messageText:mo,relatedInformation:J_}}else Qm=Wy(bn(r),r,mo,J_);Tr(jt[0],Qm),yc.add(Qm)}else if(Jr)yc.add(L5e(r,[Jr],Ee,g));else if(Hr)yoe(Hr,r.typeArguments,!0,g);else{const Sr=Mn(a,Br=>moe(Br,Z));Sr.length===0?yc.add(XKe(r,a,Z,g)):yc.add(L5e(r,Sr,Ee,g))}return vn;function Tr(Sr,Br){var _n,Ni;const ji=jt,fs=Jr,mo=Hr,J_=((Ni=(_n=Sr.declaration)==null?void 0:_n.symbol)==null?void 0:Ni.declarations)||tt,Mm=J_.length>1?on(J_,Ka=>Jl(Ka)&&I0(Ka.body)):void 0;if(Mm){const Ka=i1(Mm),sn=!Ka.typeParameters;$n([Ka],td,sn)&&ic(Br,ai(Mm,p.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}jt=ji,Jr=fs,Hr=mo}function $n(Sr,Br,_n,Ni=!1){if(jt=void 0,Jr=void 0,Hr=void 0,_n){const ji=Sr[0];if(bt(Z)||!LW(r,Ee,ji,Ni))return;if(RM(r,Ee,ji,Br,0,!1,void 0)){jt=[ji];return}return ji}for(let ji=0;ji0),Y8(r),u||a.length===1||a.some(g=>!!g.typeParameters)?KKe(r,a,c,d):YKe(a)}function YKe(r){const a=Mr(r,L=>L.thisParameter);let c;a.length&&(c=F5e(a,a.map(zM)));const{min:u,max:d}=q_e(r,QKe),g=[];for(let L=0;Lup(Z)?LCx(Z,L))))}const x=Mr(r,L=>up(L)?fi(L.parameters):void 0);let P=0;if(x.length!==0){const L=ep(Oi(Mr(r,vTe),2));g.push(R5e(x,L)),P|=1}return r.some(dZ)&&(P|=2),Lh(r[0].declaration,void 0,c,g,Xo(r.map(Oc)),void 0,u,P)}function QKe(r){const a=r.parameters.length;return up(r)?a-1:a}function F5e(r,a){return R5e(r,Oi(a,2))}function R5e(r,a){return vx(Fi(r),a)}function KKe(r,a,c,u){const d=ret(a,Mt===void 0?c.length:Mt),g=a[d],{typeParameters:x}=g;if(!x)return g;const P=C5e(r)?r.typeArguments:void 0,L=P?DV(g,eet(P,x,jn(r))):tet(r,x,g,c,u);return a[d]=L,L}function eet(r,a,c){const u=r.map(LT);for(;u.length>a.length;)u.pop();for(;u.length=a)return d;x>u&&(u=x,c=d)}return c}function net(r,a,c){if(r.expression.kind===108){const L=Use(r.expression);if(Fc(L)){for(const X of r.arguments)as(X);return r_}if(!Ac(L)){const X=T1(Z_(r));if(X){const Z=ki(L,X.typeArguments,X);return qC(r,Z,a,c,0)}}return H8(r)}let u,d=as(r.expression);if(e7(r)){const L=OA(d,r.expression);u=L===d?0:Iw(r)?16:8,d=L}else u=0;if(d=_5e(d,r.expression,xKe),d===zr)return fe;const g=ad(d);if(Ac(g))return z1(r);const x=ro(g,0),P=ro(g,1).length;if(FW(d,g,x.length,P))return!Ac(d)&&r.typeArguments&&qe(r,p.Untyped_function_calls_may_not_accept_type_arguments),H8(r);if(!x.length){if(P)qe(r,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Rt(d));else{let L;if(r.arguments.length===1){const X=bn(r).text;Wf(X.charCodeAt(tc(X,r.expression.end,!0)-1))&&(L=ai(r.expression,p.Are_you_missing_a_semicolon))}xoe(r.expression,g,0,L)}return z1(r)}return c&8&&!r.typeArguments&&x.some(iet)?(yke(r,c),_f):x.some(L=>jn(L.declaration)&&!!Dq(L.declaration))?(qe(r,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Rt(d)),z1(r)):qC(r,x,a,c,u)}function iet(r){return!!(r.typeParameters&&_ce(Oc(r)))}function FW(r,a,c,u){return Fc(r)||Fc(a)&&!!(r.flags&262144)||!c&&!u&&!(a.flags&1048576)&&!(xg(a).flags&131072)&&Zo(r,tl)}function aet(r,a,c){if(r.arguments&&ce<1){const x=MW(r.arguments);x>=0&&qe(r.arguments[x],p.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let u=WC(r.expression);if(u===zr)return fe;if(u=ad(u),Ac(u))return z1(r);if(Fc(u))return r.typeArguments&&qe(r,p.Untyped_function_calls_may_not_accept_type_arguments),H8(r);const d=ro(u,1);if(d.length){if(!set(r,d[0]))return z1(r);if(B5e(d,P=>!!(P.flags&4)))return qe(r,p.Cannot_create_an_instance_of_an_abstract_class),z1(r);const x=u.symbol&&Zy(u.symbol);return x&&Pi(x,256)?(qe(r,p.Cannot_create_an_instance_of_an_abstract_class),z1(r)):qC(r,d,a,c,0)}const g=ro(u,0);if(g.length){const x=qC(r,g,a,c,0);return ve||(x.declaration&&!c1(x.declaration)&&Oc(x)!==st&&qe(r,p.Only_a_void_function_can_be_called_with_the_new_keyword),T6(x)===st&&qe(r,p.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return xoe(r.expression,u,1),z1(r)}function B5e(r,a){return ns(r)?bt(r,c=>B5e(c,a)):r.compositeKind===1048576?bt(r.compositeSignatures,a):a(r)}function boe(r,a){const c=vs(a);if(!Nr(c))return!1;const u=c[0];if(u.flags&2097152){const d=u.types,g=rTe(d);let x=0;for(const P of u.types){if(!g[x]&&Mi(P)&3&&(P.symbol===r||boe(r,P)))return!0;x++}return!1}return u.symbol===r?!0:boe(r,u)}function set(r,a){if(!a||!a.declaration)return!0;const c=a.declaration,u=dS(c,24);if(!u||c.kind!==175)return!0;const d=Zy(c.parent.symbol),g=hl(c.parent.symbol);if(!cce(r,d)){const x=Z_(r);if(x&&u&16){const P=LT(x);if(boe(c.parent.symbol,P))return!0}return u&8&&qe(r,p.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Rt(g)),u&16&&qe(r,p.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Rt(g)),!1}return!0}function j5e(r,a,c){let u;const d=c===0,g=Ex(a),x=g&&ro(g,c).length>0;if(a.flags&1048576){const L=a.types;let X=!1;for(const Z of L)if(ro(Z,c).length!==0){if(X=!0,u)break}else if(u||(u=Ps(u,d?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,Rt(Z)),u=Ps(u,d?p.Not_all_constituents_of_type_0_are_callable:p.Not_all_constituents_of_type_0_are_constructable,Rt(a))),X)break;X||(u=Ps(void 0,d?p.No_constituent_of_type_0_is_callable:p.No_constituent_of_type_0_is_constructable,Rt(a))),u||(u=Ps(u,d?p.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:p.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Rt(a)))}else u=Ps(u,d?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,Rt(a));let P=d?p.This_expression_is_not_callable:p.This_expression_is_not_constructable;if(go(r.parent)&&r.parent.arguments.length===0){const{resolvedSymbol:L}=Ei(r);L&&L.flags&32768&&(P=p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Ps(u,P),relatedMessage:x?p.Did_you_forget_to_use_await:void 0}}function xoe(r,a,c,u){const{messageChain:d,relatedMessage:g}=j5e(r,a,c),x=Wy(bn(r),r,d);if(g&&ic(x,ai(r,g)),go(r.parent)){const{start:P,length:L}=M5e(r.parent,!0);x.start=P,x.length=L}yc.add(x),z5e(a,c,u?ic(x,u):x)}function z5e(r,a,c){if(!r.symbol)return;const u=Pa(r.symbol).originatingImport;if(u&&!xm(u)){const d=ro(An(Pa(r.symbol).target),a);if(!d||!d.length)return;ic(c,ai(u,p.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function oet(r,a,c){const u=as(r.tag),d=ad(u);if(Ac(d))return z1(r);const g=ro(d,0),x=ro(d,1).length;if(FW(u,d,g.length,x))return H8(r);if(!g.length){if(Op(r.parent)){const P=ai(r.tag,p.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return yc.add(P),z1(r)}return xoe(r.tag,d,0),z1(r)}return qC(r,g,a,c,0)}function cet(r){switch(r.parent.kind){case 262:case 230:return p.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 168:return p.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 171:return p.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 173:case 176:case 177:return p.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return D.fail()}}function uet(r,a,c){const u=as(r.expression),d=ad(u);if(Ac(d))return z1(r);const g=ro(d,0),x=ro(d,1).length;if(FW(u,d,g.length,x))return H8(r);if(fet(r,g)&&!Md(r.expression)){const L=F_(r.expression,!1);return qe(r,p._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,L),z1(r)}const P=cet(r);if(!g.length){const L=j5e(r.expression,d,0),X=Ps(L.messageChain,P),Z=Wy(bn(r.expression),r.expression,X);return L.relatedMessage&&ic(Z,ai(r.expression,L.relatedMessage)),yc.add(Z),z5e(d,0,Z),z1(r)}return qC(r,g,a,c,0,P)}function RW(r,a){const c=kx(r),u=c&&Nm(c),d=u&&pf(u,Cm.Element,788968),g=d&&He.symbolToEntityName(d,788968,r),x=M.createFunctionTypeNode(void 0,[M.createParameterDeclaration(void 0,void 0,"props",void 0,He.typeToTypeNode(a,r))],g?M.createTypeReferenceNode(g,void 0):M.createKeywordTypeNode(133)),P=vc(1,"props");return P.links.type=a,Lh(x,void 0,void 0,[P],d?hl(d):Y,void 0,1,0)}function _et(r,a,c){if(OT(r.tagName)){const x=a5e(r),P=RW(r,x);return J2(G8(r.attributes,wW(P,r),void 0,0),x,r.tagName,r.attributes),Nr(r.typeArguments)&&(Vt(r.typeArguments,Bo),yc.add(V5(bn(r),r.typeArguments,p.Expected_0_type_arguments_but_got_1,0,Nr(r.typeArguments)))),P}const u=as(r.tagName),d=ad(u);if(Ac(d))return z1(r);const g=n5e(u,r);return FW(u,d,g.length,0)?H8(r):g.length===0?(qe(r.tagName,p.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,F_(r.tagName)),z1(r)):qC(r,g,a,c,0)}function fet(r,a){return a.length&&yn(a,c=>c.minArgumentCount===0&&!up(c)&&c.parameters.length1?n_(r.arguments[1]):void 0;for(let g=2;g{const x=lm(d);XV(g,x)||MSe(d,g,c,p.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function xet(r){const a=as(r.expression),c=OA(a,r.expression);return aW(My(c),r,c!==a)}function Tet(r){return r.flags&32?xet(r):My(as(r.expression))}function H5e(r){if(RCe(r),Vt(r.typeArguments,Bo),r.kind===232){const c=fb(r.parent);c.kind===225&&c.operatorToken.kind===104&&c3(r,c.right)&&qe(r,p.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=r.kind===232?as(r.expression):f3(r.exprName)?AM(r.exprName):as(r.exprName);return G5e(a,r)}function G5e(r,a){const c=a.typeArguments;if(r===zr||Ac(r)||!bt(c))return r;let u=!1,d;const g=P(r),x=u?d:r;return x&&yc.add(V5(bn(a),c,p.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Rt(x))),g;function P(X){let Z=!1,Te=!1;const Ee=De(X);return u||(u=Te),Z&&!Te&&(d!=null||(d=X)),Ee;function De(ut){if(ut.flags&524288){const jt=bg(ut),Jr=L(jt.callSignatures),Hr=L(jt.constructSignatures);if(Z||(Z=jt.callSignatures.length!==0||jt.constructSignatures.length!==0),Te||(Te=Jr.length!==0||Hr.length!==0),Jr!==jt.callSignatures||Hr!==jt.constructSignatures){const vn=yu(void 0,jt.members,Jr,Hr,jt.indexInfos);return vn.objectFlags|=8388608,vn.node=a,vn}}else if(ut.flags&58982400){const jt=vp(ut);if(jt){const Jr=De(jt);if(Jr!==jt)return Jr}}else{if(ut.flags&1048576)return El(ut,P);if(ut.flags&2097152)return Xo(ll(ut.types,De))}return ut}}function L(X){const Z=Mn(X,Te=>!!Te.typeParameters&&moe(Te,c));return ll(Z,Te=>{const Ee=yoe(Te,c,!0);return Ee?xA(Te,Ee,jn(Te.declaration)):Te})}}function ket(r){return Bo(r.type),Coe(r.expression,r.type)}function Coe(r,a,c){const u=as(r,c),d=Qi(a);if(Ac(d))return d;const g=Sn(a.parent,x=>x.kind===237||x.kind===356);return J2(u,d,g,r,p.Type_0_does_not_satisfy_the_expected_type_1),u}function Cet(r){return xat(r),r.keywordToken===105?woe(r):r.keywordToken===102?wet(r):D.assertNever(r.keywordToken)}function X5e(r){switch(r.keywordToken){case 102:return LTe();case 105:const a=woe(r);return Ac(a)?Y:Vet(a);default:D.assertNever(r.keywordToken)}}function woe(r){const a=hue(r);if(a)if(a.kind===175){const c=ei(a.parent);return An(c)}else{const c=ei(a);return An(c)}else return qe(r,p.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Y}function wet(r){R===100||R===199?bn(r).impliedNodeFormat!==99&&qe(r,p.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):R<6&&R!==4&&qe(r,p.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=bn(r);return D.assert(!!(a.flags&4194304),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?MTe():Y}function zM(r){const a=An(r);if($){const c=r.valueDeclaration;if(c&&lb(c))return Dv(a)}return a}function zW(r){return D.assert(Be(r.name)),r.name.escapedText}function HC(r,a,c){const u=r.parameters.length-(up(r)?1:0);if(a=c-1)return a===c-1?d:ep(bd(d,ge));const g=[],x=[],P=[];for(let L=a;L!(L&1)),P=x<0?g.target.fixedLength:x;P>0&&(d=r.parameters.length-1+P)}}if(d===void 0){if(!c&&r.flags&32)return 0;d=r.minArgumentCount}if(u)return d;for(let g=d-1;g>=0;g--){const x=Cg(r,g);if(E_(x,w5e).flags&131072)break;d=g}r.resolvedMinArgumentCount=d}return r.resolvedMinArgumentCount}function J1(r){if(up(r)){const a=An(r.parameters[r.parameters.length-1]);return!Yo(a)||a.target.hasRestElement}return!1}function $A(r){if(up(r)){const a=An(r.parameters[r.parameters.length-1]);if(!Yo(a))return a;if(a.target.hasRestElement)return PC(a,a.target.fixedLength)}}function HA(r){const a=$A(r);return a&&!Ym(a)&&!Fc(a)?a:void 0}function Eoe(r){return Aoe(r,Ft)}function Aoe(r,a){return r.parameters.length>0?Cg(r,0):a}function Q5e(r,a,c){const u=r.parameters.length-(up(r)?1:0);for(let d=0;d=0);const g=Uu(u.parent)?An(ei(u.parent.parent)):wCe(u.parent),x=Uu(u.parent)?Ne:ECe(u.parent),P=Sg(d),L=jd("target",g),X=jd("propertyKey",x),Z=jd("parameterIndex",P);c.decoratorSignature=tD(void 0,void 0,[L,X,Z],st);break}case 173:case 176:case 177:case 171:{const u=a;if(!Yi(u.parent))break;const d=wCe(u),g=jd("target",d),x=ECe(u),P=jd("propertyKey",x),L=fo(u)?st:JTe(LT(u));if(ce!==0&&(!fo(a)||lh(a))){const Z=JTe(LT(u)),Te=jd("descriptor",Z);c.decoratorSignature=tD(void 0,void 0,[g,P,Te],Oi([L,st]))}else c.decoratorSignature=tD(void 0,void 0,[g,P],Oi([L,st]));break}}return c.decoratorSignature===r_?void 0:c.decoratorSignature}function Noe(r){return le?Uet(r):Jet(r)}function UM(r){const a=aM(!0);return a!==qa?(r=Iv(ZC(r))||at,kv(a,[r])):at}function tke(r){const a=jTe(!0);return a!==qa?(r=Iv(ZC(r))||at,kv(a,[r])):at}function VM(r,a){const c=UM(a);return c===at?(qe(r,xm(r)?p.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:p.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Y):(Aae(!0)||qe(r,xm(r)?p.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:p.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function Vet(r){const a=vc(0,"NewTargetExpression"),c=vc(4,"target",8);c.parent=a,c.links.type=r;const u=To([c]);return a.members=u,yu(a,u,tt,tt,tt)}function JW(r,a){if(!r.body)return Y;const c=vf(r),u=(c&2)!==0,d=(c&1)!==0;let g,x,P,L=st;if(r.body.kind!==240)g=n_(r.body,a&&a&-9),u&&(g=ZC(eD(g,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(d){const X=oke(r,a);X?X.length>0&&(g=Oi(X,2)):L=Ft;const{yieldTypes:Z,nextTypes:Te}=Wet(r,a);x=bt(Z)?Oi(Z,2):void 0,P=bt(Te)?Xo(Te):void 0}else{const X=oke(r,a);if(!X)return c&2?VM(r,Ft):Ft;if(X.length===0){const Z=TW(r,void 0),Te=Z&&(tL(Z,c)||st).flags&32768?Ne:st;return c&2?VM(r,Te):Te}g=Oi(X,2)}if(g||x||P){if(x&&lW(r,x,3),g&&lW(r,g,1),P&&lW(r,P,2),g&&kg(g)||x&&kg(x)||P&&kg(P)){const X=Xse(r),Z=X?X===i1(r)?d?void 0:g:kW(Oc(X),r,void 0):void 0;d?(x=dse(x,Z,0,u),g=dse(g,Z,1,u),P=dse(P,Z,2,u)):g=ZZe(g,Z,u)}x&&(x=lm(x)),g&&(g=lm(g)),P&&(P=lm(P))}return d?rke(x||Ft,g||L,P||V8e(2,r)||at,u):u?UM(g||L):g||L}function rke(r,a,c,u){const d=u?Di:xi,g=d.getGlobalGeneratorType(!1);if(r=d.resolveIterationType(r,void 0)||at,a=d.resolveIterationType(a,void 0)||at,c=d.resolveIterationType(c,void 0)||at,g===qa){const x=d.getGlobalIterableIteratorType(!1),P=x!==qa?Gke(x,d):void 0,L=P?P.returnType:it,X=P?P.nextType:Ne;return Zo(a,L)&&Zo(X,c)?x!==qa?kA(x,[r]):(d.getGlobalIterableIteratorType(!0),Ua):(d.getGlobalGeneratorType(!0),Ua)}return kA(g,[r,a,c])}function Wet(r,a){const c=[],u=[],d=(vf(r)&2)!==0;return sue(r.body,g=>{const x=g.expression?as(g.expression,a):$t;kr(c,nke(g,x,it,d));let P;if(g.asteriskToken){const L=YW(x,d?19:17,g.expression);P=L&&L.nextType}else P=sd(g,void 0);P&&kr(u,P)}),{yieldTypes:c,nextTypes:u}}function nke(r,a,c,u){const d=r.expression||r,g=r.asteriskToken?Pv(u?19:17,a,c,d):a;return u?Ex(g,d,r.asteriskToken?p.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:p.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):g}function ike(r,a,c){let u=0;for(let d=0;d=a?c[d]:void 0;u|=g!==void 0?jB.get(g)||32768:0}return u}function ake(r){const a=Ei(r);if(a.isExhaustive===void 0){a.isExhaustive=0;const c=qet(r);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function qet(r){if(r.expression.kind===220){const u=S8e(r);if(!u)return!1;const d=Dy(n_(r.expression.expression)),g=ike(0,0,u);return d.flags&3?(556800&g)===556800:!Nv(d,x=>(Tp(x)&g)===g)}const a=n_(r.expression);if(!PA(a))return!1;const c=dW(r);return!c.length||bt(c,HZe)?!1:WYe(El(a,jp),c)}function ske(r){return r.endFlowNode&&wM(r.endFlowNode)}function oke(r,a){const c=vf(r),u=[];let d=ske(r),g=!1;if(i3(r.body,x=>{const P=x.expression;if(P){if(P.kind===212&&P.expression.kind===80&&n_(P.expression).symbol===r.symbol){g=!0;return}let L=n_(P,a&&a&-9);c&2&&(L=ZC(eD(L,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),L.flags&131072&&(g=!0),kr(u,L)}else d=!0}),!(u.length===0&&!d&&(g||$et(r))))return $&&u.length&&d&&!(c1(r)&&u.some(x=>x.symbol===r.symbol))&&kr(u,Ne),u}function $et(r){switch(r.kind){case 217:case 218:return!0;case 173:return r.parent.kind===209;default:return!1}}function Ioe(r,a){n(c);return;function c(){const u=vf(r),d=a&&tL(a,u);if(d&&(iu(d,16384)||d.flags&32769)||r.kind===172||Eu(r.body)||r.body.kind!==240||!ske(r))return;const g=r.flags&512,x=Og(r)||r;if(d&&d.flags&131072)qe(x,p.A_function_returning_never_cannot_have_a_reachable_end_point);else if(d&&!g)qe(x,p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(d&&$&&!Zo(Ne,d))qe(x,p.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(z.noImplicitReturns){if(!d){if(!g)return;const P=Oc(i1(r));if(tCe(r,P))return}qe(x,p.Not_all_code_paths_return_a_value)}}}function cke(r,a){if(D.assert(r.kind!==173||tg(r)),Y8(r),_l(r)&&QC(r,r.name),a&&a&4&&Xm(r)){if(!Og(r)&&!GF(r)){const u=UA(r);if(u&&I6(Oc(u))){const d=Ei(r);if(d.contextFreeType)return d.contextFreeType;const g=JW(r,a),x=Lh(void 0,void 0,void 0,tt,g,void 0,0,64),P=yu(r.symbol,V,[x],tt,tt);return P.objectFlags|=262144,d.contextFreeType=P}}return h_}return!cq(r)&&r.kind===217&&mce(r),Het(r,a),An(ei(r))}function Het(r,a){const c=Ei(r);if(!(c.flags&64)){const u=UA(r);if(!(c.flags&64)){c.flags|=64;const d=Ji(ro(An(ei(r)),0));if(!d)return;if(Xm(r))if(u){const g=M6(r);let x;if(a&&a&2){Q5e(d,u,g);const P=$A(u);P&&P.flags&262144&&(x=W8(u,g.nonFixingMapper))}x||(x=g?W8(u,g.mapper):u),Det(d,x)}else Net(d);else if(u&&!r.typeParameters&&u.parameters.length>r.parameters.length){const g=M6(r);a&&a&2&&Q5e(d,u,g)}if(u&&!R8(r)&&!d.resolvedReturnType){const g=JW(r,a);d.resolvedReturnType||(d.resolvedReturnType=g)}ZA(r)}}}function Get(r){D.assert(r.kind!==173||tg(r));const a=vf(r),c=R8(r);if(Ioe(r,c),r.body)if(Og(r)||Oc(i1(r)),r.body.kind===240)Bo(r.body);else{const u=as(r.body),d=c&&tL(c,a);if(d)if((a&3)===2){const g=eD(u,!1,r.body,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);J2(g,d,r.body,r.body)}else J2(u,d,r.body,r.body)}}function UW(r,a,c,u=!1){if(!Zo(a,zs)){const d=u&&QA(a);return g2(r,!!d&&Zo(d,zs),c),!1}return!0}function Xet(r){if(!go(r)||!iS(r))return!1;const a=n_(r.arguments[2]);if(Hu(a,"value")){const d=So(a,"writable"),g=d&&An(d);if(!g||g===ue||g===_e)return!0;if(d&&d.valueDeclaration&&Y_(d.valueDeclaration)){const x=d.valueDeclaration.initializer,P=as(x);if(P===ue||P===_e)return!0}return!1}return!So(a,"set")}function wg(r){return!!(Du(r)&8||r.flags&4&&c0(r)&64||r.flags&3&&roe(r)&2||r.flags&98304&&!(r.flags&65536)||r.flags&8||bt(r.declarations,Xet))}function lke(r,a,c){var u,d;if(c===0)return!1;if(wg(a)){if(a.flags&4&&$l(r)&&r.expression.kind===110){const g=Jm(r);if(!(g&&(g.kind===175||c1(g))))return!0;if(a.valueDeclaration){const x=Un(a.valueDeclaration),P=g.parent===a.valueDeclaration.parent,L=g===a.valueDeclaration.parent,X=x&&((u=a.parent)==null?void 0:u.valueDeclaration)===g.parent,Z=x&&((d=a.parent)==null?void 0:d.valueDeclaration)===g;return!(P||L||X||Z)}}return!0}if($l(r)){const g=kl(r.expression);if(g.kind===80){const x=Ei(g).resolvedSymbol;if(x.flags&2097152){const P=sm(x);return!!P&&P.kind===273}}}return!1}function GA(r,a,c){const u=Gf(r,7);return u.kind!==80&&!$l(u)?(qe(r,a),!1):u.flags&32?(qe(r,c),!1):!0}function Zet(r){as(r.expression);const a=kl(r.expression);if(!$l(a))return qe(a,p.The_operand_of_a_delete_operator_must_be_a_property_reference),rt;mi(a)&&Ea(a.name)&&qe(a,p.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=Ei(a),u=V0(c.resolvedSymbol);return u&&(wg(u)&&qe(a,p.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Yet(a,u)),rt}function Yet(r,a){const c=An(a);$&&!(c.flags&131075)&&!(Ue?a.flags&16777216:Tp(c)&16777216)&&qe(r,p.The_operand_of_a_delete_operator_must_be_optional)}function Qet(r){return as(r.expression),y8}function Ket(r){return as(r.expression),$t}function ett(r){const a=tF(r);if(a&&fu(a))qe(r,p.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(r.flags&32768))if(rF(r)){const c=bn(r);if(!R6(c)){let u;if(!rS(c,z)){u!=null||(u=oh(c,r.pos));const d=af(c,u.start,u.length,p.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);yc.add(d)}switch(R){case 100:case 199:if(c.impliedNodeFormat===1){u!=null||(u=oh(c,r.pos)),yc.add(af(c,u.start,u.length,p.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ce>=4)break;default:u!=null||(u=oh(c,r.pos)),yc.add(af(c,u.start,u.length,p.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}}else{const c=bn(r);if(!R6(c)){const u=oh(c,r.pos),d=af(c,u.start,u.length,p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(a&&a.kind!==175&&!(vf(a)&2)){const g=ai(a,p.Did_you_mean_to_mark_this_function_as_async);ic(d,g)}yc.add(d)}}Wse(r)&&qe(r,p.await_expressions_cannot_be_used_in_a_parameter_initializer)}function ttt(r){n(()=>ett(r));const a=as(r.expression),c=eD(a,!0,r,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!Ac(c)&&!(a.flags&3)&&Ah(!1,ai(r,p.await_has_no_effect_on_the_type_of_this_expression)),c}function rtt(r){const a=as(r.operand);if(a===zr)return zr;switch(r.operand.kind){case 9:switch(r.operator){case 41:return V8(Sg(-r.operand.text));case 40:return V8(Sg(+r.operand.text))}break;case 10:if(r.operator===41)return V8(zV({negative:!0,base10Value:v9(r.operand.text)}))}switch(r.operator){case 40:case 41:case 55:return o1(a,r.operand),WM(a,12288)&&qe(r.operand,p.The_0_operator_cannot_be_applied_to_type_symbol,Uo(r.operator)),r.operator===40?(WM(a,2112)&&qe(r.operand,p.Operator_0_cannot_be_applied_to_type_1,Uo(r.operator),Rt(V2(a))),ge):Poe(a);case 54:Xoe(a,r.operand);const c=Tp(a)&12582912;return c===4194304?ue:c===8388608?pe:rt;case 46:case 47:return UW(r.operand,o1(a,r.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&GA(r.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Poe(a)}return Y}function ntt(r){const a=as(r.operand);return a===zr?zr:(UW(r.operand,o1(a,r.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&GA(r.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Poe(a))}function Poe(r){return iu(r,2112)?df(r,3)||iu(r,296)?zs:he:ge}function WM(r,a){if(iu(r,a))return!0;const c=Dy(r);return!!c&&iu(c,a)}function iu(r,a){if(r.flags&a)return!0;if(r.flags&3145728){const c=r.types;for(const u of c)if(iu(u,a))return!0}return!1}function df(r,a,c){return r.flags&a?!0:c&&r.flags&114691?!1:!!(a&296)&&Zo(r,ge)||!!(a&2112)&&Zo(r,he)||!!(a&402653316)&&Zo(r,w)||!!(a&528)&&Zo(r,rt)||!!(a&16384)&&Zo(r,st)||!!(a&131072)&&Zo(r,Ft)||!!(a&65536)&&Zo(r,Yn)||!!(a&32768)&&Zo(r,Ne)||!!(a&4096)&&Zo(r,ar)||!!(a&67108864)&&Zo(r,Ui)}function qM(r,a,c){return r.flags&1048576?yn(r.types,u=>qM(u,a,c)):df(r,a,c)}function Ooe(r){return!!(Mi(r)&16)&&!!r.symbol&&Moe(r.symbol)}function Moe(r){return(r.flags&128)!==0}function itt(r,a,c,u){return c===zr||u===zr?zr:(!Fc(c)&&qM(c,402784252)&&qe(r,p.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Fc(u)||iq(u)||z2(u,tl)||qe(a,p.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),rt)}function att(r){return Nv(r,a=>a===uf||!!(a.flags&2097152)&&Oy(Dy(a)))}function stt(r,a,c,u){if(c===zr||u===zr)return zr;if(Ea(r)){if(ce<99&&A_(r,2097152),!Ei(r).resolvedSymbol&&Z_(r)){const d=loe(r,u.symbol,!0);y5e(r,u,d)}}else Td(o1(c,r),_s,r);return Td(o1(u,a),Ui,a)&&att(u)&&qe(a,p.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Rt(u)),rt}function ott(r,a,c){const u=r.properties;if($&&u.length===0)return o1(a,r);for(let d=0;dPC(X,c)):ep(u);return wx(P,L,d)}}}}function wx(r,a,c,u){let d;if(r.kind===303){const g=r;g.objectAssignmentInitializer&&($&&!(Tp(as(g.objectAssignmentInitializer))&16777216)&&(a=T0(a,524288)),ftt(g.name,g.equalsToken,g.objectAssignmentInitializer,c)),d=r.name}else d=r;return d.kind===225&&d.operatorToken.kind===64&&(Ae(d,c),d=d.left,$&&(a=T0(a,524288))),d.kind===209?ott(d,a,u):d.kind===208?ctt(d,a,c):ltt(d,a,c)}function ltt(r,a,c){const u=as(r,c),d=r.parent.kind===304?p.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,g=r.parent.kind===304?p.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return GA(r,d,g)&&J2(a,u,r,r),I5(r)&&A_(r.parent,1048576),a}function $M(r){switch(r=kl(r),r.kind){case 80:case 11:case 14:case 214:case 227:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 217:case 230:case 218:case 208:case 209:case 220:case 234:case 284:case 283:return!0;case 226:return $M(r.whenTrue)&&$M(r.whenFalse);case 225:return Xv(r.operatorToken.kind)?!1:$M(r.left)&&$M(r.right);case 223:case 224:switch(r.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 221:case 215:case 233:default:return!1}}function Loe(r,a){return(a.flags&98304)!==0||XV(r,a)}function utt(){const r=eB(a,c,u,d,g,x);return(Ee,De)=>{const ut=r(Ee,De);return D.assertIsDefined(ut),ut};function a(Ee,De,ut){return De?(De.stackIndex++,De.skip=!1,X(De,void 0),Te(De,void 0)):De={checkMode:ut,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},jn(Ee)&&nS(Ee)?(De.skip=!0,Te(De,as(Ee.right,ut)),De):(_tt(Ee),Ee.operatorToken.kind===64&&(Ee.left.kind===209||Ee.left.kind===208)&&(De.skip=!0,Te(De,wx(Ee.left,as(Ee.right,ut),ut,Ee.right.kind===110))),De)}function c(Ee,De,ut){if(!De.skip)return P(De,Ee)}function u(Ee,De,ut){if(!De.skip){const jt=Z(De);D.assertIsDefined(jt),X(De,jt),Te(De,void 0);const Jr=Ee.kind;if(bN(Jr)){let Hr=ut.parent;for(;Hr.kind===216||xN(Hr);)Hr=Hr.parent;(Jr===56||S7(Hr))&&Goe(ut.left,jt,S7(Hr)?Hr.thenStatement:void 0),Xoe(jt,ut.left)}}}function d(Ee,De,ut){if(!De.skip)return P(De,Ee)}function g(Ee,De){let ut;if(De.skip)ut=Z(De);else{const jt=L(De);D.assertIsDefined(jt);const Jr=Z(De);D.assertIsDefined(Jr),ut=fke(Ee.left,Ee.operatorToken,Ee.right,jt,Jr,Ee)}return De.skip=!1,X(De,void 0),Te(De,void 0),De.stackIndex--,ut}function x(Ee,De,ut){return Te(Ee,De),Ee}function P(Ee,De){if(Un(De))return De;Te(Ee,as(De,Ee.checkMode))}function L(Ee){return Ee.typeStack[Ee.stackIndex]}function X(Ee,De){Ee.typeStack[Ee.stackIndex]=De}function Z(Ee){return Ee.typeStack[Ee.stackIndex+1]}function Te(Ee,De){Ee.typeStack[Ee.stackIndex+1]=De}}function _tt(r){const{left:a,operatorToken:c,right:u}=r;c.kind===61&&(Un(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&Rr(a,p._0_and_1_operations_cannot_be_mixed_without_parentheses,Uo(a.operatorToken.kind),Uo(c.kind)),Un(u)&&(u.operatorToken.kind===57||u.operatorToken.kind===56)&&Rr(u,p._0_and_1_operations_cannot_be_mixed_without_parentheses,Uo(u.operatorToken.kind),Uo(c.kind)))}function ftt(r,a,c,u,d){const g=a.kind;if(g===64&&(r.kind===209||r.kind===208))return wx(r,as(c,u),u,c.kind===110);let x;bN(g)?x=KC(r,u):x=as(r,u);const P=as(c,u);return fke(r,a,c,x,P,d)}function fke(r,a,c,u,d,g){const x=a.kind;switch(x){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(u===zr||d===zr)return zr;u=o1(u,r),d=o1(d,c);let br;if(u.flags&528&&d.flags&528&&(br=Te(a.kind))!==void 0)return qe(g||a,p.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Uo(a.kind),Uo(br)),ge;{const Sr=UW(r,u,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Br=UW(c,d,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let _n;if(df(u,3)&&df(d,3)||!(iu(u,2112)||iu(d,2112)))_n=ge;else if(P(u,d)){switch(x){case 50:case 73:jt();break;case 43:case 68:ce<3&&qe(g,p.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}_n=he}else jt(P),_n=Y;return Sr&&Br&&Ee(_n),_n}case 40:case 65:if(u===zr||d===zr)return zr;!df(u,402653316)&&!df(d,402653316)&&(u=o1(u,r),d=o1(d,c));let Tr;return df(u,296,!0)&&df(d,296,!0)?Tr=ge:df(u,2112,!0)&&df(d,2112,!0)?Tr=he:df(u,402653316,!0)||df(d,402653316,!0)?Tr=w:(Fc(u)||Fc(d))&&(Tr=Ac(u)||Ac(d)?Y:it),Tr&&!Z(x)?Tr:Tr?(x===65&&Ee(Tr),Tr):(jt((Br,_n)=>df(Br,402655727)&&df(_n,402655727)),it);case 30:case 32:case 33:case 34:return Z(x)&&(u=fse(o1(u,r)),d=fse(o1(d,c)),ut((Sr,Br)=>{if(Fc(Sr)||Fc(Br))return!0;const _n=Zo(Sr,zs),Ni=Zo(Br,zs);return _n&&Ni||!_n&&!Ni&&fM(Sr,Br)})),rt;case 35:case 36:case 37:case 38:if(jq(r)||jq(c)){const Sr=x===35||x===37;qe(g,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Sr?"false":"true")}return Hr(g,x,r,c),ut((Sr,Br)=>Loe(Sr,Br)||Loe(Br,Sr)),rt;case 104:return itt(r,c,u,d);case 103:return stt(r,c,u,d);case 56:case 77:{const Sr=Tp(u)&4194304?Oi([KZe($?u:V2(d)),d]):u;return x===77&&Ee(d),Sr}case 57:case 76:{const Sr=Tp(u)&8388608?Oi([My(XSe(u)),d],2):u;return x===76&&Ee(d),Sr}case 61:case 78:{const Sr=Tp(u)&262144?Oi([My(u),d],2):u;return x===78&&Ee(d),Sr}case 64:const $n=Un(r.parent)?Au(r.parent):0;return L($n,d),De($n)?((!(d.flags&524288)||$n!==2&&$n!==6&&!Py(d)&&!Mse(d)&&!(Mi(d)&1))&&Ee(d),u):(Ee(d),d);case 28:if(!z.allowUnreachableCode&&$M(r)&&!X(r.parent)){const Sr=bn(r),Br=Sr.text,_n=tc(Br,r.pos);Sr.parseDiagnostics.some(ji=>ji.code!==p.JSX_expressions_must_have_one_parent_element.code?!1:Cq(ji,_n))||qe(r,p.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return d;default:return D.fail()}function P(br,Tr){return df(br,2112)&&df(Tr,2112)}function L(br,Tr){if(br===2)for(const $n of O2(Tr)){const Sr=An($n);if(Sr.symbol&&Sr.symbol.flags&32){const Br=$n.escapedName,_n=hu($n.valueDeclaration,Br,788968,void 0,Br,!1);_n!=null&&_n.declarations&&_n.declarations.some(pI)&&(H3(_n,p.Duplicate_identifier_0,Ba(Br),$n),H3($n,p.Duplicate_identifier_0,Ba(Br),_n))}}}function X(br){return br.parent.kind===216&&Um(br.left)&&br.left.text==="0"&&(go(br.parent.parent)&&br.parent.parent.expression===br.parent||br.parent.parent.kind===214)&&($l(br.right)||Be(br.right)&&br.right.escapedText==="eval")}function Z(br){const Tr=WM(u,12288)?r:WM(d,12288)?c:void 0;return Tr?(qe(Tr,p.The_0_operator_cannot_be_applied_to_type_symbol,Uo(br)),!1):!0}function Te(br){switch(br){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Ee(br){Xv(x)&&n(Tr);function Tr(){let $n=u;if(sE(a.kind)&&r.kind===210&&($n=soe(r,void 0,!0)),GA(r,p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Sr;if(Ue&&mi(r)&&iu(br,32768)){const Br=Hu(Sp(r.expression),r.name.escapedText);YV(br,Br)&&(Sr=p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}J2(br,$n,r,c,Sr)}}}function De(br){var Tr;switch(br){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const $n=Im(r),Sr=nS(c);return!!Sr&&Dc(Sr)&&!!((Tr=$n==null?void 0:$n.exports)!=null&&Tr.size);default:return!1}}function ut(br){return br(u,d)?!1:(jt(br),!0)}function jt(br){let Tr=!1;const $n=g||a;if(br){const ji=Iv(u),fs=Iv(d);Tr=!(ji===u&&fs===d)&&!!(ji&&fs)&&br(ji,fs)}let Sr=u,Br=d;!Tr&&br&&([Sr,Br]=ptt(u,d,br));const[_n,Ni]=_a(Sr,Br);Jr($n,Tr,_n,Ni)||g2($n,Tr,p.Operator_0_cannot_be_applied_to_types_1_and_2,Uo(a.kind),_n,Ni)}function Jr(br,Tr,$n,Sr){switch(a.kind){case 37:case 35:case 38:case 36:return g2(br,Tr,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,$n,Sr);default:return}}function Hr(br,Tr,$n,Sr){const Br=vn(kl($n)),_n=vn(kl(Sr));if(Br||_n){const Ni=qe(br,p.This_condition_will_always_return_0,Uo(Tr===37||Tr===35?97:112));if(Br&&_n)return;const ji=Tr===38||Tr===36?Uo(54):"",fs=Br?Sr:$n,mo=kl(fs);ic(Ni,ai(fs,p.Did_you_mean_0,`${ji}Number.isNaN(${ju(mo)?Yd(mo):"..."})`))}}function vn(br){if(Be(br)&&br.escapedText==="NaN"){const Tr=sXe();return!!Tr&&Tr===q0(br)}return!1}}function ptt(r,a,c){let u=r,d=a;const g=V2(r),x=V2(a);return c(g,x)||(u=g,d=x),[u,d]}function dtt(r){n(Ee);const a=Jm(r);if(!a)return it;const c=vf(a);if(!(c&1))return it;const u=(c&2)!==0;r.asteriskToken&&(u&&ce<99&&A_(r,26624),!u&&ce<2&&z.downlevelIteration&&A_(r,256));const d=R8(a),g=d&&eCe(d,u),x=g&&g.yieldType||it,P=g&&g.nextType||it,L=u?Ex(P)||it:P,X=r.expression?as(r.expression):$t,Z=nke(r,X,L,u);if(d&&Z&&J2(Z,x,r.expression||r,r.expression),r.asteriskToken)return Yoe(u?19:17,1,X,r.expression)||it;if(d)return F6(2,d,u)||it;let Te=V8e(2,a);return Te||(Te=it,n(()=>{if(ve&&!Z_e(r)){const De=sd(r,void 0);(!De||Fc(De))&&qe(r,p.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Te;function Ee(){r.flags&8192||mf(r,p.A_yield_expression_is_only_allowed_in_a_generator_body),Wse(r)&&qe(r,p.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function mtt(r,a){const c=KC(r.condition);Goe(r.condition,c,r.whenTrue);const u=as(r.whenTrue,a),d=as(r.whenFalse,a);return Oi([u,d],2)}function pke(r){const a=r.parent;return Md(a)&&pke(a)||Ll(a)&&a.argumentExpression===r}function gtt(r){const a=[r.head.text],c=[];for(const u of r.templateSpans){const d=as(u.expression);WM(d,12288)&&qe(u.expression,p.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(u.literal.text),c.push(Zo(d,Wo)?d:w)}return GC(r)||pke(r)||Nv(sd(r,void 0)||at,htt)?gx(a,c):w}function htt(r){return!!(r.flags&134217856||r.flags&58982400&&iu(vp(r)||at,402653316))}function ytt(r){return S3(r)&&!C7(r.parent)?r.parent.parent:r}function G8(r,a,c,u){const d=ytt(r);NM(d,a,!1),jQe(d,c);const g=as(r,u|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const x=iu(g,2944)&&VW(g,kW(a,r,void 0))?jp(g):g;return zQe(),JA(),x}function n_(r,a){if(a)return as(r,a);const c=Ei(r);if(!c.resolvedType){const u=mg,d=Xr;mg=Ie,Xr=void 0,c.resolvedType=as(r,a),Xr=d,mg=u}return c.resolvedType}function dke(r){return r=kl(r,!0),r.kind===215||r.kind===233||X9(r)}function XA(r,a,c){const u=$D(r);if(jn(r)){const g=ZF(r);if(g)return Coe(u,g,a)}const d=Boe(u)||(c?G8(u,c,void 0,a||0):n_(u,a));return Cs(r)&&r.name.kind===206&&Yo(d)&&!d.target.hasRestElement&&Cv(d)VW(r,u))}if(a.flags&58982400){const c=vp(a)||at;return iu(c,4)&&iu(r,128)||iu(c,8)&&iu(r,256)||iu(c,64)&&iu(r,2048)||iu(c,4096)&&iu(r,8192)||VW(r,c)}return!!(a.flags&406847616&&iu(r,128)||a.flags&256&&iu(r,256)||a.flags&2048&&iu(r,2048)||a.flags&512&&iu(r,512)||a.flags&8192&&iu(r,8192))}return!1}function GC(r){const a=r.parent;return i7(a)&&Vy(a.type)||X9(a)&&Vy(ZR(a))||koe(r)&&M8(sd(r,0))||(Md(a)||Op(a)||gh(a))&&GC(a)||(Y_(a)||_0(a)||J9(a))&&GC(a.parent)}function XC(r,a,c){const u=as(r,a,c);return GC(r)||lue(r)?jp(u):dke(r)?u:pse(u,kW(sd(r,void 0),r,void 0))}function mke(r,a){return r.name.kind===166&&Rh(r.name),XC(r.initializer,a)}function gke(r,a){zCe(r),r.name.kind===166&&Rh(r.name);const c=cke(r,a);return hke(r,c,a)}function hke(r,a,c){if(c&&c&10){const u=VA(a,0,!0),d=VA(a,1,!0),g=u||d;if(g&&g.typeParameters){const x=f4(r,2);if(x){const P=VA(My(x),u?0:1,!1);if(P&&!P.typeParameters){if(c&8)return yke(r,c),h_;const L=M6(r),X=L.signature&&Oc(L.signature),Z=X&&E5e(X);if(Z&&!Z.typeParameters&&!yn(L.inferences,X8)){const Te=Stt(L,g.typeParameters),Ee=vae(g,Te),De=er(L.inferences,ut=>xse(ut.typeParameter));if(hse(Ee,P,(ut,jt)=>{Ly(De,ut,jt,0,!0)}),bt(De,X8)&&(yse(Ee,P,(ut,jt)=>{Ly(De,ut,jt)}),!xtt(L.inferences,De)))return Ttt(L.inferences,De),L.inferredTypeParameters=Nn(L.inferredTypeParameters,Te),mx(Ee)}return mx(A5e(g,P,L))}}}}return a}function yke(r,a){if(a&2){const c=M6(r);c.flags|=4}}function X8(r){return!!(r.candidates||r.contraCandidates)}function btt(r){return!!(r.candidates||r.contraCandidates||_Te(r.typeParameter))}function xtt(r,a){for(let c=0;cc.symbol.escapedName===a)}function ktt(r,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;const u=a.slice(0,c);for(let d=1;;d++){const g=u+d;if(!Roe(r,g))return g}}function vke(r){const a=MT(r);if(a&&!a.typeParameters)return Oc(a)}function Ctt(r){const a=as(r.expression),c=OA(a,r.expression),u=vke(a);return u&&aW(u,r,c!==a)}function Sp(r){const a=Boe(r);if(a)return a;if(r.flags&134217728&&Xr){const d=Xr[Nc(r)];if(d)return d}const c=pr,u=as(r);if(pr!==c){const d=Xr||(Xr=[]);d[Nc(r)]=u,X_e(r,r.flags|134217728)}return u}function Boe(r){let a=kl(r,!0);if(X9(a)){const c=ZR(a);if(!Vy(c))return Qi(c)}if(a=kl(r),Dk(a)){const c=Boe(a.expression);return c?Ex(c):void 0}if(go(a)&&a.expression.kind!==108&&!Nd(a,!0)&&!J5e(a))return e7(a)?Ctt(a):vke(WC(a.expression));if(i7(a)&&!Vy(a.type))return Qi(a.type);if(t7(r)||gle(r))return as(r)}function HM(r){const a=Ei(r);if(a.contextFreeType)return a.contextFreeType;NM(r,it,!1);const c=a.contextFreeType=as(r,4);return JA(),c}function as(r,a,c){var u,d;(u=Hi)==null||u.push(Hi.Phase.Check,"checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});const g=N;N=r,k=0;const x=Att(r,a,c),P=hke(r,x,a);return Ooe(P)&&wtt(r,P),N=g,(d=Hi)==null||d.pop(),P}function wtt(r,a){r.parent.kind===210&&r.parent.expression===r||r.parent.kind===211&&r.parent.expression===r||(r.kind===80||r.kind===165)&&rq(r)||r.parent.kind===185&&r.parent.exprName===r||r.parent.kind===280||qe(r,p.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),Fg(z)&&(D.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&16777216&&qe(r,p.Cannot_access_ambient_const_enums_when_0_is_enabled,Zt))}function Ett(r,a){if(vm(r)){if(qH(r))return Coe(r.expression,$H(r),a);if(X9(r))return q5e(r,a)}return as(r.expression,a)}function Att(r,a,c){const u=r.kind;if(i)switch(u){case 230:case 217:case 218:i.throwIfCancellationRequested()}switch(u){case 80:return lQe(r,a);case 81:return kKe(r);case 110:return AM(r);case 108:return Use(r);case 106:return Jn;case 15:case 11:return fW(r)?it:V8(Wd(r.text));case 9:return vce(r),V8(Sg(+r.text));case 10:return Dat(r),V8(zV({negative:!1,base10Value:v9(r.text)}));case 112:return pe;case 97:return ue;case 227:return gtt(r);case 14:return Gt;case 208:return Y8e(r,a,c);case 209:return rKe(r,a);case 210:return soe(r,a);case 165:return p5e(r,a);case 211:return zKe(r,a);case 212:if(r.expression.kind===102)return het(r);case 213:return get(r,a);case 214:return yet(r);case 216:return Ett(r,a);case 230:return dnt(r);case 217:case 218:return cke(r,a);case 220:return Qet(r);case 215:case 233:return vet(r,a);case 234:return Tet(r);case 232:return H5e(r);case 237:return ket(r);case 235:return Cet(r);case 219:return Zet(r);case 221:return Ket(r);case 222:return ttt(r);case 223:return rtt(r);case 224:return ntt(r);case 225:return Ae(r,a);case 226:return mtt(r,a);case 229:return YQe(r,a);case 231:return $t;case 228:return dtt(r);case 236:return QQe(r);case 293:return hKe(r,a);case 283:return sKe(r,a);case 284:return iKe(r,a);case 287:return oKe(r);case 291:return lKe(r,a);case 285:D.fail("Shouldn't ever directly check a JsxOpeningElement")}return Y}function bke(r){jh(r),r.expression&&mf(r.expression,p.Type_expected),Bo(r.constraint),Bo(r.default);const a=fx(ei(r));vp(a),dGe(a)||qe(r.default,p.Type_parameter_0_has_a_circular_default,Rt(a));const c=yp(a),u=dx(a);c&&u&&Td(u,cm($a(c,E6(a,u)),u),r.default,p.Type_0_does_not_satisfy_the_constraint_1),Y8(r),n(()=>ew(r.name,p.Type_parameter_name_cannot_be_0))}function Dtt(r){var a,c;if(Lp(r.parent)||Yi(r.parent)||zg(r.parent)){const u=fx(ei(r)),d=ose(u)&98304;if(d){const g=ei(r.parent);if(zg(r.parent)&&!(Mi(hl(g))&48))qe(r,p.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(d===32768||d===65536){(a=Hi)==null||a.push(Hi.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:xp(hl(g)),id:xp(u)});const x=mM(g,u,d===65536?Hl:Cl),P=mM(g,u,d===65536?Cl:Hl),L=u;B=u,Td(x,P,r,p.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),B=L,(c=Hi)==null||c.pop()}}}}function xke(r){jh(r),KM(r);const a=Jm(r);Pi(r,16476)&&(a.kind===175&&I0(a.body)||qe(r,p.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===175&&Be(r.name)&&r.name.escapedText==="constructor"&&qe(r.name,p.constructor_cannot_be_used_as_a_parameter_property_name)),!r.initializer&&WH(r)&&_o(r.name)&&a.body&&qe(r,p.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&Be(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(a.parameters.indexOf(r)!==0&&qe(r,p.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(a.kind===175||a.kind===179||a.kind===184)&&qe(r,p.A_constructor_cannot_have_a_this_parameter),a.kind===218&&qe(r,p.An_arrow_function_cannot_have_a_this_parameter),(a.kind===176||a.kind===177)&&qe(r,p.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!_o(r.name)&&!Zo(xg(An(r.symbol)),ne)&&qe(r,p.A_rest_parameter_must_be_of_an_array_type)}function Ntt(r){const a=Itt(r);if(!a){qe(r,p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=i1(a),u=b0(c);if(!u)return;Bo(r.type);const{parameterName:d}=r;if(u.kind===0||u.kind===2)JV(d);else if(u.parameterIndex>=0){if(up(c)&&u.parameterIndex===c.parameters.length-1)qe(d,p.A_type_predicate_cannot_reference_a_rest_parameter);else if(u.type){const g=()=>Ps(void 0,p.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Td(u.type,An(c.parameters[u.parameterIndex]),r.type,void 0,g)}}else if(d){let g=!1;for(const{name:x}of a.parameters)if(_o(x)&&Tke(x,d,u.parameterName)){g=!0;break}g||qe(r.parameterName,p.Cannot_find_parameter_0,u.parameterName)}}function Itt(r){switch(r.parent.kind){case 218:case 178:case 261:case 217:case 183:case 173:case 172:const a=r.parent;if(r===a.type)return a}}function Tke(r,a,c){for(const u of r.elements){if(sf(u))continue;const d=u.name;if(d.kind===80&&d.escapedText===c)return qe(a,p.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((d.kind===206||d.kind===205)&&Tke(d,a,c))return!0}}function ZA(r){r.kind===180?nat(r):(r.kind===183||r.kind===261||r.kind===184||r.kind===178||r.kind===175||r.kind===179)&&cq(r);const a=vf(r);a&4||((a&3)===3&&ce<99&&A_(r,6144),(a&3)===2&&ce<4&&A_(r,64),a&3&&ce<2&&A_(r,128)),rL(ab(r)),_nt(r),Vt(r.parameters,xke),r.type&&Bo(r.type),n(c);function c(){Art(r);const u=Og(r);if(ve&&!u)switch(r.kind){case 179:qe(r,p.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 178:qe(r,p.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(u){const d=vf(r);if((d&5)===1){const g=Qi(u);if(g===st)qe(u,p.A_generator_cannot_have_a_void_type_annotation);else{const x=F6(0,g,(d&2)!==0)||it,P=F6(1,g,(d&2)!==0)||x,L=F6(2,g,(d&2)!==0)||at,X=rke(x,P,L,!!(d&2));Td(X,g,u)}}else(d&3)===2&&crt(r,u)}r.kind!==180&&r.kind!==323&&q2(r)}}function Ptt(r){const a=new Map,c=new Map,u=new Map;for(const g of r.members)if(g.kind===175)for(const x of g.parameters)gm(x,g)&&!_o(x.name)&&d(a,x.name,x.name.escapedText,3);else{const x=so(g),P=g.name;if(!P)continue;const L=Ea(P),X=L&&x?16:0,Z=L?u:x?c:a,Te=P&&P4(P);if(Te)switch(g.kind){case 176:d(Z,P,Te,1|X);break;case 177:d(Z,P,Te,2|X);break;case 171:d(Z,P,Te,3|X);break;case 173:d(Z,P,Te,8|X);break}}function d(g,x,P,L){const X=g.get(P);if(X)if((X&16)!==(L&16))qe(x,p.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,F_(x));else{const Z=!!(X&8),Te=!!(L&8);Z||Te?Z!==Te&&qe(x,p.Duplicate_identifier_0,F_(x)):X&L&-17?qe(x,p.Duplicate_identifier_0,F_(x)):g.set(P,X|L)}else g.set(P,L)}}function Ott(r){for(const a of r.members){const c=a.name;if(so(a)&&c){const d=P4(c);switch(d){case"name":case"length":case"caller":case"arguments":case"prototype":const g=p.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=yv(ei(r));qe(c,g,d,x);break}}}}function Ske(r){const a=new Map;for(const c of r.members)if(c.kind===170){let u;const d=c.name;switch(d.kind){case 11:case 9:u=d.text;break;case 80:u=ri(d);break;default:continue}a.get(u)?(qe(Es(c.symbol.valueDeclaration),p.Duplicate_identifier_0,u),qe(c.name,p.Duplicate_identifier_0,u)):a.set(u,!0)}}function joe(r){if(r.kind===263){const c=ei(r);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==r)return}const a=bTe(ei(r));if(a!=null&&a.declarations){const c=new Map;for(const u of a.declarations)u.parameters.length===1&&u.parameters[0].type&&Tx(Qi(u.parameters[0].type),d=>{const g=c.get(xp(d));g?g.declarations.push(u):c.set(xp(d),{type:d,declarations:[u]})});c.forEach(u=>{if(u.declarations.length>1)for(const d of u.declarations)qe(d,p.Duplicate_index_signature_for_type_0,Rt(u.type))})}}function kke(r){!jh(r)&&!Cat(r)&&lq(r.name),KM(r),zoe(r),Pi(r,256)&&r.kind===171&&r.initializer&&qe(r,p.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,il(r.name))}function Mtt(r){return Ea(r.name)&&qe(r,p.Private_identifiers_are_not_allowed_outside_class_bodies),kke(r)}function Ltt(r){zCe(r)||lq(r.name),g_(r)&&r.asteriskToken&&Be(r.name)&&ri(r.name)==="constructor"&&qe(r.name,p.Class_constructor_may_not_be_a_generator),Rke(r),Pi(r,256)&&r.kind===173&&r.body&&qe(r,p.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,il(r.name)),Ea(r.name)&&!Z_(r)&&qe(r,p.Private_identifiers_are_not_allowed_outside_class_bodies),zoe(r)}function zoe(r){if(Ea(r.name)&&ce<99){for(let a=sh(r);a;a=sh(a))Ei(a).flags|=4194304;if(Mp(r.parent)){const a=jse(r.parent);a&&(Ei(r.name).flags|=32768,Ei(a).flags|=4096)}}}function Ftt(r){jh(r),js(r,Bo)}function Rtt(r){ZA(r),Sat(r)||kat(r),Bo(r.body);const a=ei(r),c=wu(a,r.kind);if(r===c&&$W(a),Eu(r.body))return;n(d);return;function u(g){return qp(g)?!0:g.kind===171&&!so(g)&&!!g.initializer}function d(){const g=r.parent;if(l3(g)){zse(r.parent,g);const x=L8e(g),P=M8e(r.body);if(P){if(x&&qe(P,p.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(gc(z)!==99||!ae)&&(bt(r.parent.members,u)||bt(r.parameters,X=>Pi(X,16476))))if(!Btt(P,r.body))qe(P,p.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let X;for(const Z of r.body.statements){if($f(Z)&&W5(Gf(Z.expression))){X=Z;break}if(Cke(Z))break}X===void 0&&qe(r,p.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else x||qe(r,p.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Btt(r,a){const c=fb(r.parent);return $f(c)&&c.parent===a}function Cke(r){return r.kind===108||r.kind===110?!0:gue(r)?!1:!!js(r,Cke)}function wke(r){Be(r.name)&&ri(r.name)==="constructor"&&Yi(r.parent)&&qe(r.name,p.Class_constructor_may_not_be_an_accessor),n(a),Bo(r.body),zoe(r);function a(){if(!cq(r)&&!fat(r)&&lq(r.name),XM(r),ZA(r),r.kind===176&&!(r.flags&16777216)&&I0(r.body)&&r.flags&256&&(r.flags&512||qe(r.name,p.A_get_accessor_must_return_a_value)),r.name.kind===166&&Rh(r.name),O8(r)){const u=ei(r),d=wu(u,176),g=wu(u,177);if(d&&g&&!(Q8(d)&1)){Ei(d).flags|=1;const x=Pp(d),P=Pp(g);(x&256)!==(P&256)&&(qe(d.name,p.Accessors_must_both_be_abstract_or_non_abstract),qe(g.name,p.Accessors_must_both_be_abstract_or_non_abstract)),(x&16&&!(P&24)||x&8&&!(P&8))&&(qe(d.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),qe(g.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=Gm(ei(r));r.kind===176&&Ioe(r,c)}}function jtt(r){XM(r)}function ztt(r,a,c){return r.typeArguments&&c{const u=Joe(r);u&&Eke(r,u)});const c=Ei(r).resolvedSymbol;c&&bt(c.declarations,u=>yk(u)&&!!(u.flags&268435456))&&Pu(jM(r),c.declarations,c.escapedName)}}function Utt(r){const a=di(r.parent,FL);if(!a)return;const c=Joe(a);if(!c)return;const u=yp(c[a.typeArguments.indexOf(r)]);return u&&$a(u,xd(c,WW(a,c)))}function Vtt(r){ITe(r)}function Wtt(r){Vt(r.members,Bo),n(a);function a(){const c=ySe(r);QW(c,c.symbol),joe(r),Ske(r)}}function qtt(r){Bo(r.elementType)}function $tt(r){const a=r.elements;let c=!1,u=!1;const d=bt(a,R9);for(const g of a){if(g.kind!==201&&d){Rr(g,p.Tuple_members_must_all_have_names_or_all_not_have_names);break}const x=Iae(g);if(x&8){const P=Qi(g.type);if(!U2(P)){qe(g,p.A_rest_element_type_must_be_an_array_type);break}(Ym(P)||Yo(P)&&P.target.combinedFlags&4)&&(u=!0)}else if(x&4){if(u){Rr(g,p.A_rest_element_cannot_follow_another_rest_element);break}u=!0}else if(x&2){if(u){Rr(g,p.An_optional_element_cannot_follow_a_rest_element);break}c=!0}else if(c){Rr(g,p.A_required_element_cannot_follow_an_optional_element);break}}Vt(r.elements,Bo),Qi(r)}function Htt(r){Vt(r.types,Bo),Qi(r)}function Dke(r,a){if(!(r.flags&8388608))return r;const c=r.objectType,u=r.indexType;if(Zo(u,a1(c,0)))return a.kind===211&&iy(a)&&Mi(c)&32&&R1(c)&1&&qe(a,p.Index_signature_in_type_0_only_permits_reading,Rt(c)),r;const d=ad(c);if(Fh(d,ge)&&df(u,296))return r;if(k6(c)){const g=FV(u,a);if(g){const x=Tx(d,P=>So(P,g));if(x&&c0(x)&24)return qe(a,p.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Ba(g)),Y}}return qe(a,p.Type_0_cannot_be_used_to_index_type_1,Rt(u),Rt(c)),Y}function Gtt(r){Bo(r.objectType),Bo(r.indexType),Dke(fSe(r),r)}function Xtt(r){Ztt(r),Bo(r.typeParameter),Bo(r.nameType),Bo(r.type),r.type||u4(r,it);const a=Uae(r),c=Tv(a);if(c)Td(c,Os,r.nameType);else{const u=n1(a);Td(u,Os,N5(r.typeParameter))}}function Ztt(r){var a;if((a=r.members)!=null&&a.length)return Rr(r.members[0],p.A_mapped_type_may_not_declare_properties_or_methods)}function Ytt(r){JV(r)}function Qtt(r){dat(r),Bo(r.type)}function Ktt(r){js(r,Bo)}function ert(r){Sn(r,c=>c.parent&&c.parent.kind===193&&c.parent.extendsType===c)||Rr(r,p.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Bo(r.typeParameter);const a=ei(r.typeParameter);if(a.declarations&&a.declarations.length>1){const c=Pa(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;const u=fx(a),d=Lle(a,167);if(!iCe(d,[u],g=>[g])){const g=ze(a);for(const x of d)qe(x.name,p.All_declarations_of_0_must_have_identical_constraints,g)}}}q2(r)}function trt(r){for(const a of r.templateSpans){Bo(a.type);const c=Qi(a.type);Td(c,Wo,a.type)}Qi(r)}function rrt(r){Bo(r.argument),r.assertions&&WS(r.assertions.assertClause,Rr)&&(hN()||Rr(r.assertions.assertClause,p.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Ju(z)!==3&&Ju(z)!==99&&Rr(r.assertions.assertClause,p.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),Ake(r)}function nrt(r){r.dotDotDotToken&&r.questionToken&&Rr(r,p.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===189&&Rr(r.type,p.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===190&&Rr(r.type,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Bo(r.type),Qi(r)}function GM(r){return(Qd(r,8)||qp(r))&&!!(r.flags&16777216)}function qW(r,a){let c=Vv(r);return r.parent.kind!==263&&r.parent.kind!==262&&r.parent.kind!==230&&r.flags&16777216&&(!(c&2)&&!(C1(r.parent)&&Vu(r.parent.parent)&&x1(r.parent.parent))&&(c|=1),c|=2),c&a}function $W(r){n(()=>irt(r))}function irt(r){function a(Tr,$n){return $n!==void 0&&$n.parent===Tr[0].parent?$n:Tr[0]}function c(Tr,$n,Sr,Br,_n){if((Br^_n)!==0){const ji=qW(a(Tr,$n),Sr);Vt(Tr,fs=>{const mo=qW(fs,Sr)^ji;mo&1?qe(Es(fs),p.Overload_signatures_must_all_be_exported_or_non_exported):mo&2?qe(Es(fs),p.Overload_signatures_must_all_be_ambient_or_non_ambient):mo&24?qe(Es(fs)||fs,p.Overload_signatures_must_all_be_public_private_or_protected):mo&256&&qe(Es(fs),p.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function u(Tr,$n,Sr,Br){if(Sr!==Br){const _n=oS(a(Tr,$n));Vt(Tr,Ni=>{oS(Ni)!==_n&&qe(Es(Ni),p.Overload_signatures_must_all_be_optional_or_required)})}}const d=283;let g=0,x=d,P=!1,L=!0,X=!1,Z,Te,Ee;const De=r.declarations,ut=(r.flags&16384)!==0;function jt(Tr){if(Tr.name&&Eu(Tr.name))return;let $n=!1;const Sr=js(Tr.parent,_n=>{if($n)return _n;$n=_n===Tr});if(Sr&&Sr.pos===Tr.end&&Sr.kind===Tr.kind){const _n=Sr.name||Sr,Ni=Sr.name;if(Tr.name&&Ni&&(Ea(Tr.name)&&Ea(Ni)&&Tr.name.escapedText===Ni.escapedText||jc(Tr.name)&&jc(Ni)&&Iy(Rh(Tr.name),Rh(Ni))||rg(Tr.name)&&rg(Ni)&&Zw(Tr.name)===Zw(Ni))){if((Tr.kind===173||Tr.kind===172)&&so(Tr)!==so(Sr)){const fs=so(Tr)?p.Function_overload_must_be_static:p.Function_overload_must_not_be_static;qe(_n,fs)}return}if(I0(Sr.body)){qe(_n,p.Function_implementation_name_must_be_0,il(Tr.name));return}}const Br=Tr.name||Tr;ut?qe(Br,p.Constructor_implementation_is_missing):Pi(Tr,256)?qe(Br,p.All_declarations_of_an_abstract_method_must_be_consecutive):qe(Br,p.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Jr=!1,Hr=!1,vn=!1;const br=[];if(De)for(const Tr of De){const $n=Tr,Sr=$n.flags&16777216,Br=$n.parent&&($n.parent.kind===263||$n.parent.kind===186)||Sr;if(Br&&(Ee=void 0),($n.kind===262||$n.kind===230)&&!Sr&&(vn=!0),$n.kind===261||$n.kind===173||$n.kind===172||$n.kind===175){br.push($n);const _n=qW($n,d);g|=_n,x&=_n,P=P||oS($n),L=L&&oS($n);const Ni=I0($n.body);Ni&&Z?ut?Hr=!0:Jr=!0:(Ee==null?void 0:Ee.parent)===$n.parent&&Ee.end!==$n.pos&&jt(Ee),Ni?Z||(Z=$n):X=!0,Ee=$n,Br||(Te=$n)}if(jn(Tr)&&Qs(Tr)&&Tr.jsDoc){for(const _n of Tr.jsDoc)if(_n.tags)for(const Ni of _n.tags)$9(Ni)&&(X=!0)}}if(Hr&&Vt(br,Tr=>{qe(Tr,p.Multiple_constructor_implementations_are_not_allowed)}),Jr&&Vt(br,Tr=>{qe(Es(Tr)||Tr,p.Duplicate_function_implementation)}),vn&&!ut&&r.flags&16&&De){const Tr=Mn(De,$n=>$n.kind===262).map($n=>ai($n,p.Consider_adding_a_declare_modifier_to_this_class));Vt(De,$n=>{const Sr=$n.kind===262?p.Class_declaration_cannot_implement_overload_list_for_0:$n.kind===261?p.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Sr&&ic(qe(Es($n)||$n,Sr,Bu(r)),...Tr)})}if(Te&&!Te.body&&!Pi(Te,256)&&!Te.questionToken&&jt(Te),X&&(De&&(c(De,Z,d,g,x),u(De,Z,P,L)),Z)){const Tr=x6(r),$n=i1(Z);for(const Sr of Tr)if(!AZe($n,Sr)){const Br=Sr.declaration&&J4(Sr.declaration)?Sr.declaration.parent.tagName:Sr.declaration;ic(qe(Br,p.This_overload_signature_is_not_compatible_with_its_implementation_signature),ai(Z,p.The_implementation_signature_is_declared_here));break}}}function YA(r){n(()=>art(r))}function art(r){let a=r.localSymbol;if(!a&&(a=ei(r),!a.exportSymbol)||wu(a,r.kind)!==r)return;let c=0,u=0,d=0;for(const X of a.declarations){const Z=L(X),Te=qW(X,1025);Te&1?Te&1024?d|=Z:c|=Z:u|=Z}const g=c|u,x=c&u,P=d&g;if(x||P)for(const X of a.declarations){const Z=L(X),Te=Es(X);Z&P?qe(Te,p.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,il(Te)):Z&x&&qe(Te,p.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,il(Te))}function L(X){let Z=X;switch(Z.kind){case 263:case 264:case 352:case 344:case 346:return 2;case 266:return Np(Z)||tv(Z)!==0?5:4;case 262:case 265:case 305:return 3;case 311:return 7;case 276:case 225:const Te=Z,Ee=Wu(Te)?Te.expression:Te.right;if(!ju(Ee))return 1;Z=Ee;case 270:case 273:case 272:let De=0;const ut=Rf(ei(Z));return Vt(ut.declarations,jt=>{De|=L(jt)}),De;case 259:case 207:case 261:case 275:case 80:return 1;case 172:case 170:return 2;default:return D.failBadSyntaxKind(Z)}}}function QA(r,a,c,...u){const d=KA(r,a);return d&&Ex(d,a,c,...u)}function KA(r,a,c){if(Fc(r))return;const u=r;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(n4(r,aM(!1)))return u.promisedTypeOfPromise=yl(r)[0];if(qM(Dy(r),402915324))return;const d=Hu(r,"then");if(Fc(d))return;const g=d?ro(d,0):tt;if(g.length===0){a&&qe(a,p.A_promise_must_have_a_then_method);return}let x,P;for(const Z of g){const Te=T6(Z);Te&&Te!==st&&!s1(r,Te,N1)?x=Te:P=Ht(P,Z)}if(!P){D.assertIsDefined(x),c&&(c.value=x),a&&qe(a,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Rt(r),Rt(x));return}const L=T0(Oi(er(P,Eoe)),2097152);if(Fc(L))return;const X=ro(L,0);if(X.length===0){a&&qe(a,p.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return u.promisedTypeOfPromise=Oi(er(X,Eoe),2)}function eD(r,a,c,u,...d){return(a?Ex(r,c,u,...d):Iv(r,c,u,...d))||Y}function Nke(r){if(qM(Dy(r),402915324))return!1;const a=Hu(r,"then");return!!a&&ro(T0(a,2097152),0).length>0}function HW(r){var a;if(r.flags&16777216){const c=Nae(!1);return!!c&&r.aliasSymbol===c&&((a=r.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function ZC(r){return r.flags&1048576?El(r,ZC):HW(r)?r.aliasTypeArguments[0]:r}function Ike(r){if(Fc(r)||HW(r))return!1;if(k6(r)){const a=vp(r);if(a?a.flags&3||Py(a)||Nv(a,Nke):iu(r,8650752))return!0}return!1}function srt(r){const a=Nae(!0);if(a)return j8(a,[ZC(r)])}function ort(r){if(Ike(r)){const a=srt(r);if(a)return a}return D.assert(HW(r)||KA(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r}function Ex(r,a,c,...u){const d=Iv(r,a,c,...u);return d&&ort(d)}function Iv(r,a,c,...u){if(Fc(r)||HW(r))return r;const d=r;if(d.awaitedTypeOfType)return d.awaitedTypeOfType;if(r.flags&1048576){if(m2.lastIndexOf(r.id)>=0){a&&qe(a,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const P=a?X=>Iv(X,a,c,...u):Iv;m2.push(r.id);const L=El(r,P);return m2.pop(),d.awaitedTypeOfType=L}if(Ike(r))return d.awaitedTypeOfType=r;const g={value:void 0},x=KA(r,void 0,g);if(x){if(r.id===x.id||m2.lastIndexOf(x.id)>=0){a&&qe(a,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}m2.push(r.id);const P=Iv(x,a,c,...u);return m2.pop(),P?d.awaitedTypeOfType=P:void 0}if(Nke(r)){if(a){D.assertIsDefined(c);let P;g.value&&(P=Ps(P,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Rt(r),Rt(g.value))),P=Ps(P,c,...u),yc.add(Wy(bn(a),a,P))}return}return d.awaitedTypeOfType=r}function crt(r,a){const c=Qi(a);if(ce>=2){if(Ac(c))return;const u=aM(!0);if(u!==qa&&!n4(c,u)){qe(a,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Rt(Iv(c)||st));return}}else{if(urt(a),Ac(c))return;const u=UD(a);if(u===void 0){qe(a,p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Rt(c));return}const d=ou(u,111551,!0),g=d?An(d):Y;if(Ac(g)){u.kind===80&&u.escapedText==="Promise"&&I8(c)===aM(!1)?qe(a,p.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):qe(a,p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Yd(u));return}const x=zGe(!0);if(x===Ua){qe(a,p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Yd(u));return}if(!Td(g,x,a,p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;const P=u&&Tm(u),L=pf(r.locals,P.escapedText,111551);if(L){qe(L.valueDeclaration,p.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,ri(P),Yd(u));return}}eD(c,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function lrt(r){const a=$C(r);jW(a,r);const c=Oc(a);if(c.flags&1)return;const u=Noe(r);if(!(u!=null&&u.resolvedReturnType))return;let d;const g=u.resolvedReturnType;switch(r.parent.kind){case 262:case 230:d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 171:if(!le){d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 168:d=p.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 173:case 176:case 177:d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return D.failBadSyntaxKind(r.parent)}Td(c,g,r.expression,d)}function tD(r,a,c,u,d,g=c.length,x=0){const P=M.createFunctionTypeNode(void 0,tt,M.createKeywordTypeNode(133));return Lh(P,r,a,c,u,d,g,x)}function Voe(r,a,c,u,d,g,x){const P=tD(r,a,c,u,d,g,x);return mx(P)}function Pke(r){return Voe(void 0,void 0,tt,r)}function Oke(r){const a=jd("value",r);return Voe(void 0,void 0,[a],st)}function urt(r){Mke(r&&UD(r),!1)}function Mke(r,a){if(!r)return;const c=Tm(r),u=(r.kind===80?788968:1920)|2097152,d=hu(c,c.escapedText,u,void 0,void 0,!0);if(d&&d.flags&2097152){if(Qe&&S2(d)&&!iD(Rf(d))&&!Yf(d))b2(d);else if(a&&Fg(z)&&Ff(z)>=5&&!S2(d)&&!bt(d.declarations,Q6)){const g=qe(r,p.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),x=on(d.declarations||tt,n6);x&&ic(g,ai(x,p._0_was_imported_here,ri(c)))}}}function YC(r){const a=Woe(r);a&&hm(a)&&Mke(a,!0)}function Woe(r){if(r)switch(r.kind){case 192:case 191:return Lke(r.types);case 193:return Lke([r.trueType,r.falseType]);case 195:case 201:return Woe(r.type);case 182:return r.typeName}}function Lke(r){let a;for(let c of r){for(;c.kind===195||c.kind===201;)c=c.type;if(c.kind===146||!$&&(c.kind===200&&c.literal.kind===106||c.kind===157))continue;const u=Woe(c);if(!u)return;if(a){if(!Be(a)||!Be(u)||a.escapedText!==u.escapedText)return}else a=u}return a}function GW(r){const a=Lf(r);return ty(r)?k$(a):a}function XM(r){if(!jS(r)||!o0(r)||!r.modifiers||!aF(le,r,r.parent,r.parent.parent))return;const a=on(r.modifiers,lp);if(a){if(le?(A_(a,8),r.kind===168&&A_(a,32)):ce<99&&(A_(a,8),cf(r)?r.name?aCe(r)&&A_(a,8388608):A_(a,8388608):Mp(r)||(Ea(r.name)&&(g_(r)||w4(r)||ym(r))&&A_(a,8388608),jc(r.name)&&A_(a,16777216))),z.emitDecoratorMetadata)switch(A_(a,16),r.kind){case 262:const c=ay(r);if(c)for(const x of c.parameters)YC(GW(x));break;case 176:case 177:const u=r.kind===176?177:176,d=wu(ei(r),u);YC(cr(r)||d&&cr(d));break;case 173:for(const x of r.parameters)YC(GW(x));YC(Og(r));break;case 171:YC(Lf(r));break;case 168:YC(GW(r));const g=r.parent;for(const x of g.parameters)YC(GW(x));break}for(const c of r.modifiers)lp(c)&&lrt(c)}}function _rt(r){n(a);function a(){Rke(r),mce(r),QC(r,r.name)}}function frt(r){r.typeExpression||qe(r.name,p.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&ew(r.name,p.Type_alias_name_cannot_be_0),Bo(r.typeExpression),rL(ab(r))}function prt(r){Bo(r.constraint);for(const a of r.typeParameters)Bo(a)}function drt(r){Bo(r.typeExpression)}function mrt(r){Bo(r.typeExpression);const a=cS(r);if(a){const c=Oq(a,HR);if(Nr(c)>1)for(let u=1;u0),c.length>1&&qe(c[1],p.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const u=Fke(r.class.expression),d=l3(a);if(d){const g=Fke(d.expression);g&&u.escapedText!==g.escapedText&&qe(u,p.JSDoc_0_1_does_not_match_the_extends_2_clause,ri(r.tagName),ri(u),ri(g))}}function Trt(r){const a=lS(r);a&&qp(a)&&qe(r,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Fke(r){switch(r.kind){case 80:return r;case 210:return r.name;default:return}}function Rke(r){var a;XM(r),ZA(r);const c=vf(r);if(r.name&&r.name.kind===166&&Rh(r.name),O8(r)){const g=ei(r),x=r.localSymbol||g,P=(a=x.declarations)==null?void 0:a.find(L=>L.kind===r.kind&&!(L.flags&262144));r===P&&$W(x),g.parent&&$W(g)}const u=r.kind===172?void 0:r.body;if(Bo(u),Ioe(r,R8(r)),n(d),jn(r)){const g=X6(r);g&&g.typeExpression&&!Gse(Qi(g.typeExpression),r)&&qe(g.typeExpression.type,p.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function d(){Og(r)||(Eu(u)&&!GM(r)&&u4(r,it),c&1&&I0(u)&&Oc(i1(r)))}}function q2(r){n(a);function a(){const c=bn(r);let u=Gg.get(c.path);u||(u=[],Gg.set(c.path,u)),u.push(r)}}function Bke(r,a){for(const c of r)switch(c.kind){case 262:case 230:Srt(c,a),qoe(c,a);break;case 311:case 266:case 240:case 268:case 247:case 248:case 249:Jke(c,a);break;case 175:case 217:case 261:case 218:case 173:case 176:case 177:c.body&&Jke(c,a),qoe(c,a);break;case 172:case 178:case 179:case 183:case 184:case 264:case 263:qoe(c,a);break;case 194:krt(c,a);break;default:D.assertNever(c,"Node should not have been registered for unused identifiers check")}}function jke(r,a,c){const u=Es(r)||r,d=yk(r)?p._0_is_declared_but_never_used:p._0_is_declared_but_its_value_is_never_read;c(r,0,ai(u,d,a))}function ZM(r){return Be(r)&&ri(r).charCodeAt(0)===95}function Srt(r,a){for(const c of r.members)switch(c.kind){case 173:case 171:case 176:case 177:if(c.kind===177&&c.symbol.flags&32768)break;const u=ei(c);!u.isReferenced&&(Qd(c,8)||sp(c)&&Ea(c.name))&&!(c.flags&16777216)&&a(c,0,ai(c.name,p._0_is_declared_but_its_value_is_never_read,ze(u)));break;case 175:for(const d of c.parameters)!d.symbol.isReferenced&&Pi(d,8)&&a(d,0,ai(d.name,p.Property_0_is_declared_but_its_value_is_never_read,Bu(d.symbol)));break;case 180:case 239:case 174:break;default:D.fail("Unexpected class member")}}function krt(r,a){const{typeParameter:c}=r;$oe(c)&&a(r,1,ai(r,p._0_is_declared_but_its_value_is_never_read,ri(c.name)))}function qoe(r,a){const c=ei(r).declarations;if(!c||fi(c)!==r)return;const u=ab(r),d=new Set;for(const g of u){if(!$oe(g))continue;const x=ri(g.name),{parent:P}=g;if(P.kind!==194&&P.typeParameters.every($oe)){if(bu(d,P)){const L=bn(P),X=Ug(P)?FH(P):RH(L,P.typeParameters),Te=P.typeParameters.length===1?[p._0_is_declared_but_its_value_is_never_read,x]:[p.All_type_parameters_are_unused];a(g,1,af(L,X.pos,X.end-X.pos,...Te))}}else a(g,1,ai(g,p._0_is_declared_but_its_value_is_never_read,x))}}function $oe(r){return!(Ec(r.symbol).isReferenced&262144)&&!ZM(r.name)}function YM(r,a,c,u){const d=String(u(a)),g=r.get(d);g?g[1].push(c):r.set(d,[a,[c]])}function zke(r){return di(ch(r),Cs)}function Crt(r){return Cc(r)?Bg(r.parent)?!!(r.propertyName&&ZM(r.name)):ZM(r.name):Np(r)||(Fa(r)&&L5(r.parent.parent)||Uke(r))&&ZM(r.name)}function Jke(r,a){const c=new Map,u=new Map,d=new Map;r.locals.forEach(g=>{if(!(g.flags&262144?!(g.flags&3&&!(g.isReferenced&3)):g.isReferenced||g.exportSymbol)&&g.declarations){for(const x of g.declarations)if(!Crt(x))if(Uke(x))YM(c,Ert(x),x,Nc);else if(Cc(x)&&Bg(x.parent)){const P=fi(x.parent.elements);(x===P||!fi(x.parent.elements).dotDotDotToken)&&YM(u,x.parent,x,Nc)}else if(Fa(x))YM(d,x.parent,x,Nc);else{const P=g.valueDeclaration&&zke(g.valueDeclaration),L=g.valueDeclaration&&Es(g.valueDeclaration);P&&L?!gm(P,P.parent)&&!_3(P)&&!ZM(L)&&(Cc(x)&&PS(x.parent)?YM(u,x.parent,x,Nc):a(P,1,ai(L,p._0_is_declared_but_its_value_is_never_read,Bu(g)))):jke(x,Bu(g),a)}}}),c.forEach(([g,x])=>{const P=g.parent;if((g.name?1:0)+(g.namedBindings?g.namedBindings.kind===273?1:g.namedBindings.elements.length:0)===x.length)a(P,0,x.length===1?ai(P,p._0_is_declared_but_its_value_is_never_read,ri(Fi(x).name)):ai(P,p.All_imports_in_import_declaration_are_unused));else for(const X of x)jke(X,ri(X.name),a)}),u.forEach(([g,x])=>{const P=zke(g.parent)?1:0;if(g.elements.length===x.length)x.length===1&&g.parent.kind===259&&g.parent.parent.kind===260?YM(d,g.parent.parent,g.parent,Nc):a(g,P,x.length===1?ai(g,p._0_is_declared_but_its_value_is_never_read,QM(Fi(x).name)):ai(g,p.All_destructured_elements_are_unused));else for(const L of x)a(L,P,ai(L,p._0_is_declared_but_its_value_is_never_read,QM(L.name)))}),d.forEach(([g,x])=>{if(g.declarations.length===x.length)a(g,0,x.length===1?ai(Fi(x).name,p._0_is_declared_but_its_value_is_never_read,QM(Fi(x).name)):ai(g.parent.kind===242?g.parent:g,p.All_variables_are_unused));else for(const P of x)a(P,0,ai(P,p._0_is_declared_but_its_value_is_never_read,QM(P.name)))})}function wrt(){var r;for(const a of aT)if(!((r=ei(a))!=null&&r.isReferenced)){const c=A5(a);D.assert(f7(c),"Only parameter declaration should be checked here");const u=ai(a.name,p._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,il(a.name),il(a.propertyName));c.type||ic(u,af(bn(c),c.end,1,p.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,il(a.propertyName))),yc.add(u)}}function QM(r){switch(r.kind){case 80:return ri(r);case 206:case 205:return QM(Ws(Fi(r.elements),Cc).name);default:return D.assertNever(r)}}function Uke(r){return r.kind===272||r.kind===275||r.kind===273}function Ert(r){return r.kind===272?r:r.kind===273?r.parent:r.parent.parent}function XW(r){if(r.kind===240&&Fy(r),Uq(r)){const a=pt;Vt(r.statements,Bo),pt=a}else Vt(r.statements,Bo);r.locals&&q2(r)}function Art(r){ce>=2||!Yq(r)||r.flags&16777216||Eu(r.body)||Vt(r.parameters,a=>{a.name&&!_o(a.name)&&a.name.escapedText===wt.escapedName&&sv("noEmit",a,p.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function rD(r,a,c){if((a==null?void 0:a.escapedText)!==c||r.kind===171||r.kind===170||r.kind===173||r.kind===172||r.kind===176||r.kind===177||r.kind===302||r.flags&16777216||(hh(r)||Hf(r)||Ld(r))&&Q6(r))return!1;const u=ch(r);return!(Cs(u)&&Eu(u.parent.body))}function Drt(r){Sn(r,a=>Q8(a)&4?(r.kind!==80?qe(Es(r),p.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):qe(r,p.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Nrt(r){Sn(r,a=>Q8(a)&8?(r.kind!==80?qe(Es(r),p.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):qe(r,p.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Irt(r,a){if(R>=5&&!(R>=100&&bn(r).impliedNodeFormat===1)||!a||!rD(r,a,"require")&&!rD(r,a,"exports")||Vu(r)&&tv(r)!==1)return;const c=_x(r);c.kind===311&&bm(c)&&sv("noEmit",a,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,il(a),il(a))}function Prt(r,a){if(!a||ce>=4||!rD(r,a,"Promise")||Vu(r)&&tv(r)!==1)return;const c=_x(r);c.kind===311&&bm(c)&&c.flags&2048&&sv("noEmit",a,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,il(a),il(a))}function Ort(r,a){ce<=8&&(rD(r,a,"WeakMap")||rD(r,a,"WeakSet"))&&Lb.push(r)}function Mrt(r){const a=sh(r);Q8(a)&4194304&&(D.assert(sp(r)&&Be(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),sv("noEmit",r,p.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function Lrt(r,a){a&&ce>=2&&ce<=8&&rD(r,a,"Reflect")&&Fb.push(r)}function Frt(r){let a=!1;if(Mp(r)){for(const c of r.members)if(Q8(c)&8388608){a=!0;break}}else if(_l(r))Q8(r)&8388608&&(a=!0);else{const c=sh(r);c&&Q8(c)&8388608&&(a=!0)}a&&(D.assert(sp(r)&&Be(r.name),"The target of a Reflect collision check should be an identifier"),sv("noEmit",r,p.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,il(r.name),"Reflect"))}function QC(r,a){a&&(Irt(r,a),Prt(r,a),Ort(r,a),Lrt(r,a),Yi(r)?(ew(a,p.Class_name_cannot_be_0),r.flags&16777216||unt(a)):j4(r)&&ew(a,p.Enum_name_cannot_be_0))}function Rrt(r){if(b1(r)&3||f7(r)||r.kind===259&&!r.initializer)return;const a=ei(r);if(a.flags&1){if(!Be(r.name))return D.fail();const c=hu(r,r.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&roe(c)&3){const u=I4(c.valueDeclaration,260),d=u.parent.kind===242&&u.parent.parent?u.parent.parent:void 0;if(!(d&&(d.kind===240&&Qs(d.parent)||d.kind===267||d.kind===266||d.kind===311))){const x=ze(c);qe(r,p.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function nD(r){return r===Wt?it:r===Rs?da:r}function KM(r){var a;if(XM(r),Cc(r)||Bo(r.type),!r.name)return;if(r.name.kind===166&&(Rh(r.name),a7(r)&&r.initializer&&n_(r.initializer)),Cc(r)){if(r.propertyName&&Be(r.name)&&f7(r)&&Eu(Jm(r).body)){aT.push(r);return}Bg(r.parent)&&r.dotDotDotToken&&ce<5&&A_(r,4),r.propertyName&&r.propertyName.kind===166&&Rh(r.propertyName);const d=r.parent.parent,g=r.dotDotDotToken?64:0,x=D8(d,g),P=r.propertyName||r.name;if(x&&!_o(P)){const L=wv(P);if(Mh(L)){const X=r1(L),Z=So(x,X);Z&&(FM(Z,void 0,!1),ioe(r,!!d.initializer&&d.initializer.kind===108,!1,x,Z))}}}if(_o(r.name)&&(r.name.kind===206&&ce<2&&z.downlevelIteration&&A_(r,512),Vt(r.name.elements,Bo)),Cs(r)&&r.initializer&&Eu(Jm(r).body)){qe(r,p.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(_o(r.name)){if(Pse(r))return;const d=a7(r)&&r.initializer&&r.parent.parent.kind!==248,g=!bt(r.name.elements,H1(sf));if(d||g){const x=y6(r);if(d){const P=n_(r.initializer);$&&g?f5e(P,r):J2(P,y6(r),r,r.initializer)}g&&(PS(r.name)?Pv(65,x,Ne,r):$&&f5e(x,r))}return}const c=ei(r);if(c.flags&2097152&&(o3(r)||bue(r))){KW(r);return}const u=nD(An(c));if(r===c.valueDeclaration){const d=a7(r)&&$D(r);d&&!(jn(r)&&Dc(d)&&(d.properties.length===0||O4(r.name))&&((a=c.exports)!=null&&a.size))&&r.parent.parent.kind!==248&&J2(n_(d),u,r,d,void 0),c.declarations&&c.declarations.length>1&&bt(c.declarations,g=>g!==r&&$5(g)&&!Wke(g,r))&&qe(r.name,p.All_declarations_of_0_must_have_identical_modifiers,il(r.name))}else{const d=nD(y6(r));!Ac(u)&&!Ac(d)&&!Iy(u,d)&&!(c.flags&67108864)&&Vke(c.valueDeclaration,u,r,d),a7(r)&&r.initializer&&J2(n_(r.initializer),d,r,r.initializer,void 0),c.valueDeclaration&&!Wke(r,c.valueDeclaration)&&qe(r.name,p.All_declarations_of_0_must_have_identical_modifiers,il(r.name))}r.kind!==171&&r.kind!==170&&(YA(r),(r.kind===259||r.kind===207)&&Rrt(r),QC(r,r.name))}function Vke(r,a,c,u){const d=Es(c),g=c.kind===171||c.kind===170?p.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:p.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,x=il(d),P=qe(d,g,x,Rt(a),Rt(u));r&&ic(P,ai(r,p._0_was_also_declared_here,x))}function Wke(r,a){if(r.kind===168&&a.kind===259||r.kind===259&&a.kind===168)return!0;if(oS(r)!==oS(a))return!1;const c=888;return dS(r,c)===dS(a,c)}function Hoe(r){var a,c;(a=Hi)==null||a.push(Hi.Phase.Check,"checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),vat(r),KM(r),(c=Hi)==null||c.pop()}function Brt(r){return gat(r),KM(r)}function jrt(r){!jh(r)&&!yce(r.declarationList)&&bat(r),Vt(r.declarationList.declarations,Bo)}function zrt(r){Fy(r),as(r.expression)}function Jrt(r){Fy(r);const a=KC(r.expression);Goe(r.expression,a,r.thenStatement),Bo(r.thenStatement),r.thenStatement.kind===241&&qe(r.thenStatement,p.The_body_of_an_if_statement_cannot_be_the_empty_statement),Bo(r.elseStatement)}function Goe(r,a,c){if(!$)return;u(r,c);function u(g,x){for(g=kl(g),d(g,x);Un(g)&&(g.operatorToken.kind===57||g.operatorToken.kind===61);)g=kl(g.left),d(g,x)}function d(g,x){const P=xN(g)?kl(g.right):g;if(ny(P))return;if(xN(P)){u(P,x);return}const L=P===g?a:KC(P),X=mi(P)&&dke(P.expression);if(!(Tp(L)&4194304)||X)return;const Z=ro(L,0),Te=!!QA(L);if(Z.length===0&&!Te)return;const Ee=Be(P)?P:mi(P)?P.name:void 0,De=Ee&&H0(Ee);if(!De&&!Te)return;De&&Un(g.parent)&&Vrt(g.parent,De)||De&&x&&Urt(g,x,Ee,De)||(Te?g2(P,!0,p.This_condition_will_always_return_true_since_this_0_is_always_defined,Gi(L)):qe(P,p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Urt(r,a,c,u){return!!js(a,function d(g){if(Be(g)){const x=H0(g);if(x&&x===u){if(Be(r)||Be(c)&&Un(c.parent))return!0;let P=c.parent,L=g.parent;for(;P&&L;){if(Be(P)&&Be(L)||P.kind===110&&L.kind===110)return H0(P)===H0(L);if(mi(P)&&mi(L)){if(H0(P.name)!==H0(L.name))return!1;L=L.expression,P=P.expression}else if(go(P)&&go(L))L=L.expression,P=P.expression;else return!1}}}return js(g,d)})}function Vrt(r,a){for(;Un(r)&&r.operatorToken.kind===56;){if(js(r.right,function u(d){if(Be(d)){const g=H0(d);if(g&&g===a)return!0}return js(d,u)}))return!0;r=r.parent}return!1}function Wrt(r){Fy(r),Bo(r.statement),KC(r.expression)}function qrt(r){Fy(r),KC(r.expression),Bo(r.statement)}function Xoe(r,a){return r.flags&16384&&qe(a,p.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function KC(r,a){return Xoe(as(r,a),r)}function $rt(r){Fy(r)||r.initializer&&r.initializer.kind===260&&yce(r.initializer),r.initializer&&(r.initializer.kind===260?Vt(r.initializer.declarations,Hoe):as(r.initializer)),r.condition&&KC(r.condition),r.incrementor&&as(r.incrementor),Bo(r.statement),r.locals&&q2(r)}function Hrt(r){jCe(r);const a=tF(r);if(r.awaitModifier?a&&fu(a)?Rr(r.awaitModifier,p.For_await_loops_cannot_be_used_inside_a_class_static_block):(vf(a)&6)===2&&ce<99&&A_(r,16384):z.downlevelIteration&&ce<2&&A_(r,256),r.initializer.kind===260)qke(r);else{const c=r.initializer,u=eL(r);if(c.kind===208||c.kind===209)wx(c,u||Y);else{const d=as(c);GA(c,p.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),u&&J2(u,d,c,r.expression)}}Bo(r.statement),r.locals&&q2(r)}function Grt(r){jCe(r);const a=aoe(as(r.expression));if(r.initializer.kind===260){const c=r.initializer.declarations[0];c&&_o(c.name)&&qe(c.name,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),qke(r)}else{const c=r.initializer,u=as(c);c.kind===208||c.kind===209?qe(c,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Zo(OXe(a),u)?GA(c,p.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):qe(c,p.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Ft||!df(a,126091264))&&qe(r.expression,p.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Rt(a)),Bo(r.statement),r.locals&&q2(r)}function qke(r){const a=r.initializer;if(a.declarations.length>=1){const c=a.declarations[0];Hoe(c)}}function eL(r){const a=r.awaitModifier?15:13;return Pv(a,WC(r.expression),Ne,r.expression)}function Pv(r,a,c,u){return Fc(a)?a:Zoe(r,a,c,u,!0)||it}function Zoe(r,a,c,u,d){const g=(r&2)!==0;if(a===Ft){tce(u,a,g);return}const x=ce>=2,P=!x&&z.downlevelIteration,L=z.noUncheckedIndexedAccess&&!!(r&128);if(x||P||g){const ut=YW(a,r,x?u:void 0);if(d&&ut){const jt=r&8?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?p.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;jt&&Td(c,ut.nextType,u,jt)}if(ut||x)return L?BA(ut&&ut.yieldType):ut&&ut.yieldType}let X=a,Z=!1,Te=!1;if(r&4){if(X.flags&1048576){const ut=a.types,jt=Mn(ut,Jr=>!(Jr.flags&402653316));jt!==ut&&(X=Oi(jt,2))}else X.flags&402653316&&(X=Ft);if(Te=X!==a,Te&&(ce<1&&u&&(qe(u,p.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),Z=!0),X.flags&131072))return L?BA(w):w}if(!U2(X)){if(u&&!Z){const ut=!!(r&4)&&!Te,[jt,Jr]=De(ut,P);g2(u,Jr&&!!QA(X),jt,Rt(X))}return Te?L?BA(w):w:void 0}const Ee=Sv(X,ge);if(Te&&Ee)return Ee.flags&402653316&&!z.noUncheckedIndexedAccess?w:Oi(L?[Ee,w,Ne]:[Ee,w],2);return r&128?BA(Ee):Ee;function De(ut,jt){var Jr;return jt?ut?[p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Yoe(r,0,a,void 0)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Xrt((Jr=a.symbol)==null?void 0:Jr.escapedName)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:ut?[p.Type_0_is_not_an_array_type_or_a_string_type,!0]:[p.Type_0_is_not_an_array_type,!0]}}function Xrt(r){switch(r){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Yoe(r,a,c,u){if(Fc(c))return;const d=YW(c,r,u);return d&&d[Yme(a)]}function Ov(r=Ft,a=Ft,c=at){if(r.flags&67359327&&a.flags&180227&&c.flags&180227){const u=x0([r,a,c]);let d=Le.get(u);return d||(d={yieldType:r,returnType:a,nextType:c},Le.set(u,d)),d}return{yieldType:r,returnType:a,nextType:c}}function $ke(r){let a,c,u;for(const d of r)if(!(d===void 0||d===gt)){if(d===Nt)return Nt;a=Ht(a,d.yieldType),c=Ht(c,d.returnType),u=Ht(u,d.nextType)}return a||c||u?Ov(a&&Oi(a),c&&Oi(c),u&&Xo(u)):gt}function ZW(r,a){return r[a]}function Bh(r,a,c){return r[a]=c}function YW(r,a,c){var u,d;if(Fc(r))return Nt;if(!(r.flags&1048576)){const X=c?{errors:void 0}:void 0,Z=Hke(r,a,c,X);if(Z===gt){if(c){const Te=tce(c,r,!!(a&2));X!=null&&X.errors&&ic(Te,...X.errors)}return}else if((u=X==null?void 0:X.errors)!=null&&u.length)for(const Te of X.errors)yc.add(Te);return Z}const g=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=ZW(r,g);if(x)return x===gt?void 0:x;let P;for(const X of r.types){const Z=c?{errors:void 0}:void 0,Te=Hke(X,a,c,Z);if(Te===gt){if(c){const Ee=tce(c,r,!!(a&2));Z!=null&&Z.errors&&ic(Ee,...Z.errors)}Bh(r,g,gt);return}else if((d=Z==null?void 0:Z.errors)!=null&&d.length)for(const Ee of Z.errors)yc.add(Ee);P=Ht(P,Te)}const L=P?$ke(P):gt;return Bh(r,g,L),L===gt?void 0:L}function Qoe(r,a){if(r===gt)return gt;if(r===Nt)return Nt;const{yieldType:c,returnType:u,nextType:d}=r;return a&&Nae(!0),Ov(Ex(c,a)||it,Ex(u,a)||it,d)}function Hke(r,a,c,u){if(Fc(r))return Nt;let d=!1;if(a&2){const g=Koe(r,Di)||Xke(r,Di);if(g)if(g===gt&&c)d=!0;else return a&8?Qoe(g,c):g}if(a&1){let g=Koe(r,xi)||Xke(r,xi);if(g)if(g===gt&&c)d=!0;else if(a&2){if(g!==gt)return g=Qoe(g,c),d?g:Bh(r,"iterationTypesOfAsyncIterable",g)}else return g}if(a&2){const g=ece(r,Di,c,u,d);if(g!==gt)return g}if(a&1){let g=ece(r,xi,c,u,d);if(g!==gt)return a&2?(g=Qoe(g,c),d?g:Bh(r,"iterationTypesOfAsyncIterable",g)):g}return gt}function Koe(r,a){return ZW(r,a.iterableCacheKey)}function Gke(r,a){const c=Koe(r,a)||ece(r,a,void 0,void 0,!1);return c===gt?qn:c}function Xke(r,a){let c;if(n4(r,c=a.getGlobalIterableType(!1))||n4(r,c=a.getGlobalIterableIteratorType(!1))){const[u]=yl(r),{returnType:d,nextType:g}=Gke(c,a);return Bh(r,a.iterableCacheKey,Ov(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(d,void 0)||d,g))}if(n4(r,a.getGlobalGeneratorType(!1))){const[u,d,g]=yl(r);return Bh(r,a.iterableCacheKey,Ov(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(d,void 0)||d,g))}}function Zrt(r){const a=RTe(!1),c=a&&Hu(An(a),Kl(r));return c&&Mh(c)?r1(c):`__@${r}`}function ece(r,a,c,u,d){var Z;const g=So(r,Zrt(a.iteratorSymbolName)),x=g&&!(g.flags&16777216)?An(g):void 0;if(Fc(x))return d?Nt:Bh(r,a.iterableCacheKey,Nt);const P=x?ro(x,0):void 0;if(!bt(P))return d?gt:Bh(r,a.iterableCacheKey,gt);const L=Xo(er(P,Oc)),X=(Z=Zke(L,a,c,u,d))!=null?Z:gt;return d?X:Bh(r,a.iterableCacheKey,X)}function tce(r,a,c){const u=c?p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,d=!!QA(a)||!c&&oI(r.parent)&&r.parent.expression===r&&LV(!1)!==qa&&Zo(a,LV(!1));return g2(r,d,u,Rt(a))}function Yrt(r,a,c,u){return Zke(r,a,c,u,!1)}function Zke(r,a,c,u,d){if(Fc(r))return Nt;let g=Yke(r,a)||Qrt(r,a);return g===gt&&c&&(g=void 0,d=!0),g!=null||(g=Kke(r,a,c,u,d)),g===gt?void 0:g}function Yke(r,a){return ZW(r,a.iteratorCacheKey)}function Qrt(r,a){const c=a.getGlobalIterableIteratorType(!1);if(n4(r,c)){const[u]=yl(r),d=Yke(c,a)||Kke(c,a,void 0,void 0,!1),{returnType:g,nextType:x}=d===gt?qn:d;return Bh(r,a.iteratorCacheKey,Ov(u,g,x))}if(n4(r,a.getGlobalIteratorType(!1))||n4(r,a.getGlobalGeneratorType(!1))){const[u,d,g]=yl(r);return Bh(r,a.iteratorCacheKey,Ov(u,d,g))}}function Qke(r,a){const c=Hu(r,"done")||ue;return Zo(a===0?ue:pe,c)}function Krt(r){return Qke(r,0)}function ent(r){return Qke(r,1)}function tnt(r){if(Fc(r))return Nt;const a=ZW(r,"iterationTypesOfIteratorResult");if(a)return a;if(n4(r,HGe(!1))){const x=yl(r)[0];return Bh(r,"iterationTypesOfIteratorResult",Ov(x,void 0,void 0))}if(n4(r,GGe(!1))){const x=yl(r)[0];return Bh(r,"iterationTypesOfIteratorResult",Ov(void 0,x,void 0))}const c=E_(r,Krt),u=c!==Ft?Hu(c,"value"):void 0,d=E_(r,ent),g=d!==Ft?Hu(d,"value"):void 0;return!u&&!g?Bh(r,"iterationTypesOfIteratorResult",gt):Bh(r,"iterationTypesOfIteratorResult",Ov(u,g||st,void 0))}function rce(r,a,c,u,d){var Tr,$n;var g,x,P,L;const X=So(r,c);if(!X&&c!=="next")return;const Z=X&&!(c==="next"&&X.flags&16777216)?c==="next"?An(X):T0(An(X),2097152):void 0;if(Fc(Z))return c==="next"?Nt:Rn;const Te=Z?ro(Z,0):tt;if(Te.length===0){if(u){const Sr=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;d?((Tr=d.errors)!=null||(d.errors=[]),d.errors.push(ai(u,Sr,c))):qe(u,Sr,c)}return c==="next"?gt:void 0}if(Z!=null&&Z.symbol&&Te.length===1){const Sr=a.getGlobalGeneratorType(!1),Br=a.getGlobalIteratorType(!1),_n=((x=(g=Sr.symbol)==null?void 0:g.members)==null?void 0:x.get(c))===Z.symbol,Ni=!_n&&((L=(P=Br.symbol)==null?void 0:P.members)==null?void 0:L.get(c))===Z.symbol;if(_n||Ni){const ji=_n?Sr:Br,{mapper:fs}=Z;return Ov(c4(ji.typeParameters[0],fs),c4(ji.typeParameters[1],fs),c==="next"?c4(ji.typeParameters[2],fs):void 0)}}let Ee,De;for(const Sr of Te)c!=="throw"&&bt(Sr.parameters)&&(Ee=Ht(Ee,Cg(Sr,0))),De=Ht(De,Oc(Sr));let ut,jt;if(c!=="throw"){const Sr=Ee?Oi(Ee):at;if(c==="next")jt=Sr;else if(c==="return"){const Br=a.resolveIterationType(Sr,u)||it;ut=Ht(ut,Br)}}let Jr;const Hr=De?Xo(De):Ft,vn=a.resolveIterationType(Hr,u)||it,br=tnt(vn);return br===gt?(u&&(d?(($n=d.errors)!=null||(d.errors=[]),d.errors.push(ai(u,a.mustHaveAValueDiagnostic,c))):qe(u,a.mustHaveAValueDiagnostic,c)),Jr=it,ut=Ht(ut,it)):(Jr=br.yieldType,ut=Ht(ut,br.returnType)),Ov(Jr,Oi(ut),jt)}function Kke(r,a,c,u,d){const g=$ke([rce(r,a,"next",c,u),rce(r,a,"return",c,u),rce(r,a,"throw",c,u)]);return d?g:Bh(r,a.iteratorCacheKey,g)}function F6(r,a,c){if(Fc(a))return;const u=eCe(a,c);return u&&u[Yme(r)]}function eCe(r,a){if(Fc(r))return Nt;const c=a?2:1,u=a?Di:xi;return YW(r,c,void 0)||Yrt(r,u,void 0,void 0)}function rnt(r){Fy(r)||mat(r)}function tL(r,a){const c=!!(a&1),u=!!(a&2);if(c){const d=F6(1,r,u);return d?u?Iv(ZC(d)):d:Y}return u?Iv(r)||Y:r}function tCe(r,a){const c=tL(a,vf(r));return!!(c&&(iu(c,16384)||c.flags&32769))}function nnt(r){var g;if(Fy(r))return;const a=tF(r);if(a&&fu(a)){mf(r,p.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){mf(r,p.A_return_statement_can_only_be_used_within_a_function_body);return}const c=i1(a),u=Oc(c),d=vf(a);if($||r.expression||u.flags&131072){const x=r.expression?n_(r.expression):Ne;if(a.kind===177)r.expression&&qe(r,p.Setters_cannot_return_a_value);else if(a.kind===175)r.expression&&!J2(x,u,r,r.expression)&&qe(r,p.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(R8(a)){const P=(g=tL(u,d))!=null?g:u,L=d&2?eD(x,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):x;P&&J2(L,P,r,r.expression)}}else a.kind!==175&&z.noImplicitReturns&&!tCe(a,u)&&qe(r,p.Not_all_code_paths_return_a_value)}function int(r){Fy(r)||r.flags&32768&&mf(r,p.with_statements_are_not_allowed_in_an_async_function_block),as(r.expression);const a=bn(r);if(!R6(a)){const c=oh(a,r.pos).start,u=r.statement.pos;B6(a,c,u-c,p.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function ant(r){Fy(r);let a,c=!1;const u=as(r.expression);Vt(r.caseBlock.clauses,d=>{d.kind===296&&!c&&(a===void 0?a=d:(Rr(d,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),d.kind===295&&n(g(d)),Vt(d.statements,Bo),z.noFallthroughCasesInSwitch&&d.fallthroughFlowNode&&wM(d.fallthroughFlowNode)&&qe(d,p.Fallthrough_case_in_switch);function g(x){return()=>{const P=as(x.expression);Loe(u,P)||MSe(P,u,x.expression,void 0)}}}),r.caseBlock.locals&&q2(r.caseBlock)}function snt(r){Fy(r)||Sn(r.parent,a=>Qs(a)?"quit":a.kind===255&&a.label.escapedText===r.label.escapedText?(Rr(r.label,p.Duplicate_label_0,F_(r.label)),!0):!1),Bo(r.statement)}function ont(r){Fy(r)||Be(r.expression)&&!r.expression.escapedText&&Nat(r,p.Line_break_not_permitted_here),r.expression&&as(r.expression)}function cnt(r){Fy(r),XW(r.tryBlock);const a=r.catchClause;if(a){if(a.variableDeclaration){const c=a.variableDeclaration;KM(c);const u=Lf(c);if(u){const d=Qi(u);d&&!(d.flags&3)&&mf(u,p.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)mf(c.initializer,p.Catch_clause_variable_cannot_have_an_initializer);else{const d=a.block.locals;d&&tS(a.locals,g=>{const x=d.get(g);x!=null&&x.valueDeclaration&&x.flags&2&&Rr(x.valueDeclaration,p.Cannot_redeclare_identifier_0_in_catch_clause,Ba(g))})}}XW(a.block)}r.finallyBlock&&XW(r.finallyBlock)}function QW(r,a,c){const u=bp(r);if(u.length===0)return;for(const g of O2(r))c&&g.flags&4194304||rCe(r,g,OC(g,8576,!0),r4(g));const d=a.valueDeclaration;if(d&&Yi(d)){for(const g of d.members)if(!so(g)&&!O8(g)){const x=ei(g);rCe(r,x,Sp(g.name.expression),r4(x))}}if(u.length>1)for(const g of u)lnt(r,g)}function rCe(r,a,c,u){const d=a.valueDeclaration,g=Es(d);if(g&&Ea(g))return;const x=dae(r,c),P=Mi(r)&2?wu(r.symbol,263):void 0,L=d&&d.kind===225||g&&g.kind===166?d:void 0,X=vd(a)===r.symbol?d:void 0;for(const Z of x){const Te=Z.declaration&&vd(ei(Z.declaration))===r.symbol?Z.declaration:void 0,Ee=X||Te||(P&&!bt(vs(r),De=>!!b6(De,a.escapedName)&&!!Sv(De,Z.keyType))?P:void 0);if(Ee&&!Zo(u,Z.type)){const De=cT(Ee,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ze(a),Rt(u),Rt(Z.keyType),Rt(Z.type));L&&Ee!==L&&ic(De,ai(L,p._0_is_declared_here,ze(a))),yc.add(De)}}}function lnt(r,a){const c=a.declaration,u=dae(r,a.keyType),d=Mi(r)&2?wu(r.symbol,263):void 0,g=c&&vd(ei(c))===r.symbol?c:void 0;for(const x of u){if(x===a)continue;const P=x.declaration&&vd(ei(x.declaration))===r.symbol?x.declaration:void 0,L=g||P||(d&&!bt(vs(r),X=>!!Fh(X,a.keyType)&&!!Sv(X,x.keyType))?d:void 0);L&&!Zo(a.type,x.type)&&qe(L,p._0_index_type_1_is_not_assignable_to_2_index_type_3,Rt(a.keyType),Rt(a.type),Rt(x.keyType),Rt(x.type))}}function ew(r,a){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":qe(r,a,r.escapedText)}}function unt(r){ce>=1&&r.escapedText==="Object"&&(R<5||bn(r).impliedNodeFormat===1)&&qe(r,p.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,zm[R])}function _nt(r){const a=Mn(Z6(r),Jg);if(!Nr(a))return;const c=jn(r),u=new Set,d=new Set;if(Vt(r.parameters,({name:x},P)=>{Be(x)&&u.add(x.escapedText),_o(x)&&d.add(P)}),hae(r)){const x=a.length-1,P=a[x];c&&P&&Be(P.name)&&P.typeExpression&&P.typeExpression.type&&!u.has(P.name.escapedText)&&!d.has(x)&&!Ym(Qi(P.typeExpression.type))&&qe(P.name,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,ri(P.name))}else Vt(a,({name:x,isNameFirst:P},L)=>{d.has(L)||Be(x)&&u.has(x.escapedText)||(Od(x)?c&&qe(x,p.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Yd(x),Yd(x.left)):P||vy(c,x,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,ri(x)))})}function rL(r){let a=!1;if(r)for(let u=0;u{u.default?(a=!0,fnt(u.default,r,d)):a&&qe(u,p.Required_type_parameters_may_not_follow_optional_type_parameters);for(let g=0;gu)return!1;for(let L=0;LR_(c)&&qp(c))&&Rr(a,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!Pi(r,1024)&&mf(r,p.A_class_declaration_without_the_default_modifier_must_have_a_name),sCe(r),Vt(r.members,Bo),q2(r)}function sCe(r){eat(r),XM(r),QC(r,r.name),rL(ab(r)),YA(r);const a=ei(r),c=hl(a),u=cm(c),d=An(a);nCe(a),$W(a),Ptt(r),!!(r.flags&16777216)||Ott(r);const x=T1(r);if(x){Vt(x.typeArguments,Bo),ce<2&&A_(x.parent,1);const X=l3(r);X&&X!==x&&as(X.expression);const Z=vs(c);Z.length&&n(()=>{const Te=Z[0],Ee=ni(c),De=ad(Ee);if(ynt(De,x),Bo(x.expression),bt(x.typeArguments)){Vt(x.typeArguments,Bo);for(const jt of en(De,x.typeArguments,x))if(!Eke(x,jt.typeParameters))break}const ut=cm(Te,c.thisType);if(Td(u,ut,void 0)?Td(d,ESe(De),r.name||r,p.Class_static_side_0_incorrectly_extends_base_class_static_side_1):lCe(r,u,ut,p.Class_0_incorrectly_extends_base_class_1),Ee.flags&8650752&&(v6(d)?ro(Ee,1).some(Jr=>Jr.flags&4)&&!Pi(r,256)&&qe(r.name||r,p.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):qe(r.name||r,p.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(De.symbol&&De.symbol.flags&32)&&!(Ee.flags&8650752)){const jt=ki(De,x.typeArguments,x);Vt(jt,Jr=>!c1(Jr.declaration)&&!Iy(Oc(Jr),Te))&&qe(x.expression,p.Base_constructors_must_all_have_the_same_return_type)}xnt(c,Te)})}hnt(r,c,u,d);const P=nk(r);if(P)for(const X of P)(!ju(X.expression)||op(X.expression))&&qe(X.expression,p.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Uoe(X),n(L(X));n(()=>{QW(c,a),QW(d,a,!0),joe(r),knt(r)});function L(X){return()=>{const Z=xg(Qi(X));if(!Ac(Z))if(L1(Z)){const Te=Z.symbol&&Z.symbol.flags&32?p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:p.Class_0_incorrectly_implements_interface_1,Ee=cm(Z,c.thisType);Td(u,Ee,void 0)||lCe(r,u,Ee,Te)}else qe(X,p.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function hnt(r,a,c,u){const g=T1(r)&&vs(a),x=g!=null&&g.length?cm(Fi(g),a.thisType):void 0,P=ni(a);for(const L of r.members)sH(L)||(Uu(L)&&Vt(L.parameters,X=>{gm(X,L)&&oCe(r,u,P,x,a,c,X,!0)}),oCe(r,u,P,x,a,c,L,!1))}function oCe(r,a,c,u,d,g,x,P,L=!0){const X=x.name&&H0(x.name)||H0(x);return X?cCe(r,a,c,u,d,g,aH(x),p3(x),so(x),P,Bu(X),L?x:void 0):0}function cCe(r,a,c,u,d,g,x,P,L,X,Z,Te){const Ee=jn(r),De=!!(r.flags&16777216);if(u&&(x||z.noImplicitOverride)){const ut=Kl(Z),jt=L?a:g,Jr=L?c:u,Hr=So(jt,ut),vn=So(Jr,ut),br=Rt(u);if(Hr&&!vn&&x){if(Te){const Tr=b5e(Z,Jr);Tr?qe(Te,Ee?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,br,ze(Tr)):qe(Te,Ee?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,br)}return 2}else if(Hr&&(vn!=null&&vn.declarations)&&z.noImplicitOverride&&!De){const Tr=bt(vn.declarations,p3);if(x)return 0;if(Tr){if(P&&Tr)return Te&&qe(Te,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,br),1}else{if(Te){const $n=X?Ee?p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Ee?p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;qe(Te,$n,br)}return 1}}}else if(x){if(Te){const ut=Rt(d);qe(Te,Ee?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,ut)}return 2}return 0}function lCe(r,a,c,u){let d=!1;for(const g of r.members){if(so(g))continue;const x=g.name&&H0(g.name)||H0(g);if(x){const P=So(a,x.escapedName),L=So(c,x.escapedName);if(P&&L){const X=()=>Ps(void 0,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ze(x),Rt(a),Rt(c));Td(An(P),An(L),g.name||g,void 0,X)||(d=!0)}}}d||Td(a,c,r.name||r,u)}function ynt(r,a){const c=ro(r,1);if(c.length){const u=c[0].declaration;if(u&&Qd(u,8)){const d=Zy(r.symbol);cce(a,d)||qe(a,p.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,g0(r.symbol))}}}function vnt(r,a,c){if(!a.name)return 0;const u=ei(r),d=hl(u),g=cm(d),x=An(u),L=T1(r)&&vs(d),X=L!=null&&L.length?cm(Fi(L),d.thisType):void 0,Z=ni(d),Te=a.parent?aH(a):Pi(a,16384);return cCe(r,x,Z,X,d,g,Te,p3(a),so(a),!1,Bu(c))}function Z8(r){return Du(r)&1?r.links.target:r}function bnt(r){return Mn(r.declarations,a=>a.kind===262||a.kind===263)}function xnt(r,a){var L,X,Z,Te;var c,u,d,g;const x=Pc(a);let P;e:for(const Ee of x){const De=Z8(Ee);if(De.flags&4194304)continue;const ut=b6(r,De.escapedName);if(!ut)continue;const jt=Z8(ut),Jr=c0(De);if(D.assert(!!jt,"derived should point to something, even if it is the base class' declaration."),jt===De){const Hr=Zy(r.symbol);if(Jr&256&&(!Hr||!Pi(Hr,256))){for(const vn of vs(r)){if(vn===a)continue;const br=b6(vn,De.escapedName),Tr=br&&Z8(br);if(Tr&&Tr!==De)continue e}P||(P=qe(Hr,p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Rt(r),Rt(a))),Hr.kind===230?ic(P,ai((X=(L=Ee.valueDeclaration)!=null?L:Ee.declarations&&Fi(Ee.declarations))!=null?X:Hr,p.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ze(Ee),Rt(a))):ic(P,ai((Te=(Z=Ee.valueDeclaration)!=null?Z:Ee.declarations&&Fi(Ee.declarations))!=null?Te:Hr,p.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Rt(r),ze(Ee),Rt(a)))}}else{const Hr=c0(jt);if(Jr&8||Hr&8)continue;let vn;const br=De.flags&98308,Tr=jt.flags&98308;if(br&&Tr){if((Du(De)&6?(c=De.declarations)!=null&&c.some(Br=>uCe(Br,Jr)):(u=De.declarations)!=null&&u.every(Br=>uCe(Br,Jr)))||Du(De)&262144||jt.valueDeclaration&&Un(jt.valueDeclaration))continue;const $n=br!==4&&Tr===4;if($n||br===4&&Tr!==4){const Br=$n?p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;qe(Es(jt.valueDeclaration)||jt.valueDeclaration,Br,ze(De),Rt(a),Rt(r))}else if(ae){const Br=(d=jt.declarations)==null?void 0:d.find(_n=>_n.kind===171&&!_n.initializer);if(Br&&!(jt.flags&33554432)&&!(Jr&256)&&!(Hr&256)&&!((g=jt.declarations)!=null&&g.some(_n=>!!(_n.flags&16777216)))){const _n=Hb(Zy(r.symbol)),Ni=Br.name;if(Br.exclamationToken||!_n||!Be(Ni)||!$||!fCe(Ni,r,_n)){const ji=p.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;qe(Es(jt.valueDeclaration)||jt.valueDeclaration,ji,ze(De),Rt(a))}}}continue}else if(noe(De)){if(noe(jt)||jt.flags&4)continue;D.assert(!!(jt.flags&98304)),vn=p.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else De.flags&98304?vn=p.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:vn=p.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;qe(Es(jt.valueDeclaration)||jt.valueDeclaration,vn,Rt(a),ze(De),Rt(r))}}}function uCe(r,a){return a&256&&(!fo(r)||!r.initializer)||Lp(r.parent)}function Tnt(r,a,c){if(!Nr(a))return c;const u=new Map;Vt(c,d=>{u.set(d.escapedName,d)});for(const d of a){const g=Pc(cm(d,r.thisType));for(const x of g){const P=u.get(x.escapedName);P&&x.parent===P.parent&&u.delete(x.escapedName)}}return zt(u.values())}function Snt(r,a){const c=vs(r);if(c.length<2)return!0;const u=new Map;Vt(Xie(r).declaredProperties,g=>{u.set(g.escapedName,{prop:g,containingType:r})});let d=!0;for(const g of c){const x=Pc(cm(g,r.thisType));for(const P of x){const L=u.get(P.escapedName);if(!L)u.set(P.escapedName,{prop:P,containingType:g});else if(L.containingType!==r&&!zZe(L.prop,P)){d=!1;const Z=Rt(L.containingType),Te=Rt(g);let Ee=Ps(void 0,p.Named_property_0_of_types_1_and_2_are_not_identical,ze(P),Z,Te);Ee=Ps(Ee,p.Interface_0_cannot_simultaneously_extend_types_1_and_2,Rt(r),Z,Te),yc.add(Wy(bn(a),a,Ee))}}}return d}function knt(r){if(!$||!me||r.flags&16777216)return;const a=Hb(r);for(const c of r.members)if(!(Pp(c)&2)&&!so(c)&&_Ce(c)){const u=c.name;if(Be(u)||Ea(u)||jc(u)){const d=An(ei(c));d.flags&3||LC(d)||(!a||!fCe(u,d,a))&&qe(c.name,p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,il(u))}}}function _Ce(r){return r.kind===171&&!p3(r)&&!r.exclamationToken&&!r.initializer}function Cnt(r,a,c,u,d){for(const g of c)if(g.pos>=u&&g.pos<=d){const x=M.createPropertyAccessExpression(M.createThis(),r);fc(x.expression,x),fc(x,g),x.flowNode=g.returnFlowNode;const P=W2(x,a,Dv(a));if(!LC(P))return!0}return!1}function fCe(r,a,c){const u=jc(r)?M.createElementAccessExpression(M.createThis(),r.expression):M.createPropertyAccessExpression(M.createThis(),r);fc(u.expression,u),fc(u,c),u.flowNode=c.returnFlowNode;const d=W2(u,a,Dv(a));return!LC(d)}function wnt(r){jh(r)||oat(r),rL(r.typeParameters),n(()=>{ew(r.name,p.Interface_name_cannot_be_0),YA(r);const a=ei(r);nCe(a);const c=wu(a,263);if(r===c){const u=hl(a),d=cm(u);if(Snt(u,r.name)){for(const g of vs(u))Td(d,cm(g,u.thisType),r.name,p.Interface_0_incorrectly_extends_interface_1);QW(u,a)}}Ske(r)}),Vt(Xw(r),a=>{(!ju(a.expression)||op(a.expression))&&qe(a.expression,p.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Uoe(a)}),Vt(r.members,Bo),n(()=>{joe(r),q2(r)})}function Ent(r){jh(r),ew(r.name,p.Type_alias_name_cannot_be_0),YA(r),rL(r.typeParameters),r.type.kind===141?(!ZI.has(r.name.escapedText)||Nr(r.typeParameters)!==1)&&qe(r.type,p.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Bo(r.type),q2(r))}function pCe(r){const a=Ei(r);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(const u of r.members){const d=Ant(u,c);Ei(u).enumMemberValue=d,c=typeof d=="number"?d+1:void 0}}}function Ant(r,a){if(RD(r.name))qe(r.name,p.Computed_property_names_are_not_allowed_in_enums);else{const c=U5(r.name);cy(c)&&!S9(c)&&qe(r.name,p.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return Dnt(r);if(!(r.parent.flags&16777216&&!n3(r.parent))){if(a!==void 0)return a;qe(r.name,p.Enum_member_must_have_initializer)}}function Dnt(r){const a=n3(r.parent),c=r.initializer,u=tw(c,r);return u!==void 0?a&&typeof u=="number"&&!isFinite(u)&&qe(c,isNaN(u)?p.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:p.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?qe(c,p.const_enum_member_initializers_must_be_constant_expressions):r.parent.flags&16777216?qe(c,p.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Td(as(c),ge,c,p.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),u}function tw(r,a){switch(r.kind){case 223:const c=tw(r.operand,a);if(typeof c=="number")switch(r.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 225:const u=tw(r.left,a),d=tw(r.right,a);if(typeof u=="number"&&typeof d=="number")switch(r.operatorToken.kind){case 52:return u|d;case 51:return u&d;case 49:return u>>d;case 50:return u>>>d;case 48:return u<Pnt(r))}function Pnt(r){jh(r),QC(r,r.name),YA(r),r.members.forEach(Ont),pCe(r);const a=ei(r),c=wu(a,r.kind);if(r===c){if(a.declarations&&a.declarations.length>1){const d=n3(r);Vt(a.declarations,g=>{j4(g)&&n3(g)!==d&&qe(Es(g),p.Enum_declarations_must_all_be_const_or_non_const)})}let u=!1;Vt(a.declarations,d=>{if(d.kind!==265)return!1;const g=d;if(!g.members.length)return!1;const x=g.members[0];x.initializer||(u?qe(x.name,p.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):u=!0)})}}function Ont(r){Ea(r.name)&&qe(r,p.An_enum_member_cannot_be_named_with_a_private_identifier),r.initializer&&as(r.initializer)}function Mnt(r){const a=r.declarations;if(a){for(const c of a)if((c.kind===262||c.kind===261&&I0(c.body))&&!(c.flags&16777216))return c}}function Lnt(r,a){const c=sh(r),u=sh(a);return im(c)?im(u):im(u)?!1:c===u}function Fnt(r){r.body&&(Bo(r.body),x1(r)||q2(r)),n(a);function a(){var c,u;const d=x1(r),g=r.flags&16777216;d&&!g&&qe(r.name,p.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const x=Np(r),P=x?p.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:p.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(nL(r,P))return;jh(r)||!g&&r.name.kind===11&&Rr(r.name,p.Only_ambient_modules_can_use_quoted_names),Be(r.name)&&QC(r,r.name),YA(r);const L=ei(r);if(L.flags&512&&!g&&pZ(r,h7(z))){if(Fg(z)&&!bn(r).externalModuleIndicator&&qe(r.name,p.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Zt),((c=L.declarations)==null?void 0:c.length)>1){const X=Mnt(L);X&&(bn(r)!==bn(X)?qe(r.name,p.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.posZ.kind===95);X&&qe(X,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(t3(r)){if((d||ei(r).flags&33554432)&&r.body)for(const Z of r.body.statements)nce(Z,d)}else im(r.parent)?d?qe(r.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):hf(ng(r.name))&&qe(r.name,p.Ambient_module_declaration_cannot_specify_relative_module_name):d?qe(r.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):qe(r.name,p.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function nce(r,a){switch(r.kind){case 242:for(const u of r.declarationList.declarations)nce(u,a);break;case 276:case 277:mf(r,p.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 270:case 271:mf(r,p.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 207:case 259:const c=r.name;if(_o(c)){for(const u of c.elements)nce(u,a);break}case 262:case 265:case 261:case 263:case 266:case 264:if(a)return;break}}function Rnt(r){switch(r.kind){case 80:return r;case 165:do r=r.left;while(r.kind!==80);return r;case 210:do{if(ny(r.expression)&&!Ea(r.name))return r.name;r=r.expression}while(r.kind!==80);return r}}function ice(r){const a=Q5(r);if(!a||Eu(a))return!1;if(!sc(a))return qe(a,p.String_literal_expected),!1;const c=r.parent.kind===267&&Np(r.parent.parent);if(r.parent.kind!==311&&!c)return qe(a,r.kind===277?p.Export_declarations_are_not_permitted_in_a_namespace:p.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&hf(a.text)&&!Xb(r))return qe(r,p.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Hf(r)&&r.assertClause){let u=!1;for(const d of r.assertClause.elements)sc(d.value)||(u=!0,qe(d.value,p.Import_assertion_values_must_be_string_literal_expressions));return!u}return!0}function KW(r){var P;var a,c,u,d;let g=ei(r);const x=Rf(g);if(x!==Kr){if(g=Ec(g.exportSymbol||g),jn(r)&&!(x.flags&111551)&&!Q6(r)){const Z=YT(r)?r.propertyName||r.name:sp(r)?r.name:r;if(D.assert(r.kind!==279),r.kind===280){const Te=qe(Z,p.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Ee=(c=(a=bn(r).symbol)==null?void 0:a.exports)==null?void 0:c.get((r.propertyName||r.name).escapedText);if(Ee===x){const De=(u=Ee.declarations)==null?void 0:u.find(F5);De&&ic(Te,ai(De,p._0_is_automatically_exported_here,Ba(Ee.escapedName)))}}else{D.assert(r.kind!==259);const Te=Sn(r,Mf(Tf,Hf)),Ee=(P=Te&&((d=eN(Te))==null?void 0:d.text))!=null?P:"...",De=Ba(Be(Z)?Z.escapedText:g.escapedName);qe(Z,p._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,De,`import("${Ee}").${De}`)}return}const L=rd(x),X=(g.flags&1160127?111551:0)|(g.flags&788968?788968:0)|(g.flags&1920?1920:0);if(L&X){const Z=r.kind===280?p.Export_declaration_conflicts_with_exported_declaration_of_0:p.Import_declaration_conflicts_with_local_declaration_of_0;qe(r,Z,ze(g))}if(Fg(z)&&!Q6(r)&&!(r.flags&16777216)){const Z=Yf(g),Te=!(L&111551);if(Te||Z)switch(r.kind){case 272:case 275:case 270:{if(z.preserveValueImports||z.verbatimModuleSyntax){D.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");const Ee=z.verbatimModuleSyntax&&Z5(r)?p.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Te?z.verbatimModuleSyntax?p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:z.verbatimModuleSyntax?p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,De=ri(r.kind===275&&r.propertyName||r.name);Z3(qe(r,Ee,De),Te?void 0:Z,De)}Te&&r.kind===270&&Qd(r,1)&&qe(r,p.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Zt);break}case 280:if(z.verbatimModuleSyntax||bn(Z)!==bn(r)){const Ee=ri(r.propertyName||r.name),De=Te?qe(r,p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Zt):qe(r,p._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Ee,Zt);Z3(De,Te?void 0:Z,Ee);break}}z.verbatimModuleSyntax&&r.kind!==270&&!jn(r)&&(R===1||bn(r).impliedNodeFormat===1)&&qe(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Ld(r)){const Z=ace(g,r);ov(Z)&&Z.declarations&&Pu(r,Z.declarations,Z.escapedName)}}}function ace(r,a){if(!(r.flags&2097152)||ov(r)||!sm(r))return r;const c=Rf(r);if(c===Kr)return c;for(;r.flags&2097152;){const u=Yse(r);if(u){if(u===c)break;if(u.declarations&&Nr(u.declarations))if(ov(u)){Pu(a,u.declarations,u.escapedName);break}else{if(r===c)break;r=u}}else break}return c}function eq(r){QC(r,r.name),KW(r),r.kind===275&&ri(r.propertyName||r.name)==="default"&&fh(z)&&R!==4&&(R<5||bn(r).impliedNodeFormat===1)&&A_(r,131072)}function mCe(r){var a;if(r.assertClause){const c=oY(r),u=WS(r.assertClause,c?Rr:void 0);if(c&&u)return hN()||Rr(r.assertClause,p.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Ju(z)!==3&&Ju(z)!==99?Rr(r.assertClause,p.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((R===199&&r.moduleSpecifier&&Jb(r.moduleSpecifier))!==99&&R!==99)return Rr(r.assertClause,R===199?p.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:p.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(Tf(r)?(a=r.importClause)!=null&&a.isTypeOnly:r.isTypeOnly)return Rr(r.assertClause,p.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(u)return Rr(r.assertClause,p.resolution_mode_can_only_be_set_for_type_only_imports)}}function Bnt(r){if(!nL(r,jn(r)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!jh(r)&&EF(r)&&mf(r,p.An_import_declaration_cannot_have_modifiers),ice(r)){const a=r.importClause;a&&!Pat(a)&&(a.name&&eq(a),a.namedBindings&&(a.namedBindings.kind===273?(eq(a.namedBindings),R!==4&&(R<5||bn(r).impliedNodeFormat===1)&&fh(z)&&A_(r,65536)):z_(r,r.moduleSpecifier)&&Vt(a.namedBindings.elements,eq)))}mCe(r)}}function jnt(r){if(!nL(r,jn(r)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(jh(r),Z5(r)||ice(r)))if(eq(r),Pi(r,1)&&vT(r),r.moduleReference.kind!==282){const a=Rf(ei(r));if(a!==Kr){const c=rd(a);if(c&111551){const u=Tm(r.moduleReference);ou(u,112575).flags&1920||qe(u,p.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,il(u))}c&788968&&ew(r.name,p.Import_name_cannot_be_0)}r.isTypeOnly&&Rr(r,p.An_import_alias_cannot_use_import_type)}else R>=5&&bn(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&16777216)&&Rr(r,p.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function znt(r){if(!nL(r,jn(r)?p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!jh(r)&&t_e(r)&&mf(r,p.An_export_declaration_cannot_have_modifiers),r.moduleSpecifier&&r.exportClause&&og(r.exportClause)&&Nr(r.exportClause.elements)&&ce===0&&A_(r,4194304),Jnt(r),!r.moduleSpecifier||ice(r))if(r.exportClause&&!_y(r.exportClause)){Vt(r.exportClause.elements,Hnt);const a=r.parent.kind===267&&Np(r.parent.parent),c=!a&&r.parent.kind===267&&!r.moduleSpecifier&&r.flags&16777216;r.parent.kind!==311&&!a&&!c&&qe(r,p.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=z_(r,r.moduleSpecifier);a&&Sy(a)?qe(r.moduleSpecifier,p.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ze(a)):r.exportClause&&KW(r.exportClause),R!==4&&(R<5||bn(r).impliedNodeFormat===1)&&(r.exportClause?fh(z)&&A_(r,65536):A_(r,32768))}mCe(r)}}function Jnt(r){var a;return r.isTypeOnly&&((a=r.exportClause)==null?void 0:a.kind)===278?$Ce(r.exportClause):!1}function nL(r,a){const c=r.parent.kind===311||r.parent.kind===267||r.parent.kind===266;return c||mf(r,a),!c}function Unt(r){return dF(r,a=>!!ei(a).isReferenced)}function Vnt(r){return dF(r,a=>!!Pa(ei(a)).constEnumReferenced)}function Wnt(r){return Tf(r)&&r.importClause&&!r.importClause.isTypeOnly&&Unt(r.importClause)&&!sq(r.importClause,!0)&&!Vnt(r.importClause)}function qnt(r){return Hf(r)&&yh(r.moduleReference)&&!r.isTypeOnly&&ei(r).isReferenced&&!sq(r,!1)&&!Pa(ei(r)).constEnumReferenced}function $nt(r){if(Qe)for(const a of r.statements)(Wnt(a)||qnt(a))&&qe(a,p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Hnt(r){if(KW(r),ag(z)&&wy(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)fh(z)&&R!==4&&(R<5||bn(r).impliedNodeFormat===1)&&ri(r.propertyName||r.name)==="default"&&A_(r,131072);else{const a=r.propertyName||r.name,c=hu(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===Pe||c===nt||c.declarations&&im(_x(c.declarations[0]))))qe(a,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,ri(a));else{!r.isTypeOnly&&!r.parent.parent.isTypeOnly&&vT(r);const u=c&&(c.flags&2097152?Rf(c):c);(!u||rd(u)&111551)&&n_(r.propertyName||r.name)}}}function Gnt(r){const a=r.isExportEquals?p.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(nL(r,a))return;const c=r.parent.kind===311?r.parent:r.parent.parent;if(c.kind===266&&!Np(c)){r.isExportEquals?qe(r,p.An_export_assignment_cannot_be_used_in_a_namespace):qe(r,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!jh(r)&&EF(r)&&mf(r,p.An_export_assignment_cannot_have_modifiers);const u=Lf(r);u&&Td(n_(r.expression),Qi(u),r.expression);const d=!r.isExportEquals&&!(r.flags&16777216)&&z.verbatimModuleSyntax&&(R===1||bn(r).impliedNodeFormat===1);if(r.expression.kind===80){const g=r.expression,x=V0(ou(g,67108863,!0,!0,r));x?(xW(x,g),rd(x)&111551?(n_(g),!d&&!(r.flags&16777216)&&z.verbatimModuleSyntax&&Yf(x,111551)&&qe(g,r.isExportEquals?p.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:p.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,ri(g))):!d&&!(r.flags&16777216)&&z.verbatimModuleSyntax&&qe(g,r.isExportEquals?p.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:p.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,ri(g))):n_(g),ag(z)&&wy(g,!0)}else n_(r.expression);d&&qe(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),gCe(c),r.flags&16777216&&!ju(r.expression)&&Rr(r.expression,p.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&(R>=5&&(r.flags&16777216&&bn(r).impliedNodeFormat===99||!(r.flags&16777216)&&bn(r).impliedNodeFormat!==1)?Rr(r,p.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):R===4&&!(r.flags&16777216)&&Rr(r,p.Export_assignment_is_not_supported_when_module_flag_is_system))}function Xnt(r){return Zd(r.exports,(a,c)=>c!=="export=")}function gCe(r){const a=ei(r),c=Pa(a);if(!c.exportsChecked){const u=a.exports.get("export=");if(u&&Xnt(a)){const g=sm(u)||u.valueDeclaration;g&&!Xb(g)&&!jn(g)&&qe(g,p.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const d=Ih(a);d&&d.forEach(({declarations:g,flags:x},P)=>{if(P==="__export"||x&1920)return;const L=ef(g,Mx(Qme,H1(Lp)));if(!(x&524288&&L<=2)&&L>1&&!tq(g))for(const X of g)Xme(X)&&yc.add(ai(X,p.Cannot_redeclare_exported_variable_0,Ba(P)))}),c.exportsChecked=!0}}function tq(r){return r&&r.length>1&&r.every(a=>jn(a)&&$l(a)&&(l7(a.expression)||ny(a.expression)))}function Bo(r){if(r){const a=N;N=r,k=0,Znt(r),N=a}}function Znt(r){aN(r)&&Vt(r.jsDoc,({comment:c,tags:u})=>{hCe(c),Vt(u,d=>{hCe(d.comment),jn(r)&&Bo(d)})});const a=r.kind;if(i)switch(a){case 266:case 262:case 263:case 261:i.throwIfCancellationRequested()}switch(a>=242&&a<=258&&iN(r)&&r.flowNode&&!wM(r.flowNode)&&vy(z.allowUnreachableCode===!1,r,p.Unreachable_code_detected),a){case 167:return bke(r);case 168:return xke(r);case 171:return kke(r);case 170:return Mtt(r);case 184:case 183:case 178:case 179:case 180:return ZA(r);case 173:case 172:return Ltt(r);case 174:return Ftt(r);case 175:return Rtt(r);case 176:case 177:return wke(r);case 182:return Uoe(r);case 181:return Ntt(r);case 185:return Vtt(r);case 186:return Wtt(r);case 187:return qtt(r);case 188:return $tt(r);case 191:case 192:return Htt(r);case 195:case 189:case 190:return Bo(r.type);case 196:return Ytt(r);case 197:return Qtt(r);case 193:return Ktt(r);case 194:return ert(r);case 202:return trt(r);case 204:return rrt(r);case 201:return nrt(r);case 334:return xrt(r);case 335:return brt(r);case 352:case 344:case 346:return frt(r);case 351:return prt(r);case 350:return drt(r);case 330:case 331:case 332:return grt(r);case 347:return hrt(r);case 354:return yrt(r);case 323:vrt(r);case 321:case 320:case 318:case 319:case 328:yCe(r),js(r,Bo);return;case 324:Ynt(r);return;case 315:return Bo(r.type);case 339:case 341:case 340:return Trt(r);case 356:return mrt(r);case 198:return Gtt(r);case 199:return Xtt(r);case 261:return _rt(r);case 240:case 267:return XW(r);case 242:return jrt(r);case 243:return zrt(r);case 244:return Jrt(r);case 245:return Wrt(r);case 246:return qrt(r);case 247:return $rt(r);case 248:return Grt(r);case 249:return Hrt(r);case 250:case 251:return rnt(r);case 252:return nnt(r);case 253:return int(r);case 254:return ant(r);case 255:return snt(r);case 256:return ont(r);case 257:return cnt(r);case 259:return Hoe(r);case 207:return Brt(r);case 262:return gnt(r);case 263:return wnt(r);case 264:return Ent(r);case 265:return Int(r);case 266:return Fnt(r);case 271:return Bnt(r);case 270:return jnt(r);case 277:return znt(r);case 276:return Gnt(r);case 241:case 258:Fy(r);return;case 281:return jtt(r)}}function hCe(r){ns(r)&&Vt(r,a=>{eS(a)&&Bo(a)})}function yCe(r){if(!jn(r))if(VR(r)||Pk(r)){const a=Uo(VR(r)?54:58),c=r.postfix?p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,u=r.type,d=Qi(u);Rr(r,c,a,Rt(Pk(r)&&!(d===Ft||d===st)?Oi(Ht([d,Ne],r.postfix?void 0:Yn)):d))}else Rr(r,p.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Ynt(r){yCe(r),Bo(r.type);const{parent:a}=r;if(Cs(a)&&Ok(a.parent)){fi(a.parent.parameters)!==a&&qe(r,p.A_rest_parameter_must_be_last_in_a_parameter_list);return}E7(a)||qe(r,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=r.parent.parent;if(!Jg(c)){qe(r,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const u=sN(c);if(!u)return;const d=N4(c);(!d||fi(d.parameters).symbol!==u)&&qe(r,p.A_rest_parameter_must_be_last_in_a_parameter_list)}function Qnt(r){const a=Qi(r.type),{parent:c}=r,u=r.parent.parent;if(E7(r.parent)&&Jg(u)){const d=N4(u),g=UG(u.parent.parent);if(d||g){const x=io(g?u.parent.parent.typeExpression.parameters:d.parameters),P=sN(u);if(!x||P&&x.symbol===P&&ty(x))return ep(a)}}return Cs(c)&&Ok(c.parent)?ep(a):Oo(a)}function Y8(r){const a=bn(r),c=Ei(a);c.flags&1?D.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(r))}function Knt(r){const a=Ei(r);a.deferredNodes&&a.deferredNodes.forEach(eit),a.deferredNodes=void 0}function eit(r){var a,c;(a=Hi)==null||a.push(Hi.Phase.Check,"checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});const u=N;switch(N=r,k=0,r.kind){case 212:case 213:case 214:case 169:case 285:H8(r);break;case 217:case 218:case 173:case 172:Get(r);break;case 176:case 177:wke(r);break;case 230:mnt(r);break;case 167:Dtt(r);break;case 284:nKe(r);break;case 283:aKe(r);break;case 215:case 233:case 216:bet(r)}N=u,(c=Hi)==null||c.pop()}function tit(r){var a,c;(a=Hi)==null||a.push(Hi.Phase.Check,"checkSourceFile",{path:r.path},!0),Kc("beforeCheck"),rit(r),Kc("afterCheck"),I_("Check","beforeCheck","afterCheck"),(c=Hi)==null||c.pop()}function vCe(r,a){if(a)return!1;switch(r){case 0:return!!z.noUnusedLocals;case 1:return!!z.noUnusedParameters;default:return D.assertNever(r)}}function bCe(r){return Gg.get(r.path)||tt}function rit(r){const a=Ei(r);if(!(a.flags&1)){if(y9(r,z,e))return;Aat(r),vu(U3),vu(Mb),vu(Lb),vu(Fb),vu(aT),Vt(r.statements,Bo),Bo(r.endOfFileToken),Knt(r),bm(r)&&q2(r),n(()=>{!r.isDeclarationFile&&(z.noUnusedLocals||z.noUnusedParameters)&&Bke(bCe(r),(c,u,d)=>{!z5(c)&&vCe(u,!!(c.flags&16777216))&&yc.add(d)}),r.isDeclarationFile||wrt()}),z.importsNotUsedAsValues===2&&!r.isDeclarationFile&&c_(r)&&$nt(r),bm(r)&&gCe(r),U3.length&&(Vt(U3,Drt),vu(U3)),Mb.length&&(Vt(Mb,Nrt),vu(Mb)),Lb.length&&(Vt(Lb,Mrt),vu(Lb)),Fb.length&&(Vt(Fb,Frt),vu(Fb)),a.flags|=1}}function xCe(r,a){try{return i=a,nit(r)}finally{i=void 0}}function sce(){for(const r of t)r();t=[]}function oce(r){sce();const a=n;n=c=>c(),tit(r),n=a}function nit(r){if(r){sce();const a=yc.getGlobalDiagnostics(),c=a.length;oce(r);const u=yc.getDiagnostics(r.fileName),d=yc.getGlobalDiagnostics();if(d!==a){const g=Ai(a,d,p9);return Nn(g,u)}else if(c===0&&d.length>0)return Nn(d,u);return u}return Vt(e.getSourceFiles(),oce),yc.getDiagnostics()}function iit(){return sce(),yc.getGlobalDiagnostics()}function ait(r,a){if(r.flags&33554432)return[];const c=To();let u=!1;return d(),c.delete("this"),mae(c);function d(){for(;r;){switch(nh(r)&&r.locals&&!im(r)&&x(r.locals,a),r.kind){case 311:if(!c_(r))break;case 266:P(ei(r).exports,a&2623475);break;case 265:x(ei(r).exports,a&8);break;case 230:r.name&&g(r.symbol,a);case 262:case 263:u||x(P2(ei(r)),a&788968);break;case 217:r.name&&g(r.symbol,a);break}_ue(r)&&g(wt,a),u=so(r),r=r.parent}x(je,a)}function g(L,X){if(l9(L)&X){const Z=L.escapedName;c.has(Z)||c.set(Z,L)}}function x(L,X){X&&L.forEach(Z=>{g(Z,X)})}function P(L,X){X&&L.forEach(Z=>{!wu(Z,280)&&!wu(Z,279)&&g(Z,X)})}}function sit(r){return r.kind===80&&yk(r.parent)&&Es(r.parent)===r}function TCe(r){for(;r.parent.kind===165;)r=r.parent;return r.parent.kind===182}function oit(r){for(;r.parent.kind===210;)r=r.parent;return r.parent.kind===232}function SCe(r,a){let c,u=Z_(r);for(;u&&!(c=a(u));)u=Z_(u);return c}function cit(r){return!!Sn(r,a=>Uu(a)&&I0(a.body)||fo(a)?!0:Yi(a)||Jl(a)?"quit":!1)}function cce(r,a){return!!SCe(r,c=>c===a)}function lit(r){for(;r.parent.kind===165;)r=r.parent;if(r.parent.kind===270)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===276)return r.parent.expression===r?r.parent:void 0}function rq(r){return lit(r)!==void 0}function uit(r){switch(Au(r.parent.parent)){case 1:case 3:return Im(r.parent);case 4:case 2:case 5:return ei(r.parent.parent)}}function _it(r){let a=r.parent;for(;Od(a);)r=a,a=a.parent;if(a&&a.kind===204&&a.qualifier===r)return a}function fit(r){if(r.expression.kind===110){const a=_d(r,!1,!1);if(Qs(a)){const c=B8e(a);if(c){const u=f4(c,void 0),d=u&&z8e(u);return d&&!Fc(d)}}}}function kCe(r){if(Gy(r))return Im(r.parent);if(jn(r)&&r.parent.kind===210&&r.parent===r.parent.parent.left&&!Ea(r)&&!z4(r)&&!fit(r.parent)){const a=uit(r);if(a)return a}if(r.parent.kind===276&&ju(r)){const a=ou(r,2998271,!0);if(a&&a!==Kr)return a}else if(hm(r)&&rq(r)){const a=I4(r,270);return D.assert(a!==void 0),tx(r,!0)}if(hm(r)){const a=_it(r);if(a){Qi(a);const c=Ei(r).resolvedSymbol;return c===Kr?void 0:c}}for(;l_e(r);)r=r.parent;if(oit(r)){let a=0;r.parent.kind===232?(a=ry(r)?788968:111551,TN(r.parent)&&(a|=111551)):a=1920,a|=2097152;const c=ju(r)?ou(r,a,!0):void 0;if(c)return c}if(r.parent.kind===347)return sN(r.parent);if(r.parent.kind===167&&r.parent.parent.kind===351){D.assert(!jn(r));const a=Due(r.parent);return a&&a.symbol}if($y(r)){if(Eu(r))return;const a=Sn(r,Mf(eS,q9,z4)),c=a?901119:111551;if(r.kind===80){if(X5(r)&&OT(r)){const d=AW(r.parent);return d===Kr?void 0:d}const u=ou(r,c,!0,!0,N4(r));if(!u&&a){const d=Sn(r,Mf(Yi,Lp));if(d)return iL(r,!0,ei(d))}if(u&&a){const d=lS(r);if(d&&C3(d)&&d===u.valueDeclaration)return ou(r,c,!0,!0,bn(d))||u}return u}else{if(Ea(r))return IW(r);if(r.kind===210||r.kind===165){const u=Ei(r);if(u.resolvedSymbol)return u.resolvedSymbol;if(r.kind===210){if(soe(r,0),!u.resolvedSymbol){const d=n_(r.expression),g=dae(d,wv(r.name));if(g.length&&d.members){const P=bg(d).members.get("__index");if(g===bp(d))u.resolvedSymbol=P;else if(P){const L=Pa(P),X=Mr(g,Te=>Te.declaration),Z=er(X,Nc).join(",");if(L.filteredIndexSymbolCache||(L.filteredIndexSymbolCache=new Map),L.filteredIndexSymbolCache.has(Z))u.resolvedSymbol=L.filteredIndexSymbolCache.get(Z);else{const Te=vc(131072,"__index");Te.declarations=Mr(g,Ee=>Ee.declaration),Te.parent=d.aliasSymbol?d.aliasSymbol:d.symbol?d.symbol:H0(Te.declarations[0].parent),L.filteredIndexSymbolCache.set(Z,Te),u.resolvedSymbol=L.filteredIndexSymbolCache.get(Z)}}}}}else p5e(r,0);return!u.resolvedSymbol&&a&&Od(r)?iL(r):u.resolvedSymbol}else if(z4(r))return iL(r)}}else if(TCe(r)){const a=r.parent.kind===182?788968:1920,c=ou(r,a,!1,!0);return c&&c!==Kr?c:IV(r)}if(r.parent.kind===181)return ou(r,1)}function iL(r,a,c){if(hm(r)){let x=ou(r,901119,a,!0,N4(r));if(!x&&Be(r)&&c&&(x=Ec(pf(Nm(c),r.escapedText,901119))),x)return x}const u=Be(r)?c:iL(r.left,a,c),d=Be(r)?r.escapedText:r.right.escapedText;if(u){const g=u.flags&111551&&So(An(u),"prototype"),x=g?An(g):hl(u);return So(x,d)}}function H0(r,a){if(Ja(r))return c_(r)?Ec(r.symbol):void 0;const{parent:c}=r,u=c.parent;if(!(r.flags&33554432)){if(Zme(r)){const d=ei(c);return YT(r.parent)&&r.parent.propertyName===r?Yse(d):d}else if(lN(r))return ei(c.parent);if(r.kind===80){if(rq(r))return kCe(r);if(c.kind===207&&u.kind===205&&r===c.propertyName){const d=LT(u),g=So(d,r.escapedText);if(g)return g}else if(j9(c)&&c.name===r)return c.keywordToken===105&&ri(r)==="target"?woe(c).symbol:c.keywordToken===102&&ri(r)==="meta"?LTe().members.get("meta"):void 0}switch(r.kind){case 80:case 81:case 210:case 165:if(!pS(r))return kCe(r);case 110:const d=_d(r,!1,!1);if(Qs(d)){const P=i1(d);if(P.thisParameter)return P.thisParameter}if(sF(r))return as(r).symbol;case 196:return JV(r).symbol;case 108:return as(r).symbol;case 137:const g=r.parent;return g&&g.kind===175?g.parent.symbol:void 0;case 11:case 15:if(A4(r.parent.parent)&&qw(r.parent.parent)===r||(r.parent.kind===271||r.parent.kind===277)&&r.parent.moduleSpecifier===r||jn(r)&&Ju(z)!==100&&Nd(r.parent,!1)||xm(r.parent)||R4(r.parent)&&E4(r.parent.parent)&&r.parent.parent.argument===r.parent)return z_(r,r,a);if(go(c)&&iS(c)&&c.arguments[1]===r)return ei(c);case 9:const x=Ll(c)?c.argumentExpression===r?Sp(c.expression):void 0:R4(c)&&IS(u)?Qi(u.objectType):void 0;return x&&So(x,Kl(r.text));case 90:case 100:case 39:case 86:return Im(r.parent);case 204:return E4(r)?H0(r.argument.literal,a):void 0;case 95:return Wu(r.parent)?D.checkDefined(r.parent.symbol):void 0;case 102:case 105:return j9(r.parent)?X5e(r.parent).symbol:void 0;case 235:return as(r).symbol;case 294:if(X5(r)&&OT(r)){const P=AW(r.parent);return P===Kr?void 0:P}default:return}}}function pit(r){if(Be(r)&&mi(r.parent)&&r.parent.name===r){const a=wv(r),c=Sp(r.parent.expression),u=c.flags&1048576?c.types:[c];return lo(u,d=>Mn(bp(d),g=>L8(a,g.keyType)))}}function dit(r){if(r&&r.kind===303)return ou(r.name,2208703)}function mit(r){return dd(r)?r.parent.parent.moduleSpecifier?i6(r.parent.parent,r):ou(r.propertyName||r.name,2998271):ou(r,2998271)}function LT(r){if(Ja(r)&&!c_(r)||r.flags&33554432)return Y;const a=_H(r),c=a&&Bp(ei(a.class));if(ry(r)){const u=Qi(r);return c?cm(u,c.thisType):u}if($y(r))return CCe(r);if(c&&!a.isImplements){const u=Ji(vs(c));return u?cm(u,c.thisType):Y}if(yk(r)){const u=ei(r);return hl(u)}if(sit(r)){const u=H0(r);return u?hl(u):Y}if(Cc(r))return Kf(r,!0,0)||Y;if(cp(r)){const u=ei(r);return u?An(u):Y}if(Zme(r)){const u=H0(r);return u?An(u):Y}if(_o(r))return Kf(r.parent,!0,0)||Y;if(rq(r)){const u=H0(r);if(u){const d=hl(u);return Ac(d)?An(u):d}}return j9(r.parent)&&r.parent.keywordToken===r.kind?X5e(r.parent):Y}function nq(r){if(D.assert(r.kind===209||r.kind===208),r.parent.kind===249){const d=eL(r.parent);return wx(r,d||Y)}if(r.parent.kind===225){const d=Sp(r.parent.right);return wx(r,d||Y)}if(r.parent.kind===302){const d=Ws(r.parent.parent,Dc),g=nq(d)||Y,x=J5(d.properties,r.parent);return uke(d,g,x)}const a=Ws(r.parent,Op),c=nq(a)||Y,u=Pv(65,c,Ne,r.parent)||Y;return _ke(a,c,a.elements.indexOf(r),u)}function git(r){const a=nq(Ws(r.parent.parent,Lw));return a&&So(a,r.escapedText)}function CCe(r){return a9(r)&&(r=r.parent),jp(Sp(r))}function wCe(r){const a=Im(r.parent);return so(r)?An(a):hl(a)}function ECe(r){const a=r.name;switch(a.kind){case 80:return Wd(ri(a));case 9:case 11:return Wd(a.text);case 166:const c=Rh(a);return df(c,12288)?c:w;default:return D.fail("Unsupported property name.")}}function lce(r){r=ad(r);const a=To(Pc(r)),c=ro(r,0).length?Lc:ro(r,1).length?Yp:void 0;return c&&Vt(Pc(c),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),p6(a)}function iq(r){return ro(r,0).length!==0||ro(r,1).length!==0}function ACe(r){const a=hit(r);return a?lo(a,ACe):[r]}function hit(r){if(Du(r)&6)return Mr(Pa(r).containingType.types,a=>So(a,r.escapedName));if(r.flags&33554432){const{links:{leftSpread:a,rightSpread:c,syntheticOrigin:u}}=r;return a?[a,c]:u?[u]:pa(yit(r))}}function yit(r){let a,c=r;for(;c=Pa(c).target;)a=c;return a}function vit(r){if(uu(r))return!1;const a=gs(r,Be);if(!a)return!1;const c=a.parent;return c?!((mi(c)||Y_(c))&&c.name===a)&&aD(a)===wt:!1}function bit(r){let a=z_(r.parent,r);if(!a||zw(a))return!0;const c=Sy(a);a=om(a);const u=Pa(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=c?!!(a.flags&111551):Zd(Ih(a),d)),u.exportsSomeValue;function d(g){return g=nu(g),g&&!!(rd(g)&111551)}}function xit(r){return IL(r.parent)&&r===r.parent.name}function Tit(r,a){var c;const u=gs(r,Be);if(u){let d=aD(u,xit(u));if(d){if(d.flags&1048576){const x=Ec(d.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;d=x}const g=vd(d);if(g){if(g.flags&512&&((c=g.valueDeclaration)==null?void 0:c.kind)===311){const x=g.valueDeclaration,P=bn(u);return x!==P?void 0:x}return Sn(u.parent,x=>IL(x)&&ei(x)===g)}}}}function Sit(r){const a=Lfe(r);if(a)return a;const c=gs(r,Be);if(c){const u=Fit(c);if(v2(u,111551)&&!Yf(u,111551))return sm(u)}}function kit(r){return r.valueDeclaration&&Cc(r.valueDeclaration)&&A5(r.valueDeclaration).parent.kind===298}function DCe(r){if(r.flags&418&&r.valueDeclaration&&!Ja(r.valueDeclaration)){const a=Pa(r);if(a.isDeclarationWithCollidingName===void 0){const c=sh(r.valueDeclaration);if(Vle(c)||kit(r)){const u=Ei(r.valueDeclaration);if(hu(c.parent,r.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){const d=u.flags&32768,g=ob(c,!1),x=c.kind===240&&ob(c.parent,!1);a.isDeclarationWithCollidingName=!Kle(c)&&(!d||!g&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function Cit(r){if(!uu(r)){const a=gs(r,Be);if(a){const c=aD(a);if(c&&DCe(c))return c.valueDeclaration}}}function wit(r){const a=gs(r,cp);if(a){const c=ei(a);if(c)return DCe(c)}return!1}function NCe(r){switch(D.assert(Qe),r.kind){case 270:return aq(ei(r));case 272:case 273:case 275:case 280:const a=ei(r);return!!a&&aq(a)&&!Yf(a,111551);case 277:const c=r.exportClause;return!!c&&(_y(c)||bt(c.elements,NCe));case 276:return r.expression&&r.expression.kind===80?aq(ei(r)):!0}return!1}function Eit(r){const a=gs(r,Hf);return a===void 0||a.parent.kind!==311||!Z5(a)?!1:aq(ei(a))&&a.moduleReference&&!Eu(a.moduleReference)}function aq(r){var c;if(!r)return!1;const a=V0(Rf(r));return a===Kr?!0:!!(((c=rd(a))!=null?c:-1)&111551)&&(h7(z)||!iD(a))}function iD(r){return Moe(r)||!!r.constEnumOnlyModule}function sq(r,a){if(D.assert(Qe),n6(r)){const c=ei(r),u=c&&Pa(c);if(u!=null&&u.referenced)return!0;const d=Pa(c).aliasTarget;if(d&&Pp(r)&1&&rd(d)&111551&&(h7(z)||!iD(d)))return!0}return a?!!js(r,c=>sq(c,a)):!1}function ICe(r){if(I0(r.body)){if(cb(r)||$v(r))return!1;const a=ei(r),c=x6(a);return c.length>1||c.length===1&&c[0].declaration!==r}return!1}function PCe(r){return!!$&&!vA(r)&&!Jg(r)&&!!r.initializer&&!Pi(r,16476)}function Ait(r){return $&&vA(r)&&!r.initializer&&Pi(r,16476)}function Dit(r){const a=gs(r,B_);if(!a)return!1;const c=ei(a);return!c||!(c.flags&16)?!1:!!Zd(Nm(c),u=>u.flags&111551&&u.valueDeclaration&&mi(u.valueDeclaration))}function Nit(r){const a=gs(r,B_);if(!a)return tt;const c=ei(a);return c&&Pc(An(c))||tt}function Q8(r){var a;const c=r.id||0;return c<0||c>=Z4.length?0:((a=Z4[c])==null?void 0:a.flags)||0}function oq(r){return pCe(r.parent),Ei(r).enumMemberValue}function OCe(r){switch(r.kind){case 305:case 210:case 211:return!0}return!1}function uce(r){if(r.kind===305)return oq(r);const a=Ei(r).resolvedSymbol;if(a&&a.flags&8){const c=a.valueDeclaration;if(n3(c.parent))return oq(c)}}function _ce(r){return!!(r.flags&524288)&&ro(r,0).length>0}function Iit(r,a){var c;const u=gs(r,hm);if(!u||a&&(a=gs(a),!a))return 0;let d=!1;if(Od(u)){const X=ou(Tm(u),111551,!0,!0,a);d=!!((c=X==null?void 0:X.declarations)!=null&&c.every(Q6))}const g=ou(u,111551,!0,!0,a),x=g&&g.flags&2097152?Rf(g):g;d||(d=!!(g&&Yf(g,111551)));const P=ou(u,788968,!0,!1,a);if(x&&x===P){const X=Aae(!1);if(X&&x===X)return 9;const Z=An(x);if(Z&&HO(Z))return d?10:1}if(!P)return d?11:0;const L=hl(P);return Ac(L)?d?11:0:L.flags&3?11:df(L,245760)?2:df(L,528)?6:df(L,296)?3:df(L,2112)?4:df(L,402653316)?5:Yo(L)?7:df(L,12288)?8:_ce(L)?10:Ym(L)?7:11}function Pit(r,a,c,u,d){const g=gs(r,cue);if(!g)return M.createToken(133);const x=ei(g);let P=x&&!(x.flags&133120)?N6(An(x)):Y;return P.flags&8192&&P.symbol===x&&(c|=1048576),d&&(P=Dv(P)),He.typeToTypeNode(P,a,c|1024,u)}function Oit(r,a,c,u){const d=gs(r,Qs);if(!d)return M.createToken(133);const g=i1(d);return He.typeToTypeNode(Oc(g),a,c|1024,u)}function Mit(r,a,c,u){const d=gs(r,ht);if(!d)return M.createToken(133);const g=lm(CCe(d));return He.typeToTypeNode(g,a,c|1024,u)}function Lit(r){return je.has(Kl(r))}function aD(r,a){const c=Ei(r).resolvedSymbol;if(c)return c;let u=r;if(a){const d=r.parent;cp(d)&&r===d.name&&(u=_x(d))}return hu(u,r.escapedText,3257279,void 0,void 0,!0)}function Fit(r){const a=Ei(r).resolvedSymbol;return a&&a!==Kr?a:hu(r,r.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Rit(r){if(!uu(r)){const a=gs(r,Be);if(a){const c=aD(a);if(c)return V0(c).valueDeclaration}}}function Bit(r){if(!uu(r)){const a=gs(r,Be);if(a){const c=aD(a);if(c)return Mn(V0(c).declarations,u=>{switch(u.kind){case 259:case 168:case 207:case 171:case 302:case 303:case 305:case 209:case 261:case 217:case 218:case 262:case 230:case 265:case 173:case 176:case 177:case 266:return!0}return!1})}}}function jit(r){return HL(r)||Fa(r)&&qy(r)?w6(An(ei(r))):!1}function zit(r,a,c){const u=r.flags&1056?He.symbolToExpression(r.symbol,111551,a,void 0,c):r===pe?M.createTrue():r===ue&&M.createFalse();if(u)return u;const d=r.value;return typeof d=="object"?M.createBigIntLiteral(d):typeof d=="number"?M.createNumericLiteral(d):M.createStringLiteral(d)}function Jit(r,a){const c=An(ei(r));return zit(c,r,a)}function MCe(r){return r?(Q4(r),bn(r).localJsxFactory||hy):hy}function fce(r){if(r){const a=bn(r);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const c=a.pragmas.get("jsxfrag"),u=ns(c)?c[0]:c;if(u)return a.localJsxFragmentFactory=JS(u.arguments.factory,ce),a.localJsxFragmentFactory}}if(z.jsxFragmentFactory)return JS(z.jsxFragmentFactory,ce)}function Uit(){const r=e.getResolvedTypeReferenceDirectives();let a;return r&&(a=new Map,r.forEach(({resolvedTypeReferenceDirective:L},X,Z)=>{if(!(L!=null&&L.resolvedFileName))return;const Te=e.getSourceFile(L.resolvedFileName);Te&&P(Te,X,Z)})),{getReferencedExportContainer:Tit,getReferencedImportDeclaration:Sit,getReferencedDeclarationWithCollidingName:Cit,isDeclarationWithCollidingName:wit,isValueAliasDeclaration:L=>{const X=gs(L);return X&&Qe?NCe(X):!0},hasGlobalName:Lit,isReferencedAliasDeclaration:(L,X)=>{const Z=gs(L);return Z&&Qe?sq(Z,X):!0},getNodeCheckFlags:L=>{const X=gs(L);return X?Q8(X):0},isTopLevelValueImportEqualsWithEntityName:Eit,isDeclarationVisible:y0,isImplementationOfOverload:ICe,isRequiredInitializedParameter:PCe,isOptionalUninitializedParameterProperty:Ait,isExpandoFunctionDeclaration:Dit,getPropertiesOfContainerFunction:Nit,createTypeOfDeclaration:Pit,createReturnTypeOfSignatureDeclaration:Oit,createTypeOfExpression:Mit,createLiteralConstValue:Jit,isSymbolAccessible:e1,isEntityNameVisible:ie,getConstantValue:L=>{const X=gs(L,OCe);return X?uce(X):void 0},collectLinkedAliases:wy,getReferencedValueDeclaration:Rit,getReferencedValueDeclarations:Bit,getTypeReferenceSerializationKind:Iit,isOptionalParameter:vA,moduleExportsSomeValue:bit,isArgumentsLocalBinding:vit,getExternalModuleFileFromDeclaration:L=>{const X=gs(L,tue);return X&&pce(X)},getTypeReferenceDirectivesForEntityName:d,getTypeReferenceDirectivesForSymbol:g,isLiteralConstDeclaration:jit,isLateBound:L=>{const X=gs(L,cp),Z=X&&ei(X);return!!(Z&&Du(Z)&4096)},getJsxFactoryEntity:MCe,getJsxFragmentFactoryEntity:fce,getAllAccessorDeclarations(L){L=gs(L,bL);const X=L.kind===177?176:177,Z=wu(ei(L),X),Te=Z&&Z.pospv(L,L,void 0),isBindingCapturedByNode:(L,X)=>{const Z=gs(L),Te=gs(X);return!!Z&&!!Te&&(Fa(Te)||Cc(Te))&&mQe(Z,Te)},getDeclarationStatementsForSourceFile:(L,X,Z,Te)=>{const Ee=gs(L);D.assert(Ee&&Ee.kind===311,"Non-sourcefile node passed into getDeclarationsForSourceFile");const De=ei(L);return De?De.exports?He.symbolTableToDeclarationStatements(De.exports,L,X,Z,Te):[]:L.locals?He.symbolTableToDeclarationStatements(L.locals,L,X,Z,Te):[]},isImportRequiredByAugmentation:c};function c(L){const X=bn(L);if(!X.symbol)return!1;const Z=pce(L);if(!Z||Z===X)return!1;const Te=Ih(X.symbol);for(const Ee of zt(Te.values()))if(Ee.mergeId){const De=Ec(Ee);if(De.declarations){for(const ut of De.declarations)if(bn(ut)===Z)return!0}}return!1}function u(L){return L.parent&&L.parent.kind===232&&L.parent.parent&&L.parent.parent.kind===297}function d(L){if(!a)return;let X;L.parent.kind===166?X=1160127:(X=790504,(L.kind===80&&zC(L)||L.kind===210&&!u(L))&&(X=1160127));const Z=ou(L,X,!0);return Z&&Z!==Kr?g(Z,X):void 0}function g(L,X){if(!a||!x(L))return;let Z;for(const Te of L.declarations)if(Te.symbol&&Te.symbol.flags&X){const Ee=bn(Te),De=a.get(Ee.path);if(De)(Z||(Z=[])).push(De);else return}return Z}function x(L){if(!L.declarations)return!1;let X=L;for(;;){const Z=vd(X);if(Z)X=Z;else break}if(X.valueDeclaration&&X.valueDeclaration.kind===311&&X.flags&512)return!1;for(const Z of L.declarations){const Te=bn(Z);if(a.has(Te.path))return!0}return!1}function P(L,X,Z){if(!a.has(L.path)){a.set(L.path,[X,Z]);for(const{fileName:Te,resolutionMode:Ee}of L.referencedFiles){const De=ij(Te,L.fileName),ut=e.getSourceFile(De);ut&&P(ut,X,Ee||L.impliedNodeFormat)}}}}function pce(r){const a=r.kind===266?di(r.name,sc):Q5(r),c=pv(a,a,void 0);if(c)return wu(c,311)}function Vit(){for(const a of e.getSourceFiles())Eme(a,z);La=new Map;let r;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!bm(a)){const c=a.locals.get("globalThis");if(c!=null&&c.declarations)for(const u of c.declarations)yc.add(ai(u,p.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));I1(je,a.locals)}a.jsGlobalAugmentations&&I1(je,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(Gc=Nn(Gc,a.patternAmbientModules)),a.moduleAugmentations.length&&(r||(r=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((u,d)=>{je.has(d)||je.set(d,u)})}if(r)for(const a of r)for(const c of a)x1(c.parent)&&lT(c);if(uT(je,sT,p.Declaration_name_conflicts_with_built_in_global_identifier_0),Pa(Pe).type=$t,Pa(wt).type=v_("IArguments",0,!0),Pa(Kr).type=Y,Pa(nt).type=Af(16,nt),su=v_("Array",1,!0),gu=v_("Object",0,!0),tl=v_("Function",0,!0),Lc=te&&v_("CallableFunction",0,!0)||tl,Yp=te&&v_("NewableFunction",0,!0)||tl,C_=v_("String",0,!0),Qp=v_("Number",0,!0),Ce=v_("Boolean",0,!0),Gt=v_("RegExp",0,!0),da=ep(it),Rs=ep(Wt),Rs===Ua&&(Rs=yu(void 0,V,tt,tt,tt)),ff=zTe("ReadonlyArray",1)||su,ne=ff?kA(ff,[it]):da,un=zTe("ThisType",1),r)for(const a of r)for(const c of a)x1(c.parent)||lT(c);La.forEach(({firstFile:a,secondFile:c,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:d,firstFileLocations:g,secondFileLocations:x},P)=>{const L=d?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0;for(const X of g)G3(X,L,P,x);for(const X of x)G3(X,L,P,g)});else{const d=zt(u.keys()).join(", ");yc.add(ic(ai(a,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,d),ai(c,p.Conflicts_are_in_this_file))),yc.add(ic(ai(c,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,d),ai(a,p.Conflicts_are_in_this_file)))}}),La=void 0}function A_(r,a){if((o&a)!==a&&z.importHelpers){const c=bn(r);if(rS(c,z)&&!(r.flags&16777216)){const u=qit(c,r);if(u!==Kr){const d=a&~o;for(let g=1;g<=16777216;g<<=1)if(d&g)for(const x of Wit(g)){if(s.has(x))continue;s.add(x);const P=nu(pf(Ih(u),Kl(x),111551));P?g&524288?bt(x6(P),L=>um(L)>3)||qe(r,p.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,hb,x,4):g&1048576?bt(x6(P),L=>um(L)>4)||qe(r,p.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,hb,x,5):g&1024&&(bt(x6(P),L=>um(L)>2)||qe(r,p.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,hb,x,3)):qe(r,p.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,hb,x)}}o|=a}}}function Wit(r){switch(r){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return le?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];default:return D.fail("Unrecognized helper")}}function qit(r,a){return l||(l=_6(r,hb,p.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||Kr),l}function jh(r){const a=Git(r)||$it(r);if(a!==void 0)return a;if(Cs(r)&&_3(r))return mf(r,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let c,u,d,g,x,P=0,L=!1,X=!1;for(const Z of r.modifiers)if(lp(Z)){if(aF(le,r,r.parent,r.parent.parent)){if(le&&(r.kind===176||r.kind===177)){const Te=d7(r.parent.members,r);if(o0(Te.firstAccessor)&&r===Te.secondAccessor)return mf(r,p.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===173&&!I0(r.body)?mf(r,p.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):mf(r,p.Decorators_are_not_valid_here);if(P&-132098)return Rr(Z,p.Decorators_are_not_valid_here);if(X&&P&126975){D.assertIsDefined(x);const Te=bn(Z);return R6(Te)?!1:(ic(qe(Z,p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),ai(x,p.Decorator_used_before_export_here)),!0)}P|=131072,P&126975?P&1&&(L=!0):X=!0,x!=null||(x=Z)}else{if(Z.kind!==148){if(r.kind===170||r.kind===172)return Rr(Z,p._0_modifier_cannot_appear_on_a_type_member,Uo(Z.kind));if(r.kind===180&&(Z.kind!==126||!Yi(r.parent)))return Rr(Z,p._0_modifier_cannot_appear_on_an_index_signature,Uo(Z.kind))}if(Z.kind!==103&&Z.kind!==147&&Z.kind!==87&&r.kind===167)return Rr(Z,p._0_modifier_cannot_appear_on_a_type_parameter,Uo(Z.kind));switch(Z.kind){case 87:if(r.kind!==265&&r.kind!==167)return Rr(r,p.A_class_member_cannot_have_the_0_keyword,Uo(87));const Te=r.parent;if(r.kind===167&&!(Jl(Te)||Yi(Te)||uy(Te)||L9(Te)||Ck(Te)||iI(Te)||ly(Te)))return Rr(Z,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Uo(Z.kind));break;case 163:if(P&16384)return Rr(Z,p._0_modifier_already_seen,"override");if(P&2)return Rr(Z,p._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(P&64)return Rr(Z,p._0_modifier_must_precede_1_modifier,"override","readonly");if(P&128)return Rr(Z,p._0_modifier_must_precede_1_modifier,"override","accessor");if(P&512)return Rr(Z,p._0_modifier_must_precede_1_modifier,"override","async");P|=16384,g=Z;break;case 125:case 124:case 123:const Ee=id(mS(Z.kind));if(P&28)return Rr(Z,p.Accessibility_modifier_already_seen);if(P&16384)return Rr(Z,p._0_modifier_must_precede_1_modifier,Ee,"override");if(P&32)return Rr(Z,p._0_modifier_must_precede_1_modifier,Ee,"static");if(P&128)return Rr(Z,p._0_modifier_must_precede_1_modifier,Ee,"accessor");if(P&64)return Rr(Z,p._0_modifier_must_precede_1_modifier,Ee,"readonly");if(P&512)return Rr(Z,p._0_modifier_must_precede_1_modifier,Ee,"async");if(r.parent.kind===267||r.parent.kind===311)return Rr(Z,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ee);if(P&256)return Z.kind===123?Rr(Z,p._0_modifier_cannot_be_used_with_1_modifier,Ee,"abstract"):Rr(Z,p._0_modifier_must_precede_1_modifier,Ee,"abstract");if(qp(r))return Rr(Z,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);P|=mS(Z.kind);break;case 126:if(P&32)return Rr(Z,p._0_modifier_already_seen,"static");if(P&64)return Rr(Z,p._0_modifier_must_precede_1_modifier,"static","readonly");if(P&512)return Rr(Z,p._0_modifier_must_precede_1_modifier,"static","async");if(P&128)return Rr(Z,p._0_modifier_must_precede_1_modifier,"static","accessor");if(r.parent.kind===267||r.parent.kind===311)return Rr(Z,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===168)return Rr(Z,p._0_modifier_cannot_appear_on_a_parameter,"static");if(P&256)return Rr(Z,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(P&16384)return Rr(Z,p._0_modifier_must_precede_1_modifier,"static","override");P|=32,c=Z;break;case 129:if(P&128)return Rr(Z,p._0_modifier_already_seen,"accessor");if(P&64)return Rr(Z,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(P&2)return Rr(Z,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(r.kind!==171)return Rr(Z,p.accessor_modifier_can_only_appear_on_a_property_declaration);P|=128;break;case 148:if(P&64)return Rr(Z,p._0_modifier_already_seen,"readonly");if(r.kind!==171&&r.kind!==170&&r.kind!==180&&r.kind!==168)return Rr(Z,p.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(P&128)return Rr(Z,p._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");P|=64;break;case 95:if(z.verbatimModuleSyntax&&!(r.flags&16777216)&&r.kind!==264&&r.kind!==263&&r.kind!==266&&r.parent.kind===311&&(R===1||bn(r).impliedNodeFormat===1))return Rr(Z,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(P&1)return Rr(Z,p._0_modifier_already_seen,"export");if(P&2)return Rr(Z,p._0_modifier_must_precede_1_modifier,"export","declare");if(P&256)return Rr(Z,p._0_modifier_must_precede_1_modifier,"export","abstract");if(P&512)return Rr(Z,p._0_modifier_must_precede_1_modifier,"export","async");if(Yi(r.parent))return Rr(Z,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===168)return Rr(Z,p._0_modifier_cannot_appear_on_a_parameter,"export");P|=1;break;case 90:const De=r.parent.kind===311?r.parent:r.parent.parent;if(De.kind===266&&!Np(De))return Rr(Z,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(P&1){if(L)return Rr(x,p.Decorators_are_not_valid_here)}else return Rr(Z,p._0_modifier_must_precede_1_modifier,"export","default");P|=1024;break;case 138:if(P&2)return Rr(Z,p._0_modifier_already_seen,"declare");if(P&512)return Rr(Z,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(P&16384)return Rr(Z,p._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Yi(r.parent)&&!fo(r))return Rr(Z,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===168)return Rr(Z,p._0_modifier_cannot_appear_on_a_parameter,"declare");if(r.parent.flags&16777216&&r.parent.kind===267)return Rr(Z,p.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(qp(r))return Rr(Z,p._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(P&128)return Rr(Z,p._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");P|=2,u=Z;break;case 128:if(P&256)return Rr(Z,p._0_modifier_already_seen,"abstract");if(r.kind!==262&&r.kind!==184){if(r.kind!==173&&r.kind!==171&&r.kind!==176&&r.kind!==177)return Rr(Z,p.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===262&&Pi(r.parent,256))){const Jr=r.kind===171?p.Abstract_properties_can_only_appear_within_an_abstract_class:p.Abstract_methods_can_only_appear_within_an_abstract_class;return Rr(Z,Jr)}if(P&32)return Rr(Z,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(P&8)return Rr(Z,p._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(P&512&&d)return Rr(d,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(P&16384)return Rr(Z,p._0_modifier_must_precede_1_modifier,"abstract","override");if(P&128)return Rr(Z,p._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(sp(r)&&r.name.kind===81)return Rr(Z,p._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");P|=256;break;case 134:if(P&512)return Rr(Z,p._0_modifier_already_seen,"async");if(P&2||r.parent.flags&16777216)return Rr(Z,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===168)return Rr(Z,p._0_modifier_cannot_appear_on_a_parameter,"async");if(P&256)return Rr(Z,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");P|=512,d=Z;break;case 103:case 147:const ut=Z.kind===103?32768:65536,jt=Z.kind===103?"in":"out";if(r.kind!==167||!(Lp(r.parent)||Yi(r.parent)||zg(r.parent)))return Rr(Z,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,jt);if(P&ut)return Rr(Z,p._0_modifier_already_seen,jt);if(ut&32768&&P&65536)return Rr(Z,p._0_modifier_must_precede_1_modifier,"in","out");P|=ut;break}}return r.kind===175?P&32?Rr(c,p._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):P&16384?Rr(g,p._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):P&512?Rr(d,p._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===271||r.kind===270)&&P&2?Rr(u,p.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===168&&P&16476&&_o(r.name)?Rr(r,p.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===168&&P&16476&&r.dotDotDotToken?Rr(r,p.A_parameter_property_cannot_be_declared_using_a_rest_parameter):P&512?Zit(r,d):!1}function $it(r){if(!r.modifiers)return!1;const a=Hit(r);return a&&mf(a,p.Modifiers_cannot_appear_here)}function dce(r,a){const c=on(r.modifiers,Do);return c&&c.kind!==a?c:void 0}function Hit(r){switch(r.kind){case 176:case 177:case 175:case 171:case 170:case 173:case 172:case 180:case 266:case 271:case 270:case 277:case 276:case 217:case 218:case 168:case 167:return;case 174:case 302:case 303:case 269:case 281:return on(r.modifiers,Do);default:if(r.parent.kind===267||r.parent.kind===311)return;switch(r.kind){case 261:return dce(r,134);case 262:case 184:return dce(r,128);case 230:case 263:case 242:case 264:return on(r.modifiers,Do);case 265:return dce(r,87);default:D.assertNever(r)}}}function Git(r){const a=Xit(r);return a&&mf(a,p.Decorators_are_not_valid_here)}function Xit(r){return aX(r)?on(r.modifiers,lp):void 0}function Zit(r,a){switch(r.kind){case 173:case 261:case 217:case 218:return!1}return Rr(a,p._0_modifier_cannot_be_used_here,"async")}function FT(r,a=p.Trailing_comma_not_allowed){return r&&r.hasTrailingComma?B6(r[0],r.end-1,1,a):!1}function LCe(r,a){if(r&&r.length===0){const c=r.pos-1,u=tc(a.text,r.end)+1;return B6(a,c,u-c,p.Type_parameter_list_cannot_be_empty)}return!1}function Yit(r){let a=!1;const c=r.length;for(let u=0;u!!a.initializer||_o(a.name)||ty(a))}function Kit(r){if(ce>=3){const a=r.body&&oo(r.body)&&tX(r.body.statements);if(a){const c=Qit(r.parameters);if(Nr(c)){Vt(c,d=>{ic(qe(d,p.This_parameter_is_not_allowed_with_use_strict_directive),ai(a,p.use_strict_directive_used_here))});const u=c.map((d,g)=>g===0?ai(d,p.Non_simple_parameter_declared_here):ai(d,p.and_here));return ic(qe(a,p.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...u),!0}}}return!1}function cq(r){const a=bn(r);return jh(r)||LCe(r.typeParameters,a)||Yit(r.parameters)||tat(r,a)||Jl(r)&&Kit(r)}function eat(r){const a=bn(r);return sat(r)||LCe(r.typeParameters,a)}function tat(r,a){if(!Fl(r))return!1;r.typeParameters&&!(Nr(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&a&&Zl(a.fileName,[".mts",".cts"])&&Rr(r.typeParameters[0],p.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:c}=r,u=Ql(a,c.pos).line,d=Ql(a,c.end).line;return u!==d&&Rr(c,p.Line_terminator_not_permitted_before_arrow)}function rat(r){const a=r.parameters[0];if(r.parameters.length!==1)return Rr(a?a.name:r,p.An_index_signature_must_have_exactly_one_parameter);if(FT(r.parameters,p.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return Rr(a.dotDotDotToken,p.An_index_signature_cannot_have_a_rest_parameter);if(EF(a))return Rr(a.name,p.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return Rr(a.questionToken,p.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return Rr(a.name,p.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return Rr(a.name,p.An_index_signature_parameter_must_have_a_type_annotation);const c=Qi(a.type);return Nv(c,u=>!!(u.flags&8576))||MC(c)?Rr(a.name,p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):$0(c,NV)?r.type?!1:Rr(r,p.An_index_signature_must_have_a_type_annotation):Rr(a.name,p.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function nat(r){return jh(r)||rat(r)}function iat(r,a){if(a&&a.length===0){const c=bn(r),u=a.pos-1,d=tc(c.text,a.end)+1;return B6(c,u,d-u,p.Type_argument_list_cannot_be_empty)}return!1}function aL(r,a){return FT(a)||iat(r,a)}function aat(r){return r.questionDotToken||r.flags&32?Rr(r.template,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function FCe(r){const a=r.types;if(FT(a))return!0;if(a&&a.length===0){const c=Uo(r.token);return B6(r,a.pos,0,p._0_list_cannot_be_empty,c)}return bt(a,RCe)}function RCe(r){return t2(r)&&M9(r.expression)&&r.typeArguments?Rr(r,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):aL(r,r.typeArguments)}function sat(r){let a=!1,c=!1;if(!jh(r)&&r.heritageClauses)for(const u of r.heritageClauses){if(u.token===96){if(a)return mf(u,p.extends_clause_already_seen);if(c)return mf(u,p.extends_clause_must_precede_implements_clause);if(u.types.length>1)return mf(u.types[1],p.Classes_can_only_extend_a_single_class);a=!0}else{if(D.assert(u.token===119),c)return mf(u,p.implements_clause_already_seen);c=!0}FCe(u)}}function oat(r){let a=!1;if(r.heritageClauses)for(const c of r.heritageClauses){if(c.token===96){if(a)return mf(c,p.extends_clause_already_seen);a=!0}else return D.assert(c.token===119),mf(c,p.Interface_declaration_cannot_have_implements_clause);FCe(c)}return!1}function lq(r){if(r.kind!==166)return!1;const a=r;return a.expression.kind===225&&a.expression.operatorToken.kind===28?Rr(a.expression,p.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function mce(r){if(r.asteriskToken){if(D.assert(r.kind===261||r.kind===217||r.kind===173),r.flags&16777216)return Rr(r.asteriskToken,p.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return Rr(r.asteriskToken,p.An_overload_signature_cannot_be_declared_as_a_generator)}}function gce(r,a){return!!r&&Rr(r,a)}function BCe(r,a){return!!r&&Rr(r,a)}function cat(r,a){const c=new Map;for(const u of r.properties){if(u.kind===304){if(a){const x=kl(u.expression);if(Op(x)||Dc(x))return Rr(u.expression,p.A_rest_element_cannot_contain_a_binding_pattern)}continue}const d=u.name;if(d.kind===166&&lq(d),u.kind===303&&!a&&u.objectAssignmentInitializer&&Rr(u.equalsToken,p.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),d.kind===81&&Rr(d,p.Private_identifiers_are_not_allowed_outside_class_bodies),lg(u)&&u.modifiers)for(const x of u.modifiers)Do(x)&&(x.kind!==134||u.kind!==173)&&Rr(x,p._0_modifier_cannot_be_used_here,F_(x));else if(Tpe(u)&&u.modifiers)for(const x of u.modifiers)Do(x)&&Rr(x,p._0_modifier_cannot_be_used_here,F_(x));let g;switch(u.kind){case 303:case 302:BCe(u.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context),gce(u.questionToken,p.An_object_member_cannot_be_declared_optional),d.kind===9&&vce(d),g=4;break;case 173:g=8;break;case 176:g=1;break;case 177:g=2;break;default:D.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){const x=jat(d);if(x===void 0)continue;const P=c.get(x);if(!P)c.set(x,g);else if(g&8&&P&8)Rr(d,p.Duplicate_identifier_0,F_(d));else if(g&4&&P&4)Rr(d,p.An_object_literal_cannot_have_multiple_properties_with_the_same_name,F_(d));else if(g&3&&P&3)if(P!==3&&g!==P)c.set(x,g|P);else return Rr(d,p.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Rr(d,p.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function lat(r){uat(r.tagName),aL(r,r.typeArguments);const a=new Map;for(const c of r.attributes.properties){if(c.kind===292)continue;const{name:u,initializer:d}=c,g=C9(u);if(!a.get(g))a.set(g,!0);else return Rr(u,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(d&&d.kind===293&&!d.expression)return Rr(d,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function uat(r){if(mi(r)&&A1(r.expression))return Rr(r.expression,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(A1(r)&&zF(z)&&!ok(r.namespace.escapedText))return Rr(r,p.React_components_cannot_include_JSX_namespace_names)}function _at(r){if(r.expression&&G9(r.expression))return Rr(r.expression,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function jCe(r){if(Fy(r))return!0;if(r.kind===249&&r.awaitModifier&&!(r.flags&32768)){const a=bn(r);if(rF(r)){if(!R6(a))switch(rS(a,z)||yc.add(ai(r.awaitModifier,p.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),R){case 100:case 199:if(a.impliedNodeFormat===1){yc.add(ai(r.awaitModifier,p.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ce>=4)break;default:yc.add(ai(r.awaitModifier,p.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!R6(a)){const c=ai(r.awaitModifier,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),u=Jm(r);if(u&&u.kind!==175){D.assert((vf(u)&2)===0,"Enclosing function should never be an async function.");const d=ai(u,p.Did_you_mean_to_mark_this_function_as_async);ic(c,d)}return yc.add(c),!0}return!1}if(oI(r)&&!(r.flags&32768)&&Be(r.initializer)&&r.initializer.escapedText==="async")return Rr(r.initializer,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===260){const a=r.initializer;if(!yce(a)){const c=a.declarations;if(!c.length)return!1;if(c.length>1){const d=r.kind===248?p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return mf(a.declarations[1],d)}const u=c[0];if(u.initializer){const d=r.kind===248?p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Rr(u.name,d)}if(u.type){const d=r.kind===248?p.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:p.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Rr(u,d)}}}return!1}function fat(r){if(!(r.flags&16777216)&&r.parent.kind!==186&&r.parent.kind!==263){if(ce<1)return Rr(r.name,p.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ce<2&&Ea(r.name))return Rr(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!Pi(r,256))return B6(r,r.end-1,1,p._0_expected,"{")}if(r.body){if(Pi(r,256))return Rr(r,p.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===186||r.parent.kind===263)return Rr(r.body,p.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return Rr(r.name,p.An_accessor_cannot_have_type_parameters);if(!pat(r))return Rr(r.name,r.kind===176?p.A_get_accessor_cannot_have_parameters:p.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===177){if(r.type)return Rr(r.name,p.A_set_accessor_cannot_have_a_return_type_annotation);const a=D.checkDefined(t9(r),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return Rr(a.dotDotDotToken,p.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return Rr(a.questionToken,p.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return Rr(r.name,p.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function pat(r){return hce(r)||r.parameters.length===(r.kind===176?0:1)}function hce(r){if(r.parameters.length===(r.kind===176?1:2))return u3(r)}function dat(r){if(r.operator===158){if(r.type.kind!==155)return Rr(r.type,p._0_expected,Uo(155));let a=oN(r.parent);if(jn(a)&&E7(a)){const c=lS(a);c&&(a=tk(c)||c)}switch(a.kind){case 259:const c=a;if(c.name.kind!==80)return Rr(r,p.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!YL(c))return Rr(r,p.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return Rr(a.name,p.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 171:if(!so(a)||!r9(a))return Rr(a.name,p.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 170:if(!Pi(a,64))return Rr(a.name,p.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Rr(r,p.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===148&&r.type.kind!==187&&r.type.kind!==188)return mf(r,p.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Uo(155))}function rw(r,a){if(JHe(r))return Rr(r,a)}function zCe(r){if(cq(r))return!0;if(r.kind===173){if(r.parent.kind===209){if(r.modifiers&&!(r.modifiers.length===1&&Fi(r.modifiers).kind===134))return mf(r,p.Modifiers_cannot_appear_here);if(gce(r.questionToken,p.An_object_member_cannot_be_declared_optional))return!0;if(BCe(r.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return B6(r,r.end-1,1,p._0_expected,"{")}if(mce(r))return!0}if(Yi(r.parent)){if(ce<2&&Ea(r.name))return Rr(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&16777216)return rw(r.name,p.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.kind===173&&!r.body)return rw(r.name,p.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(r.parent.kind===263)return rw(r.name,p.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.parent.kind===186)return rw(r.name,p.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function mat(r){let a=r;for(;a;){if(P5(a))return Rr(r,p.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 255:if(r.label&&a.label.escapedText===r.label.escapedText)return r.kind===250&&!ob(a.statement,!0)?Rr(r,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 254:if(r.kind===251&&!r.label)return!1;break;default:if(ob(a,!1)&&!r.label)return!1;break}a=a.parent}if(r.label){const c=r.kind===251?p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Rr(r,c)}else{const c=r.kind===251?p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Rr(r,c)}}function gat(r){if(r.dotDotDotToken){const a=r.parent.elements;if(r!==fi(a))return Rr(r,p.A_rest_element_must_be_last_in_a_destructuring_pattern);if(FT(a,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return Rr(r.name,p.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return B6(r,r.initializer.pos-1,1,p.A_rest_element_cannot_have_an_initializer)}function JCe(r){return a0(r)||r.kind===223&&r.operator===41&&r.operand.kind===9}function hat(r){return r.kind===10||r.kind===223&&r.operator===41&&r.operand.kind===10}function yat(r){if((mi(r)||Ll(r)&&JCe(r.argumentExpression))&&ju(r.expression))return!!(n_(r).flags&1056)}function UCe(r){const a=r.initializer;if(a){const c=!(JCe(a)||yat(a)||a.kind===112||a.kind===97||hat(a));if((HL(r)||Fa(r)&&qy(r))&&!r.type){if(c)return Rr(a,p.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Rr(a,p.Initializers_are_not_allowed_in_ambient_contexts)}}function vat(r){if(r.parent.parent.kind!==248&&r.parent.parent.kind!==249){if(r.flags&16777216)UCe(r);else if(!r.initializer){if(_o(r.name)&&!_o(r.parent))return Rr(r,p.A_destructuring_declaration_must_have_an_initializer);if(qy(r))return Rr(r,p.const_declarations_must_be_initialized)}}if(r.exclamationToken&&(r.parent.parent.kind!==242||!r.type||r.initializer||r.flags&16777216)){const c=r.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Rr(r.exclamationToken,c)}return(R<5||bn(r).impliedNodeFormat===1)&&R!==4&&!(r.parent.parent.flags&16777216)&&Pi(r.parent.parent,1)&&VCe(r.name),(Uw(r)||qy(r))&&WCe(r.name)}function VCe(r){if(r.kind===80){if(ri(r)==="__esModule")return Tat("noEmit",r,p.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=r.elements;for(const c of a)if(!sf(c))return VCe(c.name)}return!1}function WCe(r){if(r.kind===80){if(r.escapedText==="let")return Rr(r,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=r.elements;for(const c of a)sf(c)||WCe(c.name)}return!1}function yce(r){const a=r.declarations;return FT(r.declarations)?!0:r.declarations.length?!1:B6(r,a.pos,a.end-a.pos,p.Variable_declaration_list_cannot_be_empty)}function qCe(r){switch(r.kind){case 244:case 245:case 246:case 253:case 247:case 248:case 249:return!1;case 255:return qCe(r.parent)}return!0}function bat(r){if(!qCe(r.parent)){if(Uw(r.declarationList))return Rr(r,p.let_declarations_can_only_be_declared_inside_a_block);if(qy(r.declarationList))return Rr(r,p.const_declarations_can_only_be_declared_inside_a_block)}}function xat(r){const a=r.name.escapedText;switch(r.keywordToken){case 105:if(a!=="target")return Rr(r.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ba(r.name.escapedText),Uo(r.keywordToken),"target");break;case 102:if(a!=="meta")return Rr(r.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ba(r.name.escapedText),Uo(r.keywordToken),"meta");break}}function R6(r){return r.parseDiagnostics.length>0}function mf(r,a,...c){const u=bn(r);if(!R6(u)){const d=oh(u,r.pos);return yc.add(af(u,d.start,d.length,a,...c)),!0}return!1}function B6(r,a,c,u,...d){const g=bn(r);return R6(g)?!1:(yc.add(af(g,a,c,u,...d)),!0)}function Tat(r,a,c,...u){const d=bn(a);return R6(d)?!1:(sv(r,a,c,...u),!0)}function Rr(r,a,...c){const u=bn(r);return R6(u)?!1:(yc.add(ai(r,a,...c)),!0)}function Sat(r){const a=jn(r)?wF(r):void 0,c=r.typeParameters||a&&Ji(a);if(c){const u=c.pos===c.end?c.pos:tc(bn(r).text,c.pos);return B6(r,u,c.end-u,p.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function kat(r){const a=r.type||Og(r);if(a)return Rr(a,p.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Cat(r){if(jc(r.name)&&Un(r.name.expression)&&r.name.expression.operatorToken.kind===103)return Rr(r.parent.members[0],p.A_mapped_type_may_not_declare_properties_or_methods);if(Yi(r.parent)){if(sc(r.name)&&r.name.text==="constructor")return Rr(r.name,p.Classes_may_not_have_a_field_named_constructor);if(rw(r.name,p.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ce<2&&Ea(r.name))return Rr(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ce<2&&ym(r))return Rr(r.name,p.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ym(r)&&gce(r.questionToken,p.An_accessor_property_cannot_be_declared_optional))return!0}else if(r.parent.kind===263){if(rw(r.name,p.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(D.assertNode(r,Vm),r.initializer)return Rr(r.initializer,p.An_interface_property_cannot_have_an_initializer)}else if(Sm(r.parent)){if(rw(r.name,p.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(D.assertNode(r,Vm),r.initializer)return Rr(r.initializer,p.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&16777216&&UCe(r),fo(r)&&r.exclamationToken&&(!Yi(r.parent)||!r.type||r.initializer||r.flags&16777216||so(r)||p3(r))){const a=r.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Rr(r.exclamationToken,a)}}function wat(r){return r.kind===263||r.kind===264||r.kind===271||r.kind===270||r.kind===277||r.kind===276||r.kind===269||Pi(r,1027)?!1:mf(r,p.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Eat(r){for(const a of r.statements)if((cp(a)||a.kind===242)&&wat(a))return!0;return!1}function Aat(r){return!!(r.flags&16777216)&&Eat(r)}function Fy(r){if(r.flags&16777216){if(!Ei(r).hasReportedStatementInAmbientContext&&(Qs(r.parent)||w4(r.parent)))return Ei(r).hasReportedStatementInAmbientContext=mf(r,p.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===240||r.parent.kind===267||r.parent.kind===311){const c=Ei(r.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=mf(r,p.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function vce(r){const a=F_(r).indexOf(".")!==-1,c=r.numericLiteralFlags&16;a||c||+r.text<=Tce(2,53)-1||Ah(!1,ai(r,p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Dat(r){return!!(!(R4(r.parent)||B4(r.parent)&&R4(r.parent.parent))&&ce<7&&Rr(r,p.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Nat(r,a,...c){const u=bn(r);if(!R6(u)){const d=oh(u,r.pos);return yc.add(af(u,qf(d),0,a,...c)),!0}return!1}function Iat(){return Hc||(Hc=[],je.forEach((r,a)=>{RB.test(a)&&Hc.push(r)})),Hc}function Pat(r){var a;return r.isTypeOnly&&r.name&&r.namedBindings?Rr(r,p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((a=r.namedBindings)==null?void 0:a.kind)===274?$Ce(r.namedBindings):!1}function $Ce(r){return!!Vt(r.elements,a=>{if(a.isTypeOnly)return mf(a,a.kind===275?p.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:p.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function Oat(r){if(z.verbatimModuleSyntax&&R===1)return Rr(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(R===5)return Rr(r,p.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(r.typeArguments)return Rr(r,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=r.arguments;if(R!==99&&R!==199&&R!==100&&(FT(a),a.length>1)){const u=a[1];return Rr(u,p.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return Rr(r,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const c=on(a,gh);return c?Rr(c,p.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Mat(r,a){const c=Mi(r);if(c&20&&a.flags&1048576)return on(a.types,u=>{if(u.flags&524288){const d=c&Mi(u);if(d&4)return r.target===u.target;if(d&16)return!!r.aliasSymbol&&r.aliasSymbol===u.aliasSymbol}return!1})}function Lat(r,a){if(Mi(r)&128&&Nv(a,U2))return on(a.types,c=>!U2(c))}function Fat(r,a){let c=0;if(ro(r,c).length>0||(c=1,ro(r,c).length>0))return on(a.types,d=>ro(d,c).length>0)}function Rat(r,a){let c;if(!(r.flags&406978556)){let u=0;for(const d of a.types)if(!(d.flags&406978556)){const g=Xo([a1(r),a1(d)]);if(g.flags&4194304)return d;if(kg(g)||g.flags&1048576){const x=g.flags&1048576?ef(g.types,kg):1;x>=u&&(c=d,u=x)}}}return c}function Bat(r){if(iu(r,67108864)){const a=E_(r,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return r}function HCe(r,a,c){if(a.flags&1048576&&r.flags&2621440){const u=f8e(a,r);if(u)return u;const d=Pc(r);if(d){const g=_8e(d,a);if(g){const x=ase(a,er(g,P=>[()=>An(P),P.escapedName]),c);if(x!==a)return x}}}}function jat(r){const a=P4(r);return a||(jc(r)&&ju(r.expression)?l8e(r.expression):void 0)}}function BDe(e){return!w4(e)}function Xme(e){return e.kind!==261&&e.kind!==173||!!e.body}function Zme(e){switch(e.parent.kind){case 275:case 280:return Be(e);default:return Gy(e)}}function Yme(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function up(e){return!!(e.flags&1)}function dZ(e){return!!(e.flags&2)}function jDe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Zs(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Zs(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var RB,XI,mZ,gZ,hZ,yZ,BB,jB,zB,JB,Qme,ZI,vZ,Cm,YI,zDe=or({"src/compiler/checker.ts"(){"use strict";ho(),fZ(),Q1(),RB=/^".+"$/,XI="(anonymous)",mZ=1,gZ=1,hZ=1,yZ=1,BB=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(BB||{}),jB=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),zB=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",e))(zB||{}),JB=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(JB||{}),Qme=Mx(Xme,BDe),ZI=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),vZ=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(Cm||(Cm={})),YI=class{constructor(e,t,n){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var i;t instanceof YI;)t=t.inner;this.inner=t,this.moduleResolverHost=n,this.context=e,this.canTrackSymbol=!!((i=this.inner)!=null&&i.trackSymbol)}trackSymbol(e,t,n){var i;return(i=this.inner)!=null&&i.trackSymbol&&!this.disableTrackSymbol&&this.inner.trackSymbol(e,t,n)?(this.onDiagnosticReported(),!0):!1}reportInaccessibleThisError(){var e;(e=this.inner)!=null&&e.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(t=this.inner)!=null&&t.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(e=this.inner)!=null&&e.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(e=this.inner)!=null&&e.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(t=this.inner)!=null&&t.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(e=this.inner)!=null&&e.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(e,t){var n;(n=this.inner)!=null&&n.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(e,t))}trackExternalModuleSymbolOfImportTypeNode(e){var t;(t=this.inner)!=null&&t.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(e))}reportNonlocalAugmentation(e,t,n){var i;(i=this.inner)!=null&&i.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(t=this.inner)!=null&&t.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}reportImportTypeNodeResolutionModeOverride(){var e;(e=this.inner)!=null&&e.reportImportTypeNodeResolutionModeOverride&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function Ye(e,t,n,i){if(e===void 0)return e;const s=t(e);let o;if(s!==void 0)return ns(s)?o=(i||qDe)(s):o=s,D.assertNode(o,n),o}function dn(e,t,n,i,s){if(e===void 0)return e;const o=e.length;(i===void 0||i<0)&&(i=0),(s===void 0||s>o-i)&&(s=o-i);let l,f=-1,_=-1;i>0||so-i)&&(s=o-i),Kme(e,t,n,i,s)}function Kme(e,t,n,i,s){let o;const l=e.length;(i>0||s=2&&(s=JDe(s,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),s}function JDe(e,t){let n;for(let i=0;i{const l=if,addSource:ve,setSourceContent:we,addName:K,addMapping:Fe,appendSourceMap:Ue,toJSON:Pe,toString:()=>JSON.stringify(Pe())};function ve(wt){o();const xt=XT(i,wt,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let Zt=h.get(xt);return Zt===void 0&&(Zt=_.length,_.push(xt),f.push(wt),h.set(xt,Zt)),l(),Zt}function we(wt,xt){if(o(),xt!==null){for(m||(m=[]);m.lengthxt||ae===xt&&ye>Zt)}function Fe(wt,xt,Zt,Qe,Mt,yr){D.assert(wt>=ce,"generatedLine cannot backtrack"),D.assert(xt>=0,"generatedCharacter cannot be negative"),D.assert(Zt===void 0||Zt>=0,"sourceIndex cannot be negative"),D.assert(Qe===void 0||Qe>=0,"sourceLine cannot be negative"),D.assert(Mt===void 0||Mt>=0,"sourceCharacter cannot be negative"),o(),(Ze(wt,xt)||Re(Zt,Qe,Mt))&&(He(),ce=wt,R=xt,te=!1,me=!1,ee=!0),Zt!==void 0&&Qe!==void 0&&Mt!==void 0&&(le=Zt,ae=Qe,ye=Mt,te=!0,yr!==void 0&&($=yr,me=!0)),l()}function Ue(wt,xt,Zt,Qe,Mt,yr){D.assert(wt>=ce,"generatedLine cannot backtrack"),D.assert(xt>=0,"generatedCharacter cannot be negative"),o();const Cr=[];let Lt;const an=TZ(Zt.mappings);for(const xn of an){if(yr&&(xn.generatedLine>yr.line||xn.generatedLine===yr.line&&xn.generatedCharacter>yr.character))break;if(Mt&&(xn.generatedLine=1024&&je()}function He(){if(!(!ee||!Ae())){if(o(),O0&&(E+=String.fromCharCode.apply(void 0,k),k.length=0)}function Pe(){return He(),je(),{version:3,file:t,sourceRoot:n,sources:_,names:y,mappings:E,sourcesContent:m}}function nt(wt){wt<0?wt=(-wt<<1)+1:wt=wt<<1;do{let xt=wt&31;wt=wt>>5,wt>0&&(xt=xt|32),Me(XDe(xt))}while(wt>0)}}function r0e(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function n0e(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),i=VB.exec(n);if(i)return X1(i[1]);if(!n.match(WB))break}}function HDe(e){return typeof e=="string"||e===null}function i0e(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&ns(e.sources)&&yn(e.sources,bs)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||ns(e.sourcesContent)&&yn(e.sourcesContent,HDe))&&(e.names===void 0||e.names===null||ns(e.names)&&yn(e.names,bs))}function xZ(e){try{const t=JSON.parse(e);if(i0e(t))return t}catch(t){}}function TZ(e){let t=!1,n=0,i=0,s=0,o=0,l=0,f=0,_=0,h;return{get pos(){return n},get error(){return h},get state(){return m(!0,!0)},next(){for(;!t&&n=e.length)return T("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const re=ZDe(e.charCodeAt(n));if(re===-1)return T("Invalid character in VLQ"),-1;B=(re&32)!==0,V=V|(re&31)<>1,V=-V):V=V>>1,V}}function GDe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function a0e(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function XDe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:D.fail(`${e}: not a base64 value`)}function ZDe(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function s0e(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function o0e(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function YDe(e,t){return D.assert(e.sourceIndex===t.sourceIndex),Uc(e.sourcePosition,t.sourcePosition)}function QDe(e,t){return Uc(e.generatedPosition,t.generatedPosition)}function KDe(e){return e.sourcePosition}function eNe(e){return e.generatedPosition}function c0e(e,t,n){const i=ga(n),s=t.sourceRoot?ms(t.sourceRoot,i):i,o=ms(t.file,i),l=e.getSourceFileLike(o),f=t.sources.map(U=>ms(U,s)),_=new Map(f.map((U,V)=>[e.getCanonicalFileName(U),V]));let h,m,y;return{getSourcePosition:B,getGeneratedPosition:N};function T(U){const V=l!==void 0?gD(l,U.generatedLine,U.generatedCharacter,!0):-1;let re,z;if(a0e(U)){const ce=e.getSourceFileLike(f[U.sourceIndex]);re=t.sources[U.sourceIndex],z=ce!==void 0?gD(ce,U.sourceLine,U.sourceCharacter,!0):-1}return{generatedPosition:V,source:re,sourceIndex:U.sourceIndex,sourcePosition:z,nameIndex:U.nameIndex}}function k(){if(h===void 0){const U=TZ(t.mappings),V=zt(U,T);U.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${U.error}`),h=tt):h=V}return h}function E(U){if(y===void 0){const V=[];for(const re of k()){if(!s0e(re))continue;let z=V[re.sourceIndex];z||(V[re.sourceIndex]=z=[]),z.push(re)}y=V.map(re=>$o(re,YDe,o0e))}return y[U]}function O(){if(m===void 0){const U=[];for(const V of k())U.push(V);m=$o(U,QDe,o0e)}return m}function N(U){const V=_.get(e.getCanonicalFileName(U.fileName));if(V===void 0)return U;const re=E(V);if(!bt(re))return U;let z=Io(re,U.pos,KDe,Uc);z<0&&(z=~z);const ce=re[z];return ce===void 0||ce.sourceIndex!==V?U:{fileName:o,pos:ce.generatedPosition}}function B(U){const V=O();if(!bt(V))return U;let re=Io(V,U.pos,eNe,Uc);re<0&&(re=~re);const z=V[re];return z===void 0||!s0e(z)?U:{fileName:f[z.sourceIndex],pos:z.sourcePosition}}}var SZ,VB,WB,qB,tNe=or({"src/compiler/sourcemap.ts"(){"use strict";ho(),Q1(),SZ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,VB=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,WB=/^\s*(\/\/[@#] .*)?$/,qB={getSourcePosition:Jc,getGeneratedPosition:Jc}}});function _p(e){return e=au(e),e?Nc(e):0}function rNe(e){return!e||!r2(e)?!1:bt(e.elements,l0e)}function l0e(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function ug(e,t){return n;function n(s){return s.kind===311?t(s):i(s)}function i(s){return e.factory.createBundle(er(s.sourceFiles,t),s.prepends)}}function u0e(e){return!!K5(e)}function $B(e){if(K5(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!r2(t))return!1;let n=0;for(const i of t.elements)l0e(i)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&sS(e)}function kZ(e){return!$B(e)&&(sS(e)||!!e.importClause&&r2(e.importClause.namedBindings)&&rNe(e.importClause.namedBindings))}function CZ(e,t,n,i){const s=[],o=Pf(),l=[],f=new Map;let _,h=!1,m,y=!1,T=!1,k=!1;for(const N of t.statements)switch(N.kind){case 271:s.push(N),!T&&$B(N)&&(T=!0),!k&&kZ(N)&&(k=!0);break;case 270:N.moduleReference.kind===282&&s.push(N);break;case 277:if(N.moduleSpecifier)if(!N.exportClause)s.push(N),y=!0;else if(s.push(N),og(N.exportClause))O(N);else{const B=N.exportClause.name;f.get(ri(B))||(Gk(l,_p(N),B),f.set(ri(B),!0),_=Ht(_,B)),T=!0}else O(N);break;case 276:N.isExportEquals&&!m&&(m=N);break;case 242:if(Pi(N,1))for(const B of N.declarationList.declarations)_=_0e(B,f,_,l);break;case 261:if(Pi(N,1))if(Pi(N,1024))h||(Gk(l,_p(N),e.factory.getDeclarationName(N)),h=!0);else{const B=N.name;f.get(ri(B))||(Gk(l,_p(N),B),f.set(ri(B),!0),_=Ht(_,B))}break;case 262:if(Pi(N,1))if(Pi(N,1024))h||(Gk(l,_p(N),e.factory.getDeclarationName(N)),h=!0);else{const B=N.name;B&&!f.get(ri(B))&&(Gk(l,_p(N),B),f.set(ri(B),!0),_=Ht(_,B))}break}const E=rX(e.factory,e.getEmitHelperFactory(),t,i,y,T,k);return E&&s.unshift(E),{externalImports:s,exportSpecifiers:o,exportEquals:m,hasExportStarsToExportValues:y,exportedBindings:l,exportedNames:_,externalHelpersImportDeclaration:E};function O(N){for(const B of Ws(N.exportClause,og).elements)if(!f.get(ri(B.name))){const U=B.propertyName||B.name;N.moduleSpecifier||o.add(ri(U),B);const V=n.getReferencedImportDeclaration(U)||n.getReferencedValueDeclaration(U);V&&Gk(l,_p(V),B.name),f.set(ri(B.name),!0),_=Ht(_,B.name)}}}function _0e(e,t,n,i){if(_o(e.name))for(const s of e.name.elements)sf(s)||(n=_0e(s,t,n,i));else if(!uu(e.name)){const s=ri(e.name);t.get(s)||(t.set(s,!0),n=Ht(n,e.name),n2(e.name)&&Gk(i,_p(e),e.name))}return n}function Gk(e,t,n){let i=e[t];return i?i.push(n):e[t]=i=[n],i}function N3(e){return Wc(e)||e.kind===9||pd(e.kind)||Be(e)}function D1(e){return!Be(e)&&N3(e)}function sE(e){return e>=65&&e<=79}function oE(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function wZ(e){if(!$f(e))return;const t=kl(e.expression);return W5(t)?t:void 0}function HB(e,t){for(let n=t;niNe(i,t,n))}function nNe(e){return aNe(e)||fu(e)}function GB(e){return Mn(e.members,nNe)}function iNe(e,t,n){return fo(e)&&(!!e.initializer||!t)&&R_(e)===n}function aNe(e){return fo(e)&&R_(e)}function KI(e){return e.kind===171&&e.initializer!==void 0}function f0e(e){return!so(e)&&(O5(e)||ym(e))&&Ea(e.name)}function AZ(e){let t;if(e){const n=e.parameters,i=n.length>0&&_3(n[0]),s=i?1:0,o=i?n.length-1:n.length;for(let l=0;lNZ(n.privateEnv,t))}var cNe=or({"src/compiler/transformers/utilities.ts"(){"use strict";ho()}});function L7(e,t,n,i,s,o){let l=e,f;if(Zv(e))for(f=e.right;u_e(e.left)||fH(e.left);)if(Zv(f))l=e=f,f=e.right;else return D.checkDefined(Ye(f,t,ht));let _;const h={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:T=>gNe(n.factory,T),createObjectBindingOrAssignmentPattern:T=>yNe(n.factory,T),createArrayBindingOrAssignmentElement:bNe,visitor:t};if(f&&(f=Ye(f,t,ht),D.assert(f),Be(f)&&IZ(e,f.escapedText)||PZ(e)?f=F7(h,f,!1,l):s?f=F7(h,f,!0,l):Ol(e)&&(l=f)),Xk(h,e,f,l,Zv(e)),f&&s){if(!bt(_))return f;_.push(f)}return n.factory.inlineExpressions(_)||n.factory.createOmittedExpression();function m(T){_=Ht(_,T)}function y(T,k,E,O){D.assertNode(T,o?Be:ht);const N=o?o(T,k,E):yt(n.factory.createAssignment(D.checkDefined(Ye(T,t,ht)),k),E);N.original=O,m(N)}}function IZ(e,t){const n=bb(e);return AD(n)?lNe(n,t):Be(n)?n.escapedText===t:!1}function lNe(e,t){const n=Bk(e);for(const i of n)if(IZ(i,t))return!0;return!1}function PZ(e){const t=KR(e);if(t&&jc(t)&&!t7(t.expression))return!0;const n=bb(e);return!!n&&AD(n)&&uNe(n)}function uNe(e){return!!Vt(Bk(e),PZ)}function I3(e,t,n,i,s,o=!1,l){let f;const _=[],h=[],m={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:y,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:k=>mNe(n.factory,k),createObjectBindingOrAssignmentPattern:k=>hNe(n.factory,k),createArrayBindingOrAssignmentElement:k=>vNe(n.factory,k),visitor:t};if(Fa(e)){let k=vI(e);k&&(Be(k)&&IZ(e,k.escapedText)||PZ(e))&&(k=F7(m,D.checkDefined(Ye(k,m.visitor,ht)),!1,k),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,k))}if(Xk(m,e,s,e,l),f){const k=n.factory.createTempVariable(void 0);if(o){const E=n.factory.inlineExpressions(f);f=void 0,T(k,E,void 0,void 0)}else{n.hoistVariableDeclaration(k);const E=fi(_);E.pendingExpressions=Ht(E.pendingExpressions,n.factory.createAssignment(k,E.value)),Et(E.pendingExpressions,f),E.value=k}}for(const{pendingExpressions:k,name:E,value:O,location:N,original:B}of _){const U=n.factory.createVariableDeclaration(E,void 0,void 0,k?n.factory.inlineExpressions(Ht(k,O)):O);U.original=B,yt(U,N),h.push(U)}return h;function y(k){f=Ht(f,k)}function T(k,E,O,N){D.assertNode(k,Kh),f&&(E=n.factory.inlineExpressions(Ht(f,E)),f=void 0),_.push({pendingExpressions:f,name:k,value:E,location:O,original:N})}}function Xk(e,t,n,i,s){const o=bb(t);if(!s){const l=Ye(vI(t),e.visitor,ht);l?n?(n=pNe(e,n,l,i),!D1(l)&&AD(o)&&(n=F7(e,n,!0,i))):n=l:n||(n=e.context.factory.createVoidZero())}Vq(o)?_Ne(e,t,o,n,i):Wq(o)?fNe(e,t,o,n,i):e.emitBindingOrAssignment(o,n,i,t)}function _Ne(e,t,n,i,s){const o=Bk(n),l=o.length;if(l!==1){const h=!ED(t)||l!==0;i=F7(e,i,h,s)}let f,_;for(let h=0;h=1&&!(m.transformFlags&98304)&&!(bb(m).transformFlags&98304)&&!jc(y))f=Ht(f,Ye(m,e.visitor,ble));else{f&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f),i,s,n),f=void 0);const T=dNe(e,i,y);jc(y)&&(_=Ht(_,T.argumentExpression)),Xk(e,m,T,m)}}}f&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f),i,s,n)}function fNe(e,t,n,i,s){const o=Bk(n),l=o.length;if(e.level<1&&e.downlevelIteration)i=F7(e,yt(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&QR(o[l-1])?void 0:l),s),!1,s);else if(l!==1&&(e.level<1||l===0)||yn(o,sf)){const h=!ED(t)||l!==0;i=F7(e,i,h,s)}let f,_;for(let h=0;h=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!h0e(m)){e.hasTransformedPriorElement=!0;const y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),_=Ht(_,[y,m]),f=Ht(f,e.createArrayBindingOrAssignmentElement(y))}else f=Ht(f,m);else{if(sf(m))continue;if(QR(m)){if(h===l-1){const y=e.context.factory.createArraySliceCall(i,h);Xk(e,m,y,m)}}else{const y=e.context.factory.createElementAccessExpression(i,h);Xk(e,m,y,m)}}}if(f&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(f),i,s,n),_)for(const[h,m]of _)Xk(e,m,h,m)}function h0e(e){const t=bb(e);if(!t||sf(t))return!0;const n=KR(e);if(n&&!rg(n))return!1;const i=vI(e);return i&&!D1(i)?!1:AD(t)?yn(Bk(t),h0e):Be(t)}function pNe(e,t,n,i){return t=F7(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}function dNe(e,t,n){const{factory:i}=e.context;if(jc(n)){const s=F7(e,D.checkDefined(Ye(n.expression,e.visitor,ht)),!1,n);return e.context.factory.createElementAccessExpression(t,s)}else if(a0(n)){const s=i.cloneNode(n);return e.context.factory.createElementAccessExpression(t,s)}else{const s=e.context.factory.createIdentifier(ri(n));return e.context.factory.createPropertyAccessExpression(t,s)}}function F7(e,t,n,i){if(Be(t)&&n)return t;{const s=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(s),e.emitExpression(yt(e.context.factory.createAssignment(s,t),i))):e.emitBindingOrAssignment(s,t,i,void 0),s}}function mNe(e,t){return D.assertEachNode(t,AL),e.createArrayBindingPattern(t)}function gNe(e,t){return D.assertEachNode(t,ND),e.createArrayLiteralExpression(er(t,e.converters.convertToArrayAssignmentElement))}function hNe(e,t){return D.assertEachNode(t,Cc),e.createObjectBindingPattern(t)}function yNe(e,t){return D.assertEachNode(t,DD),e.createObjectLiteralExpression(er(t,e.converters.convertToObjectAssignmentElement))}function vNe(e,t){return e.createBindingElement(void 0,void 0,t)}function bNe(e){return e}var OZ,xNe=or({"src/compiler/transformers/destructuring.ts"(){"use strict";ho(),OZ=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(OZ||{})}});function MZ(e,t,n,i,s,o){const l=Ye(t.tag,n,ht);D.assert(l);const f=[void 0],_=[],h=[],m=t.template;if(o===0&&!X$(m))return nn(t,n,e);const{factory:y}=e;if(CS(m))_.push(LZ(y,m)),h.push(FZ(y,m,i));else{_.push(LZ(y,m.head)),h.push(FZ(y,m.head,i));for(const k of m.templateSpans)_.push(LZ(y,k.literal)),h.push(FZ(y,k.literal,i)),f.push(D.checkDefined(Ye(k.expression,n,ht)))}const T=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(_),y.createArrayLiteralExpression(h));if(c_(i)){const k=y.createUniqueName("templateObject");s(k),f[0]=y.createLogicalOr(k,y.createAssignment(k,T))}else f[0]=T;return y.createCallExpression(l,void 0,f)}function LZ(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function FZ(e,t,n){let i=t.rawText;if(i===void 0){D.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=e3(n,t);const s=t.kind===15||t.kind===18;i=i.substring(1,i.length-(s?1:2))}return i=i.replace(/\r\n?/g,` -`),yt(e.createStringLiteral(i),t)}var RZ,TNe=or({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";ho(),RZ=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(RZ||{})}});function y0e(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:l}=e,f=e.getEmitResolver(),_=e.getCompilerOptions(),h=gc(_),m=Ff(_),y=!!_.experimentalDecorators,T=_.emitDecoratorMetadata?x0e(e):void 0,k=e.onEmitNode,E=e.onSubstituteNode;e.onEmitNode=dp,e.onSubstituteNode=k_,e.enableSubstitution(210),e.enableSubstitution(211);let O,N,B,U,V,re,z,ce;return R;function R(G){return G.kind===312?le(G):ae(G)}function le(G){return t.createBundle(G.sourceFiles.map(ae),Mr(G.prepends,Le=>Le.kind===314?pG(Le,"js"):Le))}function ae(G){if(G.isDeclarationFile)return G;O=G;const Le=ye(G,nt);return Kv(Le,e.readEmitHelpers()),O=void 0,Le}function ye(G,Le){const gt=U,Nt=V,Rn=re;$(G);const qn=Le(G);return U!==gt&&(V=Nt),U=gt,re=Rn,qn}function $(G){switch(G.kind){case 311:case 268:case 267:case 240:U=G,V=void 0;break;case 262:case 261:if(Pi(G,2))break;G.name?ue(G):D.assert(G.kind===262||Pi(G,1024));break}}function ee(G){return ye(G,te)}function te(G){return G.transformFlags&1?Pe(G):G}function me(G){return ye(G,ve)}function ve(G){switch(G.kind){case 271:case 270:case 276:case 277:return we(G);default:return te(G)}}function we(G){if(gs(G)!==G)return G.transformFlags&1?nn(G,ee,e):G;switch(G.kind){case 271:return Ft(G);case 270:return ti(G);case 276:return Ui(G);case 277:return ya(G);default:D.fail("Unhandled ellided statement")}}function K(G){return ye(G,Ze)}function Ze(G){if(!(G.kind===277||G.kind===271||G.kind===272||G.kind===270&&G.moduleReference.kind===282))return G.transformFlags&1||Pi(G,1)?Pe(G):G}function Re(G){return Le=>ye(Le,gt=>Fe(gt,G))}function Fe(G,Le){switch(G.kind){case 175:return Fn(G);case 171:return $r(G,Le);case 176:return ln(G,Le);case 177:return Kr(G,Le);case 173:return rn(G,Le);case 174:return nn(G,ee,e);case 239:return G;case 180:return;default:return D.failBadSyntaxKind(G)}}function Ue(G){return Le=>ye(Le,gt=>Ae(gt,G))}function Ae(G,Le){switch(G.kind){case 302:case 303:case 304:return ee(G);case 176:return ln(G,Le);case 177:return Kr(G,Le);case 173:return rn(G,Le);default:return D.failBadSyntaxKind(G)}}function Me(G){return lp(G)?void 0:ee(G)}function He(G){return Do(G)?void 0:ee(G)}function je(G){if(!lp(G)&&!(mS(G.kind)&117086)&&!(N&&G.kind===95))return G}function Pe(G){if(us(G)&&Pi(G,2))return t.createNotEmittedStatement(G);switch(G.kind){case 95:case 90:return N?void 0:G;case 125:case 123:case 124:case 128:case 163:case 87:case 138:case 148:case 103:case 147:case 187:case 188:case 189:case 190:case 186:case 181:case 167:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 184:case 183:case 185:case 182:case 191:case 192:case 193:case 195:case 196:case 197:case 198:case 199:case 200:case 180:return;case 264:return t.createNotEmittedStatement(G);case 269:return;case 263:return t.createNotEmittedStatement(G);case 262:return Mt(G);case 230:return yr(G);case 297:return Ar(G);case 232:return Yt(G);case 209:return wt(G);case 175:case 171:case 173:case 176:case 177:case 174:return D.fail("Class and object literal elements must be visited with their respective visitors");case 261:return Li(G);case 217:return ot(G);case 218:return Tt(G);case 168:return it(G);case 216:return Ge(G);case 215:case 233:return dt(G);case 237:return at(G);case 212:return fr(G);case 213:return Ne(G);case 214:return $t(G);case 234:return Q(G);case 265:return Yn(G);case 242:return Wt(G);case 259:return Y(G);case 266:return rt(G);case 270:return ti(G);case 284:return Jt(G);case 285:return Pr(G);default:return nn(G,ee,e)}}function nt(G){const Le=R0(_,"alwaysStrict")&&!(c_(G)&&m>=5)&&!O0(G);return t.updateSourceFile(G,UB(G.statements,me,e,0,Le))}function wt(G){return t.updateObjectLiteralExpression(G,dn(G.properties,Ue(G),qv))}function xt(G){let Le=0;bt(EZ(G,!0,!0))&&(Le|=1);const gt=T1(G);return gt&&Gf(gt.expression).kind!==106&&(Le|=64),s3(y,G)&&(Le|=2),Ww(y,G)&&(Le|=4),Na(G)?Le|=8:Yr(G)?Le|=32:pc(G)&&(Le|=16),Le}function Zt(G){return!!(G.transformFlags&8192)}function Qe(G){return o0(G)||bt(G.typeParameters)||bt(G.heritageClauses,Zt)||bt(G.members,Zt)}function Mt(G){var mu;const Le=xt(G),gt=h<=1&&!!(Le&7);if(!Qe(G)&&!s3(y,G)&&!Na(G))return t.updateClassDeclaration(G,dn(G.modifiers,je,Do),G.name,void 0,dn(G.heritageClauses,ee,Kd),dn(G.members,Re(G),yf));gt&&e.startLexicalEnvironment();const Nt=gt||Le&8;let Rn=Nt?dn(G.modifiers,He,Ul):dn(G.modifiers,ee,Ul);Le&2&&(Rn=Lt(Rn,G));const Di=Nt&&!G.name||Le&4||Le&1?(mu=G.name)!=null?mu:t.getGeneratedNameForNode(G):G.name,xi=t.updateClassDeclaration(G,Rn,Di,void 0,dn(G.heritageClauses,ee,Kd),Cr(G));let La=_c(G);Le&1&&(La|=64),Ln(xi,La);let Fs;if(gt){const Hc=[xi],Gc=dH(tc(O.text,G.members.end),20),Ef=t.getInternalName(G),gu=t.createPartiallyEmittedExpression(Ef);mk(gu,Gc.end),Ln(gu,3072);const tl=t.createReturnStatement(gu);b9(tl,Gc.pos),Ln(tl,3840),Hc.push(tl),ah(Hc,e.endLexicalEnvironment());const Lc=t.createImmediatelyInvokedArrowFunction(Hc);GN(Lc,1);const Yp=Le&16?t.createModifiersFromModifierFlags(1):void 0,su=t.createVariableStatement(Yp,t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(G,!1,!1),void 0,void 0,Lc)],1));yi(su,G),xf(su,G),Mc(su,db(G)),Fp(su),Fs=su}else Fs=xi;if(Nt){if(Le&8)return[Fs,os(G)];if(Le&32)return[Fs,t.createExportDefault(t.getLocalName(G,!1,!0))];if(Le&16&&!gt)return[Fs,t.createExternalModuleExport(t.getLocalName(G,!1,!0))]}return Fs}function yr(G){let Le=dn(G.modifiers,He,Ul);return s3(y,G)&&(Le=Lt(Le,G)),t.updateClassExpression(G,Le,G.name,void 0,dn(G.heritageClauses,ee,Kd),Cr(G))}function Cr(G){const Le=dn(G.members,Re(G),yf);let gt;const Nt=ay(G),Rn=Nt&&Mn(Nt.parameters,qn=>gm(qn,Nt));if(Rn)for(const qn of Rn){const Di=t.createPropertyDeclaration(void 0,qn.name,void 0,void 0,void 0);yi(Di,qn),gt=Ht(gt,Di)}return gt?(gt=Et(gt,Le),yt(t.createNodeArray(gt),G.members)):Le}function Lt(G,Le){const gt=xn(Le,Le);if(bt(gt)){const Nt=[];Et(Nt,i_(G,bI)),Et(Nt,Mn(G,lp)),Et(Nt,gt),Et(Nt,Mn(aw(G,bI),Do)),G=yt(t.createNodeArray(Nt),G)}return G}function an(G,Le,gt){if(Yi(gt)&&w$(y,Le,gt)){const Nt=xn(Le,gt);if(bt(Nt)){const Rn=[];Et(Rn,Mn(G,lp)),Et(Rn,Nt),Et(Rn,Mn(G,Do)),G=yt(t.createNodeArray(Rn),G)}}return G}function xn(G,Le){if(y)return v0e?In(G,Le):Lr(G,Le)}function Lr(G,Le){if(T){let gt;if(vi(G)){const Nt=n().createMetadataHelper("design:type",T.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:Le},G));gt=Ht(gt,t.createDecorator(Nt))}if(Wa(G)){const Nt=n().createMetadataHelper("design:paramtypes",T.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:Le},G,Le));gt=Ht(gt,t.createDecorator(Nt))}if(ia(G)){const Nt=n().createMetadataHelper("design:returntype",T.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:Le},G));gt=Ht(gt,t.createDecorator(Nt))}return gt}}function In(G,Le){if(T){let gt;if(vi(G)){const Nt=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:Le},G)));gt=Ht(gt,Nt)}if(Wa(G)){const Nt=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:Le},G,Le)));gt=Ht(gt,Nt)}if(ia(G)){const Nt=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:Le},G)));gt=Ht(gt,Nt)}if(gt){const Nt=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(gt,!0));return[t.createDecorator(Nt)]}}}function vi(G){const Le=G.kind;return Le===173||Le===176||Le===177||Le===171}function ia(G){return G.kind===173}function Wa(G){switch(G.kind){case 262:case 230:return ay(G)!==void 0;case 173:case 176:case 177:return!0}return!1}function bi(G,Le){const gt=G.name;return Ea(gt)?t.createIdentifier(""):jc(gt)?Le&&!D1(gt.expression)?t.getGeneratedNameForNode(gt):gt.expression:Be(gt)?t.createStringLiteral(ri(gt)):t.cloneNode(gt)}function Pt(G){const Le=G.name;if(jc(Le)&&(!R_(G)&&re||o0(G)&&y)){const gt=Ye(Le.expression,ee,ht);D.assert(gt);const Nt=Q0(gt);if(!D1(Nt)){const Rn=t.getGeneratedNameForNode(Le);return l(Rn),t.updateComputedPropertyName(Le,t.createAssignment(Rn,gt))}}return D.checkDefined(Ye(Le,ee,_u))}function Ar(G){if(G.token!==119)return nn(G,ee,e)}function Yt(G){return t.updateExpressionWithTypeArguments(G,D.checkDefined(Ye(G.expression,ee,Dd)),void 0)}function Qr(G){return!Eu(G.body)}function $r(G,Le){const gt=G.flags&16777216||Pi(G,256);if(gt&&!(y&&o0(G)))return;let Nt=Yi(Le)?gt?dn(G.modifiers,He,Ul):dn(G.modifiers,ee,Ul):dn(G.modifiers,Me,Ul);return Nt=an(Nt,G,Le),gt?t.updatePropertyDeclaration(G,Nn(Nt,t.createModifiersFromModifierFlags(2)),D.checkDefined(Ye(G.name,ee,_u)),void 0,void 0,void 0):t.updatePropertyDeclaration(G,Nt,Pt(G),void 0,void 0,Ye(G.initializer,ee,ht))}function Fn(G){if(Qr(G))return t.updateConstructorDeclaration(G,void 0,t_(G.parameters,ee,e),ja(G.body,G))}function ja(G,Le){const gt=Le&&Mn(Le.parameters,Fs=>gm(Fs,Le));if(!bt(gt))return Wm(G,ee,e);let Nt=[];s();const Rn=t.copyPrologue(G.statements,Nt,!1,ee),qn=HB(G.statements,Rn);qn>=0&&Et(Nt,dn(G.statements,ee,us,Rn,qn+1-Rn));const Di=Mr(gt,Ca);qn>=0?Et(Nt,Di):Nt=[...Nt.slice(0,Rn),...Di,...Nt.slice(Rn)];const xi=qn>=0?qn+1:Rn;Et(Nt,dn(G.statements,ee,us,xi)),Nt=t.mergeLexicalEnvironment(Nt,o());const La=t.createBlock(yt(t.createNodeArray(Nt),G.statements),!0);return yt(La,G),yi(La,G),La}function Ca(G){const Le=G.name;if(!Be(Le))return;const gt=fc(yt(t.cloneNode(Le),Le),Le.parent);Ln(gt,3168);const Nt=fc(yt(t.cloneNode(Le),Le),Le.parent);return Ln(Nt,3072),Fp(HN(yt(yi(t.createExpressionStatement(t.createAssignment(yt(t.createPropertyAccessExpression(t.createThis(),gt),G.name),Nt)),G),M4(G,-1))))}function rn(G,Le){if(!(G.transformFlags&1))return G;if(!Qr(G))return;let gt=Yi(Le)?dn(G.modifiers,ee,Ul):dn(G.modifiers,Me,Ul);return gt=an(gt,G,Le),t.updateMethodDeclaration(G,gt,G.asteriskToken,Pt(G),void 0,void 0,t_(G.parameters,ee,e),void 0,Wm(G.body,ee,e))}function wr(G){return!(Eu(G.body)&&Pi(G,256))}function ln(G,Le){if(!(G.transformFlags&1))return G;if(!wr(G))return;let gt=Yi(Le)?dn(G.modifiers,ee,Ul):dn(G.modifiers,Me,Ul);return gt=an(gt,G,Le),t.updateGetAccessorDeclaration(G,gt,Pt(G),t_(G.parameters,ee,e),void 0,Wm(G.body,ee,e)||t.createBlock([]))}function Kr(G,Le){if(!(G.transformFlags&1))return G;if(!wr(G))return;let gt=Yi(Le)?dn(G.modifiers,ee,Ul):dn(G.modifiers,Me,Ul);return gt=an(gt,G,Le),t.updateSetAccessorDeclaration(G,gt,Pt(G),t_(G.parameters,ee,e),Wm(G.body,ee,e)||t.createBlock([]))}function Li(G){if(!Qr(G))return t.createNotEmittedStatement(G);const Le=t.updateFunctionDeclaration(G,dn(G.modifiers,je,Do),G.asteriskToken,G.name,void 0,t_(G.parameters,ee,e),void 0,Wm(G.body,ee,e)||t.createBlock([]));if(Na(G)){const gt=[Le];return Gs(gt,G),gt}return Le}function ot(G){return Qr(G)?t.updateFunctionExpression(G,dn(G.modifiers,je,Do),G.asteriskToken,G.name,void 0,t_(G.parameters,ee,e),void 0,Wm(G.body,ee,e)||t.createBlock([])):t.createOmittedExpression()}function Tt(G){return t.updateArrowFunction(G,dn(G.modifiers,je,Do),void 0,t_(G.parameters,ee,e),void 0,G.equalsGreaterThanToken,Wm(G.body,ee,e))}function it(G){if(_3(G))return;const Le=t.updateParameterDeclaration(G,dn(G.modifiers,gt=>lp(gt)?ee(gt):void 0,Ul),G.dotDotDotToken,D.checkDefined(Ye(G.name,ee,Kh)),void 0,void 0,Ye(G.initializer,ee,ht));return Le!==G&&(xf(Le,G),yt(Le,S1(G)),Mc(Le,S1(G)),Ln(Le.name,64)),Le}function Wt(G){if(Na(G)){const Le=c9(G.declarationList);return Le.length===0?void 0:yt(t.createExpressionStatement(t.inlineExpressions(er(Le,nr))),G)}else return nn(G,ee,e)}function nr(G){const Le=G.name;return _o(Le)?L7(G,ee,e,0,!1,el):yt(t.createAssignment(Wl(Le),D.checkDefined(Ye(G.initializer,ee,ht))),G)}function Y(G){const Le=t.updateVariableDeclaration(G,D.checkDefined(Ye(G.name,ee,Kh)),void 0,void 0,Ye(G.initializer,ee,ht));return G.type&&Pfe(Le.name,G.type),Le}function Ge(G){const Le=Gf(G.expression,-7);if(i7(Le)){const gt=Ye(G.expression,ee,ht);return D.assert(gt),t.createPartiallyEmittedExpression(gt,G)}return nn(G,ee,e)}function dt(G){const Le=Ye(G.expression,ee,ht);return D.assert(Le),t.createPartiallyEmittedExpression(Le,G)}function Q(G){const Le=Ye(G.expression,ee,Dd);return D.assert(Le),t.createPartiallyEmittedExpression(Le,G)}function at(G){const Le=Ye(G.expression,ee,ht);return D.assert(Le),t.createPartiallyEmittedExpression(Le,G)}function fr(G){return t.updateCallExpression(G,D.checkDefined(Ye(G.expression,ee,ht)),void 0,dn(G.arguments,ee,ht))}function Ne(G){return t.updateNewExpression(G,D.checkDefined(Ye(G.expression,ee,ht)),void 0,dn(G.arguments,ee,ht))}function $t(G){return t.updateTaggedTemplateExpression(G,D.checkDefined(Ye(G.tag,ee,ht)),void 0,D.checkDefined(Ye(G.template,ee,M5)))}function Jt(G){return t.updateJsxSelfClosingElement(G,D.checkDefined(Ye(G.tagName,ee,Fw)),void 0,D.checkDefined(Ye(G.attributes,ee,S3)))}function Pr(G){return t.updateJsxOpeningElement(G,D.checkDefined(Ye(G.tagName,ee,Fw)),void 0,D.checkDefined(Ye(G.attributes,ee,S3)))}function li(G){return!n3(G)||h7(_)}function Yn(G){if(!li(G))return t.createNotEmittedStatement(G);const Le=[];let gt=4;const Nt=q(Le,G);Nt&&(m!==4||U!==O)&&(gt|=1024);const Rn=du(G),qn=uf(G),Di=Na(G)?t.getExternalModuleOrNamespaceExportName(B,G,!1,!0):t.getDeclarationName(G,!1,!0);let xi=t.createLogicalOr(Di,t.createAssignment(Di,t.createObjectLiteralExpression()));if(Na(G)){const Fs=t.getLocalName(G,!1,!0);xi=t.createAssignment(Fs,xi)}const La=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Rn)],void 0,Jn(G,qn)),void 0,[xi]));return yi(La,G),Nt&&(F4(La,void 0),xS(La,void 0)),yt(La,G),dh(La,gt),Le.push(La),Le}function Jn(G,Le){const gt=B;B=Le;const Nt=[];i();const Rn=er(G.members,w);return ah(Nt,o()),Et(Nt,Rn),B=gt,t.createBlock(yt(t.createNodeArray(Nt),G.members),!0)}function w(G){const Le=bi(G,!1),gt=ge(G),Nt=t.createAssignment(t.createElementAccessExpression(B,Le),gt),Rn=gt.kind===11?Nt:t.createAssignment(t.createElementAccessExpression(B,Nt),Le);return yt(t.createExpressionStatement(yt(Rn,G)),G)}function ge(G){const Le=f.getConstantValue(G);return Le!==void 0?typeof Le=="string"?t.createStringLiteral(Le):t.createNumericLiteral(Le):(Ms(),G.initializer?D.checkDefined(Ye(G.initializer,ee,ht)):t.createVoidZero())}function he(G){const Le=gs(G,Vu);return Le?pZ(Le,h7(_)):!0}function ue(G){V||(V=new Map);const Le=pe(G);V.has(Le)||V.set(Le,G)}function _e(G){if(V){const Le=pe(G);return V.get(Le)===G}return!0}function pe(G){return D.assertNode(G.name,Be),G.name.escapedText}function q(G,Le){const gt=t.createVariableDeclaration(t.getLocalName(Le,!1,!0)),Nt=U.kind===311?0:1,Rn=t.createVariableStatement(dn(Le.modifiers,je,Do),t.createVariableDeclarationList([gt],Nt));return yi(gt,Le),F4(gt,void 0),xS(gt,void 0),yi(Rn,Le),ue(Le),_e(Le)?(Le.kind===265?Mc(Rn.declarationList,Le):Mc(Rn,Le),xf(Rn,Le),dh(Rn,2048),G.push(Rn),!0):!1}function rt(G){if(!he(G))return t.createNotEmittedStatement(G);D.assertNode(G.name,Be,"A TypeScript namespace should have an Identifier name."),qa();const Le=[];let gt=4;const Nt=q(Le,G);Nt&&(m!==4||U!==O)&&(gt|=1024);const Rn=du(G),qn=uf(G),Di=Na(G)?t.getExternalModuleOrNamespaceExportName(B,G,!1,!0):t.getDeclarationName(G,!1,!0);let xi=t.createLogicalOr(Di,t.createAssignment(Di,t.createObjectLiteralExpression()));if(Na(G)){const Fs=t.getLocalName(G,!1,!0);xi=t.createAssignment(Fs,xi)}const La=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Rn)],void 0,ar(G,qn)),void 0,[xi]));return yi(La,G),Nt&&(F4(La,void 0),xS(La,void 0)),yt(La,G),dh(La,gt),Le.push(La),Le}function ar(G,Le){const gt=B,Nt=N,Rn=V;B=Le,N=G,V=void 0;const qn=[];i();let Di,xi;if(G.body)if(G.body.kind===267)ye(G.body,Fs=>Et(qn,dn(Fs.statements,K,us))),Di=G.body.statements,xi=G.body;else{const Fs=rt(G.body);Fs&&(ns(Fs)?Et(qn,Fs):qn.push(Fs));const mu=st(G).body;Di=M4(mu.statements,-1)}ah(qn,o()),B=gt,N=Nt,V=Rn;const La=t.createBlock(yt(t.createNodeArray(qn),Di),!0);return yt(La,xi),(!G.body||G.body.kind!==267)&&Ln(La,_c(La)|3072),La}function st(G){if(G.body.kind===266)return st(G.body)||G.body}function Ft(G){if(!G.importClause)return G;if(G.importClause.isTypeOnly)return;const Le=Ye(G.importClause,zr,hh);return Le||_.importsNotUsedAsValues===1||_.importsNotUsedAsValues===2?t.updateImportDeclaration(G,void 0,Le,G.moduleSpecifier,G.assertClause):void 0}function zr(G){D.assert(!G.isTypeOnly);const Le=fe(G)?G.name:void 0,gt=Ye(G.namedBindings,En,Hq);return Le||gt?t.updateImportClause(G,!1,Le,gt):void 0}function En(G){if(G.kind===273)return fe(G)?G:void 0;{const Le=_.verbatimModuleSyntax||_.preserveValueImports&&(_.importsNotUsedAsValues===1||_.importsNotUsedAsValues===2),gt=dn(G.elements,Ti,Ld);return Le||bt(gt)?t.updateNamedImports(G,gt):void 0}}function Ti(G){return!G.isTypeOnly&&fe(G)?G:void 0}function Ui(G){return _.verbatimModuleSyntax||f.isValueAliasDeclaration(G)?nn(G,ee,e):void 0}function ya(G){if(G.isTypeOnly)return;if(!G.exportClause||_y(G.exportClause))return G;const Le=_.verbatimModuleSyntax||!!G.moduleSpecifier&&(_.importsNotUsedAsValues===1||_.importsNotUsedAsValues===2),gt=Ye(G.exportClause,Nt=>zs(Nt,Le),Fq);return gt?t.updateExportDeclaration(G,void 0,G.isTypeOnly,gt,G.moduleSpecifier,G.assertClause):void 0}function _s(G,Le){const gt=dn(G.elements,Wo,dd);return Le||bt(gt)?t.updateNamedExports(G,gt):void 0}function Os(G){return t.updateNamespaceExport(G,D.checkDefined(Ye(G.name,ee,Be)))}function zs(G,Le){return _y(G)?Os(G):_s(G,Le)}function Wo(G){return!G.isTypeOnly&&(_.verbatimModuleSyntax||f.isValueAliasDeclaration(G))?G:void 0}function Ks(G){return fe(G)||!c_(O)&&f.isTopLevelValueImportEqualsWithEntityName(G)}function ti(G){if(G.isTypeOnly)return;if(A4(G)){const gt=fe(G);return!gt&&_.importsNotUsedAsValues===1?yi(yt(t.createImportDeclaration(void 0,void 0,G.moduleReference.expression,void 0),G),G):gt?nn(G,ee,e):void 0}if(!Ks(G))return;const Le=mI(t,G.moduleReference);return Ln(Le,7168),pc(G)||!Na(G)?yi(yt(t.createVariableStatement(dn(G.modifiers,je,Do),t.createVariableDeclarationList([yi(t.createVariableDeclaration(G.name,void 0,void 0,Le),G)])),G),G):yi(Ua(G.name,Le,G),G)}function Na(G){return N!==void 0&&Pi(G,1)}function al(G){return N===void 0&&Pi(G,1)}function pc(G){return al(G)&&!Pi(G,1024)}function Yr(G){return al(G)&&Pi(G,1024)}function os(G){const Le=t.createAssignment(t.getExternalModuleOrNamespaceExportName(B,G,!1,!0),t.getLocalName(G));Mc(Le,L0(G.name?G.name.pos:G.pos,G.end));const gt=t.createExpressionStatement(Le);return Mc(gt,L0(-1,G.end)),gt}function Gs(G,Le){G.push(os(Le))}function Ua(G,Le,gt){return yt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(B,G,!1,!0),Le)),gt)}function el(G,Le,gt){return yt(t.createAssignment(Wl(G),Le),gt)}function Wl(G){return t.getNamespaceMemberName(B,G,!1,!0)}function du(G){const Le=t.getGeneratedNameForNode(G);return Mc(Le,G.name),Le}function uf(G){return t.getGeneratedNameForNode(G)}function Ms(){z&8||(z|=8,e.enableSubstitution(80))}function qa(){z&2||(z|=2,e.enableSubstitution(80),e.enableSubstitution(303),e.enableEmitNotification(266))}function h_(G){return au(G).kind===266}function ru(G){return au(G).kind===265}function dp(G,Le,gt){const Nt=ce,Rn=O;Ja(Le)&&(O=Le),z&2&&h_(Le)&&(ce|=2),z&8&&ru(Le)&&(ce|=8),k(G,Le,gt),ce=Nt,O=Rn}function k_(G,Le){return Le=E(G,Le),G===1?fl(Le):_0(Le)?wf(Le):Le}function wf(G){if(z&2){const Le=G.name,gt=Cl(Le);if(gt){if(G.objectAssignmentInitializer){const Nt=t.createAssignment(gt,G.objectAssignmentInitializer);return yt(t.createPropertyAssignment(Le,Nt),G)}return yt(t.createPropertyAssignment(Le,gt),G)}}return G}function fl(G){switch(G.kind){case 80:return Nu(G);case 210:return Hl(G);case 211:return gr(G)}return G}function Nu(G){return Cl(G)||G}function Cl(G){if(z&ce&&!uu(G)&&!n2(G)){const Le=f.getReferencedExportContainer(G,!1);if(Le&&Le.kind!==311&&(ce&2&&Le.kind===266||ce&8&&Le.kind===265))return yt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Le),G),G)}}function Hl(G){return Zf(G)}function gr(G){return Zf(G)}function r_(G){return G.replace(/\*\//g,"*_/")}function Zf(G){const Le=_f(G);if(Le!==void 0){Nfe(G,Le);const gt=typeof Le=="string"?t.createStringLiteral(Le):t.createNumericLiteral(Le);if(!_.removeComments){const Nt=au(G,$l);sR(gt,3,` ${r_(F_(Nt))} `)}return gt}return G}function _f(G){if(!Fg(_))return mi(G)||Ll(G)?f.getConstantValue(G):void 0}function fe(G){return _.verbatimModuleSyntax||jn(G)||(_.preserveValueImports?f.isValueAliasDeclaration(G):f.isReferencedAliasDeclaration(G))}}var v0e,SNe=or({"src/compiler/transformers/ts.ts"(){"use strict";ho(),v0e=!1}});function b0e(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,endLexicalEnvironment:s,startLexicalEnvironment:o,resumeLexicalEnvironment:l,addBlockScopedVariable:f}=e,_=e.getEmitResolver(),h=e.getCompilerOptions(),m=gc(h),y=NN(h),T=!!h.experimentalDecorators,k=!y,E=y&&m<9,O=k||E,N=m<9,B=m<99?-1:y?0:3,U=m<9,V=U&&m>=2,re=O||N||B===-1,z=e.onSubstituteNode;e.onSubstituteNode=Hl;const ce=e.onEmitNode;e.onEmitNode=Cl;let R=!1,le,ae,ye,$,ee;const te=new Map;let me,ve,we=!1,K=!1;return ug(e,Ze);function Ze(fe){if(fe.isDeclarationFile||(ee=void 0,R=!!(K0(fe)&32),!re&&!R))return fe;const G=nn(fe,Fe,e);return Kv(G,e.readEmitHelpers()),G}function Re(fe){switch(fe.kind){case 129:return Fn()?void 0:fe;default:return di(fe,Do)}}function Fe(fe){if(!(fe.transformFlags&16777216)&&!(fe.transformFlags&134234112))return fe;switch(fe.kind){case 129:return D.fail("Use `modifierVisitor` instead.");case 262:return Yn(fe);case 230:return w(fe,void 0);case 174:case 171:return D.fail("Use `classElementVisitor` instead.");case 302:return Qe(fe);case 242:return Mt(fe);case 259:return Cr(fe);case 168:return Lt(fe);case 207:return an(fe);case 276:return xn(fe);case 81:return xt(fe);case 210:return wr(fe);case 211:return ln(fe);case 223:case 224:return Kr(fe,!1);case 225:return Ge(fe,!1);case 216:return Q(fe,!1,void 0);case 212:return it(fe);case 243:return ot(fe);case 214:return Wt(fe);case 247:return Li(fe);case 261:case 217:case 175:case 173:case 176:case 177:return bi(void 0,Ue,fe);default:return Ue(fe)}}function Ue(fe){return nn(fe,Fe,e)}function Ae(fe,G){switch(fe.kind){case 359:return at(fe,!1,G);case 216:return Q(fe,!1,G);case 230:return w(fe,G);default:return Fe(fe)}}function Me(fe){switch(fe.kind){case 223:case 224:return Kr(fe,!0);case 225:return Ge(fe,!0);case 360:return dt(fe,!0);case 216:return Q(fe,!0,void 0);default:return Fe(fe)}}function He(fe){switch(fe.kind){case 297:return nn(fe,He,e);case 232:return Pr(fe);default:return Fe(fe)}}function je(fe){switch(fe.kind){case 209:case 208:return Nu(fe);default:return Fe(fe)}}function Pe(fe){switch(fe.kind){case 175:return vi(fe);case 176:case 177:case 173:return bi(void 0,Wa,fe);case 171:return bi(void 0,ja,fe);case 174:return he(fe);case 166:return In(fe);case 239:return fe;default:return Ul(fe)?Re(fe):Fe(fe)}}function nt(fe){switch(fe.kind){case 166:return In(fe);default:return Fe(fe)}}function wt(fe){switch(fe.kind){case 171:return $r(fe);case 176:case 177:return Pe(fe);default:D.assertMissingNode(fe,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function xt(fe){return!N||us(fe.parent)?fe:yi(t.createIdentifier(""),fe)}function Zt(fe){const G=du(fe.left);if(G){const Le=Ye(fe.right,Fe,ht);return yi(n().createClassPrivateFieldInHelper(G.brandCheckIdentifier,Le),fe)}return nn(fe,Fe,e)}function Qe(fe){if(s0(fe,Y)){const{referencedName:G,name:Le}=fr(fe.name),gt=Ye(fe.initializer,Nt=>Ae(Nt,G),ht);return t.updatePropertyAssignment(fe,Le,gt)}return nn(fe,Fe,e)}function Mt(fe){const G=$;$=[];const Le=nn(fe,Fe,e),gt=bt($)?[Le,...$]:Le;return $=G,gt}function yr(fe,G){const Le=au(G,Yi);return Le&&!Le.name&&Pi(Le,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(fe)}function Cr(fe){if(s0(fe,Y)){const G=yr(fe.name,fe.initializer),Le=Ye(fe.name,Fe,Kh),gt=Ye(fe.initializer,Nt=>Ae(Nt,G),ht);return t.updateVariableDeclaration(fe,Le,void 0,void 0,gt)}return nn(fe,Fe,e)}function Lt(fe){if(s0(fe,Y)){const G=yr(fe.name,fe.initializer),Le=Ye(fe.name,Fe,Kh),gt=Ye(fe.initializer,Nt=>Ae(Nt,G),ht);return t.updateParameterDeclaration(fe,void 0,void 0,Le,void 0,void 0,gt)}return nn(fe,Fe,e)}function an(fe){if(s0(fe,Y)){const G=yr(fe.name,fe.initializer),Le=Ye(fe.propertyName,Fe,_u),gt=Ye(fe.name,Fe,Kh),Nt=Ye(fe.initializer,Rn=>Ae(Rn,G),ht);return t.updateBindingElement(fe,void 0,Le,gt,Nt)}return nn(fe,Fe,e)}function xn(fe){if(s0(fe,Y)){const G=t.createStringLiteral(fe.isExportEquals?"":"default"),Le=dn(fe.modifiers,Re,Do),gt=Ye(fe.expression,Nt=>Ae(Nt,G),ht);return t.updateExportAssignment(fe,Le,gt)}return nn(fe,Fe,e)}function Lr(fe){return bt(ye)&&(Md(fe)?(ye.push(fe.expression),fe=t.updateParenthesizedExpression(fe,t.inlineExpressions(ye))):(ye.push(fe),fe=t.inlineExpressions(ye)),ye=void 0),fe}function In(fe){const G=Ye(fe.expression,Fe,ht);return t.updateComputedPropertyName(fe,Lr(G))}function vi(fe){return me?pe(fe,me):Ue(fe)}function ia(fe){return!!(N||R_(fe)&&K0(fe)&32)}function Wa(fe){if(D.assert(!o0(fe)),!qp(fe)||!ia(fe))return nn(fe,Pe,e);const G=du(fe.name);if(D.assert(G,"Undeclared private name for property declaration."),!G.isValid)return fe;const Le=Pt(fe);Le&&ti().push(t.createAssignment(Le,t.createFunctionExpression(Mn(fe.modifiers,gt=>Do(gt)&&!wS(gt)&&!Gfe(gt)),fe.asteriskToken,Le,void 0,t_(fe.parameters,Fe,e),void 0,Wm(fe.body,Fe,e))))}function bi(fe,G,Le){const gt=ve;ve=fe;const Nt=G(Le);return ve=gt,Nt}function Pt(fe){D.assert(Ea(fe.name));const G=du(fe.name);if(D.assert(G,"Undeclared private name for property declaration."),G.kind==="m")return G.methodName;if(G.kind==="a"){if(cb(fe))return G.getterName;if($v(fe))return G.setterName}}function Ar(fe){const G=mh(fe),Le=L4(fe),gt=fe.name;let Nt=gt,Rn=gt;if(jc(gt)&&!D1(gt.expression)){const Fs=rB(gt);if(Fs)Nt=t.updateComputedPropertyName(gt,Ye(gt.expression,Fe,ht)),Rn=t.updateComputedPropertyName(gt,Fs.left);else{const mu=t.createTempVariable(i);Mc(mu,gt.expression);const Hc=Ye(gt.expression,Fe,ht),Gc=t.createAssignment(mu,Hc);Mc(Gc,gt.expression),Nt=t.updateComputedPropertyName(gt,Gc),Rn=t.updateComputedPropertyName(gt,mu)}}const qn=dn(fe.modifiers,Re,Do),Di=sX(t,fe,qn,fe.initializer);yi(Di,fe),Ln(Di,3072),Mc(Di,Le);const xi=Ipe(t,fe,qn,Nt);yi(xi,fe),xf(xi,G),Mc(xi,Le);const La=Ppe(t,fe,qn,Rn);return yi(La,fe),Ln(La,3072),Mc(La,Le),bZ([Di,xi,La],wt,yf)}function Yt(fe){if(ia(fe)){const G=du(fe.name);if(D.assert(G,"Undeclared private name for property declaration."),!G.isValid)return fe;if(G.isStatic&&!N){const Le=ar(fe,t.createThis());if(Le)return t.createClassStaticBlockDeclaration(t.createBlock([Le],!0))}return}if(k&&!so(fe)&&(ee!=null&&ee.data)&&ee.data.facts&16)return t.updatePropertyDeclaration(fe,dn(fe.modifiers,Fe,Ul),fe.name,void 0,void 0,void 0);if(s0(fe,Y)){const{referencedName:G,name:Le}=fr(fe.name);return t.updatePropertyDeclaration(fe,dn(fe.modifiers,Re,Do),Le,void 0,void 0,Ye(fe.initializer,gt=>Ae(gt,G),ht))}return t.updatePropertyDeclaration(fe,dn(fe.modifiers,Re,Do),Ye(fe.name,nt,_u),void 0,void 0,Ye(fe.initializer,Fe,ht))}function Qr(fe){if(O&&!ym(fe)){const G=_s(fe.name,!!fe.initializer||y,s0(fe,Y));if(G&&ti().push(...Ope(G)),so(fe)&&!N){const Le=ar(fe,t.createThis());if(Le){const gt=t.createClassStaticBlockDeclaration(t.createBlock([Le]));return yi(gt,fe),xf(gt,fe),xf(Le,{pos:-1,end:-1}),F4(Le,void 0),xS(Le,void 0),gt}}return}return t.updatePropertyDeclaration(fe,dn(fe.modifiers,Re,Do),Ye(fe.name,nt,_u),void 0,void 0,Ye(fe.initializer,Fe,ht))}function $r(fe){return D.assert(!o0(fe),"Decorators should already have been transformed and elided."),qp(fe)?Yt(fe):Qr(fe)}function Fn(){return B===-1||B===3&&!!(ee!=null&&ee.data)&&!!(ee.data.facts&16)}function ja(fe){return ym(fe)&&(Fn()||R_(fe)&&K0(fe)&32)?Ar(fe):$r(fe)}function Ca(fe,G){return rn(fe,Ye(G,Fe,ht))}function rn(fe,G){switch(xf(G,M4(G,-1)),fe.kind){case"a":return n().createClassPrivateFieldGetHelper(G,fe.brandCheckIdentifier,fe.kind,fe.getterName);case"m":return n().createClassPrivateFieldGetHelper(G,fe.brandCheckIdentifier,fe.kind,fe.methodName);case"f":return n().createClassPrivateFieldGetHelper(G,fe.brandCheckIdentifier,fe.kind,fe.isStatic?fe.variableName:void 0);case"untransformed":return D.fail("Access helpers should not be created for untransformed private elements");default:D.assertNever(fe,"Unknown private element type")}}function wr(fe){if(Ea(fe.name)){const G=du(fe.name);if(G)return yt(yi(Ca(G,fe.expression),fe),fe)}if(V&&fd(fe)&&Be(fe.name)&&ve&&(ee!=null&&ee.data)){const{classConstructor:G,superClassReference:Le,facts:gt}=ee.data;if(gt&1)return ya(fe);if(G&&Le){const Nt=t.createReflectGetCall(Le,t.createStringLiteralFromNode(fe.name),G);return yi(Nt,fe.expression),yt(Nt,fe.expression),Nt}}return nn(fe,Fe,e)}function ln(fe){if(V&&fd(fe)&&ve&&(ee!=null&&ee.data)){const{classConstructor:G,superClassReference:Le,facts:gt}=ee.data;if(gt&1)return ya(fe);if(G&&Le){const Nt=t.createReflectGetCall(Le,Ye(fe.argumentExpression,Fe,ht),G);return yi(Nt,fe.expression),yt(Nt,fe.expression),Nt}}return nn(fe,Fe,e)}function Kr(fe,G){if(fe.operator===46||fe.operator===47){const Le=kl(fe.operand);if(I5(Le)){let gt;if(gt=du(Le.name)){const Nt=Ye(Le.expression,Fe,ht),{readExpression:Rn,initializeExpression:qn}=Tt(Nt);let Di=Ca(gt,Rn);const xi=B4(fe)||G?void 0:t.createTempVariable(i);return Di=GR(t,fe,Di,i,xi),Di=Ne(gt,qn||Rn,Di,64),yi(Di,fe),yt(Di,fe),xi&&(Di=t.createComma(Di,xi),yt(Di,fe)),Di}}else if(V&&fd(Le)&&ve&&(ee!=null&&ee.data)){const{classConstructor:gt,superClassReference:Nt,facts:Rn}=ee.data;if(Rn&1){const qn=ya(Le);return B4(fe)?t.updatePrefixUnaryExpression(fe,qn):t.updatePostfixUnaryExpression(fe,qn)}if(gt&&Nt){let qn,Di;if(mi(Le)?Be(Le.name)&&(Di=qn=t.createStringLiteralFromNode(Le.name)):D1(Le.argumentExpression)?Di=qn=Le.argumentExpression:(Di=t.createTempVariable(i),qn=t.createAssignment(Di,Ye(Le.argumentExpression,Fe,ht))),qn&&Di){let xi=t.createReflectGetCall(Nt,Di,gt);yt(xi,Le);const La=G?void 0:t.createTempVariable(i);return xi=GR(t,fe,xi,i,La),xi=t.createReflectSetCall(Nt,qn,xi,gt),yi(xi,fe),yt(xi,fe),La&&(xi=t.createComma(xi,La),yt(xi,fe)),xi}}}}return nn(fe,Fe,e)}function Li(fe){return t.updateForStatement(fe,Ye(fe.initializer,Me,i0),Ye(fe.condition,Fe,ht),Ye(fe.incrementor,Me,ht),Xp(fe.statement,Fe,e))}function ot(fe){return t.updateExpressionStatement(fe,Ye(fe.expression,Me,ht))}function Tt(fe){const G=Ol(fe)?fe:t.cloneNode(fe);if(D1(fe))return{readExpression:G,initializeExpression:void 0};const Le=t.createTempVariable(i),gt=t.createAssignment(Le,G);return{readExpression:Le,initializeExpression:gt}}function it(fe){var G;if(I5(fe.expression)&&du(fe.expression.name)){const{thisArg:Le,target:gt}=t.createCallBinding(fe.expression,i,m);return e7(fe)?t.updateCallChain(fe,t.createPropertyAccessChain(Ye(gt,Fe,ht),fe.questionDotToken,"call"),void 0,void 0,[Ye(Le,Fe,ht),...dn(fe.arguments,Fe,ht)]):t.updateCallExpression(fe,t.createPropertyAccessExpression(Ye(gt,Fe,ht),"call"),void 0,[Ye(Le,Fe,ht),...dn(fe.arguments,Fe,ht)])}if(V&&fd(fe.expression)&&ve&&((G=ee==null?void 0:ee.data)!=null&&G.classConstructor)){const Le=t.createFunctionCallCall(Ye(fe.expression,Fe,ht),ee.data.classConstructor,dn(fe.arguments,Fe,ht));return yi(Le,fe),yt(Le,fe),Le}return nn(fe,Fe,e)}function Wt(fe){var G;if(I5(fe.tag)&&du(fe.tag.name)){const{thisArg:Le,target:gt}=t.createCallBinding(fe.tag,i,m);return t.updateTaggedTemplateExpression(fe,t.createCallExpression(t.createPropertyAccessExpression(Ye(gt,Fe,ht),"bind"),void 0,[Ye(Le,Fe,ht)]),void 0,Ye(fe.template,Fe,M5))}if(V&&fd(fe.tag)&&ve&&((G=ee==null?void 0:ee.data)!=null&&G.classConstructor)){const Le=t.createFunctionBindCall(Ye(fe.tag,Fe,ht),ee.data.classConstructor,[]);return yi(Le,fe),yt(Le,fe),t.updateTaggedTemplateExpression(fe,Le,void 0,Ye(fe.template,Fe,M5))}return nn(fe,Fe,e)}function nr(fe){if(ee&&te.set(au(fe),ee),N){o();let G=bi(fe,gt=>dn(gt,Fe,us),fe.body.statements);G=t.mergeLexicalEnvironment(G,s());const Le=t.createImmediatelyInvokedArrowFunction(G);return yi(Le,fe),yt(Le,fe),dh(Le,4),Le}}function Y(fe){if(Mp(fe)&&!fe.name){const G=GB(fe),Le=on(G,fu);if(Le){for(const Nt of Le.body.statements)if($f(Nt)&&I9(Nt.expression,"___setFunctionName"))return!1}return(N||!!K0(fe))&&bt(G,Nt=>fu(Nt)||qp(Nt)||O&&KI(Nt))}return!1}function Ge(fe,G){if(Zv(fe)){const Le=ye;ye=void 0,fe=t.updateBinaryExpression(fe,Ye(fe.left,je,ht),fe.operatorToken,Ye(fe.right,Fe,ht));const gt=bt(ye)?t.inlineExpressions(Ma([...ye,fe])):fe;return ye=Le,gt}if(Hp(fe)){if(s0(fe,Y)){const gt=yr(fe.left,fe.right),Nt=Ye(fe.left,Fe,ht),Rn=Ye(fe.right,qn=>Ae(qn,gt),ht);return t.updateBinaryExpression(fe,Nt,fe.operatorToken,Rn)}const Le=Gf(fe.left,9);if(I5(Le)){const gt=du(Le.name);if(gt)return yt(yi(Ne(gt,Le.expression,fe.right,fe.operatorToken.kind),fe),fe)}else if(V&&fd(fe.left)&&ve&&(ee!=null&&ee.data)){const{classConstructor:gt,superClassReference:Nt,facts:Rn}=ee.data;if(Rn&1)return t.updateBinaryExpression(fe,ya(fe.left),fe.operatorToken,Ye(fe.right,Fe,ht));if(gt&&Nt){let qn=Ll(fe.left)?Ye(fe.left.argumentExpression,Fe,ht):Be(fe.left.name)?t.createStringLiteralFromNode(fe.left.name):void 0;if(qn){let Di=Ye(fe.right,Fe,ht);if(sE(fe.operatorToken.kind)){let La=qn;D1(qn)||(La=t.createTempVariable(i),qn=t.createAssignment(La,qn));const Fs=t.createReflectGetCall(Nt,La,gt);yi(Fs,fe.left),yt(Fs,fe.left),Di=t.createBinaryExpression(Fs,oE(fe.operatorToken.kind),Di),yt(Di,fe)}const xi=G?void 0:t.createTempVariable(i);return xi&&(Di=t.createAssignment(xi,Di),yt(xi,fe)),Di=t.createReflectSetCall(Nt,qn,Di,gt),yi(Di,fe),yt(Di,fe),xi&&(Di=t.createComma(Di,xi),yt(Di,fe)),Di}}}}return ANe(fe)?Zt(fe):nn(fe,Fe,e)}function dt(fe,G){const Le=G?QI(fe.elements,Me):QI(fe.elements,Fe,Me);return t.updateCommaListExpression(fe,Le)}function Q(fe,G,Le){const gt=G?Me:Le?Rn=>Ae(Rn,Le):Fe,Nt=Ye(fe.expression,gt,ht);return t.updateParenthesizedExpression(fe,Nt)}function at(fe,G,Le){const gt=G?Me:Le?Rn=>Ae(Rn,Le):Fe,Nt=Ye(fe.expression,gt,ht);return t.updatePartiallyEmittedExpression(fe,Nt)}function fr(fe){if(rg(fe)||Ea(fe)){const Rn=t.createStringLiteralFromNode(fe),qn=Ye(fe,Fe,_u);return{referencedName:Rn,name:qn}}if(rg(fe.expression)&&!Be(fe.expression)){const Rn=t.createStringLiteralFromNode(fe.expression),qn=Ye(fe,Fe,_u);return{referencedName:Rn,name:qn}}const G=t.createTempVariable(i),Le=n().createPropKeyHelper(Ye(fe.expression,Fe,ht)),gt=t.createAssignment(G,Le),Nt=t.updateComputedPropertyName(fe,Lr(gt));return{referencedName:G,name:Nt}}function Ne(fe,G,Le,gt){if(G=Ye(G,Fe,ht),Le=Ye(Le,Fe,ht),sE(gt)){const{readExpression:Nt,initializeExpression:Rn}=Tt(G);G=Rn||Nt,Le=t.createBinaryExpression(rn(fe,Nt),oE(gt),Le)}switch(xf(G,M4(G,-1)),fe.kind){case"a":return n().createClassPrivateFieldSetHelper(G,fe.brandCheckIdentifier,Le,fe.kind,fe.setterName);case"m":return n().createClassPrivateFieldSetHelper(G,fe.brandCheckIdentifier,Le,fe.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(G,fe.brandCheckIdentifier,Le,fe.kind,fe.isStatic?fe.variableName:void 0);case"untransformed":return D.fail("Access helpers should not be created for untransformed private elements");default:D.assertNever(fe,"Unknown private element type")}}function $t(fe){return Mn(fe.members,f0e)}function Jt(fe){let G=0;const Le=au(fe);cf(Le)&&s3(T,Le)&&(G|=1);let gt=!1,Nt=!1,Rn=!1,qn=!1;for(const xi of fe.members)so(xi)?(xi.name&&(Ea(xi.name)||ym(xi))&&N&&(G|=2),(fo(xi)||fu(xi))&&(U&&xi.transformFlags&16384&&(G|=8,G&1||(G|=2)),V&&xi.transformFlags&134217728&&(G&1||(G|=6)))):p3(au(xi))||(ym(xi)?(qn=!0,Rn||(Rn=qp(xi))):qp(xi)?Rn=!0:fo(xi)&&(gt=!0,Nt||(Nt=!!xi.initializer)));return(E&>||k&&Nt||N&&Rn||N&&qn&&B===-1)&&(G|=16),G}function Pr(fe){var G;if((((G=ee==null?void 0:ee.data)==null?void 0:G.facts)||0)&4){const gt=t.createTempVariable(i,!0);return Wo().superClassReference=gt,t.updateExpressionWithTypeArguments(fe,t.createAssignment(gt,Ye(fe.expression,Fe,ht)),void 0)}return nn(fe,Fe,e)}function li(fe,G,Le){const gt=me,Nt=ye,Rn=ee;me=fe,ye=void 0,Os();const qn=K0(fe)&32;if(N||qn){const La=Es(fe);La&&Be(La)&&(Ks().data.className=La)}if(N){const La=$t(fe);bt(La)&&(Ks().data.weakSetName=el("instances",La[0].name))}const Di=Jt(fe);Di&&(Wo().facts=Di),Di&8&&Ti();const xi=Le(fe,Di,G);return zs(),D.assert(ee===Rn),me=gt,ye=Nt,xi}function Yn(fe){return li(fe,void 0,Jn)}function Jn(fe,G){var Le,gt;let Nt;if(G&2){if(N&&((Le=fe.emitNode)!=null&&Le.classThis))Wo().classConstructor=fe.emitNode.classThis,Nt=t.createAssignment(fe.emitNode.classThis,t.getInternalName(fe));else{const Gc=t.createTempVariable(i,!0);Wo().classConstructor=t.cloneNode(Gc),Nt=t.createAssignment(Gc,t.getInternalName(fe))}(gt=fe.emitNode)!=null&>.classThis&&(Wo().classThis=fe.emitNode.classThis)}const Rn=Pi(fe,1),qn=Pi(fe,1024);let Di=dn(fe.modifiers,Re,Do);const xi=dn(fe.heritageClauses,He,Kd),{members:La,prologue:Fs}=ue(fe),mu=[];if(Nt&&ti().unshift(Nt),bt(ye)&&mu.push(t.createExpressionStatement(t.inlineExpressions(ye))),k||N||K0(fe)&32){const Gc=GB(fe);bt(Gc)&&rt(mu,Gc,t.getInternalName(fe))}mu.length>0&&Rn&&qn&&(Di=dn(Di,Gc=>bI(Gc)?void 0:Gc,Do),mu.push(t.createExportAssignment(void 0,!1,t.getLocalName(fe,!1,!0))));const Hc=t.updateClassDeclaration(fe,Di,fe.name,void 0,xi,La);return mu.unshift(Hc),Fs&&mu.unshift(t.createExpressionStatement(Fs)),mu}function w(fe,G){return li(fe,G,ge)}function ge(fe,G,Le){var su,ff;var gt,Nt,Rn,qn;const Di=!!(G&1),xi=GB(fe),La=_.getNodeCheckFlags(fe)&1048576;let Fs;function mu(){var C_;if(N&&((C_=fe.emitNode)!=null&&C_.classThis))return Wo().classConstructor=fe.emitNode.classThis;const Qp=_.getNodeCheckFlags(fe),Ce=Qp&1048576,Gt=Qp&32768,un=t.createTempVariable(Gt?f:i,!!Ce);return Wo().classConstructor=t.cloneNode(un),un}(gt=fe.emitNode)!=null&>.classThis&&(Wo().classThis=fe.emitNode.classThis),G&2&&(Fs!=null||(Fs=mu()));const Hc=dn(fe.modifiers,Re,Do),Gc=dn(fe.heritageClauses,He,Kd),{members:Ef,prologue:gu}=ue(fe);let tl=t.updateClassExpression(fe,Hc,fe.name,void 0,Gc,Ef);const Lc=[];if(gu&&Lc.push(gu),(N||K0(fe)&32)&&bt(xi,C_=>fu(C_)||qp(C_)||O&&KI(C_))||bt(ye)||Le)if(Di){if(D.assertIsDefined($,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),bt(ye)&&Et($,er(ye,t.createExpressionStatement)),Le)if(N){const C_=n().createSetFunctionNameHelper((su=Fs!=null?Fs:(Nt=fe.emitNode)==null?void 0:Nt.classThis)!=null?su:t.getInternalName(fe),Le);$.push(t.createExpressionStatement(C_))}else{const C_=n().createSetFunctionNameHelper(t.createThis(),Le);tl=t.updateClassExpression(tl,tl.modifiers,tl.name,tl.typeParameters,tl.heritageClauses,[t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(C_)])),...tl.members])}bt(xi)&&rt($,xi,(ff=(Rn=fe.emitNode)==null?void 0:Rn.classThis)!=null?ff:t.getInternalName(fe)),Fs?Lc.push(t.createAssignment(Fs,tl)):N&&((qn=fe.emitNode)!=null&&qn.classThis)?Lc.push(t.createAssignment(fe.emitNode.classThis,tl)):Lc.push(tl)}else{if(Fs!=null||(Fs=mu()),La){En();const C_=t.cloneNode(Fs);C_.emitNode.autoGenerate.flags&=-9,ae[_p(fe)]=C_}Lc.push(t.createAssignment(Fs,tl)),Et(Lc,ye),Le&&Lc.push(n().createSetFunctionNameHelper(Fs,Le)),Et(Lc,st(xi,Fs)),Lc.push(t.cloneNode(Fs))}else Lc.push(tl);return Lc.length>1&&(dh(tl,131072),Lc.forEach(Fp)),t.inlineExpressions(Lc)}function he(fe){if(!N)return nn(fe,Fe,e)}function ue(fe){const G=!!(K0(fe)&32);if(N||R){for(const qn of fe.members)if(qp(qn))if(ia(qn))Ua(qn,qn.name,Na);else{const Di=Ks();M7(Di,qn.name,{kind:"untransformed"})}if(N&&bt($t(fe))&&_e(),Fn()){for(const qn of fe.members)if(ym(qn)){const Di=t.getGeneratedPrivateNameForNode(qn.name,void 0,"_accessor_storage");if(N||G&&R_(qn))Ua(qn,Di,al);else{const xi=Ks();M7(xi,Di,{kind:"untransformed"})}}}}let Le=dn(fe.members,Pe,yf),gt;bt(Le,Uu)||(gt=pe(void 0,fe));let Nt,Rn;if(!N&&bt(ye)){let qn=t.createExpressionStatement(t.inlineExpressions(ye));if(qn.transformFlags&134234112){const xi=t.createTempVariable(i),La=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([qn]));Nt=t.createAssignment(xi,La),qn=t.createExpressionStatement(t.createCallExpression(xi,void 0,[]))}const Di=t.createBlock([qn]);Rn=t.createClassStaticBlockDeclaration(Di),ye=void 0}if(gt||Rn){let qn;qn=Ht(qn,gt),qn=Ht(qn,Rn),qn=Et(qn,Le),Le=yt(t.createNodeArray(qn),fe.members)}return{members:Le,prologue:Nt}}function _e(){const{weakSetName:fe}=Ks().data;D.assert(fe,"weakSetName should be set in private identifier environment"),ti().push(t.createAssignment(fe,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function pe(fe,G){if(fe=Ye(fe,Fe,Uu),!(ee!=null&&ee.data)||!(ee.data.facts&16))return fe;const Le=T1(G),gt=!!(Le&&Gf(Le.expression).kind!==106),Nt=t_(fe?fe.parameters:void 0,Fe,e),Rn=q(G,fe,gt);return Rn?fe?(D.assert(Nt),t.updateConstructorDeclaration(fe,void 0,Nt,Rn)):Fp(yi(yt(t.createConstructorDeclaration(void 0,Nt!=null?Nt:[],Rn),fe||G),fe)):fe}function q(fe,G,Le){var tl;var gt;const Nt=EZ(fe,!1,!1);let Rn=Nt;y||(Rn=Mn(Rn,Lc=>!!Lc.initializer||Ea(Lc.name)||lh(Lc)));const qn=$t(fe),Di=bt(Rn)||bt(qn);if(!G&&!Di)return Wm(void 0,Fe,e);l();const xi=!G&&Le;let La=0,Fs=0,mu=-1,Hc=[];(gt=G==null?void 0:G.body)!=null&>.statements&&(Fs=t.copyPrologue(G.body.statements,Hc,!1,Fe),mu=HB(G.body.statements,Fs),mu>=0?(La=mu+1,Hc=[...Hc.slice(0,Fs),...dn(G.body.statements,Fe,us,Fs,La-Fs),...Hc.slice(Fs)]):Fs>=0&&(La=Fs)),xi&&Hc.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))])));let Gc=0;if(G!=null&&G.body){for(let Lc=La;Lc0&&(La+=Gc)}const Ef=t.createThis();if(Ui(Hc,qn,Ef),G){const Lc=Mn(Nt,su=>gm(au(su),G)),Yp=Mn(Rn,su=>!gm(au(su),G));rt(Hc,Lc,Ef),rt(Hc,Yp,Ef)}else rt(Hc,Rn,Ef);if(G&&Et(Hc,dn(G.body.statements,Fe,us,La)),Hc=t.mergeLexicalEnvironment(Hc,s()),Hc.length===0&&!G)return;const gu=G!=null&&G.body&&G.body.statements.length>=Hc.length&&(tl=G.body.multiLine)!=null?tl:Hc.length>0;return yt(t.createBlock(yt(t.createNodeArray(Hc),G?G.body.statements:fe.members),gu),G?G.body:void 0)}function rt(fe,G,Le){for(const gt of G){if(so(gt)&&!N)continue;const Nt=ar(gt,Le);Nt&&fe.push(Nt)}}function ar(fe,G){const Le=fu(fe)?nr(fe):Ft(fe,G);if(!Le)return;const gt=t.createExpressionStatement(Le);yi(gt,fe),dh(gt,_c(fe)&3072),xf(gt,fe);const Nt=au(fe);return Cs(Nt)?(Mc(gt,Nt),HN(gt)):Mc(gt,S1(fe)),F4(Le,void 0),xS(Le,void 0),lh(Nt)&&dh(gt,3072),gt}function st(fe,G){const Le=[];for(const gt of fe){const Nt=fu(gt)?nr(gt):Ft(gt,G);Nt&&(Fp(Nt),yi(Nt,gt),dh(Nt,_c(gt)&3072),Mc(Nt,S1(gt)),xf(Nt,gt),Le.push(Nt))}return Le}function Ft(fe,G){var Le;const gt=ve,Nt=zr(fe,G);return Nt&&R_(fe)&&((Le=ee==null?void 0:ee.data)!=null&&Le.facts)&&(yi(Nt,fe),dh(Nt,4),Mc(Nt,L4(fe.name)),te.set(au(fe),ee)),ve=gt,Nt}function zr(fe,G){const Le=!y;let gt;s0(fe,Y)&&(rg(fe.name)||Ea(fe.name)?gt=t.createStringLiteralFromNode(fe.name):rg(fe.name.expression)&&!Be(fe.name.expression)?gt=t.createStringLiteralFromNode(fe.name.expression):gt=t.getGeneratedNameForNode(fe.name));const Nt=lh(fe)?t.getGeneratedPrivateNameForNode(fe.name):jc(fe.name)&&!D1(fe.name.expression)?t.updateComputedPropertyName(fe.name,t.getGeneratedNameForNode(fe.name)):fe.name;R_(fe)&&(ve=fe);const Rn=gt?xi=>Ae(xi,gt):Fe;if(Ea(Nt)&&ia(fe)){const xi=du(Nt);if(xi)return xi.kind==="f"?xi.isStatic?kNe(t,xi.variableName,Ye(fe.initializer,Rn,ht)):CNe(t,G,Ye(fe.initializer,Rn,ht),xi.brandCheckIdentifier):void 0;D.fail("Undeclared private name for property declaration.")}if((Ea(Nt)||R_(fe))&&!fe.initializer)return;const qn=au(fe);if(Pi(qn,256))return;let Di=Ye(fe.initializer,Rn,ht);if(gm(qn,qn.parent)&&Be(Nt)){const xi=t.cloneNode(Nt);Di?(Md(Di)&&gI(Di.expression)&&I9(Di.expression.left,"___runInitializers")&&OS(Di.expression.right)&&Um(Di.expression.right.expression)&&(Di=Di.expression.left),Di=t.inlineExpressions([Di,xi])):Di=xi,Ln(Nt,3168),Mc(xi,qn.name),Ln(xi,3072)}else Di!=null||(Di=t.createVoidZero());if(Le||Ea(Nt)){const xi=A7(t,G,Nt,Nt);return dh(xi,1024),t.createAssignment(xi,Di)}else{const xi=jc(Nt)?Nt.expression:Be(Nt)?t.createStringLiteral(Ba(Nt.escapedText)):Nt,La=t.createPropertyDescriptor({value:Di,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(G,xi,La)}}function En(){le&1||(le|=1,e.enableSubstitution(80),ae=[])}function Ti(){le&2||(le|=2,e.enableSubstitution(110),e.enableEmitNotification(261),e.enableEmitNotification(217),e.enableEmitNotification(175),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(173),e.enableEmitNotification(171),e.enableEmitNotification(166))}function Ui(fe,G,Le){if(!N||!bt(G))return;const{weakSetName:gt}=Ks().data;D.assert(gt,"weakSetName should be set in private identifier environment"),fe.push(t.createExpressionStatement(wNe(t,Le,gt)))}function ya(fe){return mi(fe)?t.updatePropertyAccessExpression(fe,t.createVoidZero(),fe.name):t.updateElementAccessExpression(fe,t.createVoidZero(),Ye(fe.argumentExpression,Fe,ht))}function _s(fe,G,Le){if(jc(fe)){const gt=rB(fe);let Nt=Ye(fe.expression,Fe,ht);const Rn=Q0(Nt),qn=D1(Rn);if(!(!!gt||Hp(Rn)&&uu(Rn.left))&&!qn&&G){const xi=t.getGeneratedNameForNode(fe);return _.getNodeCheckFlags(fe)&32768?f(xi):i(xi),Le&&(Nt=n().createPropKeyHelper(Nt)),t.createAssignment(xi,Nt)}return qn||Be(Rn)?void 0:Nt}}function Os(){ee={previous:ee,data:void 0}}function zs(){ee=ee==null?void 0:ee.previous}function Wo(){var fe;return D.assert(ee),(fe=ee.data)!=null?fe:ee.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function Ks(){var fe;return D.assert(ee),(fe=ee.privateEnv)!=null?fe:ee.privateEnv=m0e({className:void 0,weakSetName:void 0})}function ti(){return ye!=null?ye:ye=[]}function Na(fe,G,Le,gt,Nt,Rn,qn){ym(fe)?Gs(fe,G,Le,gt,Nt,Rn,qn):fo(fe)?al(fe,G,Le,gt,Nt,Rn,qn):g_(fe)?pc(fe,G,Le,gt,Nt,Rn,qn):sg(fe)?Yr(fe,G,Le,gt,Nt,Rn,qn):u0(fe)&&os(fe,G,Le,gt,Nt,Rn,qn)}function al(fe,G,Le,gt,Nt,Rn,qn){var Di;if(Nt){const xi=D.checkDefined((Di=Le.classThis)!=null?Di:Le.classConstructor,"classConstructor should be set in private identifier environment"),La=Wl(G);M7(gt,G,{kind:"f",isStatic:!0,brandCheckIdentifier:xi,variableName:La,isValid:Rn})}else{const xi=Wl(G);M7(gt,G,{kind:"f",isStatic:!1,brandCheckIdentifier:xi,isValid:Rn}),ti().push(t.createAssignment(xi,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function pc(fe,G,Le,gt,Nt,Rn,qn){var La;const Di=Wl(G),xi=Nt?D.checkDefined((La=Le.classThis)!=null?La:Le.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(gt.data.weakSetName,"weakSetName should be set in private identifier environment");M7(gt,G,{kind:"m",methodName:Di,brandCheckIdentifier:xi,isStatic:Nt,isValid:Rn})}function Yr(fe,G,Le,gt,Nt,Rn,qn){var La;const Di=Wl(G,"_get"),xi=Nt?D.checkDefined((La=Le.classThis)!=null?La:Le.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(gt.data.weakSetName,"weakSetName should be set in private identifier environment");(qn==null?void 0:qn.kind)==="a"&&qn.isStatic===Nt&&!qn.getterName?qn.getterName=Di:M7(gt,G,{kind:"a",getterName:Di,setterName:void 0,brandCheckIdentifier:xi,isStatic:Nt,isValid:Rn})}function os(fe,G,Le,gt,Nt,Rn,qn){var La;const Di=Wl(G,"_set"),xi=Nt?D.checkDefined((La=Le.classThis)!=null?La:Le.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(gt.data.weakSetName,"weakSetName should be set in private identifier environment");(qn==null?void 0:qn.kind)==="a"&&qn.isStatic===Nt&&!qn.setterName?qn.setterName=Di:M7(gt,G,{kind:"a",getterName:void 0,setterName:Di,brandCheckIdentifier:xi,isStatic:Nt,isValid:Rn})}function Gs(fe,G,Le,gt,Nt,Rn,qn){var Fs;const Di=Wl(G,"_get"),xi=Wl(G,"_set"),La=Nt?D.checkDefined((Fs=Le.classThis)!=null?Fs:Le.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(gt.data.weakSetName,"weakSetName should be set in private identifier environment");M7(gt,G,{kind:"a",getterName:Di,setterName:xi,brandCheckIdentifier:La,isStatic:Nt,isValid:Rn})}function Ua(fe,G,Le){const gt=Wo(),Nt=Ks(),Rn=NZ(Nt,G),qn=R_(fe),Di=!ENe(G)&&Rn===void 0;Le(fe,G,gt,Nt,qn,Di,Rn)}function el(fe,G,Le){const{className:gt}=Ks().data,Nt=gt?{prefix:"_",node:gt,suffix:"_"}:"_",Rn=typeof fe=="object"?t.getGeneratedNameForNode(fe,24,Nt,Le):typeof fe=="string"?t.createUniqueName(fe,16,Nt,Le):t.createTempVariable(void 0,!0,Nt,Le);return _.getNodeCheckFlags(G)&32768?f(Rn):i(Rn),Rn}function Wl(fe,G){var gt;const Le=Jw(fe);return el((gt=Le==null?void 0:Le.substring(1))!=null?gt:fe,fe,G)}function du(fe){const G=g0e(ee,fe);return(G==null?void 0:G.kind)==="untransformed"?void 0:G}function uf(fe){const G=t.getGeneratedNameForNode(fe),Le=du(fe.name);if(!Le)return nn(fe,Fe,e);let gt=fe.expression;return(JD(fe)||fd(fe)||!N3(fe.expression))&&(gt=t.createTempVariable(i,!0),ti().push(t.createBinaryExpression(gt,64,Ye(fe.expression,Fe,ht)))),t.createAssignmentTargetWrapper(G,Ne(Le,gt,G,64))}function Ms(fe){if(Dc(fe)||Op(fe))return Nu(fe);if(I5(fe))return uf(fe);if(V&&fd(fe)&&ve&&(ee!=null&&ee.data)){const{classConstructor:G,superClassReference:Le,facts:gt}=ee.data;if(gt&1)return ya(fe);if(G&&Le){const Nt=Ll(fe)?Ye(fe.argumentExpression,Fe,ht):Be(fe.name)?t.createStringLiteralFromNode(fe.name):void 0;if(Nt){const Rn=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Rn,t.createReflectSetCall(Le,Nt,Rn,G))}}}return nn(fe,Fe,e)}function qa(fe){if(s0(fe,Y)){const G=Ms(fe.left),Le=yr(fe.left,fe.right),gt=Ye(fe.right,Nt=>Ae(Nt,Le),ht);return t.updateBinaryExpression(fe,G,fe.operatorToken,gt)}if(Hp(fe,!0)){const G=Ms(fe.left),Le=Ye(fe.right,Fe,ht);return t.updateBinaryExpression(fe,G,fe.operatorToken,Le)}return Ms(fe)}function h_(fe){if(Dd(fe.expression)){const G=Ms(fe.expression);return t.updateSpreadElement(fe,G)}return nn(fe,Fe,e)}function ru(fe){if(ND(fe)){if(gh(fe))return h_(fe);if(!sf(fe))return qa(fe)}return nn(fe,Fe,e)}function dp(fe){const G=Ye(fe.name,Fe,_u);if(Hp(fe.initializer,!0)){const Le=qa(fe.initializer);return t.updatePropertyAssignment(fe,G,Le)}if(Dd(fe.initializer)){const Le=Ms(fe.initializer);return t.updatePropertyAssignment(fe,G,Le)}return nn(fe,Fe,e)}function k_(fe){if(s0(fe,Y)){const G=yr(fe.name,fe.objectAssignmentInitializer),Le=Ye(fe.objectAssignmentInitializer,gt=>Ae(gt,G),ht);return t.updateShorthandPropertyAssignment(fe,fe.name,Le)}return nn(fe,Fe,e)}function wf(fe){if(Dd(fe.expression)){const G=Ms(fe.expression);return t.updateSpreadAssignment(fe,G)}return nn(fe,Fe,e)}function fl(fe){return D.assertNode(fe,DD),k3(fe)?wf(fe):_0(fe)?k_(fe):Y_(fe)?dp(fe):nn(fe,Fe,e)}function Nu(fe){return Op(fe)?t.updateArrayLiteralExpression(fe,dn(fe.elements,ru,ht)):t.updateObjectLiteralExpression(fe,dn(fe.properties,fl,qv))}function Cl(fe,G,Le){const gt=au(G),Nt=te.get(gt);if(Nt){const Rn=ee,qn=K;ee=Nt,K=we,we=!fu(gt)||!(K0(gt)&32),ce(fe,G,Le),we=K,K=qn,ee=Rn;return}switch(G.kind){case 217:if(Fl(gt)||_c(G)&524288)break;case 261:case 175:case 176:case 177:case 173:case 171:{const Rn=ee,qn=K;ee=void 0,K=we,we=!1,ce(fe,G,Le),we=K,K=qn,ee=Rn;return}case 166:{const Rn=ee,qn=we;ee=ee==null?void 0:ee.previous,we=K,ce(fe,G,Le),we=qn,ee=Rn;return}}ce(fe,G,Le)}function Hl(fe,G){return G=z(fe,G),fe===1?gr(G):G}function gr(fe){switch(fe.kind){case 80:return Zf(fe);case 110:return r_(fe)}return fe}function r_(fe){if(le&2&&(ee!=null&&ee.data)){const{facts:G,classConstructor:Le,classThis:gt}=ee.data;if(G&1&&T)return t.createParenthesizedExpression(t.createVoidZero());const Nt=we&>!=null?gt:Le;if(Nt)return yt(yi(t.cloneNode(Nt),fe),fe)}return fe}function Zf(fe){return _f(fe)||fe}function _f(fe){if(le&1&&_.getNodeCheckFlags(fe)&2097152){const G=_.getReferencedValueDeclaration(fe);if(G){const Le=ae[G.id];if(Le){const gt=t.cloneNode(Le);return Mc(gt,fe),xf(gt,fe),gt}}}}}function kNe(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}function CNe(e,t,n,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,n||e.createVoidZero()])}function wNe(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}function ENe(e){return!QT(e)&&e.escapedText==="#constructor"}function ANe(e){return Ea(e.left)&&e.operatorToken.kind===103}var DNe=or({"src/compiler/transformers/classFields.ts"(){"use strict";ho()}});function x0e(e){const{factory:t,hoistVariableDeclaration:n}=e,i=e.getEmitResolver(),s=e.getCompilerOptions(),o=gc(s),l=R0(s,"strictNullChecks");let f,_;return{serializeTypeNode:(ye,$)=>h(ye,O,$),serializeTypeOfNode:(ye,$)=>h(ye,y,$),serializeParameterTypesOfNode:(ye,$,ee)=>h(ye,T,$,ee),serializeReturnTypeOfNode:(ye,$)=>h(ye,E,$)};function h(ye,$,ee,te){const me=f,ve=_;f=ye.currentLexicalScope,_=ye.currentNameScope;const we=te===void 0?$(ee):$(ee,te);return f=me,_=ve,we}function m(ye){const $=i.getAllAccessorDeclarations(ye);return $.setAccessor&&$ue($.setAccessor)||$.getAccessor&&Og($.getAccessor)}function y(ye){switch(ye.kind){case 171:case 168:return O(ye.type);case 177:case 176:return O(m(ye));case 262:case 230:case 173:return t.createIdentifier("Function");default:return t.createVoidZero()}}function T(ye,$){const ee=Yi(ye)?ay(ye):Qs(ye)&&I0(ye.body)?ye:void 0,te=[];if(ee){const me=k(ee,$),ve=me.length;for(let we=0;weme.parent&&Ek(me.parent)&&(me.parent.trueType===me||me.parent.falseType===me)))return t.createIdentifier("Object");const ee=z(ye.typeName),te=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(te,ee),"function"),void 0,te,void 0,t.createIdentifier("Object"));case 1:return ce(ye.typeName);case 2:return t.createVoidZero();case 4:return ae("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return ae("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return D.assertNever($)}}function re(ye,$){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ye),t.createStringLiteral("undefined")),$)}function z(ye){if(ye.kind===80){const te=ce(ye);return re(te,te)}if(ye.left.kind===80)return re(ce(ye.left),ce(ye));const $=z(ye.left),ee=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd($.left,t.createStrictInequality(t.createAssignment(ee,$.right),t.createVoidZero())),t.createPropertyAccessExpression(ee,ye.right))}function ce(ye){switch(ye.kind){case 80:const $=fc(yt(vh.cloneNode(ye),ye),ye.parent);return $.original=void 0,fc($,gs(f)),$;case 165:return R(ye)}}function R(ye){return t.createPropertyAccessExpression(ce(ye.left),ye.right)}function le(ye){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ye),"function"),void 0,t.createIdentifier(ye),void 0,t.createIdentifier("Object"))}function ae(ye,$){return o<$?le(ye):t.createIdentifier(ye)}}var NNe=or({"src/compiler/transformers/typeSerializer.ts"(){"use strict";ho()}});function T0e(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i}=e,s=e.getEmitResolver(),o=e.getCompilerOptions(),l=gc(o),f=e.onSubstituteNode;e.onSubstituteNode=nt;let _;return ug(e,h);function h(Qe){const Mt=nn(Qe,y,e);return Kv(Mt,e.readEmitHelpers()),Mt}function m(Qe){return lp(Qe)?void 0:Qe}function y(Qe){if(!(Qe.transformFlags&33554432))return Qe;switch(Qe.kind){case 169:return;case 262:return T(Qe);case 230:return V(Qe);case 175:return re(Qe);case 173:return ce(Qe);case 177:return le(Qe);case 176:return R(Qe);case 171:return ae(Qe);case 168:return ye(Qe);default:return nn(Qe,y,e)}}function T(Qe){if(!(s3(!0,Qe)||Ww(!0,Qe)))return nn(Qe,y,e);const Mt=s3(!0,Qe)?U(Qe,Qe.name):B(Qe,Qe.name);return Ci(Mt)}function k(Qe){return!!(Qe.transformFlags&536870912)}function E(Qe){return bt(Qe,k)}function O(Qe){for(const Mt of Qe.members){if(!jS(Mt))continue;const yr=XB(Mt,Qe,!0);if(bt(yr==null?void 0:yr.decorators,k)||bt(yr==null?void 0:yr.parameters,E))return!0}return!1}function N(Qe,Mt){let yr=[];return te(yr,Qe,!1),te(yr,Qe,!0),O(Qe)&&(Mt=yt(t.createNodeArray([...Mt,t.createClassStaticBlockDeclaration(t.createBlock(yr,!0))]),Mt),yr=void 0),{decorationStatements:yr,members:Mt}}function B(Qe,Mt){const yr=dn(Qe.modifiers,m,Do),Cr=dn(Qe.heritageClauses,y,Kd);let Lt=dn(Qe.members,y,yf),an=[];({members:Lt,decorationStatements:an}=N(Qe,Lt));const xn=t.updateClassDeclaration(Qe,yr,Mt,void 0,Cr,Lt);return Et([xn],an)}function U(Qe,Mt){const yr=Pi(Qe,1),Cr=Pi(Qe,1024),Lt=dn(Qe.modifiers,$r=>bI($r)||lp($r)?void 0:$r,Ul),an=S1(Qe),xn=He(Qe),Lr=l<2?t.getInternalName(Qe,!1,!0):t.getLocalName(Qe,!1,!0),In=dn(Qe.heritageClauses,y,Kd);let vi=dn(Qe.members,y,yf),ia=[];({members:vi,decorationStatements:ia}=N(Qe,vi));const Wa=l>=9&&!!xn&&bt(vi,$r=>fo($r)&&Pi($r,32)||fu($r));Wa&&(vi=yt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(xn,t.createThis()))])),...vi]),vi));const bi=t.createClassExpression(Lt,Mt&&uu(Mt)?void 0:Mt,void 0,In,vi);yi(bi,Qe),yt(bi,an);const Pt=t.createVariableDeclaration(Lr,void 0,void 0,xn&&!Wa?t.createAssignment(xn,bi):bi);yi(Pt,Qe);let Ar;yr&&!Cr&&(Ar=t.createModifiersFromModifierFlags(1));const Yt=t.createVariableStatement(Ar,t.createVariableDeclarationList([Pt],1));yi(Yt,Qe),yt(Yt,an),xf(Yt,Qe);const Qr=[Yt];return Et(Qr,ia),Ze(Qr,Qe),yr&&Cr&&Qr.push(t.createExportAssignment(void 0,!1,Lr)),Qr}function V(Qe){return t.updateClassExpression(Qe,dn(Qe.modifiers,m,Do),Qe.name,void 0,dn(Qe.heritageClauses,y,Kd),dn(Qe.members,y,yf))}function re(Qe){return t.updateConstructorDeclaration(Qe,dn(Qe.modifiers,m,Do),dn(Qe.parameters,y,Cs),Ye(Qe.body,y,oo))}function z(Qe,Mt){return Qe!==Mt&&(xf(Qe,Mt),Mc(Qe,S1(Mt))),Qe}function ce(Qe){return z(t.updateMethodDeclaration(Qe,dn(Qe.modifiers,m,Do),Qe.asteriskToken,D.checkDefined(Ye(Qe.name,y,_u)),void 0,void 0,dn(Qe.parameters,y,Cs),void 0,Ye(Qe.body,y,oo)),Qe)}function R(Qe){return z(t.updateGetAccessorDeclaration(Qe,dn(Qe.modifiers,m,Do),D.checkDefined(Ye(Qe.name,y,_u)),dn(Qe.parameters,y,Cs),void 0,Ye(Qe.body,y,oo)),Qe)}function le(Qe){return z(t.updateSetAccessorDeclaration(Qe,dn(Qe.modifiers,m,Do),D.checkDefined(Ye(Qe.name,y,_u)),dn(Qe.parameters,y,Cs),Ye(Qe.body,y,oo)),Qe)}function ae(Qe){if(!(Qe.flags&16777216||Pi(Qe,2)))return z(t.updatePropertyDeclaration(Qe,dn(Qe.modifiers,m,Do),D.checkDefined(Ye(Qe.name,y,_u)),void 0,void 0,Ye(Qe.initializer,y,ht)),Qe)}function ye(Qe){const Mt=t.updateParameterDeclaration(Qe,Npe(t,Qe.modifiers),Qe.dotDotDotToken,D.checkDefined(Ye(Qe.name,y,Kh)),void 0,void 0,Ye(Qe.initializer,y,ht));return Mt!==Qe&&(xf(Mt,Qe),yt(Mt,S1(Qe)),Mc(Mt,S1(Qe)),Ln(Mt.name,64)),Mt}function $(Qe){return I9(Qe.expression,"___metadata")}function ee(Qe){if(!Qe)return;const{false:Mt,true:yr}=X2(Qe.decorators,$),Cr=[];return Et(Cr,er(Mt,Fe)),Et(Cr,lo(Qe.parameters,Ue)),Et(Cr,er(yr,Fe)),Cr}function te(Qe,Mt,yr){Et(Qe,er(we(Mt,yr),Cr=>t.createExpressionStatement(Cr)))}function me(Qe,Mt,yr){return VD(!0,Qe,yr)&&Mt===so(Qe)}function ve(Qe,Mt){return Mn(Qe.members,yr=>me(yr,Mt,Qe))}function we(Qe,Mt){const yr=ve(Qe,Mt);let Cr;for(const Lt of yr)Cr=Ht(Cr,K(Qe,Lt));return Cr}function K(Qe,Mt){const yr=XB(Mt,Qe,!0),Cr=ee(yr);if(!Cr)return;const Lt=Pe(Qe,Mt),an=Ae(Mt,!Pi(Mt,2)),xn=l>0?fo(Mt)&&!lh(Mt)?t.createVoidZero():t.createNull():void 0,Lr=n().createDecorateHelper(Cr,Lt,an,xn);return Ln(Lr,3072),Mc(Lr,S1(Mt)),Lr}function Ze(Qe,Mt){const yr=Re(Mt);yr&&Qe.push(yi(t.createExpressionStatement(yr),Mt))}function Re(Qe){const Mt=DZ(Qe),yr=ee(Mt);if(!yr)return;const Cr=_&&_[_p(Qe)],Lt=l<2?t.getInternalName(Qe,!1,!0):t.getDeclarationName(Qe,!1,!0),an=n().createDecorateHelper(yr,Lt),xn=t.createAssignment(Lt,Cr?t.createAssignment(Cr,an):an);return Ln(xn,3072),Mc(xn,S1(Qe)),xn}function Fe(Qe){return D.checkDefined(Ye(Qe.expression,y,ht))}function Ue(Qe,Mt){let yr;if(Qe){yr=[];for(const Cr of Qe){const Lt=n().createParamHelper(Fe(Cr),Mt);yt(Lt,Cr.expression),Ln(Lt,3072),yr.push(Lt)}}return yr}function Ae(Qe,Mt){const yr=Qe.name;return Ea(yr)?t.createIdentifier(""):jc(yr)?Mt&&!D1(yr.expression)?t.getGeneratedNameForNode(yr):yr.expression:Be(yr)?t.createStringLiteral(ri(yr)):t.cloneNode(yr)}function Me(){_||(e.enableSubstitution(80),_=[])}function He(Qe){if(s.getNodeCheckFlags(Qe)&1048576){Me();const Mt=t.createUniqueName(Qe.name&&!uu(Qe.name)?ri(Qe.name):"default");return _[_p(Qe)]=Mt,i(Mt),Mt}}function je(Qe){return t.createPropertyAccessExpression(t.getDeclarationName(Qe),"prototype")}function Pe(Qe,Mt){return so(Mt)?t.getDeclarationName(Qe):je(Qe)}function nt(Qe,Mt){return Mt=f(Qe,Mt),Qe===1?wt(Mt):Mt}function wt(Qe){switch(Qe.kind){case 80:return xt(Qe)}return Qe}function xt(Qe){var Mt;return(Mt=Zt(Qe))!=null?Mt:Qe}function Zt(Qe){if(_&&s.getNodeCheckFlags(Qe)&2097152){const Mt=s.getReferencedValueDeclaration(Qe);if(Mt){const yr=_[Mt.id];if(yr){const Cr=t.cloneNode(yr);return Mc(Cr,Qe),xf(Cr,Qe),Cr}}}}}var INe=or({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";ho()}});function S0e(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,l=e.getCompilerOptions(),f=gc(l);let _,h,m,y,T,k;return ug(e,E);function E(w){_=void 0,k=!1;const ge=nn(w,ae,e);return Kv(ge,e.readEmitHelpers()),k&&(bS(ge,32),k=!1),ge}function O(){switch(h=void 0,m=void 0,y=void 0,_==null?void 0:_.kind){case"class":h=_.classInfo;break;case"class-element":h=_.next.classInfo,m=_.classThis,y=_.classSuper;break;case"name":const w=_.next.next.next;(w==null?void 0:w.kind)==="class-element"&&(h=w.next.classInfo,m=w.classThis,y=w.classSuper);break}}function N(w){_={kind:"class",next:_,classInfo:w,savedPendingExpressions:T},T=void 0,O()}function B(){D.assert((_==null?void 0:_.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${_==null?void 0:_.kind}' instead.`),T=_.savedPendingExpressions,_=_.next,O()}function U(w){var ge,he;D.assert((_==null?void 0:_.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${_==null?void 0:_.kind}' instead.`),_={kind:"class-element",next:_},(fu(w)||fo(w)&&R_(w))&&(_.classThis=(ge=_.next.classInfo)==null?void 0:ge.classThis,_.classSuper=(he=_.next.classInfo)==null?void 0:he.classSuper),O()}function V(){var w;D.assert((_==null?void 0:_.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${_==null?void 0:_.kind}' instead.`),D.assert(((w=_.next)==null?void 0:w.kind)==="class","Incorrect value for top.next.kind.",()=>{var ge;return`Expected top.next.kind to be 'class' but got '${(ge=_.next)==null?void 0:ge.kind}' instead.`}),_=_.next,O()}function re(){D.assert((_==null?void 0:_.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${_==null?void 0:_.kind}' instead.`),_={kind:"name",next:_},O()}function z(){D.assert((_==null?void 0:_.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${_==null?void 0:_.kind}' instead.`),_=_.next,O()}function ce(){(_==null?void 0:_.kind)==="other"?(D.assert(!T),_.depth++):(_={kind:"other",next:_,depth:0,savedPendingExpressions:T},T=void 0,O())}function R(){D.assert((_==null?void 0:_.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${_==null?void 0:_.kind}' instead.`),_.depth>0?(D.assert(!T),_.depth--):(T=_.savedPendingExpressions,_=_.next,O())}function le(w){return!!(w.transformFlags&33554432)||!!m&&!!(w.transformFlags&16384)||!!m&&!!y&&!!(w.transformFlags&134217728)}function ae(w){if(!le(w))return w;switch(w.kind){case 169:return D.fail("Use `modifierVisitor` instead.");case 262:return Ae(w);case 230:return Me(w,void 0);case 175:case 171:case 174:return D.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 168:return Lr(w);case 225:return Wa(w,!1);case 302:return $r(w);case 259:return Fn(w);case 207:return ja(w);case 276:return Wt(w);case 110:return yr(w);case 247:return vi(w);case 243:return ia(w);case 360:return Pt(w,!1);case 216:return nr(w,!1,void 0);case 359:return Y(w,!1,void 0);case 212:return Cr(w);case 214:return Lt(w);case 223:case 224:return bi(w,!1);case 210:return an(w);case 211:return xn(w);case 166:return Qr(w);case 173:case 177:case 176:case 217:case 261:{ce();const ge=nn(w,ye,e);return R(),ge}default:return nn(w,ye,e)}}function ye(w){switch(w.kind){case 169:return;default:return ae(w)}}function $(w){switch(w.kind){case 169:return;default:return w}}function ee(w){switch(w.kind){case 175:return je(w);case 173:return wt(w);case 176:return xt(w);case 177:return Zt(w);case 171:return Mt(w);case 174:return Qe(w);default:return ae(w)}}function te(w,ge){switch(w.kind){case 359:return Y(w,!1,ge);case 216:return nr(w,!1,ge);case 230:return Me(w,ge);default:return ae(w)}}function me(w){switch(w.kind){case 223:case 224:return bi(w,!0);case 225:return Wa(w,!0);case 360:return Pt(w,!0);case 216:return nr(w,!0,void 0);default:return ae(w)}}function ve(w){let ge=w.name&&Be(w.name)&&!uu(w.name)?ri(w.name):w.name&&Ea(w.name)&&!uu(w.name)?ri(w.name).slice(1):w.name&&sc(w.name)&&r0(w.name.text,99)?w.name.text:Yi(w)?"class":"member";return cb(w)&&(ge=`get_${ge}`),$v(w)&&(ge=`set_${ge}`),w.name&&Ea(w.name)&&(ge=`private_${ge}`),so(w)&&(ge=`static_${ge}`),"_"+ge}function we(w,ge){return t.createUniqueName(`${ve(w)}_${ge}`,24)}function K(w,ge){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(w,void 0,void 0,ge)],1))}function Ze(w){let ge,he,ue=!1,_e=!1,pe=!1;for(const q of w.members)if(yle(q)&&VD(!1,q,w)&&(R_(q)?he!=null||(he=t.createUniqueName("_staticExtraInitializers",16)):ge!=null||(ge=t.createUniqueName("_instanceExtraInitializers",16))),fu(q)?ue=!0:fo(q)&&(R_(q)?ue||(ue=!!q.initializer||o0(q)):_e||(_e=!m$(q))),(qp(q)||ym(q))&&R_(q)&&(pe=!0),he&&ge&&ue&&_e&&pe)break;return{class:w,instanceExtraInitializersName:ge,staticExtraInitializersName:he,hasStaticInitializers:ue,hasNonAmbientInstanceFields:_e,hasStaticPrivateClassElements:pe}}function Re(w){for(const ge of w.members)if((fu(ge)||fo(ge)&&R_(ge))&&ge.transformFlags&134217728)return!0;return!1}function Fe(w,ge){var zs,Wo,Ks;var he;i();const ue=t.getLocalName(w,!1,!1,!0),_e=Ze(w),pe=[];let q,rt,ar,st,Ft=!1;const zr=dt(DZ(w));if(zr&&(_e.classDecoratorsName=t.createUniqueName("_classDecorators",16),_e.classDescriptorName=t.createUniqueName("_classDescriptor",16),_e.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",16),_e.classThis=t.createUniqueName("_classThis",16),pe.push(K(_e.classDecoratorsName,t.createArrayLiteralExpression(zr)),K(_e.classDescriptorName),K(_e.classExtraInitializersName,t.createArrayLiteralExpression()),K(_e.classThis)),_e.hasStaticPrivateClassElements&&(Ft=!0,k=!0)),zr&&Re(w)){const ti=_N(w.heritageClauses,96),Na=ti&&Ji(ti.types),al=Na&&Ye(Na.expression,ae,ht);if(al){_e.classSuper=t.createUniqueName("_classSuper",16);const pc=Gf(al),Yr=Mp(pc)&&!pc.name||_l(pc)&&!pc.name||Fl(pc)?t.createComma(t.createNumericLiteral(0),al):al;pe.push(K(_e.classSuper,Yr));const os=t.updateExpressionWithTypeArguments(Na,_e.classSuper,void 0),Gs=t.updateHeritageClause(ti,[os]);st=t.createNodeArray([Gs])}}else st=dn(w.heritageClauses,ae,Kd);const En=(zs=_e.classThis)!=null?zs:t.createThis();if(!((he=au(w,Yi))!=null&&he.name)&&(zr||!sc(ge)||!E$(ge))){const ti=n().createSetFunctionNameHelper(t.createThis(),ge);q=Ht(q,t.createExpressionStatement(ti))}N(_e);let Ui=dn(w.members,ee,yf);if(T){let ti;for(let Na of T){Na=Ye(Na,function pc(Yr){if(!(Yr.transformFlags&16384))return Yr;switch(Yr.kind){case 110:return ti||(ti=t.createUniqueName("_outerThis",16),pe.unshift(K(ti,t.createThis()))),ti;default:return nn(Yr,pc,e)}},ht);const al=t.createExpressionStatement(Na);q=Ht(q,al)}T=void 0}if(B(),_e.instanceExtraInitializersName&&!ay(w)){const ti=He(w,_e);if(ti){const Na=T1(w),al=!!(Na&&Gf(Na.expression).kind!==106),pc=[];if(al){const os=t.createSpreadElement(t.createIdentifier("arguments")),Gs=t.createCallExpression(t.createSuper(),void 0,[os]);pc.push(t.createExpressionStatement(Gs))}Et(pc,ti);const Yr=t.createBlock(pc,!0);ar=t.createConstructorDeclaration(void 0,[],Yr)}}if(_e.staticExtraInitializersName&&pe.push(K(_e.staticExtraInitializersName,t.createArrayLiteralExpression())),_e.instanceExtraInitializersName&&pe.push(K(_e.instanceExtraInitializersName,t.createArrayLiteralExpression())),_e.memberInfos&&Zd(_e.memberInfos,(ti,Na)=>{so(Na)&&(pe.push(K(ti.memberDecoratorsName)),ti.memberInitializersName&&pe.push(K(ti.memberInitializersName,t.createArrayLiteralExpression())),ti.memberDescriptorName&&pe.push(K(ti.memberDescriptorName)))}),_e.memberInfos&&Zd(_e.memberInfos,(ti,Na)=>{so(Na)||(pe.push(K(ti.memberDecoratorsName)),ti.memberInitializersName&&pe.push(K(ti.memberInitializersName,t.createArrayLiteralExpression())),ti.memberDescriptorName&&pe.push(K(ti.memberDescriptorName)))}),q=Et(q,_e.staticNonFieldDecorationStatements),q=Et(q,_e.nonStaticNonFieldDecorationStatements),q=Et(q,_e.staticFieldDecorationStatements),q=Et(q,_e.nonStaticFieldDecorationStatements),_e.classDescriptorName&&_e.classDecoratorsName&&_e.classExtraInitializersName&&_e.classThis){q!=null||(q=[]);const ti=t.createPropertyAssignment("value",t.createThis()),Na=t.createObjectLiteralExpression([ti]),al=t.createAssignment(_e.classDescriptorName,Na),pc=t.createPropertyAccessExpression(t.createThis(),"name"),Yr=n().createESDecorateHelper(t.createNull(),al,_e.classDecoratorsName,{kind:"class",name:pc},t.createNull(),_e.classExtraInitializersName),os=t.createExpressionStatement(Yr);Mc(os,db(w)),q.push(os);const Gs=t.createPropertyAccessExpression(_e.classDescriptorName,"value"),Ua=t.createAssignment(_e.classThis,Gs),el=t.createAssignment(ue,Ua);q.push(t.createExpressionStatement(el))}if(_e.staticExtraInitializersName){const ti=n().createRunInitializersHelper(En,_e.staticExtraInitializersName),Na=t.createExpressionStatement(ti);Mc(Na,(Wo=w.name)!=null?Wo:db(w)),q=Ht(q,Na)}if(_e.classExtraInitializersName){const ti=n().createRunInitializersHelper(En,_e.classExtraInitializersName),Na=t.createExpressionStatement(ti);Mc(Na,(Ks=w.name)!=null?Ks:db(w)),rt=Ht(rt,Na)}q&&rt&&!_e.hasStaticInitializers&&(Et(q,rt),rt=void 0);let ya=Ui;if(q){const ti=t.createBlock(q,!0),Na=t.createClassStaticBlockDeclaration(ti);Ft&&GN(Na,32),ya=[Na,...ya]}if(ar&&(ya=[...ya,ar]),rt){const ti=t.createBlock(rt,!0),Na=t.createClassStaticBlockDeclaration(ti);ya=[...ya,Na]}ya!==Ui&&(Ui=yt(t.createNodeArray(ya),Ui));const _s=s();let Os;if(zr){Os=t.createClassExpression(void 0,void 0,void 0,st,Ui);const ti=t.createVariableDeclaration(ue,void 0,void 0,Os),Na=t.createVariableDeclarationList([ti]),al=_e.classThis?t.createAssignment(ue,_e.classThis):ue;pe.push(t.createVariableStatement(void 0,Na),t.createReturnStatement(al))}else Os=t.createClassExpression(void 0,w.name,void 0,st,Ui),pe.push(t.createReturnStatement(Os));if(Ft){bS(Os,32);for(const ti of Os.members)(qp(ti)||ym(ti))&&R_(ti)&&bS(ti,32)}return yi(Os,w),Gp(Os).classThis=_e.classThis,t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(pe,_s))}function Ue(w){return s3(!1,w)||Ww(!1,w)}function Ae(w){var ge;if(Ue(w))if(Pi(w,1)&&Pi(w,1024)){const he=(ge=au(w,Yi))!=null?ge:w,ue=he.name?t.createStringLiteralFromNode(he.name):t.createStringLiteral("default"),_e=Fe(w,ue),pe=t.createExportDefault(_e);return yi(pe,w),xf(pe,mh(w)),Mc(pe,db(w)),pe}else{D.assertIsDefined(w.name,"A class declaration that is not a default export must have a name.");const he=Fe(w,t.createStringLiteralFromNode(w.name)),ue=dn(w.modifiers,$,Do),_e=f<=2?t.getInternalName(w,!1,!0):t.getLocalName(w,!1,!0),pe=t.createVariableDeclaration(_e,void 0,void 0,he);yi(pe,w);const q=t.createVariableDeclarationList([pe],1),rt=t.createVariableStatement(ue,q);return yi(rt,w),xf(rt,mh(w)),rt}else{const he=dn(w.modifiers,$,Do),ue=dn(w.heritageClauses,ae,Kd);N(void 0);const _e=dn(w.members,ee,yf);return B(),t.updateClassDeclaration(w,he,w.name,void 0,ue,_e)}}function Me(w,ge){if(Ue(w)){const he=w.name?t.createStringLiteralFromNode(w.name):ge!=null?ge:t.createStringLiteral(""),ue=Fe(w,he);return yi(ue,w),ue}else{const he=dn(w.modifiers,$,Do),ue=dn(w.heritageClauses,ae,Kd);N(void 0);const _e=dn(w.members,ee,yf);return B(),t.updateClassExpression(w,he,w.name,void 0,ue,_e)}}function He(w,ge){if(ge.instanceExtraInitializersName&&!ge.hasNonAmbientInstanceFields){const he=[];return he.push(t.createExpressionStatement(n().createRunInitializersHelper(t.createThis(),ge.instanceExtraInitializersName))),he}}function je(w){U(w);const ge=dn(w.modifiers,$,Do),he=dn(w.parameters,ae,Cs);let ue;if(w.body&&h){const _e=He(h.class,h);if(_e){const pe=[],q=t.copyPrologue(w.body.statements,pe,!1,ae),rt=HB(w.body.statements,q);rt>=0?(Et(pe,dn(w.body.statements,ae,us,q,rt+1-q)),Et(pe,_e),Et(pe,dn(w.body.statements,ae,us,rt+1))):(Et(pe,_e),Et(pe,dn(w.body.statements,ae,us))),ue=t.createBlock(pe,!0),yi(ue,w.body),yt(ue,w.body)}}return ue!=null||(ue=Ye(w.body,ae,oo)),V(),t.updateConstructorDeclaration(w,ge,he,ue)}function Pe(w,ge){return w!==ge&&(xf(w,ge),Mc(w,db(ge))),w}function nt(w,ge,he,ue){var zr,En,Ti,Ui,ya,_s,Os,zs;let _e,pe,q,rt,ar;if(!he){const Wo=dn(w.modifiers,$,Do);return re(),ge?{referencedName:_e,name:pe}=Ar(w.name):pe=Yt(w.name),z(),{modifiers:Wo,referencedName:_e,name:pe,initializersName:q,descriptorName:ar,thisArg:rt}}const st=dt(XB(w,he.class,!1)),Ft=dn(w.modifiers,$,Do);if(st){const Wo=we(w,"decorators"),Ks=t.createArrayLiteralExpression(st),ti=t.createAssignment(Wo,Ks),Na={memberDecoratorsName:Wo};(zr=he.memberInfos)!=null||(he.memberInfos=new Map),he.memberInfos.set(w,Na),T!=null||(T=[]),T.push(ti);const al=O5(w)||ym(w)?so(w)?(En=he.staticNonFieldDecorationStatements)!=null?En:he.staticNonFieldDecorationStatements=[]:(Ti=he.nonStaticNonFieldDecorationStatements)!=null?Ti:he.nonStaticNonFieldDecorationStatements=[]:fo(w)&&!ym(w)?so(w)?(Ui=he.staticFieldDecorationStatements)!=null?Ui:he.staticFieldDecorationStatements=[]:(ya=he.nonStaticFieldDecorationStatements)!=null?ya:he.nonStaticFieldDecorationStatements=[]:D.fail(),pc=sg(w)?"getter":u0(w)?"setter":g_(w)?"method":ym(w)?"accessor":fo(w)?"field":D.fail();let Yr;if(Be(w.name)||Ea(w.name))Yr={computed:!1,name:w.name};else if(rg(w.name))Yr={computed:!0,name:t.createStringLiteralFromNode(w.name)};else{const Ua=w.name.expression;rg(Ua)&&!Be(Ua)?Yr={computed:!0,name:t.createStringLiteralFromNode(Ua)}:(re(),{referencedName:_e,name:pe}=Ar(w.name),Yr={computed:!0,name:_e},z())}const os={kind:pc,name:Yr,static:so(w),private:Ea(w.name),access:{get:fo(w)||sg(w)||g_(w),set:fo(w)||u0(w)}},Gs=so(w)?(_s=he.staticExtraInitializersName)!=null?_s:he.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",16):(Os=he.instanceExtraInitializersName)!=null?Os:he.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",16);if(O5(w)){let Ua;qp(w)&&ue&&(Ua=ue(w,dn(Ft,du=>di(du,P9),Do)),Na.memberDescriptorName=ar=we(w,"descriptor"),Ua=t.createAssignment(ar,Ua));const el=n().createESDecorateHelper(t.createThis(),Ua!=null?Ua:t.createNull(),Wo,os,t.createNull(),Gs),Wl=t.createExpressionStatement(el);Mc(Wl,db(w)),al.push(Wl)}else if(fo(w)){q=(zs=Na.memberInitializersName)!=null?zs:Na.memberInitializersName=we(w,"initializers"),so(w)&&(rt=he.classThis);let Ua;qp(w)&&lh(w)&&ue&&(Ua=ue(w,void 0),Na.memberDescriptorName=ar=we(w,"descriptor"),Ua=t.createAssignment(ar,Ua));const el=n().createESDecorateHelper(ym(w)?t.createThis():t.createNull(),Ua!=null?Ua:t.createNull(),Wo,os,q,Gs),Wl=t.createExpressionStatement(el);Mc(Wl,db(w)),al.push(Wl)}}return pe===void 0&&(re(),ge?{referencedName:_e,name:pe}=Ar(w.name):pe=Yt(w.name),z()),!bt(Ft)&&(g_(w)||fo(w))&&Ln(pe,1024),{modifiers:Ft,referencedName:_e,name:pe,initializersName:q,descriptorName:ar,thisArg:rt}}function wt(w){U(w);const{modifiers:ge,name:he,descriptorName:ue}=nt(w,!1,h,fr);if(ue)return V(),Pe(Pr(ge,he,ue),w);{const _e=dn(w.parameters,ae,Cs),pe=Ye(w.body,ae,oo);return V(),Pe(t.updateMethodDeclaration(w,ge,w.asteriskToken,he,void 0,void 0,_e,void 0,pe),w)}}function xt(w){U(w);const{modifiers:ge,name:he,descriptorName:ue}=nt(w,!1,h,Ne);if(ue)return V(),Pe(li(ge,he,ue),w);{const _e=dn(w.parameters,ae,Cs),pe=Ye(w.body,ae,oo);return V(),Pe(t.updateGetAccessorDeclaration(w,ge,he,_e,void 0,pe),w)}}function Zt(w){U(w);const{modifiers:ge,name:he,descriptorName:ue}=nt(w,!1,h,$t);if(ue)return V(),Pe(Yn(ge,he,ue),w);{const _e=dn(w.parameters,ae,Cs),pe=Ye(w.body,ae,oo);return V(),Pe(t.updateSetAccessorDeclaration(w,ge,he,_e,pe),w)}}function Qe(w){U(w),h&&(h.hasStaticInitializers=!0);const ge=nn(w,ae,e);return V(),ge}function Mt(w){U(w),D.assert(!m$(w),"Not yet implemented.");const ge=s0(w,In),{modifiers:he,name:ue,referencedName:_e,initializersName:pe,descriptorName:q,thisArg:rt}=nt(w,ge,h,lh(w)?Jt:void 0);i();let ar=_e?Ye(w.initializer,Ft=>te(Ft,_e),ht):Ye(w.initializer,ae,ht);pe&&(ar=n().createRunInitializersHelper(rt!=null?rt:t.createThis(),pe,ar!=null?ar:t.createVoidZero())),!so(w)&&(h!=null&&h.instanceExtraInitializersName)&&!(h!=null&&h.hasInjectedInstanceInitializers)&&(h.hasInjectedInstanceInitializers=!0,ar!=null||(ar=t.createVoidZero()),ar=t.createParenthesizedExpression(t.createComma(n().createRunInitializersHelper(t.createThis(),h.instanceExtraInitializersName),ar))),so(w)&&h&&ar&&(h.hasStaticInitializers=!0);const st=s();if(bt(st)&&(ar=t.createImmediatelyInvokedArrowFunction([...st,t.createReturnStatement(ar)])),V(),lh(w)&&q){const Ft=mh(w),zr=L4(w),En=w.name;let Ti=En,Ui=En;if(jc(En)&&!D1(En.expression)){const Wo=rB(En);if(Wo)Ti=t.updateComputedPropertyName(En,Ye(En.expression,ae,ht)),Ui=t.updateComputedPropertyName(En,Wo.left);else{const Ks=t.createTempVariable(o);Mc(Ks,En.expression);const ti=Ye(En.expression,ae,ht),Na=t.createAssignment(Ks,ti);Mc(Na,En.expression),Ti=t.updateComputedPropertyName(En,Na),Ui=t.updateComputedPropertyName(En,Ks)}}const ya=dn(he,Wo=>Wo.kind!==129?Wo:void 0,Do),_s=sX(t,w,ya,ar);yi(_s,w),Ln(_s,3072),Mc(_s,zr),Mc(_s.name,w.name);const Os=li(ya,Ti,q);yi(Os,w),xf(Os,Ft),Mc(Os,zr);const zs=Yn(ya,Ui,q);return yi(zs,w),Ln(zs,3072),Mc(zs,zr),[_s,Os,zs]}return Pe(t.updatePropertyDeclaration(w,he,ue,void 0,void 0,ar),w)}function yr(w){return m!=null?m:w}function Cr(w){if(fd(w.expression)&&m){const ge=Ye(w.expression,ae,ht),he=dn(w.arguments,ae,ht),ue=t.createFunctionCallCall(ge,m,he);return yi(ue,w),yt(ue,w),ue}return nn(w,ae,e)}function Lt(w){if(fd(w.tag)&&m){const ge=Ye(w.tag,ae,ht),he=t.createFunctionBindCall(ge,m,[]);yi(he,w),yt(he,w);const ue=Ye(w.template,ae,M5);return t.updateTaggedTemplateExpression(w,he,void 0,ue)}return nn(w,ae,e)}function an(w){if(fd(w)&&Be(w.name)&&m&&y){const ge=t.createStringLiteralFromNode(w.name),he=t.createReflectGetCall(y,ge,m);return yi(he,w.expression),yt(he,w.expression),he}return nn(w,ae,e)}function xn(w){if(fd(w)&&m&&y){const ge=Ye(w.argumentExpression,ae,ht),he=t.createReflectGetCall(y,ge,m);return yi(he,w.expression),yt(he,w.expression),he}return nn(w,ae,e)}function Lr(w){let ge;if(s0(w,In)){const he=Jn(w.name,w.initializer),ue=Ye(w.name,ae,Kh),_e=Ye(w.initializer,pe=>te(pe,he),ht);ge=t.updateParameterDeclaration(w,void 0,void 0,ue,void 0,void 0,_e)}else ge=t.updateParameterDeclaration(w,void 0,w.dotDotDotToken,Ye(w.name,ae,Kh),void 0,void 0,Ye(w.initializer,ae,ht));return ge!==w&&(xf(ge,w),yt(ge,S1(w)),Mc(ge,S1(w)),Ln(ge.name,64)),ge}function In(w){return Mp(w)&&!w.name&&Ue(w)}function vi(w){return t.updateForStatement(w,Ye(w.initializer,me,i0),Ye(w.condition,ae,ht),Ye(w.incrementor,me,ht),Xp(w.statement,ae,e))}function ia(w){return nn(w,me,e)}function Wa(w,ge){if(Zv(w)){const he=it(w.left),ue=Ye(w.right,ae,ht);return t.updateBinaryExpression(w,he,w.operatorToken,ue)}if(Hp(w)){if(s0(w,In)){const he=Jn(w.left,w.right),ue=Ye(w.left,ae,ht),_e=Ye(w.right,pe=>te(pe,he),ht);return t.updateBinaryExpression(w,ue,w.operatorToken,_e)}if(fd(w.left)&&m&&y){let he=Ll(w.left)?Ye(w.left.argumentExpression,ae,ht):Be(w.left.name)?t.createStringLiteralFromNode(w.left.name):void 0;if(he){let ue=Ye(w.right,ae,ht);if(sE(w.operatorToken.kind)){let pe=he;D1(he)||(pe=t.createTempVariable(o),he=t.createAssignment(pe,he));const q=t.createReflectGetCall(y,pe,m);yi(q,w.left),yt(q,w.left),ue=t.createBinaryExpression(q,oE(w.operatorToken.kind),ue),yt(ue,w)}const _e=ge?void 0:t.createTempVariable(o);return _e&&(ue=t.createAssignment(_e,ue),yt(_e,w)),ue=t.createReflectSetCall(y,he,ue,m),yi(ue,w),yt(ue,w),_e&&(ue=t.createComma(ue,_e),yt(ue,w)),ue}}}if(w.operatorToken.kind===28){const he=Ye(w.left,me,ht),ue=Ye(w.right,ge?me:ae,ht);return t.updateBinaryExpression(w,he,w.operatorToken,ue)}return nn(w,ae,e)}function bi(w,ge){if(w.operator===46||w.operator===47){const he=kl(w.operand);if(fd(he)&&m&&y){let ue=Ll(he)?Ye(he.argumentExpression,ae,ht):Be(he.name)?t.createStringLiteralFromNode(he.name):void 0;if(ue){let _e=ue;D1(ue)||(_e=t.createTempVariable(o),ue=t.createAssignment(_e,ue));let pe=t.createReflectGetCall(y,_e,m);yi(pe,w),yt(pe,w);const q=ge?void 0:t.createTempVariable(o);return pe=GR(t,w,pe,o,q),pe=t.createReflectSetCall(y,ue,pe,m),yi(pe,w),yt(pe,w),q&&(pe=t.createComma(pe,q),yt(pe,w)),pe}}}return nn(w,ae,e)}function Pt(w,ge){const he=ge?QI(w.elements,me):QI(w.elements,ae,me);return t.updateCommaListExpression(w,he)}function Ar(w){if(rg(w)||Ea(w)){const pe=t.createStringLiteralFromNode(w),q=Ye(w,ae,_u);return{referencedName:pe,name:q}}if(rg(w.expression)&&!Be(w.expression)){const pe=t.createStringLiteralFromNode(w.expression),q=Ye(w,ae,_u);return{referencedName:pe,name:q}}const ge=t.getGeneratedNameForNode(w);o(ge);const he=n().createPropKeyHelper(Ye(w.expression,ae,ht)),ue=t.createAssignment(ge,he),_e=t.updateComputedPropertyName(w,Ge(ue));return{referencedName:ge,name:_e}}function Yt(w){return jc(w)?Qr(w):Ye(w,ae,_u)}function Qr(w){let ge=Ye(w.expression,ae,ht);return D1(ge)||(ge=Ge(ge)),t.updateComputedPropertyName(w,ge)}function $r(w){if(s0(w,In)){const{referencedName:ge,name:he}=Ar(w.name),ue=Ye(w.initializer,_e=>te(_e,ge),ht);return t.updatePropertyAssignment(w,he,ue)}return nn(w,ae,e)}function Fn(w){if(s0(w,In)){const ge=Jn(w.name,w.initializer),he=Ye(w.name,ae,Kh),ue=Ye(w.initializer,_e=>te(_e,ge),ht);return t.updateVariableDeclaration(w,he,void 0,void 0,ue)}return nn(w,ae,e)}function ja(w){if(s0(w,In)){const ge=Jn(w.name,w.initializer),he=Ye(w.propertyName,ae,_u),ue=Ye(w.name,ae,Kh),_e=Ye(w.initializer,pe=>te(pe,ge),ht);return t.updateBindingElement(w,void 0,he,ue,_e)}return nn(w,ae,e)}function Ca(w){if(Dc(w)||Op(w))return it(w);if(fd(w)&&m&&y){const ge=Ll(w)?Ye(w.argumentExpression,ae,ht):Be(w.name)?t.createStringLiteralFromNode(w.name):void 0;if(ge){const he=t.createTempVariable(void 0),ue=t.createAssignmentTargetWrapper(he,t.createReflectSetCall(y,ge,he,m));return yi(ue,w),yt(ue,w),ue}}return nn(w,ae,e)}function rn(w){if(Hp(w,!0)){const ge=Ca(w.left);let he;if(s0(w,In)){const ue=Jn(w.left,w.right);he=Ye(w.right,_e=>te(_e,ue),ht)}else he=Ye(w.right,ae,ht);return t.updateBinaryExpression(w,ge,w.operatorToken,he)}else return Ca(w)}function wr(w){if(Dd(w.expression)){const ge=Ca(w.expression);return t.updateSpreadElement(w,ge)}return nn(w,ae,e)}function ln(w){return D.assertNode(w,ND),gh(w)?wr(w):sf(w)?nn(w,ae,e):rn(w)}function Kr(w){const ge=Ye(w.name,ae,_u);if(Hp(w.initializer,!0)){const he=rn(w.initializer);return t.updatePropertyAssignment(w,ge,he)}if(Dd(w.initializer)){const he=Ca(w.initializer);return t.updatePropertyAssignment(w,ge,he)}return nn(w,ae,e)}function Li(w){if(s0(w,In)){const ge=Jn(w.name,w.objectAssignmentInitializer),he=Ye(w.name,ae,Be),ue=Ye(w.objectAssignmentInitializer,_e=>te(_e,ge),ht);return t.updateShorthandPropertyAssignment(w,he,ue)}return nn(w,ae,e)}function ot(w){if(Dd(w.expression)){const ge=Ca(w.expression);return t.updateSpreadAssignment(w,ge)}return nn(w,ae,e)}function Tt(w){return D.assertNode(w,DD),k3(w)?ot(w):_0(w)?Li(w):Y_(w)?Kr(w):nn(w,ae,e)}function it(w){if(Op(w)){const ge=dn(w.elements,ln,ht);return t.updateArrayLiteralExpression(w,ge)}else{const ge=dn(w.properties,Tt,qv);return t.updateObjectLiteralExpression(w,ge)}}function Wt(w){if(s0(w,In)){const ge=t.createStringLiteral(w.isExportEquals?"":"default"),he=dn(w.modifiers,$,Do),ue=Ye(w.expression,_e=>te(_e,ge),ht);return t.updateExportAssignment(w,he,ue)}return nn(w,ae,e)}function nr(w,ge,he){const ue=ge?me:he?pe=>te(pe,he):ae,_e=Ye(w.expression,ue,ht);return t.updateParenthesizedExpression(w,_e)}function Y(w,ge,he){const ue=ge?me:he?pe=>te(pe,he):ae,_e=Ye(w.expression,ue,ht);return t.updatePartiallyEmittedExpression(w,_e)}function Ge(w){return bt(T)&&(Md(w)?(T.push(w.expression),w=t.updateParenthesizedExpression(w,t.inlineExpressions(T))):(T.push(w),w=t.inlineExpressions(T)),T=void 0),w}function dt(w){if(!w)return;const ge=[];return Et(ge,er(w.decorators,Q)),ge}function Q(w){const ge=Ye(w.expression,ae,ht);return Ln(ge,3072),ge}function at(w,ge,he,ue,_e,pe,q){const rt=t.createFunctionExpression(he,ue,void 0,void 0,pe,void 0,q!=null?q:t.createBlock([]));yi(rt,w),Mc(rt,db(w)),Ln(rt,3072);const ar=_e==="get"||_e==="set"?_e:void 0,st=t.createStringLiteralFromNode(ge,void 0),Ft=n().createSetFunctionNameHelper(rt,st,ar),zr=t.createPropertyAssignment(t.createIdentifier(_e),Ft);return yi(zr,w),Mc(zr,db(w)),Ln(zr,3072),zr}function fr(w,ge){return t.createObjectLiteralExpression([at(w,w.name,ge,w.asteriskToken,"value",dn(w.parameters,ae,Cs),Ye(w.body,ae,oo))])}function Ne(w,ge){return t.createObjectLiteralExpression([at(w,w.name,ge,void 0,"get",[],Ye(w.body,ae,oo))])}function $t(w,ge){return t.createObjectLiteralExpression([at(w,w.name,ge,void 0,"set",dn(w.parameters,ae,Cs),Ye(w.body,ae,oo))])}function Jt(w,ge){return t.createObjectLiteralExpression([at(w,w.name,ge,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(w.name)))])),at(w,w.name,ge,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(w.name)),t.createIdentifier("value")))]))])}function Pr(w,ge,he){return w=dn(w,ue=>wS(ue)?ue:void 0,Do),t.createGetAccessorDeclaration(w,ge,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(he,t.createIdentifier("value")))]))}function li(w,ge,he){return w=dn(w,ue=>wS(ue)?ue:void 0,Do),t.createGetAccessorDeclaration(w,ge,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(he,t.createIdentifier("get")),t.createThis(),[]))]))}function Yn(w,ge,he){return w=dn(w,ue=>wS(ue)?ue:void 0,Do),t.createSetAccessorDeclaration(w,ge,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(he,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Jn(w,ge){const he=au(ge,Yi);return he&&!he.name&&Pi(he,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(w)}}var PNe=or({"src/compiler/transformers/esDecorators.ts"(){"use strict";ho()}});function k0e(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,l=e.getEmitResolver(),f=e.getCompilerOptions(),_=gc(f);let h,m=0,y,T,k;const E=[];let O=0;const N=e.onEmitNode,B=e.onSubstituteNode;return e.onEmitNode=an,e.onSubstituteNode=xn,ug(e,U);function U(Pt){if(Pt.isDeclarationFile)return Pt;V(1,!1),V(2,!d$(Pt,f));const Ar=nn(Pt,ae,e);return Kv(Ar,e.readEmitHelpers()),Ar}function V(Pt,Ar){O=Ar?O|Pt:O&~Pt}function re(Pt){return(O&Pt)!==0}function z(){return!re(1)}function ce(){return re(2)}function R(Pt,Ar,Yt){const Qr=Pt&~O;if(Qr){V(Qr,!0);const $r=Ar(Yt);return V(Qr,!1),$r}return Ar(Yt)}function le(Pt){return nn(Pt,ae,e)}function ae(Pt){if(!(Pt.transformFlags&256))return Pt;switch(Pt.kind){case 134:return;case 222:return we(Pt);case 173:return R(3,Ze,Pt);case 261:return R(3,Ue,Pt);case 217:return R(3,Ae,Pt);case 218:return R(1,Me,Pt);case 210:return T&&mi(Pt)&&Pt.expression.kind===108&&T.add(Pt.name.escapedText),nn(Pt,ae,e);case 211:return T&&Pt.expression.kind===108&&(k=!0),nn(Pt,ae,e);case 176:return R(3,Re,Pt);case 177:return R(3,Fe,Pt);case 175:return R(3,K,Pt);case 262:case 230:return R(3,le,Pt);default:return nn(Pt,ae,e)}}function ye(Pt){if(Nue(Pt))switch(Pt.kind){case 242:return ee(Pt);case 247:return ve(Pt);case 248:return te(Pt);case 249:return me(Pt);case 298:return $(Pt);case 240:case 254:case 268:case 295:case 296:case 257:case 245:case 246:case 244:case 253:case 255:return nn(Pt,ye,e);default:return D.assertNever(Pt,"Unhandled node.")}return ae(Pt)}function $(Pt){const Ar=new Set;He(Pt.variableDeclaration,Ar);let Yt;if(Ar.forEach((Qr,$r)=>{y.has($r)&&(Yt||(Yt=new Set(y)),Yt.delete($r))}),Yt){const Qr=y;y=Yt;const $r=nn(Pt,ye,e);return y=Qr,$r}else return nn(Pt,ye,e)}function ee(Pt){if(je(Pt.declarationList)){const Ar=Pe(Pt.declarationList,!1);return Ar?t.createExpressionStatement(Ar):void 0}return nn(Pt,ae,e)}function te(Pt){return t.updateForInStatement(Pt,je(Pt.initializer)?Pe(Pt.initializer,!0):D.checkDefined(Ye(Pt.initializer,ae,i0)),D.checkDefined(Ye(Pt.expression,ae,ht)),Xp(Pt.statement,ye,e))}function me(Pt){return t.updateForOfStatement(Pt,Ye(Pt.awaitModifier,ae,IG),je(Pt.initializer)?Pe(Pt.initializer,!0):D.checkDefined(Ye(Pt.initializer,ae,i0)),D.checkDefined(Ye(Pt.expression,ae,ht)),Xp(Pt.statement,ye,e))}function ve(Pt){const Ar=Pt.initializer;return t.updateForStatement(Pt,je(Ar)?Pe(Ar,!1):Ye(Pt.initializer,ae,i0),Ye(Pt.condition,ae,ht),Ye(Pt.incrementor,ae,ht),Xp(Pt.statement,ye,e))}function we(Pt){return z()?nn(Pt,ae,e):yi(yt(t.createYieldExpression(void 0,Ye(Pt.expression,ae,ht)),Pt),Pt)}function K(Pt){return t.updateConstructorDeclaration(Pt,dn(Pt.modifiers,ae,Do),t_(Pt.parameters,ae,e),Qe(Pt))}function Ze(Pt){return t.updateMethodDeclaration(Pt,dn(Pt.modifiers,ae,Ul),Pt.asteriskToken,Pt.name,void 0,void 0,t_(Pt.parameters,ae,e),void 0,vf(Pt)&2?Mt(Pt):Qe(Pt))}function Re(Pt){return t.updateGetAccessorDeclaration(Pt,dn(Pt.modifiers,ae,Ul),Pt.name,t_(Pt.parameters,ae,e),void 0,Qe(Pt))}function Fe(Pt){return t.updateSetAccessorDeclaration(Pt,dn(Pt.modifiers,ae,Ul),Pt.name,t_(Pt.parameters,ae,e),Qe(Pt))}function Ue(Pt){return t.updateFunctionDeclaration(Pt,dn(Pt.modifiers,ae,Ul),Pt.asteriskToken,Pt.name,void 0,t_(Pt.parameters,ae,e),void 0,vf(Pt)&2?Mt(Pt):Wm(Pt.body,ae,e))}function Ae(Pt){return t.updateFunctionExpression(Pt,dn(Pt.modifiers,ae,Do),Pt.asteriskToken,Pt.name,void 0,t_(Pt.parameters,ae,e),void 0,vf(Pt)&2?Mt(Pt):Wm(Pt.body,ae,e))}function Me(Pt){return t.updateArrowFunction(Pt,dn(Pt.modifiers,ae,Do),void 0,t_(Pt.parameters,ae,e),void 0,Pt.equalsGreaterThanToken,vf(Pt)&2?Mt(Pt):Wm(Pt.body,ae,e))}function He({name:Pt},Ar){if(Be(Pt))Ar.add(Pt.escapedText);else for(const Yt of Pt.elements)sf(Yt)||He(Yt,Ar)}function je(Pt){return!!Pt&&of(Pt)&&!(Pt.flags&3)&&Pt.declarations.some(Zt)}function Pe(Pt,Ar){nt(Pt);const Yt=c9(Pt);return Yt.length===0?Ar?Ye(t.converters.convertToAssignmentElementTarget(Pt.declarations[0].name),ae,ht):void 0:t.inlineExpressions(er(Yt,xt))}function nt(Pt){Vt(Pt.declarations,wt)}function wt({name:Pt}){if(Be(Pt))o(Pt);else for(const Ar of Pt.elements)sf(Ar)||wt(Ar)}function xt(Pt){const Ar=Mc(t.createAssignment(t.converters.convertToAssignmentElementTarget(Pt.name),Pt.initializer),Pt);return D.checkDefined(Ye(Ar,ae,ht))}function Zt({name:Pt}){if(Be(Pt))return y.has(Pt.escapedText);for(const Ar of Pt.elements)if(!sf(Ar)&&Zt(Ar))return!0;return!1}function Qe(Pt){D.assertIsDefined(Pt.body);const Ar=T,Yt=k;T=new Set,k=!1;let Qr=Wm(Pt.body,ae,e);const $r=au(Pt,Jl);if(_>=2&&l.getNodeCheckFlags(Pt)&384&&(vf($r)&3)!==3){if(Lt(),T.size){const ja=ZB(t,l,Pt,T);E[Nc(ja)]=!0;const Ca=Qr.statements.slice();ah(Ca,[ja]),Qr=t.updateBlock(Qr,Ca)}k&&(l.getNodeCheckFlags(Pt)&256?TS(Qr,tI):l.getNodeCheckFlags(Pt)&128&&TS(Qr,eI))}return T=Ar,k=Yt,Qr}function Mt(Pt){i();const Yt=au(Pt,Qs).type,Qr=_<2?Cr(Yt):void 0,$r=Pt.kind===218,Fn=(l.getNodeCheckFlags(Pt)&512)!==0,ja=y;y=new Set;for(const ln of Pt.parameters)He(ln,y);const Ca=T,rn=k;$r||(T=new Set,k=!1);let wr;if($r){const ln=n().createAwaiterHelper(ce(),Fn,Qr,yr(Pt.body)),Kr=s();if(bt(Kr)){const Li=t.converters.convertToFunctionBlock(ln);wr=t.updateBlock(Li,yt(t.createNodeArray(Nn(Kr,Li.statements)),Li.statements))}else wr=ln}else{const ln=[],Kr=t.copyPrologue(Pt.body.statements,ln,!1,ae);ln.push(t.createReturnStatement(n().createAwaiterHelper(ce(),Fn,Qr,yr(Pt.body,Kr)))),ah(ln,s());const Li=_>=2&&l.getNodeCheckFlags(Pt)&384;if(Li&&(Lt(),T.size)){const Tt=ZB(t,l,Pt,T);E[Nc(Tt)]=!0,ah(ln,[Tt])}const ot=t.createBlock(ln,!0);yt(ot,Pt.body),Li&&k&&(l.getNodeCheckFlags(Pt)&256?TS(ot,tI):l.getNodeCheckFlags(Pt)&128&&TS(ot,eI)),wr=ot}return y=ja,$r||(T=Ca,k=rn),wr}function yr(Pt,Ar){return oo(Pt)?t.updateBlock(Pt,dn(Pt.statements,ye,us,Ar)):t.converters.convertToFunctionBlock(D.checkDefined(Ye(Pt,ye,NL)))}function Cr(Pt){const Ar=Pt&&UD(Pt);if(Ar&&hm(Ar)){const Yt=l.getTypeReferenceSerializationKind(Ar);if(Yt===1||Yt===0)return Ar}}function Lt(){h&1||(h|=1,e.enableSubstitution(212),e.enableSubstitution(210),e.enableSubstitution(211),e.enableEmitNotification(262),e.enableEmitNotification(173),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(175),e.enableEmitNotification(242))}function an(Pt,Ar,Yt){if(h&1&&Wa(Ar)){const Qr=l.getNodeCheckFlags(Ar)&384;if(Qr!==m){const $r=m;m=Qr,N(Pt,Ar,Yt),m=$r;return}}else if(h&&E[Nc(Ar)]){const Qr=m;m=0,N(Pt,Ar,Yt),m=Qr;return}N(Pt,Ar,Yt)}function xn(Pt,Ar){return Ar=B(Pt,Ar),Pt===1&&m?Lr(Ar):Ar}function Lr(Pt){switch(Pt.kind){case 210:return In(Pt);case 211:return vi(Pt);case 212:return ia(Pt)}return Pt}function In(Pt){return Pt.expression.kind===108?yt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Pt.name),Pt):Pt}function vi(Pt){return Pt.expression.kind===108?bi(Pt.argumentExpression,Pt):Pt}function ia(Pt){const Ar=Pt.expression;if(fd(Ar)){const Yt=mi(Ar)?In(Ar):vi(Ar);return t.createCallExpression(t.createPropertyAccessExpression(Yt,"call"),void 0,[t.createThis(),...Pt.arguments])}return Pt}function Wa(Pt){const Ar=Pt.kind;return Ar===262||Ar===175||Ar===173||Ar===176||Ar===177}function bi(Pt,Ar){return m&256?yt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Pt]),"value"),Ar):yt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Pt]),Ar)}}function ZB(e,t,n,i){const s=(t.getNodeCheckFlags(n)&256)!==0,o=[];return i.forEach((l,f)=>{const _=Ba(f),h=[];h.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Ln(e.createPropertyAccessExpression(Ln(e.createSuper(),8),_),8)))),s&&h.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(Ln(e.createPropertyAccessExpression(Ln(e.createSuper(),8),_),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(_,e.createObjectLiteralExpression(h)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}var ONe=or({"src/compiler/transformers/es2017.ts"(){"use strict";ho()}});function C0e(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,l=e.getEmitResolver(),f=e.getCompilerOptions(),_=gc(f),h=e.onEmitNode;e.onEmitNode=ln;const m=e.onSubstituteNode;e.onSubstituteNode=Kr;let y=!1,T,k,E,O=0,N=0,B,U,V,re;const z=[];return ug(e,ye);function ce(Y,Ge){return N!==(N&~Y|Ge)}function R(Y,Ge){const dt=N;return N=(N&~Y|Ge)&3,dt}function le(Y){N=Y}function ae(Y){U=Ht(U,t.createVariableDeclaration(Y))}function ye(Y){if(Y.isDeclarationFile)return Y;B=Y;const Ge=je(Y);return Kv(Ge,e.readEmitHelpers()),B=void 0,U=void 0,Ge}function $(Y){return we(Y,!1)}function ee(Y){return we(Y,!0)}function te(Y){if(Y.kind!==134)return Y}function me(Y,Ge,dt,Q){if(ce(dt,Q)){const at=R(dt,Q),fr=Y(Ge);return le(at),fr}return Y(Ge)}function ve(Y){return nn(Y,$,e)}function we(Y,Ge){if(!(Y.transformFlags&128))return Y;switch(Y.kind){case 222:return K(Y);case 228:return Ze(Y);case 252:return Re(Y);case 255:return Fe(Y);case 209:return Ae(Y);case 225:return nt(Y,Ge);case 360:return wt(Y,Ge);case 298:return xt(Y);case 242:return Zt(Y);case 259:return Qe(Y);case 245:case 246:case 248:return me(ve,Y,0,2);case 249:return Lt(Y,void 0);case 247:return me(yr,Y,0,2);case 221:return Cr(Y);case 175:return me(bi,Y,2,1);case 173:return me(Yt,Y,2,1);case 176:return me(Pt,Y,2,1);case 177:return me(Ar,Y,2,1);case 261:return me(Qr,Y,2,1);case 217:return me(Fn,Y,2,1);case 218:return me($r,Y,2,0);case 168:return ia(Y);case 243:return Me(Y);case 216:return He(Y,Ge);case 214:return Pe(Y);case 210:return V&&mi(Y)&&Y.expression.kind===108&&V.add(Y.name.escapedText),nn(Y,$,e);case 211:return V&&Y.expression.kind===108&&(re=!0),nn(Y,$,e);case 262:case 230:return me(ve,Y,2,1);default:return nn(Y,$,e)}}function K(Y){return k&2&&k&1?yi(yt(t.createYieldExpression(void 0,n().createAwaitHelper(Ye(Y.expression,$,ht))),Y),Y):nn(Y,$,e)}function Ze(Y){if(k&2&&k&1){if(Y.asteriskToken){const Ge=Ye(D.checkDefined(Y.expression),$,ht);return yi(yt(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(Y,Y.asteriskToken,yt(n().createAsyncDelegatorHelper(yt(n().createAsyncValuesHelper(Ge),Ge)),Ge)))),Y),Y)}return yi(yt(t.createYieldExpression(void 0,Lr(Y.expression?Ye(Y.expression,$,ht):t.createVoidZero())),Y),Y)}return nn(Y,$,e)}function Re(Y){return k&2&&k&1?t.updateReturnStatement(Y,Lr(Y.expression?Ye(Y.expression,$,ht):t.createVoidZero())):nn(Y,$,e)}function Fe(Y){if(k&2){const Ge=C$(Y);return Ge.kind===249&&Ge.awaitModifier?Lt(Ge,Y):t.restoreEnclosingLabel(Ye(Ge,$,us,t.liftToBlock),Y)}return nn(Y,$,e)}function Ue(Y){let Ge;const dt=[];for(const Q of Y)if(Q.kind===304){Ge&&(dt.push(t.createObjectLiteralExpression(Ge)),Ge=void 0);const at=Q.expression;dt.push(Ye(at,$,ht))}else Ge=Ht(Ge,Q.kind===302?t.createPropertyAssignment(Q.name,Ye(Q.initializer,$,ht)):Ye(Q,$,qv));return Ge&&dt.push(t.createObjectLiteralExpression(Ge)),dt}function Ae(Y){if(Y.transformFlags&65536){const Ge=Ue(Y.properties);Ge.length&&Ge[0].kind!==209&&Ge.unshift(t.createObjectLiteralExpression());let dt=Ge[0];if(Ge.length>1){for(let Q=1;Q=2&&l.getNodeCheckFlags(Y)&384;if(Ne){wr();const Jt=ZB(t,l,Y,V);z[Nc(Jt)]=!0,ah(Ge,[Jt])}Ge.push(fr),ah(Ge,s());const $t=t.updateBlock(Y.body,Ge);return Ne&&re&&(l.getNodeCheckFlags(Y)&256?TS($t,tI):l.getNodeCheckFlags(Y)&128&&TS($t,eI)),V=Q,re=at,$t}function Ca(Y){var fr;i();let Ge=0;const dt=[],Q=(fr=Ye(Y.body,$,NL))!=null?fr:t.createBlock([]);oo(Q)&&(Ge=t.copyPrologue(Q.statements,dt,!1,$)),Et(dt,rn(void 0,Y));const at=s();if(Ge>0||bt(dt)||bt(at)){const Ne=t.converters.convertToFunctionBlock(Q,!0);return ah(dt,at),Et(dt,Ne.statements.slice(Ge)),t.updateBlock(Ne,yt(t.createNodeArray(dt),Ne.statements))}return Q}function rn(Y,Ge){let dt=!1;for(const Q of Ge.parameters)if(dt){if(_o(Q.name)){if(Q.name.elements.length>0){const at=I3(Q,$,e,0,t.getGeneratedNameForNode(Q));if(bt(at)){const fr=t.createVariableDeclarationList(at),Ne=t.createVariableStatement(void 0,fr);Ln(Ne,2097152),Y=Ht(Y,Ne)}}else if(Q.initializer){const at=t.getGeneratedNameForNode(Q),fr=Ye(Q.initializer,$,ht),Ne=t.createAssignment(at,fr),$t=t.createExpressionStatement(Ne);Ln($t,2097152),Y=Ht(Y,$t)}}else if(Q.initializer){const at=t.cloneNode(Q.name);yt(at,Q.name),Ln(at,96);const fr=Ye(Q.initializer,$,ht);dh(fr,3168);const Ne=t.createAssignment(at,fr);yt(Ne,Q),Ln(Ne,3072);const $t=t.createBlock([t.createExpressionStatement(Ne)]);yt($t,Q),Ln($t,3905);const Jt=t.createTypeCheck(t.cloneNode(Q.name),"undefined"),Pr=t.createIfStatement(Jt,$t);Fp(Pr),yt(Pr,Q),Ln(Pr,2101056),Y=Ht(Y,Pr)}}else if(Q.transformFlags&65536){dt=!0;const at=I3(Q,$,e,1,t.getGeneratedNameForNode(Q),!1,!0);if(bt(at)){const fr=t.createVariableDeclarationList(at),Ne=t.createVariableStatement(void 0,fr);Ln(Ne,2097152),Y=Ht(Y,Ne)}}return Y}function wr(){T&1||(T|=1,e.enableSubstitution(212),e.enableSubstitution(210),e.enableSubstitution(211),e.enableEmitNotification(262),e.enableEmitNotification(173),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(175),e.enableEmitNotification(242))}function ln(Y,Ge,dt){if(T&1&&Wt(Ge)){const Q=l.getNodeCheckFlags(Ge)&384;if(Q!==O){const at=O;O=Q,h(Y,Ge,dt),O=at;return}}else if(T&&z[Nc(Ge)]){const Q=O;O=0,h(Y,Ge,dt),O=Q;return}h(Y,Ge,dt)}function Kr(Y,Ge){return Ge=m(Y,Ge),Y===1&&O?Li(Ge):Ge}function Li(Y){switch(Y.kind){case 210:return ot(Y);case 211:return Tt(Y);case 212:return it(Y)}return Y}function ot(Y){return Y.expression.kind===108?yt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Y.name),Y):Y}function Tt(Y){return Y.expression.kind===108?nr(Y.argumentExpression,Y):Y}function it(Y){const Ge=Y.expression;if(fd(Ge)){const dt=mi(Ge)?ot(Ge):Tt(Ge);return t.createCallExpression(t.createPropertyAccessExpression(dt,"call"),void 0,[t.createThis(),...Y.arguments])}return Y}function Wt(Y){const Ge=Y.kind;return Ge===262||Ge===175||Ge===173||Ge===176||Ge===177}function nr(Y,Ge){return O&256?yt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[Y]),"value"),Ge):yt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[Y]),Ge)}}var MNe=or({"src/compiler/transformers/es2018.ts"(){"use strict";ho()}});function w0e(e){const t=e.factory;return ug(e,n);function n(o){return o.isDeclarationFile?o:nn(o,i,e)}function i(o){if(!(o.transformFlags&64))return o;switch(o.kind){case 298:return s(o);default:return nn(o,i,e)}}function s(o){return o.variableDeclaration?nn(o,i,e):t.updateCatchClause(o,t.createVariableDeclaration(t.createTempVariable(void 0)),Ye(o.block,i,oo))}}var LNe=or({"src/compiler/transformers/es2019.ts"(){"use strict";ho()}});function E0e(e){const{factory:t,hoistVariableDeclaration:n}=e;return ug(e,i);function i(E){return E.isDeclarationFile?E:nn(E,s,e)}function s(E){if(!(E.transformFlags&32))return E;switch(E.kind){case 212:{const O=_(E,!1);return D.assertNotNode(O,LS),O}case 210:case 211:if(op(E)){const O=m(E,!1,!1);return D.assertNotNode(O,LS),O}return nn(E,s,e);case 225:return E.operatorToken.kind===61?T(E):nn(E,s,e);case 219:return k(E);default:return nn(E,s,e)}}function o(E){D.assertNotNode(E,SL);const O=[E];for(;!E.questionDotToken&&!T7(E);)E=Ws(Q0(E.expression),op),D.assertNotNode(E,SL),O.unshift(E);return{expression:E.expression,chain:O}}function l(E,O,N){const B=h(E.expression,O,N);return LS(B)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(E,B.expression),B.thisArg):t.updateParenthesizedExpression(E,B)}function f(E,O,N){if(op(E))return m(E,O,N);let B=Ye(E.expression,s,ht);D.assertNotNode(B,LS);let U;return O&&(N3(B)?U=B:(U=t.createTempVariable(n),B=t.createAssignment(U,B))),B=E.kind===210?t.updatePropertyAccessExpression(E,B,Ye(E.name,s,Be)):t.updateElementAccessExpression(E,B,Ye(E.argumentExpression,s,ht)),U?t.createSyntheticReferenceExpression(B,U):B}function _(E,O){if(op(E))return m(E,O,!1);if(Md(E.expression)&&op(kl(E.expression))){const N=l(E.expression,!0,!1),B=dn(E.arguments,s,ht);return LS(N)?yt(t.createFunctionCallCall(N.expression,N.thisArg,B),E):t.updateCallExpression(E,N,void 0,B)}return nn(E,s,e)}function h(E,O,N){switch(E.kind){case 216:return l(E,O,N);case 210:case 211:return f(E,O,N);case 212:return _(E,O);default:return Ye(E,s,ht)}}function m(E,O,N){const{expression:B,chain:U}=o(E),V=h(Q0(B),e7(U[0]),!1);let re=LS(V)?V.thisArg:void 0,z=LS(V)?V.expression:V,ce=t.restoreOuterExpressions(B,z,8);N3(z)||(z=t.createTempVariable(n),ce=t.createAssignment(z,ce));let R=z,le;for(let ye=0;yet.createBindingElement(void 0,Mt.propertyName,Mt.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(xt)]))],2));gb(Qe,!1),wt=K6(wt.slice(),Qe)}}return wt!==nt.statements&&(nt=t.updateSourceFile(nt,wt)),o=void 0,nt}function T(Pe){return Pe.transformFlags&2?k(Pe):Pe}function k(Pe){switch(Pe.kind){case 283:return U(Pe,!1);case 284:return V(Pe,!1);case 287:return re(Pe,!1);case 293:return je(Pe);default:return nn(Pe,T,e)}}function E(Pe){switch(Pe.kind){case 12:return Ze(Pe);case 293:return je(Pe);case 283:return U(Pe,!0);case 284:return V(Pe,!0);case 287:return re(Pe,!0);default:return D.failBadSyntaxKind(Pe)}}function O(Pe){return Pe.properties.some(nt=>Y_(nt)&&(Be(nt.name)&&ri(nt.name)==="__proto__"||sc(nt.name)&&nt.name.text==="__proto__"))}function N(Pe){let nt=!1;for(const wt of Pe.attributes.properties)if(RS(wt)&&(!Dc(wt.expression)||wt.expression.properties.some(k3)))nt=!0;else if(nt&&E1(wt)&&Be(wt.name)&&wt.name.escapedText==="key")return!0;return!1}function B(Pe){return o.importSpecifier===void 0||N(Pe)}function U(Pe,nt){return(B(Pe.openingElement)?ae:R)(Pe.openingElement,Pe.children,nt,Pe)}function V(Pe,nt){return(B(Pe)?ae:R)(Pe,void 0,nt,Pe)}function re(Pe,nt){return(o.importSpecifier===void 0?$:ye)(Pe.openingFragment,Pe.children,nt,Pe)}function z(Pe){const nt=ce(Pe);return nt&&t.createObjectLiteralExpression([nt])}function ce(Pe){const nt=Qw(Pe);if(Nr(nt)===1&&!nt[0].dotDotDotToken){const xt=E(nt[0]);return xt&&t.createPropertyAssignment("children",xt)}const wt=Mr(Pe,E);return Nr(wt)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(wt)):void 0}function R(Pe,nt,wt,xt){const Zt=Me(Pe),Qe=nt&&nt.length?ce(nt):void 0,Mt=on(Pe.attributes.properties,Lt=>!!Lt.name&&Be(Lt.name)&&Lt.name.escapedText==="key"),yr=Mt?Mn(Pe.attributes.properties,Lt=>Lt!==Mt):Pe.attributes.properties,Cr=Nr(yr)?te(yr,Qe):t.createObjectLiteralExpression(Qe?[Qe]:tt);return le(Zt,Cr,Mt,nt||tt,wt,xt)}function le(Pe,nt,wt,xt,Zt,Qe){var Mt;const yr=Qw(xt),Cr=Nr(yr)>1||!!((Mt=yr[0])!=null&&Mt.dotDotDotToken),Lt=[Pe,nt];if(wt&&Lt.push(K(wt.initializer)),i.jsx===5){const xn=au(s);if(xn&&Ja(xn)){wt===void 0&&Lt.push(t.createVoidZero()),Lt.push(Cr?t.createTrue():t.createFalse());const Lr=Ql(xn,Qe.pos);Lt.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Lr.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Lr.character+1))])),Lt.push(t.createThis())}}const an=yt(t.createCallExpression(_(Cr),void 0,Lt),Qe);return Zt&&Fp(an),an}function ae(Pe,nt,wt,xt){const Zt=Me(Pe),Qe=Pe.attributes.properties,Mt=Nr(Qe)?te(Qe):t.createNull(),yr=o.importSpecifier===void 0?YG(t,e.getEmitResolver().getJsxFactoryEntity(s),i.reactNamespace,Pe):m("createElement"),Cr=fpe(t,yr,Zt,Mt,Mr(nt,E),xt);return wt&&Fp(Cr),Cr}function ye(Pe,nt,wt,xt){let Zt;if(nt&&nt.length){const Qe=z(nt);Qe&&(Zt=Qe)}return le(h(),Zt||t.createObjectLiteralExpression([]),void 0,nt,wt,xt)}function $(Pe,nt,wt,xt){const Zt=ppe(t,e.getEmitResolver().getJsxFactoryEntity(s),e.getEmitResolver().getJsxFragmentFactoryEntity(s),i.reactNamespace,Mr(nt,E),Pe,xt);return wt&&Fp(Zt),Zt}function ee(Pe){return Dc(Pe.expression)&&!O(Pe.expression)?Pe.expression.properties:t.createSpreadAssignment(D.checkDefined(Ye(Pe.expression,T,ht)))}function te(Pe,nt){const wt=gc(i);return wt&&wt>=5?t.createObjectLiteralExpression(me(Pe,nt)):ve(Pe,nt)}function me(Pe,nt){const wt=x_(xl(Pe,RS,(xt,Zt)=>x_(er(xt,Qe=>Zt?ee(Qe):we(Qe)))));return nt&&wt.push(nt),wt}function ve(Pe,nt){const wt=[];let xt=[];for(const Qe of Pe){if(RS(Qe)){if(Dc(Qe.expression)&&!O(Qe.expression)){for(const Mt of Qe.expression.properties){if(k3(Mt)){Zt(),wt.push(Mt.expression);continue}xt.push(Mt)}continue}Zt(),wt.push(D.checkDefined(Ye(Qe.expression,T,ht)));continue}xt.push(we(Qe))}return nt&&xt.push(nt),Zt(),wt.length&&!Dc(wt[0])&&wt.unshift(t.createObjectLiteralExpression()),de(wt)||n().createAssignHelper(wt);function Zt(){xt.length&&(wt.push(t.createObjectLiteralExpression(xt)),xt=[])}}function we(Pe){const nt=He(Pe),wt=K(Pe.initializer);return t.createPropertyAssignment(nt,wt)}function K(Pe){if(Pe===void 0)return t.createTrue();if(Pe.kind===11){const nt=Pe.singleQuote!==void 0?Pe.singleQuote:!uF(Pe,s),wt=t.createStringLiteral(Ae(Pe.text)||Pe.text,nt);return yt(wt,Pe)}return Pe.kind===293?Pe.expression===void 0?t.createTrue():D.checkDefined(Ye(Pe.expression,T,ht)):fy(Pe)?U(Pe,!1):C7(Pe)?V(Pe,!1):T3(Pe)?re(Pe,!1):D.failBadSyntaxKind(Pe)}function Ze(Pe){const nt=Re(Pe.text);return nt===void 0?void 0:t.createStringLiteral(nt)}function Re(Pe){let nt,wt=0,xt=-1;for(let Zt=0;Zt{if(Qe)return w5(parseInt(Qe,10));if(Mt)return w5(parseInt(Mt,16));{const Cr=I0e.get(yr);return Cr?w5(Cr):nt}})}function Ae(Pe){const nt=Ue(Pe);return nt===Pe?void 0:nt}function Me(Pe){if(Pe.kind===283)return Me(Pe.openingElement);{const nt=Pe.tagName;return Be(nt)&&ok(nt.escapedText)?t.createStringLiteral(ri(nt)):A1(nt)?t.createStringLiteral(ri(nt.namespace)+":"+ri(nt.name)):mI(t,nt)}}function He(Pe){const nt=Pe.name;if(Be(nt)){const wt=ri(nt);return/^[A-Za-z_]\w*$/.test(wt)?nt:t.createStringLiteral(wt)}return t.createStringLiteral(ri(nt.namespace)+":"+ri(nt.name))}function je(Pe){const nt=Ye(Pe.expression,T,ht);return Pe.dotDotDotToken?t.createSpreadElement(nt):nt}}var I0e,jNe=or({"src/compiler/transformers/jsx.ts"(){"use strict";ho(),I0e=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function P0e(e){const{factory:t,hoistVariableDeclaration:n}=e;return ug(e,i);function i(_){return _.isDeclarationFile?_:nn(_,s,e)}function s(_){if(!(_.transformFlags&512))return _;switch(_.kind){case 225:return o(_);default:return nn(_,s,e)}}function o(_){switch(_.operatorToken.kind){case 68:return l(_);case 43:return f(_);default:return nn(_,s,e)}}function l(_){let h,m;const y=Ye(_.left,s,ht),T=Ye(_.right,s,ht);if(Ll(y)){const k=t.createTempVariable(n),E=t.createTempVariable(n);h=yt(t.createElementAccessExpression(yt(t.createAssignment(k,y.expression),y.expression),yt(t.createAssignment(E,y.argumentExpression),y.argumentExpression)),y),m=yt(t.createElementAccessExpression(k,E),y)}else if(mi(y)){const k=t.createTempVariable(n);h=yt(t.createPropertyAccessExpression(yt(t.createAssignment(k,y.expression),y.expression),y.name),y),m=yt(t.createPropertyAccessExpression(k,y.name),y)}else h=y,m=y;return yt(t.createAssignment(h,yt(t.createGlobalMethodCall("Math","pow",[m,T]),_)),_)}function f(_){const h=Ye(_.left,s,ht),m=Ye(_.right,s,ht);return yt(t.createGlobalMethodCall("Math","pow",[h,m]),_)}}var zNe=or({"src/compiler/transformers/es2016.ts"(){"use strict";ho()}});function O0e(e,t){return{kind:e,expression:t}}function M0e(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:l}=e,f=e.getCompilerOptions(),_=e.getEmitResolver(),h=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=tl,e.onSubstituteNode=su;let y,T,k,E;function O(ne){E=Ht(E,t.createVariableDeclaration(ne))}let N,B;return ug(e,U);function U(ne){if(ne.isDeclarationFile)return ne;y=ne,T=ne.text;const _t=te(ne);return Kv(_t,e.readEmitHelpers()),y=void 0,T=void 0,E=void 0,k=0,_t}function V(ne,_t){const Qt=k;return k=(k&~ne|_t)&32767,Qt}function re(ne,_t,Qt){k=(k&~_t|Qt)&-32768|ne}function z(ne){return(k&8192)!==0&&ne.kind===252&&!ne.expression}function ce(ne){return ne.transformFlags&4194304&&(jg(ne)||S7(ne)||epe(ne)||cI(ne)||U9(ne)||W9(ne)||_I(ne)||lI(ne)||Ik(ne)||b3(ne)||ob(ne,!1)||oo(ne))}function R(ne){return(ne.transformFlags&1024)!==0||N!==void 0||k&8192&&ce(ne)||ob(ne,!1)&&En(ne)||(K0(ne)&1)!==0}function le(ne){return R(ne)?ee(ne,!1):ne}function ae(ne){return R(ne)?ee(ne,!0):ne}function ye(ne){if(R(ne)){const _t=au(ne);if(fo(_t)&&R_(_t)){const Qt=V(32670,16449),Kt=ee(ne,!1);return re(Qt,98304,0),Kt}return ee(ne,!1)}return ne}function $(ne){return ne.kind===108?Ef(!0):le(ne)}function ee(ne,_t){switch(ne.kind){case 126:return;case 262:return Ae(ne);case 230:return Me(ne);case 168:return Lt(ne);case 261:return wr(ne);case 218:return Ca(ne);case 217:return rn(ne);case 259:return fr(ne);case 80:return Fe(ne);case 260:return Ge(ne);case 254:return me(ne);case 268:return ve(ne);case 240:return Li(ne,!1);case 251:case 250:return Ue(ne);case 255:return Jt(ne);case 245:case 246:return Yn(ne,void 0);case 247:return Jn(ne,void 0);case 248:return ge(ne,void 0);case 249:return he(ne,void 0);case 243:return ot(ne);case 209:return rt(ne);case 298:return k_(ne);case 303:return Cl(ne);case 166:return Hl(ne);case 208:return r_(ne);case 212:return Zf(ne);case 213:return Le(ne);case 216:return Tt(ne,_t);case 225:return it(ne,_t);case 360:return Wt(ne,_t);case 15:case 16:case 17:case 18:return La(ne);case 11:return Fs(ne);case 9:return mu(ne);case 214:return Hc(ne);case 227:return Gc(ne);case 228:return gr(ne);case 229:return xi(ne);case 108:return Ef(!1);case 110:return Ze(ne);case 235:return gu(ne);case 173:return fl(ne);case 176:case 177:return Nu(ne);case 242:return Y(ne);case 252:return K(ne);case 221:return Re(ne);default:return nn(ne,le,e)}}function te(ne){const _t=V(8064,64),Qt=[],Kt=[];i();const xr=t.copyPrologue(ne.statements,Qt,!1,le);return Et(Kt,dn(ne.statements,le,us,xr)),E&&Kt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(E))),t.mergeLexicalEnvironment(Qt,o()),Wa(Qt,ne),re(_t,0,0),t.updateSourceFile(ne,yt(t.createNodeArray(Nn(Qt,Kt)),ne.statements))}function me(ne){if(N!==void 0){const _t=N.allowedNonLabeledJumps;N.allowedNonLabeledJumps|=2;const Qt=nn(ne,le,e);return N.allowedNonLabeledJumps=_t,Qt}return nn(ne,le,e)}function ve(ne){const _t=V(7104,0),Qt=nn(ne,le,e);return re(_t,0,0),Qt}function we(ne){return yi(t.createReturnStatement(t.createUniqueName("_this",48)),ne)}function K(ne){return N?(N.nonLocalJumps|=8,z(ne)&&(ne=we(ne)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),ne.expression?D.checkDefined(Ye(ne.expression,le,ht)):t.createVoidZero())]))):z(ne)?we(ne):nn(ne,le,e)}function Ze(ne){return k&2&&!(k&16384)&&(k|=65536),N?k&2?(N.containsLexicalThis=!0,ne):N.thisName||(N.thisName=t.createUniqueName("this")):ne}function Re(ne){return nn(ne,ae,e)}function Fe(ne){return N&&_.isArgumentsLocalBinding(ne)?N.argumentsName||(N.argumentsName=t.createUniqueName("arguments")):ne.flags&128?yi(yt(t.createIdentifier(Ba(ne.escapedText)),ne),ne):ne}function Ue(ne){if(N){const _t=ne.kind===251?2:4;if(!(ne.label&&N.labels&&N.labels.get(ri(ne.label))||!ne.label&&N.allowedNonLabeledJumps&_t)){let Kt;const xr=ne.label;xr?ne.kind===251?(Kt=`break-${xr.escapedText}`,du(N,!0,ri(xr),Kt)):(Kt=`continue-${xr.escapedText}`,du(N,!1,ri(xr),Kt)):ne.kind===251?(N.nonLocalJumps|=2,Kt="break"):(N.nonLocalJumps|=4,Kt="continue");let fn=t.createStringLiteral(Kt);if(N.loopOutParameters.length){const si=N.loopOutParameters;let Bi;for(let Ia=0;Ia0?(K6(ne,Ln(t.createVariableStatement(void 0,t.createVariableDeclarationList(I3(_t,le,e,0,t.getGeneratedNameForNode(_t)))),2097152)),!0):Kt?(K6(ne,Ln(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(_t),D.checkDefined(Ye(Kt,le,ht)))),2097152)),!0):!1}function In(ne,_t,Qt,Kt){Kt=D.checkDefined(Ye(Kt,le,ht));const xr=t.createIfStatement(t.createTypeCheck(t.cloneNode(Qt),"undefined"),Ln(yt(t.createBlock([t.createExpressionStatement(Ln(yt(t.createAssignment(Ln(fc(yt(t.cloneNode(Qt),Qt),Qt.parent),96),Ln(Kt,96|_c(Kt)|3072)),_t),3072))]),_t),3905));Fp(xr),yt(xr,_t),Ln(xr,2101056),K6(ne,xr)}function vi(ne,_t){return!!(ne&&ne.dotDotDotToken&&!_t)}function ia(ne,_t,Qt){const Kt=[],xr=io(_t.parameters);if(!vi(xr,Qt))return!1;const fn=xr.name.kind===80?fc(yt(t.cloneNode(xr.name),xr.name),xr.name.parent):t.createTempVariable(void 0);Ln(fn,96);const si=xr.name.kind===80?t.cloneNode(xr.name):fn,Bi=_t.parameters.length-1,Ia=t.createLoopVariable();Kt.push(Ln(yt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(fn,void 0,void 0,t.createArrayLiteralExpression([]))])),xr),2097152));const As=t.createForStatement(yt(t.createVariableDeclarationList([t.createVariableDeclaration(Ia,void 0,void 0,t.createNumericLiteral(Bi))]),xr),yt(t.createLessThan(Ia,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),xr),yt(t.createPostfixIncrement(Ia),xr),t.createBlock([Fp(yt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(si,Bi===0?Ia:t.createSubtract(Ia,t.createNumericLiteral(Bi))),t.createElementAccessExpression(t.createIdentifier("arguments"),Ia))),xr))]));return Ln(As,2097152),Fp(As),Kt.push(As),xr.name.kind!==80&&Kt.push(Ln(yt(t.createVariableStatement(void 0,t.createVariableDeclarationList(I3(xr,le,e,0,si))),xr),2097152)),a$(ne,Kt),!0}function Wa(ne,_t){return k&65536&&_t.kind!==218?(Pt(ne,_t,t.createThis()),!0):!1}function bi(ne,_t){Yp();const Qt=t.createExpressionStatement(t.createBinaryExpression(t.createThis(),64,_t));K6(ne,Qt),xf(Qt,au(_t).parent)}function Pt(ne,_t,Qt){Yp();const Kt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_this",48),void 0,void 0,Qt)]));Ln(Kt,2100224),Mc(Kt,_t),K6(ne,Kt)}function Ar(ne,_t,Qt){if(k&32768){let Kt;switch(_t.kind){case 218:return ne;case 173:case 176:case 177:Kt=t.createVoidZero();break;case 175:Kt=t.createPropertyAccessExpression(Ln(t.createThis(),8),"constructor");break;case 261:case 217:Kt=t.createConditionalExpression(t.createLogicalAnd(Ln(t.createThis(),8),t.createBinaryExpression(Ln(t.createThis(),8),104,t.getLocalName(_t))),void 0,t.createPropertyAccessExpression(Ln(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return D.failBadSyntaxKind(_t)}const xr=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Kt)]));Ln(xr,2100224),Qt&&(ne=ne.slice()),K6(ne,xr)}return ne}function Yt(ne,_t){for(const Qt of _t.members)switch(Qt.kind){case 239:ne.push(Qr(Qt));break;case 173:ne.push($r(da(_t,Qt),Qt,_t));break;case 176:case 177:const Kt=d7(_t.members,Qt);Qt===Kt.firstAccessor&&ne.push(Fn(da(_t,Qt),Kt,_t));break;case 175:case 174:break;default:D.failBadSyntaxKind(Qt,y&&y.fileName);break}}function Qr(ne){return yt(t.createEmptyStatement(),ne)}function $r(ne,_t,Qt){const Kt=mh(_t),xr=L4(_t),fn=ln(_t,_t,void 0,Qt),si=Ye(_t.name,le,_u);D.assert(si);let Bi;if(!Ea(si)&&NN(e.getCompilerOptions())){const As=jc(si)?si.expression:Be(si)?t.createStringLiteral(Ba(si.escapedText)):si;Bi=t.createObjectDefinePropertyCall(ne,As,t.createPropertyDescriptor({value:fn,enumerable:!1,writable:!0,configurable:!0}))}else{const As=A7(t,ne,si,_t.name);Bi=t.createAssignment(As,fn)}Ln(fn,3072),Mc(fn,xr);const Ia=yt(t.createExpressionStatement(Bi),_t);return yi(Ia,_t),xf(Ia,Kt),Ln(Ia,96),Ia}function Fn(ne,_t,Qt){const Kt=t.createExpressionStatement(ja(ne,_t,Qt,!1));return Ln(Kt,3072),Mc(Kt,L4(_t.firstAccessor)),Kt}function ja(ne,{firstAccessor:_t,getAccessor:Qt,setAccessor:Kt},xr,fn){const si=fc(yt(t.cloneNode(ne),ne),ne.parent);Ln(si,3136),Mc(si,_t.name);const Bi=Ye(_t.name,le,_u);if(D.assert(Bi),Ea(Bi))return D.failBadSyntaxKind(Bi,"Encountered unhandled private identifier while transforming ES2015.");const Ia=KG(t,Bi);Ln(Ia,3104),Mc(Ia,_t.name);const As=[];if(Qt){const wl=ln(Qt,void 0,void 0,xr);Mc(wl,L4(Qt)),Ln(wl,1024);const Rl=t.createPropertyAssignment("get",wl);xf(Rl,mh(Qt)),As.push(Rl)}if(Kt){const wl=ln(Kt,void 0,void 0,xr);Mc(wl,L4(Kt)),Ln(wl,1024);const Rl=t.createPropertyAssignment("set",wl);xf(Rl,mh(Kt)),As.push(Rl)}As.push(t.createPropertyAssignment("enumerable",Qt||Kt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Ro=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[si,Ia,t.createObjectLiteralExpression(As,!0)]);return fn&&Fp(Ro),Ro}function Ca(ne){ne.transformFlags&16384&&!(k&16384)&&(k|=65536);const _t=N;N=void 0;const Qt=V(15232,66),Kt=t.createFunctionExpression(void 0,void 0,void 0,void 0,t_(ne.parameters,le,e),void 0,Kr(ne));return yt(Kt,ne),yi(Kt,ne),Ln(Kt,16),re(Qt,0,0),N=_t,Kt}function rn(ne){const _t=_c(ne)&524288?V(32662,69):V(32670,65),Qt=N;N=void 0;const Kt=t_(ne.parameters,le,e),xr=Kr(ne),fn=k&32768?t.getLocalName(ne):ne.name;return re(_t,98304,0),N=Qt,t.updateFunctionExpression(ne,void 0,ne.asteriskToken,fn,void 0,Kt,void 0,xr)}function wr(ne){const _t=N;N=void 0;const Qt=V(32670,65),Kt=t_(ne.parameters,le,e),xr=Kr(ne),fn=k&32768?t.getLocalName(ne):ne.name;return re(Qt,98304,0),N=_t,t.updateFunctionDeclaration(ne,dn(ne.modifiers,le,Do),ne.asteriskToken,fn,void 0,Kt,void 0,xr)}function ln(ne,_t,Qt,Kt){const xr=N;N=void 0;const fn=Kt&&Yi(Kt)&&!so(ne)?V(32670,73):V(32670,65),si=t_(ne.parameters,le,e),Bi=Kr(ne);return k&32768&&!Qt&&(ne.kind===261||ne.kind===217)&&(Qt=t.getGeneratedNameForNode(ne)),re(fn,98304,0),N=xr,yi(yt(t.createFunctionExpression(void 0,ne.asteriskToken,Qt,void 0,si,void 0,Bi),_t),ne)}function Kr(ne){let _t=!1,Qt=!1,Kt,xr;const fn=[],si=[],Bi=ne.body;let Ia;if(s(),oo(Bi)&&(Ia=t.copyStandardPrologue(Bi.statements,fn,0,!1),Ia=t.copyCustomPrologue(Bi.statements,si,Ia,le,XL),Ia=t.copyCustomPrologue(Bi.statements,si,Ia,le,ZL)),_t=xn(si,ne)||_t,_t=ia(si,ne,!1)||_t,oo(Bi))Ia=t.copyCustomPrologue(Bi.statements,si,Ia,le),Kt=Bi.statements,Et(si,dn(Bi.statements,le,us,Ia)),!_t&&Bi.multiLine&&(_t=!0);else{D.assert(ne.kind===218),Kt=DF(Bi,-1);const Ro=ne.equalsGreaterThanToken;!Ol(Ro)&&!Ol(Bi)&&(CN(Ro,Bi,y)?Qt=!0:_t=!0);const wl=Ye(Bi,le,ht),Rl=t.createReturnStatement(wl);yt(Rl,Bi),Afe(Rl,Bi),Ln(Rl,2880),si.push(Rl),xr=Bi}if(t.mergeLexicalEnvironment(fn,o()),Ar(fn,ne,!1),Wa(fn,ne),bt(fn)&&(_t=!0),si.unshift(...fn),oo(Bi)&&Lo(si,Bi.statements))return Bi;const As=t.createBlock(yt(t.createNodeArray(si),Kt),_t);return yt(As,ne.body),!_t&&Qt&&Ln(As,1),xr&&Efe(As,20,xr),yi(As,ne.body),As}function Li(ne,_t){if(_t)return nn(ne,le,e);const Qt=k&256?V(7104,512):V(6976,128),Kt=nn(ne,le,e);return re(Qt,0,0),Kt}function ot(ne){return nn(ne,ae,e)}function Tt(ne,_t){return nn(ne,_t?ae:le,e)}function it(ne,_t){return Zv(ne)?L7(ne,le,e,0,!_t):ne.operatorToken.kind===28?t.updateBinaryExpression(ne,D.checkDefined(Ye(ne.left,ae,ht)),ne.operatorToken,D.checkDefined(Ye(ne.right,_t?ae:le,ht))):nn(ne,le,e)}function Wt(ne,_t){if(_t)return nn(ne,ae,e);let Qt;for(let xr=0;xrIa.name)),Bi=Kt?t.createYieldExpression(t.createToken(42),Ln(si,8388608)):si;if(fn)xr.push(t.createExpressionStatement(Bi)),Ua(_t.loopOutParameters,1,0,xr);else{const Ia=t.createUniqueName("state"),As=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ia,void 0,void 0,Bi)]));if(xr.push(As),Ua(_t.loopOutParameters,1,0,xr),_t.nonLocalJumps&8){let Ro;Qt?(Qt.nonLocalJumps|=8,Ro=t.createReturnStatement(Ia)):Ro=t.createReturnStatement(t.createPropertyAccessExpression(Ia,"value")),xr.push(t.createIfStatement(t.createTypeCheck(Ia,"object"),Ro))}if(_t.nonLocalJumps&2&&xr.push(t.createIfStatement(t.createStrictEquality(Ia,t.createStringLiteral("break")),t.createBreakStatement())),_t.labeledNonLocalBreaks||_t.labeledNonLocalContinues){const Ro=[];uf(_t.labeledNonLocalBreaks,!0,Ia,Qt,Ro),uf(_t.labeledNonLocalContinues,!1,Ia,Qt,Ro),xr.push(t.createSwitchStatement(Ia,t.createCaseBlock(Ro)))}}return xr}function du(ne,_t,Qt,Kt){_t?(ne.labeledNonLocalBreaks||(ne.labeledNonLocalBreaks=new Map),ne.labeledNonLocalBreaks.set(Qt,Kt)):(ne.labeledNonLocalContinues||(ne.labeledNonLocalContinues=new Map),ne.labeledNonLocalContinues.set(Qt,Kt))}function uf(ne,_t,Qt,Kt,xr){ne&&ne.forEach((fn,si)=>{const Bi=[];if(!Kt||Kt.labels&&Kt.labels.get(si)){const Ia=t.createIdentifier(si);Bi.push(_t?t.createBreakStatement(Ia):t.createContinueStatement(Ia))}else du(Kt,_t,si,fn),Bi.push(t.createReturnStatement(Qt));xr.push(t.createCaseClause(t.createStringLiteral(fn),Bi))})}function Ms(ne,_t,Qt,Kt,xr){const fn=_t.name;if(_o(fn))for(const si of fn.elements)sf(si)||Ms(ne,si,Qt,Kt,xr);else{Qt.push(t.createParameterDeclaration(void 0,void 0,fn));const si=_.getNodeCheckFlags(_t);if(si&262144||xr){const Bi=t.createUniqueName("out_"+ri(fn));let Ia=0;si&262144&&(Ia|=1),k7(ne)&&(ne.initializer&&_.isBindingCapturedByNode(ne.initializer,_t)&&(Ia|=2),(ne.condition&&_.isBindingCapturedByNode(ne.condition,_t)||ne.incrementor&&_.isBindingCapturedByNode(ne.incrementor,_t))&&(Ia|=1)),Kt.push({flags:Ia,originalName:fn,outParamName:Bi})}}}function qa(ne,_t,Qt,Kt){const xr=_t.properties,fn=xr.length;for(let si=Kt;siS_(nm)&&!!Fi(nm.declarationList.declarations).initializer,Kt=N;N=void 0;const xr=dn(_t.statements,ye,us);N=Kt;const fn=Mn(xr,Qt),si=Mn(xr,nm=>!Qt(nm)),Ia=Ws(Fi(fn),S_).declarationList.declarations[0],As=Gf(Ia.initializer);let Ro=di(As,Hp);!Ro&&Un(As)&&As.operatorToken.kind===28&&(Ro=di(As.left,Hp));const wl=Ws(Ro?Gf(Ro.right):As,go),Rl=Ws(Gf(wl.expression),_l),gd=Rl.body.statements;let p0=0,l_=-1;const Am=[];if(Ro){const nm=di(gd[p0],$f);nm&&(Am.push(nm),p0++),Am.push(gd[p0]),p0++,Am.push(t.createExpressionStatement(t.createAssignment(Ro.left,Ws(Ia.name,Be))))}for(;!jg(d1(gd,l_));)l_--;Et(Am,gd,p0,l_),l_<-1&&Et(Am,gd,l_+1);const Kp=di(d1(gd,l_),jg);for(const nm of si)jg(nm)&&(Kp!=null&&Kp.expression)&&!Be(Kp.expression)?Am.push(Kp):Am.push(nm);return Et(Am,fn,1),t.restoreOuterExpressions(ne.expression,t.restoreOuterExpressions(Ia.initializer,t.restoreOuterExpressions(Ro&&Ro.right,t.updateCallExpression(wl,t.restoreOuterExpressions(wl.expression,t.updateFunctionExpression(Rl,void 0,void 0,void 0,void 0,Rl.parameters,void 0,t.updateBlock(Rl.body,Am))),void 0,wl.arguments))))}function fe(ne){return G(ne,!1)}function G(ne,_t){if(ne.transformFlags&32768||ne.expression.kind===108||fd(Gf(ne.expression))){const{target:Qt,thisArg:Kt}=t.createCallBinding(ne.expression,l);ne.expression.kind===108&&Ln(Kt,8);let xr;if(ne.transformFlags&32768?xr=t.createFunctionApplyCall(D.checkDefined(Ye(Qt,$,ht)),ne.expression.kind===108?Kt:D.checkDefined(Ye(Kt,le,ht)),gt(ne.arguments,!0,!1,!1)):xr=yt(t.createFunctionCallCall(D.checkDefined(Ye(Qt,$,ht)),ne.expression.kind===108?Kt:D.checkDefined(Ye(Kt,le,ht)),dn(ne.arguments,le,ht)),ne),ne.expression.kind===108){const fn=t.createLogicalOr(xr,yr());xr=_t?t.createAssignment(t.createUniqueName("_this",48),fn):fn}return yi(xr,ne)}return nn(ne,le,e)}function Le(ne){if(bt(ne.arguments,gh)){const{target:_t,thisArg:Qt}=t.createCallBinding(t.createPropertyAccessExpression(ne.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(D.checkDefined(Ye(_t,le,ht)),Qt,gt(t.createNodeArray([t.createVoidZero(),...ne.arguments]),!0,!1,!1)),void 0,[])}return nn(ne,le,e)}function gt(ne,_t,Qt,Kt){const xr=ne.length,fn=x_(xl(ne,Nt,(As,Ro,wl,Rl)=>Ro(As,Qt,Kt&&Rl===xr)));if(fn.length===1){const As=fn[0];if(_t&&!f.downlevelIteration||zH(As.expression)||I9(As.expression,"___spreadArray"))return As.expression}const si=n(),Bi=fn[0].kind!==0;let Ia=Bi?t.createArrayLiteralExpression():fn[0].expression;for(let As=Bi?0:1;As0&&Kt.push(t.createStringLiteral(Qt.literal.text)),_t=t.createCallExpression(t.createPropertyAccessExpression(_t,"concat"),void 0,Kt)}return yt(_t,ne)}function Ef(ne){return k&8&&!ne?t.createPropertyAccessExpression(t.createUniqueName("_super",48),"prototype"):t.createUniqueName("_super",48)}function gu(ne){return ne.keywordToken===105&&ne.name.escapedText==="target"?(k|=32768,t.createUniqueName("_newTarget",48)):ne}function tl(ne,_t,Qt){if(B&1&&Qs(_t)){const Kt=V(32670,_c(_t)&16?81:65);m(ne,_t,Qt),re(Kt,0,0);return}m(ne,_t,Qt)}function Lc(){B&2||(B|=2,e.enableSubstitution(80))}function Yp(){B&1||(B|=1,e.enableSubstitution(110),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(218),e.enableEmitNotification(217),e.enableEmitNotification(261))}function su(ne,_t){return _t=h(ne,_t),ne===1?Qp(_t):Be(_t)?ff(_t):_t}function ff(ne){if(B&2&&!eX(ne)){const _t=gs(ne,Be);if(_t&&C_(_t))return yt(t.getGeneratedNameForNode(_t),ne)}return ne}function C_(ne){switch(ne.parent.kind){case 207:case 262:case 265:case 259:return ne.parent.name===ne&&_.isDeclarationWithCollidingName(ne.parent)}return!1}function Qp(ne){switch(ne.kind){case 80:return Ce(ne);case 110:return un(ne)}return ne}function Ce(ne){if(B&2&&!eX(ne)){const _t=_.getReferencedDeclarationWithCollidingName(ne);if(_t&&!(Yi(_t)&&Gt(_t,ne)))return yt(t.getGeneratedNameForNode(Es(_t)),ne)}return ne}function Gt(ne,_t){let Qt=gs(_t);if(!Qt||Qt===ne||Qt.end<=ne.pos||Qt.pos>=ne.end)return!1;const Kt=sh(ne);for(;Qt;){if(Qt===Kt||Qt===ne)return!1;if(yf(Qt)&&Qt.parent===ne)return!0;Qt=Qt.parent}return!1}function un(ne){return B&1&&k&16?yt(t.createUniqueName("_this",48),ne):ne}function da(ne,_t){return so(_t)?t.getInternalName(ne):t.createPropertyAccessExpression(t.getInternalName(ne),"prototype")}function Rs(ne,_t){if(!ne||!_t||bt(ne.parameters))return!1;const Qt=Ji(ne.body.statements);if(!Qt||!Ol(Qt)||Qt.kind!==243)return!1;const Kt=Qt.expression;if(!Ol(Kt)||Kt.kind!==212)return!1;const xr=Kt.expression;if(!Ol(xr)||xr.kind!==108)return!1;const fn=de(Kt.arguments);if(!fn||!Ol(fn)||fn.kind!==229)return!1;const si=fn.expression;return Be(si)&&si.escapedText==="arguments"}}var JNe=or({"src/compiler/transformers/es2015.ts"(){"use strict";ho()}});function L0e(e){const{factory:t}=e,n=e.getCompilerOptions();let i,s;(n.jsx===1||n.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=f,e.enableEmitNotification(285),e.enableEmitNotification(286),e.enableEmitNotification(284),s=[]);const o=e.onSubstituteNode;return e.onSubstituteNode=_,e.enableSubstitution(210),e.enableSubstitution(302),ug(e,l);function l(T){return T}function f(T,k,E){switch(k.kind){case 285:case 286:case 284:const O=k.tagName;s[_p(O)]=!0;break}i(T,k,E)}function _(T,k){return k.id&&s&&s[k.id]?o(T,k):(k=o(T,k),mi(k)?h(k):Y_(k)?m(k):k)}function h(T){if(Ea(T.name))return T;const k=y(T.name);return k?yt(t.createElementAccessExpression(T.expression,k),T):T}function m(T){const k=Be(T.name)&&y(T.name);return k?t.updatePropertyAssignment(T,k,T.initializer):T}function y(T){const k=C4(T);if(k!==void 0&&k>=83&&k<=118)return yt(t.createStringLiteralFromNode(T),T)}}var UNe=or({"src/compiler/transformers/es5.ts"(){"use strict";ho()}});function VNe(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function F0e(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistFunctionDeclaration:o,hoistVariableDeclaration:l}=e,f=e.getCompilerOptions(),_=gc(f),h=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=he;let y,T,k,E,O,N,B,U,V,re,z=1,ce,R,le,ae,ye=0,$=0,ee,te,me,ve,we,K,Ze,Re;return ug(e,Fe);function Fe(Ce){if(Ce.isDeclarationFile||!(Ce.transformFlags&2048))return Ce;const Gt=nn(Ce,Ue,e);return Kv(Gt,e.readEmitHelpers()),Gt}function Ue(Ce){const Gt=Ce.transformFlags;return E?Ae(Ce):k?Me(Ce):Jl(Ce)&&Ce.asteriskToken?je(Ce):Gt&2048?nn(Ce,Ue,e):Ce}function Ae(Ce){switch(Ce.kind){case 245:return Kr(Ce);case 246:return ot(Ce);case 254:return Jt(Ce);case 255:return li(Ce);default:return Me(Ce)}}function Me(Ce){switch(Ce.kind){case 261:return Pe(Ce);case 217:return nt(Ce);case 176:case 177:return wt(Ce);case 242:return Zt(Ce);case 247:return it(Ce);case 248:return nr(Ce);case 251:return Q(Ce);case 250:return Ge(Ce);case 252:return fr(Ce);default:return Ce.transformFlags&1048576?He(Ce):Ce.transformFlags&4196352?nn(Ce,Ue,e):Ce}}function He(Ce){switch(Ce.kind){case 225:return Qe(Ce);case 360:return Lt(Ce);case 226:return xn(Ce);case 228:return Lr(Ce);case 208:return In(Ce);case 209:return ia(Ce);case 211:return Wa(Ce);case 212:return bi(Ce);case 213:return Pt(Ce);default:return nn(Ce,Ue,e)}}function je(Ce){switch(Ce.kind){case 261:return Pe(Ce);case 217:return nt(Ce);default:return D.failBadSyntaxKind(Ce)}}function Pe(Ce){if(Ce.asteriskToken)Ce=yi(yt(t.createFunctionDeclaration(Ce.modifiers,void 0,Ce.name,void 0,t_(Ce.parameters,Ue,e),void 0,xt(Ce.body)),Ce),Ce);else{const Gt=k,un=E;k=!1,E=!1,Ce=nn(Ce,Ue,e),k=Gt,E=un}if(k){o(Ce);return}else return Ce}function nt(Ce){if(Ce.asteriskToken)Ce=yi(yt(t.createFunctionExpression(void 0,void 0,Ce.name,void 0,t_(Ce.parameters,Ue,e),void 0,xt(Ce.body)),Ce),Ce);else{const Gt=k,un=E;k=!1,E=!1,Ce=nn(Ce,Ue,e),k=Gt,E=un}return Ce}function wt(Ce){const Gt=k,un=E;return k=!1,E=!1,Ce=nn(Ce,Ue,e),k=Gt,E=un,Ce}function xt(Ce){const Gt=[],un=k,da=E,Rs=O,ne=N,_t=B,Qt=U,Kt=V,xr=re,fn=z,si=ce,Bi=R,Ia=le,As=ae;k=!0,E=!1,O=void 0,N=void 0,B=void 0,U=void 0,V=void 0,re=void 0,z=1,ce=void 0,R=void 0,le=void 0,ae=t.createTempVariable(void 0),i();const Ro=t.copyPrologue(Ce.statements,Gt,!1,Ue);Ar(Ce.statements,Ro);const wl=gt();return ah(Gt,s()),Gt.push(t.createReturnStatement(wl)),k=un,E=da,O=Rs,N=ne,B=_t,U=Qt,V=Kt,re=xr,z=fn,ce=si,R=Bi,le=Ia,ae=As,yt(t.createBlock(Gt,Ce.multiLine),Ce)}function Zt(Ce){if(Ce.transformFlags&1048576){Ca(Ce.declarationList);return}else{if(_c(Ce)&2097152)return Ce;for(const un of Ce.declarationList.declarations)l(un.name);const Gt=c9(Ce.declarationList);return Gt.length===0?void 0:Mc(t.createExpressionStatement(t.inlineExpressions(er(Gt,rn))),Ce)}}function Qe(Ce){const Gt=$$(Ce);switch(Gt){case 0:return yr(Ce);case 1:return Mt(Ce);default:return D.assertNever(Gt)}}function Mt(Ce){const{left:Gt,right:un}=Ce;if(w(un)){let da;switch(Gt.kind){case 210:da=t.updatePropertyAccessExpression(Gt,pe(D.checkDefined(Ye(Gt.expression,Ue,Dd))),Gt.name);break;case 211:da=t.updateElementAccessExpression(Gt,pe(D.checkDefined(Ye(Gt.expression,Ue,Dd))),pe(D.checkDefined(Ye(Gt.argumentExpression,Ue,ht))));break;default:da=D.checkDefined(Ye(Gt,Ue,ht));break}const Rs=Ce.operatorToken.kind;return sE(Rs)?yt(t.createAssignment(da,yt(t.createBinaryExpression(pe(da),oE(Rs),D.checkDefined(Ye(un,Ue,ht))),Ce)),Ce):t.updateBinaryExpression(Ce,da,Ce.operatorToken,D.checkDefined(Ye(un,Ue,ht)))}return nn(Ce,Ue,e)}function yr(Ce){return w(Ce.right)?o_e(Ce.operatorToken.kind)?an(Ce):Ce.operatorToken.kind===28?Cr(Ce):t.updateBinaryExpression(Ce,pe(D.checkDefined(Ye(Ce.left,Ue,ht))),Ce.operatorToken,D.checkDefined(Ye(Ce.right,Ue,ht))):nn(Ce,Ue,e)}function Cr(Ce){let Gt=[];return un(Ce.left),un(Ce.right),t.inlineExpressions(Gt);function un(da){Un(da)&&da.operatorToken.kind===28?(un(da.left),un(da.right)):(w(da)&&Gt.length>0&&(Le(1,[t.createExpressionStatement(t.inlineExpressions(Gt))]),Gt=[]),Gt.push(D.checkDefined(Ye(da,Ue,ht))))}}function Lt(Ce){let Gt=[];for(const un of Ce.elements)Un(un)&&un.operatorToken.kind===28?Gt.push(Cr(un)):(w(un)&&Gt.length>0&&(Le(1,[t.createExpressionStatement(t.inlineExpressions(Gt))]),Gt=[]),Gt.push(D.checkDefined(Ye(un,Ue,ht))));return t.inlineExpressions(Gt)}function an(Ce){const Gt=rt(),un=q();return Nu(un,D.checkDefined(Ye(Ce.left,Ue,ht)),Ce.left),Ce.operatorToken.kind===56?gr(Gt,un,Ce.left):Hl(Gt,un,Ce.left),Nu(un,D.checkDefined(Ye(Ce.right,Ue,ht)),Ce.right),ar(Gt),un}function xn(Ce){if(w(Ce.whenTrue)||w(Ce.whenFalse)){const Gt=rt(),un=rt(),da=q();return gr(Gt,D.checkDefined(Ye(Ce.condition,Ue,ht)),Ce.condition),Nu(da,D.checkDefined(Ye(Ce.whenTrue,Ue,ht)),Ce.whenTrue),Cl(un),ar(Gt),Nu(da,D.checkDefined(Ye(Ce.whenFalse,Ue,ht)),Ce.whenFalse),ar(un),da}return nn(Ce,Ue,e)}function Lr(Ce){const Gt=rt(),un=Ye(Ce.expression,Ue,ht);if(Ce.asteriskToken){const da=_c(Ce.expression)&8388608?un:yt(n().createValuesHelper(un),Ce);r_(da,Ce)}else Zf(un,Ce);return ar(Gt),k_(Ce)}function In(Ce){return vi(Ce.elements,void 0,void 0,Ce.multiLine)}function vi(Ce,Gt,un,da){const Rs=ge(Ce);let ne;if(Rs>0){ne=q();const Kt=dn(Ce,Ue,ht,0,Rs);Nu(ne,t.createArrayLiteralExpression(Gt?[Gt,...Kt]:Kt)),Gt=void 0}const _t=la(Ce,Qt,[],Rs);return ne?t.createArrayConcatCall(ne,[t.createArrayLiteralExpression(_t,da)]):yt(t.createArrayLiteralExpression(Gt?[Gt,..._t]:_t,da),un);function Qt(Kt,xr){if(w(xr)&&Kt.length>0){const fn=ne!==void 0;ne||(ne=q()),Nu(ne,fn?t.createArrayConcatCall(ne,[t.createArrayLiteralExpression(Kt,da)]):t.createArrayLiteralExpression(Gt?[Gt,...Kt]:Kt,da)),Gt=void 0,Kt=[]}return Kt.push(D.checkDefined(Ye(xr,Ue,ht))),Kt}}function ia(Ce){const Gt=Ce.properties,un=Ce.multiLine,da=ge(Gt),Rs=q();Nu(Rs,t.createObjectLiteralExpression(dn(Gt,Ue,qv,0,da),un));const ne=la(Gt,_t,[],da);return ne.push(un?Fp(fc(yt(t.cloneNode(Rs),Rs),Rs.parent)):Rs),t.inlineExpressions(ne);function _t(Qt,Kt){w(Kt)&&Qt.length>0&&(fl(t.createExpressionStatement(t.inlineExpressions(Qt))),Qt=[]);const xr=dpe(t,Ce,Kt,Rs),fn=Ye(xr,Ue,ht);return fn&&(un&&Fp(fn),Qt.push(fn)),Qt}}function Wa(Ce){return w(Ce.argumentExpression)?t.updateElementAccessExpression(Ce,pe(D.checkDefined(Ye(Ce.expression,Ue,Dd))),D.checkDefined(Ye(Ce.argumentExpression,Ue,ht))):nn(Ce,Ue,e)}function bi(Ce){if(!xm(Ce)&&Vt(Ce.arguments,w)){const{target:Gt,thisArg:un}=t.createCallBinding(Ce.expression,l,_,!0);return yi(yt(t.createFunctionApplyCall(pe(D.checkDefined(Ye(Gt,Ue,Dd))),un,vi(Ce.arguments)),Ce),Ce)}return nn(Ce,Ue,e)}function Pt(Ce){if(Vt(Ce.arguments,w)){const{target:Gt,thisArg:un}=t.createCallBinding(t.createPropertyAccessExpression(Ce.expression,"bind"),l);return yi(yt(t.createNewExpression(t.createFunctionApplyCall(pe(D.checkDefined(Ye(Gt,Ue,ht))),un,vi(Ce.arguments,t.createVoidZero())),void 0,[]),Ce),Ce)}return nn(Ce,Ue,e)}function Ar(Ce,Gt=0){const un=Ce.length;for(let da=Gt;da0)break;Rs.push(rn(_t))}Rs.length&&(fl(t.createExpressionStatement(t.inlineExpressions(Rs))),da+=Rs.length,Rs=[])}}function rn(Ce){return Mc(t.createAssignment(Mc(t.cloneNode(Ce.name),Ce.name),D.checkDefined(Ye(Ce.initializer,Ue,ht))),Ce)}function wr(Ce){if(w(Ce))if(w(Ce.thenStatement)||w(Ce.elseStatement)){const Gt=rt(),un=Ce.elseStatement?rt():void 0;gr(Ce.elseStatement?un:Gt,D.checkDefined(Ye(Ce.expression,Ue,ht)),Ce.expression),Yt(Ce.thenStatement),Ce.elseStatement&&(Cl(Gt),ar(un),Yt(Ce.elseStatement)),ar(Gt)}else fl(Ye(Ce,Ue,us));else fl(Ye(Ce,Ue,us))}function ln(Ce){if(w(Ce)){const Gt=rt(),un=rt();Ks(Gt),ar(un),Yt(Ce.statement),ar(Gt),Hl(un,D.checkDefined(Ye(Ce.expression,Ue,ht))),ti()}else fl(Ye(Ce,Ue,us))}function Kr(Ce){return E?(Wo(),Ce=nn(Ce,Ue,e),ti(),Ce):nn(Ce,Ue,e)}function Li(Ce){if(w(Ce)){const Gt=rt(),un=Ks(Gt);ar(Gt),gr(un,D.checkDefined(Ye(Ce.expression,Ue,ht))),Yt(Ce.statement),Cl(Gt),ti()}else fl(Ye(Ce,Ue,us))}function ot(Ce){return E?(Wo(),Ce=nn(Ce,Ue,e),ti(),Ce):nn(Ce,Ue,e)}function Tt(Ce){if(w(Ce)){const Gt=rt(),un=rt(),da=Ks(un);if(Ce.initializer){const Rs=Ce.initializer;of(Rs)?Ca(Rs):fl(yt(t.createExpressionStatement(D.checkDefined(Ye(Rs,Ue,ht))),Rs))}ar(Gt),Ce.condition&&gr(da,D.checkDefined(Ye(Ce.condition,Ue,ht))),Yt(Ce.statement),ar(un),Ce.incrementor&&fl(yt(t.createExpressionStatement(D.checkDefined(Ye(Ce.incrementor,Ue,ht))),Ce.incrementor)),Cl(Gt),ti()}else fl(Ye(Ce,Ue,us))}function it(Ce){E&&Wo();const Gt=Ce.initializer;if(Gt&&of(Gt)){for(const da of Gt.declarations)l(da.name);const un=c9(Gt);Ce=t.updateForStatement(Ce,un.length>0?t.inlineExpressions(er(un,rn)):void 0,Ye(Ce.condition,Ue,ht),Ye(Ce.incrementor,Ue,ht),Xp(Ce.statement,Ue,e))}else Ce=nn(Ce,Ue,e);return E&&ti(),Ce}function Wt(Ce){if(w(Ce)){const Gt=q(),un=q(),da=q(),Rs=t.createLoopVariable(),ne=Ce.initializer;l(Rs),Nu(Gt,D.checkDefined(Ye(Ce.expression,Ue,ht))),Nu(un,t.createArrayLiteralExpression()),fl(t.createForInStatement(da,Gt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(un,"push"),void 0,[da])))),Nu(Rs,t.createNumericLiteral(0));const _t=rt(),Qt=rt(),Kt=Ks(Qt);ar(_t),gr(Kt,t.createLessThan(Rs,t.createPropertyAccessExpression(un,"length"))),Nu(da,t.createElementAccessExpression(un,Rs)),gr(Qt,t.createBinaryExpression(da,103,Gt));let xr;if(of(ne)){for(const fn of ne.declarations)l(fn.name);xr=t.cloneNode(ne.declarations[0].name)}else xr=D.checkDefined(Ye(ne,Ue,ht)),D.assert(Dd(xr));Nu(xr,da),Yt(Ce.statement),ar(Qt),fl(t.createExpressionStatement(t.createPostfixIncrement(Rs))),Cl(_t),ti()}else fl(Ye(Ce,Ue,us))}function nr(Ce){E&&Wo();const Gt=Ce.initializer;if(of(Gt)){for(const un of Gt.declarations)l(un.name);Ce=t.updateForInStatement(Ce,Gt.declarations[0].name,D.checkDefined(Ye(Ce.expression,Ue,ht)),D.checkDefined(Ye(Ce.statement,Ue,us,t.liftToBlock)))}else Ce=nn(Ce,Ue,e);return E&&ti(),Ce}function Y(Ce){const Gt=Ms(Ce.label?ri(Ce.label):void 0);Gt>0?Cl(Gt,Ce):fl(Ce)}function Ge(Ce){if(E){const Gt=Ms(Ce.label&&ri(Ce.label));if(Gt>0)return ru(Gt,Ce)}return nn(Ce,Ue,e)}function dt(Ce){const Gt=uf(Ce.label?ri(Ce.label):void 0);Gt>0?Cl(Gt,Ce):fl(Ce)}function Q(Ce){if(E){const Gt=uf(Ce.label&&ri(Ce.label));if(Gt>0)return ru(Gt,Ce)}return nn(Ce,Ue,e)}function at(Ce){_f(Ye(Ce.expression,Ue,ht),Ce)}function fr(Ce){return dp(Ye(Ce.expression,Ue,ht),Ce)}function Ne(Ce){w(Ce)?(Ti(pe(D.checkDefined(Ye(Ce.expression,Ue,ht)))),Yt(Ce.statement),Ui()):fl(Ye(Ce,Ue,us))}function $t(Ce){if(w(Ce.caseBlock)){const Gt=Ce.caseBlock,un=Gt.clauses.length,da=al(),Rs=pe(D.checkDefined(Ye(Ce.expression,Ue,ht))),ne=[];let _t=-1;for(let xr=0;xr0)break;Kt.push(t.createCaseClause(D.checkDefined(Ye(si.expression,Ue,ht)),[ru(ne[fn],si.expression)]))}else xr++}Kt.length&&(fl(t.createSwitchStatement(Rs,t.createCaseBlock(Kt))),Qt+=Kt.length,Kt=[]),xr>0&&(Qt+=xr,xr=0)}_t>=0?Cl(ne[_t]):Cl(da);for(let xr=0;xr=0;un--){const da=U[un];if(el(da)){if(da.labelText===Ce)return!0}else break}return!1}function uf(Ce){if(U)if(Ce)for(let Gt=U.length-1;Gt>=0;Gt--){const un=U[Gt];if(el(un)&&un.labelText===Ce)return un.breakLabel;if(Ua(un)&&du(Ce,Gt-1))return un.breakLabel}else for(let Gt=U.length-1;Gt>=0;Gt--){const un=U[Gt];if(Ua(un))return un.breakLabel}return 0}function Ms(Ce){if(U)if(Ce)for(let Gt=U.length-1;Gt>=0;Gt--){const un=U[Gt];if(Wl(un)&&du(Ce,Gt-1))return un.continueLabel}else for(let Gt=U.length-1;Gt>=0;Gt--){const un=U[Gt];if(Wl(un))return un.continueLabel}return 0}function qa(Ce){if(Ce!==void 0&&Ce>0){re===void 0&&(re=[]);const Gt=t.createNumericLiteral(-1);return re[Ce]===void 0?re[Ce]=[Gt]:re[Ce].push(Gt),Gt}return t.createOmittedExpression()}function h_(Ce){const Gt=t.createNumericLiteral(Ce);return sR(Gt,3,VNe(Ce)),Gt}function ru(Ce,Gt){return D.assertLessThan(0,Ce,"Invalid label"),yt(t.createReturnStatement(t.createArrayLiteralExpression([h_(3),qa(Ce)])),Gt)}function dp(Ce,Gt){return yt(t.createReturnStatement(t.createArrayLiteralExpression(Ce?[h_(2),Ce]:[h_(2)])),Gt)}function k_(Ce){return yt(t.createCallExpression(t.createPropertyAccessExpression(ae,"sent"),void 0,[]),Ce)}function wf(){Le(0)}function fl(Ce){Ce?Le(1,[Ce]):wf()}function Nu(Ce,Gt,un){Le(2,[Ce,Gt],un)}function Cl(Ce,Gt){Le(3,[Ce],Gt)}function Hl(Ce,Gt,un){Le(4,[Ce,Gt],un)}function gr(Ce,Gt,un){Le(5,[Ce,Gt],un)}function r_(Ce,Gt){Le(7,[Ce],Gt)}function Zf(Ce,Gt){Le(6,[Ce],Gt)}function _f(Ce,Gt){Le(8,[Ce],Gt)}function fe(Ce,Gt){Le(9,[Ce],Gt)}function G(){Le(10)}function Le(Ce,Gt,un){ce===void 0&&(ce=[],R=[],le=[]),V===void 0&&ar(rt());const da=ce.length;ce[da]=Ce,R[da]=Gt,le[da]=un}function gt(){ye=0,$=0,ee=void 0,te=!1,me=!1,ve=void 0,we=void 0,K=void 0,Ze=void 0,Re=void 0;const Ce=Nt();return n().createGeneratorHelper(Ln(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,ae)],void 0,t.createBlock(Ce,Ce.length>0)),1048576))}function Nt(){if(ce){for(let Ce=0;Ce=0;Gt--){const un=Re[Gt];we=[t.createWithStatement(un.expression,t.createBlock(we))]}if(Ze){const{startLabel:Gt,catchLabel:un,finallyLabel:da,endLabel:Rs}=Ze;we.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(ae,"trys"),"push"),void 0,[t.createArrayLiteralExpression([qa(Gt),qa(un),qa(da),qa(Rs)])]))),Ze=void 0}Ce&&we.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ae,"label"),t.createNumericLiteral($+1))))}ve.push(t.createCaseClause(t.createNumericLiteral($),we||[])),we=void 0}function La(Ce){if(V)for(let Gt=0;Gtn.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(ri(ar))),rt),n.createVoidZero())));Ht(ge,Ye(N.externalHelpersImportDeclaration,ee,us)),Et(ge,dn(w.statements,ee,us,ue)),$(ge,!1),ah(ge,o());const _e=n.updateSourceFile(w,yt(n.createNodeArray(ge),w.statements));return Kv(_e,e.readEmitHelpers()),_e}function ce(w){const ge=n.createIdentifier("define"),he=yI(n,w,h,f),ue=O0(w)&&w,{aliasedModuleNames:_e,unaliasedModuleNames:pe,importAliasNames:q}=le(w,!0),rt=n.updateSourceFile(w,yt(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(ge,void 0,[...he?[he]:[],n.createArrayLiteralExpression(ue?tt:[n.createStringLiteral("require"),n.createStringLiteral("exports"),..._e,...pe]),ue?ue.statements.length?ue.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...q],void 0,ye(w))]))]),w.statements));return Kv(rt,e.readEmitHelpers()),rt}function R(w){const{aliasedModuleNames:ge,unaliasedModuleNames:he,importAliasNames:ue}=le(w,!1),_e=yI(n,w,h,f),pe=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"factory")],void 0,yt(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),Ln(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,[..._e?[_e]:[],n.createArrayLiteralExpression([n.createStringLiteral("require"),n.createStringLiteral("exports"),...ge,...he]),n.createIdentifier("factory")]))])))],!0),void 0)),q=n.updateSourceFile(w,yt(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(pe,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...ue],void 0,ye(w))]))]),w.statements));return Kv(q,e.readEmitHelpers()),q}function le(w,ge){const he=[],ue=[],_e=[];for(const pe of w.amdDependencies)pe.name?(he.push(n.createStringLiteral(pe.path)),_e.push(n.createParameterDeclaration(void 0,void 0,pe.name))):ue.push(n.createStringLiteral(pe.path));for(const pe of N.externalImports){const q=BS(n,pe,O,h,_,f),rt=Rk(n,pe,O);q&&(ge&&rt?(Ln(rt,8),he.push(q),_e.push(n.createParameterDeclaration(void 0,void 0,rt))):ue.push(q))}return{aliasedModuleNames:he,unaliasedModuleNames:ue,importAliasNames:_e}}function ae(w){if(Hf(w)||Sf(w)||!BS(n,w,O,h,_,f))return;const ge=Rk(n,w,O),he=bi(w,ge);if(he!==ge)return n.createExpressionStatement(n.createAssignment(ge,he))}function ye(w){s();const ge=[],he=n.copyPrologue(w.statements,ge,!f.noImplicitUseStrict,ee);re()&&Ht(ge,Y()),Nr(N.exportedNames)&&Ht(ge,n.createExpressionStatement(la(N.exportedNames,(_e,pe)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(ri(pe))),_e),n.createVoidZero()))),Ht(ge,Ye(N.externalHelpersImportDeclaration,ee,us)),y===2&&Et(ge,Mr(N.externalImports,ae)),Et(ge,dn(w.statements,ee,us,he)),$(ge,!0),ah(ge,o());const ue=n.createBlock(ge,!0);return U&&TS(ue,R0e),ue}function $(w,ge){if(N.exportEquals){const he=Ye(N.exportEquals.expression,ve,ht);if(he)if(ge){const ue=n.createReturnStatement(he);yt(ue,N.exportEquals),Ln(ue,3840),w.push(ue)}else{const ue=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),he));yt(ue,N.exportEquals),Ln(ue,3072),w.push(ue)}}}function ee(w){switch(w.kind){case 271:return Pt(w);case 270:return Yt(w);case 277:return Qr(w);case 276:return $r(w);case 261:return Fn(w);case 262:return ja(w);default:return te(w)}}function te(w){switch(w.kind){case 242:return Ca(w);case 261:return Fn(w);case 262:return ja(w);case 247:return Re(w,!0);case 248:return Fe(w);case 249:return Ue(w);case 245:return Ae(w);case 246:return Me(w);case 255:return He(w);case 253:return je(w);case 244:return Pe(w);case 254:return nt(w);case 268:return wt(w);case 295:return xt(w);case 296:return Zt(w);case 257:return Qe(w);case 298:return Mt(w);case 240:return yr(w);default:return ve(w)}}function me(w,ge){if(!(w.transformFlags&276828160))return w;switch(w.kind){case 247:return Re(w,!1);case 243:return Cr(w);case 216:return Lt(w,ge);case 359:return an(w,ge);case 212:if(xm(w)&&O.impliedNodeFormat===void 0)return Lr(w);break;case 225:if(Zv(w))return Ze(w,ge);break;case 223:case 224:return xn(w,ge)}return nn(w,ve,e)}function ve(w){return me(w,!1)}function we(w){return me(w,!0)}function K(w){if(Dc(w))for(const ge of w.properties)switch(ge.kind){case 302:if(K(ge.initializer))return!0;break;case 303:if(K(ge.name))return!0;break;case 304:if(K(ge.expression))return!0;break;case 173:case 176:case 177:return!1;default:D.assertNever(ge,"Unhandled object member kind")}else if(Op(w)){for(const ge of w.elements)if(gh(ge)){if(K(ge.expression))return!0}else if(K(ge))return!0}else if(Be(w))return Nr(Jn(w))>(XR(w)?1:0);return!1}function Ze(w,ge){return K(w.left)?L7(w,ve,e,0,!ge,rn):nn(w,ve,e)}function Re(w,ge){if(ge&&w.initializer&&of(w.initializer)&&!(w.initializer.flags&3)){const he=ot(void 0,w.initializer,!1);if(he){const ue=[],_e=Ye(w.initializer,we,of),pe=n.createVariableStatement(void 0,_e);ue.push(pe),Et(ue,he);const q=Ye(w.condition,ve,ht),rt=Ye(w.incrementor,we,ht),ar=Xp(w.statement,ge?te:ve,e);return ue.push(n.updateForStatement(w,void 0,q,rt,ar)),ue}}return n.updateForStatement(w,Ye(w.initializer,we,i0),Ye(w.condition,ve,ht),Ye(w.incrementor,we,ht),Xp(w.statement,ge?te:ve,e))}function Fe(w){if(of(w.initializer)&&!(w.initializer.flags&3)){const ge=ot(void 0,w.initializer,!0);if(bt(ge)){const he=Ye(w.initializer,we,i0),ue=Ye(w.expression,ve,ht),_e=Xp(w.statement,te,e),pe=oo(_e)?n.updateBlock(_e,[...ge,..._e.statements]):n.createBlock([...ge,_e],!0);return n.updateForInStatement(w,he,ue,pe)}}return n.updateForInStatement(w,Ye(w.initializer,we,i0),Ye(w.expression,ve,ht),Xp(w.statement,te,e))}function Ue(w){if(of(w.initializer)&&!(w.initializer.flags&3)){const ge=ot(void 0,w.initializer,!0),he=Ye(w.initializer,we,i0),ue=Ye(w.expression,ve,ht);let _e=Xp(w.statement,te,e);return bt(ge)&&(_e=oo(_e)?n.updateBlock(_e,[...ge,..._e.statements]):n.createBlock([...ge,_e],!0)),n.updateForOfStatement(w,w.awaitModifier,he,ue,_e)}return n.updateForOfStatement(w,w.awaitModifier,Ye(w.initializer,we,i0),Ye(w.expression,ve,ht),Xp(w.statement,te,e))}function Ae(w){return n.updateDoStatement(w,Xp(w.statement,te,e),Ye(w.expression,ve,ht))}function Me(w){return n.updateWhileStatement(w,Ye(w.expression,ve,ht),Xp(w.statement,te,e))}function He(w){return n.updateLabeledStatement(w,w.label,D.checkDefined(Ye(w.statement,te,us,n.liftToBlock)))}function je(w){return n.updateWithStatement(w,Ye(w.expression,ve,ht),D.checkDefined(Ye(w.statement,te,us,n.liftToBlock)))}function Pe(w){return n.updateIfStatement(w,Ye(w.expression,ve,ht),D.checkDefined(Ye(w.thenStatement,te,us,n.liftToBlock)),Ye(w.elseStatement,te,us,n.liftToBlock))}function nt(w){return n.updateSwitchStatement(w,Ye(w.expression,ve,ht),D.checkDefined(Ye(w.caseBlock,te,U9)))}function wt(w){return n.updateCaseBlock(w,dn(w.clauses,te,OL))}function xt(w){return n.updateCaseClause(w,Ye(w.expression,ve,ht),dn(w.statements,te,us))}function Zt(w){return nn(w,te,e)}function Qe(w){return nn(w,te,e)}function Mt(w){return n.updateCatchClause(w,w.variableDeclaration,D.checkDefined(Ye(w.block,te,oo)))}function yr(w){return w=nn(w,te,e),w}function Cr(w){return n.updateExpressionStatement(w,Ye(w.expression,we,ht))}function Lt(w,ge){return n.updateParenthesizedExpression(w,Ye(w.expression,ge?we:ve,ht))}function an(w,ge){return n.updatePartiallyEmittedExpression(w,Ye(w.expression,ge?we:ve,ht))}function xn(w,ge){if((w.operator===46||w.operator===47)&&Be(w.operand)&&!uu(w.operand)&&!n2(w.operand)&&!gH(w.operand)){const he=Jn(w.operand);if(he){let ue,_e=Ye(w.operand,ve,ht);B4(w)?_e=n.updatePrefixUnaryExpression(w,_e):(_e=n.updatePostfixUnaryExpression(w,_e),ge||(ue=n.createTempVariable(l),_e=n.createAssignment(ue,_e),yt(_e,w)),_e=n.createComma(_e,n.cloneNode(w.operand)),yt(_e,w));for(const pe of he)B[Nc(_e)]=!0,_e=dt(pe,_e),yt(_e,w);return ue&&(B[Nc(_e)]=!0,_e=n.createComma(_e,ue),yt(_e,w)),_e}}return nn(w,ve,e)}function Lr(w){if(y===0&&m>=7)return nn(w,ve,e);const ge=BS(n,w,O,h,_,f),he=Ye(Ji(w.arguments),ve,ht),ue=ge&&(!he||!sc(he)||he.text!==ge.text)?ge:he,_e=!!(w.transformFlags&16384);switch(f.module){case 2:return vi(ue,_e);case 3:return In(ue!=null?ue:n.createVoidZero(),_e);case 1:default:return ia(ue)}}function In(w,ge){if(U=!0,N3(w)){const he=uu(w)?w:sc(w)?n.createStringLiteralFromNode(w):Ln(yt(n.cloneNode(w),w),3072);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,ia(w),void 0,vi(he,ge))}else{const he=n.createTempVariable(l);return n.createComma(n.createAssignment(he,w),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,ia(he,!0),void 0,vi(he,ge)))}}function vi(w,ge){const he=n.createUniqueName("resolve"),ue=n.createUniqueName("reject"),_e=[n.createParameterDeclaration(void 0,void 0,he),n.createParameterDeclaration(void 0,void 0,ue)],pe=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([w||n.createOmittedExpression()]),he,ue]))]);let q;m>=2?q=n.createArrowFunction(void 0,void 0,_e,void 0,void 0,pe):(q=n.createFunctionExpression(void 0,void 0,void 0,void 0,_e,void 0,pe),ge&&Ln(q,16));const rt=n.createNewExpression(n.createIdentifier("Promise"),void 0,[q]);return fh(f)?n.createCallExpression(n.createPropertyAccessExpression(rt,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):rt}function ia(w,ge){const he=w&&!D1(w)&&!ge,ue=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,he?m>=2?[n.createTemplateExpression(n.createTemplateHead(""),[n.createTemplateSpan(w,n.createTemplateTail(""))])]:[n.createCallExpression(n.createPropertyAccessExpression(n.createStringLiteral(""),"concat"),void 0,[w])]:[]);let _e=n.createCallExpression(n.createIdentifier("require"),void 0,he?[n.createIdentifier("s")]:w?[w]:[]);fh(f)&&(_e=i().createImportStarHelper(_e));const pe=he?[n.createParameterDeclaration(void 0,void 0,"s")]:[];let q;return m>=2?q=n.createArrowFunction(void 0,void 0,pe,void 0,void 0,_e):q=n.createFunctionExpression(void 0,void 0,void 0,void 0,pe,void 0,n.createBlock([n.createReturnStatement(_e)])),n.createCallExpression(n.createPropertyAccessExpression(ue,"then"),void 0,[q])}function Wa(w,ge){return!fh(f)||K0(w)&2?ge:u0e(w)?i().createImportStarHelper(ge):ge}function bi(w,ge){return!fh(f)||K0(w)&2?ge:$B(w)?i().createImportStarHelper(ge):kZ(w)?i().createImportDefaultHelper(ge):ge}function Pt(w){let ge;const he=K5(w);if(y!==2)if(w.importClause){const ue=[];he&&!sS(w)?ue.push(n.createVariableDeclaration(n.cloneNode(he.name),void 0,void 0,bi(w,Ar(w)))):(ue.push(n.createVariableDeclaration(n.getGeneratedNameForNode(w),void 0,void 0,bi(w,Ar(w)))),he&&sS(w)&&ue.push(n.createVariableDeclaration(n.cloneNode(he.name),void 0,void 0,n.getGeneratedNameForNode(w)))),ge=Ht(ge,yi(yt(n.createVariableStatement(void 0,n.createVariableDeclarationList(ue,m>=2?2:0)),w),w))}else return yi(yt(n.createExpressionStatement(Ar(w)),w),w);else he&&sS(w)&&(ge=Ht(ge,n.createVariableStatement(void 0,n.createVariableDeclarationList([yi(yt(n.createVariableDeclaration(n.cloneNode(he.name),void 0,void 0,n.getGeneratedNameForNode(w)),w),w)],m>=2?2:0))));return ge=ln(ge,w),Ci(ge)}function Ar(w){const ge=BS(n,w,O,h,_,f),he=[];return ge&&he.push(ge),n.createCallExpression(n.createIdentifier("require"),void 0,he)}function Yt(w){D.assert(A4(w),"import= for internal module references should be handled in an earlier transformer.");let ge;return y!==2?Pi(w,1)?ge=Ht(ge,yi(yt(n.createExpressionStatement(dt(w.name,Ar(w))),w),w)):ge=Ht(ge,yi(yt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(w.name),void 0,void 0,Ar(w))],m>=2?2:0)),w),w)):Pi(w,1)&&(ge=Ht(ge,yi(yt(n.createExpressionStatement(dt(n.getExportName(w),n.getLocalName(w))),w),w))),ge=Kr(ge,w),Ci(ge)}function Qr(w){if(!w.moduleSpecifier)return;const ge=n.getGeneratedNameForNode(w);if(w.exportClause&&og(w.exportClause)){const he=[];y!==2&&he.push(yi(yt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(ge,void 0,void 0,Ar(w))])),w),w));for(const ue of w.exportClause.elements)if(m===0)he.push(yi(yt(n.createExpressionStatement(i().createCreateBindingHelper(ge,n.createStringLiteralFromNode(ue.propertyName||ue.name),ue.propertyName?n.createStringLiteralFromNode(ue.name):void 0)),ue),ue));else{const _e=!!fh(f)&&!(K0(w)&2)&&ri(ue.propertyName||ue.name)==="default",pe=n.createPropertyAccessExpression(_e?i().createImportDefaultHelper(ge):ge,ue.propertyName||ue.name);he.push(yi(yt(n.createExpressionStatement(dt(n.getExportName(ue),pe,void 0,!0)),ue),ue))}return Ci(he)}else if(w.exportClause){const he=[];return he.push(yi(yt(n.createExpressionStatement(dt(n.cloneNode(w.exportClause.name),Wa(w,y!==2?Ar(w):VL(w)?ge:n.createIdentifier(ri(w.exportClause.name))))),w),w)),Ci(he)}else return yi(yt(n.createExpressionStatement(i().createExportStarHelper(y!==2?Ar(w):ge)),w),w)}function $r(w){if(!w.isExportEquals)return Ge(n.createIdentifier("default"),Ye(w.expression,ve,ht),w,!0)}function Fn(w){let ge;return Pi(w,1)?ge=Ht(ge,yi(yt(n.createFunctionDeclaration(dn(w.modifiers,Q,Do),w.asteriskToken,n.getDeclarationName(w,!0,!0),void 0,dn(w.parameters,ve,Cs),void 0,nn(w.body,ve,e)),w),w)):ge=Ht(ge,nn(w,ve,e)),ge=it(ge,w),Ci(ge)}function ja(w){let ge;return Pi(w,1)?ge=Ht(ge,yi(yt(n.createClassDeclaration(dn(w.modifiers,Q,Ul),n.getDeclarationName(w,!0,!0),void 0,dn(w.heritageClauses,ve,Kd),dn(w.members,ve,yf)),w),w)):ge=Ht(ge,nn(w,ve,e)),ge=it(ge,w),Ci(ge)}function Ca(w){let ge,he,ue;if(Pi(w,1)){let _e,pe=!1;for(const q of w.declarationList.declarations)if(Be(q.name)&&n2(q.name))if(_e||(_e=dn(w.modifiers,Q,Do)),q.initializer){const rt=n.updateVariableDeclaration(q,q.name,void 0,void 0,dt(q.name,Ye(q.initializer,ve,ht)));he=Ht(he,rt)}else he=Ht(he,q);else if(q.initializer)if(!_o(q.name)&&(Fl(q.initializer)||_l(q.initializer)||Mp(q.initializer))){const rt=n.createAssignment(yt(n.createPropertyAccessExpression(n.createIdentifier("exports"),q.name),q.name),n.createIdentifier(ng(q.name))),ar=n.createVariableDeclaration(q.name,q.exclamationToken,q.type,Ye(q.initializer,ve,ht));he=Ht(he,ar),ue=Ht(ue,rt),pe=!0}else ue=Ht(ue,wr(q));if(he&&(ge=Ht(ge,n.updateVariableStatement(w,_e,n.updateVariableDeclarationList(w.declarationList,he)))),ue){const q=yi(yt(n.createExpressionStatement(n.inlineExpressions(ue)),w),w);pe&&HN(q),ge=Ht(ge,q)}}else ge=Ht(ge,nn(w,ve,e));return ge=Li(ge,w),Ci(ge)}function rn(w,ge,he){const ue=Jn(w);if(ue){let _e=XR(w)?ge:n.createAssignment(w,ge);for(const pe of ue)Ln(_e,8),_e=dt(pe,_e,he);return _e}return n.createAssignment(w,ge)}function wr(w){return _o(w.name)?L7(Ye(w,ve,hH),ve,e,0,!1,rn):n.createAssignment(yt(n.createPropertyAccessExpression(n.createIdentifier("exports"),w.name),w.name),w.initializer?Ye(w.initializer,ve,ht):n.createVoidZero())}function ln(w,ge){if(N.exportEquals)return w;const he=ge.importClause;if(!he)return w;he.name&&(w=Wt(w,he));const ue=he.namedBindings;if(ue)switch(ue.kind){case 273:w=Wt(w,ue);break;case 274:for(const _e of ue.elements)w=Wt(w,_e,!0);break}return w}function Kr(w,ge){return N.exportEquals?w:Wt(w,ge)}function Li(w,ge){return ot(w,ge.declarationList,!1)}function ot(w,ge,he){if(N.exportEquals)return w;for(const ue of ge.declarations)w=Tt(w,ue,he);return w}function Tt(w,ge,he){if(N.exportEquals)return w;if(_o(ge.name))for(const ue of ge.name.elements)sf(ue)||(w=Tt(w,ue,he));else!uu(ge.name)&&(!Fa(ge)||ge.initializer||he)&&(w=Wt(w,ge));return w}function it(w,ge){if(N.exportEquals)return w;if(Pi(ge,1)){const he=Pi(ge,1024)?n.createIdentifier("default"):n.getDeclarationName(ge);w=nr(w,he,n.getLocalName(ge),ge)}return ge.name&&(w=Wt(w,ge)),w}function Wt(w,ge,he){const ue=n.getDeclarationName(ge),_e=N.exportSpecifiers.get(ri(ue));if(_e)for(const pe of _e)w=nr(w,pe.name,ue,pe.name,void 0,he);return w}function nr(w,ge,he,ue,_e,pe){return w=Ht(w,Ge(ge,he,ue,_e,pe)),w}function Y(){let w;return m===0?w=n.createExpressionStatement(dt(n.createIdentifier("__esModule"),n.createTrue())):w=n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])])),Ln(w,2097152),w}function Ge(w,ge,he,ue,_e){const pe=yt(n.createExpressionStatement(dt(w,ge,void 0,_e)),he);return Fp(pe),ue||Ln(pe,3072),pe}function dt(w,ge,he,ue){return yt(ue&&m!==0?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(w),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(ge)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(w)),ge),he)}function Q(w){switch(w.kind){case 95:case 90:return}return w}function at(w,ge,he){ge.kind===311?(O=ge,N=E[_p(O)],k(w,ge,he),O=void 0,N=void 0):k(w,ge,he)}function fr(w,ge){return ge=T(w,ge),ge.id&&B[ge.id]?ge:w===1?$t(ge):_0(ge)?Ne(ge):ge}function Ne(w){const ge=w.name,he=li(ge);if(he!==ge){if(w.objectAssignmentInitializer){const ue=n.createAssignment(he,w.objectAssignmentInitializer);return yt(n.createPropertyAssignment(ge,ue),w)}return yt(n.createPropertyAssignment(ge,he),w)}return w}function $t(w){switch(w.kind){case 80:return li(w);case 212:return Jt(w);case 214:return Pr(w);case 225:return Yn(w)}return w}function Jt(w){if(Be(w.expression)){const ge=li(w.expression);if(B[Nc(ge)]=!0,!Be(ge)&&!(_c(w.expression)&8192))return bS(n.updateCallExpression(w,ge,void 0,w.arguments),16)}return w}function Pr(w){if(Be(w.tag)){const ge=li(w.tag);if(B[Nc(ge)]=!0,!Be(ge)&&!(_c(w.tag)&8192))return bS(n.updateTaggedTemplateExpression(w,ge,void 0,w.template),16)}return w}function li(w){var ge,he;if(_c(w)&8192){const ue=hI(O);return ue?n.createPropertyAccessExpression(ue,w):w}else if(!(uu(w)&&!(w.emitNode.autoGenerate.flags&64))&&!n2(w)){const ue=_.getReferencedExportContainer(w,XR(w));if(ue&&ue.kind===311)return yt(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(w)),w);const _e=_.getReferencedImportDeclaration(w);if(_e){if(hh(_e))return yt(n.createPropertyAccessExpression(n.getGeneratedNameForNode(_e.parent),n.createIdentifier("default")),w);if(Ld(_e)){const pe=_e.propertyName||_e.name;return yt(n.createPropertyAccessExpression(n.getGeneratedNameForNode(((he=(ge=_e.parent)==null?void 0:ge.parent)==null?void 0:he.parent)||_e),n.cloneNode(pe)),w)}}}return w}function Yn(w){if(Xv(w.operatorToken.kind)&&Be(w.left)&&!uu(w.left)&&!n2(w.left)){const ge=Jn(w.left);if(ge){let he=w;for(const ue of ge)B[Nc(he)]=!0,he=dt(ue,he,w);return he}}return w}function Jn(w){if(!uu(w)){const ge=_.getReferencedImportDeclaration(w);if(ge)return N==null?void 0:N.exportedBindings[_p(ge)];const he=new Set,ue=_.getReferencedValueDeclarations(w);if(ue){for(const _e of ue){const pe=N==null?void 0:N.exportedBindings[_p(_e)];if(pe)for(const q of pe)he.add(q)}if(he.size)return zt(he)}}}}var R0e,qNe=or({"src/compiler/transformers/module/module.ts"(){"use strict";ho(),R0e={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function B0e(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:i,hoistVariableDeclaration:s}=e,o=e.getCompilerOptions(),l=e.getEmitResolver(),f=e.getEmitHost(),_=e.onSubstituteNode,h=e.onEmitNode;e.onSubstituteNode=dt,e.onEmitNode=Ge,e.enableSubstitution(80),e.enableSubstitution(303),e.enableSubstitution(225),e.enableSubstitution(235),e.enableEmitNotification(311);const m=[],y=[],T=[],k=[];let E,O,N,B,U,V,re;return ug(e,z);function z(w){if(w.isDeclarationFile||!(rS(w,o)||w.transformFlags&8388608))return w;const ge=_p(w);E=w,V=w,O=m[ge]=CZ(e,w,l,o),N=t.createUniqueName("exports"),y[ge]=N,B=k[ge]=t.createUniqueName("context");const he=ce(O.externalImports),ue=R(w,he),_e=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,N),t.createParameterDeclaration(void 0,void 0,B)],void 0,ue),pe=yI(t,w,f,o),q=t.createArrayLiteralExpression(er(he,ar=>ar.name)),rt=Ln(t.updateSourceFile(w,yt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,pe?[pe,q,_e]:[q,_e]))]),w.statements)),2048);return Ml(o)||Ife(rt,ue,ar=>!ar.scoped),re&&(T[ge]=re,re=void 0),E=void 0,O=void 0,N=void 0,B=void 0,U=void 0,V=void 0,rt}function ce(w){const ge=new Map,he=[];for(const ue of w){const _e=BS(t,ue,E,f,l,o);if(_e){const pe=_e.text,q=ge.get(pe);q!==void 0?he[q].externalImports.push(ue):(ge.set(pe,he.length),he.push({name:_e,externalImports:[ue]}))}}return he}function R(w,ge){const he=[];n();const ue=R0(o,"alwaysStrict")||!o.noImplicitUseStrict&&c_(E),_e=t.copyPrologue(w.statements,he,ue,$);he.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(B,t.createPropertyAccessExpression(B,"id")))]))),Ye(O.externalHelpersImportDeclaration,$,us);const pe=dn(w.statements,$,us,_e);Et(he,U),ah(he,i());const q=le(he),rt=w.transformFlags&2097152?t.createModifiersFromModifierFlags(512):void 0,ar=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ye(q,ge)),t.createPropertyAssignment("execute",t.createFunctionExpression(rt,void 0,void 0,void 0,[],void 0,t.createBlock(pe,!0)))],!0);return he.push(t.createReturnStatement(ar)),t.createBlock(he,!0)}function le(w){if(!O.hasExportStarsToExportValues)return;if(!O.exportedNames&&O.exportSpecifiers.size===0){let _e=!1;for(const pe of O.externalImports)if(pe.kind===277&&pe.exportClause){_e=!0;break}if(!_e){const pe=ae(void 0);return w.push(pe),pe.name}}const ge=[];if(O.exportedNames)for(const _e of O.exportedNames)_e.escapedText!=="default"&&ge.push(t.createPropertyAssignment(t.createStringLiteralFromNode(_e),t.createTrue()));const he=t.createUniqueName("exportedNames");w.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(he,void 0,void 0,t.createObjectLiteralExpression(ge,!0))])));const ue=ae(he);return w.push(ue),ue.name}function ae(w){const ge=t.createUniqueName("exportStar"),he=t.createIdentifier("m"),ue=t.createIdentifier("n"),_e=t.createIdentifier("exports");let pe=t.createStrictInequality(ue,t.createStringLiteral("default"));return w&&(pe=t.createLogicalAnd(pe,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(w,"hasOwnProperty"),void 0,[ue])))),t.createFunctionDeclaration(void 0,void 0,ge,void 0,[t.createParameterDeclaration(void 0,void 0,he)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(_e,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(ue)]),he,t.createBlock([Ln(t.createIfStatement(pe,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(_e,ue),t.createElementAccessExpression(he,ue)))),1)])),t.createExpressionStatement(t.createCallExpression(N,void 0,[_e]))],!0))}function ye(w,ge){const he=[];for(const ue of ge){const _e=Vt(ue.externalImports,rt=>Rk(t,rt,E)),pe=_e?t.getGeneratedNameForNode(_e):t.createUniqueName(""),q=[];for(const rt of ue.externalImports){const ar=Rk(t,rt,E);switch(rt.kind){case 271:if(!rt.importClause)break;case 270:D.assert(ar!==void 0),q.push(t.createExpressionStatement(t.createAssignment(ar,pe))),Pi(rt,1)&&q.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createStringLiteral(ri(ar)),pe])));break;case 277:if(D.assert(ar!==void 0),rt.exportClause)if(og(rt.exportClause)){const st=[];for(const Ft of rt.exportClause.elements)st.push(t.createPropertyAssignment(t.createStringLiteral(ri(Ft.name)),t.createElementAccessExpression(pe,t.createStringLiteral(ri(Ft.propertyName||Ft.name)))));q.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createObjectLiteralExpression(st,!0)])))}else q.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createStringLiteral(ri(rt.exportClause.name)),pe])));else q.push(t.createExpressionStatement(t.createCallExpression(w,void 0,[pe])));break}}he.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,pe)],void 0,t.createBlock(q,!0)))}return t.createArrayLiteralExpression(he,!0)}function $(w){switch(w.kind){case 271:return ee(w);case 270:return me(w);case 277:return te(w);case 276:return ve(w);default:return Cr(w)}}function ee(w){let ge;return w.importClause&&s(Rk(t,w,E)),Ci(je(ge,w))}function te(w){D.assertIsDefined(w)}function me(w){D.assert(A4(w),"import= for internal module references should be handled in an earlier transformer.");let ge;return s(Rk(t,w,E)),Ci(Pe(ge,w))}function ve(w){if(w.isExportEquals)return;const ge=Ye(w.expression,wr,ht);return Mt(t.createIdentifier("default"),ge,!0)}function we(w){Pi(w,1)?U=Ht(U,t.updateFunctionDeclaration(w,dn(w.modifiers,Y,Ul),w.asteriskToken,t.getDeclarationName(w,!0,!0),void 0,dn(w.parameters,wr,Cs),void 0,Ye(w.body,wr,oo))):U=Ht(U,nn(w,wr,e)),U=xt(U,w)}function K(w){let ge;const he=t.getLocalName(w);return s(he),ge=Ht(ge,yt(t.createExpressionStatement(t.createAssignment(he,yt(t.createClassExpression(dn(w.modifiers,Y,Ul),w.name,void 0,dn(w.heritageClauses,wr,Kd),dn(w.members,wr,yf)),w))),w)),ge=xt(ge,w),Ci(ge)}function Ze(w){if(!Fe(w.declarationList))return Ye(w,wr,us);let ge;const he=Pi(w,1);for(const _e of w.declarationList.declarations)_e.initializer?ge=Ht(ge,Ue(_e,he)):Re(_e);let ue;return ge&&(ue=Ht(ue,yt(t.createExpressionStatement(t.inlineExpressions(ge)),w))),ue=nt(ue,w,!1),Ci(ue)}function Re(w){if(_o(w.name))for(const ge of w.name.elements)sf(ge)||Re(ge);else s(t.cloneNode(w.name))}function Fe(w){return(_c(w)&4194304)===0&&(V.kind===311||(au(w).flags&3)===0)}function Ue(w,ge){const he=ge?Ae:Me;return _o(w.name)?L7(w,wr,e,0,!1,he):w.initializer?he(w.name,Ye(w.initializer,wr,ht)):w.name}function Ae(w,ge,he){return He(w,ge,he,!0)}function Me(w,ge,he){return He(w,ge,he,!1)}function He(w,ge,he,ue){return s(t.cloneNode(w)),ue?yr(w,Yn(yt(t.createAssignment(w,ge),he))):Yn(yt(t.createAssignment(w,ge),he))}function je(w,ge){if(O.exportEquals)return w;const he=ge.importClause;if(!he)return w;he.name&&(w=Zt(w,he));const ue=he.namedBindings;if(ue)switch(ue.kind){case 273:w=Zt(w,ue);break;case 274:for(const _e of ue.elements)w=Zt(w,_e);break}return w}function Pe(w,ge){return O.exportEquals?w:Zt(w,ge)}function nt(w,ge,he){if(O.exportEquals)return w;for(const ue of ge.declarationList.declarations)(ue.initializer||he)&&(w=wt(w,ue,he));return w}function wt(w,ge,he){if(O.exportEquals)return w;if(_o(ge.name))for(const ue of ge.name.elements)sf(ue)||(w=wt(w,ue,he));else if(!uu(ge.name)){let ue;he&&(w=Qe(w,ge.name,t.getLocalName(ge)),ue=ri(ge.name)),w=Zt(w,ge,ue)}return w}function xt(w,ge){if(O.exportEquals)return w;let he;if(Pi(ge,1)){const ue=Pi(ge,1024)?t.createStringLiteral("default"):ge.name;w=Qe(w,ue,t.getLocalName(ge)),he=ng(ue)}return ge.name&&(w=Zt(w,ge,he)),w}function Zt(w,ge,he){if(O.exportEquals)return w;const ue=t.getDeclarationName(ge),_e=O.exportSpecifiers.get(ri(ue));if(_e)for(const pe of _e)pe.name.escapedText!==he&&(w=Qe(w,pe.name,ue));return w}function Qe(w,ge,he,ue){return w=Ht(w,Mt(ge,he,ue)),w}function Mt(w,ge,he){const ue=t.createExpressionStatement(yr(w,ge));return Fp(ue),he||Ln(ue,3072),ue}function yr(w,ge){const he=Be(w)?t.createStringLiteralFromNode(w):w;return Ln(ge,_c(ge)|3072),xf(t.createCallExpression(N,void 0,[he,ge]),ge)}function Cr(w){switch(w.kind){case 242:return Ze(w);case 261:return we(w);case 262:return K(w);case 247:return Lt(w,!0);case 248:return an(w);case 249:return xn(w);case 245:return vi(w);case 246:return ia(w);case 255:return Wa(w);case 253:return bi(w);case 244:return Pt(w);case 254:return Ar(w);case 268:return Yt(w);case 295:return Qr(w);case 296:return $r(w);case 257:return Fn(w);case 298:return ja(w);case 240:return Ca(w);default:return wr(w)}}function Lt(w,ge){const he=V;return V=w,w=t.updateForStatement(w,Ye(w.initializer,ge?In:ln,i0),Ye(w.condition,wr,ht),Ye(w.incrementor,ln,ht),Xp(w.statement,ge?Cr:wr,e)),V=he,w}function an(w){const ge=V;return V=w,w=t.updateForInStatement(w,In(w.initializer),Ye(w.expression,wr,ht),Xp(w.statement,Cr,e)),V=ge,w}function xn(w){const ge=V;return V=w,w=t.updateForOfStatement(w,w.awaitModifier,In(w.initializer),Ye(w.expression,wr,ht),Xp(w.statement,Cr,e)),V=ge,w}function Lr(w){return of(w)&&Fe(w)}function In(w){if(Lr(w)){let ge;for(const he of w.declarations)ge=Ht(ge,Ue(he,!1)),he.initializer||Re(he);return ge?t.inlineExpressions(ge):t.createOmittedExpression()}else return Ye(w,ln,i0)}function vi(w){return t.updateDoStatement(w,Xp(w.statement,Cr,e),Ye(w.expression,wr,ht))}function ia(w){return t.updateWhileStatement(w,Ye(w.expression,wr,ht),Xp(w.statement,Cr,e))}function Wa(w){return t.updateLabeledStatement(w,w.label,D.checkDefined(Ye(w.statement,Cr,us,t.liftToBlock)))}function bi(w){return t.updateWithStatement(w,Ye(w.expression,wr,ht),D.checkDefined(Ye(w.statement,Cr,us,t.liftToBlock)))}function Pt(w){return t.updateIfStatement(w,Ye(w.expression,wr,ht),D.checkDefined(Ye(w.thenStatement,Cr,us,t.liftToBlock)),Ye(w.elseStatement,Cr,us,t.liftToBlock))}function Ar(w){return t.updateSwitchStatement(w,Ye(w.expression,wr,ht),D.checkDefined(Ye(w.caseBlock,Cr,U9)))}function Yt(w){const ge=V;return V=w,w=t.updateCaseBlock(w,dn(w.clauses,Cr,OL)),V=ge,w}function Qr(w){return t.updateCaseClause(w,Ye(w.expression,wr,ht),dn(w.statements,Cr,us))}function $r(w){return nn(w,Cr,e)}function Fn(w){return nn(w,Cr,e)}function ja(w){const ge=V;return V=w,w=t.updateCatchClause(w,w.variableDeclaration,D.checkDefined(Ye(w.block,Cr,oo))),V=ge,w}function Ca(w){const ge=V;return V=w,w=nn(w,Cr,e),V=ge,w}function rn(w,ge){if(!(w.transformFlags&276828160))return w;switch(w.kind){case 247:return Lt(w,!1);case 243:return Kr(w);case 216:return Li(w,ge);case 359:return ot(w,ge);case 225:if(Zv(w))return it(w,ge);break;case 212:if(xm(w))return Tt(w);break;case 223:case 224:return nr(w,ge)}return nn(w,wr,e)}function wr(w){return rn(w,!1)}function ln(w){return rn(w,!0)}function Kr(w){return t.updateExpressionStatement(w,Ye(w.expression,ln,ht))}function Li(w,ge){return t.updateParenthesizedExpression(w,Ye(w.expression,ge?ln:wr,ht))}function ot(w,ge){return t.updatePartiallyEmittedExpression(w,Ye(w.expression,ge?ln:wr,ht))}function Tt(w){const ge=BS(t,w,E,f,l,o),he=Ye(Ji(w.arguments),wr,ht),ue=ge&&(!he||!sc(he)||he.text!==ge.text)?ge:he;return t.createCallExpression(t.createPropertyAccessExpression(B,t.createIdentifier("import")),void 0,ue?[ue]:[])}function it(w,ge){return Wt(w.left)?L7(w,wr,e,0,!ge):nn(w,wr,e)}function Wt(w){if(Hp(w,!0))return Wt(w.left);if(gh(w))return Wt(w.expression);if(Dc(w))return bt(w.properties,Wt);if(Op(w))return bt(w.elements,Wt);if(_0(w))return Wt(w.name);if(Y_(w))return Wt(w.initializer);if(Be(w)){const ge=l.getReferencedExportContainer(w);return ge!==void 0&&ge.kind===311}else return!1}function nr(w,ge){if((w.operator===46||w.operator===47)&&Be(w.operand)&&!uu(w.operand)&&!n2(w.operand)&&!gH(w.operand)){const he=Pr(w.operand);if(he){let ue,_e=Ye(w.operand,wr,ht);B4(w)?_e=t.updatePrefixUnaryExpression(w,_e):(_e=t.updatePostfixUnaryExpression(w,_e),ge||(ue=t.createTempVariable(s),_e=t.createAssignment(ue,_e),yt(_e,w)),_e=t.createComma(_e,t.cloneNode(w.operand)),yt(_e,w));for(const pe of he)_e=yr(pe,Yn(_e));return ue&&(_e=t.createComma(_e,ue),yt(_e,w)),_e}}return nn(w,wr,e)}function Y(w){switch(w.kind){case 95:case 90:return}return w}function Ge(w,ge,he){if(ge.kind===311){const ue=_p(ge);E=ge,O=m[ue],N=y[ue],re=T[ue],B=k[ue],re&&delete T[ue],h(w,ge,he),E=void 0,O=void 0,N=void 0,B=void 0,re=void 0}else h(w,ge,he)}function dt(w,ge){return ge=_(w,ge),Jn(ge)?ge:w===1?fr(ge):w===4?Q(ge):ge}function Q(w){switch(w.kind){case 303:return at(w)}return w}function at(w){var ge,he;const ue=w.name;if(!uu(ue)&&!n2(ue)){const _e=l.getReferencedImportDeclaration(ue);if(_e){if(hh(_e))return yt(t.createPropertyAssignment(t.cloneNode(ue),t.createPropertyAccessExpression(t.getGeneratedNameForNode(_e.parent),t.createIdentifier("default"))),w);if(Ld(_e))return yt(t.createPropertyAssignment(t.cloneNode(ue),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((he=(ge=_e.parent)==null?void 0:ge.parent)==null?void 0:he.parent)||_e),t.cloneNode(_e.propertyName||_e.name))),w)}}return w}function fr(w){switch(w.kind){case 80:return Ne(w);case 225:return $t(w);case 235:return Jt(w)}return w}function Ne(w){var ge,he;if(_c(w)&8192){const ue=hI(E);return ue?t.createPropertyAccessExpression(ue,w):w}if(!uu(w)&&!n2(w)){const ue=l.getReferencedImportDeclaration(w);if(ue){if(hh(ue))return yt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(ue.parent),t.createIdentifier("default")),w);if(Ld(ue))return yt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((he=(ge=ue.parent)==null?void 0:ge.parent)==null?void 0:he.parent)||ue),t.cloneNode(ue.propertyName||ue.name)),w)}}return w}function $t(w){if(Xv(w.operatorToken.kind)&&Be(w.left)&&!uu(w.left)&&!n2(w.left)){const ge=Pr(w.left);if(ge){let he=w;for(const ue of ge)he=yr(ue,Yn(he));return he}}return w}function Jt(w){return q5(w)?t.createPropertyAccessExpression(B,t.createIdentifier("meta")):w}function Pr(w){let ge;const he=li(w);if(he){const ue=l.getReferencedExportContainer(w,!1);ue&&ue.kind===311&&(ge=Ht(ge,t.getDeclarationName(he))),ge=Et(ge,O==null?void 0:O.exportedBindings[_p(he)])}return ge}function li(w){if(!uu(w)){const ge=l.getReferencedImportDeclaration(w);if(ge)return ge;const he=l.getReferencedValueDeclaration(w);if(he&&(O!=null&&O.exportedBindings[_p(he)]))return he;const ue=l.getReferencedValueDeclarations(w);if(ue){for(const _e of ue)if(_e!==he&&(O!=null&&O.exportedBindings[_p(_e)]))return _e}return he}}function Yn(w){return re===void 0&&(re=[]),re[Nc(w)]=!0,w}function Jn(w){return re&&w.id&&re[w.id]}}var $Ne=or({"src/compiler/transformers/module/system.ts"(){"use strict";ho()}});function jZ(e){const{factory:t,getEmitHelperFactory:n}=e,i=e.getEmitHost(),s=e.getEmitResolver(),o=e.getCompilerOptions(),l=gc(o),f=e.onEmitNode,_=e.onSubstituteNode;e.onEmitNode=re,e.onSubstituteNode=z,e.enableEmitNotification(311),e.enableSubstitution(80);let h,m,y;return ug(e,T);function T(R){if(R.isDeclarationFile)return R;if(c_(R)||Fg(o)){m=R,y=void 0;let le=k(R);return m=void 0,y&&(le=t.updateSourceFile(le,yt(t.createNodeArray(a$(le.statements.slice(),y)),le.statements))),!c_(R)||bt(le.statements,ID)?le:t.updateSourceFile(le,yt(t.createNodeArray([...le.statements,dI(t)]),le.statements))}return R}function k(R){const le=rX(t,n(),R,o);if(le){const ae=[],ye=t.copyPrologue(R.statements,ae);return Ht(ae,le),Et(ae,dn(R.statements,E,us,ye)),t.updateSourceFile(R,yt(t.createNodeArray(ae),R.statements))}else return nn(R,E,e)}function E(R){switch(R.kind){case 270:return Ff(o)>=100?N(R):void 0;case 276:return U(R);case 277:return V(R)}return R}function O(R){const le=BS(t,R,D.checkDefined(m),i,s,o),ae=[];if(le&&ae.push(le),!y){const $=t.createUniqueName("_createRequire",48),ee=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),$)])),t.createStringLiteral("module")),te=t.createUniqueName("__require",48),me=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(te,void 0,void 0,t.createCallExpression(t.cloneNode($),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));y=[ee,me]}const ye=y[1].declarationList.declarations[0].name;return D.assertNode(ye,Be),t.createCallExpression(t.cloneNode(ye),void 0,ae)}function N(R){D.assert(A4(R),"import= for internal module references should be handled in an earlier transformer.");let le;return le=Ht(le,yi(yt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(R.name),void 0,void 0,O(R))],l>=2?2:0)),R),R)),le=B(le,R),Ci(le)}function B(R,le){return Pi(le,1)&&(R=Ht(R,t.createExportDeclaration(void 0,le.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,ri(le.name))])))),R}function U(R){return R.isExportEquals?void 0:R}function V(R){if(o.module!==void 0&&o.module>5||!R.exportClause||!_y(R.exportClause)||!R.moduleSpecifier)return R;const le=R.exportClause.name,ae=t.getGeneratedNameForNode(le),ye=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(ae)),R.moduleSpecifier,R.assertClause);yi(ye,R.exportClause);const $=VL(R)?t.createExportDefault(ae):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,ae,le)]));return yi($,R),[ye,$]}function re(R,le,ae){Ja(le)?((c_(le)||Fg(o))&&o.importHelpers&&(h=new Map),f(R,le,ae),h=void 0):f(R,le,ae)}function z(R,le){return le=_(R,le),h&&Be(le)&&_c(le)&8192?ce(le):le}function ce(R){const le=ri(R);let ae=h.get(le);return ae||h.set(le,ae=t.createUniqueName(le,48)),ae}}var HNe=or({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";ho()}});function j0e(e){const t=e.onSubstituteNode,n=e.onEmitNode,i=jZ(e),s=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const l=BZ(e),f=e.onSubstituteNode,_=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=y,e.enableSubstitution(311),e.enableEmitNotification(311);let h;return E;function m(N,B){return Ja(B)?(h=B,t(N,B)):h?h.impliedNodeFormat===99?s(N,B):f(N,B):t(N,B)}function y(N,B,U){return Ja(B)&&(h=B),h?h.impliedNodeFormat===99?o(N,B,U):_(N,B,U):n(N,B,U)}function T(N){return N.impliedNodeFormat===99?i:l}function k(N){if(N.isDeclarationFile)return N;h=N;const B=T(N)(N);return h=void 0,D.assert(Ja(B)),B}function E(N){return N.kind===311?k(N):O(N)}function O(N){return e.factory.createBundle(er(N.sourceFiles,k),N.prepends)}}var GNe=or({"src/compiler/transformers/module/node.ts"(){"use strict";ho()}});function YB(e){return Fa(e)||fo(e)||Vm(e)||Cc(e)||$v(e)||cb(e)||iI(e)||Ck(e)||g_(e)||ly(e)||B_(e)||Cs(e)||eu(e)||t2(e)||Hf(e)||zg(e)||Uu(e)||x7(e)||mi(e)||Ll(e)||Un(e)||M0(e)}function z0e(e){if($v(e)||cb(e))return t;return ly(e)||g_(e)?i:a2(e);function t(o){const l=n(o);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function n(o){return so(e)?o.errorModuleName?o.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===262?o.errorModuleName?o.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(o){const l=s(o);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function s(o){return so(e)?o.errorModuleName?o.accessibility===2?p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===262?o.errorModuleName?o.accessibility===2?p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_method_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function a2(e){if(Fa(e)||fo(e)||Vm(e)||mi(e)||Ll(e)||Un(e)||Cc(e)||Uu(e))return n;return $v(e)||cb(e)?i:iI(e)||Ck(e)||g_(e)||ly(e)||B_(e)||x7(e)?s:Cs(e)?gm(e,e.parent)&&Pi(e.parent,8)?n:o:eu(e)?f:t2(e)?_:Hf(e)?h:zg(e)||M0(e)?m:D.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${D.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===259||e.kind===207)return y.errorModuleName?y.accessibility===2?p.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:p.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===171||e.kind===210||e.kind===211||e.kind===225||e.kind===170||e.kind===168&&Pi(e.parent,8))return so(e)?y.errorModuleName?y.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===262||e.kind===168?y.errorModuleName?y.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function n(y){const T=t(y);return T!==void 0?{diagnosticMessage:T,errorNode:e,typeName:e.name}:void 0}function i(y){let T;return e.kind===177?so(e)?T=y.errorModuleName?p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:T=y.errorModuleName?p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:so(e)?T=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:T=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:T,errorNode:e.name,typeName:e.name}}function s(y){let T;switch(e.kind){case 179:T=y.errorModuleName?p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 178:T=y.errorModuleName?p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:T=y.errorModuleName?p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 173:case 172:so(e)?T=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===262?T=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:T=y.errorModuleName?p.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 261:T=y.errorModuleName?y.accessibility===2?p.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return D.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:T,errorNode:e.name||e}}function o(y){const T=l(y);return T!==void 0?{diagnosticMessage:T,errorNode:e,typeName:e.name}:void 0}function l(y){switch(e.parent.kind){case 175:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 179:case 184:return y.errorModuleName?p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 178:return y.errorModuleName?p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return y.errorModuleName?p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 173:case 172:return so(e.parent)?y.errorModuleName?y.accessibility===2?p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===262?y.errorModuleName?y.accessibility===2?p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 261:case 183:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 177:case 176:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return D.fail(`Unknown parent for parameter: ${D.formatSyntaxKind(e.parent.kind)}`)}}function f(){let y;switch(e.parent.kind){case 262:y=p.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 263:y=p.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 199:y=p.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 184:case 179:y=p.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 178:y=p.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 173:case 172:so(e.parent)?y=p.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===262?y=p.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=p.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 183:case 261:y=p.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 194:y=p.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 264:y=p.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return D.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function _(){let y;return cf(e.parent.parent)?y=Kd(e.parent)&&e.parent.token===119?p.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:p.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=p.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:Es(e.parent.parent)}}function h(){return{diagnosticMessage:p.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(y){return{diagnosticMessage:y.errorModuleName?p.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:p.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:M0(e)?D.checkDefined(e.typeExpression):e.type,typeName:M0(e)?Es(e):e.name}}}var XNe=or({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";ho()}});function J0e(e,t,n){const i=e.getCompilerOptions();return tP(t,e,M,i,n?[n]:Mn(e.getSourceFiles(),D$),[JZ],!1).diagnostics}function U0e(e,t){const n=t.text.substring(e.pos,e.end);return Qo(n,"@internal")}function zZ(e,t){const n=gs(e);if(n&&n.kind===168){const s=n.parent.parameters.indexOf(n),o=s>0?n.parent.parameters[s-1]:void 0,l=t.text,f=o?Nn(S4(l,tc(l,o.end+1,!1,!0)),Yh(l,e.pos)):S4(l,tc(l,e.pos,!1,!0));return f&&f.length&&U0e(fi(f),t)}const i=n&&T$(n,t);return!!Vt(i,s=>U0e(s,t))}function JZ(e){const t=()=>D.fail("Diagnostic emitted without context");let n=t,i=!0,s=!1,o=!1,l=!1,f=!1,_,h,m,y,T,k;const{factory:E}=e,O=e.getEmitHost(),N={trackSymbol:ve,reportInaccessibleThisError:Fe,reportInaccessibleUniqueSymbolError:Ze,reportCyclicStructureError:Re,reportPrivateInBaseOfClassExpression:we,reportLikelyUnsafeImportRequiredError:Ue,reportTruncationError:Ae,moduleResolverHost:O,trackReferencedAmbientModule:ee,trackExternalModuleSymbolOfImportTypeNode:me,reportNonlocalAugmentation:Me,reportNonSerializableProperty:He,reportImportTypeNodeResolutionModeOverride:je};let B,U,V,re,z,ce;const R=e.getEmitResolver(),le=e.getCompilerOptions(),{noResolve:ae,stripInternal:ye}=le;return nt;function $(Q){if(Q){h=h||new Set;for(const at of Q)h.add(at)}}function ee(Q,at){const fr=R.getTypeReferenceDirectivesForSymbol(at,67108863);if(Nr(fr))return $(fr);const Ne=bn(Q);re.set(_p(Ne),Ne)}function te(Q){if(Q.accessibility===0){if(Q&&Q.aliasesToMakeVisible)if(!m)m=Q.aliasesToMakeVisible;else for(const at of Q.aliasesToMakeVisible)kr(m,at)}else{const at=n(Q);if(at)return at.typeName?e.addDiagnostic(ai(Q.errorNode||at.errorNode,at.diagnosticMessage,F_(at.typeName),Q.errorSymbolName,Q.errorModuleName)):e.addDiagnostic(ai(Q.errorNode||at.errorNode,at.diagnosticMessage,Q.errorSymbolName,Q.errorModuleName)),!0}return!1}function me(Q){s||(k||(k=[])).push(Q)}function ve(Q,at,fr){if(Q.flags&262144)return!1;const Ne=te(R.isSymbolAccessible(Q,at,fr,!0));return $(R.getTypeReferenceDirectivesForSymbol(Q,fr)),Ne}function we(Q){(B||U)&&e.addDiagnostic(ai(B||U,p.Property_0_of_exported_class_expression_may_not_be_private_or_protected,Q))}function K(){return B?il(B):U&&Es(U)?il(Es(U)):U&&Wu(U)?U.isExportEquals?"export=":"default":"(Missing)"}function Ze(){(B||U)&&e.addDiagnostic(ai(B||U,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,K(),"unique symbol"))}function Re(){(B||U)&&e.addDiagnostic(ai(B||U,p.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,K()))}function Fe(){(B||U)&&e.addDiagnostic(ai(B||U,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,K(),"this"))}function Ue(Q){(B||U)&&e.addDiagnostic(ai(B||U,p.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,K(),Q))}function Ae(){(B||U)&&e.addDiagnostic(ai(B||U,p.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Me(Q,at,fr){var Ne;const $t=(Ne=at.declarations)==null?void 0:Ne.find(Pr=>bn(Pr)===Q),Jt=Mn(fr.declarations,Pr=>bn(Pr)!==Q);if($t&&Jt)for(const Pr of Jt)e.addDiagnostic(ic(ai(Pr,p.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),ai($t,p.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function He(Q){(B||U)&&e.addDiagnostic(ai(B||U,p.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,Q))}function je(){!hN()&&(B||U)&&e.addDiagnostic(ai(B||U,p.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function Pe(Q,at){const fr=n;n=$t=>$t.errorNode&&YB($t.errorNode)?a2($t.errorNode)($t):{diagnosticMessage:$t.errorModuleName?p.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:p.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:$t.errorNode||Q};const Ne=R.getDeclarationStatementsForSourceFile(Q,P3,N,at);return n=fr,Ne}function nt(Q){if(Q.kind===311&&Q.isDeclarationFile)return Q;if(Q.kind===312){s=!0,re=new Map,z=new Map;let w=!1;const ge=E.createBundle(er(Q.sourceFiles,_e=>{if(_e.isDeclarationFile)return;if(w=w||_e.hasNoDefaultLib,V=_e,_=_e,m=void 0,T=!1,y=new Map,n=t,l=!1,f=!1,wt(_e,re),xt(_e,z),bm(_e)||O0(_e)){o=!1,i=!1;const q=Ip(_e)?E.createNodeArray(Pe(_e,!0)):dn(_e.statements,Ca,us);return E.updateSourceFile(_e,[E.createModuleDeclaration([E.createModifier(138)],E.createStringLiteral(SF(e.getEmitHost(),_e)),E.createModuleBlock(yt(E.createNodeArray($r(q)),_e.statements)))],!0,[],[],!1,[])}i=!0;const pe=Ip(_e)?E.createNodeArray(Pe(_e)):dn(_e.statements,Ca,us);return E.updateSourceFile(_e,$r(pe),!0,[],[],!1,[])}),Mr(Q.prepends,_e=>{if(_e.kind===314){const pe=pG(_e,"dts",ye);return w=w||!!pe.hasNoDefaultLib,wt(pe,re),$(er(pe.typeReferenceDirectives,q=>[q.fileName,q.resolutionMode])),xt(pe,z),pe}return _e}));ge.syntheticFileReferences=[],ge.syntheticTypeReferences=li(),ge.syntheticLibReferences=Pr(),ge.hasNoDefaultLib=w;const he=ga(kc(uE(Q,O,!0).declarationFilePath)),ue=Jn(ge.syntheticFileReferences,he);return re.forEach(ue),ge}i=!0,l=!1,f=!1,_=Q,V=Q,n=t,s=!1,o=!1,T=!1,m=void 0,y=new Map,h=void 0,re=wt(V,new Map),z=xt(V,new Map);const at=[],fr=ga(kc(uE(Q,O,!0).declarationFilePath)),Ne=Jn(at,fr);let $t;if(Ip(V))$t=E.createNodeArray(Pe(Q)),re.forEach(Ne),ce=Mn($t,o7);else{const w=dn(Q.statements,Ca,us);$t=yt(E.createNodeArray($r(w)),Q.statements),re.forEach(Ne),ce=Mn($t,o7),c_(Q)&&(!o||l&&!f)&&($t=yt(E.createNodeArray([...$t,dI(E)]),$t))}const Jt=E.updateSourceFile(Q,$t,!0,at,li(),Q.hasNoDefaultLib,Pr());return Jt.exportedModulesFromDeclarationEmit=k,Jt;function Pr(){return zt(z.keys(),w=>({fileName:w,pos:-1,end:-1}))}function li(){return h?Mr(zt(h.keys()),Yn):[]}function Yn([w,ge]){if(ce){for(const he of ce)if(Hf(he)&&yh(he.moduleReference)){const ue=he.moduleReference.expression;if(Wc(ue)&&ue.text===w)return}else if(Tf(he)&&sc(he.moduleSpecifier)&&he.moduleSpecifier.text===w)return}return fa({fileName:w,pos:-1,end:-1},ge?{resolutionMode:ge}:void 0)}function Jn(w,ge){return he=>{let ue;if(he.isDeclarationFile)ue=he.fileName;else{if(s&&Zn(Q.sourceFiles,he))return;const _e=uE(he,O,!0);ue=_e.declarationFilePath||_e.jsFilePath||he.fileName}if(ue){const _e=HI(le,V,Sl(ge,O.getCurrentDirectory(),O.getCanonicalFileName),Sl(ue,O.getCurrentDirectory(),O.getCanonicalFileName),O);if(!ap(_e)){$([[_e,void 0]]);return}let pe=XT(ge,ue,O.getCurrentDirectory(),O.getCanonicalFileName,!1);if(Ga(pe,"./")&&Gh(pe)&&(pe=pe.substring(2)),Ga(pe,"node_modules/")||$k(pe))return;w.push({pos:-1,end:-1,fileName:pe})}}}}function wt(Q,at){return ae||!w7(Q)&&Ip(Q)||Vt(Q.referencedFiles,fr=>{const Ne=O.getSourceFileFromReference(Q,fr);Ne&&at.set(_p(Ne),Ne)}),at}function xt(Q,at){return Vt(Q.libReferenceDirectives,fr=>{O.getLibFileFromReference(fr)&&at.set(Cd(fr.fileName),!0)}),at}function Zt(Q){if(Q.kind===80)return Q;return Q.kind===206?E.updateArrayBindingPattern(Q,dn(Q.elements,at,AL)):E.updateObjectBindingPattern(Q,dn(Q.elements,at,Cc));function at(fr){return fr.kind===231?fr:fr.propertyName&&Be(fr.propertyName)&&Be(fr.name)&&!fr.symbol.isReferenced&&!yF(fr.propertyName)?E.updateBindingElement(fr,fr.dotDotDotToken,void 0,fr.propertyName,Mt(fr)?fr.initializer:void 0):E.updateBindingElement(fr,fr.dotDotDotToken,fr.propertyName,Zt(fr.name),Mt(fr)?fr.initializer:void 0)}}function Qe(Q,at,fr){let Ne;T||(Ne=n,n=a2(Q));const $t=E.updateParameterDeclaration(Q,YNe(E,Q,at),Q.dotDotDotToken,Zt(Q.name),R.isOptionalParameter(Q)?Q.questionToken||E.createToken(58):void 0,Cr(Q,fr||Q.type,!0),yr(Q));return T||(n=Ne),$t}function Mt(Q){return QNe(Q)&&R.isLiteralConstDeclaration(gs(Q))}function yr(Q){if(Mt(Q))return R.createLiteralConstValue(gs(Q),N)}function Cr(Q,at,fr){if(!fr&&Qd(Q,8)||Mt(Q))return;const Ne=Q.kind===168&&(R.isRequiredInitializedParameter(Q)||R.isOptionalUninitializedParameterProperty(Q));if(at&&!Ne)return Ye(at,Fn,Oa);if(!gs(Q))return at?Ye(at,Fn,Oa):E.createKeywordTypeNode(133);if(Q.kind===177)return E.createKeywordTypeNode(133);B=Q.name;let $t;if(T||($t=n,n=a2(Q)),Q.kind===259||Q.kind===207)return Jt(R.createTypeOfDeclaration(Q,_,P3,N));if(Q.kind===168||Q.kind===171||Q.kind===170)return Vm(Q)||!Q.initializer?Jt(R.createTypeOfDeclaration(Q,_,P3,N,Ne)):Jt(R.createTypeOfDeclaration(Q,_,P3,N,Ne)||R.createTypeOfExpression(Q.initializer,_,P3,N));return Jt(R.createReturnTypeOfSignatureDeclaration(Q,_,P3,N));function Jt(Pr){return B=void 0,T||(n=$t),Pr||E.createKeywordTypeNode(133)}}function Lt(Q){switch(Q=gs(Q),Q.kind){case 261:case 266:case 263:case 262:case 264:case 265:return!R.isDeclarationVisible(Q);case 259:return!xn(Q);case 270:case 271:case 277:case 276:return!1;case 174:return!0}return!1}function an(Q){var at;if(Q.body)return!0;const fr=(at=Q.symbol.declarations)==null?void 0:at.filter(Ne=>B_(Ne)&&!Ne.body);return!fr||fr.indexOf(Q)===fr.length-1}function xn(Q){return sf(Q)?!1:_o(Q.name)?bt(Q.name.elements,xn):R.isDeclarationVisible(Q)}function Lr(Q,at,fr){if(Qd(Q,8))return E.createNodeArray();const Ne=er(at,$t=>Qe($t,fr));return Ne?E.createNodeArray(Ne,at.hasTrailingComma):E.createNodeArray()}function In(Q,at){let fr;if(!at){const Ne=u3(Q);Ne&&(fr=[Qe(Ne)])}if(u0(Q)){let Ne;if(!at){const $t=t9(Q);if($t){const Jt=Ge(Q,R.getAllAccessorDeclarations(Q));Ne=Qe($t,void 0,Jt)}}Ne||(Ne=E.createParameterDeclaration(void 0,void 0,"value")),fr=Ht(fr,Ne)}return E.createNodeArray(fr||tt)}function vi(Q,at){return Qd(Q,8)?void 0:dn(at,Fn,eu)}function ia(Q){return Ja(Q)||zg(Q)||Vu(Q)||cf(Q)||Lp(Q)||Qs(Q)||x7(Q)||B9(Q)}function Wa(Q,at){const fr=R.isEntityNameVisible(Q,at);te(fr),$(R.getTypeReferenceDirectivesForEntityName(Q))}function bi(Q,at){return vm(Q)&&vm(at)&&(Q.jsDoc=at.jsDoc),xf(Q,mh(at))}function Pt(Q,at){if(at){if(o=o||Q.kind!==266&&Q.kind!==204,Wc(at))if(s){const fr=Jue(e.getEmitHost(),R,Q);if(fr)return E.createStringLiteral(fr)}else{const fr=R.getSymbolOfExternalModuleSpecifier(at);fr&&(k||(k=[])).push(fr)}return at}}function Ar(Q){if(R.isDeclarationVisible(Q))if(Q.moduleReference.kind===282){const at=qw(Q);return E.updateImportEqualsDeclaration(Q,Q.modifiers,Q.isTypeOnly,Q.name,E.updateExternalModuleReference(Q.moduleReference,Pt(Q,at)))}else{const at=n;return n=a2(Q),Wa(Q.moduleReference,_),n=at,Q}}function Yt(Q){if(!Q.importClause)return E.updateImportDeclaration(Q,Q.modifiers,Q.importClause,Pt(Q,Q.moduleSpecifier),Qr(Q.assertClause));const at=Q.importClause&&Q.importClause.name&&R.isDeclarationVisible(Q.importClause)?Q.importClause.name:void 0;if(!Q.importClause.namedBindings)return at&&E.updateImportDeclaration(Q,Q.modifiers,E.updateImportClause(Q.importClause,Q.importClause.isTypeOnly,at,void 0),Pt(Q,Q.moduleSpecifier),Qr(Q.assertClause));if(Q.importClause.namedBindings.kind===273){const Ne=R.isDeclarationVisible(Q.importClause.namedBindings)?Q.importClause.namedBindings:void 0;return at||Ne?E.updateImportDeclaration(Q,Q.modifiers,E.updateImportClause(Q.importClause,Q.importClause.isTypeOnly,at,Ne),Pt(Q,Q.moduleSpecifier),Qr(Q.assertClause)):void 0}const fr=Mr(Q.importClause.namedBindings.elements,Ne=>R.isDeclarationVisible(Ne)?Ne:void 0);if(fr&&fr.length||at)return E.updateImportDeclaration(Q,Q.modifiers,E.updateImportClause(Q.importClause,Q.importClause.isTypeOnly,at,fr&&fr.length?E.updateNamedImports(Q.importClause.namedBindings,fr):void 0),Pt(Q,Q.moduleSpecifier),Qr(Q.assertClause));if(R.isImportRequiredByAugmentation(Q))return E.updateImportDeclaration(Q,Q.modifiers,void 0,Pt(Q,Q.moduleSpecifier),Qr(Q.assertClause))}function Qr(Q){if(WS(Q)!==void 0)return hN()||e.addDiagnostic(ai(Q,p.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),Q}function $r(Q){for(;Nr(m);){const fr=m.shift();if(!qL(fr))return D.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${D.formatSyntaxKind(fr.kind)}`);const Ne=i;i=fr.parent&&Ja(fr.parent)&&!(c_(fr.parent)&&s);const $t=wr(fr);i=Ne,y.set(_p(fr),$t)}return dn(Q,at,us);function at(fr){if(qL(fr)){const Ne=_p(fr);if(y.has(Ne)){const $t=y.get(Ne);return y.delete(Ne),$t&&((ns($t)?bt($t,DL):DL($t))&&(l=!0),Ja(fr.parent)&&(ns($t)?bt($t,ID):ID($t))&&(o=!0)),$t}}return fr}}function Fn(Q){if(Tt(Q)||cp(Q)&&(Lt(Q)||Hv(Q)&&!R.isLateBound(gs(Q)))||Qs(Q)&&R.isImplementationOfOverload(Q)||Kfe(Q))return;let at;ia(Q)&&(at=_,_=Q);const fr=n,Ne=YB(Q),$t=T;let Jt=(Q.kind===186||Q.kind===199)&&Q.parent.kind!==264;if((g_(Q)||ly(Q))&&Qd(Q,8))return Q.symbol&&Q.symbol.declarations&&Q.symbol.declarations[0]!==Q?void 0:Pr(E.createPropertyDeclaration(nr(Q),Q.name,void 0,void 0,void 0));if(Ne&&!T&&(n=a2(Q)),F9(Q)&&Wa(Q.exprName,_),Jt&&(T=!0),eIe(Q))switch(Q.kind){case 232:{(hm(Q.expression)||ju(Q.expression))&&Wa(Q.expression,_);const li=nn(Q,Fn,e);return Pr(E.updateExpressionWithTypeArguments(li,li.expression,li.typeArguments))}case 182:{Wa(Q.typeName,_);const li=nn(Q,Fn,e);return Pr(E.updateTypeReferenceNode(li,li.typeName,li.typeArguments))}case 179:return Pr(E.updateConstructSignature(Q,vi(Q,Q.typeParameters),Lr(Q,Q.parameters),Cr(Q,Q.type)));case 175:{const li=E.createConstructorDeclaration(nr(Q),Lr(Q,Q.parameters,0),void 0);return Pr(li)}case 173:{if(Ea(Q.name))return Pr(void 0);const li=E.createMethodDeclaration(nr(Q),void 0,Q.name,Q.questionToken,vi(Q,Q.typeParameters),Lr(Q,Q.parameters),Cr(Q,Q.type),void 0);return Pr(li)}case 176:{if(Ea(Q.name))return Pr(void 0);const li=Ge(Q,R.getAllAccessorDeclarations(Q));return Pr(E.updateGetAccessorDeclaration(Q,nr(Q),Q.name,In(Q,Qd(Q,8)),Cr(Q,li),void 0))}case 177:return Ea(Q.name)?Pr(void 0):Pr(E.updateSetAccessorDeclaration(Q,nr(Q),Q.name,In(Q,Qd(Q,8)),void 0));case 171:return Ea(Q.name)?Pr(void 0):Pr(E.updatePropertyDeclaration(Q,nr(Q),Q.name,Q.questionToken,Cr(Q,Q.type),yr(Q)));case 170:return Ea(Q.name)?Pr(void 0):Pr(E.updatePropertySignature(Q,nr(Q),Q.name,Q.questionToken,Cr(Q,Q.type)));case 172:return Ea(Q.name)?Pr(void 0):Pr(E.updateMethodSignature(Q,nr(Q),Q.name,Q.questionToken,vi(Q,Q.typeParameters),Lr(Q,Q.parameters),Cr(Q,Q.type)));case 178:return Pr(E.updateCallSignature(Q,vi(Q,Q.typeParameters),Lr(Q,Q.parameters),Cr(Q,Q.type)));case 180:return Pr(E.updateIndexSignature(Q,nr(Q),Lr(Q,Q.parameters),Ye(Q.type,Fn,Oa)||E.createKeywordTypeNode(133)));case 259:return _o(Q.name)?Kr(Q.name):(Jt=!0,T=!0,Pr(E.updateVariableDeclaration(Q,Q.name,void 0,Cr(Q,Q.type),yr(Q))));case 167:return ja(Q)&&(Q.default||Q.constraint)?Pr(E.updateTypeParameterDeclaration(Q,Q.modifiers,Q.name,void 0,void 0)):Pr(nn(Q,Fn,e));case 193:{const li=Ye(Q.checkType,Fn,Oa),Yn=Ye(Q.extendsType,Fn,Oa),Jn=_;_=Q.trueType;const w=Ye(Q.trueType,Fn,Oa);_=Jn;const ge=Ye(Q.falseType,Fn,Oa);return D.assert(li),D.assert(Yn),D.assert(w),D.assert(ge),Pr(E.updateConditionalTypeNode(Q,li,Yn,w,ge))}case 183:return Pr(E.updateFunctionTypeNode(Q,dn(Q.typeParameters,Fn,eu),Lr(Q,Q.parameters),D.checkDefined(Ye(Q.type,Fn,Oa))));case 184:return Pr(E.updateConstructorTypeNode(Q,nr(Q),dn(Q.typeParameters,Fn,eu),Lr(Q,Q.parameters),D.checkDefined(Ye(Q.type,Fn,Oa))));case 204:return E4(Q)?Pr(E.updateImportTypeNode(Q,E.updateLiteralTypeNode(Q.argument,Pt(Q,Q.argument.literal)),Q.assertions,Q.qualifier,dn(Q.typeArguments,Fn,Oa),Q.isTypeOf)):Pr(Q);default:D.assertNever(Q,`Attempted to process unhandled node kind: ${D.formatSyntaxKind(Q.kind)}`)}return wk(Q)&&Ql(V,Q.pos).line===Ql(V,Q.end).line&&Ln(Q,1),Pr(nn(Q,Fn,e));function Pr(li){return li&&Ne&&Hv(Q)&&ot(Q),ia(Q)&&(_=at),Ne&&!T&&(n=fr),Jt&&(T=$t),li===Q?li:li&&yi(bi(li,Q),Q)}}function ja(Q){return Q.parent.kind===173&&Qd(Q.parent,8)}function Ca(Q){if(!KNe(Q)||Tt(Q))return;switch(Q.kind){case 277:return Ja(Q.parent)&&(o=!0),f=!0,E.updateExportDeclaration(Q,Q.modifiers,Q.isTypeOnly,Q.exportClause,Pt(Q,Q.moduleSpecifier),WS(Q.assertClause)?Q.assertClause:void 0);case 276:{if(Ja(Q.parent)&&(o=!0),f=!0,Q.expression.kind===80)return Q;{const fr=E.createUniqueName("_default",16);n=()=>({diagnosticMessage:p.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:Q}),U=Q;const Ne=E.createVariableDeclaration(fr,void 0,R.createTypeOfExpression(Q.expression,Q,P3,N),void 0);U=void 0;const $t=E.createVariableStatement(i?[E.createModifier(138)]:[],E.createVariableDeclarationList([Ne],2));return bi($t,Q),HN(Q),[$t,E.updateExportAssignment(Q,Q.modifiers,fr)]}}}const at=wr(Q);return y.set(_p(Q),at),Q}function rn(Q){if(Hf(Q)||Qd(Q,1024)||!lg(Q))return Q;const at=E.createModifiersFromModifierFlags(Pp(Q)&258046);return E.updateModifiers(Q,at)}function wr(Q){if(m)for(;m4(m,Q););if(Tt(Q))return;switch(Q.kind){case 270:return Ar(Q);case 271:return Yt(Q)}if(cp(Q)&&Lt(Q)||Qs(Q)&&R.isImplementationOfOverload(Q))return;let at;ia(Q)&&(at=_,_=Q);const fr=YB(Q),Ne=n;fr&&(n=a2(Q));const $t=i;switch(Q.kind){case 264:{i=!1;const Pr=Jt(E.updateTypeAliasDeclaration(Q,nr(Q),Q.name,dn(Q.typeParameters,Fn,eu),D.checkDefined(Ye(Q.type,Fn,Oa))));return i=$t,Pr}case 263:return Jt(E.updateInterfaceDeclaration(Q,nr(Q),Q.name,vi(Q,Q.typeParameters),dt(Q.heritageClauses),dn(Q.members,Fn,r7)));case 261:{const Pr=Jt(E.updateFunctionDeclaration(Q,nr(Q),void 0,Q.name,vi(Q,Q.typeParameters),Lr(Q,Q.parameters),Cr(Q,Q.type),void 0));if(Pr&&R.isExpandoFunctionDeclaration(Q)&&an(Q)){const li=R.getPropertiesOfContainerFunction(Q),Yn=vh.createModuleDeclaration(void 0,Pr.name||E.createIdentifier("_default"),E.createModuleBlock([]),16);fc(Yn,_),Yn.locals=To(li),Yn.symbol=li[0].parent;const Jn=[];let w=Mr(li,q=>{if(!q.valueDeclaration||!(mi(q.valueDeclaration)||Ll(q.valueDeclaration)||Un(q.valueDeclaration)))return;const rt=Ba(q.escapedName);if(!r0(rt,99))return;n=a2(q.valueDeclaration);const ar=R.createTypeOfDeclaration(q.valueDeclaration,Yn,P3,N);n=Ne;const st=uS(rt),Ft=st?E.getGeneratedNameForNode(q.valueDeclaration):E.createIdentifier(rt);st&&Jn.push([Ft,rt]);const zr=E.createVariableDeclaration(Ft,void 0,ar,void 0);return E.createVariableStatement(st?void 0:[E.createToken(95)],E.createVariableDeclarationList([zr]))});Jn.length?w.push(E.createExportDeclaration(void 0,!1,E.createNamedExports(er(Jn,([q,rt])=>E.createExportSpecifier(!1,q,rt))))):w=Mr(w,q=>E.updateModifiers(q,0));const ge=E.createModuleDeclaration(nr(Q),Q.name,E.createModuleBlock(w),16);if(!Qd(Pr,1024))return[Pr,ge];const he=E.createModifiersFromModifierFlags(Pp(Pr)&-1026|2),ue=E.updateFunctionDeclaration(Pr,he,void 0,Pr.name,Pr.typeParameters,Pr.parameters,Pr.type,void 0),_e=E.updateModuleDeclaration(ge,he,ge.name,ge.body),pe=E.createExportAssignment(void 0,!1,ge.name);return Ja(Q.parent)&&(o=!0),f=!0,[ue,_e,pe]}else return Pr}case 266:{i=!1;const Pr=Q.body;if(Pr&&Pr.kind===267){const li=l,Yn=f;f=!1,l=!1;const Jn=dn(Pr.statements,Ca,us);let w=$r(Jn);Q.flags&16777216&&(l=!1),!x1(Q)&&!Wt(w)&&!f&&(l?w=E.createNodeArray([...w,dI(E)]):w=dn(w,rn,us));const ge=E.updateModuleBlock(Pr,w);i=$t,l=li,f=Yn;const he=nr(Q);return Jt(E.updateModuleDeclaration(Q,he,t3(Q)?Pt(Q,Q.name):Q.name,ge))}else{i=$t;const li=nr(Q);i=!1,Ye(Pr,Ca);const Yn=_p(Pr),Jn=y.get(Yn);return y.delete(Yn),Jt(E.updateModuleDeclaration(Q,li,Q.name,Jn))}}case 262:{B=Q.name,U=Q;const Pr=E.createNodeArray(nr(Q)),li=vi(Q,Q.typeParameters),Yn=ay(Q);let Jn;if(Yn){const pe=n;Jn=Ma(lo(Yn.parameters,q=>{if(!Pi(q,16476)||Tt(q))return;if(n=a2(q),q.name.kind===80)return bi(E.createPropertyDeclaration(nr(q),q.name,q.questionToken,Cr(q,q.type),yr(q)),q);return rt(q.name);function rt(ar){let st;for(const Ft of ar.elements)sf(Ft)||(_o(Ft.name)&&(st=Nn(st,rt(Ft.name))),st=st||[],st.push(E.createPropertyDeclaration(nr(q),Ft.name,void 0,Cr(Ft,void 0),void 0)));return st}})),n=pe}const ge=bt(Q.members,pe=>!!pe.name&&Ea(pe.name))?[E.createPropertyDeclaration(void 0,E.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,he=Nn(Nn(ge,Jn),dn(Q.members,Fn,yf)),ue=E.createNodeArray(he),_e=T1(Q);if(_e&&!ju(_e.expression)&&_e.expression.kind!==106){const pe=Q.name?Ba(Q.name.escapedText):"default",q=E.createUniqueName(`${pe}_base`,16);n=()=>({diagnosticMessage:p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:_e,typeName:Q.name});const rt=E.createVariableDeclaration(q,void 0,R.createTypeOfExpression(_e.expression,Q,P3,N),void 0),ar=E.createVariableStatement(i?[E.createModifier(138)]:[],E.createVariableDeclarationList([rt],2)),st=E.createNodeArray(er(Q.heritageClauses,Ft=>{if(Ft.token===96){const zr=n;n=a2(Ft.types[0]);const En=E.updateHeritageClause(Ft,er(Ft.types,Ti=>E.updateExpressionWithTypeArguments(Ti,q,dn(Ti.typeArguments,Fn,Oa))));return n=zr,En}return E.updateHeritageClause(Ft,dn(E.createNodeArray(Mn(Ft.types,zr=>ju(zr.expression)||zr.expression.kind===106)),Fn,t2))}));return[ar,Jt(E.updateClassDeclaration(Q,Pr,Q.name,li,st,ue))]}else{const pe=dt(Q.heritageClauses);return Jt(E.updateClassDeclaration(Q,Pr,Q.name,li,pe,ue))}}case 242:return Jt(ln(Q));case 265:return Jt(E.updateEnumDeclaration(Q,E.createNodeArray(nr(Q)),Q.name,E.createNodeArray(Mr(Q.members,Pr=>{if(Tt(Pr))return;const li=R.getConstantValue(Pr);return bi(E.updateEnumMember(Pr,Pr.name,li!==void 0?typeof li=="string"?E.createStringLiteral(li):E.createNumericLiteral(li):void 0),Pr)}))))}return D.assertNever(Q,`Unhandled top-level node in declaration emit: ${D.formatSyntaxKind(Q.kind)}`);function Jt(Pr){return ia(Q)&&(_=at),fr&&(n=Ne),Q.kind===266&&(i=$t),Pr===Q?Pr:(U=void 0,B=void 0,Pr&&yi(bi(Pr,Q),Q))}}function ln(Q){if(!Vt(Q.declarationList.declarations,xn))return;const at=dn(Q.declarationList.declarations,Fn,Fa);if(Nr(at))return E.updateVariableStatement(Q,E.createNodeArray(nr(Q)),E.updateVariableDeclarationList(Q.declarationList,at))}function Kr(Q){return x_(Mr(Q.elements,at=>Li(at)))}function Li(Q){if(Q.kind!==231&&Q.name)return xn(Q)?_o(Q.name)?Kr(Q.name):E.createVariableDeclaration(Q.name,void 0,Cr(Q,void 0),void 0):void 0}function ot(Q){let at;T||(at=n,n=z0e(Q)),B=Q.name,D.assert(R.isLateBound(gs(Q)));const Ne=Q.name.expression;Wa(Ne,_),T||(n=at),B=void 0}function Tt(Q){return!!ye&&!!Q&&zZ(Q,V)}function it(Q){return Wu(Q)||Sf(Q)}function Wt(Q){return bt(Q,it)}function nr(Q){const at=Pp(Q),fr=Y(Q);return at===fr?bZ(Q.modifiers,Ne=>di(Ne,Do),Do):E.createModifiersFromModifierFlags(fr)}function Y(Q){let at=241147,fr=i&&!ZNe(Q)?2:0;const Ne=Q.parent.kind===311;return(!Ne||s&&Ne&&c_(Q.parent))&&(at^=2,fr=0),V0e(Q,at,fr)}function Ge(Q,at){let fr=UZ(Q);return!fr&&Q!==at.firstAccessor&&(fr=UZ(at.firstAccessor),n=a2(at.firstAccessor)),!fr&&at.secondAccessor&&Q!==at.secondAccessor&&(fr=UZ(at.secondAccessor),n=a2(at.secondAccessor)),fr}function dt(Q){return E.createNodeArray(Mn(er(Q,at=>E.updateHeritageClause(at,dn(E.createNodeArray(Mn(at.types,fr=>ju(fr.expression)||at.token===96&&fr.expression.kind===106)),Fn,t2))),at=>at.types&&!!at.types.length))}}function ZNe(e){return e.kind===263}function YNe(e,t,n,i){return e.createModifiersFromModifierFlags(V0e(t,n,i))}function V0e(e,t=258043,n=0){let i=Pp(e)&t|n;return i&1024&&!(i&1)&&(i^=1),i&1024&&i&2&&(i^=2),i}function UZ(e){if(e)return e.kind===176?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function QNe(e){switch(e.kind){case 171:case 170:return!Qd(e,8);case 168:case 259:return!0}return!1}function KNe(e){switch(e.kind){case 261:case 266:case 270:case 263:case 262:case 264:case 265:case 242:case 271:case 277:case 276:return!0}return!1}function eIe(e){switch(e.kind){case 179:case 175:case 173:case 176:case 177:case 171:case 170:case 172:case 178:case 180:case 259:case 167:case 232:case 182:case 193:case 183:case 184:case 204:return!0}return!1}var P3,tIe=or({"src/compiler/transformers/declarations.ts"(){"use strict";ho(),fZ(),P3=531469}});function rIe(e){switch(e){case 99:case 7:case 6:case 5:return jZ;case 4:return B0e;case 100:case 199:return j0e;default:return BZ}}function VZ(e,t,n){return{scriptTransformers:nIe(e,t,n),declarationTransformers:iIe(t)}}function nIe(e,t,n){if(n)return tt;const i=gc(e),s=Ff(e),o=NN(e),l=[];return Et(l,t&&er(t.before,q0e)),l.push(y0e),e.experimentalDecorators?l.push(T0e):(i<99||!o)&&l.push(S0e),l.push(b0e),zF(e)&&l.push(N0e),i<99&&l.push(D0e),i<8&&l.push(A0e),i<7&&l.push(E0e),i<6&&l.push(w0e),i<5&&l.push(C0e),i<4&&l.push(k0e),i<3&&l.push(P0e),i<2&&(l.push(M0e),l.push(F0e)),l.push(rIe(s)),i<1&&l.push(L0e),Et(l,t&&er(t.after,q0e)),l}function iIe(e){const t=[];return t.push(JZ),Et(t,e&&er(e.afterDeclarations,sIe)),t}function aIe(e){return t=>zG(t)?e.transformBundle(t):e.transformSourceFile(t)}function W0e(e,t){return n=>{const i=e(n);return typeof i=="function"?t(n,i):aIe(i)}}function q0e(e){return W0e(e,ug)}function sIe(e){return W0e(e,(t,n)=>n)}function cE(e,t){return t}function eP(e,t,n){n(e,t)}function tP(e,t,n,i,s,o,l){var f,_;const h=new Array(362);let m,y,T,k=0,E=[],O=[],N=[],B=[],U=0,V=!1,re=[],z=0,ce,R,le=cE,ae=eP,ye=0;const $=[],ee={factory:n,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:q_(()=>Ffe(ee)),startLexicalEnvironment:Pe,suspendLexicalEnvironment:nt,resumeLexicalEnvironment:wt,endLexicalEnvironment:xt,setLexicalEnvironmentFlags:Zt,getLexicalEnvironmentFlags:Qe,hoistVariableDeclaration:Me,hoistFunctionDeclaration:He,addInitializationStatement:je,startBlockScope:Mt,endBlockScope:yr,addBlockScopedVariable:Cr,requestEmitHelper:Lt,readEmitHelpers:an,enableSubstitution:K,enableEmitNotification:Fe,isSubstitutionEnabled:Ze,isEmitNotificationEnabled:Ue,get onSubstituteNode(){return le},set onSubstituteNode(Lr){D.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),D.assert(Lr!==void 0,"Value must not be 'undefined'"),le=Lr},get onEmitNode(){return ae},set onEmitNode(Lr){D.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),D.assert(Lr!==void 0,"Value must not be 'undefined'"),ae=Lr},addDiagnostic(Lr){$.push(Lr)}};for(const Lr of s)vG(bn(gs(Lr)));Kc("beforeTransform");const te=o.map(Lr=>Lr(ee)),me=Lr=>{for(const In of te)Lr=In(Lr);return Lr};ye=1;const ve=[];for(const Lr of s)(f=Hi)==null||f.push(Hi.Phase.Emit,"transformNodes",Lr.kind===311?{path:Lr.path}:{kind:Lr.kind,pos:Lr.pos,end:Lr.end}),ve.push((l?me:we)(Lr)),(_=Hi)==null||_.pop();return ye=2,Kc("afterTransform"),I_("transformTime","beforeTransform","afterTransform"),{transformed:ve,substituteNode:Re,emitNodeWithNotification:Ae,isEmitNotificationEnabled:Ue,dispose:xn,diagnostics:$};function we(Lr){return Lr&&(!Ja(Lr)||!Lr.isDeclarationFile)?me(Lr):Lr}function K(Lr){D.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),h[Lr]|=1}function Ze(Lr){return(h[Lr.kind]&1)!==0&&(_c(Lr)&8)===0}function Re(Lr,In){return D.assert(ye<3,"Cannot substitute a node after the result is disposed."),In&&Ze(In)&&le(Lr,In)||In}function Fe(Lr){D.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),h[Lr]|=2}function Ue(Lr){return(h[Lr.kind]&2)!==0||(_c(Lr)&4)!==0}function Ae(Lr,In,vi){D.assert(ye<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),In&&(Ue(In)?ae(Lr,In,vi):vi(Lr,In))}function Me(Lr){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed.");const In=Ln(n.createVariableDeclaration(Lr),128);m?m.push(In):m=[In],k&1&&(k|=2)}function He(Lr){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),Ln(Lr,2097152),y?y.push(Lr):y=[Lr]}function je(Lr){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),Ln(Lr,2097152),T?T.push(Lr):T=[Lr]}function Pe(){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(!V,"Lexical environment is suspended."),E[U]=m,O[U]=y,N[U]=T,B[U]=k,U++,m=void 0,y=void 0,T=void 0,k=0}function nt(){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(!V,"Lexical environment is already suspended."),V=!0}function wt(){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(V,"Lexical environment is not suspended."),V=!1}function xt(){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(!V,"Lexical environment is suspended.");let Lr;if(m||y||T){if(y&&(Lr=[...y]),m){const In=n.createVariableStatement(void 0,n.createVariableDeclarationList(m));Ln(In,2097152),Lr?Lr.push(In):Lr=[In]}T&&(Lr?Lr=[...Lr,...T]:Lr=[...T])}return U--,m=E[U],y=O[U],T=N[U],k=B[U],U===0&&(E=[],O=[],N=[],B=[]),Lr}function Zt(Lr,In){k=In?k|Lr:k&~Lr}function Qe(){return k}function Mt(){D.assert(ye>0,"Cannot start a block scope during initialization."),D.assert(ye<2,"Cannot start a block scope after transformation has completed."),re[z]=ce,z++,ce=void 0}function yr(){D.assert(ye>0,"Cannot end a block scope during initialization."),D.assert(ye<2,"Cannot end a block scope after transformation has completed.");const Lr=bt(ce)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(ce.map(In=>n.createVariableDeclaration(In)),1))]:void 0;return z--,ce=re[z],z===0&&(re=[]),Lr}function Cr(Lr){D.assert(z>0,"Cannot add a block scoped variable outside of an iteration body."),(ce||(ce=[])).push(Lr)}function Lt(Lr){if(D.assert(ye>0,"Cannot modify the transformation context during initialization."),D.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),D.assert(!Lr.scoped,"Cannot request a scoped emit helper."),Lr.dependencies)for(const In of Lr.dependencies)Lt(In);R=Ht(R,Lr)}function an(){D.assert(ye>0,"Cannot modify the transformation context during initialization."),D.assert(ye<2,"Cannot modify the transformation context after transformation has completed.");const Lr=R;return R=void 0,Lr}function xn(){if(ye<3){for(const Lr of s)vG(bn(gs(Lr)));m=void 0,E=void 0,y=void 0,O=void 0,le=void 0,ae=void 0,R=void 0,ye=3}}}var WZ,rv,oIe=or({"src/compiler/transformer.ts"(){"use strict";ho(),Q1(),WZ={scriptTransformers:tt,declarationTransformers:tt},rv={factory:M,getCompilerOptions:()=>({}),getEmitResolver:xs,getEmitHost:xs,getEmitHelperFactory:xs,startLexicalEnvironment:Ho,resumeLexicalEnvironment:Ho,suspendLexicalEnvironment:Ho,endLexicalEnvironment:W_,setLexicalEnvironmentFlags:Ho,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Ho,hoistFunctionDeclaration:Ho,addInitializationStatement:Ho,startBlockScope:Ho,endBlockScope:W_,addBlockScopedVariable:Ho,requestEmitHelper:Ho,readEmitHelpers:xs,enableSubstitution:Ho,enableEmitNotification:Ho,isSubstitutionEnabled:xs,isEmitNotificationEnabled:xs,onSubstituteNode:cE,onEmitNode:eP,addDiagnostic:Ho}}});function $0e(e){return Xl(e,".tsbuildinfo")}function qZ(e,t,n,i=!1,s,o){const l=ns(n)?n:tH(e,n,i),f=e.getCompilerOptions();if(Ml(f)){const _=e.getPrependNodes();if(l.length||_.length){const h=M.createBundle(l,_),m=t(uE(h,e,i),h);if(m)return m}}else{if(!s)for(const _ of l){const h=t(uE(_,e,i),_);if(h)return h}if(o){const _=s2(f);if(_)return t({buildInfoPath:_},void 0)}}}function s2(e){const t=e.configFilePath;if(!AN(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=Ml(e);let i;if(n)i=Pd(n);else{if(!t)return;const s=Pd(t);i=e.outDir?e.rootDir?ud(e.outDir,th(e.rootDir,s,!0)):ta(e.outDir,H_(s)):s}return i+".tsbuildinfo"}function lE(e,t){const n=Ml(e),i=e.emitDeclarationOnly?void 0:n,s=i&&H0e(i,e),o=t||ag(e)?Pd(n)+".d.ts":void 0,l=o&&RF(e)?o+".map":void 0,f=s2(e);return{jsFilePath:i,sourceMapFilePath:s,declarationFilePath:o,declarationMapPath:l,buildInfoPath:f}}function uE(e,t,n){const i=t.getCompilerOptions();if(e.kind===312)return lE(i,n);{const s=Uue(e.fileName,t,$Z(e.fileName,i)),o=O0(e),l=o&&Yx(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,f=i.emitDeclarationOnly||l?void 0:s,_=!f||O0(e)?void 0:H0e(f,i),h=n||ag(i)&&!o?Vue(e.fileName,t):void 0,m=h&&RF(i)?h+".map":void 0;return{jsFilePath:f,sourceMapFilePath:_,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function H0e(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function $Z(e,t){return Xl(e,".json")?".json":t.jsx===1&&Zl(e,[".jsx",".tsx"])?".jsx":Zl(e,[".mts",".mjs"])?".mjs":Zl(e,[".cts",".cjs"])?".cjs":".js"}function G0e(e,t,n,i,s){return i?ud(i,th(s?s():fE(t,n),e,n)):e}function _E(e,t,n,i){return m3(G0e(e,t,n,t.options.declarationDir||t.options.outDir,i),eH(e))}function X0e(e,t,n,i){if(t.options.emitDeclarationOnly)return;const s=Xl(e,".json"),o=m3(G0e(e,t,n,t.options.outDir,i),$Z(e,t.options));return!s||Yx(e,o,D.checkDefined(t.options.configFilePath),n)!==0?o:void 0}function Z0e(){let e;return{addOutput:t,getOutputs:n};function t(i){i&&(e||(e=[])).push(i)}function n(){return e||tt}}function Y0e(e,t){const{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:s,declarationMapPath:o,buildInfoPath:l}=lE(e.options,!1);t(n),t(i),t(s),t(o),t(l)}function Q0e(e,t,n,i,s){if(md(t))return;const o=X0e(t,e,n,s);if(i(o),!Xl(t,".json")&&(o&&e.options.sourceMap&&i(`${o}.map`),ag(e.options))){const l=_E(t,e,n,s);i(l),e.options.declarationMap&&i(`${l}.map`)}}function rP(e,t,n,i,s){let o;return e.rootDir?(o=ms(e.rootDir,n),s==null||s(e.rootDir)):e.composite&&e.configFilePath?(o=ga(kc(e.configFilePath)),s==null||s(o)):o=oge(t(),n,i),o&&o[o.length-1]!==Yl&&(o+=Yl),o}function fE({options:e,fileNames:t},n){return rP(e,()=>Mn(t,i=>!(e.noEmitForJsFiles&&Zl(i,A9))&&!md(i)),ga(kc(D.checkDefined(e.configFilePath))),N_(!n))}function QB(e,t){const{addOutput:n,getOutputs:i}=Z0e();if(Ml(e.options))Y0e(e,n);else{const s=q_(()=>fE(e,t));for(const o of e.fileNames)Q0e(e,o,t,n,s);n(s2(e.options))}return i()}function cIe(e,t,n){t=ec(t),D.assert(Zn(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:s}=Z0e();return Ml(e.options)?Y0e(e,i):Q0e(e,t,n,i),s()}function HZ(e,t){if(Ml(e.options)){const{jsFilePath:s,declarationFilePath:o}=lE(e.options,!1);return D.checkDefined(s||o,`project ${e.options.configFilePath} expected to have at least one output`)}const n=q_(()=>fE(e,t));for(const s of e.fileNames){if(md(s))continue;const o=X0e(s,e,t,n);if(o)return o;if(!Xl(s,".json")&&ag(e.options))return _E(s,e,t,n)}const i=s2(e.options);return i||D.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function KB(e,t,n,{scriptTransformers:i,declarationTransformers:s},o,l,f){var _=t.getCompilerOptions(),h=_.sourceMap||_.inlineSourceMap||RF(_)?[]:void 0,m=_.listEmittedFiles?[]:void 0,y=sk(),T=Yv(_),k=yN(T),{enter:E,exit:O}=Ux("printTime","beforePrint","afterPrint"),N,B=!1;return E(),qZ(t,U,tH(t,n,f),f,l,!n),O(),{emitSkipped:B,diagnostics:y.getDiagnostics(),emittedFiles:m,sourceMaps:h};function U({jsFilePath:ee,sourceMapFilePath:te,declarationFilePath:me,declarationMapPath:ve,buildInfoPath:we},K){var Ze,Re,Fe,Ue,Ae,Me;let He;we&&K&&zG(K)&&(He=ga(ms(we,t.getCurrentDirectory())),N={commonSourceDirectory:je(t.getCommonSourceDirectory()),sourceFiles:K.sourceFiles.map(Pe=>je(ms(Pe.fileName,t.getCurrentDirectory())))}),(Ze=Hi)==null||Ze.push(Hi.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:ee}),re(K,ee,te,je),(Re=Hi)==null||Re.pop(),(Fe=Hi)==null||Fe.push(Hi.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:me}),z(K,me,ve,je),(Ue=Hi)==null||Ue.pop(),(Ae=Hi)==null||Ae.push(Hi.Phase.Emit,"emitBuildInfo",{buildInfoPath:we}),V(N,we),(Me=Hi)==null||Me.pop(),!B&&m&&(o||(ee&&m.push(ee),te&&m.push(te),we&&m.push(we)),o!==0&&(me&&m.push(me),ve&&m.push(ve)));function je(Pe){return G6(th(He,Pe,t.getCanonicalFileName))}}function V(ee,te){if(!te||n||B)return;if(t.isEmitBlocked(te)){B=!0;return}const me=t.getBuildInfo(ee)||nP(void 0,ee);Kw(t,y,te,K0e(me),!1,void 0,{buildInfo:me})}function re(ee,te,me,ve){if(!ee||o||!te)return;if(t.isEmitBlocked(te)||_.noEmit){B=!0;return}const we=tP(e,t,M,_,[ee],i,!1),K={removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:_.noEmitHelpers,module:_.module,target:_.target,sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,inlineSources:_.inlineSources,extendedDiagnostics:_.extendedDiagnostics,writeBundleFileInfo:!!N,relativeToBuildInfo:ve},Ze=V4(K,{hasGlobalName:e.hasGlobalName,onEmitNode:we.emitNodeWithNotification,isEmitNotificationEnabled:we.isEmitNotificationEnabled,substituteNode:we.substituteNode});D.assert(we.transformed.length===1,"Should only see one output from the transform"),R(te,me,we,Ze,_),we.dispose(),N&&(N.js=Ze.bundleFileInfo)}function z(ee,te,me,ve){if(!ee||o===0)return;if(!te){(o||_.emitDeclarationOnly)&&(B=!0);return}const we=Ja(ee)?[ee]:ee.sourceFiles,K=f?we:Mn(we,D$),Ze=Ml(_)?[M.createBundle(K,Ja(ee)?void 0:ee.prepends)]:K;o&&!ag(_)&&K.forEach(ce);const Re=tP(e,t,M,_,Ze,s,!1);if(Nr(Re.diagnostics))for(const Me of Re.diagnostics)y.add(Me);const Fe={removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:!0,module:_.module,target:_.target,sourceMap:!f&&_.declarationMap,inlineSourceMap:_.inlineSourceMap,extendedDiagnostics:_.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!N,recordInternalSection:!!N,relativeToBuildInfo:ve},Ue=V4(Fe,{hasGlobalName:e.hasGlobalName,onEmitNode:Re.emitNodeWithNotification,isEmitNotificationEnabled:Re.isEmitNotificationEnabled,substituteNode:Re.substituteNode}),Ae=!!Re.diagnostics&&!!Re.diagnostics.length||!!t.isEmitBlocked(te)||!!_.noEmit;B=B||Ae,(!Ae||f)&&(D.assert(Re.transformed.length===1,"Should only see one output from the decl transform"),R(te,me,Re,Ue,{sourceMap:Fe.sourceMap,sourceRoot:_.sourceRoot,mapRoot:_.mapRoot,extendedDiagnostics:_.extendedDiagnostics})),Re.dispose(),N&&(N.dts=Ue.bundleFileInfo)}function ce(ee){if(Wu(ee)){ee.expression.kind===80&&e.collectLinkedAliases(ee.expression,!0);return}else if(dd(ee)){e.collectLinkedAliases(ee.propertyName||ee.name,!0);return}js(ee,ce)}function R(ee,te,me,ve,we){const K=me.transformed[0],Ze=K.kind===312?K:void 0,Re=K.kind===311?K:void 0,Fe=Ze?Ze.sourceFiles:[Re];let Ue;le(we,K)&&(Ue=t0e(t,H_(kc(ee)),ae(we),ye(we,ee,Re),we)),Ze?ve.writeBundle(Ze,k,Ue):ve.writeFile(Re,k,Ue);let Ae;if(Ue){h&&h.push({inputSourceFileNames:Ue.getSources(),sourceMap:Ue.toJSON()});const He=$(we,Ue,ee,te,Re);if(He&&(k.isAtStartOfLine()||k.rawWrite(T),Ae=k.getTextPos(),k.writeComment(`//# sourceMappingURL=${He}`)),te){const je=Ue.toString();Kw(t,y,te,je,!1,Fe),ve.bundleFileInfo&&(ve.bundleFileInfo.mapHash=B7(je,t))}}else k.writeLine();const Me=k.getText();Kw(t,y,ee,Me,!!_.emitBOM,Fe,{sourceMapUrlPos:Ae,diagnostics:me.diagnostics}),ve.bundleFileInfo&&(ve.bundleFileInfo.hash=B7(Me,t)),k.clear()}function le(ee,te){return(ee.sourceMap||ee.inlineSourceMap)&&(te.kind!==311||!Xl(te.fileName,".json"))}function ae(ee){const te=kc(ee.sourceRoot||"");return te&&Dp(te)}function ye(ee,te,me){if(ee.sourceRoot)return t.getCommonSourceDirectory();if(ee.mapRoot){let ve=kc(ee.mapRoot);return me&&(ve=ga(CF(me.fileName,t,ve))),Pg(ve)===0&&(ve=ta(t.getCommonSourceDirectory(),ve)),ve}return ga(ec(te))}function $(ee,te,me,ve,we){if(ee.inlineSourceMap){const Ze=te.toString();return`data:application/json;base64,${f_e(Cu,Ze)}`}const K=H_(kc(D.checkDefined(ve)));if(ee.mapRoot){let Ze=kc(ee.mapRoot);return we&&(Ze=ga(CF(we.fileName,t,Ze))),Pg(Ze)===0?(Ze=ta(t.getCommonSourceDirectory(),Ze),encodeURI(XT(ga(ec(me)),ta(Ze,K),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(ta(Ze,K))}return encodeURI(K)}}function nP(e,t){return{bundle:t,program:e,version:Zu}}function K0e(e){return JSON.stringify(e)}function ej(e,t){return pH(e,t)}function lIe(e,t,n){var i;const s=D.checkDefined(e.js),o=((i=s.sources)==null?void 0:i.prologues)&&Fm(s.sources.prologues,l=>l.file);return e.sourceFiles.map((l,f)=>{var T,k;const _=o==null?void 0:o.get(f),h=_==null?void 0:_.directives.map(E=>{const O=yt(M.createStringLiteral(E.expression.text),E.expression),N=yt(M.createExpressionStatement(O),E);return fc(O,N),N}),m=M.createToken(1),y=M.createSourceFile(h!=null?h:[],m,0);return y.fileName=th(n.getCurrentDirectory(),ms(l,t),!n.useCaseSensitiveFileNames()),y.text=(T=_==null?void 0:_.text)!=null?T:"",x9(y,0,(k=_==null?void 0:_.text.length)!=null?k:0),gk(y.statements,y),x9(m,y.end,0),fc(m,y),y})}function ege(e,t,n,i){var s,o;(s=Hi)==null||s.push(Hi.Phase.Emit,"emitUsingBuildInfo",{},!0),Kc("beforeEmit");const l=uIe(e,t,n,i);return Kc("afterEmit"),I_("Emit","beforeEmit","afterEmit"),(o=Hi)==null||o.pop(),l}function uIe(e,t,n,i){const{buildInfoPath:s,jsFilePath:o,sourceMapFilePath:l,declarationFilePath:f,declarationMapPath:_}=lE(e.options,!1),h=t.getBuildInfo(s,e.options.configFilePath);if(!h||!h.bundle||!h.bundle.js||f&&!h.bundle.dts)return s;const m=t.readFile(D.checkDefined(o));if(!m||B7(m,t)!==h.bundle.js.hash)return o;const y=l&&t.readFile(l);if(l&&!y||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&B7(y,t)!==h.bundle.js.mapHash)return l;const T=f&&t.readFile(f);if(f&&!T||f&&B7(T,t)!==h.bundle.dts.hash)return f;const k=_&&t.readFile(_);if(_&&!k||e.options.inlineSourceMap)return _||"inline sourcemap decoding";if(_&&B7(k,t)!==h.bundle.dts.mapHash)return _;const E=ga(ms(s,t.getCurrentDirectory())),O=mG(o,m,l,y,f,T,_,k,s,h,!0),N=[],B=pY(e.projectReferences,n,ce=>t.readFile(ce),t),U=lIe(h.bundle,E,t);let V,re;const z={getPrependNodes:q_(()=>[...B,O]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>ms(h.bundle.commonSourceDirectory,E),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:W_,getSourceFileByPath:W_,getSourceFiles:()=>U,getLibFileFromReference:xs,isSourceFileFromExternalLibrary:Rm,getResolvedProjectReferenceToRedirect:W_,getProjectReferenceRedirect:W_,isSourceOfProjectReferenceRedirect:Rm,writeFile:(ce,R,le,ae,ye,$)=>{switch(ce){case o:if(m===R)return;break;case l:if(y===R)return;break;case s:break;case f:if(T===R)return;V=R,re=$;break;case _:if(k===R)return;break;default:D.fail(`Unexpected path: ${ce}`)}N.push({name:ce,text:R,writeByteOrderMark:le,data:$})},isEmitBlocked:Rm,readFile:ce=>t.readFile(ce),fileExists:ce=>t.fileExists(ce),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ce=>{const R=h.program;R&&V!==void 0&&e.options.composite&&(R.outSignature=B7(V,t,re));const{js:le,dts:ae,sourceFiles:ye}=h.bundle;return ce.js.sources=le.sources,ae&&(ce.dts.sources=ae.sources),ce.sourceFiles=ye,nP(R,ce)},getSourceFileFromReference:W_,redirectTargetsMap:Pf(),getFileIncludeReasons:xs,createHash:Zs(t,t.createHash)};return KB(tj,z,void 0,VZ(e.options,i)),N}function V4(e={},t={}){var{hasGlobalName:n,onEmitNode:i=eP,isEmitNotificationEnabled:s,substituteNode:o=cE,onBeforeEmitNode:l,onAfterEmitNode:f,onBeforeEmitNodeArray:_,onAfterEmitNodeArray:h,onBeforeEmitToken:m,onAfterEmitToken:y}=t,T=!!e.extendedDiagnostics,k=Yv(e),E=Ff(e),O=new Map,N,B,U,V,re,z,ce,R,le,ae,ye,$,ee,te,me,ve=e.preserveSourceNewlines,we,K,Ze,Re=C8,Fe,Ue=e.writeBundleFileInfo?{sections:[]}:void 0,Ae=Ue?D.checkDefined(e.relativeToBuildInfo):void 0,Me=e.recordInternalSection,He=0,je="text",Pe=!0,nt,wt,xt=-1,Zt,Qe=-1,Mt=-1,yr=-1,Cr=-1,Lt,an,xn=!1,Lr=!!e.removeComments,In,vi,{enter:ia,exit:Wa}=m5(T,"commentTime","beforeComment","afterComment"),bi=M.parenthesizer,Pt={select:S=>S===0?bi.parenthesizeLeadingTypeArgument:void 0},Ar=l_();return at(),{printNode:Yt,printList:Qr,printFile:Fn,printBundle:$r,writeNode:Ca,writeList:rn,writeFile:Wt,writeBundle:Tt,bundleFileInfo:Ue};function Yt(S,ie,ze){switch(S){case 0:D.assert(Ja(ie),"Expected a SourceFile node.");break;case 2:D.assert(Be(ie),"Expected an Identifier node.");break;case 1:D.assert(ht(ie),"Expected an Expression node.");break}switch(ie.kind){case 311:return Fn(ie);case 312:return $r(ie);case 313:return ja(ie)}return Ca(S,ie,ze,nr()),Y()}function Qr(S,ie,ze){return rn(S,ie,ze,nr()),Y()}function $r(S){return Tt(S,nr(),void 0),Y()}function Fn(S){return Wt(S,nr(),void 0),Y()}function ja(S){return it(S,nr()),Y()}function Ca(S,ie,ze,hr){const Rt=K;Q(hr,void 0),Ge(S,ie,ze),at(),K=Rt}function rn(S,ie,ze,hr){const Rt=K;Q(hr,void 0),ze&&dt(ze),Xc(void 0,ie,S),at(),K=Rt}function wr(){return K.getTextPosWithWriteLine?K.getTextPosWithWriteLine():K.getTextPos()}function ln(S,ie,ze){const hr=io(Ue.sections);hr&&hr.kind===ze?hr.end=ie:Ue.sections.push({pos:S,end:ie,kind:ze})}function Kr(S){if(Me&&Ue&&N&&(cp(S)||S_(S))&&zZ(S,N)&&je!=="internal"){const ie=je;return ot(K.getTextPos()),He=wr(),je="internal",ie}}function Li(S){S&&(ot(K.getTextPos()),He=wr(),je=S)}function ot(S){return HeD.assert(T_e(co))),Ue.sections.push({pos:_a,end:K.getTextPos(),kind:"prepend",data:Ae(Rt.fileName),texts:Ra}))}}He=wr();for(const Rt of S.sourceFiles)Ge(0,Rt,Rt);if(Ue&&S.sourceFiles.length){const Rt=K.getTextPos();if(ot(Rt)){const _a=yC(S);_a&&(Ue.sources||(Ue.sources={}),Ue.sources.prologues=_a);const Gi=st(S);Gi&&(Ue.sources||(Ue.sources={}),Ue.sources.helpers=Gi)}}at(),K=hr}function it(S,ie){const ze=K;Q(ie,void 0),Ge(4,S,void 0),at(),K=ze}function Wt(S,ie,ze){Fe=!0;const hr=K;Q(ie,ze),Rb(S),fT(S),Ge(0,S,S),at(),K=hr}function nr(){return Ze||(Ze=yN(k))}function Y(){const S=Ze.getText();return Ze.clear(),S}function Ge(S,ie,ze){ze&&dt(ze),Jn(S,ie,void 0)}function dt(S){N=S,Lt=void 0,an=void 0,S&&lx(S)}function Q(S,ie){S&&e.omitTrailingSemicolon&&(S=Y$(S)),K=S,nt=ie,Pe=!K||!nt}function at(){B=[],U=[],V=[],re=new Set,z=[],ce=new Map,R=[],le=0,ae=[],ye=0,$=[],ee=void 0,te=[],me=void 0,N=void 0,Lt=void 0,an=void 0,Q(void 0,void 0)}function fr(){return Lt||(Lt=zy(D.checkDefined(N)))}function Ne(S,ie){if(S===void 0)return;const ze=Kr(S);Jn(4,S,ie),Li(ze)}function $t(S){S!==void 0&&Jn(2,S,void 0)}function Jt(S,ie){S!==void 0&&Jn(1,S,ie)}function Pr(S){Jn(sc(S)?6:4,S)}function li(S){ve&&K0(S)&4&&(ve=!1)}function Yn(S){ve=S}function Jn(S,ie,ze){vi=ze,he(0,S,ie)(S,ie),vi=void 0}function w(S){return!Lr&&!Ja(S)}function ge(S){return!Pe&&!Ja(S)&&!cF(S)&&!w7(S)&&!ipe(S)}function he(S,ie,ze){switch(S){case 0:if(i!==eP&&(!s||s(ze)))return _e;case 1:if(o!==cE&&(In=o(ie,ze)||ze)!==ze)return vi&&(In=vi(In)),ar;case 2:if(w(ze))return Ec;case 3:if(ge(ze))return TT;case 4:return pe;default:return D.assertNever(S)}}function ue(S,ie,ze){return he(S+1,ie,ze)}function _e(S,ie){const ze=ue(0,S,ie);i(S,ie,ze)}function pe(S,ie){if(l==null||l(ie),ve){const ze=ve;li(ie),q(S,ie),Yn(ze)}else q(S,ie);f==null||f(ie),vi=void 0}function q(S,ie,ze=!0){if(ze){const hr=xG(ie);if(hr)return zs(S,ie,hr)}if(S===0)return lv(Ws(ie,Ja));if(S===2)return ti(Ws(ie,Be));if(S===6)return Ti(Ws(ie,sc),!0);if(S===3)return rt(Ws(ie,eu));if(S===5)return D.assertNode(ie,FG),ts(!0);if(S===4){switch(ie.kind){case 16:case 17:case 18:return Ti(ie,!1);case 80:return ti(ie);case 81:return Na(ie);case 165:return al(ie);case 166:return Yr(ie);case 167:return os(ie);case 168:return Gs(ie);case 169:return Ua(ie);case 170:return el(ie);case 171:return Wl(ie);case 172:return du(ie);case 173:return uf(ie);case 174:return Ms(ie);case 175:return qa(ie);case 176:case 177:return h_(ie);case 178:return ru(ie);case 179:return dp(ie);case 180:return k_(ie);case 181:return Nu(ie);case 182:return Cl(ie);case 183:return Hl(ie);case 184:return fe(ie);case 185:return G(ie);case 186:return Le(ie);case 187:return gt(ie);case 188:return Rn(ie);case 189:return Di(ie);case 191:return xi(ie);case 192:return La(ie);case 193:return Fs(ie);case 194:return mu(ie);case 195:return Hc(ie);case 232:return gy(ie);case 196:return Gc();case 197:return Ef(ie);case 198:return gu(ie);case 199:return tl(ie);case 200:return Lc(ie);case 201:return qn(ie);case 202:return Yp(ie);case 203:return wf(ie);case 204:return su(ie);case 205:return ff(ie);case 206:return C_(ie);case 207:return Qp(ie);case 238:return ir(ie);case 239:return fl();case 240:return kn(ie);case 242:return va(ie);case 241:return ts(!1);case 243:return Us(ie);case 244:return ml(ie);case 245:return u_(ie);case 246:return Rd(ie);case 247:return ed(ie);case 248:return dg(ie);case 249:return Gg(ie);case 250:return Ie(ie);case 251:return Ke(ie);case 252:return Tn(ie);case 253:return ra(ie);case 254:return Va(ie);case 255:return Bn(ie);case 256:return pi(ie);case 257:return Hn(ie);case 258:return qs(ie);case 259:return Iu(ie);case 260:return K_(ie);case 261:return Bd(ie);case 262:return nT(ie);case 263:return Z4(ie);case 264:return z3(ie);case 265:return Ob(ie);case 266:return m8(ie);case 267:return Y4(ie);case 268:return g8(ie);case 269:return y8(ie);case 270:return J3(ie);case 271:return iT(ie);case 272:return U3(ie);case 273:return Mb(ie);case 279:return av(ie);case 274:return Lb(ie);case 275:return Fb(ie);case 276:return aT(ie);case 277:return m2(ie);case 278:return hy(ie);case 280:return N1(ie);case 299:return yc(ie);case 300:return V3(ie);case 281:return;case 282:return hd(ie);case 12:return W3(ie);case 285:case 288:return v8(ie);case 286:case 289:return oT(ie);case 290:return b8(ie);case 291:return Q4(ie);case 292:return K4(ie);case 293:return cT(ie);case 294:return qe(ie);case 295:return vy(ie);case 296:return g2(ie);case 297:return ov(ie);case 298:return t6(ie);case 302:return Pu(ie);case 303:return cv(ie);case 304:return vc(ie);case 305:return jd(ie);case 306:return ya(ie);case 313:case 307:return Ui(ie);case 308:case 309:return _s(ie);case 310:return Os(ie);case 311:return lv(ie);case 312:return D.fail("Bundles should be printed using printBundle");case 314:return D.fail("InputFiles should not be printed");case 315:return y2(ie);case 316:return zd(ie);case 318:return Cn("*");case 319:return Cn("?");case 320:return r_(ie);case 321:return Zf(ie);case 322:return _f(ie);case 323:return gr(ie);case 190:case 324:return Nt(ie);case 325:return;case 326:return $3(ie);case 328:return uT(ie);case 329:return Pa(ie);case 333:case 338:case 343:return lT(ie);case 334:case 335:return h2(ie);case 336:case 337:return;case 339:case 340:case 341:case 342:return;case 344:return T8(ie);case 345:return I1(ie);case 347:case 354:return Ei(ie);case 346:case 348:case 349:case 350:case 355:case 356:return gp(ie);case 351:return H3(ie);case 352:return G3(ie);case 353:return by(ie);case 358:return}if(ht(ie)&&(S=1,o!==cE)){const hr=o(S,ie)||ie;hr!==ie&&(ie=hr,vi&&(ie=vi(ie)))}}if(S===1)switch(ie.kind){case 9:case 10:return En(ie);case 11:case 14:case 15:return Ti(ie,!1);case 80:return ti(ie);case 81:return Na(ie);case 208:return Ce(ie);case 209:return Gt(ie);case 210:return un(ie);case 211:return Rs(ie);case 212:return ne(ie);case 213:return _t(ie);case 214:return Qt(ie);case 215:return Kt(ie);case 216:return xr(ie);case 217:return fn(ie);case 218:return si(ie);case 219:return Ia(ie);case 220:return As(ie);case 221:return Ro(ie);case 222:return wl(ie);case 223:return Rl(ie);case 224:return p0(ie);case 225:return Ar(ie);case 226:return Am(ie);case 227:return Kp(ie);case 228:return nm(ie);case 229:return mp(ie);case 230:return Hg(ie);case 231:return;case 233:return kh(ie);case 234:return Ch(ie);case 232:return gy(ie);case 237:return J(ie);case 235:return Xe(ie);case 236:return D.fail("SyntheticExpression should never be printed.");case 281:return;case 283:return yd(ie);case 284:return yy(ie);case 287:return sT(ie);case 357:return D.fail("SyntaxList should not be printed");case 358:return;case 359:return Z3(ie);case 360:return _T(ie);case 361:return D.fail("SyntheticReferenceExpression should not be printed")}if(pd(ie.kind))return ex(ie,ps);if(Bq(ie.kind))return ex(ie,Cn);D.fail(`Unhandled SyntaxKind: ${D.formatSyntaxKind(ie.kind)}.`)}function rt(S){Ne(S.name),Dn(),ps("in"),Dn(),Ne(S.constraint)}function ar(S,ie){const ze=ue(1,S,ie);D.assertIsDefined(In),ie=In,In=void 0,ze(S,ie)}function st(S){let ie;if(E===0||e.noEmitHelpers)return;const ze=new Map;for(const hr of S.sourceFiles){const Rt=hI(hr)!==void 0,_a=zr(hr);if(_a)for(const Gi of _a)!Gi.scoped&&!Rt&&!ze.get(Gi.name)&&(ze.set(Gi.name,!0),(ie||(ie=[])).push(Gi.name))}return ie}function Ft(S){let ie=!1;const ze=S.kind===312?S:void 0;if(ze&&E===0)return;const hr=ze?ze.prepends.length:0,Rt=ze?ze.sourceFiles.length+hr:1;for(let _a=0;_a"),Dn(),Ne(S.type),fv(S)}function gr(S){ps("function"),sm(S,S.parameters),Cn(":"),Ne(S.type)}function r_(S){Cn("?"),Ne(S.type)}function Zf(S){Cn("!"),Ne(S.type)}function _f(S){Ne(S.type),Cn("=")}function fe(S){g0(S),uv(S,S.modifiers),ps("new"),Dn(),Yg(S,S.typeParameters),sm(S,S.parameters),Dn(),Cn("=>"),Dn(),Ne(S.type),fv(S)}function G(S){ps("typeof"),Dn(),Ne(S.exprName),Zg(S,S.typeArguments)}function Le(S){ou(0,void 0),Cn("{");const ie=_c(S)&1?768:32897;Xc(S,S.members,ie|524288),Cn("}"),Vb()}function gt(S){Ne(S.elementType,bi.parenthesizeNonArrayTypeOfPostfixType),Cn("["),Cn("]")}function Nt(S){Cn("..."),Ne(S.type)}function Rn(S){pt(23,S.pos,Cn,S);const ie=_c(S)&1?528:657;Xc(S,S.elements,ie|524288,bi.parenthesizeElementTypeOfTupleType),pt(24,S.elements.end,Cn,S)}function qn(S){Ne(S.dotDotDotToken),Ne(S.name),Ne(S.questionToken),pt(59,S.name.end,Cn,S),Dn(),Ne(S.type)}function Di(S){Ne(S.type,bi.parenthesizeTypeOfOptionalType),Cn("?")}function xi(S){Xc(S,S.types,516,bi.parenthesizeConstituentTypeOfUnionType)}function La(S){Xc(S,S.types,520,bi.parenthesizeConstituentTypeOfIntersectionType)}function Fs(S){Ne(S.checkType,bi.parenthesizeCheckTypeOfConditionalType),Dn(),ps("extends"),Dn(),Ne(S.extendsType,bi.parenthesizeExtendsTypeOfConditionalType),Dn(),Cn("?"),Dn(),Ne(S.trueType),Dn(),Cn(":"),Dn(),Ne(S.falseType)}function mu(S){ps("infer"),Dn(),Ne(S.typeParameter)}function Hc(S){Cn("("),Ne(S.type),Cn(")")}function Gc(){ps("this")}function Ef(S){Ty(S.operator,ps),Dn();const ie=S.operator===148?bi.parenthesizeOperandOfReadonlyTypeOperator:bi.parenthesizeOperandOfTypeOperator;Ne(S.type,ie)}function gu(S){Ne(S.objectType,bi.parenthesizeNonArrayTypeOfPostfixType),Cn("["),Ne(S.indexType),Cn("]")}function tl(S){const ie=_c(S);Cn("{"),ie&1?Dn():(y_(),P1()),S.readonlyToken&&(Ne(S.readonlyToken),S.readonlyToken.kind!==148&&ps("readonly"),Dn()),Cn("["),Jn(3,S.typeParameter),S.nameType&&(Dn(),ps("as"),Dn(),Ne(S.nameType)),Cn("]"),S.questionToken&&(Ne(S.questionToken),S.questionToken.kind!==58&&Cn("?")),Cn(":"),Dn(),Ne(S.type),qu(),ie&1?Dn():(y_(),J0()),Xc(S,S.members,2),Cn("}")}function Lc(S){Jt(S.literal)}function Yp(S){Ne(S.head),Xc(S,S.templateSpans,262144)}function su(S){if(S.isTypeOf&&(ps("typeof"),Dn()),ps("import"),Cn("("),Ne(S.argument),S.assertions){Cn(","),Dn(),Cn("{"),Dn(),ps("assert"),Cn(":"),Dn();const ie=S.assertions.assertClause.elements;Xc(S.assertions.assertClause,ie,526226),Dn(),Cn("}")}Cn(")"),S.qualifier&&(Cn("."),Ne(S.qualifier)),Zg(S,S.typeArguments)}function ff(S){Cn("{"),Xc(S,S.elements,525136),Cn("}")}function C_(S){Cn("["),Xc(S,S.elements,524880),Cn("]")}function Qp(S){Ne(S.dotDotDotToken),S.propertyName&&(Ne(S.propertyName),Cn(":"),Dn()),Ne(S.name),Bb(S.initializer,S.name.end,S,bi.parenthesizeExpressionForDisallowedComma)}function Ce(S){const ie=S.elements,ze=S.multiLine?65536:0;Q3(S,ie,8914|ze,bi.parenthesizeExpressionForDisallowedComma)}function Gt(S){ou(0,void 0),Vt(S.properties,w8);const ie=_c(S)&131072;ie&&P1();const ze=S.multiLine?65536:0,hr=N&&N.languageVersion>=1&&!O0(N)?64:0;Xc(S,S.properties,526226|hr|ze),ie&&J0(),Vb()}function un(S){Jt(S.expression,bi.parenthesizeLeftSideOfAccess);const ie=S.questionDotToken||ph(M.createToken(25),S.expression.end,S.name.pos),ze=Yf(S,S.expression,ie),hr=Yf(S,ie,S.name);Dh(ze,!1),ie.kind!==29&&da(S.expression)&&!K.hasTrailingComment()&&!K.hasTrailingWhitespace()&&Cn("."),S.questionDotToken?Ne(ie):pt(ie.kind,S.expression.end,Cn,S),Dh(hr,!1),Ne(S.name),U0(ze,hr)}function da(S){if(S=Q0(S),Um(S)){const ie=tx(S,!0,!1);return!(S.numericLiteralFlags&448)&&!Qo(ie,Uo(25))&&!Qo(ie,String.fromCharCode(69))&&!Qo(ie,String.fromCharCode(101))}else if($l(S)){const ie=Dfe(S);return typeof ie=="number"&&isFinite(ie)&&Math.floor(ie)===ie}}function Rs(S){Jt(S.expression,bi.parenthesizeLeftSideOfAccess),Ne(S.questionDotToken),pt(23,S.expression.end,Cn,S),Jt(S.argumentExpression),pt(24,S.argumentExpression.end,Cn,S)}function ne(S){const ie=K0(S)&16;ie&&(Cn("("),Ub("0"),Cn(","),Dn()),Jt(S.expression,bi.parenthesizeLeftSideOfAccess),ie&&Cn(")"),Ne(S.questionDotToken),Zg(S,S.typeArguments),Q3(S,S.arguments,2576,bi.parenthesizeExpressionForDisallowedComma)}function _t(S){pt(105,S.pos,ps,S),Dn(),Jt(S.expression,bi.parenthesizeExpressionOfNew),Zg(S,S.typeArguments),Q3(S,S.arguments,18960,bi.parenthesizeExpressionForDisallowedComma)}function Qt(S){const ie=K0(S)&16;ie&&(Cn("("),Ub("0"),Cn(","),Dn()),Jt(S.tag,bi.parenthesizeLeftSideOfAccess),ie&&Cn(")"),Zg(S,S.typeArguments),Dn(),Jt(S.template)}function Kt(S){Cn("<"),Ne(S.type),Cn(">"),Jt(S.expression,bi.parenthesizeOperandOfPrefixUnary)}function xr(S){const ie=pt(21,S.pos,Cn,S),ze=rd(S.expression,S);Jt(S.expression,void 0),m0(S.expression,S),U0(ze),pt(22,S.expression?S.expression.end:ie,Cn,S)}function fn(S){z_(S.name),wh(S)}function si(S){uv(S,S.modifiers),Eh(S,Bi)}function Bi(S){Yg(S,S.typeParameters),zb(S,S.parameters),Jd(S.type),Dn(),Ne(S.equalsGreaterThanToken)}function Ia(S){pt(91,S.pos,ps,S),Dn(),Jt(S.expression,bi.parenthesizeOperandOfPrefixUnary)}function As(S){pt(114,S.pos,ps,S),Dn(),Jt(S.expression,bi.parenthesizeOperandOfPrefixUnary)}function Ro(S){pt(116,S.pos,ps,S),Dn(),Jt(S.expression,bi.parenthesizeOperandOfPrefixUnary)}function wl(S){pt(135,S.pos,ps,S),Dn(),Jt(S.expression,bi.parenthesizeOperandOfPrefixUnary)}function Rl(S){Ty(S.operator,_v),gd(S)&&Dn(),Jt(S.operand,bi.parenthesizeOperandOfPrefixUnary)}function gd(S){const ie=S.operand;return ie.kind===223&&(S.operator===40&&(ie.operator===40||ie.operator===46)||S.operator===41&&(ie.operator===41||ie.operator===47))}function p0(S){Jt(S.operand,bi.parenthesizeOperandOfPostfixUnary),Ty(S.operator,_v)}function l_(){return eB(S,ie,ze,hr,Rt,void 0);function S(Gi,Ra){if(Ra){Ra.stackIndex++,Ra.preserveSourceNewlinesStack[Ra.stackIndex]=ve,Ra.containerPosStack[Ra.stackIndex]=Mt,Ra.containerEndStack[Ra.stackIndex]=yr,Ra.declarationListContainerEndStack[Ra.stackIndex]=Cr;const co=Ra.shouldEmitCommentsStack[Ra.stackIndex]=w(Gi),Ud=Ra.shouldEmitSourceMapsStack[Ra.stackIndex]=ge(Gi);l==null||l(Gi),co&&ei(Gi),Ud&&ox(Gi),li(Gi)}else Ra={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Ra}function ie(Gi,Ra,co){return _a(Gi,co,"left")}function ze(Gi,Ra,co){const Ud=Gi.kind!==28,Vd=Yf(co,co.left,Gi),nd=Yf(co,Gi,co.right);Dh(Vd,Ud),Af(Gi.pos),ex(Gi,Gi.kind===103?ps:_v),M1(Gi.end,!0),Dh(nd,!0)}function hr(Gi,Ra,co){return _a(Gi,co,"right")}function Rt(Gi,Ra){const co=Yf(Gi,Gi.left,Gi.operatorToken),Ud=Yf(Gi,Gi.operatorToken,Gi.right);if(U0(co,Ud),Ra.stackIndex>0){const Vd=Ra.preserveSourceNewlinesStack[Ra.stackIndex],nd=Ra.containerPosStack[Ra.stackIndex],g6=Ra.containerEndStack[Ra.stackIndex],id=Ra.declarationListContainerEndStack[Ra.stackIndex],h6=Ra.shouldEmitCommentsStack[Ra.stackIndex],Xb=Ra.shouldEmitSourceMapsStack[Ra.stackIndex];Yn(Vd),Xb&&m6(Gi),h6&&Im(Gi,nd,g6,id),f==null||f(Gi),Ra.stackIndex--}}function _a(Gi,Ra,co){const Ud=co==="left"?bi.getParenthesizeLeftSideOfBinaryForOperator(Ra.operatorToken.kind):bi.getParenthesizeRightSideOfBinaryForOperator(Ra.operatorToken.kind);let Vd=he(0,1,Gi);if(Vd===ar&&(D.assertIsDefined(In),Gi=Ud(Ws(In,ht)),Vd=ue(1,1,Gi),In=void 0),(Vd===Ec||Vd===TT||Vd===pe)&&Un(Gi))return Gi;vi=Ud,Vd(1,Gi)}}function Am(S){const ie=Yf(S,S.condition,S.questionToken),ze=Yf(S,S.questionToken,S.whenTrue),hr=Yf(S,S.whenTrue,S.colonToken),Rt=Yf(S,S.colonToken,S.whenFalse);Jt(S.condition,bi.parenthesizeConditionOfConditionalExpression),Dh(ie,!0),Ne(S.questionToken),Dh(ze,!0),Jt(S.whenTrue,bi.parenthesizeBranchOfConditionalExpression),U0(ie,ze),Dh(hr,!0),Ne(S.colonToken),Dh(Rt,!0),Jt(S.whenFalse,bi.parenthesizeBranchOfConditionalExpression),U0(hr,Rt)}function Kp(S){Ne(S.head),Xc(S,S.templateSpans,262144)}function nm(S){pt(127,S.pos,ps,S),Ne(S.asteriskToken),jb(S.expression&&Gr(S.expression),Xr)}function mp(S){pt(26,S.pos,Cn,S),Jt(S.expression,bi.parenthesizeExpressionForDisallowedComma)}function Hg(S){z_(S.name),j3(S)}function gy(S){Jt(S.expression,bi.parenthesizeLeftSideOfAccess),Zg(S,S.typeArguments)}function kh(S){Jt(S.expression,void 0),S.type&&(Dn(),ps("as"),Dn(),Ne(S.type))}function Ch(S){Jt(S.expression,bi.parenthesizeLeftSideOfAccess),_v("!")}function J(S){Jt(S.expression,void 0),S.type&&(Dn(),ps("satisfies"),Dn(),Ne(S.type))}function Xe(S){s6(S.keywordToken,S.pos,Cn),Cn("."),Ne(S.name)}function ir(S){Jt(S.expression),Ne(S.literal)}function kn(S){Js(S,!S.multiLine&&vT(S))}function Js(S,ie){pt(19,S.pos,Cn,S);const ze=ie||_c(S)&1?768:129;Xc(S,S.statements,ze),pt(20,S.statements.end,Cn,S,!!(ze&1))}function va(S){am(S,S.modifiers,!1),Ne(S.declarationList),qu()}function ts(S){S?Cn(";"):qu()}function Us(S){Jt(S.expression,bi.parenthesizeExpressionOfExpressionStatement),(!N||!O0(N)||Ol(S.expression))&&qu()}function ml(S){const ie=pt(101,S.pos,ps,S);Dn(),pt(21,ie,Cn,S),Jt(S.expression),pt(22,S.expression.end,Cn,S),Xg(S,S.thenStatement),S.elseStatement&&(o6(S,S.thenStatement,S.elseStatement),pt(93,S.thenStatement.end,ps,S),S.elseStatement.kind===244?(Dn(),Ne(S.elseStatement)):Xg(S,S.elseStatement))}function dc(S,ie){const ze=pt(117,ie,ps,S);Dn(),pt(21,ze,Cn,S),Jt(S.expression),pt(22,S.expression.end,Cn,S)}function u_(S){pt(92,S.pos,ps,S),Xg(S,S.statement),oo(S.statement)&&!ve?Dn():o6(S,S.statement,S.expression),dc(S,S.statement.end),qu()}function Rd(S){dc(S,S.pos),Xg(S,S.statement)}function ed(S){const ie=pt(99,S.pos,ps,S);Dn();let ze=pt(21,ie,Cn,S);mg(S.initializer),ze=pt(27,S.initializer?S.initializer.end:ze,Cn,S),jb(S.condition),ze=pt(27,S.condition?S.condition.end:ze,Cn,S),jb(S.incrementor),pt(22,S.incrementor?S.incrementor.end:ze,Cn,S),Xg(S,S.statement)}function dg(S){const ie=pt(99,S.pos,ps,S);Dn(),pt(21,ie,Cn,S),mg(S.initializer),Dn(),pt(103,S.initializer.end,ps,S),Dn(),Jt(S.expression),pt(22,S.expression.end,Cn,S),Xg(S,S.statement)}function Gg(S){const ie=pt(99,S.pos,ps,S);Dn(),dT(S.awaitModifier),pt(21,ie,Cn,S),mg(S.initializer),Dn(),pt(164,S.initializer.end,ps,S),Dn(),Jt(S.expression),pt(22,S.expression.end,Cn,S),Xg(S,S.statement)}function mg(S){S!==void 0&&(S.kind===260?Ne(S):Jt(S))}function Ie(S){pt(88,S.pos,ps,S),xy(S.label),qu()}function Ke(S){pt(83,S.pos,ps,S),xy(S.label),qu()}function pt(S,ie,ze,hr,Rt){const _a=gs(hr),Gi=_a&&_a.kind===hr.kind,Ra=ie;if(Gi&&N&&(ie=tc(N.text,ie)),Gi&&hr.pos!==Ra){const co=Rt&&N&&!F0(Ra,ie,N);co&&P1(),Af(Ra),co&&J0()}if(ie=Ty(S,ze,ie),Gi&&hr.end!==ie){const co=hr.kind===293;M1(ie,!co,co)}return ie}function pr(S){return S.kind===2||!!S.hasTrailingNewLine}function Vr(S){return N?bt(Yh(N.text,S.pos),pr)||bt(Tk(S),pr)?!0:JR(S)?S.pos!==S.expression.pos&&bt(S4(N.text,S.expression.pos),pr)?!0:Vr(S.expression):!1:!1}function Gr(S){if(!Lr&&JR(S)&&Vr(S)){const ie=gs(S);if(ie&&Md(ie)){const ze=M.createParenthesizedExpression(S.expression);return yi(ze,S),yt(ze,ie),ze}return M.createParenthesizedExpression(S)}return S}function Xr(S){return Gr(bi.parenthesizeExpressionForDisallowedComma(S))}function Tn(S){pt(107,S.pos,ps,S),jb(S.expression&&Gr(S.expression),Gr),qu()}function ra(S){const ie=pt(118,S.pos,ps,S);Dn(),pt(21,ie,Cn,S),Jt(S.expression),pt(22,S.expression.end,Cn,S),Xg(S,S.statement)}function Va(S){const ie=pt(109,S.pos,ps,S);Dn(),pt(21,ie,Cn,S),Jt(S.expression),pt(22,S.expression.end,Cn,S),Dn(),Ne(S.caseBlock)}function Bn(S){Ne(S.label),pt(59,S.label.end,Cn,S),Dn(),Ne(S.statement)}function pi(S){pt(111,S.pos,ps,S),jb(Gr(S.expression),Gr),qu()}function Hn(S){pt(113,S.pos,ps,S),Dn(),Ne(S.tryBlock),S.catchClause&&(o6(S,S.tryBlock,S.catchClause),Ne(S.catchClause)),S.finallyBlock&&(o6(S,S.catchClause||S.tryBlock,S.finallyBlock),pt(98,(S.catchClause||S.tryBlock).end,ps,S),Dn(),Ne(S.finallyBlock))}function qs(S){s6(89,S.pos,ps),qu()}function Iu(S){var Rt,_a;var ie,ze,hr;Ne(S.name),Ne(S.exclamationToken),Jd(S.type),Bb(S.initializer,(_a=(Rt=(ie=S.type)==null?void 0:ie.end)!=null?Rt:(hr=(ze=S.name.emitNode)==null?void 0:ze.typeNode)==null?void 0:hr.end)!=null?_a:S.name.end,S,bi.parenthesizeExpressionForDisallowedComma)}function K_(S){ps(Uw(S)?"let":qy(S)?"const":"var"),Dn(),Xc(S,S.declarations,528)}function Bd(S){wh(S)}function wh(S){am(S,S.modifiers,!1),ps("function"),Ne(S.asteriskToken),Dn(),$t(S.name),Eh(S,d0)}function Eh(S,ie){const ze=S.body;if(ze)if(oo(ze)){const hr=_c(S)&131072;hr&&P1(),g0(S),Vt(S.parameters,w_),w_(S.body),ie(S),Pb(ze),fv(S),hr&&J0()}else ie(S),Dn(),Jt(ze,bi.parenthesizeConciseBodyOfArrowFunction);else ie(S),qu()}function d0(S){Yg(S,S.typeParameters),sm(S,S.parameters),Jd(S.type)}function p2(S){if(_c(S)&1)return!0;if(S.multiLine||!Ol(S)&&N&&!m7(S,N)||v2(S,Ji(S.statements),2)||Rf(S,io(S.statements),2,S.statements))return!1;let ie;for(const ze of S.statements){if(nu(ie,ze,2)>0)return!1;ie=ze}return!0}function Pb(S){l==null||l(S),Dn(),Cn("{"),P1();const ie=p2(S)?rT:d2;O1(S,S.statements,ie),J0(),s6(20,S.statements.end,Cn,S),f==null||f(S)}function rT(S){d2(S,!0)}function d2(S,ie){const ze=Y3(S.statements),hr=K.getTextPos();Ft(S),ze===0&&hr===K.getTextPos()&&ie?(J0(),Xc(S,S.statements,768),P1()):Xc(S,S.statements,1,void 0,ze)}function nT(S){j3(S)}function j3(S){ou(0,void 0),Vt(S.members,w8),am(S,S.modifiers,!0),pt(86,S1(S).pos,ps,S),S.name&&(Dn(),$t(S.name));const ie=_c(S)&131072;ie&&P1(),Yg(S,S.typeParameters),Xc(S,S.heritageClauses,0),Dn(),Cn("{"),Xc(S,S.members,129),Cn("}"),ie&&J0(),Vb()}function Z4(S){ou(0,void 0),am(S,S.modifiers,!1),ps("interface"),Dn(),Ne(S.name),Yg(S,S.typeParameters),Xc(S,S.heritageClauses,512),Dn(),Cn("{"),Xc(S,S.members,129),Cn("}"),Vb()}function z3(S){am(S,S.modifiers,!1),ps("type"),Dn(),Ne(S.name),Yg(S,S.typeParameters),Dn(),Cn("="),Dn(),Ne(S.type),qu()}function Ob(S){am(S,S.modifiers,!1),ps("enum"),Dn(),Ne(S.name),Dn(),Cn("{"),Xc(S,S.members,145),Cn("}")}function m8(S){am(S,S.modifiers,!1),~S.flags&1024&&(ps(S.flags&16?"namespace":"module"),Dn()),Ne(S.name);let ie=S.body;if(!ie)return qu();for(;ie&&Vu(ie);)Cn("."),Ne(ie.name),ie=ie.body;Dn(),Ne(ie)}function Y4(S){g0(S),Vt(S.statements,w_),Js(S,vT(S)),fv(S)}function g8(S){pt(19,S.pos,Cn,S),Xc(S,S.clauses,129),pt(20,S.clauses.end,Cn,S,!0)}function J3(S){am(S,S.modifiers,!1),pt(102,S.modifiers?S.modifiers.end:S.pos,ps,S),Dn(),S.isTypeOnly&&(pt(156,S.pos,ps,S),Dn()),Ne(S.name),Dn(),pt(64,S.name.end,Cn,S),Dn(),h8(S.moduleReference),qu()}function h8(S){S.kind===80?Jt(S):Ne(S)}function iT(S){am(S,S.modifiers,!1),pt(102,S.modifiers?S.modifiers.end:S.pos,ps,S),Dn(),S.importClause&&(Ne(S.importClause),Dn(),pt(160,S.importClause.end,ps,S),Dn()),Jt(S.moduleSpecifier),S.assertClause&&xy(S.assertClause),qu()}function U3(S){S.isTypeOnly&&(pt(156,S.pos,ps,S),Dn()),Ne(S.name),S.name&&S.namedBindings&&(pt(28,S.name.end,Cn,S),Dn()),Ne(S.namedBindings)}function Mb(S){const ie=pt(42,S.pos,Cn,S);Dn(),pt(130,ie,ps,S),Dn(),Ne(S.name)}function Lb(S){Hm(S)}function Fb(S){td(S)}function aT(S){const ie=pt(95,S.pos,ps,S);Dn(),S.isExportEquals?pt(64,ie,_v,S):pt(90,ie,ps,S),Dn(),Jt(S.expression,S.isExportEquals?bi.getParenthesizeRightSideOfBinaryForOperator(64):bi.parenthesizeExpressionOfExportDefault),qu()}function m2(S){am(S,S.modifiers,!1);let ie=pt(95,S.pos,ps,S);if(Dn(),S.isTypeOnly&&(ie=pt(156,ie,ps,S),Dn()),S.exportClause?Ne(S.exportClause):ie=pt(42,ie,Cn,S),S.moduleSpecifier){Dn();const ze=S.exportClause?S.exportClause.end:ie;pt(160,ze,ps,S),Dn(),Jt(S.moduleSpecifier)}S.assertClause&&xy(S.assertClause),qu()}function yc(S){pt(132,S.pos,ps,S),Dn();const ie=S.elements;Xc(S,ie,526226)}function V3(S){Ne(S.name),Cn(":"),Dn();const ie=S.value;if(!(_c(ie)&1024)){const ze=mh(ie);M1(ze.pos)}Ne(ie)}function y8(S){let ie=pt(95,S.pos,ps,S);Dn(),ie=pt(130,ie,ps,S),Dn(),ie=pt(145,ie,ps,S),Dn(),Ne(S.name),qu()}function av(S){const ie=pt(42,S.pos,Cn,S);Dn(),pt(130,ie,ps,S),Dn(),Ne(S.name)}function hy(S){Hm(S)}function N1(S){td(S)}function Hm(S){Cn("{"),Xc(S,S.elements,525136),Cn("}")}function td(S){S.isTypeOnly&&(ps("type"),Dn()),S.propertyName&&(Ne(S.propertyName),Dn(),pt(130,S.propertyName.end,ps,S),Dn()),Ne(S.name)}function hd(S){ps("require"),Cn("("),Jt(S.expression),Cn(")")}function yd(S){Ne(S.openingElement),Xc(S,S.children,262144),Ne(S.closingElement)}function yy(S){Cn("<"),Ah(S.tagName),Zg(S,S.typeArguments),Dn(),Ne(S.attributes),Cn("/>")}function sT(S){Ne(S.openingFragment),Xc(S,S.children,262144),Ne(S.closingFragment)}function v8(S){if(Cn("<"),w1(S)){const ie=rd(S.tagName,S);Ah(S.tagName),Zg(S,S.typeArguments),S.attributes.properties&&S.attributes.properties.length>0&&Dn(),Ne(S.attributes),m0(S.attributes,S),U0(ie)}Cn(">")}function W3(S){K.writeLiteral(S.text)}function oT(S){Cn("")}function Q4(S){Xc(S,S.properties,262656)}function b8(S){Ne(S.name),k8("=",Cn,S.initializer,Pr)}function K4(S){Cn("{..."),Jt(S.expression),Cn("}")}function q3(S){let ie=!1;return vD((N==null?void 0:N.text)||"",S+1,()=>ie=!0),ie}function x8(S){let ie=!1;return yD((N==null?void 0:N.text)||"",S+1,()=>ie=!0),ie}function sv(S){return q3(S)||x8(S)}function cT(S){var ie;if(S.expression||!Lr&&!Ol(S)&&sv(S.pos)){const ze=N&&!Ol(S)&&Ql(N,S.pos).line!==Ql(N,S.end).line;ze&&K.increaseIndent();const hr=pt(19,S.pos,Cn,S);Ne(S.dotDotDotToken),Jt(S.expression),pt(20,((ie=S.expression)==null?void 0:ie.end)||hr,Cn,S),ze&&K.decreaseIndent()}}function qe(S){$t(S.namespace),Cn(":"),$t(S.name)}function Ah(S){S.kind===80?Jt(S):Ne(S)}function vy(S){pt(84,S.pos,ps,S),Dn(),Jt(S.expression,bi.parenthesizeExpressionForDisallowedComma),e6(S,S.statements,S.expression.end)}function g2(S){const ie=pt(90,S.pos,ps,S);e6(S,S.statements,ie)}function e6(S,ie,ze){const hr=ie.length===1&&(!N||Ol(S)||Ol(ie[0])||NF(S,ie[0],N));let Rt=163969;hr?(s6(59,ze,Cn,S),Dn(),Rt&=-130):pt(59,ze,Cn,S),Xc(S,ie,Rt)}function ov(S){Dn(),Ty(S.token,ps),Dn(),Xc(S,S.types,528)}function t6(S){const ie=pt(85,S.pos,ps,S);Dn(),S.variableDeclaration&&(pt(21,ie,Cn,S),Ne(S.variableDeclaration),pt(22,S.variableDeclaration.end,Cn,S),Dn()),Ne(S.block)}function Pu(S){Ne(S.name),Cn(":"),Dn();const ie=S.initializer;if(!(_c(ie)&1024)){const ze=mh(ie);M1(ze.pos)}Jt(ie,bi.parenthesizeExpressionForDisallowedComma)}function cv(S){Ne(S.name),S.objectAssignmentInitializer&&(Dn(),Cn("="),Dn(),Jt(S.objectAssignmentInitializer,bi.parenthesizeExpressionForDisallowedComma))}function vc(S){S.expression&&(pt(26,S.pos,Cn,S),Jt(S.expression,bi.parenthesizeExpressionForDisallowedComma))}function jd(S){Ne(S.name),Bb(S.initializer,S.name.end,S,bi.parenthesizeExpressionForDisallowedComma)}function $3(S){if(Re("/**"),S.comment){const ie=CD(S.comment);if(ie){const ze=ie.split(/\r\n?|\n/g);for(const hr of ze)y_(),Dn(),Cn("*"),Dn(),Re(hr)}}S.tags&&(S.tags.length===1&&S.tags[0].kind===350&&!S.comment?(Dn(),Ne(S.tags[0])):Xc(S,S.tags,33)),Dn(),Re("*/")}function gp(S){im(S.tagName),y2(S.typeExpression),pf(S.comment)}function by(S){im(S.tagName),Ne(S.name),pf(S.comment)}function zd(S){Dn(),Cn("{"),Ne(S.name),Cn("}")}function h2(S){im(S.tagName),Dn(),Cn("{"),Ne(S.class),Cn("}"),pf(S.comment)}function H3(S){im(S.tagName),y2(S.constraint),Dn(),Xc(S,S.typeParameters,528),pf(S.comment)}function G3(S){im(S.tagName),S.typeExpression&&(S.typeExpression.kind===315?y2(S.typeExpression):(Dn(),Cn("{"),Re("Object"),S.typeExpression.isArrayType&&(Cn("["),Cn("]")),Cn("}"))),S.fullName&&(Dn(),Ne(S.fullName)),pf(S.comment),S.typeExpression&&S.typeExpression.kind===328&&uT(S.typeExpression)}function T8(S){im(S.tagName),S.name&&(Dn(),Ne(S.name)),pf(S.comment),Pa(S.typeExpression)}function I1(S){pf(S.comment),Pa(S.typeExpression)}function lT(S){im(S.tagName),pf(S.comment)}function uT(S){Xc(S,M.createNodeArray(S.jsDocPropertyTags),33)}function Pa(S){S.typeParameters&&Xc(S,M.createNodeArray(S.typeParameters),33),S.parameters&&Xc(S,M.createNodeArray(S.parameters),33),S.type&&(y_(),Dn(),Cn("*"),Dn(),Ne(S.type))}function Ei(S){im(S.tagName),y2(S.typeExpression),Dn(),S.isBracketed&&Cn("["),Ne(S.name),S.isBracketed&&Cn("]"),pf(S.comment)}function im(S){Cn("@"),Ne(S)}function pf(S){const ie=CD(S);ie&&(Dn(),Re(ie))}function y2(S){S&&(Dn(),Cn("{"),Ne(S.type),Cn("}"))}function lv(S){y_();const ie=S.statements;if(ie.length===0||!eg(ie[0])||Ol(ie[0])){O1(S,ie,X3);return}X3(S)}function r6(S){hu(!!S.hasNoDefaultLib,S.syntheticFileReferences||[],S.syntheticTypeReferences||[],S.syntheticLibReferences||[]);for(const ie of S.prepends)if(w7(ie)&&ie.syntheticReferences)for(const ze of ie.syntheticReferences)Ne(ze),y_()}function S8(S){S.isDeclarationFile&&hu(S.hasNoDefaultLib,S.referencedFiles,S.typeReferenceDirectives,S.libReferenceDirectives)}function hu(S,ie,ze,hr){if(S){const Rt=K.getTextPos();Qg('/// '),Ue&&Ue.sections.push({pos:Rt,end:K.getTextPos(),kind:"no-default-lib"}),y_()}if(N&&N.moduleName&&(Qg(`/// `),y_()),N&&N.amdDependencies)for(const Rt of N.amdDependencies)Rt.name?Qg(`/// `):Qg(`/// `),y_();for(const Rt of ie){const _a=K.getTextPos();Qg(`/// `),Ue&&Ue.sections.push({pos:_a,end:K.getTextPos(),kind:"reference",data:Rt.fileName}),y_()}for(const Rt of ze){const _a=K.getTextPos(),Gi=Rt.resolutionMode&&Rt.resolutionMode!==(N==null?void 0:N.impliedNodeFormat)?`resolution-mode="${Rt.resolutionMode===99?"import":"require"}"`:"";Qg(`/// `),Ue&&Ue.sections.push({pos:_a,end:K.getTextPos(),kind:Rt.resolutionMode?Rt.resolutionMode===99?"type-import":"type-require":"type",data:Rt.fileName}),y_()}for(const Rt of hr){const _a=K.getTextPos();Qg(`/// `),Ue&&Ue.sections.push({pos:_a,end:K.getTextPos(),kind:"lib",data:Rt.fileName}),y_()}}function X3(S){const ie=S.statements;g0(S),Vt(S.statements,w_),Ft(S);const ze=zi(ie,hr=>!eg(hr));S8(S),Xc(S,ie,1,void 0,ze===-1?ie.length:ze),fv(S)}function Z3(S){const ie=_c(S);!(ie&1024)&&S.pos!==S.expression.pos&&M1(S.expression.pos),Jt(S.expression),!(ie&2048)&&S.end!==S.expression.end&&Af(S.expression.end)}function _T(S){Q3(S,S.elements,528,void 0)}function Y3(S,ie,ze,hr){let Rt=!!ie;for(let _a=0;_a=ze.length||Gi===0;if(co&&hr&32768){_==null||_(ze),h==null||h(ze);return}hr&15360&&(Cn(fIe(hr)),co&&ze&&M1(ze.pos,!0)),_==null||_(ze),co?hr&1&&!(ve&&(!ie||N&&m7(ie,N)))?y_():hr&256&&!(hr&524288)&&Dn():gT(S,ie,ze,hr,Rt,_a,Gi,ze.hasTrailingComma,ze),h==null||h(ze),hr&15360&&(co&&ze&&Af(ze.end),Cn(pIe(hr)))}function gT(S,ie,ze,hr,Rt,_a,Gi,Ra,co){const Ud=(hr&262144)===0;let Vd=Ud;const nd=v2(ie,ze[_a],hr);nd?(y_(nd),Vd=!1):hr&256&&Dn(),hr&128&&P1();const g6=hIe(S,Rt);let id,h6,Xb=!1;for(let wy=0;wy0?(hr&131||(P1(),Xb=!0),y_(vv),Vd=!1):id&&hr&512&&Dn()}if(h6=Kr(Pm),Vd){const vv=mh(Pm);M1(vv.pos)}else Vd=Ud;we=Pm.pos,g6(Pm,S,Rt,wy),Xb&&(J0(),Xb=!1),id=Pm}const ux=id?_c(id):0,ST=Lr||!!(ux&2048),yv=Ra&&hr&64&&hr&16;yv&&(id&&!ST?pt(28,id.end,Cn,id):Cn(",")),id&&(ie?ie.end:-1)!==id.end&&hr&60&&!ST&&Af(yv&&(co!=null&&co.end)?co.end:id.end),hr&128&&J0(),Li(h6);const y0=Rf(ie,ze[_a+Gi-1],hr,co);y0?y_(y0):hr&2097408&&Dn()}function Ub(S){K.writeLiteral(S)}function hT(S){K.writeStringLiteral(S)}function C8(S){K.write(S)}function yT(S,ie){K.writeSymbol(S,ie)}function Cn(S){K.writePunctuation(S)}function qu(){K.writeTrailingSemicolon(";")}function ps(S){K.writeKeyword(S)}function _v(S){K.writeOperator(S)}function K3(S){K.writeParameter(S)}function Qg(S){K.writeComment(S)}function Dn(){K.writeSpace(" ")}function i6(S){K.writeProperty(S)}function a6(S){K.nonEscapingWrite?K.nonEscapingWrite(S):K.write(S)}function y_(S=1){for(let ie=0;ie0)}function P1(){K.increaseIndent()}function J0(){K.decreaseIndent()}function s6(S,ie,ze,hr){return Pe?Ty(S,ze,ie):C2(hr,S,ze,ie,Ty)}function ex(S,ie){m&&m(S),ie(Uo(S.kind)),y&&y(S)}function Ty(S,ie,ze){const hr=Uo(S);return ie(hr),ze<0?ze:ze+hr.length}function o6(S,ie,ze){if(_c(S)&1)Dn();else if(ve){const hr=Yf(S,ie,ze);hr?y_(hr):Dn()}else y_()}function c6(S){const ie=S.split(/\r\n?|\n/g),ze=Mle(ie);for(const hr of ie){const Rt=ze?hr.slice(ze):hr;Rt.length&&(y_(),Re(Rt))}}function Dh(S,ie){S?(P1(),y_(S)):ie&&Dn()}function U0(S,ie){S&&J0(),ie&&J0()}function v2(S,ie,ze){if(ze&2||ve){if(ze&65536)return 1;if(ie===void 0)return!S||N&&m7(S,N)?0:1;if(ie.pos===we||ie.kind===12)return 0;if(N&&S&&!k1(S.pos)&&!Ol(ie)&&(!ie.parent||au(ie.parent)===au(S)))return ve?Nh(hr=>h_e(ie.pos,S.pos,N,hr)):NF(S,ie,N)?0:1;if(l6(ie,ze))return 1}return ze&1?1:0}function nu(S,ie,ze){if(ze&2||ve){if(S===void 0||ie===void 0||ie.kind===12)return 0;if(N&&!Ol(S)&&!Ol(ie))return ve&&S2(S,ie)?Nh(hr=>mH(S,ie,N,hr)):!ve&&V0(S,ie)?CN(S,ie,N)?0:1:ze&65536?1:0;if(l6(S,ze)||l6(ie,ze))return 1}else if(XN(ie))return 1;return ze&1?1:0}function Rf(S,ie,ze,hr){if(ze&2||ve){if(ze&65536)return 1;if(ie===void 0)return!S||N&&m7(S,N)?0:1;if(N&&S&&!k1(S.pos)&&!Ol(ie)&&(!ie.parent||ie.parent===S)){if(ve){const Rt=hr&&!k1(hr.end)?hr.end:ie.end;return Nh(_a=>y_e(Rt,S.end,N,_a))}return d_e(S,ie,N)?0:1}if(l6(ie,ze))return 1}return ze&1&&!(ze&131072)?1:0}function Nh(S){D.assert(!!ve);const ie=S(!0);return ie===0?S(!1):ie}function rd(S,ie){const ze=ve&&v2(ie,S,0);return ze&&Dh(ze,!1),!!ze}function m0(S,ie){const ze=ve&&Rf(ie,S,0,void 0);ze&&y_(ze)}function l6(S,ie){if(Ol(S)){const ze=XN(S);return ze===void 0?(ie&65536)!==0:ze}return(ie&65536)!==0}function Yf(S,ie,ze){return _c(S)&262144?0:(S=b2(S),ie=b2(ie),ze=b2(ze),XN(ze)?1:N&&!Ol(S)&&!Ol(ie)&&!Ol(ze)?ve?Nh(hr=>mH(ie,ze,N,hr)):CN(ie,ze,N)?0:1:0)}function vT(S){return S.statements.length===0&&(!N||CN(S,S,N))}function b2(S){for(;S.kind===216&&Ol(S);)S=S.expression;return S}function x2(S,ie){if(uu(S)||QT(S))return pv(S);if(sc(S)&&S.textSourceNode)return x2(S.textSourceNode,ie);const ze=N,hr=!!ze&&!!S.parent&&!Ol(S);if(Uy(S)){if(!hr||bn(S)!==au(ze))return ri(S)}else if(A1(S)){if(!hr||bn(S)!==au(ze))return w9(S)}else if(D.assertNode(S,t7),!hr)return S.text;return e3(ze,S,ie)}function tx(S,ie,ze){if(S.kind===11&&S.textSourceNode){const Rt=S.textSourceNode;if(Be(Rt)||Ea(Rt)||Um(Rt)||A1(Rt)){const _a=Um(Rt)?Rt.text:x2(Rt);return ze?`"${Z$(_a)}"`:ie||_c(S)&16777216?`"${_S(_a)}"`:`"${gN(_a)}"`}else return tx(Rt,ie,ze)}const hr=(ie?1:0)|(ze?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target===99?8:0);return Xle(S,N,hr)}function g0(S){S&&_c(S)&1048576||(ae.push(ye),ye=0,z.push(ce),ce=void 0,$.push(ee))}function fv(S){S&&_c(S)&1048576||(ye=ae.pop(),ce=z.pop(),ee=$.pop())}function u6(S){(!ee||ee===io($))&&(ee=new Set),ee.add(S)}function ou(S,ie){R.push(le),le=S,te.push(ee),me=ie}function Vb(){le=R.pop(),me=te.pop()}function rx(S){(!me||me===io(te))&&(me=new Set),me.add(S)}function w_(S){if(S)switch(S.kind){case 240:Vt(S.statements,w_);break;case 255:case 253:case 245:case 246:w_(S.statement);break;case 244:w_(S.thenStatement),w_(S.elseStatement);break;case 247:case 249:case 248:w_(S.initializer),w_(S.statement);break;case 254:w_(S.caseBlock);break;case 268:Vt(S.clauses,w_);break;case 295:case 296:Vt(S.statements,w_);break;case 257:w_(S.tryBlock),w_(S.catchClause),w_(S.finallyBlock);break;case 298:w_(S.variableDeclaration),w_(S.block);break;case 242:w_(S.declarationList);break;case 260:Vt(S.declarations,w_);break;case 259:case 168:case 207:case 262:z_(S.name);break;case 261:z_(S.name),_c(S)&1048576&&(Vt(S.parameters,w_),w_(S.body));break;case 205:case 206:Vt(S.elements,w_);break;case 271:w_(S.importClause);break;case 272:z_(S.name),w_(S.namedBindings);break;case 273:z_(S.name);break;case 279:z_(S.name);break;case 274:Vt(S.elements,w_);break;case 275:z_(S.propertyName||S.name);break}}function w8(S){if(S)switch(S.kind){case 302:case 303:case 171:case 173:case 176:case 177:z_(S.name);break}}function z_(S){S&&(uu(S)||QT(S)?pv(S):_o(S)&&w_(S))}function pv(S){const ie=S.emitNode.autoGenerate;if((ie.flags&7)===4)return _6(tB(S),Ea(S),ie.flags,ie.prefix,ie.suffix);{const ze=ie.id;return V[ze]||(V[ze]=qb(S))}}function _6(S,ie,ze,hr,Rt){const _a=Nc(S),Gi=ie?U:B;return Gi[_a]||(Gi[_a]=bT(S,ie,ze!=null?ze:0,jk(hr,pv),jk(Rt)))}function Kg(S,ie){return nx(S,ie)&&!om(S,ie)&&!re.has(S)}function om(S,ie){return ie?!!(me!=null&&me.has(S)):!!(ee!=null&&ee.has(S))}function nx(S,ie){return N?JL(N,S,n):!0}function Wb(S,ie){for(let ze=ie;ze&&c3(ze,ie);ze=ze.nextContainer)if(nh(ze)&&ze.locals){const hr=ze.locals.get(Kl(S));if(hr&&hr.flags&3257279)return!1}return!0}function E8(S){var ie;switch(S){case"":return ye;case"#":return le;default:return(ie=ce==null?void 0:ce.get(S))!=null?ie:0}}function Sy(S,ie){switch(S){case"":ye=ie;break;case"#":le=ie;break;default:ce!=null||(ce=new Map),ce.set(S,ie);break}}function dv(S,ie,ze,hr,Rt){hr.length>0&&hr.charCodeAt(0)===35&&(hr=hr.slice(1));const _a=D7(ze,hr,"",Rt);let Gi=E8(_a);if(S&&!(Gi&S)){const co=D7(ze,hr,S===268435456?"_i":"_n",Rt);if(Kg(co,ze))return Gi|=S,ze?rx(co):ie&&u6(co),Sy(_a,Gi),co}for(;;){const Ra=Gi&268435455;if(Gi++,Ra!==8&&Ra!==13){const co=Ra<26?"_"+String.fromCharCode(97+Ra):"_"+(Ra-26),Ud=D7(ze,hr,co,Rt);if(Kg(Ud,ze))return ze?rx(Ud):ie&&u6(Ud),Sy(_a,Gi),Ud}}}function mv(S,ie=Kg,ze,hr,Rt,_a,Gi){if(S.length>0&&S.charCodeAt(0)===35&&(S=S.slice(1)),_a.length>0&&_a.charCodeAt(0)===35&&(_a=_a.slice(1)),ze){const co=D7(Rt,_a,S,Gi);if(ie(co,Rt))return Rt?rx(co):hr?u6(co):re.add(co),co}S.charCodeAt(S.length-1)!==95&&(S+="_");let Ra=1;for(;;){const co=D7(Rt,_a,S+Ra,Gi);if(ie(co,Rt))return Rt?rx(co):hr?u6(co):re.add(co),co;Ra++}}function xC(S){return mv(S,nx,!0,!1,!1,"","")}function Dm(S){const ie=x2(S.name);return Wb(ie,di(S,nh))?ie:mv(ie,Kg,!1,!1,!1,"","")}function A8(S){const ie=Q5(S),ze=sc(ie)?Yle(ie.text):"module";return mv(ze,Kg,!1,!1,!1,"","")}function gv(){return mv("default",Kg,!1,!1,!1,"","")}function Nm(){return mv("class",Kg,!1,!1,!1,"","")}function Ih(S,ie,ze,hr){return Be(S.name)?_6(S.name,ie):dv(0,!1,ie,ze,hr)}function bT(S,ie,ze,hr,Rt){switch(S.kind){case 80:case 81:return mv(x2(S),Kg,!!(ze&16),!!(ze&8),ie,hr,Rt);case 266:case 265:return D.assert(!hr&&!Rt&&!ie),Dm(S);case 271:case 277:return D.assert(!hr&&!Rt&&!ie),A8(S);case 261:case 262:{D.assert(!hr&&!Rt&&!ie);const _a=S.name;return _a&&!uu(_a)?bT(_a,!1,ze,hr,Rt):gv()}case 276:return D.assert(!hr&&!Rt&&!ie),gv();case 230:return D.assert(!hr&&!Rt&&!ie),Nm();case 173:case 176:case 177:return Ih(S,ie,hr,Rt);case 166:return dv(0,!0,ie,hr,Rt);default:return dv(0,!1,ie,hr,Rt)}}function qb(S){const ie=S.emitNode.autoGenerate,ze=jk(ie.prefix,pv),hr=jk(ie.suffix);switch(ie.flags&7){case 1:return dv(0,!!(ie.flags&8),Ea(S),ze,hr);case 2:return D.assertNode(S,Be),dv(268435456,!!(ie.flags&8),!1,ze,hr);case 3:return mv(ri(S),ie.flags&32?nx:Kg,!!(ie.flags&16),!!(ie.flags&8),Ea(S),ze,hr)}return D.fail(`Unsupported GeneratedIdentifierKind: ${D.formatEnum(ie.flags&7,Gx,!0)}.`)}function Ec(S,ie){const ze=ue(2,S,ie),hr=Mt,Rt=yr,_a=Cr;ei(ie),ze(S,ie),Im(ie,hr,Rt,_a)}function ei(S){const ie=_c(S),ze=mh(S);vd(S,ie,ze.pos,ze.end),ie&4096&&(Lr=!0)}function Im(S,ie,ze,hr){const Rt=_c(S),_a=mh(S);Rt&4096&&(Lr=!1),ix(S,Rt,_a.pos,_a.end,ie,ze,hr);const Gi=Ofe(S);Gi&&ix(S,Rt,Gi.pos,Gi.end,ie,ze,hr)}function vd(S,ie,ze,hr){ia(),xn=!1;const Rt=ze<0||(ie&1024)!==0||S.kind===12,_a=hr<0||(ie&2048)!==0||S.kind===12;(ze>0||hr>0)&&ze!==hr&&(Rt||Hb(ze,S.kind!==358),(!Rt||ze>=0&&ie&1024)&&(Mt=ze),(!_a||hr>=0&&ie&2048)&&(yr=hr,S.kind===260&&(Cr=hr))),Vt(Tk(S),T2),Wa()}function ix(S,ie,ze,hr,Rt,_a,Gi){ia();const Ra=hr<0||(ie&2048)!==0||S.kind===12;Vt(YN(S),TC),(ze>0||hr>0)&&ze!==hr&&(Mt=Rt,yr=_a,Cr=Gi,!Ra&&S.kind!==358&&SC(hr)),Wa()}function T2(S){(S.hasLeadingNewline||S.kind===2)&&K.writeLine(),$b(S),S.hasTrailingNewLine||S.kind===2?K.writeLine():K.writeSpace(" ")}function TC(S){K.isAtStartOfLine()||K.writeSpace(" "),$b(S),S.hasTrailingNewLine&&K.writeLine()}function $b(S){const ie=f6(S),ze=S.kind===3?mD(ie):void 0;lk(ie,ze,K,0,ie.length,k)}function f6(S){return S.kind===3?`/*${S.text}*/`:`//${S.text}`}function O1(S,ie,ze){ia();const{pos:hr,end:Rt}=ie,_a=_c(S),Gi=hr<0||(_a&1024)!==0,Ra=Lr||Rt<0||(_a&2048)!==0;Gi||ax(ie),Wa(),_a&4096&&!Lr?(Lr=!0,ze(S),Lr=!1):ze(S),ia(),Ra||(Hb(ie.end,!0),xn&&!K.isAtStartOfLine()&&K.writeLine()),Wa()}function V0(S,ie){return S=au(S),S.parent&&S.parent===au(ie).parent}function S2(S,ie){if(ie.pos-1&&hr.indexOf(ie)===Rt+1}function Hb(S,ie){xn=!1,ie?S===0&&(N!=null&&N.isDeclarationFile)?d6(S,ky):d6(S,$u):S===0&&d6(S,Ph)}function Ph(S,ie,ze,hr,Rt){k2(S,ie)&&$u(S,ie,ze,hr,Rt)}function ky(S,ie,ze,hr,Rt){k2(S,ie)||$u(S,ie,ze,hr,Rt)}function Gb(S,ie){return e.onlyPrintJsDocStyle?oX(S,ie)||UL(S,ie):!0}function $u(S,ie,ze,hr,Rt){!N||!Gb(N.text,S)||(xn||(Yue(fr(),K,Rt,S),xn=!0),hg(S),lk(N.text,fr(),K,S,ie,k),hg(ie),hr?K.writeLine():ze===3&&K.writeSpace(" "))}function Af(S){Lr||S===-1||Hb(S,!0)}function SC(S){Qf(S,h0)}function h0(S,ie,ze,hr){!N||!Gb(N.text,S)||(K.isAtStartOfLine()||K.writeSpace(" "),hg(S),lk(N.text,fr(),K,S,ie,k),hg(ie),hr&&K.writeLine())}function M1(S,ie,ze){Lr||(ia(),Qf(S,ie?h0:ze?p6:xT),Wa())}function p6(S,ie,ze){N&&(hg(S),lk(N.text,fr(),K,S,ie,k),hg(ie),ze===2&&K.writeLine())}function xT(S,ie,ze,hr){N&&(hg(S),lk(N.text,fr(),K,S,ie,k),hg(ie),hr?K.writeLine():K.writeSpace(" "))}function d6(S,ie){N&&(Mt===-1||S!==Mt)&&(yu(S)?kC(ie):yD(N.text,S,ie,S))}function Qf(S,ie){N&&(yr===-1||S!==yr&&S!==Cr)&&vD(N.text,S,ie)}function yu(S){return an!==void 0&&fi(an).nodePos===S}function kC(S){if(!N)return;const ie=fi(an).detachedCommentEndPos;an.length-1?an.pop():an=void 0,yD(N.text,ie,S,ie)}function ax(S){const ie=N&&Kue(N.text,fr(),K,Cy,S,k,Lr);ie&&(an?an.push(ie):an=[ie])}function Cy(S,ie,ze,hr,Rt,_a){!N||!Gb(N.text,hr)||(hg(hr),lk(S,ie,ze,hr,Rt,_a),hg(Rt))}function k2(S,ie){return!!N&&s$(N.text,S,ie)}function sx(S){return S.parsedSourceMap===void 0&&S.sourceMapText!==void 0&&(S.parsedSourceMap=xZ(S.sourceMapText)||!1),S.parsedSourceMap||void 0}function TT(S,ie){const ze=ue(3,S,ie);ox(ie),ze(S,ie),m6(ie)}function ox(S){const ie=_c(S),ze=L4(S);if(Rq(S)){D.assertIsDefined(S.parent,"UnparsedNodes must have parent pointers");const hr=sx(S.parent);hr&&nt&&nt.appendSourceMap(K.getLine(),K.getColumn(),hr,S.parent.sourceMapPath,S.parent.getLineAndCharacterOfPosition(S.pos),S.parent.getLineAndCharacterOfPosition(S.end))}else{const hr=ze.source||wt;S.kind!==358&&!(ie&32)&&ze.pos>=0&&e1(ze.source||wt,cx(hr,ze.pos)),ie&128&&(Pe=!0)}}function m6(S){const ie=_c(S),ze=L4(S);Rq(S)||(ie&128&&(Pe=!1),S.kind!==358&&!(ie&64)&&ze.end>=0&&e1(ze.source||wt,ze.end))}function cx(S,ie){return S.skipTrivia?S.skipTrivia(ie):tc(S.text,ie)}function hg(S){if(Pe||k1(S)||hv(wt))return;const{line:ie,character:ze}=Ql(wt,S);nt.addMapping(K.getLine(),K.getColumn(),xt,ie,ze,void 0)}function e1(S,ie){if(S!==wt){const ze=wt,hr=xt;lx(S),hg(ie),CC(ze,hr)}else hg(ie)}function C2(S,ie,ze,hr,Rt){if(Pe||S&&cF(S))return Rt(ie,ze,hr);const _a=S&&S.emitNode,Gi=_a&&_a.flags||0,Ra=_a&&_a.tokenSourceMapRanges&&_a.tokenSourceMapRanges[ie],co=Ra&&Ra.source||wt;return hr=cx(co,Ra?Ra.pos:hr),!(Gi&256)&&hr>=0&&e1(co,hr),hr=Rt(ie,ze,hr),Ra&&(hr=Ra.end),!(Gi&512)&&hr>=0&&e1(co,hr),hr}function lx(S){if(!Pe){if(wt=S,S===Zt){xt=Qe;return}hv(S)||(xt=nt.addSource(S.fileName),e.inlineSources&&nt.setSourceContent(xt,S.text),Zt=S,Qe=xt)}}function CC(S,ie){wt=S,xt=ie}function hv(S){return Xl(S.fileName,".json")}}function _Ie(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function fIe(e){return GZ[e&15360][0]}function pIe(e){return GZ[e&15360][1]}function dIe(e,t,n,i){t(e)}function mIe(e,t,n,i){t(e,n.select(i))}function gIe(e,t,n,i){t(e,n)}function hIe(e,t){return e.length===1?dIe:typeof t=="object"?mIe:gIe}var GZ,tj,XZ,O3,ZZ,iP,yIe=or({"src/compiler/emitter.ts"(){"use strict";ho(),ho(),Q1(),GZ=_Ie(),tj={hasGlobalName:xs,getReferencedExportContainer:xs,getReferencedImportDeclaration:xs,getReferencedDeclarationWithCollidingName:xs,isDeclarationWithCollidingName:xs,isValueAliasDeclaration:xs,isReferencedAliasDeclaration:xs,isTopLevelValueImportEqualsWithEntityName:xs,getNodeCheckFlags:xs,isDeclarationVisible:xs,isLateBound:e=>!1,collectLinkedAliases:xs,isImplementationOfOverload:xs,isRequiredInitializedParameter:xs,isOptionalUninitializedParameterProperty:xs,isExpandoFunctionDeclaration:xs,getPropertiesOfContainerFunction:xs,createTypeOfDeclaration:xs,createReturnTypeOfSignatureDeclaration:xs,createTypeOfExpression:xs,createLiteralConstValue:xs,isSymbolAccessible:xs,isEntityNameVisible:xs,getConstantValue:xs,getReferencedValueDeclaration:xs,getReferencedValueDeclarations:xs,getTypeReferenceSerializationKind:xs,isOptionalParameter:xs,moduleExportsSomeValue:xs,isArgumentsLocalBinding:xs,getExternalModuleFileFromDeclaration:xs,getTypeReferenceDirectivesForEntityName:xs,getTypeReferenceDirectivesForSymbol:xs,isLiteralConstDeclaration:xs,getJsxFactoryEntity:xs,getJsxFragmentFactoryEntity:xs,getAllAccessorDeclarations:xs,getSymbolOfExternalModuleSpecifier:xs,isBindingCapturedByNode:xs,getDeclarationStatementsForSourceFile:xs,isImportRequiredByAugmentation:xs},XZ=q_(()=>V4({})),O3=q_(()=>V4({removeComments:!0})),ZZ=q_(()=>V4({removeComments:!0,neverAsciiEscape:!0})),iP=q_(()=>V4({removeComments:!0,omitTrailingSemicolon:!0}))}});function tge(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,s=N_(n);return{useCaseSensitiveFileNames:n,fileExists:k,readFile:(R,le)=>e.readFile(R,le),directoryExists:e.directoryExists&&E,getDirectories:N,readDirectory:B,createDirectory:e.createDirectory&&O,writeFile:e.writeFile&&T,addOrDeleteFileOrDirectory:V,addOrDeleteFile:re,clearCache:ce,realpath:e.realpath&&U};function o(R){return Sl(R,t,s)}function l(R){return i.get(Dp(R))}function f(R){const le=l(ga(R));return le&&(le.sortedAndCanonicalizedFiles||(le.sortedAndCanonicalizedFiles=le.files.map(s).sort(),le.sortedAndCanonicalizedDirectories=le.directories.map(s).sort()),le)}function _(R){return H_(ec(R))}function h(R,le){var ae;if(!e.realpath||Dp(o(e.realpath(R)))===le){const ye={files:er(e.readDirectory(R,void 0,void 0,["*.*"]),_)||[],directories:e.getDirectories(R)||[]};return i.set(Dp(le),ye),ye}if((ae=e.directoryExists)!=null&&ae.call(e,R))return i.set(le,!1),!1}function m(R,le){le=Dp(le);const ae=l(le);if(ae)return ae;try{return h(R,le)}catch(ye){D.assert(!i.has(Dp(le)));return}}function y(R,le){return tr(R,le,Jc,tn)>=0}function T(R,le,ae){const ye=o(R),$=f(ye);return $&&z($,_(R),!0),e.writeFile(R,le,ae)}function k(R){const le=o(R),ae=f(le);return ae&&y(ae.sortedAndCanonicalizedFiles,s(_(R)))||e.fileExists(R)}function E(R){const le=o(R);return i.has(Dp(le))||e.directoryExists(R)}function O(R){const le=o(R),ae=f(le);if(ae){const ye=_(R),$=s(ye),ee=ae.sortedAndCanonicalizedDirectories;qo(ee,$,tn)&&ae.directories.push(ye)}e.createDirectory(R)}function N(R){const le=o(R),ae=m(R,le);return ae?ae.directories.slice():e.getDirectories(R)}function B(R,le,ae,ye,$){const ee=o(R),te=m(R,ee);let me;if(te!==void 0)return IH(R,le,ae,ye,n,t,$,ve,U);return e.readDirectory(R,le,ae,ye,$);function ve(K){const Ze=o(K);if(Ze===ee)return te||we(K,Ze);const Re=m(K,Ze);return Re!==void 0?Re||we(K,Ze):iR}function we(K,Ze){if(me&&Ze===ee)return me;const Re={files:er(e.readDirectory(K,void 0,void 0,["*.*"]),_)||tt,directories:e.getDirectories(K)||tt};return Ze===ee&&(me=Re),Re}}function U(R){return e.realpath?e.realpath(R):R}function V(R,le){if(l(le)!==void 0){ce();return}const ye=f(le);if(!ye)return;if(!e.directoryExists){ce();return}const $=_(R),ee={fileExists:e.fileExists(le),directoryExists:e.directoryExists(le)};return ee.directoryExists||y(ye.sortedAndCanonicalizedDirectories,s($))?ce():z(ye,$,ee.fileExists),ee}function re(R,le,ae){if(ae===1)return;const ye=f(le);ye&&z(ye,_(R),ae===0)}function z(R,le,ae){const ye=R.sortedAndCanonicalizedFiles,$=s(le);if(ae)qo(ye,$,tn)&&R.files.push(le);else{const ee=tr(ye,$,Jc,tn);if(ee>=0){ye.splice(ee,1);const te=R.files.findIndex(me=>s(me)===$);R.files.splice(te,1)}}}function ce(){i.clear()}}function YZ(e,t,n,i,s){var o;const l=Fm(((o=t==null?void 0:t.configFile)==null?void 0:o.extendedSourceFiles)||tt,s);n.forEach((f,_)=>{l.has(_)||(f.projects.delete(e),f.close())}),l.forEach((f,_)=>{const h=n.get(_);h?h.projects.add(e):n.set(_,{projects:new Set([e]),watcher:i(f,_),close:()=>{const m=n.get(_);!m||m.projects.size!==0||(m.watcher.close(),n.delete(_))}})})}function rge(e,t){t.forEach(n=>{n.projects.delete(e)&&n.close()})}function QZ(e,t,n){e.delete(t)&&e.forEach(({extendedResult:i},s)=>{var o;(o=i.extendedSourceFiles)!=null&&o.some(l=>n(l)===t)&&QZ(e,s,n)})}function vIe(e,t,n){const i=new Map(e);fk(t,i,{createNewValue:n,onDeleteValue:_h})}function nge(e,t,n){const i=e.getMissingFilePaths(),s=Fm(i,Jc,Cp);fk(t,s,{createNewValue:n,onDeleteValue:_h})}function rj(e,t,n){fk(e,t,{createNewValue:i,onDeleteValue:bh,onExistingValue:s});function i(o,l){return{watcher:n(o,l),flags:l}}function s(o,l,f){o.flags!==l&&(o.watcher.close(),e.set(f,i(f,l)))}}function nj({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:i,options:s,program:o,extraFileExtensions:l,currentDirectory:f,useCaseSensitiveFileNames:_,writeLog:h,toPath:m}){const y=OY(n);if(!y)return h(`Project: ${i} Detected ignored path: ${t}`),!0;if(n=y,n===e)return!1;if(Gh(n)&&!U_e(t,s,l))return h(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(Lde(t,s.configFile.configFileSpecs,ms(ga(i),f),_,f))return h(`Project: ${i} Detected excluded file: ${t}`),!0;if(!o||Ml(s)||s.outDir)return!1;if(md(n)){if(s.declarationDir)return!1}else if(!Zl(n,A9))return!1;const T=Pd(n),k=ns(o)?void 0:bIe(o)?o.getProgramOrUndefined():o,E=!k&&!ns(o)?o:void 0;if(O(T+".ts")||O(T+".tsx"))return h(`Project: ${i} Detected output file: ${t}`),!0;return!1;function O(N){return k?!!k.getSourceFileByPath(N):E?E.getState().fileInfos.has(N):!!on(o,B=>m(B)===N)}}function bIe(e){return!!e.getState}function ige(e,t){return e?e.isEmittedFile(t):!1}function age(e,t,n,i){Y0(t===2?n:Ho);const s={watchFile:(O,N,B,U)=>e.watchFile(O,N,B,U),watchDirectory:(O,N,B,U)=>e.watchDirectory(O,N,(B&1)!==0,U)},o=t!==0?{watchFile:k("watchFile"),watchDirectory:k("watchDirectory")}:void 0,l=t===2?{watchFile:y,watchDirectory:T}:o||s,f=t===2?m:mP;return{watchFile:_("watchFile"),watchDirectory:_("watchDirectory")};function _(O){return(N,B,U,V,re,z)=>{var ce;return _B(N,O==="watchFile"?V==null?void 0:V.excludeFiles:V==null?void 0:V.excludeDirectories,h(),((ce=e.getCurrentDirectory)==null?void 0:ce.call(e))||"")?f(N,U,V,re,z):l[O].call(void 0,N,B,U,V,re,z)}}function h(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(O,N,B,U,V){return n(`ExcludeWatcher:: Added:: ${E(O,N,B,U,V,i)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${E(O,N,B,U,V,i)}`)}}function y(O,N,B,U,V,re){n(`FileWatcher:: Added:: ${E(O,B,U,V,re,i)}`);const z=o.watchFile(O,N,B,U,V,re);return{close:()=>{n(`FileWatcher:: Close:: ${E(O,B,U,V,re,i)}`),z.close()}}}function T(O,N,B,U,V,re){const z=`DirectoryWatcher:: Added:: ${E(O,B,U,V,re,i)}`;n(z);const ce=Tl(),R=o.watchDirectory(O,N,B,U,V,re),le=Tl()-ce;return n(`Elapsed:: ${le}ms ${z}`),{close:()=>{const ae=`DirectoryWatcher:: Close:: ${E(O,B,U,V,re,i)}`;n(ae);const ye=Tl();R.close();const $=Tl()-ye;n(`Elapsed:: ${$}ms ${ae}`)}}}function k(O){return(N,B,U,V,re,z)=>s[O].call(void 0,N,(...ce)=>{const R=`${O==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ce[0]} ${ce[1]!==void 0?ce[1]:""}:: ${E(N,U,V,re,z,i)}`;n(R);const le=Tl();B.call(void 0,...ce);const ae=Tl()-le;n(`Elapsed:: ${ae}ms ${R}`)},U,V,re,z)}function E(O,N,B,U,V,re){return`WatchInfo: ${O} ${N} ${JSON.stringify(B)} ${re?re(U,V):V===void 0?U:`${U} ${V}`}`}}function aP(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function bh(e){e.watcher.close()}var KZ,eY,xIe=or({"src/compiler/watchUtilities.ts"(){"use strict";ho(),KZ=(e=>(e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",e))(KZ||{}),eY=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(eY||{})}});function sge(e,t,n="tsconfig.json"){return jy(e,i=>{const s=ta(i,n);return t(s)?s:void 0})}function ij(e,t){const n=ga(t),i=t0(e)?e:ta(n,e);return ec(i)}function oge(e,t,n){let i;return Vt(e,o=>{const l=Jv(o,t);if(l.pop(),!i){i=l;return}const f=Math.min(i.length,l.length);for(let _=0;_{let l;try{Kc("beforeIORead"),l=e(i,t().charset),Kc("afterIORead"),I_("I/O Read","beforeIORead","afterIORead")}catch(f){o&&o(f.message),l=""}return l!==void 0?kI(i,l,s,n):void 0}}function rY(e,t,n){return(i,s,o,l)=>{try{Kc("beforeIOWrite"),nH(i,s,o,e,t,n),Kc("afterIOWrite"),I_("I/O Write","beforeIOWrite","afterIOWrite")}catch(f){l&&l(f.message)}}}function nY(e,t,n=Cu){const i=new Map,s=N_(n.useCaseSensitiveFileNames);function o(m){return i.has(m)?!0:(h.directoryExists||n.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return ga(ec(n.getExecutingFilePath()))}const f=Yv(e),_=n.realpath&&(m=>n.realpath(m)),h={getSourceFile:tY(m=>h.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>ta(l(),pL(m)),writeFile:rY((m,y,T)=>n.writeFile(m,y,T),m=>(h.createDirectory||n.createDirectory)(m),m=>o(m)),getCurrentDirectory:q_(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:s,getNewLine:()=>f,fileExists:m=>n.fileExists(m),readFile:m=>n.readFile(m),trace:m=>n.write(m+f),directoryExists:m=>n.directoryExists(m),getEnvironmentVariable:m=>n.getEnvironmentVariable?n.getEnvironmentVariable(m):"",getDirectories:m=>n.getDirectories(m),realpath:_,readDirectory:(m,y,T,k,E)=>n.readDirectory(m,y,T,k,E),createDirectory:m=>n.createDirectory(m),createHash:Zs(n,n.createHash)};return h}function sP(e,t,n){const i=e.readFile,s=e.fileExists,o=e.directoryExists,l=e.createDirectory,f=e.writeFile,_=new Map,h=new Map,m=new Map,y=new Map,T=O=>{const N=t(O),B=_.get(N);return B!==void 0?B!==!1?B:void 0:k(N,O)},k=(O,N)=>{const B=i.call(e,N);return _.set(O,B!==void 0?B:!1),B};e.readFile=O=>{const N=t(O),B=_.get(N);return B!==void 0?B!==!1?B:void 0:!Xl(O,".json")&&!$0e(O)?i.call(e,O):k(N,O)};const E=n?(O,N,B,U)=>{const V=t(O),re=typeof N=="object"?N.impliedNodeFormat:void 0,z=y.get(re),ce=z==null?void 0:z.get(V);if(ce)return ce;const R=n(O,N,B,U);return R&&(md(O)||Xl(O,".json"))&&y.set(re,(z||new Map).set(V,R)),R}:void 0;return e.fileExists=O=>{const N=t(O),B=h.get(N);if(B!==void 0)return B;const U=s.call(e,O);return h.set(N,!!U),U},f&&(e.writeFile=(O,N,...B)=>{const U=t(O);h.delete(U);const V=_.get(U);V!==void 0&&V!==N?(_.delete(U),y.forEach(re=>re.delete(U))):E&&y.forEach(re=>{const z=re.get(U);z&&z.text!==N&&re.delete(U)}),f.call(e,O,N,...B)}),o&&(e.directoryExists=O=>{const N=t(O),B=m.get(N);if(B!==void 0)return B;const U=o.call(e,O);return m.set(N,!!U),U},l&&(e.createDirectory=O=>{const N=t(O);m.delete(N),l.call(e,O)})),{originalReadFile:i,originalFileExists:s,originalDirectoryExists:o,originalCreateDirectory:l,originalWriteFile:f,getSourceFileWithCache:E,readFileWithCache:T}}function TIe(e,t,n){let i;return i=Et(i,e.getConfigFileParsingDiagnostics()),i=Et(i,e.getOptionsDiagnostics(n)),i=Et(i,e.getSyntacticDiagnostics(t,n)),i=Et(i,e.getGlobalDiagnostics(n)),i=Et(i,e.getSemanticDiagnostics(t,n)),ag(e.getCompilerOptions())&&(i=Et(i,e.getDeclarationDiagnostics(t,n))),E5(i||tt)}function SIe(e,t){let n="";for(const i of e)n+=iY(i,t);return n}function iY(e,t){const n=`${V6(e)} TS${e.code}: ${Sb(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:s}=Ql(e.file,e.start),o=e.file.fileName;return`${Tw(o,t.getCurrentDirectory(),f=>t.getCanonicalFileName(f))}(${i+1},${s+1}): `+n}return n}function lge(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return D.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function M3(e,t){return t+e+gY}function uge(e,t,n,i,s,o){const{line:l,character:f}=Ql(e,t),{line:_,character:h}=Ql(e,t+n),m=Ql(e,e.text.length).line,y=_-l>=4;let T=(_+1+"").length;y&&(T=Math.max(hY.length,T));let k="";for(let E=l;E<=_;E++){k+=o.getNewLine(),y&&l+1n.getCanonicalFileName(_)):e.fileName;let f="";return f+=i(l,"\x1B[96m"),f+=":",f+=i(`${s+1}`,"\x1B[93m"),f+=":",f+=i(`${o+1}`,"\x1B[93m"),f}function _ge(e,t){let n="";for(const i of e){if(i.file){const{file:s,start:o}=i;n+=aY(s,o,t),n+=" - "}if(n+=M3(V6(i),lge(i.category)),n+=M3(` TS${i.code}: `,"\x1B[90m"),n+=Sb(i.messageText,t.getNewLine()),i.file&&i.code!==p.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=uge(i.file,i.start,i.length,"",lge(i.category),t)),i.relatedInformation){n+=t.getNewLine();for(const{file:s,start:o,length:l,messageText:f}of i.relatedInformation)s&&(n+=t.getNewLine(),n+=gge+aY(s,o,t),n+=uge(s,o,l,yY,"\x1B[96m",t)),n+=t.getNewLine(),n+=yY+Sb(f,t.getNewLine())}n+=t.getNewLine()}return n}function Sb(e,t,n=0){if(bs(e))return e;if(e===void 0)return"";let i="";if(n){i+=t;for(let s=0;srE(o,e,n,i,s,t,l)}}function aj(e){return bs(e)?e:Cd(e.fileName)}function sj(e,t,n,i,s){return{nameAndMode:_P,resolve:(o,l)=>WX(o,e,n,i,t,s,l)}}function cP(e,t,n,i,s,o,l,f){if(e.length===0)return tt;const _=[],h=new Map,m=f(t,n,i,o,l);for(const y of e){const T=m.nameAndMode.getName(y),k=m.nameAndMode.getMode(y,s),E=tE(T,k);let O=h.get(E);O||h.set(E,O=m.resolve(T,k)),_.push(O)}return _}function fge(e,t){return lP(void 0,e,(n,i)=>n&&t(n,i))}function lP(e,t,n,i){let s;return o(e,t,void 0);function o(l,f,_){if(i){const h=i(l,_);if(h)return h}return Vt(f,(h,m)=>{if(h&&(s!=null&&s.has(h.sourceFile.path)))return;const y=n(h,_,m);return y||!h?y:((s||(s=new Set)).add(h.sourceFile.path),o(h.commandLine.projectReferences,h.references,h))})}}function oj(e,t,n){const i=e.configFilePath?ga(e.configFilePath):t;return ta(i,`__lib_node_modules_lookup_${n}__.ts`)}function pge(e){const t=e.split(".");let n=t[1],i=2;for(;t[i]&&t[i]!=="d";)n+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+n}function dge(e){const t=Cd(e.fileName),n=fB.get(t);return{libName:t,libFileName:n}}function W4(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function Zk(e){return e.pos!==void 0}function pE(e,t){var n,i,s,o,l,f;const _=D.checkDefined(e(t.file)),{kind:h,index:m}=t;let y,T,k,E;switch(h){case 3:const O=_j(_,m);if(k=(s=(i=(n=_.resolvedModules)==null?void 0:n.get(O.text,sY(_,m)))==null?void 0:i.resolvedModule)==null?void 0:s.packageId,O.pos===-1)return{file:_,packageId:k,text:O.text};y=tc(_.text,O.pos),T=O.end;break;case 4:({pos:y,end:T}=_.referencedFiles[m]);break;case 5:({pos:y,end:T,resolutionMode:E}=_.typeReferenceDirectives[m]),k=(f=(l=(o=_.resolvedTypeReferenceDirectiveNames)==null?void 0:o.get(Cd(_.typeReferenceDirectives[m].fileName),E||_.impliedNodeFormat))==null?void 0:l.resolvedTypeReferenceDirective)==null?void 0:f.packageId;break;case 7:({pos:y,end:T}=_.libReferenceDirectives[m]);break;default:return D.assertNever(h)}return{file:_,pos:y,end:T,packageId:k}}function uY(e,t,n,i,s,o,l,f,_,h){if(!e||f!=null&&f()||!Lo(e.getRootFileNames(),t))return!1;let m;if(!Lo(e.getProjectReferences(),h,E)||e.getSourceFiles().some(T)||e.getMissingFilePaths().some(s))return!1;const y=e.getCompilerOptions();if(!yH(y,n)||e.resolvedLibReferences&&Zd(e.resolvedLibReferences,(N,B)=>l(B)))return!1;if(y.configFile&&n.configFile)return y.configFile.text===n.configFile.text;return!0;function T(N){return!k(N)||o(N.path)}function k(N){return N.version===i(N.resolvedPath,N.fileName)}function E(N,B,U){return r$(N,B)&&O(e.getResolvedProjectReferences()[U],N)}function O(N,B){if(N){if(Zn(m,N))return!0;const V=dE(B),re=_(V);return!re||N.commandLine.options.configFile!==re.options.configFile||!Lo(N.commandLine.fileNames,re.fileNames)?!1:((m||(m=[])).push(N),!Vt(N.references,(z,ce)=>!O(z,N.commandLine.projectReferences[ce])))}const U=dE(B);return!_(U)}}function R7(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function uP(e,t,n,i){const s=_Y(e,t,n,i);return typeof s=="object"?s.impliedNodeFormat:s}function _Y(e,t,n,i){switch(Ju(i)){case 3:case 99:return Zl(e,[".d.mts",".mts",".mjs"])?99:Zl(e,[".d.cts",".cts",".cjs"])?1:Zl(e,[".d.ts",".ts",".tsx",".js",".jsx"])?s():void 0;default:return}function s(){const o=EB(t,n,i),l=[];o.failedLookupLocations=l,o.affectingLocations=l;const f=AB(e,o);return{impliedNodeFormat:(f==null?void 0:f.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:l,packageJsonScope:f}}}function kIe(e,t){return e?B5(e.getCompilerOptions(),t,mB):!1}function CIe(e,t,n,i,s,o){return{rootNames:e,options:t,host:n,oldProgram:i,configFileParsingDiagnostics:s,typeScriptVersion:o}}function cj(e,t,n,i,s){var o,l,f,_,h,m,y,T,k,E,O,N,B,U,V,re;const z=ns(e)?CIe(e,t,n,i,s):e,{rootNames:ce,options:R,configFileParsingDiagnostics:le,projectReferences:ae,typeScriptVersion:ye}=z;let{oldProgram:$}=z;const ee=q_(()=>ts("ignoreDeprecations",p.Invalid_value_for_ignoreDeprecations));let te,me,ve,we,K,Ze,Re;const Fe=new Map;let Ue=Pf();const Ae={},Me={};let He=P7(),je,Pe,nt,wt,xt,Zt;const Qe=typeof R.maxNodeModuleJsDepth=="number"?R.maxNodeModuleJsDepth:0;let Mt=0;const yr=new Map,Cr=new Map;(o=Hi)==null||o.push(Hi.Phase.Program,"createProgram",{configFilePath:R.configFilePath,rootDir:R.rootDir},!0),Kc("beforeProgram");const Lt=z.host||cge(R),an=uj(Lt);let xn=R.noLib;const Lr=q_(()=>Lt.getDefaultLibFileName(R)),In=Lt.getDefaultLibLocation?Lt.getDefaultLibLocation():ga(Lr()),vi=sk(),ia=Lt.getCurrentDirectory(),Wa=g9(R),bi=IN(R,Wa),Pt=new Map;let Ar,Yt,Qr;const $r=Lt.hasInvalidatedResolutions||Rm;Lt.resolveModuleNameLiterals?(Qr=Lt.resolveModuleNameLiterals.bind(Lt),Yt=(l=Lt.getModuleResolutionCache)==null?void 0:l.call(Lt)):Lt.resolveModuleNames?(Qr=(Ie,Ke,pt,pr,Vr,Gr)=>Lt.resolveModuleNames(Ie.map(cY),Ke,Gr==null?void 0:Gr.map(cY),pt,pr,Vr).map(Xr=>Xr?Xr.extension!==void 0?{resolvedModule:Xr}:{resolvedModule:Xs(fa({},Xr),{extension:y7(Xr.resolvedFileName)})}:vY),Yt=(f=Lt.getModuleResolutionCache)==null?void 0:f.call(Lt)):(Yt=qk(ia,As,R),Qr=(Ie,Ke,pt,pr,Vr)=>cP(Ie,Ke,pt,pr,Vr,Lt,Yt,lY));let Fn;if(Lt.resolveTypeReferenceDirectiveReferences)Fn=Lt.resolveTypeReferenceDirectiveReferences.bind(Lt);else if(Lt.resolveTypeReferenceDirectives)Fn=(Ie,Ke,pt,pr,Vr)=>Lt.resolveTypeReferenceDirectives(Ie.map(aj),Ke,pt,pr,Vr==null?void 0:Vr.impliedNodeFormat).map(Gr=>({resolvedTypeReferenceDirective:Gr}));else{const Ie=kB(ia,As,void 0,Yt==null?void 0:Yt.getPackageJsonInfoCache());Fn=(Ke,pt,pr,Vr,Gr)=>cP(Ke,pt,pr,Vr,Gr,Lt,Ie,sj)}const ja=Lt.hasInvalidatedLibResolutions||Rm;let Ca;if(Lt.resolveLibrary)Ca=Lt.resolveLibrary.bind(Lt);else{const Ie=qk(ia,As,R,Yt==null?void 0:Yt.getPackageJsonInfoCache());Ca=(Ke,pt,pr)=>CB(Ke,pt,pr,Lt,Ie)}const rn=new Map;let wr=new Map,ln=Pf(),Kr=!1;const Li=new Map;let ot;const Tt=Lt.useCaseSensitiveFileNames()?new Map:void 0;let it,Wt,nr,Y;const Ge=!!((_=Lt.useSourceOfProjectReferenceRedirect)!=null&&_.call(Lt))&&!R.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:dt,fileExists:Q,directoryExists:at}=wIe({compilerHost:Lt,getSymlinkCache:mg,useSourceOfProjectReferenceRedirect:Ge,toPath:rt,getResolvedProjectReferences:Os,getSourceOfProjectReferenceRedirect:Rs,forEachResolvedProjectReference:da}),fr=Lt.readFile.bind(Lt);(h=Hi)==null||h.push(Hi.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!$});const Ne=kIe($,R);(m=Hi)==null||m.pop();let $t;if((y=Hi)==null||y.push(Hi.Phase.Program,"tryReuseStructureFromOldProgram",{}),$t=Ti(),(T=Hi)==null||T.pop(),$t!==2){if(te=[],me=[],ae&&(it||(it=ae.map(Rl)),ce.length&&(it==null||it.forEach((Ie,Ke)=>{if(!Ie)return;const pt=Ml(Ie.commandLine.options);if(Ge){if(pt||Ff(Ie.commandLine.options)===0)for(const pr of Ie.commandLine.fileNames)Ef(pr,{kind:1,index:Ke})}else if(pt)Ef(m3(pt,".d.ts"),{kind:2,index:Ke});else if(Ff(Ie.commandLine.options)===0){const pr=q_(()=>fE(Ie.commandLine,!Lt.useCaseSensitiveFileNames()));for(const Vr of Ie.commandLine.fileNames)!md(Vr)&&!Xl(Vr,".json")&&Ef(_E(Vr,Ie.commandLine,!Lt.useCaseSensitiveFileNames(),pr),{kind:2,index:Ke})}}))),(k=Hi)==null||k.push(Hi.Phase.Program,"processRootFiles",{count:ce.length}),Vt(ce,(Ie,Ke)=>Rn(Ie,!1,!1,{kind:0,index:Ke})),(E=Hi)==null||E.pop(),Pe!=null||(Pe=ce.length?SB(R,Lt):tt),nt=P7(),Pe.length){(O=Hi)==null||O.push(Hi.Phase.Program,"processTypeReferences",{count:Pe.length});const Ie=R.configFilePath?ga(R.configFilePath):ia,Ke=ta(Ie,fP),pt=zr(Pe,Ke);for(let pr=0;pr{Rn(si(Ke),!0,!1,{kind:6,index:pt})})}ot=zt(Ki(Li.entries(),([Ie,Ke])=>Ke===void 0?Ie:void 0)),ve=mr(te,pe).concat(me),te=void 0,me=void 0}if(D.assert(!!ot),$&&Lt.onReleaseOldSourceFile){const Ie=$.getSourceFiles();for(const Ke of Ie){const pt=Gs(Ke.resolvedPath);(Ne||!pt||pt.impliedNodeFormat!==Ke.impliedNodeFormat||Ke.resolvedPath===Ke.path&&pt.resolvedPath!==Ke.path)&&Lt.onReleaseOldSourceFile(Ke,$.getCompilerOptions(),!!Gs(Ke.path))}Lt.getParsedCommandLine||$.forEachResolvedProjectReference(Ke=>{_t(Ke.sourceFile.path)||Lt.onReleaseOldSourceFile(Ke.sourceFile,$.getCompilerOptions(),!1)})}$&&Lt.onReleaseParsedCommandLine&&lP($.getProjectReferences(),$.getResolvedProjectReferences(),(Ie,Ke,pt)=>{const pr=(Ke==null?void 0:Ke.commandLine.projectReferences[pt])||$.getProjectReferences()[pt],Vr=dE(pr);Wt!=null&&Wt.has(rt(Vr))||Lt.onReleaseParsedCommandLine(Vr,Ie,$.getCompilerOptions())}),$=void 0,xt=void 0;const Jt={getRootFileNames:()=>ce,getSourceFile:os,getSourceFileByPath:Gs,getSourceFiles:()=>ve,getMissingFilePaths:()=>ot,getModuleResolutionCache:()=>Yt,getFilesByNameMap:()=>Li,getCompilerOptions:()=>R,getSyntacticDiagnostics:el,getOptionsDiagnostics:G,getGlobalDiagnostics:gt,getSemanticDiagnostics:Wl,getCachedSemanticDiagnostics:du,getSuggestionDiagnostics:Cl,getDeclarationDiagnostics:qa,getBindAndCheckDiagnostics:uf,getProgramDiagnostics:Ms,getTypeChecker:Na,getClassifiableNames:st,getCommonSourceDirectory:ar,emit:al,getCurrentDirectory:()=>ia,getNodeCount:()=>Na().getNodeCount(),getIdentifierCount:()=>Na().getIdentifierCount(),getSymbolCount:()=>Na().getSymbolCount(),getTypeCount:()=>Na().getTypeCount(),getInstantiationCount:()=>Na().getInstantiationCount(),getRelationCacheSizes:()=>Na().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>je,getResolvedTypeReferenceDirectives:()=>He,getAutomaticTypeDirectiveNames:()=>Pe,getAutomaticTypeDirectiveResolutions:()=>nt,isSourceFileFromExternalLibrary:Ks,isSourceFileDefaultLibrary:ti,getSourceFileFromReference:mu,getLibFileFromReference:Fs,sourceFileToPackageName:wr,redirectTargetsMap:ln,usesUriStyleNodeCoreModules:Kr,resolvedLibReferences:wt,getCurrentPackagesMap:()=>Zt,typesPackageExists:li,packageBundlesTypes:Yn,isEmittedFile:dg,getConfigFileParsingDiagnostics:Nt,getProjectReferences:zs,getResolvedProjectReferences:Os,getProjectReferenceRedirect:Qp,getResolvedProjectReferenceToRedirect:un,getResolvedProjectReferenceByPath:_t,forEachResolvedProjectReference:da,isSourceOfProjectReferenceRedirect:ne,emitBuildInfo:_s,fileExists:Q,readFile:fr,directoryExists:at,getSymlinkCache:mg,realpath:(V=Lt.realpath)==null?void 0:V.bind(Lt),useCaseSensitiveFileNames:()=>Lt.useCaseSensitiveFileNames(),getCanonicalFileName:As,getFileIncludeReasons:()=>Ue,structureIsReused:$t,writeFile:ya};return dt(),je==null||je.forEach(Ie=>{switch(Ie.kind){case 1:return vi.add(nm(Ie.file&&Gs(Ie.file),Ie.fileProcessingReason,Ie.diagnostic,Ie.args||tt));case 0:const{file:Ke,pos:pt,end:pr}=pE(Gs,Ie.reason);return vi.add(af(Ke,D.checkDefined(pt),D.checkDefined(pr)-pt,Ie.diagnostic,...Ie.args||tt));case 2:return Ie.diagnostics.forEach(Vr=>vi.add(Vr));default:D.assertNever(Ie)}}),gd(),Kc("afterProgram"),I_("Program","beforeProgram","afterProgram"),(re=Hi)==null||re.pop(),Jt;function Pr(){return Zt||(Zt=new Map,ve.forEach(Ie=>{Ie.resolvedModules&&Ie.resolvedModules.forEach(({resolvedModule:Ke})=>{Ke!=null&&Ke.packageId&&Zt.set(Ke.packageId.name,Ke.extension===".d.ts"||!!Zt.get(Ke.packageId.name))})}),Zt)}function li(Ie){return Pr().has(IB(Ie))}function Yn(Ie){return!!Pr().get(Ie)}function Jn(Ie){var Ke;(Ke=Ie.resolutionDiagnostics)!=null&&Ke.length&&(je!=null?je:je=[]).push({kind:2,diagnostics:Ie.resolutionDiagnostics})}function w(Ie,Ke,pt,pr){if(Lt.resolveModuleNameLiterals||!Lt.resolveModuleNames)return Jn(pt);if(!Yt||hf(Ke))return;const Vr=ms(Ie.originalFileName,ia),Gr=ga(Vr),Xr=ue(Ie),Tn=Yt.getFromNonRelativeNameCache(Ke,pr,Gr,Xr);Tn&&Jn(Tn)}function ge(Ie,Ke,pt){var pr,Vr;if(!Ie.length)return tt;const Gr=ms(Ke.originalFileName,ia),Xr=ue(Ke);(pr=Hi)==null||pr.push(Hi.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Gr}),Kc("beforeResolveModule");const Tn=Qr(Ie,Gr,Xr,R,Ke,pt);return Kc("afterResolveModule"),I_("ResolveModule","beforeResolveModule","afterResolveModule"),(Vr=Hi)==null||Vr.pop(),Tn}function he(Ie,Ke,pt){var pr,Vr;if(!Ie.length)return[];const Gr=bs(Ke)?void 0:Ke,Xr=bs(Ke)?Ke:ms(Ke.originalFileName,ia),Tn=Gr&&ue(Gr);(pr=Hi)==null||pr.push(Hi.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Xr}),Kc("beforeResolveTypeReference");const ra=Fn(Ie,Xr,Tn,R,Gr,pt);return Kc("afterResolveTypeReference"),I_("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Vr=Hi)==null||Vr.pop(),ra}function ue(Ie){const Ke=un(Ie.originalFileName);if(Ke||!md(Ie.originalFileName))return Ke;const pt=_e(Ie.path);if(pt)return pt;if(!Lt.realpath||!R.preserveSymlinks||!Qo(Ie.originalFileName,i2))return;const pr=rt(Lt.realpath(Ie.originalFileName));return pr===Ie.path?void 0:_e(pr)}function _e(Ie){const Ke=Rs(Ie);if(bs(Ke))return un(Ke);if(Ke)return da(pt=>{const pr=Ml(pt.commandLine.options);if(pr)return rt(pr)===Ie?pt:void 0})}function pe(Ie,Ke){return Uc(q(Ie),q(Ke))}function q(Ie){if(tb(In,Ie.fileName,!1)){const Ke=H_(Ie.fileName);if(Ke==="lib.d.ts"||Ke==="lib.es6.d.ts")return 0;const pt=Uf(cu(Ke,"lib."),".d.ts"),pr=MI.indexOf(pt);if(pr!==-1)return pr+1}return MI.length+2}function rt(Ie){return Sl(Ie,ia,As)}function ar(){if(K===void 0){const Ie=Mn(ve,Ke=>fS(Ke,Jt));K=rP(R,()=>Mr(Ie,Ke=>Ke.isDeclarationFile?void 0:Ke.fileName),ia,As,Ke=>wl(Ie,Ke))}return K}function st(){var Ie;if(!Re){Na(),Re=new Set;for(const Ke of ve)(Ie=Ke.classifiableNames)==null||Ie.forEach(pt=>Re.add(pt))}return Re}function Ft(Ie,Ke){var pt;if($t===0&&!Ke.ambientModuleNames.length)return ge(Ie,Ke,void 0);const pr=$&&$.getSourceFile(Ke.fileName);if(pr!==Ke&&Ke.resolvedModules){const pi=[];for(const Hn of Ie){const qs=Ke.resolvedModules.get(Hn.text,_g(Ke,Hn));pi.push(qs)}return pi}let Vr,Gr,Xr;const Tn=vY;for(let pi=0;pi{const pr=(Ke?Ke.commandLine.projectReferences:ae)[pt],Vr=Rl(pr);return Ie?!Vr||Vr.sourceFile!==Ie.sourceFile||!Lo(Ie.commandLine.fileNames,Vr.commandLine.fileNames):Vr!==void 0},(Ie,Ke)=>{const pt=Ke?_t(Ke.sourceFile.path).commandLine.projectReferences:ae;return!Lo(Ie,pt,r$)})}function Ti(){var Ie;if(!$)return 0;const Ke=$.getCompilerOptions();if(t$(Ke,R))return 0;const pt=$.getRootFileNames();if(!Lo(pt,ce)||!En())return 0;ae&&(it=ae.map(Rl));const pr=[],Vr=[];if($t=2,$.getMissingFilePaths().some(Bn=>Lt.fileExists(Bn)))return 0;const Gr=$.getSourceFiles();let Xr;(Bn=>{Bn[Bn.Exists=0]="Exists",Bn[Bn.Modified=1]="Modified"})(Xr||(Xr={}));const Tn=new Map;for(const Bn of Gr){const pi=Yp(Bn.fileName,Yt,Lt,R);let Hn=Lt.getSourceFileByPath?Lt.getSourceFileByPath(Bn.fileName,Bn.resolvedPath,pi,void 0,Ne||pi.impliedNodeFormat!==Bn.impliedNodeFormat):Lt.getSourceFile(Bn.fileName,pi,void 0,Ne||pi.impliedNodeFormat!==Bn.impliedNodeFormat);if(!Hn)return 0;Hn.packageJsonLocations=(Ie=pi.packageJsonLocations)!=null&&Ie.length?pi.packageJsonLocations:void 0,Hn.packageJsonScope=pi.packageJsonScope,D.assert(!Hn.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let qs;if(Bn.redirectInfo){if(Hn!==Bn.redirectInfo.unredirected)return 0;qs=!1,Hn=Bn}else if($.redirectTargetsMap.has(Bn.path)){if(Hn!==Bn)return 0;qs=!1}else qs=Hn!==Bn;Hn.path=Bn.path,Hn.originalFileName=Bn.originalFileName,Hn.resolvedPath=Bn.resolvedPath,Hn.fileName=Bn.fileName;const Iu=$.sourceFileToPackageName.get(Bn.path);if(Iu!==void 0){const K_=Tn.get(Iu),Bd=qs?1:0;if(K_!==void 0&&Bd===1||K_===1)return 0;Tn.set(Iu,Bd)}qs?(Bn.impliedNodeFormat!==Hn.impliedNodeFormat?$t=1:Lo(Bn.libReferenceDirectives,Hn.libReferenceDirectives,qn)?Bn.hasNoDefaultLib!==Hn.hasNoDefaultLib?$t=1:Lo(Bn.referencedFiles,Hn.referencedFiles,qn)?(La(Hn),Lo(Bn.imports,Hn.imports,Di)&&Lo(Bn.moduleAugmentations,Hn.moduleAugmentations,Di)?(Bn.flags&6291456)!==(Hn.flags&6291456)?$t=1:Lo(Bn.typeReferenceDirectives,Hn.typeReferenceDirectives,qn)||($t=1):$t=1):$t=1:$t=1,Vr.push({oldFile:Bn,newFile:Hn})):$r(Bn.path)&&($t=1,Vr.push({oldFile:Bn,newFile:Hn})),pr.push(Hn)}if($t!==2)return $t;const ra=Vr.map(Bn=>Bn.oldFile);for(const Bn of Gr)if(!Zn(ra,Bn))for(const pi of Bn.ambientModuleNames)Fe.set(pi,Bn.fileName);for(const{oldFile:Bn,newFile:pi}of Vr){const Hn=mge(pi),qs=Ft(Hn,pi);i$(Hn,pi,qs,Bn.resolvedModules,Jle,mE)?($t=1,pi.resolvedModules=XX(pi,Hn,qs,mE)):pi.resolvedModules=Bn.resolvedModules;const K_=pi.typeReferenceDirectives,Bd=zr(K_,pi);i$(K_,pi,Bd,Bn.resolvedTypeReferenceDirectiveNames,Ule,_P)?($t=1,pi.resolvedTypeReferenceDirectiveNames=XX(pi,K_,Bd,_P)):pi.resolvedTypeReferenceDirectiveNames=Bn.resolvedTypeReferenceDirectiveNames}if($t!==2)return $t;if(Rle(Ke,R)||$.resolvedLibReferences&&Zd($.resolvedLibReferences,(Bn,pi)=>Bi(pi).actual!==Bn.actual))return 1;if(Lt.hasChangedAutomaticTypeDirectiveNames){if(Lt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Pe=SB(R,Lt),!Lo($.getAutomaticTypeDirectiveNames(),Pe))return 1;ot=$.getMissingFilePaths(),D.assert(pr.length===$.getSourceFiles().length);for(const Bn of pr)Li.set(Bn.path,Bn);return $.getFilesByNameMap().forEach((Bn,pi)=>{if(!Bn){Li.set(pi,Bn);return}if(Bn.path===pi){$.isSourceFileFromExternalLibrary(Bn)&&Cr.set(Bn.path,!0);return}Li.set(pi,Li.get(Bn.path))}),ve=pr,Ue=$.getFileIncludeReasons(),je=$.getFileProcessingDiagnostics(),He=$.getResolvedTypeReferenceDirectives(),Pe=$.getAutomaticTypeDirectiveNames(),nt=$.getAutomaticTypeDirectiveResolutions(),wr=$.sourceFileToPackageName,ln=$.redirectTargetsMap,Kr=$.usesUriStyleNodeCoreModules,wt=$.resolvedLibReferences,Zt=$.getCurrentPackagesMap(),2}function Ui(Ie){return{getPrependNodes:Wo,getCanonicalFileName:As,getCommonSourceDirectory:Jt.getCommonSourceDirectory,getCompilerOptions:Jt.getCompilerOptions,getCurrentDirectory:()=>ia,getSourceFile:Jt.getSourceFile,getSourceFileByPath:Jt.getSourceFileByPath,getSourceFiles:Jt.getSourceFiles,getLibFileFromReference:Jt.getLibFileFromReference,isSourceFileFromExternalLibrary:Ks,getResolvedProjectReferenceToRedirect:un,getProjectReferenceRedirect:Qp,isSourceOfProjectReferenceRedirect:ne,getSymlinkCache:mg,writeFile:Ie||ya,isEmitBlocked:pc,readFile:Ke=>Lt.readFile(Ke),fileExists:Ke=>{const pt=rt(Ke);return Gs(pt)?!0:Zn(ot,pt)?!1:Lt.fileExists(Ke)},useCaseSensitiveFileNames:()=>Lt.useCaseSensitiveFileNames(),getBuildInfo:Ke=>{var pt;return(pt=Jt.getBuildInfo)==null?void 0:pt.call(Jt,Ke)},getSourceFileFromReference:(Ke,pt)=>Jt.getSourceFileFromReference(Ke,pt),redirectTargetsMap:ln,getFileIncludeReasons:Jt.getFileIncludeReasons,createHash:Zs(Lt,Lt.createHash)}}function ya(Ie,Ke,pt,pr,Vr,Gr){Lt.writeFile(Ie,Ke,pt,pr,Vr,Gr)}function _s(Ie){var Ke,pt;D.assert(!Ml(R)),(Ke=Hi)==null||Ke.push(Hi.Phase.Emit,"emitBuildInfo",{},!0),Kc("beforeEmit");const pr=KB(tj,Ui(Ie),void 0,WZ,!1,!0);return Kc("afterEmit"),I_("Emit","beforeEmit","afterEmit"),(pt=Hi)==null||pt.pop(),pr}function Os(){return it}function zs(){return ae}function Wo(){return pY(ae,(Ie,Ke)=>{var pt;return(pt=it[Ke])==null?void 0:pt.commandLine},Ie=>{const Ke=rt(Ie),pt=Gs(Ke);return pt?pt.text:Li.has(Ke)?void 0:Lt.readFile(Ke)},Lt)}function Ks(Ie){return!!Cr.get(Ie.path)}function ti(Ie){if(!Ie.isDeclarationFile)return!1;if(Ie.hasNoDefaultLib)return!0;if(!R.noLib)return!1;const Ke=Lt.useCaseSensitiveFileNames()?q1:C0;return R.lib?bt(R.lib,pt=>Ke(Ie.fileName,wt.get(pt).actual)):Ke(Ie.fileName,Lr())}function Na(){return Ze||(Ze=Gme(Jt))}function al(Ie,Ke,pt,pr,Vr,Gr){var Xr,Tn;(Xr=Hi)==null||Xr.push(Hi.Phase.Emit,"emit",{path:Ie==null?void 0:Ie.path},!0);const ra=ru(()=>Yr(Jt,Ie,Ke,pt,pr,Vr,Gr));return(Tn=Hi)==null||Tn.pop(),ra}function pc(Ie){return Pt.has(rt(Ie))}function Yr(Ie,Ke,pt,pr,Vr,Gr,Xr){if(!Xr){const Va=fY(Ie,Ke,pt,pr);if(Va)return Va}const Tn=Na().getEmitResolver(Ml(R)?void 0:Ke,pr);Kc("beforeEmit");const ra=KB(Tn,Ui(pt),Ke,VZ(R,Gr,Vr),Vr,!1,Xr);return Kc("afterEmit"),I_("Emit","beforeEmit","afterEmit"),ra}function os(Ie){return Gs(rt(Ie))}function Gs(Ie){return Li.get(Ie)||void 0}function Ua(Ie,Ke,pt){return E5(Ie?Ke(Ie,pt):lo(Jt.getSourceFiles(),pr=>(pt&&pt.throwIfCancellationRequested(),Ke(pr,pt))))}function el(Ie,Ke){return Ua(Ie,h_,Ke)}function Wl(Ie,Ke){return Ua(Ie,dp,Ke)}function du(Ie){var Ke;return Ie?(Ke=Ae.perFile)==null?void 0:Ke.get(Ie.path):Ae.allDiagnostics}function uf(Ie,Ke){return k_(Ie,Ke)}function Ms(Ie){var Ke;if(y9(Ie,R,Jt))return tt;const pt=vi.getDiagnostics(Ie.fileName);return(Ke=Ie.commentDirectives)!=null&&Ke.length?Nu(Ie,Ie.commentDirectives,pt).diagnostics:pt}function qa(Ie,Ke){const pt=Jt.getCompilerOptions();return!Ie||Ml(pt)?r_(Ie,Ke):Ua(Ie,fe,Ke)}function h_(Ie){return Ip(Ie)?(Ie.additionalSyntacticDiagnostics||(Ie.additionalSyntacticDiagnostics=gr(Ie)),Nn(Ie.additionalSyntacticDiagnostics,Ie.parseDiagnostics)):Ie.parseDiagnostics}function ru(Ie){try{return Ie()}catch(Ke){throw Ke instanceof It&&(Ze=void 0),Ke}}function dp(Ie,Ke){return Nn(lj(k_(Ie,Ke),R),Ms(Ie))}function k_(Ie,Ke){return _f(Ie,Ke,Ae,wf)}function wf(Ie,Ke){return ru(()=>{if(y9(Ie,R,Jt))return tt;const pt=Na();D.assert(!!Ie.bindDiagnostics);const Vr=(Ie.scriptKind===1||Ie.scriptKind===2)&&LN(Ie,R),Gr=zL(Ie,R.checkJs),Tn=!(!!Ie.checkJsDirective&&Ie.checkJsDirective.enabled===!1)&&(Ie.scriptKind===3||Ie.scriptKind===4||Ie.scriptKind===5||Gr||Vr||Ie.scriptKind===7);let ra=Tn?Ie.bindDiagnostics:tt,Va=Tn?pt.getDiagnostics(Ie,Ke):tt;return Gr&&(ra=Mn(ra,Bn=>dj.has(Bn.code)),Va=Mn(Va,Bn=>dj.has(Bn.code))),fl(Ie,Tn&&!Gr,ra,Va,Vr?Ie.jsDocDiagnostics:void 0)})}function fl(Ie,Ke,...pt){var pr;const Vr=x_(pt);if(!Ke||!((pr=Ie.commentDirectives)!=null&&pr.length))return Vr;const{diagnostics:Gr,directives:Xr}=Nu(Ie,Ie.commentDirectives,Vr);for(const Tn of Xr.getUnusedExpectations())Gr.push(x$(Ie,Tn.range,p.Unused_ts_expect_error_directive));return Gr}function Nu(Ie,Ke,pt){const pr=Gle(Ie,Ke);return{diagnostics:pt.filter(Gr=>Hl(Gr,pr)===-1),directives:pr}}function Cl(Ie,Ke){return ru(()=>Na().getSuggestionDiagnostics(Ie,Ke))}function Hl(Ie,Ke){const{file:pt,start:pr}=Ie;if(!pt)return-1;const Vr=zy(pt);let Gr=hD(Vr,pr).line-1;for(;Gr>=0;){if(Ke.markUsed(Gr))return Gr;const Xr=pt.text.slice(Vr[Gr],Vr[Gr+1]).trim();if(Xr!==""&&!/^(\s*)\/\/(.*)$/.test(Xr))return-1;Gr--}return-1}function gr(Ie){return ru(()=>{const Ke=[];return pt(Ie,Ie),Z9(Ie,pt,pr),Ke;function pt(Tn,ra){switch(ra.kind){case 168:case 171:case 173:if(ra.questionToken===Tn)return Ke.push(Xr(Tn,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 172:case 175:case 176:case 177:case 217:case 261:case 218:case 259:if(ra.type===Tn)return Ke.push(Xr(Tn,p.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Tn.kind){case 272:if(Tn.isTypeOnly)return Ke.push(Xr(ra,p._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 277:if(Tn.isTypeOnly)return Ke.push(Xr(Tn,p._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 275:case 280:if(Tn.isTypeOnly)return Ke.push(Xr(Tn,p._0_declarations_can_only_be_used_in_TypeScript_files,Ld(Tn)?"import...type":"export...type")),"skip";break;case 270:return Ke.push(Xr(Tn,p.import_can_only_be_used_in_TypeScript_files)),"skip";case 276:if(Tn.isExportEquals)return Ke.push(Xr(Tn,p.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 297:if(Tn.token===119)return Ke.push(Xr(Tn,p.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 263:const Bn=Uo(120);return D.assertIsDefined(Bn),Ke.push(Xr(Tn,p._0_declarations_can_only_be_used_in_TypeScript_files,Bn)),"skip";case 266:const pi=Tn.flags&16?Uo(145):Uo(144);return D.assertIsDefined(pi),Ke.push(Xr(Tn,p._0_declarations_can_only_be_used_in_TypeScript_files,pi)),"skip";case 264:return Ke.push(Xr(Tn,p.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 265:const Hn=D.checkDefined(Uo(94));return Ke.push(Xr(Tn,p._0_declarations_can_only_be_used_in_TypeScript_files,Hn)),"skip";case 234:return Ke.push(Xr(Tn,p.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 233:return Ke.push(Xr(Tn.type,p.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 237:return Ke.push(Xr(Tn.type,p.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 215:D.fail()}}function pr(Tn,ra){if(aX(ra)){const Va=on(ra.modifiers,lp);Va&&Ke.push(Xr(Va,p.Decorators_are_not_valid_here))}else if(jS(ra)&&ra.modifiers){const Va=zi(ra.modifiers,lp);if(Va>=0){if(Cs(ra)&&!R.experimentalDecorators)Ke.push(Xr(ra.modifiers[Va],p.Decorators_are_not_valid_here));else if(cf(ra)){const Bn=zi(ra.modifiers,FR);if(Bn>=0){const pi=zi(ra.modifiers,Vfe);if(Va>Bn&&pi>=0&&Va=0&&Va=0&&Ke.push(ic(Xr(ra.modifiers[Hn],p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Xr(ra.modifiers[Va],p.Decorator_used_before_export_here)))}}}}}switch(ra.kind){case 262:case 230:case 173:case 175:case 176:case 177:case 217:case 261:case 218:if(Tn===ra.typeParameters)return Ke.push(Gr(Tn,p.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 242:if(Tn===ra.modifiers)return Vr(ra.modifiers,ra.kind===242),"skip";break;case 171:if(Tn===ra.modifiers){for(const Va of Tn)Do(Va)&&Va.kind!==126&&Va.kind!==129&&Ke.push(Xr(Va,p.The_0_modifier_can_only_be_used_in_TypeScript_files,Uo(Va.kind)));return"skip"}break;case 168:if(Tn===ra.modifiers&&bt(Tn,Do))return Ke.push(Gr(Tn,p.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 212:case 213:case 232:case 284:case 285:case 214:if(Tn===ra.typeArguments)return Ke.push(Gr(Tn,p.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Vr(Tn,ra){for(const Va of Tn)switch(Va.kind){case 87:if(ra)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 163:case 103:case 147:Ke.push(Xr(Va,p.The_0_modifier_can_only_be_used_in_TypeScript_files,Uo(Va.kind)));break;case 126:case 95:case 90:case 129:}}function Gr(Tn,ra,...Va){const Bn=Tn.pos;return af(Ie,Bn,Tn.end-Bn,ra,...Va)}function Xr(Tn,ra,...Va){return P0(Ie,Tn,ra,...Va)}})}function r_(Ie,Ke){return _f(Ie,Ke,Me,Zf)}function Zf(Ie,Ke){return ru(()=>{const pt=Na().getEmitResolver(Ie,Ke);return J0e(Ui(Ho),pt,Ie)||tt})}function _f(Ie,Ke,pt,pr){var Vr;const Gr=Ie?(Vr=pt.perFile)==null?void 0:Vr.get(Ie.path):pt.allDiagnostics;if(Gr)return Gr;const Xr=pr(Ie,Ke);return Ie?(pt.perFile||(pt.perFile=new Map)).set(Ie.path,Xr):pt.allDiagnostics=Xr,Xr}function fe(Ie,Ke){return Ie.isDeclarationFile?[]:r_(Ie,Ke)}function G(){return E5(Nn(vi.getGlobalDiagnostics(),Le()))}function Le(){if(!R.configFile)return tt;let Ie=vi.getDiagnostics(R.configFile.fileName);return da(Ke=>{Ie=Nn(Ie,vi.getDiagnostics(Ke.sourceFile.fileName))}),Ie}function gt(){return ce.length?E5(Na().getGlobalDiagnostics().slice()):tt}function Nt(){return le||tt}function Rn(Ie,Ke,pt,pr){Gc(ec(Ie),Ke,pt,void 0,pr)}function qn(Ie,Ke){return Ie.fileName===Ke.fileName}function Di(Ie,Ke){return Ie.kind===80?Ke.kind===80&&Ie.escapedText===Ke.escapedText:Ke.kind===11&&Ie.text===Ke.text}function xi(Ie,Ke){const pt=M.createStringLiteral(Ie),pr=M.createImportDeclaration(void 0,void 0,pt,void 0);return bS(pr,2),fc(pt,pr),fc(pr,Ke),pt.flags&=-9,pr.flags&=-9,pt}function La(Ie){if(Ie.imports)return;const Ke=Ip(Ie),pt=c_(Ie);let pr,Vr,Gr;if((Fg(R)||pt)&&!Ie.isDeclarationFile){R.importHelpers&&(pr=[xi(hb,Ie)]);const Bn=UF(JF(R,Ie),R);Bn&&(pr||(pr=[])).push(xi(Bn,Ie))}for(const Bn of Ie.statements)Tn(Bn,!1);const Xr=Ke&&BF(R);(Ie.flags&2097152||Xr)&&ra(Ie),Ie.imports=pr||tt,Ie.moduleAugmentations=Vr||tt,Ie.ambientModuleNames=Gr||tt;return;function Tn(Bn,pi){if(FD(Bn)){const Hn=Q5(Bn);Hn&&sc(Hn)&&Hn.text&&(!pi||!hf(Hn.text))&&(gb(Bn,!1),pr=Ht(pr,Hn),!Kr&&Mt===0&&!Ie.isDeclarationFile&&(Kr=Ga(Hn.text,"node:")))}else if(Vu(Bn)&&Np(Bn)&&(pi||Pi(Bn,2)||Ie.isDeclarationFile)){Bn.name.parent=Bn;const Hn=ng(Bn.name);if(pt||pi&&!hf(Hn))(Vr||(Vr=[])).push(Bn.name);else if(!pi){Ie.isDeclarationFile&&(Gr||(Gr=[])).push(Hn);const qs=Bn.body;if(qs)for(const Iu of qs.statements)Tn(Iu,!0)}}}function ra(Bn){const pi=/import|require/g;for(;pi.exec(Bn.text)!==null;){const Hn=Va(Bn,pi.lastIndex);Xr&&Nd(Hn,!0)||xm(Hn)&&Hn.arguments.length>=1&&Wc(Hn.arguments[0])?(gb(Hn,!1),pr=Ht(pr,Hn.arguments[0])):E4(Hn)&&(gb(Hn,!1),pr=Ht(pr,Hn.argument.literal))}}function Va(Bn,pi){let Hn=Bn;const qs=Iu=>{if(Iu.pos<=pi&&(piXl(Vr,Xr))){pt&&(d3(Vr)?pt(p.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ie):pt(p.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ie,"'"+x_(Wa).join("', '")+"'"));return}const Gr=Ke(Ie);if(pt)if(Gr)W4(pr)&&Vr===Lt.getCanonicalFileName(Gs(pr.file).fileName)&&pt(p.A_file_cannot_have_a_reference_to_itself);else{const Xr=Qp(Ie);Xr?pt(p.Output_file_0_has_not_been_built_from_source_file_1,Xr,Ie):pt(p.File_0_not_found,Ie)}return Gr}else{const Vr=R.allowNonTsExtensions&&Ke(Ie);if(Vr)return Vr;if(pt&&R.allowNonTsExtensions){pt(p.File_0_not_found,Ie);return}const Gr=Vt(Wa[0],Xr=>Ke(Ie+Xr));return pt&&!Gr&&pt(p.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ie,"'"+x_(Wa).join("', '")+"'"),Gr}}function Gc(Ie,Ke,pt,pr,Vr){Hc(Ie,Gr=>Lc(Gr,Ke,pt,Vr,pr),(Gr,...Xr)=>mp(void 0,Vr,Gr,Xr),Vr)}function Ef(Ie,Ke){return Gc(Ie,!1,!1,void 0,Ke)}function gu(Ie,Ke,pt){!W4(pt)&&bt(Ue.get(Ke.path),W4)?mp(Ke,pt,p.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ke.fileName,Ie]):mp(Ke,pt,p.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ie,Ke.fileName])}function tl(Ie,Ke,pt,pr,Vr,Gr,Xr){var Tn;const ra=vh.createRedirectedSourceFile({redirectTarget:Ie,unredirected:Ke});return ra.fileName=pt,ra.path=pr,ra.resolvedPath=Vr,ra.originalFileName=Gr,ra.packageJsonLocations=(Tn=Xr.packageJsonLocations)!=null&&Tn.length?Xr.packageJsonLocations:void 0,ra.packageJsonScope=Xr.packageJsonScope,Cr.set(pr,Mt>0),ra}function Lc(Ie,Ke,pt,pr,Vr){var Gr,Xr;(Gr=Hi)==null||Gr.push(Hi.Phase.Program,"findSourceFile",{fileName:Ie,isDefaultLib:Ke||void 0,fileIncludeKind:Bt[pr.kind]});const Tn=su(Ie,Ke,pt,pr,Vr);return(Xr=Hi)==null||Xr.pop(),Tn}function Yp(Ie,Ke,pt,pr){const Vr=_Y(ms(Ie,ia),Ke==null?void 0:Ke.getPackageJsonInfoCache(),pt,pr),Gr=gc(pr),Xr=EN(pr);return typeof Vr=="object"?Xs(fa({},Vr),{languageVersion:Gr,setExternalModuleIndicator:Xr}):{languageVersion:Gr,impliedNodeFormat:Vr,setExternalModuleIndicator:Xr}}function su(Ie,Ke,pt,pr,Vr){var Gr,Xr;const Tn=rt(Ie);if(Ge){let Hn=Rs(Tn);if(!Hn&&Lt.realpath&&R.preserveSymlinks&&md(Ie)&&Qo(Ie,i2)){const qs=rt(Lt.realpath(Ie));qs!==Tn&&(Hn=Rs(qs))}if(Hn){const qs=bs(Hn)?Lc(Hn,Ke,pt,pr,Vr):void 0;return qs&&C_(qs,Tn,void 0),qs}}const ra=Ie;if(Li.has(Tn)){const Hn=Li.get(Tn);if(ff(Hn||void 0,pr),Hn&&R.forceConsistentCasingInFileNames!==!1){const qs=Hn.fileName;rt(qs)!==rt(Ie)&&(Ie=Qp(Ie)||Ie);const K_=dq(qs,ia),Bd=dq(Ie,ia);K_!==Bd&&gu(Ie,Hn,pr)}return Hn&&Cr.get(Hn.path)&&Mt===0?(Cr.set(Hn.path,!1),R.noResolve||(Qt(Hn,Ke),Kt(Hn)),R.noLib||Ia(Hn),yr.set(Hn.path,!1),Ro(Hn)):Hn&&yr.get(Hn.path)&&Mtmp(void 0,pr,p.Cannot_read_file_0_Colon_1,[Ie,Hn]),Ne||((Gr=$==null?void 0:$.getSourceFileByPath(rt(Ie)))==null?void 0:Gr.impliedNodeFormat)!==Bn.impliedNodeFormat);if(Vr){const Hn=ub(Vr),qs=rn.get(Hn);if(qs){const Iu=tl(qs,pi,Ie,Tn,rt(Ie),ra,Bn);return ln.add(qs.path,Ie),C_(Iu,Tn,Va),ff(Iu,pr),wr.set(Tn,BL(Vr)),me.push(Iu),Iu}else pi&&(rn.set(Hn,pi),wr.set(Tn,BL(Vr)))}if(C_(pi,Tn,Va),pi){if(Cr.set(Tn,Mt>0),pi.fileName=Ie,pi.path=Tn,pi.resolvedPath=rt(Ie),pi.originalFileName=ra,pi.packageJsonLocations=(Xr=Bn.packageJsonLocations)!=null&&Xr.length?Bn.packageJsonLocations:void 0,pi.packageJsonScope=Bn.packageJsonScope,ff(pi,pr),Lt.useCaseSensitiveFileNames()){const Hn=Cd(Tn),qs=Tt.get(Hn);qs?gu(Ie,qs,pr):Tt.set(Hn,pi)}xn=xn||pi.hasNoDefaultLib&&!pt,R.noResolve||(Qt(pi,Ke),Kt(pi)),R.noLib||Ia(pi),Ro(pi),Ke?te.push(pi):me.push(pi)}return pi}function ff(Ie,Ke){Ie&&Ue.add(Ie.path,Ke)}function C_(Ie,Ke,pt){pt?(Li.set(pt,Ie),Li.set(Ke,Ie||!1)):Li.set(Ke,Ie)}function Qp(Ie){const Ke=Ce(Ie);return Ke&&Gt(Ke,Ie)}function Ce(Ie){if(!(!it||!it.length||md(Ie)||Xl(Ie,".json")))return un(Ie)}function Gt(Ie,Ke){const pt=Ml(Ie.commandLine.options);return pt?m3(pt,".d.ts"):_E(Ke,Ie.commandLine,!Lt.useCaseSensitiveFileNames())}function un(Ie){nr===void 0&&(nr=new Map,da(pt=>{rt(R.configFilePath)!==pt.sourceFile.path&&pt.commandLine.fileNames.forEach(pr=>nr.set(rt(pr),pt.sourceFile.path))}));const Ke=nr.get(rt(Ie));return Ke&&_t(Ke)}function da(Ie){return fge(it,Ie)}function Rs(Ie){if(md(Ie))return Y===void 0&&(Y=new Map,da(Ke=>{const pt=Ml(Ke.commandLine.options);if(pt){const pr=m3(pt,".d.ts");Y.set(rt(pr),!0)}else{const pr=q_(()=>fE(Ke.commandLine,!Lt.useCaseSensitiveFileNames()));Vt(Ke.commandLine.fileNames,Vr=>{if(!md(Vr)&&!Xl(Vr,".json")){const Gr=_E(Vr,Ke.commandLine,!Lt.useCaseSensitiveFileNames(),pr);Y.set(rt(Gr),Vr)}})}})),Y.get(Ie)}function ne(Ie){return Ge&&!!un(Ie)}function _t(Ie){if(Wt)return Wt.get(Ie)||void 0}function Qt(Ie,Ke){Vt(Ie.referencedFiles,(pt,pr)=>{Gc(ij(pt.fileName,Ie.fileName),Ke,!1,void 0,{kind:4,file:Ie.path,index:pr})})}function Kt(Ie){const Ke=Ie.typeReferenceDirectives;if(!Ke.length){Ie.resolvedTypeReferenceDirectiveNames=void 0;return}const pt=zr(Ke,Ie);for(let pr=0;pr{const{libName:pr,libFileName:Vr}=dge(Ke);if(Vr)Rn(si(Vr),!0,!0,{kind:7,file:Ie.path,index:pt});else{const Gr=Uf(cu(pr,"lib."),".d.ts"),Xr=ds(Gr,MI,Jc),Tn=Xr?p.Cannot_find_lib_definition_for_0_Did_you_mean_1:p.Cannot_find_lib_definition_for_0,ra=Xr?[pr,Xr]:[pr];(je||(je=[])).push({kind:0,reason:{kind:7,file:Ie.path,index:pt},diagnostic:Tn,args:ra})}})}function As(Ie){return Lt.getCanonicalFileName(Ie)}function Ro(Ie){var Ke;if(La(Ie),Ie.imports.length||Ie.moduleAugmentations.length){const pt=mge(Ie),pr=Ft(pt,Ie);D.assert(pr.length===pt.length);const Vr=(Ge?(Ke=ue(Ie))==null?void 0:Ke.commandLine.options:void 0)||R;for(let Gr=0;GrQe,Iu=Hn&&!dY(Vr,Xr,Ie)&&!Vr.noResolve&&Grc_(Xr)&&!Xr.isDeclarationFile);if(R.isolatedModules||R.verbatimModuleSyntax)R.module===0&&Ke<2&&R.isolatedModules&&va(p.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),R.preserveConstEnums===!1&&va(p.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,R.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(pt&&Ke<2&&R.module===0){const Xr=r3(pt,typeof pt.externalModuleIndicator=="boolean"?pt:pt.externalModuleIndicator);vi.add(af(pt,Xr.start,Xr.length,p.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ie&&!R.emitDeclarationOnly){if(R.module&&!(R.module===2||R.module===4))va(p.Only_amd_and_system_modules_are_supported_alongside_0,R.out?"out":"outFile","module");else if(R.module===void 0&&pt){const Xr=r3(pt,typeof pt.externalModuleIndicator=="boolean"?pt:pt.externalModuleIndicator);vi.add(af(pt,Xr.start,Xr.length,p.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,R.out?"out":"outFile"))}}if(g7(R)&&(Ju(R)===1?va(p.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):FF(R)||va(p.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),R.outDir||R.rootDir||R.sourceRoot||R.mapRoot){const Xr=ar();R.outDir&&Xr===""&&ve.some(Tn=>Pg(Tn.fileName)>1)&&va(p.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}R.useDefineForClassFields&&Ke===0&&va(p.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),R.checkJs&&!DN(R)&&vi.add(zu(p.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),R.emitDeclarationOnly&&(ag(R)||va(p.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),R.noEmit&&va(p.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),R.emitDecoratorMetadata&&!R.experimentalDecorators&&va(p.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),R.jsxFactory?(R.reactNamespace&&va(p.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(R.jsx===4||R.jsx===5)&&va(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",Q9.get(""+R.jsx)),JS(R.jsxFactory,Ke)||ts("jsxFactory",p.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFactory)):R.reactNamespace&&!r0(R.reactNamespace,Ke)&&ts("reactNamespace",p.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,R.reactNamespace),R.jsxFragmentFactory&&(R.jsxFactory||va(p.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(R.jsx===4||R.jsx===5)&&va(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",Q9.get(""+R.jsx)),JS(R.jsxFragmentFactory,Ke)||ts("jsxFragmentFactory",p.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFragmentFactory)),R.reactNamespace&&(R.jsx===4||R.jsx===5)&&va(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",Q9.get(""+R.jsx)),R.jsxImportSource&&R.jsx===2&&va(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",Q9.get(""+R.jsx)),R.preserveValueImports&&Ff(R)<5&&va(p.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const pr=Ff(R);R.verbatimModuleSyntax&&((pr===2||pr===3||pr===4)&&va(p.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),R.preserveValueImports&&Rd("preserveValueImports","verbatimModuleSyntax"),R.importsNotUsedAsValues&&Rd("importsNotUsedAsValues","verbatimModuleSyntax")),R.allowImportingTsExtensions&&!(R.noEmit||R.emitDeclarationOnly)&&ts("allowImportingTsExtensions",p.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const Vr=Ju(R);if(R.resolvePackageJsonExports&&!vS(Vr)&&va(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),R.resolvePackageJsonImports&&!vS(Vr)&&va(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),R.customConditions&&!vS(Vr)&&va(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Vr===100&&!LF(pr)&&ts("moduleResolution",p.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),!R.noEmit&&!R.suppressOutputPathCheck){const Xr=Ui(),Tn=new Set;qZ(Xr,ra=>{R.emitDeclarationOnly||Gr(ra.jsFilePath,Tn),Gr(ra.declarationFilePath,Tn)})}function Gr(Xr,Tn){if(Xr){const ra=rt(Xr);if(Li.has(ra)){let Bn;R.configFilePath||(Bn=Ps(void 0,p.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),Bn=Ps(Bn,p.Cannot_write_file_0_because_it_would_overwrite_input_file,Xr),ed(Xr,OF(Bn))}const Va=Lt.useCaseSensitiveFileNames()?ra:Cd(ra);Tn.has(Va)?ed(Xr,zu(p.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Xr)):Tn.add(Va)}}}function p0(){const Ie=R.ignoreDeprecations;if(Ie){if(Ie==="5.0")return new Ed(Ie);ee()}return Ed.zero}function l_(Ie,Ke,pt,pr){const Vr=new Ed(Ie),Gr=new Ed(Ke),Xr=new Ed(ye||kp),Tn=p0(),ra=Gr.compareTo(Xr)!==1,Va=!ra&&Tn.compareTo(Vr)===-1;(ra||Va)&&pr((Bn,pi,Hn)=>{ra?pi===void 0?pt(Bn,pi,Hn,p.Option_0_has_been_removed_Please_remove_it_from_your_configuration,Bn):pt(Bn,pi,Hn,p.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,Bn,pi):pi===void 0?pt(Bn,pi,Hn,p.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,Bn,Ke,Ie):pt(Bn,pi,Hn,p.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,Bn,pi,Ke,Ie)})}function Am(){function Ie(Ke,pt,pr,Vr,...Gr){if(pr){const Xr=Ps(void 0,p.Use_0_instead,pr),Tn=Ps(Xr,Vr,...Gr);ml(!pt,Ke,void 0,Tn)}else ml(!pt,Ke,void 0,Vr,...Gr)}l_("5.0","5.5",Ie,Ke=>{R.target===0&&Ke("target","ES3"),R.noImplicitUseStrict&&Ke("noImplicitUseStrict"),R.keyofStringsOnly&&Ke("keyofStringsOnly"),R.suppressExcessPropertyErrors&&Ke("suppressExcessPropertyErrors"),R.suppressImplicitAnyIndexErrors&&Ke("suppressImplicitAnyIndexErrors"),R.noStrictGenericChecks&&Ke("noStrictGenericChecks"),R.charset&&Ke("charset"),R.out&&Ke("out",void 0,"outFile"),R.importsNotUsedAsValues&&Ke("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),R.preserveValueImports&&Ke("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Kp(Ie,Ke,pt){function pr(Vr,Gr,Xr,Tn,...ra){Us(Ke,pt,Tn,...ra)}l_("5.0","5.5",pr,Vr=>{Ie.prepend&&Vr("prepend")})}function nm(Ie,Ke,pt,pr){var Vr;let Gr,Xr,Tn=W4(Ke)?Ke:void 0;Ie&&((Vr=Ue.get(Ie.path))==null||Vr.forEach(Hn)),Ke&&Hn(Ke),Tn&&(Gr==null?void 0:Gr.length)===1&&(Gr=void 0);const ra=Tn&&pE(Gs,Tn),Va=Gr&&Ps(Gr,p.The_file_is_in_the_program_because_Colon),Bn=Ie&&jY(Ie),pi=Ps(Bn?Va?[Va,...Bn]:Bn:Va,pt,...pr||tt);return ra&&Zk(ra)?$L(ra.file,ra.pos,ra.end-ra.pos,pi,Xr):OF(pi,Xr);function Hn(qs){(Gr||(Gr=[])).push(UY(Jt,qs)),!Tn&&W4(qs)?Tn=qs:Tn!==qs&&(Xr=Ht(Xr,gy(qs))),qs===Ke&&(Ke=void 0)}}function mp(Ie,Ke,pt,pr){(je||(je=[])).push({kind:1,file:Ie&&Ie.path,fileProcessingReason:Ke,diagnostic:pt,args:pr})}function Hg(Ie,Ke,pt){vi.add(nm(Ie,void 0,Ke,pt))}function gy(Ie){if(W4(Ie)){const pr=pE(Gs,Ie);let Vr;switch(Ie.kind){case 3:Vr=p.File_is_included_via_import_here;break;case 4:Vr=p.File_is_included_via_reference_here;break;case 5:Vr=p.File_is_included_via_type_library_reference_here;break;case 7:Vr=p.File_is_included_via_library_reference_here;break;default:D.assertNever(Ie)}return Zk(pr)?af(pr.file,pr.pos,pr.end-pr.pos,Vr):void 0}if(!R.configFile)return;let Ke,pt;switch(Ie.kind){case 0:if(!R.configFile.configFileSpecs)return;const pr=ms(ce[Ie.index],ia),Vr=zY(Jt,pr);if(Vr){Ke=eF(R.configFile,"files",Vr),pt=p.File_is_matched_by_files_list_specified_here;break}const Gr=JY(Jt,pr);if(!Gr||!bs(Gr))return;Ke=eF(R.configFile,"include",Gr),pt=p.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const Xr=D.checkDefined(it==null?void 0:it[Ie.index]),Tn=lP(ae,it,(Hn,qs,Iu)=>Hn===Xr?{sourceFile:(qs==null?void 0:qs.sourceFile)||R.configFile,index:Iu}:void 0);if(!Tn)return;const{sourceFile:ra,index:Va}=Tn,Bn=jD(ra,"references",Hn=>Op(Hn.initializer)?Hn.initializer:void 0);return Bn&&Bn.elements.length>Va?P0(ra,Bn.elements[Va],Ie.kind===2?p.File_is_output_from_referenced_project_specified_here:p.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!R.types)return;Ke=Js("types",Ie.typeReference),pt=p.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Ie.index!==void 0){Ke=Js("lib",R.lib[Ie.index]),pt=p.File_is_library_specified_here;break}const pi=Zd(RI.type,(Hn,qs)=>Hn===gc(R)?qs:void 0);Ke=pi?kn("target",pi):void 0,pt=p.File_is_default_library_for_target_specified_here;break;default:D.assertNever(Ie)}return Ke&&P0(R.configFile,Ke,pt)}function kh(){const Ie=R.suppressOutputPathCheck?void 0:s2(R);lP(ae,it,(Ke,pt,pr)=>{const Vr=(pt?pt.commandLine.projectReferences:ae)[pr],Gr=pt&&pt.sourceFile;if(Kp(Vr,Gr,pr),!Ke){Us(Gr,pr,p.File_0_not_found,Vr.path);return}const Xr=Ke.commandLine.options;if((!Xr.composite||Xr.noEmit)&&(pt?pt.commandLine.fileNames:ce).length&&(Xr.composite||Us(Gr,pr,p.Referenced_project_0_must_have_setting_composite_Colon_true,Vr.path),Xr.noEmit&&Us(Gr,pr,p.Referenced_project_0_may_not_disable_emit,Vr.path)),Vr.prepend){const Tn=Ml(Xr);Tn?Lt.fileExists(Tn)||Us(Gr,pr,p.Output_file_0_from_project_1_does_not_exist,Tn,Vr.path):Us(Gr,pr,p.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Vr.path)}!pt&&Ie&&Ie===s2(Xr)&&(Us(Gr,pr,p.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ie,Vr.path),Pt.set(rt(Ie),!0))})}function Ch(Ie,Ke,pt,...pr){let Vr=!0;ir(Gr=>{Dc(Gr.initializer)&&H5(Gr.initializer,Ie,Xr=>{const Tn=Xr.initializer;Op(Tn)&&Tn.elements.length>Ke&&(vi.add(P0(R.configFile,Tn.elements[Ke],pt,...pr)),Vr=!1)})}),Vr&&vi.add(zu(pt,...pr))}function J(Ie,Ke,pt,...pr){let Vr=!0;ir(Gr=>{Dc(Gr.initializer)&&u_(Gr.initializer,Ie,Ke,void 0,pt,...pr)&&(Vr=!1)}),Vr&&vi.add(zu(pt,...pr))}function Xe(Ie,Ke){return H5(dc(),Ie,Ke)}function ir(Ie){return Xe("paths",Ie)}function kn(Ie,Ke){return Xe(Ie,pt=>sc(pt.initializer)&&pt.initializer.text===Ke?pt.initializer:void 0)}function Js(Ie,Ke){const pt=dc();return pt&&pue(pt,Ie,Ke)}function va(Ie,Ke,pt,pr){ml(!0,Ke,pt,Ie,Ke,pt,pr)}function ts(Ie,Ke,...pt){ml(!1,Ie,void 0,Ke,...pt)}function Us(Ie,Ke,pt,...pr){const Vr=jD(Ie||R.configFile,"references",Gr=>Op(Gr.initializer)?Gr.initializer:void 0);Vr&&Vr.elements.length>Ke?vi.add(P0(Ie||R.configFile,Vr.elements[Ke],pt,...pr)):vi.add(zu(pt,...pr))}function ml(Ie,Ke,pt,pr,...Vr){const Gr=dc();(!Gr||!u_(Gr,Ie,Ke,pt,pr,...Vr))&&("messageText"in pr?vi.add(OF(pr)):vi.add(zu(pr,...Vr)))}function dc(){return Ar===void 0&&(Ar=H5(Vw(R.configFile),"compilerOptions",Ie=>Dc(Ie.initializer)?Ie.initializer:void 0)||!1),Ar||void 0}function u_(Ie,Ke,pt,pr,Vr,...Gr){let Xr=!1;return H5(Ie,pt,Tn=>{"messageText"in Vr?vi.add(Wy(R.configFile,Ke?Tn.name:Tn.initializer,Vr)):vi.add(P0(R.configFile,Ke?Tn.name:Tn.initializer,Vr,...Gr)),Xr=!0},pr),Xr}function Rd(Ie,Ke){const pt=dc();pt?u_(pt,!0,Ie,void 0,p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ie,Ke):va(p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ie,Ke)}function ed(Ie,Ke){Pt.set(rt(Ie),!0),vi.add(Ke)}function dg(Ie){if(R.noEmit)return!1;const Ke=rt(Ie);if(Gs(Ke))return!1;const pt=Ml(R);if(pt)return Gg(Ke,pt)||Gg(Ke,Pd(pt)+".d.ts");if(R.declarationDir&&tb(R.declarationDir,Ke,ia,!Lt.useCaseSensitiveFileNames()))return!0;if(R.outDir)return tb(R.outDir,Ke,ia,!Lt.useCaseSensitiveFileNames());if(Zl(Ke,A9)||md(Ke)){const pr=Pd(Ke);return!!Gs(pr+".ts")||!!Gs(pr+".tsx")}return!1}function Gg(Ie,Ke){return Yx(Ie,Ke,ia,!Lt.useCaseSensitiveFileNames())===0}function mg(){return Lt.getSymlinkCache?Lt.getSymlinkCache():(we||(we=B_e(ia,As)),ve&&nt&&!we.hasProcessedResolutions()&&we.setSymlinksFromResolutions(ve,nt),we)}}function wIe(e){let t;const n=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,s=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Ho,fileExists:_};e.compilerHost.fileExists=_;let l;return i&&(l=e.compilerHost.directoryExists=k=>i.call(e.compilerHost,k)?(y(k),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(E=>{const O=Ml(E.commandLine.options);if(O)t.add(ga(e.toPath(O)));else{const N=E.commandLine.options.declarationDir||E.commandLine.options.outDir;N&&t.add(e.toPath(N))}})),T(k,!1)):!1),s&&(e.compilerHost.getDirectories=k=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,k)?s.call(e.compilerHost,k):[]),o&&(e.compilerHost.realpath=k=>{var E;return((E=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:E.get(e.toPath(k)))||o.call(e.compilerHost,k)}),{onProgramCreateComplete:f,fileExists:_,directoryExists:l};function f(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=s}function _(k){return n.call(e.compilerHost,k)?!0:!e.getResolvedProjectReferences()||!md(k)?!1:T(k,!0)}function h(k){const E=e.getSourceOfProjectReferenceRedirect(e.toPath(k));return E!==void 0?bs(E)?n.call(e.compilerHost,E):!0:void 0}function m(k){const E=e.toPath(k),O=`${E}${Yl}`;return tS(t,N=>E===N||Ga(N,O)||Ga(E,`${N}/`))}function y(k){var E;if(!e.getResolvedProjectReferences()||T9(k)||!o||!Qo(k,i2))return;const O=e.getSymlinkCache(),N=Dp(e.toPath(k));if((E=O.getSymlinkedDirectories())!=null&&E.has(N))return;const B=ec(o.call(e.compilerHost,k));let U;if(B===k||(U=Dp(e.toPath(B)))===N){O.setSymlinkedDirectory(N,!1);return}O.setSymlinkedDirectory(k,{real:Dp(B),realPath:U})}function T(k,E){var O;const N=E?z=>h(z):z=>m(z),B=N(k);if(B!==void 0)return B;const U=e.getSymlinkCache(),V=U.getSymlinkedDirectories();if(!V)return!1;const re=e.toPath(k);return Qo(re,i2)?E&&((O=U.getSymlinkedFiles())!=null&&O.has(re))?!0:Lu(V.entries(),([z,ce])=>{if(!ce||!Ga(re,z))return;const R=N(re.replace(z,ce.realPath));if(E&&R){const le=ms(k,e.compilerHost.getCurrentDirectory());U.setSymlinkedFile(re,`${ce.real}${le.replace(new RegExp(z,"i"),"")}`)}return R})||!1:!1}}function fY(e,t,n,i){const s=e.getCompilerOptions();if(s.noEmit)return e.getSemanticDiagnostics(t,i),t||Ml(s)?mj:e.emitBuildInfo(n,i);if(!s.noEmitOnError)return;let o=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(o.length===0&&ag(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,i)),!o.length)return;let l;if(!t&&!Ml(s)){const f=e.emitBuildInfo(n,i);f.diagnostics&&(o=[...o,...f.diagnostics]),l=f.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function lj(e,t){return Mn(e,n=>!n.skippedOn||!t[n.skippedOn])}function uj(e,t=e){return{fileExists:n=>t.fileExists(n),readDirectory(n,i,s,o,l){return D.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,i,s,o,l)},readFile:n=>t.readFile(n),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||W_,trace:e.trace?n=>e.trace(n):void 0}}function pY(e,t,n,i){if(!e)return tt;let s;for(let o=0;oi);for(const i of t)i.kind===11&&n.push(i);return n}function _j({imports:e,moduleAugmentations:t},n){if(n(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(mY||{}),fj="\x1B[7m",pj=" ",gY="\x1B[0m",hY="...",gge=" ",yY=" ",vY={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},mE={getName:cY,getMode:(e,t)=>_g(t,e)},_P={getName:aj,getMode:(e,t)=>oP(e,t==null?void 0:t.impliedNodeFormat)},fP="__inferred type names__.ts",dj=new Set([p.Cannot_redeclare_block_scoped_variable_0.code,p.A_module_cannot_have_multiple_default_exports.code,p.Another_export_default_is_here.code,p.The_first_export_default_is_here.code,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,p.constructor_is_a_reserved_word.code,p.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,p.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,p.Invalid_use_of_0_in_strict_mode.code,p.A_label_is_not_allowed_here.code,p.with_statements_are_not_allowed_in_strict_mode.code,p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,p.A_class_declaration_without_the_default_modifier_must_have_a_name.code,p.A_class_member_cannot_have_the_0_keyword.code,p.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,p.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,p.A_destructuring_declaration_must_have_an_initializer.code,p.A_get_accessor_cannot_have_parameters.code,p.A_rest_element_cannot_contain_a_binding_pattern.code,p.A_rest_element_cannot_have_a_property_name.code,p.A_rest_element_cannot_have_an_initializer.code,p.A_rest_element_must_be_last_in_a_destructuring_pattern.code,p.A_rest_parameter_cannot_have_an_initializer.code,p.A_rest_parameter_must_be_last_in_a_parameter_list.code,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,p.A_return_statement_cannot_be_used_inside_a_class_static_block.code,p.A_set_accessor_cannot_have_rest_parameter.code,p.A_set_accessor_must_have_exactly_one_parameter.code,p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_export_declaration_cannot_have_modifiers.code,p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_import_declaration_cannot_have_modifiers.code,p.An_object_member_cannot_be_declared_optional.code,p.Argument_of_dynamic_import_cannot_be_spread_element.code,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,p.Cannot_redeclare_identifier_0_in_catch_clause.code,p.Catch_clause_variable_cannot_have_an_initializer.code,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,p.Classes_can_only_extend_a_single_class.code,p.Classes_may_not_have_a_field_named_constructor.code,p.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,p.Duplicate_label_0.code,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,p.For_await_loops_cannot_be_used_inside_a_class_static_block.code,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,p.Jump_target_cannot_cross_function_boundary.code,p.Line_terminator_not_permitted_before_arrow.code,p.Modifiers_cannot_appear_here.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,p.Private_identifiers_are_not_allowed_outside_class_bodies.code,p.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,p.Trailing_comma_not_allowed.code,p.Variable_declaration_list_cannot_be_empty.code,p._0_and_1_operations_cannot_be_mixed_without_parentheses.code,p._0_expected.code,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,p._0_list_cannot_be_empty.code,p._0_modifier_already_seen.code,p._0_modifier_cannot_appear_on_a_constructor_declaration.code,p._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,p._0_modifier_cannot_appear_on_a_parameter.code,p._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,p._0_modifier_cannot_be_used_here.code,p._0_modifier_must_precede_1_modifier.code,p.const_declarations_can_only_be_declared_inside_a_block.code,p.const_declarations_must_be_initialized.code,p.extends_clause_already_seen.code,p.let_declarations_can_only_be_declared_inside_a_block.code,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,p.Class_constructor_may_not_be_a_generator.code,p.Class_constructor_may_not_be_an_accessor.code,p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code]),mj={diagnostics:tt,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),AIe=or({"src/compiler/builderStatePublic.ts"(){"use strict"}});function hge(e,t,n,i,s,o){const l=[],{emitSkipped:f,diagnostics:_}=e.emit(t,h,i,n,s,o);return{outputFiles:l,emitSkipped:f,diagnostics:_};function h(m,y,T){l.push({name:m,writeByteOrderMark:T,text:y})}}var xh,DIe=or({"src/compiler/builderState.ts"(){"use strict";ho(),(e=>{function t(){function $(ee,te,me){const ve={getKeys:we=>te.get(we),getValues:we=>ee.get(we),keys:()=>ee.keys(),deleteKey:we=>{(me||(me=new Set)).add(we);const K=ee.get(we);return K?(K.forEach(Ze=>i(te,Ze,we)),ee.delete(we),!0):!1},set:(we,K)=>{me==null||me.delete(we);const Ze=ee.get(we);return ee.set(we,K),Ze==null||Ze.forEach(Re=>{K.has(Re)||i(te,Re,we)}),K.forEach(Re=>{Ze!=null&&Ze.has(Re)||n(te,Re,we)}),ve}};return ve}return $(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function n($,ee,te){let me=$.get(ee);me||(me=new Set,$.set(ee,me)),me.add(te)}function i($,ee,te){const me=$.get(ee);return me!=null&&me.delete(te)?(me.size||$.delete(ee),!0):!1}function s($){return Mr($.declarations,ee=>{var te;return(te=bn(ee))==null?void 0:te.resolvedPath})}function o($,ee){const te=$.getSymbolAtLocation(ee);return te&&s(te)}function l($,ee,te,me){return Sl($.getProjectReferenceRedirect(ee)||ee,te,me)}function f($,ee,te){let me;if(ee.imports&&ee.imports.length>0){const Ze=$.getTypeChecker();for(const Re of ee.imports){const Fe=o(Ze,Re);Fe==null||Fe.forEach(K)}}const ve=ga(ee.resolvedPath);if(ee.referencedFiles&&ee.referencedFiles.length>0)for(const Ze of ee.referencedFiles){const Re=l($,Ze.fileName,ve,te);K(Re)}if(ee.resolvedTypeReferenceDirectiveNames&&ee.resolvedTypeReferenceDirectiveNames.forEach(({resolvedTypeReferenceDirective:Ze})=>{if(!Ze)return;const Re=Ze.resolvedFileName,Fe=l($,Re,ve,te);K(Fe)}),ee.moduleAugmentations.length){const Ze=$.getTypeChecker();for(const Re of ee.moduleAugmentations){if(!sc(Re))continue;const Fe=Ze.getSymbolAtLocation(Re);Fe&&we(Fe)}}for(const Ze of $.getTypeChecker().getAmbientModules())Ze.declarations&&Ze.declarations.length>1&&we(Ze);return me;function we(Ze){if(Ze.declarations)for(const Re of Ze.declarations){const Fe=bn(Re);Fe&&Fe!==ee&&K(Fe.resolvedPath)}}function K(Ze){(me||(me=new Set)).add(Ze)}}function _($,ee){return ee&&!ee.referencedMap==!$}e.canReuseOldState=_;function h($,ee,te){var me,ve,we;const K=new Map,Ze=$.getCompilerOptions(),Re=Ml(Ze),Fe=Ze.module!==0&&!Re?t():void 0,Ue=Fe?t():void 0,Ae=_(Fe,ee);$.getTypeChecker();for(const Me of $.getSourceFiles()){const He=D.checkDefined(Me.version,"Program intended to be used with Builder should have source files with versions set"),je=Ae?(me=ee.oldSignatures)==null?void 0:me.get(Me.resolvedPath):void 0,Pe=je===void 0?Ae?(ve=ee.fileInfos.get(Me.resolvedPath))==null?void 0:ve.signature:void 0:je||void 0;if(Fe){const nt=f($,Me,$.getCanonicalFileName);if(nt&&Fe.set(Me.resolvedPath,nt),Ae){const wt=(we=ee.oldExportedModulesMap)==null?void 0:we.get(Me.resolvedPath),xt=wt===void 0?ee.exportedModulesMap.getValues(Me.resolvedPath):wt||void 0;xt&&Ue.set(Me.resolvedPath,xt)}}K.set(Me.resolvedPath,{version:He,signature:Pe,affectsGlobalScope:Re?void 0:R(Me)||void 0,impliedFormat:Me.impliedNodeFormat})}return{fileInfos:K,referencedMap:Fe,exportedModulesMap:Ue,useFileVersionAsSignature:!te&&!Ae}}e.create=h;function m($){$.allFilesExcludingDefaultLibraryFile=void 0,$.allFileNames=void 0}e.releaseCache=m;function y($,ee,te,me,ve){var we,K;const Ze=T($,ee,te,me,ve);return(we=$.oldSignatures)==null||we.clear(),(K=$.oldExportedModulesMap)==null||K.clear(),Ze}e.getFilesAffectedBy=y;function T($,ee,te,me,ve){const we=ee.getSourceFileByPath(te);return we?O($,ee,we,me,ve)?($.referencedMap?ye:ae)($,ee,we,me,ve):[we]:tt}e.getFilesAffectedByWithOldState=T;function k($,ee,te){$.fileInfos.get(te).signature=ee,($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(te)}e.updateSignatureOfFile=k;function E($,ee,te,me,ve){$.emit(ee,(we,K,Ze,Re,Fe,Ue)=>{D.assert(md(we),`File extension for signature expected to be dts: Got:: ${we}`),ve(CY($,ee,K,me,Ue),Fe)},te,!0,void 0,!0)}e.computeDtsSignature=E;function O($,ee,te,me,ve,we=$.useFileVersionAsSignature){var K;if((K=$.hasCalledUpdateShapeSignature)!=null&&K.has(te.resolvedPath))return!1;const Ze=$.fileInfos.get(te.resolvedPath),Re=Ze.signature;let Fe;if(!te.isDeclarationFile&&!we&&E(ee,te,me,ve,(Ue,Ae)=>{Fe=Ue,Fe!==Re&&N($,te,Ae[0].exportedModulesFromDeclarationEmit)}),Fe===void 0&&(Fe=te.version,$.exportedModulesMap&&Fe!==Re)){($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(te.resolvedPath,$.exportedModulesMap.getValues(te.resolvedPath)||!1);const Ue=$.referencedMap?$.referencedMap.getValues(te.resolvedPath):void 0;Ue?$.exportedModulesMap.set(te.resolvedPath,Ue):$.exportedModulesMap.deleteKey(te.resolvedPath)}return($.oldSignatures||($.oldSignatures=new Map)).set(te.resolvedPath,Re||!1),($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(te.resolvedPath),Ze.signature=Fe,Fe!==Re}e.updateShapeSignature=O;function N($,ee,te){if(!$.exportedModulesMap)return;($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(ee.resolvedPath,$.exportedModulesMap.getValues(ee.resolvedPath)||!1);const me=B(te);me?$.exportedModulesMap.set(ee.resolvedPath,me):$.exportedModulesMap.deleteKey(ee.resolvedPath)}e.updateExportedModules=N;function B($){let ee;return $==null||$.forEach(te=>s(te).forEach(me=>(ee!=null?ee:ee=new Set).add(me))),ee}e.getExportedModules=B;function U($,ee,te){const me=ee.getCompilerOptions();if(Ml(me)||!$.referencedMap||R(te))return V($,ee);const ve=new Set,we=[te.resolvedPath];for(;we.length;){const K=we.pop();if(!ve.has(K)){ve.add(K);const Ze=$.referencedMap.getValues(K);if(Ze)for(const Re of Ze.keys())we.push(Re)}}return zt(Ki(ve.keys(),K=>{var Re;var Ze;return(Re=(Ze=ee.getSourceFileByPath(K))==null?void 0:Ze.fileName)!=null?Re:K}))}e.getAllDependencies=U;function V($,ee){if(!$.allFileNames){const te=ee.getSourceFiles();$.allFileNames=te===tt?tt:te.map(me=>me.fileName)}return $.allFileNames}function re($,ee){const te=$.referencedMap.getKeys(ee);return te?zt(te.keys()):[]}e.getReferencedByPaths=re;function z($){for(const ee of $.statements)if(!WL(ee))return!1;return!0}function ce($){return bt($.moduleAugmentations,ee=>x1(ee.parent))}function R($){return ce($)||!bm($)&&!O0($)&&!z($)}function le($,ee,te){if($.allFilesExcludingDefaultLibraryFile)return $.allFilesExcludingDefaultLibraryFile;let me;te&&ve(te);for(const we of ee.getSourceFiles())we!==te&&ve(we);return $.allFilesExcludingDefaultLibraryFile=me||tt,$.allFilesExcludingDefaultLibraryFile;function ve(we){ee.isSourceFileDefaultLibrary(we)||(me||(me=[])).push(we)}}e.getAllFilesExcludingDefaultLibraryFile=le;function ae($,ee,te){const me=ee.getCompilerOptions();return me&&Ml(me)?[te]:le($,ee,te)}function ye($,ee,te,me,ve){if(R(te))return le($,ee,te);const we=ee.getCompilerOptions();if(we&&(Fg(we)||Ml(we)))return[te];const K=new Map;K.set(te.resolvedPath,te);const Ze=re($,te.resolvedPath);for(;Ze.length>0;){const Re=Ze.pop();if(!K.has(Re)){const Fe=ee.getSourceFileByPath(Re);K.set(Re,Fe),Fe&&O($,ee,Fe,me,ve)&&Ze.push(...re($,Fe.resolvedPath))}}return zt(Ki(K.values(),Re=>Re))}})(xh||(xh={}))}});function kb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),ag(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function Yk(e,t){const n=t&&(Gd(t)?t:kb(t)),i=Gd(e)?e:kb(e);if(n===i)return 0;if(!n||!i)return i;const s=n^i;let o=0;return s&7&&(o=i&7),s&24&&(o=o|i&24),o}function NIe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!tS(e,n=>!t.has(n))}function IIe(e,t){var n,i;const s=xh.create(e,t,!1);s.program=e;const o=e.getCompilerOptions();s.compilerOptions=o;const l=Ml(o);l?o.composite&&(t!=null&&t.outSignature)&&l===Ml(t==null?void 0:t.compilerOptions)&&(s.outSignature=t.outSignature&&vge(o,t.compilerOptions,t.outSignature)):s.semanticDiagnosticsPerFile=new Map,s.changedFilesSet=new Set,s.latestChangedDtsFile=o.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const f=xh.canReuseOldState(s.referencedMap,t),_=f?t.compilerOptions:void 0,h=f&&t.semanticDiagnosticsPerFile&&!!s.semanticDiagnosticsPerFile&&!L_e(o,_),m=o.composite&&(t==null?void 0:t.emitSignatures)&&!l&&!R_e(o,t.compilerOptions);f?((n=t.changedFilesSet)==null||n.forEach(O=>s.changedFilesSet.add(O)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(s.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),s.seenAffectedFiles=new Set),s.programEmitPending=t.programEmitPending):s.buildInfoEmitPending=!0;const y=s.referencedMap,T=f?t.referencedMap:void 0,k=h&&!o.skipLibCheck==!_.skipLibCheck,E=k&&!o.skipDefaultLibCheck==!_.skipDefaultLibCheck;if(s.fileInfos.forEach((O,N)=>{var V;let B,U;if(!f||!(B=t.fileInfos.get(N))||B.version!==O.version||B.impliedFormat!==O.impliedFormat||!NIe(U=y&&y.getValues(N),T&&T.getValues(N))||U&&tS(U,re=>!s.fileInfos.has(re)&&t.fileInfos.has(re)))yge(s,N);else if(h){const re=e.getSourceFileByPath(N);if(re.isDeclarationFile&&!k||re.hasNoDefaultLib&&!E)return;const z=t.semanticDiagnosticsPerFile.get(N);z&&(s.semanticDiagnosticsPerFile.set(N,t.hasReusableDiagnostic?OIe(z,e):PIe(z,e)),s.semanticDiagnosticsFromOldState||(s.semanticDiagnosticsFromOldState=new Set),s.semanticDiagnosticsFromOldState.add(N))}if(m){const re=t.emitSignatures.get(N);re&&((V=s.emitSignatures)!=null?V:s.emitSignatures=new Map).set(N,vge(o,t.compilerOptions,re))}}),f&&Zd(t.fileInfos,(O,N)=>s.fileInfos.has(N)?!1:l||O.affectsGlobalScope?!0:(s.buildInfoEmitPending=!0,!1)))xh.getAllFilesExcludingDefaultLibraryFile(s,e,void 0).forEach(O=>yge(s,O.resolvedPath));else if(_){const O=F_e(o,_)?kb(o):Yk(o,_);O!==0&&(l?s.programEmitPending=s.programEmitPending?s.programEmitPending|O:O:(e.getSourceFiles().forEach(N=>{s.changedFilesSet.has(N.resolvedPath)||EY(s,N.resolvedPath,O)}),D.assert(!s.seenAffectedFiles||!s.seenAffectedFiles.size),s.seenAffectedFiles=s.seenAffectedFiles||new Set,s.buildInfoEmitPending=!0))}return l&&!s.changedFilesSet.size&&(f&&(s.bundle=t.bundle),bt(e.getProjectReferences(),O=>!!O.prepend)&&(s.programEmitPending=kb(o))),s}function yge(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function vge(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:bs(n)?[n]:n[0]}function PIe(e,t){return e.length?ll(e,n=>{if(bs(n.messageText))return n;const i=bY(n.messageText,n.file,t,s=>{var o;return(o=s.repopulateInfo)==null?void 0:o.call(s)});return i===n.messageText?n:Xs(fa({},n),{messageText:i})}):e}function bY(e,t,n,i){const s=i(e);if(s)return Xs(fa({},n$(t,n,s.moduleReference,s.mode,s.packageName||s.moduleReference)),{next:bge(e.next,t,n,i)});const o=bge(e.next,t,n,i);return o===e.next?e:Xs(fa({},e),{next:o})}function bge(e,t,n,i){return ll(e,s=>bY(s,t,n,i))}function OIe(e,t){if(!e.length)return tt;let n;return e.map(s=>{const o=xge(s,t,i);o.reportsUnnecessary=s.reportsUnnecessary,o.reportsDeprecated=s.reportDeprecated,o.source=s.source,o.skippedOn=s.skippedOn;const{relatedInformation:l}=s;return o.relatedInformation=l?l.length?l.map(f=>xge(f,t,i)):[]:void 0,o});function i(s){return n!=null||(n=ga(ms(s2(t.getCompilerOptions()),t.getCurrentDirectory()))),Sl(s,n,t.getCanonicalFileName)}}function xge(e,t,n){const{file:i}=e,s=i?t.getSourceFileByPath(n(i)):void 0;return Xs(fa({},e),{file:s,messageText:bs(e.messageText)?e.messageText:bY(e.messageText,s,t,o=>o.info)})}function MIe(e){xh.releaseCache(e),e.program=void 0}function LIe(e){const t=Ml(e.compilerOptions);return D.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0}}function FIe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function Tge(e,t){D.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function Sge(e,t,n){for(var i,s;;){const{affectedFiles:o}=e;if(o){const h=e.seenAffectedFiles;let m=e.affectedFilesIndex;for(;m{const o=i&7;o?e.affectedFilesPendingEmit.set(s,o):e.affectedFilesPendingEmit.delete(s)})}}function BIe(e,t){var n;if((n=e.affectedFilesPendingEmit)!=null&&n.size)return Zd(e.affectedFilesPendingEmit,(i,s)=>{var o;const l=e.program.getSourceFileByPath(s);if(!l||!fS(l,e.program)){e.affectedFilesPendingEmit.delete(s);return}const f=(o=e.seenEmittedFiles)==null?void 0:o.get(l.resolvedPath);let _=Yk(i,f);if(t&&(_=_&24),_)return{affectedFile:l,emitKind:_}})}function kge(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=D.checkDefined(e.program),n=t.getCompilerOptions();Vt(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!y9(i,n,t)&&xY(e,i.resolvedPath))}}function jIe(e,t,n,i){if(xY(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){kge(e),xh.updateShapeSignature(e,D.checkDefined(e.program),t,n,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||zIe(e,t,n,i)}function gj(e,t,n,i){if(xY(e,t),!e.changedFilesSet.has(t)){const s=D.checkDefined(e.program),o=s.getSourceFileByPath(t);o&&(xh.updateShapeSignature(e,s,o,n,i,!0),ag(e.compilerOptions)&&EY(e,t,e.compilerOptions.declarationMap?24:8))}}function xY(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function Cge(e,t){const n=D.checkDefined(e.oldSignatures).get(t)||void 0;return D.checkDefined(e.fileInfos.get(t)).signature!==n}function TY(e,t,n,i){var s;return(s=e.fileInfos.get(t))!=null&&s.affectsGlobalScope?(xh.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(o=>gj(e,o.resolvedPath,n,i)),kge(e),!0):!1}function zIe(e,t,n,i){var s;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!Cge(e,t.resolvedPath))return;if(Fg(e.compilerOptions)){const l=new Map;l.set(t.resolvedPath,!0);const f=xh.getReferencedByPaths(e,t.resolvedPath);for(;f.length>0;){const _=f.pop();if(!l.has(_)){if(l.set(_,!0),TY(e,_,n,i))return;if(gj(e,_,n,i),Cge(e,_)){const h=D.checkDefined(e.program).getSourceFileByPath(_);f.push(...xh.getReferencedByPaths(e,h.resolvedPath))}}}}const o=new Set;(s=e.exportedModulesMap.getKeys(t.resolvedPath))==null||s.forEach(l=>{if(TY(e,l,n,i))return!0;const f=e.referencedMap.getKeys(l);return f&&tS(f,_=>wge(e,_,o,n,i))})}function wge(e,t,n,i,s){var o,l;if(bu(n,t)){if(TY(e,t,i,s))return!0;gj(e,t,i,s),(o=e.exportedModulesMap.getKeys(t))==null||o.forEach(f=>wge(e,f,n,i,s)),(l=e.referencedMap.getKeys(t))==null||l.forEach(f=>!n.has(f)&&gj(e,f,i,s))}}function SY(e,t,n){return Nn(JIe(e,t,n),D.checkDefined(e.program).getProgramDiagnostics(t))}function JIe(e,t,n){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const o=e.semanticDiagnosticsPerFile.get(i);if(o)return lj(o,e.compilerOptions)}const s=D.checkDefined(e.program).getBindAndCheckDiagnostics(t,n);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,s),lj(s,e.compilerOptions)}function Ege(e){return!!Ml(e.options||{})}function UIe(e,t){var n,i,s;const o=D.checkDefined(e.program).getCurrentDirectory(),l=ga(ms(s2(e.compilerOptions),o)),f=e.latestChangedDtsFile?z(e.latestChangedDtsFile):void 0,_=[],h=new Map,m=[];if(Ml(e.compilerOptions)){const $=zt(e.fileInfos.entries(),([K,Ze])=>{const Re=R(K);return ae(K,Re),Ze.impliedFormat?{version:Ze.version,impliedFormat:Ze.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Ze.version}),ee={fileNames:_,fileInfos:$,root:m,options:ye(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:f,pendingEmit:e.programEmitPending?e.programEmitPending===kb(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:te,dts:me,commonSourceDirectory:ve,sourceFiles:we}=t;return e.bundle=t={commonSourceDirectory:ve,sourceFiles:we,js:te||(e.compilerOptions.emitDeclarationOnly||(n=e.bundle)==null?void 0:n.js),dts:me||(ag(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},nP(ee,t)}let y,T,k;const E=zt(e.fileInfos.entries(),([$,ee])=>{var te,me;const ve=R($);ae($,ve),D.assert(_[ve-1]===ce($));const we=(te=e.oldSignatures)==null?void 0:te.get($),K=we!==void 0?we||void 0:ee.signature;if(e.compilerOptions.composite){const Ze=e.program.getSourceFileByPath($);if(!O0(Ze)&&fS(Ze,e.program)){const Re=(me=e.emitSignatures)==null?void 0:me.get($);Re!==K&&(k||(k=[])).push(Re===void 0?ve:[ve,!bs(Re)&&Re[0]===K?tt:Re])}}return ee.version===K?ee.affectsGlobalScope||ee.impliedFormat?{version:ee.version,signature:void 0,affectsGlobalScope:ee.affectsGlobalScope,impliedFormat:ee.impliedFormat}:ee.version:K!==void 0?we===void 0?ee:{version:ee.version,signature:K,affectsGlobalScope:ee.affectsGlobalScope,impliedFormat:ee.impliedFormat}:{version:ee.version,signature:!1,affectsGlobalScope:ee.affectsGlobalScope,impliedFormat:ee.impliedFormat}});let O;e.referencedMap&&(O=zt(e.referencedMap.keys()).sort(tn).map($=>[R($),le(e.referencedMap.getValues($))]));let N;e.exportedModulesMap&&(N=Mr(zt(e.exportedModulesMap.keys()).sort(tn),$=>{var ee;const te=(ee=e.oldExportedModulesMap)==null?void 0:ee.get($);if(te===void 0)return[R($),le(e.exportedModulesMap.getValues($))];if(te)return[R($),le(te)]}));let B;if(e.semanticDiagnosticsPerFile)for(const $ of zt(e.semanticDiagnosticsPerFile.keys()).sort(tn)){const ee=e.semanticDiagnosticsPerFile.get($);(B||(B=[])).push(ee.length?[R($),WIe(ee,ce)]:R($))}let U;if((s=e.affectedFilesPendingEmit)!=null&&s.size){const $=kb(e.compilerOptions),ee=new Set;for(const te of zt(e.affectedFilesPendingEmit.keys()).sort(tn))if(bu(ee,te)){const me=e.program.getSourceFileByPath(te);if(!me||!fS(me,e.program))continue;const ve=R(te),we=e.affectedFilesPendingEmit.get(te);(U||(U=[])).push(we===$?ve:we===8?[ve]:[ve,we])}}let V;if(e.changedFilesSet.size)for(const $ of zt(e.changedFilesSet.keys()).sort(tn))(V||(V=[])).push(R($));const re={fileNames:_,fileInfos:E,root:m,options:ye(e.compilerOptions),fileIdsList:y,referencedMap:O,exportedModulesMap:N,semanticDiagnosticsPerFile:B,affectedFilesPendingEmit:U,changeFileSet:V,emitSignatures:k,latestChangedDtsFile:f};return nP(re,t);function z($){return ce(ms($,o))}function ce($){return G6(th(l,$,e.program.getCanonicalFileName))}function R($){let ee=h.get($);return ee===void 0&&(_.push(ce($)),h.set($,ee=_.length)),ee}function le($){const ee=zt($.keys(),R).sort(Uc),te=ee.join();let me=T==null?void 0:T.get(te);return me===void 0&&((y||(y=[])).push(ee),(T||(T=new Map)).set(te,me=y.length)),me}function ae($,ee){const te=e.program.getSourceFile($);if(!e.program.getFileIncludeReasons().get(te.path).some(K=>K.kind===0))return;if(!m.length)return m.push(ee);const me=m[m.length-1],ve=ns(me);if(ve&&me[1]===ee-1)return me[1]=ee;if(ve||m.length===1||me!==ee-1)return m.push(ee);const we=m[m.length-2];return!Gd(we)||we!==me-1?m.push(ee):(m[m.length-2]=[we,ee],m.length=m.length-1)}function ye($){let ee;const{optionsNameMap:te}=Uk();for(const me of eo($).sort(tn)){const ve=te.get(me.toLowerCase());ve!=null&&ve.affectsBuildInfo&&((ee||(ee={}))[me]=VIe(ve,$[me],z))}return ee}}function VIe(e,t,n){if(e){if(D.assert(e.type!=="listOrElement"),e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(n)}else if(e.isFilePath)return n(t)}return t}function WIe(e,t){return D.assert(!!e.length),e.map(n=>{const i=Age(n,t);i.reportsUnnecessary=n.reportsUnnecessary,i.reportDeprecated=n.reportsDeprecated,i.source=n.source,i.skippedOn=n.skippedOn;const{relatedInformation:s}=n;return i.relatedInformation=s?s.length?s.map(o=>Age(o,t)):[]:void 0,i})}function Age(e,t){const{file:n}=e;return Xs(fa({},e),{file:n?t(n.resolvedPath):void 0,messageText:bs(e.messageText)?e.messageText:kY(e.messageText)})}function kY(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:Dge(e.next)};const t=Dge(e.next);return t===e.next?e:Xs(fa({},e),{next:t})}function Dge(e){return e&&(Vt(e,(t,n)=>{const i=kY(t);if(t===i)return;const s=n>0?e.slice(0,n-1):[];s.push(i);for(let o=n+1;o`${_(m)}${Vf[m.category]}${m.code}: ${f(m.messageText)}`).join(` -`)),((h=i.createHash)!=null?h:_i)(n);function f(m){return bs(m)?m:m===void 0?"":m.next?m.messageText+m.next.map(f).join(` -`):m.messageText}function _(m){return m.file.resolvedPath===t.resolvedPath?`(${m.start},${m.length})`:(l===void 0&&(l=ga(t.resolvedPath)),`${G6(th(l,m.file.resolvedPath,e.getCanonicalFileName))}(${m.start},${m.length})`)}}function B7(e,t,n){var i;return((i=t.createHash)!=null?i:_i)(Nge(e,n))}function wY(e,{newProgram:t,host:n,oldProgram:i,configFileParsingDiagnostics:s}){let o=i&&i.getState();if(o&&t===o.program&&s===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,i;const l=IIe(t,o);t.getBuildInfo=O=>UIe(l,O),t=void 0,i=void 0,o=void 0;const f=()=>l,_=DY(f,s);return _.getState=f,_.saveEmitState=()=>LIe(l),_.restoreEmitState=O=>FIe(l,O),_.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,_.getAllDependencies=O=>xh.getAllDependencies(l,D.checkDefined(l.program),O),_.getSemanticDiagnostics=E,_.emit=T,_.releaseProgram=()=>MIe(l),e===0?_.getSemanticDiagnosticsOfNextAffectedFile=k:e===1?(_.getSemanticDiagnosticsOfNextAffectedFile=k,_.emitNextAffectedFile=m,_.emitBuildInfo=h):xs(),_;function h(O,N){if(l.buildInfoEmitPending){const B=D.checkDefined(l.program).emitBuildInfo(O||Zs(n,n.writeFile),N);return l.buildInfoEmitPending=!1,B}return mj}function m(O,N,B,U){var $,ee;var V,re,z;let ce=Sge(l,N,n);const R=kb(l.compilerOptions);let le=B?R&24:R;if(!ce)if(Ml(l.compilerOptions)){if(!l.programEmitPending||(le=l.programEmitPending,B&&(le=le&24),!le))return;ce=l.program}else{const te=BIe(l,B);if(!te){if(!l.buildInfoEmitPending)return;const me=l.program,ve=me.emitBuildInfo(O||Zs(n,n.writeFile),N);return l.buildInfoEmitPending=!1,{result:ve,affected:me}}({affectedFile:ce,emitKind:le}=te)}let ae;le&7&&(ae=0),le&24&&(ae=ae===void 0?1:void 0),ce===l.program&&(l.programEmitPending=l.changedFilesSet.size?Yk(R,le):l.programEmitPending?Yk(l.programEmitPending,le):void 0);const ye=l.program.emit(ce===l.program?void 0:ce,y(O,U),N,ae,U);if(ce!==l.program){const te=ce;l.seenAffectedFiles.add(te.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const me=((V=l.seenEmittedFiles)==null?void 0:V.get(te.resolvedPath))||0;(($=l.seenEmittedFiles)!=null?$:l.seenEmittedFiles=new Map).set(te.resolvedPath,le|me);const ve=((re=l.affectedFilesPendingEmit)==null?void 0:re.get(te.resolvedPath))||R,we=Yk(ve,le|me);we?((ee=l.affectedFilesPendingEmit)!=null?ee:l.affectedFilesPendingEmit=new Map).set(te.resolvedPath,we):(z=l.affectedFilesPendingEmit)==null||z.delete(te.resolvedPath)}else l.changedFilesSet.clear();return{result:ye,affected:ce}}function y(O,N){return ag(l.compilerOptions)?(B,U,V,re,z,ce)=>{var ee,te,me;var R,le,ae,ye;if(md(B))if(Ml(l.compilerOptions)){if(l.compilerOptions.composite){const ve=$(l.outSignature,void 0);if(!ve)return;l.outSignature=ve}}else{D.assert((z==null?void 0:z.length)===1);let ve;if(!N){const we=z[0],K=l.fileInfos.get(we.resolvedPath);if(K.signature===we.version){const Ze=CY(l.program,we,U,n,ce);(R=ce==null?void 0:ce.diagnostics)!=null&&R.length||(ve=Ze),Ze!==we.version&&(n.storeFilesChangingSignatureDuringEmit&&((ee=l.filesChangingSignature)!=null?ee:l.filesChangingSignature=new Set).add(we.resolvedPath),l.exportedModulesMap&&xh.updateExportedModules(l,we,we.exportedModulesFromDeclarationEmit),l.affectedFiles?(((le=l.oldSignatures)==null?void 0:le.get(we.resolvedPath))===void 0&&((te=l.oldSignatures)!=null?te:l.oldSignatures=new Map).set(we.resolvedPath,K.signature||!1),K.signature=Ze):(K.signature=Ze,(ae=l.oldExportedModulesMap)==null||ae.clear()))}}if(l.compilerOptions.composite){const we=z[0].resolvedPath;if(ve=$((ye=l.emitSignatures)==null?void 0:ye.get(we),ve),!ve)return;((me=l.emitSignatures)!=null?me:l.emitSignatures=new Map).set(we,ve)}}O?O(B,U,V,re,z,ce):n.writeFile?n.writeFile(B,U,V,re,z,ce):l.program.writeFile(B,U,V,re,z,ce);function $(ve,we){const K=!ve||bs(ve)?ve:ve[0];if(we!=null||(we=B7(U,n,ce)),we===K){if(ve===K)return;ce?ce.differsOnlyInMap=!0:ce={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=B;return we}}:O||Zs(n,n.writeFile)}function T(O,N,B,U,V){e===1&&Tge(l,O);const re=fY(_,O,N,B);if(re)return re;if(!O)if(e===1){let z=[],ce=!1,R,le=[],ae;for(;ae=m(N,B,U,V);)ce=ce||ae.result.emitSkipped,R=Et(R,ae.result.diagnostics),le=Et(le,ae.result.emittedFiles),z=Et(z,ae.result.sourceMaps);return{emitSkipped:ce,diagnostics:R||tt,emittedFiles:le,sourceMaps:z}}else RIe(l,U);return D.checkDefined(l.program).emit(O,y(N,V),B,U,V)}function k(O,N){for(;;){const B=Sge(l,O,n);let U;if(B)if(B!==l.program){const V=B;if((!N||!N(V))&&(U=SY(l,V,O)),l.seenAffectedFiles.add(V.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!U)continue}else U=l.program.getSemanticDiagnostics(void 0,O),l.changedFilesSet.clear(),l.programEmitPending=kb(l.compilerOptions);else return;return{result:U,affected:B}}}function E(O,N){Tge(l,O);const B=D.checkDefined(l.program).getCompilerOptions();if(Ml(B))return D.assert(!l.semanticDiagnosticsPerFile),D.checkDefined(l.program).getSemanticDiagnostics(O,N);if(O)return SY(l,O,N);for(;k(N););let U;for(const V of D.checkDefined(l.program).getSourceFiles())U=Et(U,SY(l,V,N));return U||tt}}function EY(e,t,n){var o;var i;const s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;((o=e.affectedFilesPendingEmit)!=null?o:e.affectedFilesPendingEmit=new Map).set(t,s|n)}function Ige(e){return bs(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:bs(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Pge(e,t){return Gd(e)?t:e[1]||8}function Oge(e,t){return e||kb(t||{})}function Mge(e,t,n){var i,s,o,l;const f=e.program,_=ga(ms(t,n.getCurrentDirectory())),h=N_(n.useCaseSensitiveFileNames());let m;const y=(i=f.fileNames)==null?void 0:i.map(E);let T;const k=f.latestChangedDtsFile?O(f.latestChangedDtsFile):void 0;if(Ege(f)){const V=new Map;f.fileInfos.forEach((re,z)=>{const ce=N(z+1);V.set(ce,bs(re)?{version:re,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:re)}),m={fileInfos:V,compilerOptions:f.options?xX(f.options,O):{},latestChangedDtsFile:k,outSignature:f.outSignature,programEmitPending:f.pendingEmit===void 0?void 0:Oge(f.pendingEmit,f.options),bundle:e.bundle}}else{T=(s=f.fileIdsList)==null?void 0:s.map(ce=>new Set(ce.map(N)));const V=new Map,re=(o=f.options)!=null&&o.composite&&!Ml(f.options)?new Map:void 0;f.fileInfos.forEach((ce,R)=>{const le=N(R+1),ae=Ige(ce);V.set(le,ae),re&&ae.signature&&re.set(le,ae.signature)}),(l=f.emitSignatures)==null||l.forEach(ce=>{if(Gd(ce))re.delete(N(ce));else{const R=N(ce[0]);re.set(R,!bs(ce[1])&&!ce[1].length?[re.get(R)]:ce[1])}});const z=f.affectedFilesPendingEmit?kb(f.options||{}):void 0;m={fileInfos:V,compilerOptions:f.options?xX(f.options,O):{},referencedMap:U(f.referencedMap),exportedModulesMap:U(f.exportedModulesMap),semanticDiagnosticsPerFile:f.semanticDiagnosticsPerFile&&Fm(f.semanticDiagnosticsPerFile,ce=>N(Gd(ce)?ce:ce[0]),ce=>Gd(ce)?tt:ce[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:f.affectedFilesPendingEmit&&Fm(f.affectedFilesPendingEmit,ce=>N(Gd(ce)?ce:ce[0]),ce=>Pge(ce,z)),changedFilesSet:new Set(er(f.changeFileSet,N)),latestChangedDtsFile:k,emitSignatures:re!=null&&re.size?re:void 0}}return{getState:()=>m,saveEmitState:Ho,restoreEmitState:Ho,getProgram:xs,getProgramOrUndefined:W_,releaseProgram:Ho,getCompilerOptions:()=>m.compilerOptions,getSourceFile:xs,getSourceFiles:xs,getOptionsDiagnostics:xs,getGlobalDiagnostics:xs,getConfigFileParsingDiagnostics:xs,getSyntacticDiagnostics:xs,getDeclarationDiagnostics:xs,getSemanticDiagnostics:xs,emit:xs,getAllDependencies:xs,getCurrentDirectory:xs,emitNextAffectedFile:xs,getSemanticDiagnosticsOfNextAffectedFile:xs,emitBuildInfo:xs,close:Ho,hasChangedEmitSignature:Rm};function E(V){return Sl(V,_,h)}function O(V){return ms(V,_)}function N(V){return y[V-1]}function B(V){return T[V-1]}function U(V){if(!V)return;const re=xh.createManyToManyPathMap();return V.forEach(([z,ce])=>re.set(N(z),B(ce))),re}}function AY(e,t,n){const i=ga(ms(t,n.getCurrentDirectory())),s=N_(n.useCaseSensitiveFileNames()),o=new Map;let l=0;const f=[];return e.fileInfos.forEach((_,h)=>{const m=Sl(e.fileNames[h],i,s),y=bs(_)?_:_.version;if(o.set(m,y),le().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>n().getSourceFile(i),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:i=>n().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>n().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,s)=>n().getSyntacticDiagnostics(i,s),getDeclarationDiagnostics:(i,s)=>n().getDeclarationDiagnostics(i,s),getSemanticDiagnostics:(i,s)=>n().getSemanticDiagnostics(i,s),emit:(i,s,o,l,f)=>n().emit(i,s,o,l,f),emitBuildInfo:(i,s)=>n().emitBuildInfo(i,s),getAllDependencies:xs,getCurrentDirectory:()=>n().getCurrentDirectory(),close:Ho};function n(){return D.checkDefined(e().program)}}var NY,IY,qIe=or({"src/compiler/builder.ts"(){"use strict";ho(),NY=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(NY||{}),IY=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(IY||{})}});function $Ie(e,t,n,i,s,o){return wY(0,hj(e,t,n,i,s,o))}function PY(e,t,n,i,s,o){return wY(1,hj(e,t,n,i,s,o))}function HIe(e,t,n,i,s,o){const{newProgram:l,configFileParsingDiagnostics:f}=hj(e,t,n,i,s,o);return DY(()=>({program:l,compilerOptions:l.getCompilerOptions()}),f)}var GIe=or({"src/compiler/builderPublic.ts"(){"use strict";ho()}});function OY(e){return gi(e,"/node_modules/.staging")?Uf(e,"/.staging"):bt(Hh,t=>Qo(e,t))?void 0:e}function MY(e,t){if(t<=1)return 1;let n=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==Yl&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;n=2,i=!0}return i&&!e[n].match(/^users$/i)?n:n+2}function Lge(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const n=MY(e,t);return t>n+1}function Fge(e){return Bge(ga(e))}function Rge(e,t){if(t.lengths.length+1?FY(f,l,Math.max(s.length+1,_+1)):{dir:n,dirPath:i,nonRecursive:!0}:zge(f,l,l.length-1,_,h,s)}function zge(e,t,n,i,s,o){if(s!==-1)return FY(e,t,s+1);let l=!0,f=n;for(let _=0;_e.getCurrentDirectory()),V=e.getCachedDirectoryStructureHost(),re=new Map,z=qk(U(),e.getCanonicalFileName,e.getCompilationSettings()),ce=new Map,R=kB(U(),e.getCanonicalFileName,e.getCompilationSettings(),z.getPackageJsonInfoCache()),le=new Map,ae=qk(U(),e.getCanonicalFileName,ZX(e.getCompilationSettings()),z.getPackageJsonInfoCache()),ye=new Map,$=new Map,ee=Uge(t,U),te=e.toPath(ee),me=G_(te),ve=new Map;return{getModuleResolutionCache:()=>z,startRecordingFilesWithChangedResolutions:Fe,finishRecordingFilesWithChangedResolutions:Ue,startCachingPerDirectoryResolution:He,finishCachingPerDirectoryResolution:Pe,resolveModuleNameLiterals:Qe,resolveTypeReferenceDirectiveReferences:Zt,resolveLibrary:Mt,resolveSingleModuleNameWithoutWatching:yr,removeResolutionsFromProjectReferenceRedirects:Qr,removeResolutionsOfFile:$r,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:ja,invalidateResolutionsOfFailedLookupLocations:ln,setFilesWithInvalidatedNonRelativeUnresolvedImports:Ca,createHasInvalidatedResolutions:Me,isFileWithInvalidatedNonRelativeUnresolvedImports:Ae,updateTypeRootsWatch:Wt,closeTypeRootsWatch:Tt,clear:Ze,onChangesAffectModuleResolution:Re};function we(Y){return Y.resolvedModule}function K(Y){return Y.resolvedTypeReferenceDirective}function Ze(){l0(ye,bh),l0($,bh),l.clear(),Tt(),re.clear(),ce.clear(),h.clear(),f.clear(),_.clear(),E=void 0,O=void 0,N=void 0,k=void 0,T=void 0,B=!1,z.clear(),R.clear(),z.update(e.getCompilationSettings()),R.update(e.getCompilationSettings()),ae.clear(),m.clear(),le.clear(),y=!1}function Re(){B=!0,z.clearAllExceptPackageJsonInfoCache(),R.clearAllExceptPackageJsonInfoCache(),z.update(e.getCompilationSettings()),R.update(e.getCompilationSettings())}function Fe(){i=[]}function Ue(){const Y=i;return i=void 0,Y}function Ae(Y){if(!o)return!1;const Ge=o.get(Y);return!!Ge&&!!Ge.length}function Me(Y,Ge){ln();const dt=s;return s=void 0,{hasInvalidatedResolutions:Q=>Y(Q)||B||!!(dt!=null&&dt.has(Q))||Ae(Q),hasInvalidatedLibResolutions:Q=>{var at;return Ge(Q)||!!((at=le==null?void 0:le.get(Q))!=null&&at.isInvalidated)}}}function He(){z.clearAllExceptPackageJsonInfoCache(),R.clearAllExceptPackageJsonInfoCache(),ae.clearAllExceptPackageJsonInfoCache(),l.forEach(vi),l.clear()}function je(Y){le.forEach((Ge,dt)=>{var Q;(Q=Y==null?void 0:Y.resolvedLibReferences)!=null&&Q.has(dt)||(bi(Ge,e.toPath(oj(Y.getCompilerOptions(),U(),dt)),we),le.delete(dt))})}function Pe(Y,Ge){o=void 0,B=!1,l.forEach(vi),l.clear(),Y!==Ge&&(je(Y),Y==null||Y.getSourceFiles().forEach(dt=>{var Ne,$t;var Q;const at=bm(dt)&&(Ne=(Q=dt.packageJsonLocations)==null?void 0:Q.length)!=null?Ne:0,fr=($t=m.get(dt.path))!=null?$t:tt;for(let Jt=fr.length;Jtat)for(let Jt=at;Jt{Y!=null&&Y.getSourceFileByPath(Q)||(dt.forEach(at=>$.get(at).files--),m.delete(Q))})),ye.forEach((dt,Q)=>{dt.refCount===0&&(ye.delete(Q),dt.watcher.close())}),$.forEach((dt,Q)=>{dt.files===0&&dt.resolutions===0&&($.delete(Q),dt.watcher.close())}),y=!1}function nt(Y,Ge,dt,Q,at){var fr;const Ne=((fr=e.getCompilerHost)==null?void 0:fr.call(e))||e,$t=rE(Y,Ge,dt,Ne,z,Q,at);if(!e.getGlobalCache)return $t;const Jt=e.getGlobalCache();if(Jt!==void 0&&!hf(Y)&&!($t.resolvedModule&&$F($t.resolvedModule.extension))){const{resolvedModule:Pr,failedLookupLocations:li,affectingLocations:Yn,resolutionDiagnostics:Jn}=Cme(D.checkDefined(e.globalCacheResolutionModuleName)(Y),e.projectName,dt,Ne,Jt,z);if(Pr)return $t.resolvedModule=Pr,$t.failedLookupLocations=Vk($t.failedLookupLocations,li),$t.affectingLocations=Vk($t.affectingLocations,Yn),$t.resolutionDiagnostics=Vk($t.resolutionDiagnostics,Jn),$t}return $t}function wt(Y,Ge,dt){return{nameAndMode:mE,resolve:(Q,at)=>nt(Q,Y,dt,Ge,at)}}function xt({entries:Y,containingFile:Ge,containingSourceFile:dt,redirectedReference:Q,options:at,perFileCache:fr,reusedNames:Ne,loader:$t,getResolutionWithResolvedFileName:Jt,deferWatchingNonRelativeResolution:Pr,shouldRetryResolution:li,logChanges:Yn}){var Jn;const w=e.toPath(Ge),ge=fr.get(w)||fr.set(w,P7()).get(w),he=[],ue=Yn&&Ae(w),_e=e.getCurrentProgram(),pe=_e&&_e.getResolvedProjectReferenceToRedirect(Ge),q=pe?!Q||Q.sourceFile.path!==pe.sourceFile.path:!!Q,rt=P7();for(const st of Y){const Ft=$t.nameAndMode.getName(st),zr=$t.nameAndMode.getMode(st,dt);let En=ge.get(Ft,zr);if(!rt.has(Ft,zr)&&(B||q||!En||En.isInvalidated||ue&&!hf(Ft)&&li(En))){const Ti=En;En=$t.resolve(Ft,zr),e.onDiscoveredSymlink&&ZIe(En)&&e.onDiscoveredSymlink(),ge.set(Ft,zr,En),Lt(Ft,En,w,Jt,Pr),Ti&&bi(Ti,w,Jt),Yn&&i&&!ar(Ti,En)&&(i.push(w),Yn=!1)}else{const Ti=((Jn=e.getCompilerHost)==null?void 0:Jn.call(e))||e;if(ev(at,Ti)&&!rt.has(Ft,zr)){const Ui=Jt(En);es(Ti,fr===re?Ui!=null&&Ui.resolvedFileName?Ui.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Ui!=null&&Ui.resolvedFileName?Ui.packageId?p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Ft,Ge,Ui==null?void 0:Ui.resolvedFileName,(Ui==null?void 0:Ui.packageId)&&ub(Ui.packageId))}}D.assert(En!==void 0&&!En.isInvalidated),rt.set(Ft,zr,!0),he.push(En)}return Ne==null||Ne.forEach(st=>rt.set($t.nameAndMode.getName(st),$t.nameAndMode.getMode(st,dt),!0)),ge.size()!==rt.size()&&ge.forEach((st,Ft,zr)=>{rt.has(Ft,zr)||(bi(st,w,Jt),ge.delete(Ft,zr))}),he;function ar(st,Ft){if(st===Ft)return!0;if(!st||!Ft)return!1;const zr=Jt(st),En=Jt(Ft);return zr===En?!0:!zr||!En?!1:zr.resolvedFileName===En.resolvedFileName}}function Zt(Y,Ge,dt,Q,at,fr){var Ne;return xt({entries:Y,containingFile:Ge,containingSourceFile:at,redirectedReference:dt,options:Q,reusedNames:fr,perFileCache:ce,loader:sj(Ge,dt,Q,((Ne=e.getCompilerHost)==null?void 0:Ne.call(e))||e,R),getResolutionWithResolvedFileName:K,shouldRetryResolution:$t=>$t.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Qe(Y,Ge,dt,Q,at,fr){return xt({entries:Y,containingFile:Ge,containingSourceFile:at,redirectedReference:dt,options:Q,reusedNames:fr,perFileCache:re,loader:wt(Ge,dt,Q),getResolutionWithResolvedFileName:we,shouldRetryResolution:Ne=>!Ne.resolvedModule||!MN(Ne.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})}function Mt(Y,Ge,dt,Q){var at;const fr=((at=e.getCompilerHost)==null?void 0:at.call(e))||e;let Ne=le==null?void 0:le.get(Q);if(!Ne||Ne.isInvalidated){const $t=Ne;Ne=CB(Y,Ge,dt,fr,ae);const Jt=e.toPath(Ge);Lt(Y,Ne,Jt,we,!1),le.set(Q,Ne),$t&&bi($t,Jt,we)}else if(ev(dt,fr)){const $t=we(Ne);es(fr,$t!=null&&$t.resolvedFileName?$t.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Y,Ge,$t==null?void 0:$t.resolvedFileName,($t==null?void 0:$t.packageId)&&ub($t.packageId))}return Ne}function yr(Y,Ge){const dt=e.toPath(Ge),Q=re.get(dt),at=Q==null?void 0:Q.get(Y,void 0);return at&&!at.isInvalidated?at:nt(Y,Ge,e.getCompilationSettings())}function Cr(Y){return gi(Y,"/node_modules/@types")}function Lt(Y,Ge,dt,Q,at){var Ne;var fr;if(Ge.refCount)Ge.refCount++,D.assertIsDefined(Ge.files);else{Ge.refCount=1,D.assert(!((fr=Ge.files)!=null&&fr.size)),!at||hf(Y)?xn(Ge):l.add(Y,Ge);const $t=Q(Ge);if($t&&$t.resolvedFileName){const Jt=e.toPath($t.resolvedFileName);let Pr=h.get(Jt);Pr||h.set(Jt,Pr=new Set),Pr.add(Ge)}}((Ne=Ge.files)!=null?Ne:Ge.files=new Set).add(dt)}function an(Y,Ge){const dt=e.toPath(Y),Q=LY(Y,dt,ee,te,me,U);if(Q){const{dir:at,dirPath:fr,nonRecursive:Ne}=Q;fr===te?(D.assert(Ne),Ge=!0):ia(at,fr,Ne)}return Ge}function xn(Y){D.assert(!!Y.refCount);const{failedLookupLocations:Ge,affectingLocations:dt,node10Result:Q}=Y;if(!(Ge!=null&&Ge.length)&&!(dt!=null&&dt.length)&&!Q)return;(Ge!=null&&Ge.length||Q)&&f.add(Y);let at=!1;if(Ge)for(const fr of Ge)at=an(fr,at);Q&&(at=an(Q,at)),at&&ia(ee,te,!0),Lr(Y,!(Ge!=null&&Ge.length)&&!Q)}function Lr(Y,Ge){D.assert(!!Y.refCount);const{affectingLocations:dt}=Y;if(dt!=null&&dt.length){Ge&&_.add(Y);for(const Q of dt)In(Q,!0)}}function In(Y,Ge){const dt=$.get(Y);if(dt){Ge?dt.resolutions++:dt.files++;return}let Q=Y;if(e.realpath&&(Q=e.realpath(Y),Y!==Q)){const $t=$.get(Q);if($t){Ge?$t.resolutions++:$t.files++,$t.paths.add(Y),$.set(Y,$t);return}}const at=new Set;at.add(Q);let fr=jge(e.toPath(Q))?e.watchAffectingFileLocation(Q,($t,Jt)=>{V==null||V.addOrDeleteFile($t,e.toPath(Q),Jt);const Pr=z.getPackageJsonInfoCache().getInternalMap();at.forEach(li=>{Ne.resolutions&&(k!=null?k:k=new Set).add(li),Ne.files&&(T!=null?T:T=new Set).add(li),Pr==null||Pr.delete(e.toPath(li))}),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):$S;const Ne={watcher:fr!==$S?{close:()=>{fr.close(),fr=$S}}:fr,resolutions:Ge?1:0,files:Ge?0:1,paths:at};$.set(Q,Ne),Y!==Q&&($.set(Y,Ne),at.add(Y))}function vi(Y,Ge){const dt=e.getCurrentProgram();!dt||!dt.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Ge)?Y.forEach(xn):Y.forEach(Q=>Lr(Q,!0))}function ia(Y,Ge,dt){const Q=ye.get(Ge);Q?(D.assert(!!dt==!!Q.nonRecursive),Q.refCount++):ye.set(Ge,{watcher:Ar(Y,Ge,dt),refCount:1,nonRecursive:dt})}function Wa(Y,Ge){const dt=e.toPath(Y),Q=LY(Y,dt,ee,te,me,U);if(Q){const{dirPath:at}=Q;at===te?Ge=!0:Pt(at)}return Ge}function bi(Y,Ge,dt){if(D.checkDefined(Y.files).delete(Ge),Y.refCount--,Y.refCount)return;const Q=dt(Y);if(Q&&Q.resolvedFileName){const $t=e.toPath(Q.resolvedFileName),Jt=h.get($t);Jt!=null&&Jt.delete(Y)&&!Jt.size&&h.delete($t)}const{failedLookupLocations:at,affectingLocations:fr,node10Result:Ne}=Y;if(f.delete(Y)){let $t=!1;if(at)for(const Jt of at)$t=Wa(Jt,$t);Ne&&($t=Wa(Ne,$t)),$t&&Pt(te)}else fr!=null&&fr.length&&_.delete(Y);if(fr)for(const $t of fr){const Jt=$.get($t);Jt.resolutions--}}function Pt(Y){const Ge=ye.get(Y);Ge.refCount--}function Ar(Y,Ge,dt){return e.watchDirectoryOfFailedLookupLocation(Y,Q=>{const at=e.toPath(Q);V&&V.addOrDeleteFileOrDirectory(Q,at),rn(at,Ge===at)},dt?0:1)}function Yt(Y,Ge,dt){const Q=Y.get(Ge);Q&&(Q.forEach(at=>bi(at,Ge,dt)),Y.delete(Ge))}function Qr(Y){if(!Xl(Y,".json"))return;const Ge=e.getCurrentProgram();if(!Ge)return;const dt=Ge.getResolvedProjectReferenceByPath(Y);dt&&dt.commandLine.fileNames.forEach(Q=>$r(e.toPath(Q)))}function $r(Y){Yt(re,Y,we),Yt(ce,Y,K)}function Fn(Y,Ge){if(!Y)return!1;let dt=!1;return Y.forEach(Q=>{if(!(Q.isInvalidated||!Ge(Q))){Q.isInvalidated=dt=!0;for(const at of D.checkDefined(Q.files))(s!=null?s:s=new Set).add(at),y=y||gi(at,fP)}}),dt}function ja(Y){$r(Y);const Ge=y;Fn(h.get(Y),Cp)&&y&&!Ge&&e.onChangedAutomaticTypeDirectiveNames()}function Ca(Y){D.assert(o===Y||o===void 0),o=Y}function rn(Y,Ge){if(Ge)(N||(N=new Set)).add(Y);else{const dt=OY(Y);if(!dt||(Y=dt,e.fileIsOpen(Y)))return!1;const Q=ga(Y);if(Cr(Y)||vq(Y)||Cr(Q)||vq(Q))(E||(E=new Set)).add(Y),(O||(O=new Set)).add(Y);else{if(ige(e.getCurrentProgram(),Y)||Xl(Y,".map"))return!1;(E||(E=new Set)).add(Y);const at=JI(Y,!0);at&&(O||(O=new Set)).add(at)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function wr(){const Y=z.getPackageJsonInfoCache().getInternalMap();Y&&(E||O||N)&&Y.forEach((Ge,dt)=>Li(dt)?Y.delete(dt):void 0)}function ln(){var Y;if(B)return T=void 0,wr(),(E||O||N||k)&&Fn(le,Kr),E=void 0,O=void 0,N=void 0,k=void 0,!0;let Ge=!1;return T&&((Y=e.getCurrentProgram())==null||Y.getSourceFiles().forEach(dt=>{bt(dt.packageJsonLocations,Q=>T.has(Q))&&((s!=null?s:s=new Set).add(dt.path),Ge=!0)}),T=void 0),!E&&!O&&!N&&!k||(Ge=Fn(f,Kr)||Ge,wr(),E=void 0,O=void 0,N=void 0,Ge=Fn(_,ot)||Ge,k=void 0),Ge}function Kr(Y){var Ge;return ot(Y)?!0:!E&&!O&&!N?!1:((Ge=Y.failedLookupLocations)==null?void 0:Ge.some(dt=>Li(e.toPath(dt))))||!!Y.node10Result&&Li(e.toPath(Y.node10Result))}function Li(Y){return(E==null?void 0:E.has(Y))||Lu((O==null?void 0:O.keys())||[],Ge=>Ga(Y,Ge)?!0:void 0)||Lu((N==null?void 0:N.keys())||[],Ge=>Y.length>Ge.length&&Ga(Y,Ge)&&(T5(Ge)||Y[Ge.length]===Yl)?!0:void 0)}function ot(Y){var Ge;return!!k&&((Ge=Y.affectingLocations)==null?void 0:Ge.some(dt=>k.has(dt)))}function Tt(){l0(ve,_h)}function it(Y,Ge){return nr(Y)?e.watchTypeRootsDirectory(Ge,dt=>{const Q=e.toPath(dt);V&&V.addOrDeleteFileOrDirectory(dt,Q),y=!0,e.onChangedAutomaticTypeDirectiveNames();const at=Jge(Ge,Y,te,me,U,fr=>ye.has(fr));at&&rn(Q,at===Q)},1):$S}function Wt(){const Y=e.getCompilationSettings();if(Y.types){Tt();return}const Ge=zI(Y,{getCurrentDirectory:U});Ge?fk(ve,Fm(Ge,dt=>e.toPath(dt)),{createNewValue:it,onDeleteValue:_h}):Tt()}function nr(Y){return e.getCompilationSettings().typeRoots?!0:Fge(e.toPath(Y))}}function ZIe(e){var t,n;return!!((t=e.resolvedModule)!=null&&t.originalPath||(n=e.resolvedTypeReferenceDirective)!=null&&n.originalPath)}var YIe=or({"src/compiler/resolutionCache.ts"(){"use strict";ho()}});function pP(e,t){const n=e===Cu&&HY?HY:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:N_(e.useCaseSensitiveFileNames)};if(!t)return s=>e.write(iY(s,n));const i=new Array(1);return s=>{i[0]=s,e.write(_ge(i,n)+n.getNewLine()),i[0]=void 0}}function Wge(e,t,n){return e.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&Zn(Sj,t.code)?(e.clearScreen(),!0):!1}function QIe(e,t){return Zn(Sj,e.code)?t+t:t}function dP(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function qge(e,t){return t?(n,i,s)=>{Wge(e,n,s);let o=`[${M3(dP(e),"\x1B[90m")}] `;o+=`${Sb(n.messageText,e.newLine)}${i+i}`,e.write(o)}:(n,i,s)=>{let o="";Wge(e,n,s)||(o+=i),o+=`${dP(e)} - `,o+=`${Sb(n.messageText,e.newLine)}${QIe(n,i)}`,e.write(o)}}function KIe(e,t,n,i,s,o){const l=s;l.onUnRecoverableConfigFileDiagnostic=_=>Qge(s,o,_);const f=wI(e,t,l,n,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,f}function yj(e){return ef(e,t=>t.category===1)}function vj(e){return Mn(e,n=>n.category===1).map(n=>{if(n.file!==void 0)return`${n.file.fileName}`}).map(n=>{if(n===void 0)return;const i=on(e,s=>s.file!==void 0&&s.file.fileName===n);if(i!==void 0){const{line:s}=Ql(i.file,i.start);return{fileName:n,line:s+1}}})}function RY(e){return e===1?p.Found_1_error_Watching_for_file_changes:p.Found_0_errors_Watching_for_file_changes}function $ge(e,t){const n=M3(":"+e.line,"\x1B[90m");return K2(e.fileName)&&K2(t)?th(t,e.fileName,!1)+n:e.fileName+n}function Hge(e,t,n,i){if(e===0)return"";const s=t.filter(m=>m!==void 0),o=s.map(m=>`${m.fileName}:${m.line}`).filter((m,y,T)=>T.indexOf(m)===y),l=s[0]&&$ge(s[0],i.getCurrentDirectory());let f;e===1?f=t[0]!==void 0?[p.Found_1_error_in_0,l]:[p.Found_1_error]:f=o.length===0?[p.Found_0_errors,e]:o.length===1?[p.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[p.Found_0_errors_in_1_files,e,o.length];const _=zu(...f),h=o.length>1?ePe(s,i):"";return`${n}${Sb(_.messageText,n)}${n}${n}${h}`}function ePe(e,t){const n=e.filter((y,T,k)=>T===k.findIndex(E=>(E==null?void 0:E.fileName)===(y==null?void 0:y.fileName)));if(n.length===0)return"";const i=y=>Math.log(y)*Math.LOG10E+1,s=n.map(y=>[y,ef(e,T=>T.fileName===y.fileName)]),o=s.reduce((y,T)=>Math.max(y,T[1]||0),0),l=p.Errors_Files.message,f=l.split(" ")[0].length,_=Math.max(f,i(o)),h=Math.max(i(o)-f,0);let m="";return m+=" ".repeat(h)+l+` -`,s.forEach(y=>{const[T,k]=y,E=Math.log(k)*Math.LOG10E+1|0,O=E<_?" ".repeat(_-E):"",N=$ge(T,t.getCurrentDirectory());m+=`${O}${k} ${N} -`}),m}function Gge(e){return!!e.getState}function BY(e,t){const n=e.getCompilerOptions();n.explainFiles?Xge(Gge(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&Vt(e.getSourceFiles(),i=>{t(i.fileName)})}function Xge(e,t){var n,i;const s=e.getFileIncludeReasons(),o=l=>Tw(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t(`${qS(l,o)}`),(n=s.get(l.path))==null||n.forEach(f=>t(` ${UY(e,f,o).messageText}`)),(i=jY(l,o))==null||i.forEach(f=>t(` ${f.messageText}`))}function jY(e,t){var n;let i;if(e.path!==e.resolvedPath&&(i!=null?i:i=[]).push(Ps(void 0,p.File_is_output_of_project_reference_source_0,qS(e.originalFileName,t))),e.redirectInfo&&(i!=null?i:i=[]).push(Ps(void 0,p.File_redirects_to_file_0,qS(e.redirectInfo.redirectTarget,t))),bm(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i!=null?i:i=[]).push(Ps(void 0,p.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,qS(fi(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i!=null?i:i=[]).push(Ps(void 0,e.packageJsonScope.contents.packageJsonContent.type?p.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:p.File_is_CommonJS_module_because_0_does_not_have_field_type,qS(fi(e.packageJsonLocations),t))):(n=e.packageJsonLocations)!=null&&n.length&&(i!=null?i:i=[]).push(Ps(void 0,p.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function zY(e,t){var n;const i=e.getCompilerOptions().configFile;if(!((n=i==null?void 0:i.configFileSpecs)!=null&&n.validatedFilesSpec))return;const s=e.getCanonicalFileName(t),o=ga(ms(i.fileName,e.getCurrentDirectory()));return on(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(ms(l,o))===s)}function JY(e,t){var n,i;const s=e.getCompilerOptions().configFile;if(!((n=s==null?void 0:s.configFileSpecs)!=null&&n.validatedIncludeSpecs))return;if(s.configFileSpecs.isDefaultIncludeSpec)return!0;const o=Xl(t,".json"),l=ga(ms(s.fileName,e.getCurrentDirectory())),f=e.useCaseSensitiveFileNames();return on((i=s==null?void 0:s.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,_=>{if(o&&!gi(_,".json"))return!1;const h=DH(_,l,"files");return!!h&&mb(`(${h})$`,f).test(t)})}function UY(e,t,n){var i,s;const o=e.getCompilerOptions();if(W4(t)){const l=pE(h=>e.getSourceFileByPath(h),t),f=Zk(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`;let _;switch(D.assert(Zk(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:Zk(l)?_=l.packageId?p.Imported_via_0_from_file_1_with_packageId_2:p.Imported_via_0_from_file_1:l.text===hb?_=l.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:p.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:_=l.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:p.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:D.assert(!l.packageId),_=p.Referenced_via_0_from_file_1;break;case 5:_=l.packageId?p.Type_library_referenced_via_0_from_file_1_with_packageId_2:p.Type_library_referenced_via_0_from_file_1;break;case 7:D.assert(!l.packageId),_=p.Library_referenced_via_0_from_file_1;break;default:D.assertNever(t)}return Ps(void 0,_,f,qS(l.file,n),l.packageId&&ub(l.packageId))}switch(t.kind){case 0:if(!((i=o.configFile)!=null&&i.configFileSpecs))return Ps(void 0,p.Root_file_specified_for_compilation);const l=ms(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(zY(e,l))return Ps(void 0,p.Part_of_files_list_in_tsconfig_json);const _=JY(e,l);return bs(_)?Ps(void 0,p.Matched_by_include_pattern_0_in_1,_,qS(o.configFile,n)):Ps(void 0,_?p.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:p.Root_file_specified_for_compilation);case 1:case 2:const h=t.kind===2,m=D.checkDefined((s=e.getResolvedProjectReferences())==null?void 0:s[t.index]);return Ps(void 0,Ml(o)?h?p.Output_from_referenced_project_0_included_because_1_specified:p.Source_from_referenced_project_0_included_because_1_specified:h?p.Output_from_referenced_project_0_included_because_module_is_specified_as_none:p.Source_from_referenced_project_0_included_because_module_is_specified_as_none,qS(m.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:{const y=o.types?t.packageId?[p.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,ub(t.packageId)]:[p.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[p.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,ub(t.packageId)]:[p.Entry_point_for_implicit_type_library_0,t.typeReference];return Ps(void 0,...y)}case 6:{if(t.index!==void 0)return Ps(void 0,p.Library_0_specified_in_compilerOptions,o.lib[t.index]);const y=Zd(RI.type,(k,E)=>k===gc(o)?E:void 0),T=y?[p.Default_library_for_target_0,y]:[p.Default_library];return Ps(void 0,...T)}default:D.assertNever(t)}}function qS(e,t){const n=bs(e)?e:e.fileName;return t?t(n):n}function bj(e,t,n,i,s,o,l,f){const _=!!e.getCompilerOptions().listFilesOnly,h=e.getConfigFileParsingDiagnostics().slice(),m=h.length;Et(h,e.getSyntacticDiagnostics(void 0,o)),h.length===m&&(Et(h,e.getOptionsDiagnostics(o)),_||(Et(h,e.getGlobalDiagnostics(o)),h.length===m&&Et(h,e.getSemanticDiagnostics(void 0,o))));const y=_?{emitSkipped:!0,diagnostics:tt}:e.emit(void 0,s,o,l,f),{emittedFiles:T,diagnostics:k}=y;Et(h,k);const E=E5(h);if(E.forEach(t),n){const O=e.getCurrentDirectory();Vt(T,N=>{const B=ms(N,O);n(`TSFILE: ${B}`)}),BY(e,n)}return i&&i(yj(E),vj(E)),{emitResult:y,diagnostics:E}}function Zge(e,t,n,i,s,o,l,f){const{emitResult:_,diagnostics:h}=bj(e,t,n,i,s,o,l,f);return _.emitSkipped&&h.length>0?1:h.length>0?2:0}function VY(e=Cu,t){return{onWatchStatusChange:t||qge(e),watchFile:Zs(e,e.watchFile)||mP,watchDirectory:Zs(e,e.watchDirectory)||mP,setTimeout:Zs(e,e.setTimeout)||Ho,clearTimeout:Zs(e,e.clearTimeout)||Ho}}function WY(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=n!==0?o=>e.trace(o):Ho,s=age(e,n,i);return s.writeLog=i,s}function qY(e,t,n=e){const i=e.useCaseSensitiveFileNames(),s={getSourceFile:tY((o,l)=>l?e.readFile(o,l):s.readFile(o),t,void 0),getDefaultLibLocation:Zs(e,e.getDefaultLibLocation),getDefaultLibFileName:o=>e.getDefaultLibFileName(o),writeFile:rY((o,l,f)=>e.writeFile(o,l,f),o=>e.createDirectory(o),o=>e.directoryExists(o)),getCurrentDirectory:q_(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:N_(i),getNewLine:()=>Yv(t()),fileExists:o=>e.fileExists(o),readFile:o=>e.readFile(o),trace:Zs(e,e.trace),directoryExists:Zs(n,n.directoryExists),getDirectories:Zs(n,n.getDirectories),realpath:Zs(e,e.realpath),getEnvironmentVariable:Zs(e,e.getEnvironmentVariable)||(()=>""),createHash:Zs(e,e.createHash),readDirectory:Zs(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit};return s}function xj(e,t){if(t.match(SZ)){let n=t.length,i=n;for(let s=n-1;s>=0;s--){const o=t.charCodeAt(s);switch(o){case 10:s&&t.charCodeAt(s-1)===13&&s--;case 13:break;default:if(o<127||!Wf(o)){i=s;continue}break}const l=t.substring(i,n);if(l.match(VB)){t=t.substring(0,i);break}else if(!l.match(WB))break;n=i}}return(e.createHash||_i)(t)}function Tj(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const i=t.call(e,...n);return i&&(i.version=xj(e,i.text)),i}}function $Y(e,t){const n=q_(()=>ga(ec(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:q_(()=>e.getCurrentDirectory()),getDefaultLibLocation:n,getDefaultLibFileName:i=>ta(n(),pL(i)),fileExists:i=>e.fileExists(i),readFile:(i,s)=>e.readFile(i,s),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,s,o,l,f)=>e.readDirectory(i,s,o,l,f),realpath:Zs(e,e.realpath),getEnvironmentVariable:Zs(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,s,o)=>e.writeFile(i,s,o),createHash:Zs(e,e.createHash),createProgram:t||PY,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:Zs(e,e.now)}}function Yge(e=Cu,t,n,i){const s=l=>e.write(l+e.newLine),o=$Y(e,t);return Ag(o,VY(e,i)),o.afterProgramCreate=l=>{const f=l.getCompilerOptions(),_=Yv(f);bj(l,n,s,h=>o.onWatchStatusChange(zu(RY(h),h),_,f,h))},o}function Qge(e,t,n){t(n),e.exit(1)}function Kge({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:i,system:s,createProgram:o,reportDiagnostic:l,reportWatchStatus:f}){const _=l||pP(s),h=Yge(s,o,_,f);return h.onUnRecoverableConfigFileDiagnostic=m=>Qge(s,_,m),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=n,h.extraFileExtensions=i,h}function e1e({rootFiles:e,options:t,watchOptions:n,projectReferences:i,system:s,createProgram:o,reportDiagnostic:l,reportWatchStatus:f}){const _=Yge(s,o,l||pP(s),f);return _.rootFiles=e,_.options=t,_.watchOptions=n,_.projectReferences=i,_}function tPe(e){const t=e.system||Cu,n=e.host||(e.host=GY(e.options,t)),i=t1e(e),s=Zge(i,e.reportDiagnostic||pP(t),o=>n.trace&&n.trace(o),e.reportErrorSummary||e.options.pretty?(o,l)=>t.write(Hge(o,l,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),s}var HY,Sj,$S,mP,B0,rPe=or({"src/compiler/watch.ts"(){"use strict";ho(),HY=Cu?{getCurrentDirectory:()=>Cu.getCurrentDirectory(),getNewLine:()=>Cu.newLine,getCanonicalFileName:N_(Cu.useCaseSensitiveFileNames)}:void 0,Sj=[p.Starting_compilation_in_watch_mode.code,p.File_change_detected_Starting_incremental_compilation.code],$S={close:Ho},mP=()=>$S,B0={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function kj(e,t){const n=s2(e);if(!n)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(n,e.configFilePath);else{const s=t.readFile(n);if(!s)return;i=ej(n,s)}if(!(!i||i.version!==Zu||!i.program))return Mge(i,n,t)}function GY(e,t=Cu){const n=nY(e,void 0,t);return n.createHash=Zs(t,t.createHash),n.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,Tj(n),sP(n,i=>Sl(i,n.getCurrentDirectory(),n.getCanonicalFileName)),n}function t1e({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:i,host:s,createProgram:o}){s=s||GY(t),o=o||PY;const l=kj(t,s);return o(e,t,s,l,n,i)}function nPe(e,t,n,i,s,o,l,f){return ns(e)?e1e({rootFiles:e,options:t,watchOptions:f,projectReferences:l,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o}):Kge({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:f,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o})}function iPe(e){let t,n,i,s,o,l,f,_,h=e.extendedConfigCache,m=!1;const y=new Map;let T,k=!1;const E=e.useCaseSensitiveFileNames(),O=e.getCurrentDirectory(),{configFileName:N,optionsToExtend:B={},watchOptionsToExtend:U,extraFileExtensions:V,createProgram:re}=e;let{rootFiles:z,options:ce,watchOptions:R,projectReferences:le}=e,ae,ye,$=!1,ee=!1;const te=N===void 0?void 0:tge(e,O,E),me=te||e,ve=uj(e,me);let we=Cr();N&&e.configFileParsingResult&&(Kr(e.configFileParsingResult),we=Cr()),bi(p.Starting_compilation_in_watch_mode),N&&!e.configFileParsingResult&&(we=Yv(B),D.assert(!z),ln(),we=Cr()),D.assert(ce),D.assert(z);const{watchFile:K,watchDirectory:Ze,writeLog:Re}=WY(e,ce),Fe=N_(E);Re(`Current directory: ${O} CaseSensitiveFileNames: ${E}`);let Ue;N&&(Ue=K(N,Fn,2e3,R,B0.ConfigFile));const Ae=qY(e,()=>ce,me);Tj(Ae);const Me=Ae.getSourceFile;Ae.getSourceFile=(Ne,...$t)=>In(Ne,Lt(Ne),...$t),Ae.getSourceFileByPath=In,Ae.getNewLine=()=>we,Ae.fileExists=Lr,Ae.onReleaseOldSourceFile=Wa,Ae.onReleaseParsedCommandLine=Tt,Ae.toPath=Lt,Ae.getCompilationSettings=()=>ce,Ae.useSourceOfProjectReferenceRedirect=Zs(e,e.useSourceOfProjectReferenceRedirect),Ae.watchDirectoryOfFailedLookupLocation=(Ne,$t,Jt)=>Ze(Ne,$t,Jt,R,B0.FailedLookupLocations),Ae.watchAffectingFileLocation=(Ne,$t)=>K(Ne,$t,2e3,R,B0.AffectingFileLocation),Ae.watchTypeRootsDirectory=(Ne,$t,Jt)=>Ze(Ne,$t,Jt,R,B0.TypeRoots),Ae.getCachedDirectoryStructureHost=()=>te,Ae.scheduleInvalidateResolutionsOfFailedLookupLocations=Yt,Ae.onInvalidatedResolution=$r,Ae.onChangedAutomaticTypeDirectiveNames=$r,Ae.fileIsOpen=Rm,Ae.getCurrentProgram=Zt,Ae.writeLog=Re,Ae.getParsedCommandLine=Li;const He=Vge(Ae,N?ga(ms(N,O)):O,!1);Ae.resolveModuleNameLiterals=Zs(e,e.resolveModuleNameLiterals),Ae.resolveModuleNames=Zs(e,e.resolveModuleNames),!Ae.resolveModuleNameLiterals&&!Ae.resolveModuleNames&&(Ae.resolveModuleNameLiterals=He.resolveModuleNameLiterals.bind(He)),Ae.resolveTypeReferenceDirectiveReferences=Zs(e,e.resolveTypeReferenceDirectiveReferences),Ae.resolveTypeReferenceDirectives=Zs(e,e.resolveTypeReferenceDirectives),!Ae.resolveTypeReferenceDirectiveReferences&&!Ae.resolveTypeReferenceDirectives&&(Ae.resolveTypeReferenceDirectiveReferences=He.resolveTypeReferenceDirectiveReferences.bind(He)),Ae.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):He.resolveLibrary.bind(He),Ae.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Zs(e,e.getModuleResolutionCache):()=>He.getModuleResolutionCache();const Pe=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Zs(e,e.hasInvalidatedResolutions)||Cp:Rm,nt=e.resolveLibrary?Zs(e,e.hasInvalidatedLibResolutions)||Cp:Rm;return t=kj(ce,Ae),Qe(),dt(),N&&at(Lt(N),ce,R,B0.ExtendedConfigFile),N?{getCurrentProgram:xt,getProgram:Ca,close:wt}:{getCurrentProgram:xt,getProgram:Ca,updateRootFileNames:yr,close:wt};function wt(){Ar(),He.clear(),l0(y,Ne=>{Ne&&Ne.fileWatcher&&(Ne.fileWatcher.close(),Ne.fileWatcher=void 0)}),Ue&&(Ue.close(),Ue=void 0),h==null||h.clear(),h=void 0,_&&(l0(_,bh),_=void 0),s&&(l0(s,bh),s=void 0),i&&(l0(i,_h),i=void 0),f&&(l0(f,Ne=>{var $t;($t=Ne.watcher)==null||$t.close(),Ne.watcher=void 0,Ne.watchedDirectories&&l0(Ne.watchedDirectories,bh),Ne.watchedDirectories=void 0}),f=void 0)}function xt(){return t}function Zt(){return t&&t.getProgramOrUndefined()}function Qe(){Re("Synchronizing program"),D.assert(ce),D.assert(z),Ar();const Ne=xt();if(k&&(we=Cr(),Ne&&t$(Ne.getCompilerOptions(),ce))){debugger;He.onChangesAffectModuleResolution()}const{hasInvalidatedResolutions:$t,hasInvalidatedLibResolutions:Jt}=He.createHasInvalidatedResolutions(Pe,nt),{originalReadFile:Pr,originalFileExists:li,originalDirectoryExists:Yn,originalCreateDirectory:Jn,originalWriteFile:w,readFileWithCache:ge}=sP(Ae,Lt);return uY(Zt(),z,ce,he=>ia(he,ge),he=>Ae.fileExists(he),$t,Jt,Pt,Li,le)?ee&&(m&&bi(p.File_change_detected_Starting_incremental_compilation),t=re(void 0,void 0,Ae,t,ye,le),ee=!1):(m&&bi(p.File_change_detected_Starting_incremental_compilation),Mt($t,Jt)),m=!1,e.afterProgramCreate&&Ne!==t&&e.afterProgramCreate(t),Ae.readFile=Pr,Ae.fileExists=li,Ae.directoryExists=Yn,Ae.createDirectory=Jn,Ae.writeFile=w,t}function Mt(Ne,$t){Re("CreatingProgramWith::"),Re(` roots: ${JSON.stringify(z)}`),Re(` options: ${JSON.stringify(ce)}`),le&&Re(` projectReferences: ${JSON.stringify(le)}`);const Jt=k||!Zt();k=!1,ee=!1,He.startCachingPerDirectoryResolution(),Ae.hasInvalidatedResolutions=Ne,Ae.hasInvalidatedLibResolutions=$t,Ae.hasChangedAutomaticTypeDirectiveNames=Pt;const Pr=Zt();if(t=re(z,ce,Ae,t,ye,le),He.finishCachingPerDirectoryResolution(t.getProgram(),Pr),nge(t.getProgram(),i||(i=new Map),Y),Jt&&He.updateTypeRootsWatch(),T){for(const li of T)i.has(li)||y.delete(li);T=void 0}}function yr(Ne){D.assert(!N,"Cannot update root file names with config file watch mode"),z=Ne,$r()}function Cr(){return Yv(ce||B)}function Lt(Ne){return Sl(Ne,O,Fe)}function an(Ne){return typeof Ne=="boolean"}function xn(Ne){return typeof Ne.version=="boolean"}function Lr(Ne){const $t=Lt(Ne);return an(y.get($t))?!1:me.fileExists(Ne)}function In(Ne,$t,Jt,Pr,li){const Yn=y.get($t);if(!an(Yn)){if(Yn===void 0||li||xn(Yn)){const Jn=Me(Ne,Jt,Pr);if(Yn)Jn?(Yn.sourceFile=Jn,Yn.version=Jn.version,Yn.fileWatcher||(Yn.fileWatcher=it($t,Ne,Wt,250,R,B0.SourceFile))):(Yn.fileWatcher&&Yn.fileWatcher.close(),y.set($t,!1));else if(Jn){const w=it($t,Ne,Wt,250,R,B0.SourceFile);y.set($t,{sourceFile:Jn,version:Jn.version,fileWatcher:w})}else y.set($t,!1);return Jn}return Yn.sourceFile}}function vi(Ne){const $t=y.get(Ne);$t!==void 0&&(an($t)?y.set(Ne,{version:!1}):$t.version=!1)}function ia(Ne,$t){const Jt=y.get(Ne);if(!Jt)return;if(Jt.version)return Jt.version;const Pr=$t(Ne);return Pr!==void 0?xj(Ae,Pr):void 0}function Wa(Ne,$t,Jt){const Pr=y.get(Ne.resolvedPath);Pr!==void 0&&(an(Pr)?(T||(T=[])).push(Ne.path):Pr.sourceFile===Ne&&(Pr.fileWatcher&&Pr.fileWatcher.close(),y.delete(Ne.resolvedPath),Jt||He.removeResolutionsOfFile(Ne.path)))}function bi(Ne){e.onWatchStatusChange&&e.onWatchStatusChange(zu(Ne),we,ce||B)}function Pt(){return He.hasChangedAutomaticTypeDirectiveNames()}function Ar(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function Yt(){if(!e.setTimeout||!e.clearTimeout)return He.invalidateResolutionsOfFailedLookupLocations();const Ne=Ar();Re(`Scheduling invalidateFailedLookup${Ne?", Cancelled earlier one":""}`),l=e.setTimeout(Qr,250,"timerToInvalidateFailedLookupResolutions")}function Qr(){l=void 0,He.invalidateResolutionsOfFailedLookupLocations()&&$r()}function $r(){!e.setTimeout||!e.clearTimeout||(o&&e.clearTimeout(o),Re("Scheduling update"),o=e.setTimeout(ja,250,"timerToUpdateProgram"))}function Fn(){D.assert(!!N),n=2,$r()}function ja(){o=void 0,m=!0,Ca()}function Ca(){var Ne,$t,Jt,Pr;switch(n){case 1:(Ne=jm)==null||Ne.logStartUpdateProgram("PartialConfigReload"),rn();break;case 2:($t=jm)==null||$t.logStartUpdateProgram("FullConfigReload"),wr();break;default:(Jt=jm)==null||Jt.logStartUpdateProgram("SynchronizeProgram"),Qe();break}return(Pr=jm)==null||Pr.logStopUpdateProgram("Done"),xt()}function rn(){Re("Reloading new file names and options"),D.assert(ce),D.assert(N),n=0,z=PI(ce.configFile.configFileSpecs,ms(ga(N),O),ce,ve,V),SX(z,ms(N,O),ce.configFile.configFileSpecs,ye,$)&&(ee=!0),Qe()}function wr(){D.assert(N),Re(`Reloading config file: ${N}`),n=0,te&&te.clearCache(),ln(),k=!0,Qe(),dt(),at(Lt(N),ce,R,B0.ExtendedConfigFile)}function ln(){D.assert(N),Kr(wI(N,B,ve,h||(h=new Map),U,V))}function Kr(Ne){z=Ne.fileNames,ce=Ne.options,R=Ne.watchOptions,le=Ne.projectReferences,ae=Ne.wildcardDirectories,ye=R7(Ne).slice(),$=II(Ne.raw),ee=!0}function Li(Ne){const $t=Lt(Ne);let Jt=f==null?void 0:f.get($t);if(Jt){if(!Jt.reloadLevel)return Jt.parsedCommandLine;if(Jt.parsedCommandLine&&Jt.reloadLevel===1&&!e.getParsedCommandLine){Re("Reloading new file names and options"),D.assert(ce);const li=PI(Jt.parsedCommandLine.options.configFile.configFileSpecs,ms(ga(Ne),O),ce,ve);return Jt.parsedCommandLine=Xs(fa({},Jt.parsedCommandLine),{fileNames:li}),Jt.reloadLevel=void 0,Jt.parsedCommandLine}}Re(`Loading config file: ${Ne}`);const Pr=e.getParsedCommandLine?e.getParsedCommandLine(Ne):ot(Ne);return Jt?(Jt.parsedCommandLine=Pr,Jt.reloadLevel=void 0):(f||(f=new Map)).set($t,Jt={parsedCommandLine:Pr}),fr(Ne,$t,Jt),Pr}function ot(Ne){const $t=ve.onUnRecoverableConfigFileDiagnostic;ve.onUnRecoverableConfigFileDiagnostic=Ho;const Jt=wI(Ne,void 0,ve,h||(h=new Map),U);return ve.onUnRecoverableConfigFileDiagnostic=$t,Jt}function Tt(Ne){var $t;const Jt=Lt(Ne),Pr=f==null?void 0:f.get(Jt);Pr&&(f.delete(Jt),Pr.watchedDirectories&&l0(Pr.watchedDirectories,bh),($t=Pr.watcher)==null||$t.close(),rge(Jt,_))}function it(Ne,$t,Jt,Pr,li,Yn){return K($t,(Jn,w)=>Jt(Jn,w,Ne),Pr,li,Yn)}function Wt(Ne,$t,Jt){nr(Ne,Jt,$t),$t===2&&y.has(Jt)&&He.invalidateResolutionOfFile(Jt),vi(Jt),$r()}function nr(Ne,$t,Jt){te&&te.addOrDeleteFile(Ne,$t,Jt)}function Y(Ne){return f!=null&&f.has(Ne)?$S:it(Ne,Ne,Ge,500,R,B0.MissingFile)}function Ge(Ne,$t,Jt){nr(Ne,Jt,$t),$t===0&&i.has(Jt)&&(i.get(Jt).close(),i.delete(Jt),vi(Jt),$r())}function dt(){ae?rj(s||(s=new Map),new Map(Object.entries(ae)),Q):s&&l0(s,bh)}function Q(Ne,$t){return Ze(Ne,Jt=>{D.assert(N),D.assert(ce);const Pr=Lt(Jt);te&&te.addOrDeleteFileOrDirectory(Jt,Pr),vi(Pr),!nj({watchedDirPath:Lt(Ne),fileOrDirectory:Jt,fileOrDirectoryPath:Pr,configFileName:N,extraFileExtensions:V,options:ce,program:xt()||z,currentDirectory:O,useCaseSensitiveFileNames:E,writeLog:Re,toPath:Lt})&&n!==2&&(n=1,$r())},$t,R,B0.WildcardDirectory)}function at(Ne,$t,Jt,Pr){YZ(Ne,$t,_||(_=new Map),(li,Yn)=>K(li,(Jn,w)=>{var ge;nr(li,Yn,w),h&&QZ(h,Yn,Lt);const he=(ge=_.get(Yn))==null?void 0:ge.projects;he!=null&&he.size&&he.forEach(ue=>{if(N&&Lt(N)===ue)n=2;else{const _e=f==null?void 0:f.get(ue);_e&&(_e.reloadLevel=2),He.removeResolutionsFromProjectReferenceRedirects(ue)}$r()})},2e3,Jt,Pr),Lt)}function fr(Ne,$t,Jt){var Pr,li,Yn,Jn,w;Jt.watcher||(Jt.watcher=K(Ne,(ge,he)=>{nr(Ne,$t,he);const ue=f==null?void 0:f.get($t);ue&&(ue.reloadLevel=2),He.removeResolutionsFromProjectReferenceRedirects($t),$r()},2e3,((Pr=Jt.parsedCommandLine)==null?void 0:Pr.watchOptions)||R,B0.ConfigFileOfReferencedProject)),(li=Jt.parsedCommandLine)!=null&&li.wildcardDirectories?rj(Jt.watchedDirectories||(Jt.watchedDirectories=new Map),new Map(Object.entries((Yn=Jt.parsedCommandLine)==null?void 0:Yn.wildcardDirectories)),(ge,he)=>{var ue;return Ze(ge,_e=>{const pe=Lt(_e);te&&te.addOrDeleteFileOrDirectory(_e,pe),vi(pe);const q=f==null?void 0:f.get($t);q!=null&&q.parsedCommandLine&&(nj({watchedDirPath:Lt(ge),fileOrDirectory:_e,fileOrDirectoryPath:pe,configFileName:Ne,options:q.parsedCommandLine.options,program:q.parsedCommandLine.fileNames,currentDirectory:O,useCaseSensitiveFileNames:E,writeLog:Re,toPath:Lt})||q.reloadLevel!==2&&(q.reloadLevel=1,$r()))},he,((ue=Jt.parsedCommandLine)==null?void 0:ue.watchOptions)||R,B0.WildcardDirectoryOfReferencedProject)}):Jt.watchedDirectories&&(l0(Jt.watchedDirectories,bh),Jt.watchedDirectories=void 0),at($t,(Jn=Jt.parsedCommandLine)==null?void 0:Jn.options,((w=Jt.parsedCommandLine)==null?void 0:w.watchOptions)||R,B0.ExtendedConfigOfReferencedProject)}}var aPe=or({"src/compiler/watchPublic.ts"(){"use strict";ho()}});function XY(e){return Xl(e,".json")?e:ta(e,"tsconfig.json")}var ZY,sPe=or({"src/compiler/tsbuild.ts"(){"use strict";ho(),ZY=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(ZY||{})}});function oPe(e,t,n){const i=e.get(t);let s;return i||(s=n(),e.set(t,s)),i||s}function YY(e,t){return oPe(e,t,()=>new Map)}function gP(e){return e.now?e.now():new Date}function HS(e){return!!e&&!!e.buildOrder}function Cj(e){return HS(e)?e.buildOrder:e}function r1e(e,t){return n=>{let i=t?`[${M3(dP(e),"\x1B[90m")}] `:`${dP(e)} - `;i+=`${Sb(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function n1e(e,t,n,i){const s=$Y(e,t);return s.getModifiedTime=e.getModifiedTime?o=>e.getModifiedTime(o):W_,s.setModifiedTime=e.setModifiedTime?(o,l)=>e.setModifiedTime(o,l):Ho,s.deleteFile=e.deleteFile?o=>e.deleteFile(o):Ho,s.reportDiagnostic=n||pP(e),s.reportSolutionBuilderStatus=i||r1e(e),s.now=Zs(e,e.now),s}function cPe(e=Cu,t,n,i,s){const o=n1e(e,t,n,i);return o.reportErrorSummary=s,o}function lPe(e=Cu,t,n,i,s){const o=n1e(e,t,n,i),l=VY(e,s);return Ag(o,l),o}function uPe(e){const t={};return FI.forEach(n=>{Hs(e,n.name)&&(t[n.name]=e[n.name])}),t}function _Pe(e,t,n){return w1e(!1,e,t,n)}function fPe(e,t,n,i){return w1e(!0,e,t,n,i)}function pPe(e,t,n,i,s){const o=t,l=t,f=uPe(i),_=qY(o,()=>O.projectCompilerOptions);Tj(_),_.getParsedCommandLine=N=>j7(O,N,Vg(O,N)),_.resolveModuleNameLiterals=Zs(o,o.resolveModuleNameLiterals),_.resolveTypeReferenceDirectiveReferences=Zs(o,o.resolveTypeReferenceDirectiveReferences),_.resolveLibrary=Zs(o,o.resolveLibrary),_.resolveModuleNames=Zs(o,o.resolveModuleNames),_.resolveTypeReferenceDirectives=Zs(o,o.resolveTypeReferenceDirectives),_.getModuleResolutionCache=Zs(o,o.getModuleResolutionCache);let h,m;!_.resolveModuleNameLiterals&&!_.resolveModuleNames&&(h=qk(_.getCurrentDirectory(),_.getCanonicalFileName),_.resolveModuleNameLiterals=(N,B,U,V,re)=>cP(N,B,U,V,re,o,h,lY),_.getModuleResolutionCache=()=>h),!_.resolveTypeReferenceDirectiveReferences&&!_.resolveTypeReferenceDirectives&&(m=kB(_.getCurrentDirectory(),_.getCanonicalFileName,void 0,h==null?void 0:h.getPackageJsonInfoCache()),_.resolveTypeReferenceDirectiveReferences=(N,B,U,V,re)=>cP(N,B,U,V,re,o,m,sj));let y;_.resolveLibrary||(y=qk(_.getCurrentDirectory(),_.getCanonicalFileName,void 0,h==null?void 0:h.getPackageJsonInfoCache()),_.resolveLibrary=(N,B,U)=>CB(N,B,U,o,y)),_.getBuildInfo=(N,B)=>h1e(O,N,Vg(O,B),void 0);const{watchFile:T,watchDirectory:k,writeLog:E}=WY(l,i),O={host:o,hostWithWatch:l,parseConfigFileHost:uj(o),write:Zs(o,o.trace),options:i,baseCompilerOptions:f,rootNames:n,baseWatchOptions:s,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:_,moduleResolutionCache:h,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:N=>o.readFile(N),projectCompilerOptions:f,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:T,watchDirectory:k,writeLog:E};return O}function em(e,t){return Sl(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Vg(e,t){const{resolvedConfigFilePaths:n}=e,i=n.get(t);if(i!==void 0)return i;const s=em(e,t);return n.set(t,s),s}function i1e(e){return!!e.options}function dPe(e,t){const n=e.configFileCache.get(t);return n&&i1e(n)?n:void 0}function j7(e,t,n){const{configFileCache:i}=e,s=i.get(n);if(s)return i1e(s)?s:void 0;Kc("SolutionBuilder::beforeConfigFileParsing");let o;const{parseConfigFileHost:l,baseCompilerOptions:f,baseWatchOptions:_,extendedConfigCache:h,host:m}=e;let y;return m.getParsedCommandLine?(y=m.getParsedCommandLine(t),y||(o=zu(p.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=T=>o=T,y=wI(t,f,l,h,_),l.onUnRecoverableConfigFileDiagnostic=Ho),i.set(n,y||o),Kc("SolutionBuilder::afterConfigFileParsing"),I_("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function Qk(e,t){return XY(ud(e.compilerHost.getCurrentDirectory(),t))}function a1e(e,t){const n=new Map,i=new Map,s=[];let o,l;for(const _ of t)f(_);return l?{buildOrder:o||tt,circularDiagnostics:l}:o||tt;function f(_,h){const m=Vg(e,_);if(i.has(m))return;if(n.has(m)){h||(l||(l=[])).push(zu(p.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join(`\r -`)));return}n.set(m,!0),s.push(_);const y=j7(e,_,m);if(y&&y.projectReferences)for(const T of y.projectReferences){const k=Qk(e,T.path);f(k,h||T.circular)}s.pop(),i.set(m,!0),(o||(o=[])).push(_)}}function hP(e){return e.buildOrder||mPe(e)}function mPe(e){const t=a1e(e,e.rootNames.map(s=>Qk(e,s)));e.resolvedConfigFilePaths.clear();const n=new Map(Cj(t).map(s=>[Vg(e,s),!0])),i={onDeleteValue:Ho};return Xy(e.configFileCache,n,i),Xy(e.projectStatus,n,i),Xy(e.builderPrograms,n,i),Xy(e.diagnostics,n,i),Xy(e.projectPendingBuild,n,i),Xy(e.projectErrorsReported,n,i),Xy(e.buildInfoCache,n,i),Xy(e.outputTimeStamps,n,i),e.watch&&(Xy(e.allWatchedConfigFiles,n,{onDeleteValue:_h}),e.allWatchedExtendedConfigFiles.forEach(s=>{s.projects.forEach(o=>{n.has(o)||s.projects.delete(o)}),s.close()}),Xy(e.allWatchedWildcardDirectories,n,{onDeleteValue:s=>s.forEach(bh)}),Xy(e.allWatchedInputFiles,n,{onDeleteValue:s=>s.forEach(_h)}),Xy(e.allWatchedPackageJsonFiles,n,{onDeleteValue:s=>s.forEach(_h)})),e.buildOrder=t}function s1e(e,t,n){const i=t&&Qk(e,t),s=hP(e);if(HS(s))return s;if(i){const l=Vg(e,i);if(zi(s,_=>Vg(e,_)===l)===-1)return}const o=i?a1e(e,[i]):s;return D.assert(!HS(o)),D.assert(!n||i!==void 0),D.assert(!n||o[o.length-1]===i),n?o.slice(0,o.length-1):o}function o1e(e){e.cache&&QY(e);const{compilerHost:t,host:n}=e,i=e.readFileWithCache,s=t.getSourceFile,{originalReadFile:o,originalFileExists:l,originalDirectoryExists:f,originalCreateDirectory:_,originalWriteFile:h,getSourceFileWithCache:m,readFileWithCache:y}=sP(n,T=>em(e,T),(...T)=>s.call(t,...T));e.readFileWithCache=y,t.getSourceFile=m,e.cache={originalReadFile:o,originalFileExists:l,originalDirectoryExists:f,originalCreateDirectory:_,originalWriteFile:h,originalReadFileWithCache:i,originalGetSourceFile:s}}function QY(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:i,extendedConfigCache:s,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:f}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,s.clear(),o==null||o.clear(),l==null||l.clear(),f==null||f.clear(),e.cache=void 0}function c1e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function l1e({projectPendingBuild:e},t,n){const i=e.get(t);(i===void 0||ie.projectPendingBuild.set(Vg(e,i),0)),t&&t.throwIfCancellationRequested()}function _1e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function gPe(e,t,n,i,s){let o=!0;return{kind:2,project:t,projectPath:n,buildOrder:s,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{v1e(e,i,n),o=!1},done:()=>(o&&v1e(e,i,n),Kc("SolutionBuilder::Timestamps only updates"),_1e(e,n))}}function f1e(e,t,n,i,s,o,l){let f=e===0?0:4,_,h,m;return e===0?{kind:e,project:n,projectPath:i,buildOrder:l,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>T(Jc),getProgram:()=>T(R=>R.getProgramOrUndefined()),getSourceFile:R=>T(le=>le.getSourceFile(R)),getSourceFiles:()=>k(R=>R.getSourceFiles()),getOptionsDiagnostics:R=>k(le=>le.getOptionsDiagnostics(R)),getGlobalDiagnostics:R=>k(le=>le.getGlobalDiagnostics(R)),getConfigFileParsingDiagnostics:()=>k(R=>R.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(R,le)=>k(ae=>ae.getSyntacticDiagnostics(R,le)),getAllDependencies:R=>k(le=>le.getAllDependencies(R)),getSemanticDiagnostics:(R,le)=>k(ae=>ae.getSemanticDiagnostics(R,le)),getSemanticDiagnosticsOfNextAffectedFile:(R,le)=>T(ae=>ae.getSemanticDiagnosticsOfNextAffectedFile&&ae.getSemanticDiagnosticsOfNextAffectedFile(R,le)),emit:(R,le,ae,ye,$)=>{if(R||ye)return T(ee=>{var te,me;return ee.emit(R,le,ae,ye,$||((me=(te=t.host).getCustomTransformers)==null?void 0:me.call(te,n)))});if(ce(2,ae),f===5)return V(le,ae);if(f===3)return U(le,ae,$)},done:y}:{kind:e,project:n,projectPath:i,buildOrder:l,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(R,le)=>f!==4?m:z(R,le),done:y};function y(R,le,ae){return ce(8,R,le,ae),Kc(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),_1e(t,i)}function T(R){return ce(0),_&&R(_)}function k(R){return T(R)||tt}function E(){var R,le;if(D.assert(_===void 0),t.options.dry){Rp(t,p.A_non_dry_build_would_build_project_0,n),h=1,f=7;return}if(t.options.verbose&&Rp(t,p.Building_project_0,n),o.fileNames.length===0){Kk(t,i,R7(o)),h=0,f=7;return}const{host:ae,compilerHost:ye}=t;t.projectCompilerOptions=o.options,(R=t.moduleResolutionCache)==null||R.update(o.options),(le=t.typeReferenceDirectiveResolutionCache)==null||le.update(o.options),_=ae.createProgram(o.fileNames,o.options,ye,yPe(t,i,o),R7(o),o.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(i,t.moduleResolutionCache&&er(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),([$,ee])=>[t.host.realpath&&ee?em(t,t.host.realpath($)):$,ee])),t.builderPrograms.set(i,_)),f++}function O(R,le,ae){R.length?{buildResult:h,step:f}=tQ(t,i,_,o,R,le,ae):f++}function N(R){D.assertIsDefined(_),O([..._.getConfigFileParsingDiagnostics(),..._.getOptionsDiagnostics(R),..._.getGlobalDiagnostics(R),..._.getSyntacticDiagnostics(void 0,R)],8,"Syntactic")}function B(R){O(D.checkDefined(_).getSemanticDiagnostics(void 0,R),16,"Semantic")}function U(R,le,ae){var ye,$,ee;D.assertIsDefined(_),D.assert(f===3);const te=_.saveEmitState();let me;const ve=nt=>(me||(me=[])).push(nt),we=[],{emitResult:K}=bj(_,ve,void 0,void 0,(nt,wt,xt,Zt,Qe,Mt)=>we.push({name:nt,text:wt,writeByteOrderMark:xt,data:Mt}),le,!1,ae||(($=(ye=t.host).getCustomTransformers)==null?void 0:$.call(ye,n)));if(me)return _.restoreEmitState(te),{buildResult:h,step:f}=tQ(t,i,_,o,me,32,"Declaration file"),{emitSkipped:!0,diagnostics:K.diagnostics};const{host:Ze,compilerHost:Re}=t,Fe=(ee=_.hasChangedEmitSignature)!=null&&ee.call(_)?0:2,Ue=sk(),Ae=new Map,Me=_.getCompilerOptions(),He=AN(Me);let je,Pe;return we.forEach(({name:nt,text:wt,writeByteOrderMark:xt,data:Zt})=>{const Qe=em(t,nt);Ae.set(em(t,nt),nt),Zt!=null&&Zt.buildInfo&&nQ(t,Zt.buildInfo,i,Me,Fe);const Mt=Zt!=null&&Zt.differsOnlyInMap?Xa(t.host,nt):void 0;Kw(R?{writeFile:R}:Re,Ue,nt,wt,xt),Zt!=null&&Zt.differsOnlyInMap?t.host.setModifiedTime(nt,Mt):!He&&t.watch&&(je||(je=rQ(t,i))).set(Qe,Pe||(Pe=gP(t.host)))}),re(Ue,Ae,we.length?we[0].name:HZ(o,!Ze.useCaseSensitiveFileNames()),Fe),K}function V(R,le){D.assertIsDefined(_),D.assert(f===5);const ae=_.emitBuildInfo((ye,$,ee,te,me,ve)=>{ve!=null&&ve.buildInfo&&nQ(t,ve.buildInfo,i,_.getCompilerOptions(),2),R?R(ye,$,ee,te,me,ve):t.compilerHost.writeFile(ye,$,ee,te,me,ve)},le);return ae.diagnostics.length&&(vP(t,ae.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...ae.diagnostics]),h=64&h),ae.emittedFiles&&t.write&&ae.emittedFiles.forEach(ye=>m1e(t,o,ye)),eQ(t,_,o),f=7,ae}function re(R,le,ae,ye){const $=R.getDiagnostics();return $.length?({buildResult:h,step:f}=tQ(t,i,_,o,$,64,"Emit"),$):(t.write&&le.forEach(ee=>m1e(t,o,ee)),y1e(t,o,i,p.Updating_unchanged_output_timestamps_of_project_0,le),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:ae}),eQ(t,_,o),f=7,h=ye,$)}function z(R,le){var ae,ye,$,ee;if(D.assert(e===1),t.options.dry){Rp(t,p.A_non_dry_build_would_update_output_of_project_0,n),h=1,f=7;return}t.options.verbose&&Rp(t,p.Updating_output_of_project_0,n);const{compilerHost:te}=t;t.projectCompilerOptions=o.options,(ye=(ae=t.host).beforeEmitBundle)==null||ye.call(ae,o);const me=ege(o,te,Fe=>{const Ue=Qk(t,Fe.path);return j7(t,Ue,Vg(t,Ue))},le||((ee=($=t.host).getCustomTransformers)==null?void 0:ee.call($,n)));if(bs(me))return Rp(t,p.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,n,lf(t,me)),f=6,m=f1e(0,t,n,i,s,o,l);D.assert(!!me.length);const ve=sk(),we=new Map;let K=2;const Ze=t.buildInfoCache.get(i).buildInfo||void 0;return me.forEach(({name:Fe,text:Ue,writeByteOrderMark:Ae,data:Me})=>{var He,je;we.set(em(t,Fe),Fe),Me!=null&&Me.buildInfo&&(((He=Me.buildInfo.program)==null?void 0:He.outSignature)!==((je=Ze==null?void 0:Ze.program)==null?void 0:je.outSignature)&&(K&=-3),nQ(t,Me.buildInfo,i,o.options,K)),Kw(R?{writeFile:R}:te,ve,Fe,Ue,Ae)}),{emitSkipped:!1,diagnostics:re(ve,we,me[0].name,K)}}function ce(R,le,ae,ye){for(;f<=R&&f<8;){const $=f;switch(f){case 0:E();break;case 1:N(le);break;case 2:B(le);break;case 3:U(ae,le,ye);break;case 5:V(ae,le);break;case 4:z(ae,ye);break;case 6:D.checkDefined(m).done(le,ae,ye),f=8;break;case 7:TPe(t,n,i,s,o,l,D.checkDefined(h)),f++;break;case 8:default:}D.assert(f>$)}}}function hPe({options:e},t,n){return t.type!==3||e.force?!0:n.fileNames.length===0||!!R7(n).length||!AN(n.options)}function p1e(e,t,n){if(!e.projectPendingBuild.size||HS(t))return;const{options:i,projectPendingBuild:s}=e;for(let o=0;o{const k=D.checkDefined(e.filesWatched.get(f));D.assert(wj(k)),k.modifiedTime=T,k.callbacks.forEach(E=>E(m,y,T))},i,s,o,l);e.filesWatched.set(f,{callbacks:[n],watcher:h,modifiedTime:_})}return{close:()=>{const h=D.checkDefined(e.filesWatched.get(f));D.assert(wj(h)),h.callbacks.length===1?(e.filesWatched.delete(f),bh(h)):Px(h.callbacks,n)}}}function rQ(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function nQ(e,t,n,i,s){const o=s2(i),l=iQ(e,o,n),f=gP(e.host);l?(l.buildInfo=t,l.modifiedTime=f,s&2||(l.latestChangedDtsTime=f)):e.buildInfoCache.set(n,{path:em(e,o),buildInfo:t,modifiedTime:f,latestChangedDtsTime:s&2?void 0:f})}function iQ(e,t,n){const i=em(e,t),s=e.buildInfoCache.get(n);return(s==null?void 0:s.path)===i?s:void 0}function h1e(e,t,n,i){const s=em(e,t),o=e.buildInfoCache.get(n);if(o!==void 0&&o.path===s)return o.buildInfo||void 0;const l=e.readFileWithCache(t),f=l?ej(t,l):void 0;return e.buildInfoCache.set(n,{path:s,buildInfo:f||!1,modifiedTime:i||Ap}),f}function aQ(e,t,n,i){const s=g1e(e,t);if(nO&&(E=ae,O=ye),T&&B.add(em(e,ae))}if(T){k||(k=AY(T,_,f));for(const ae of k.roots)if(!B.has(ae))return{type:10,buildInfoFile:_,inputFile:ae}}if(!_){const ae=QB(t,!f.useCaseSensitiveFileNames()),ye=rQ(e,n);for(const $ of ae){const ee=em(e,$);let te=ye==null?void 0:ye.get(ee);if(te||(te=Xa(e.host,$),ye==null||ye.set(ee,te)),te===Ap)return{type:4,missingOutputFileName:$};if(teaQ(e,ae,m,h));if(R)return R;const le=Vt(e.lastCachedPackageJsonLookups.get(n)||tt,([ae])=>aQ(e,ae,m,h));return le||(re&&V?{type:3,outOfDateOutputFileName:h,newerProjectName:z}:{type:V?2:N?15:1,newestInputFileTime:O,newestInputFileName:E,oldestOutputFileName:h})}function bPe(e,t,n){return e.buildInfoCache.get(n).path===t.path}function sQ(e,t,n){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(n);if(i!==void 0)return i;Kc("SolutionBuilder::beforeUpToDateCheck");const s=vPe(e,t,n);return Kc("SolutionBuilder::afterUpToDateCheck"),I_("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,s),s}function y1e(e,t,n,i,s){if(t.options.noEmit)return;let o;const l=s2(t.options);if(l){s!=null&&s.has(em(e,l))||(e.options.verbose&&Rp(e,i,t.options.configFilePath),e.host.setModifiedTime(l,o=gP(e.host)),iQ(e,l,n).modifiedTime=o),e.outputTimeStamps.delete(n);return}const{host:f}=e,_=QB(t,!f.useCaseSensitiveFileNames()),h=rQ(e,n),m=h?new Set:void 0;if(!s||_.length!==s.size){let y=!!e.options.verbose;for(const T of _){const k=em(e,T);s!=null&&s.has(k)||(y&&(y=!1,Rp(e,i,t.options.configFilePath)),f.setModifiedTime(T,o||(o=gP(e.host))),h&&(h.set(k,o),m.add(k)))}}h==null||h.forEach((y,T)=>{!(s!=null&&s.has(T))&&!m.has(T)&&h.delete(T)})}function xPe(e,t,n){if(!t.composite)return;const i=D.checkDefined(e.buildInfoCache.get(n));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const s=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(ms(i.buildInfo.program.latestChangedDtsFile,ga(i.path))):void 0;return i.latestChangedDtsTime=s||!1,s}function v1e(e,t,n){if(e.options.dry)return Rp(e,p.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);y1e(e,t,n,p.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:HZ(t,!e.host.useCaseSensitiveFileNames())})}function TPe(e,t,n,i,s,o,l){if(!(l&124)&&s.options.composite)for(let f=i+1;fe.diagnostics.has(Vg(e,h)))?_?2:1:0}function x1e(e,t,n){Kc("SolutionBuilder::beforeClean");const i=kPe(e,t,n);return Kc("SolutionBuilder::afterClean"),I_("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function kPe(e,t,n){const i=s1e(e,t,n);if(!i)return 3;if(HS(i))return vP(e,i.circularDiagnostics),4;const{options:s,host:o}=e,l=s.dry?[]:void 0;for(const f of i){const _=Vg(e,f),h=j7(e,f,_);if(h===void 0){E1e(e,_);continue}const m=QB(h,!o.useCaseSensitiveFileNames());if(!m.length)continue;const y=new Set(h.fileNames.map(T=>em(e,T)));for(const T of m)y.has(em(e,T))||o.fileExists(T)&&(l?l.push(T):(o.deleteFile(T),oQ(e,_,0)))}return l&&Rp(e,p.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(f=>`\r - * ${f}`).join("")),0}function oQ(e,t,n){e.host.getParsedCommandLine&&n===1&&(n=2),n===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,c1e(e,t),l1e(e,t,n),o1e(e)}function yP(e,t,n){e.reportFileChangeDetected=!0,oQ(e,t,n),T1e(e,250,!0)}function T1e(e,t,n){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(CPe,t,"timerToBuildInvalidatedProject",e,n))}function CPe(e,t,n){Kc("SolutionBuilder::beforeBuild");const i=wPe(t,n);Kc("SolutionBuilder::afterBuild"),I_("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&A1e(t,i)}function wPe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),uQ(e,p.File_change_detected_Starting_incremental_compilation));let n=0;const i=hP(e),s=KY(e,i,!1);if(s)for(s.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const o=p1e(e,i,!1);if(!o)break;if(o.kind!==2&&(t||n===5)){T1e(e,100,!1);return}d1e(e,o,i).done(),o.kind!==2&&n++}return QY(e),i}function S1e(e,t,n,i){!e.watch||e.allWatchedConfigFiles.has(n)||e.allWatchedConfigFiles.set(n,Ej(e,t,()=>yP(e,n,2),2e3,i==null?void 0:i.watchOptions,B0.ConfigFile,t))}function k1e(e,t,n){YZ(t,n==null?void 0:n.options,e.allWatchedExtendedConfigFiles,(i,s)=>Ej(e,i,()=>{var o;return(o=e.allWatchedExtendedConfigFiles.get(s))==null?void 0:o.projects.forEach(l=>yP(e,l,2))},2e3,n==null?void 0:n.watchOptions,B0.ExtendedConfigFile),i=>em(e,i))}function C1e(e,t,n,i){e.watch&&rj(YY(e.allWatchedWildcardDirectories,n),new Map(Object.entries(i.wildcardDirectories)),(s,o)=>e.watchDirectory(s,l=>{var f;nj({watchedDirPath:em(e,s),fileOrDirectory:l,fileOrDirectoryPath:em(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(n)||((f=dPe(e,n))==null?void 0:f.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:_=>e.writeLog(_),toPath:_=>em(e,_)})||yP(e,n,1)},o,i==null?void 0:i.watchOptions,B0.WildcardDirectory,t))}function cQ(e,t,n,i){e.watch&&fk(YY(e.allWatchedInputFiles,n),Fm(i.fileNames,s=>em(e,s)),{createNewValue:(s,o)=>Ej(e,o,()=>yP(e,n,0),250,i==null?void 0:i.watchOptions,B0.SourceFile,t),onDeleteValue:_h})}function lQ(e,t,n,i){!e.watch||!e.lastCachedPackageJsonLookups||fk(YY(e.allWatchedPackageJsonFiles,n),new Map(e.lastCachedPackageJsonLookups.get(n)),{createNewValue:(s,o)=>Ej(e,s,()=>yP(e,n,0),2e3,i==null?void 0:i.watchOptions,B0.PackageJson,t),onDeleteValue:_h})}function EPe(e,t){if(e.watchAllProjectsPending){Kc("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const n of Cj(t)){const i=Vg(e,n),s=j7(e,n,i);S1e(e,n,i,s),k1e(e,i,s),s&&(C1e(e,n,i,s),cQ(e,n,i,s),lQ(e,n,i,s))}Kc("SolutionBuilder::afterWatcherCreation"),I_("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function APe(e){l0(e.allWatchedConfigFiles,_h),l0(e.allWatchedExtendedConfigFiles,bh),l0(e.allWatchedWildcardDirectories,t=>l0(t,bh)),l0(e.allWatchedInputFiles,t=>l0(t,_h)),l0(e.allWatchedPackageJsonFiles,t=>l0(t,_h))}function w1e(e,t,n,i,s){const o=pPe(e,t,n,i,s);return{build:(l,f,_,h)=>b1e(o,l,f,_,h),clean:l=>x1e(o,l),buildReferences:(l,f,_,h)=>b1e(o,l,f,_,h,!0),cleanReferences:l=>x1e(o,l,!0),getNextInvalidatedProject:l=>(u1e(o,l),KY(o,hP(o),!1)),getBuildOrder:()=>hP(o),getUpToDateStatusOfProject:l=>{const f=Qk(o,l),_=Vg(o,f);return sQ(o,j7(o,f,_),_)},invalidateProject:(l,f)=>oQ(o,l,f||0),close:()=>APe(o)}}function lf(e,t){return Tw(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Rp(e,t,...n){e.host.reportSolutionBuilderStatus(zu(t,...n))}function uQ(e,t,...n){var i,s;(s=(i=e.hostWithWatch).onWatchStatusChange)==null||s.call(i,zu(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function vP({host:e},t){t.forEach(n=>e.reportDiagnostic(n))}function Kk(e,t,n){vP(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function E1e(e,t){Kk(e,t,[e.configFileCache.get(t)])}function A1e(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let s=0,o=[];HS(t)?(D1e(e,t.buildOrder),vP(e,t.circularDiagnostics),n&&(s+=yj(t.circularDiagnostics)),n&&(o=[...o,...vj(t.circularDiagnostics)])):(t.forEach(l=>{const f=Vg(e,l);e.projectErrorsReported.has(f)||vP(e,i.get(f)||tt)}),n&&i.forEach(l=>s+=yj(l)),n&&i.forEach(l=>[...o,...vj(l)])),e.watch?uQ(e,RY(s),s):e.host.reportErrorSummary&&e.host.reportErrorSummary(s,o)}function D1e(e,t){e.options.verbose&&Rp(e,p.Projects_in_this_build_Colon_0,t.map(n=>`\r - * `+lf(e,n)).join(""))}function DPe(e,t,n){switch(n.type){case 6:return Rp(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,lf(e,t),lf(e,n.outOfDateOutputFileName),lf(e,n.newerInputFileName));case 7:return Rp(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,lf(e,t),lf(e,n.outOfDateOutputFileName),lf(e,n.newerProjectName));case 4:return Rp(e,p.Project_0_is_out_of_date_because_output_file_1_does_not_exist,lf(e,t),lf(e,n.missingOutputFileName));case 5:return Rp(e,p.Project_0_is_out_of_date_because_there_was_error_reading_file_1,lf(e,t),lf(e,n.fileName));case 8:return Rp(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,lf(e,t),lf(e,n.buildInfoFile));case 9:return Rp(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,lf(e,t),lf(e,n.buildInfoFile));case 10:return Rp(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,lf(e,t),lf(e,n.buildInfoFile),lf(e,n.inputFile));case 1:if(n.newestInputFileTime!==void 0)return Rp(e,p.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,lf(e,t),lf(e,n.newestInputFileName||""),lf(e,n.oldestOutputFileName||""));break;case 3:return Rp(e,p.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,lf(e,t),lf(e,n.newerProjectName));case 2:return Rp(e,p.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,lf(e,t));case 15:return Rp(e,p.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,lf(e,t));case 11:return Rp(e,p.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,lf(e,t),lf(e,n.upstreamProjectName));case 12:return Rp(e,n.upstreamProjectBlocked?p.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:p.Project_0_can_t_be_built_because_its_dependency_1_has_errors,lf(e,t),lf(e,n.upstreamProjectName));case 0:return Rp(e,p.Failed_to_parse_file_0_Colon_1,lf(e,t),n.reason);case 14:return Rp(e,p.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,lf(e,t),n.version,Zu);case 17:return Rp(e,p.Project_0_is_being_forcibly_rebuilt,lf(e,t));case 16:case 13:break;default:}}function Aj(e,t,n){e.options.verbose&&DPe(e,t,n)}var N1e,I1e,_Q,NPe=or({"src/compiler/tsbuildPublic.ts"(){"use strict";ho(),Q1(),N1e=new Date(-864e13),I1e=new Date(864e13),_Q=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(_Q||{})}}),ho=or({"src/compiler/_namespaces/ts.ts"(){"use strict";Co(),ow(),cw(),d5(),cD(),lD(),HT(),hi(),GT(),ewe(),twe(),swe(),Ewe(),$9e(),H9e(),G9e(),X9e(),oEe(),_Ee(),fEe(),AEe(),oAe(),cAe(),vAe(),HAe(),TDe(),ADe(),DDe(),zDe(),$De(),tNe(),cNe(),xNe(),TNe(),SNe(),DNe(),NNe(),INe(),PNe(),ONe(),MNe(),LNe(),FNe(),RNe(),BNe(),jNe(),zNe(),JNe(),UNe(),WNe(),qNe(),$Ne(),HNe(),GNe(),XNe(),tIe(),oIe(),yIe(),xIe(),EIe(),AIe(),DIe(),qIe(),GIe(),YIe(),rPe(),aPe(),sPe(),NPe(),fZ(),Q1()}});function P1e(e,t){return new Ed(Hd(t,`ts${kp}`)||Hd(t,"latest")).compareTo(e.version)<=0}function O1e(e){return gQ.has(e)?"node":e}function IPe(e,t){const n=EI(t,i=>e.readFile(i));return new Map(Object.entries(n.config))}function PPe(e,t){var n;const i=EI(t,s=>e.readFile(s));if((n=i.config)!=null&&n.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function OPe(e,t,n,i,s,o,l,f,_,h){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const m=new Map;n=Mr(n,re=>{const z=ec(re);if(d3(z))return z});const y=[];l.include&&B(l.include,"Explicitly included types");const T=l.exclude||[];if(!h.types){const re=new Set(n.map(ga));re.add(i),re.forEach(z=>{U(z,"bower.json","bower_components",y),U(z,"package.json","node_modules",y)})}if(l.disableFilenameBasedTypeAcquisition||V(n),f){const re=No(f.map(O1e),q1,tn);B(re,"Inferred typings from unresolved imports")}o.forEach((re,z)=>{const ce=_.get(z);m.has(z)&&m.get(z)===void 0&&ce!==void 0&&P1e(re,ce)&&m.set(z,re.typingLocation)});for(const re of T)m.delete(re)&&t&&t(`Typing for ${re} is in exclude list, will be ignored.`);const k=[],E=[];m.forEach((re,z)=>{re!==void 0?E.push(re):k.push(z)});const O={cachedTypingPaths:E,newTypingNames:k,filesToWatch:y};return t&&t(`Result: ${JSON.stringify(O)}`),O;function N(re){m.has(re)||m.set(re,void 0)}function B(re,z){t&&t(`${z}: ${JSON.stringify(re)}`),Vt(re,N)}function U(re,z,ce,R){const le=ta(re,z);let ae,ye;e.fileExists(le)&&(R.push(le),ae=EI(le,me=>e.readFile(me)).config,ye=lo([ae.dependencies,ae.devDependencies,ae.optionalDependencies,ae.peerDependencies],eo),B(ye,`Typing names in '${le}' dependencies`));const $=ta(re,ce);if(R.push($),!e.directoryExists($))return;const ee=[],te=ye?ye.map(me=>ta($,me,z)):e.readDirectory($,[".json"],void 0,void 0,3).filter(me=>{if(H_(me)!==z)return!1;const ve=G_(ec(me)),we=ve[ve.length-3][0]==="@";return we&&Cd(ve[ve.length-4])===ce||!we&&Cd(ve[ve.length-3])===ce});t&&t(`Searching for typing names in ${$}; all files: ${JSON.stringify(te)}`);for(const me of te){const ve=ec(me),K=EI(ve,Re=>e.readFile(Re)).config;if(!K.name)continue;const Ze=K.types||K.typings;if(Ze){const Re=ms(Ze,ga(ve));e.fileExists(Re)?(t&&t(` Package '${K.name}' provides its own types.`),m.set(K.name,Re)):t&&t(` Package '${K.name}' provides its own types but they are missing.`)}else ee.push(K.name)}B(ee," Found package names")}function V(re){const z=Mr(re,R=>{if(!d3(R))return;const le=Pd(Cd(H_(R))),ae=Ng(le);return s.get(ae)});z.length&&B(z,"Inferred typings from file names"),bt(re,R=>Xl(R,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),N("react"))}}function MPe(e){return fQ(e,!0)}function fQ(e,t){if(!e)return 1;if(e.length>yQ)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const n=/^@([^/]+)\/([^/]+)$/.exec(e);if(n){const i=fQ(n[1],!1);if(i!==0)return{name:n[1],isScopeName:!0,result:i};const s=fQ(n[2],!1);return s!==0?{name:n[2],isScopeName:!1,result:s}:0}}return encodeURIComponent(e)!==e?5:0}function LPe(e,t){return typeof e=="object"?M1e(t,e.result,e.name,e.isScopeName):M1e(t,e,t,!1)}function M1e(e,t,n,i){const s=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${s} name '${n}' cannot be empty`;case 2:return`'${e}':: ${s} name '${n}' should be less than ${yQ} characters`;case 3:return`'${e}':: ${s} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${s} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${s} name '${n}' contains non URI safe characters`;case 0:return D.fail();default:D.assertNever(t)}}var pQ,dQ,mQ,gQ,hQ,yQ,FPe=or({"src/jsTyping/jsTyping.ts"(){"use strict";Dj(),pQ=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],dQ=pQ.map(e=>`node:${e}`),mQ=[...pQ,...dQ],gQ=new Set(mQ),hQ=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(hQ||{}),yQ=214}}),z7={};Dl(z7,{NameValidationResult:()=>hQ,discoverTypings:()=>OPe,isTypingUpToDate:()=>P1e,loadSafeList:()=>IPe,loadTypesMap:()=>PPe,nodeCoreModuleList:()=>mQ,nodeCoreModules:()=>gQ,nonRelativeModuleNameForTypingCache:()=>O1e,prefixedNodeCoreModuleList:()=>dQ,renderPackageNameValidationFailure:()=>LPe,validatePackageName:()=>MPe});var RPe=or({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";FPe()}});function BPe(e){return Cu.args.indexOf(e)>=0}function jPe(e){const t=Cu.args.indexOf(e);return t>=0&&t{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(vQ||(vQ={}))}}),UPe=or({"src/jsTyping/types.ts"(){"use strict"}}),V1e={};Dl(V1e,{ActionInvalidate:()=>F1e,ActionPackageInstalled:()=>R1e,ActionSet:()=>L1e,ActionWatchTypingLocations:()=>U1e,Arguments:()=>vQ,EventBeginInstallTypes:()=>j1e,EventEndInstallTypes:()=>z1e,EventInitializationFailed:()=>J1e,EventTypesRegistry:()=>B1e,findArgument:()=>jPe,hasArgument:()=>BPe,nowString:()=>zPe});var VPe=or({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";JPe(),UPe()}}),Dj=or({"src/jsTyping/_namespaces/ts.ts"(){"use strict";ho(),RPe(),VPe()}});function W1e(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` -`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var bQ,xQ,TQ,SQ,j0,kQ,CQ,wQ,EQ,AQ,DQ,NQ,q1e,bP,IQ,PQ,OQ,MQ,LQ,FQ,RQ,BQ,jQ,WPe=or({"src/services/types.ts"(){"use strict";(e=>{class t{constructor(s){this.text=s}getText(s,o){return s===0&&o===this.text.length?this.text:this.text.substring(s,o)}getLength(){return this.text.length}getChangeRange(){}}function n(i){return new t(i)}e.fromString=n})(bQ||(bQ={})),xQ=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(xQ||{}),TQ=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(TQ||{}),SQ=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(SQ||{}),j0={},kQ=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(kQ||{}),CQ=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(CQ||{}),wQ=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(wQ||{}),EQ=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(EQ||{}),AQ=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(AQ||{}),DQ=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(DQ||{}),NQ=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(NQ||{}),q1e=W1e(` -`),bP=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(bP||{}),IQ=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(IQ||{}),PQ=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(PQ||{}),OQ=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(OQ||{}),MQ=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(MQ||{}),LQ=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(LQ||{}),FQ=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(FQ||{}),RQ=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(RQ||{}),BQ=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(BQ||{}),jQ=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(jQ||{})}});function xP(e){switch(e.kind){case 259:return jn(e)&&Iq(e)?7:1;case 168:case 207:case 171:case 170:case 302:case 303:case 173:case 172:case 175:case 176:case 177:case 261:case 217:case 218:case 298:case 290:return 1;case 167:case 263:case 264:case 186:return 2;case 352:return e.name===void 0?3:2;case 305:case 262:return 3;case 266:return Np(e)||tv(e)===1?5:4;case 265:case 274:case 275:case 270:case 271:case 276:case 277:return 7;case 311:return 5}return 7}function J7(e){e=YQ(e);const t=e.parent;return e.kind===311?1:Wu(t)||dd(t)||yh(t)||Ld(t)||hh(t)||Hf(t)&&e===t.name?7:Nj(e)?qPe(e):Gy(e)?xP(t):hm(e)&&Sn(e,Mf(q9,eS,z4))?7:XPe(e)?2:$Pe(e)?4:eu(t)?(D.assert(Ug(t.parent)),2):R4(t)?3:1}function qPe(e){const t=e.kind===165?e:Od(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===270?7:4}function Nj(e){for(;e.parent.kind===165;)e=e.parent;return Z5(e.parent)&&e.parent.moduleReference===e}function $Pe(e){return HPe(e)||GPe(e)}function HPe(e){let t=e,n=!0;if(t.parent.kind===165){for(;t.parent&&t.parent.kind===165;)t=t.parent;n=t.right===e}return t.parent.kind===182&&!n}function GPe(e){let t=e,n=!0;if(t.parent.kind===210){for(;t.parent&&t.parent.kind===210;)t=t.parent;n=t.name===e}if(!n&&t.parent.kind===232&&t.parent.parent.kind===297){const i=t.parent.parent.parent;return i.kind===262&&t.parent.parent.token===119||i.kind===263&&t.parent.parent.token===96}return!1}function XPe(e){switch(a9(e)&&(e=e.parent),e.kind){case 110:return!$y(e);case 196:return!0}switch(e.parent.kind){case 182:return!0;case 204:return!e.parent.isTypeOf;case 232:return ry(e.parent)}return!1}function zQ(e,t=!1,n=!1){return hE(e,go,Ij,t,n)}function gE(e,t=!1,n=!1){return hE(e,v3,Ij,t,n)}function JQ(e,t=!1,n=!1){return hE(e,ey,Ij,t,n)}function $1e(e,t=!1,n=!1){return hE(e,T7,ZPe,t,n)}function H1e(e,t=!1,n=!1){return hE(e,lp,Ij,t,n)}function G1e(e,t=!1,n=!1){return hE(e,$p,YPe,t,n)}function Ij(e){return e.expression}function ZPe(e){return e.tag}function YPe(e){return e.tagName}function hE(e,t,n,i,s){let o=i?X1e(e):Pj(e);return s&&(o=Gf(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function Pj(e){return eC(e)?e.parent:e}function X1e(e){return eC(e)||qQ(e)?e.parent:e}function Oj(e,t){for(;e;){if(e.kind===255&&e.label.escapedText===t)return e.label;e=e.parent}}function TP(e,t){return mi(e.expression)?e.expression.name.text===t:!1}function SP(e){var t;return Be(e)&&((t=di(e.parent,Pw))==null?void 0:t.label)===e}function UQ(e){var t;return Be(e)&&((t=di(e.parent,b3))==null?void 0:t.label)===e}function VQ(e){return UQ(e)||SP(e)}function WQ(e){var t;return((t=di(e.parent,R5))==null?void 0:t.tagName)===e}function Z1e(e){var t;return((t=di(e.parent,Od))==null?void 0:t.right)===e}function eC(e){var t;return((t=di(e.parent,mi))==null?void 0:t.name)===e}function qQ(e){var t;return((t=di(e.parent,Ll))==null?void 0:t.argumentExpression)===e}function $Q(e){var t;return((t=di(e.parent,Vu))==null?void 0:t.name)===e}function HQ(e){var t;return Be(e)&&((t=di(e.parent,Qs))==null?void 0:t.name)===e}function Mj(e){switch(e.parent.kind){case 171:case 170:case 302:case 305:case 173:case 172:case 176:case 177:case 266:return Es(e.parent)===e;case 211:return e.parent.argumentExpression===e;case 166:return!0;case 200:return e.parent.parent.kind===198;default:return!1}}function Y1e(e){return A4(e.parent.parent)&&qw(e.parent.parent)===e}function U7(e){for(M0(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 311:case 173:case 172:case 261:case 217:case 176:case 177:case 262:case 263:case 265:case 266:return e}}}function L3(e){switch(e.kind){case 311:return c_(e)?"module":"script";case 266:return"module";case 262:case 230:return"class";case 263:return"interface";case 264:case 344:case 352:return"type";case 265:return"enum";case 259:return t(e);case 207:return t(ch(e));case 218:case 261:case 217:return"function";case 176:return"getter";case 177:return"setter";case 173:case 172:return"method";case 302:const{initializer:n}=e;return Qs(n)?"method":"property";case 171:case 170:case 303:case 304:return"property";case 180:return"index";case 179:return"construct";case 178:return"call";case 175:case 174:return"constructor";case 167:return"type parameter";case 305:return"enum member";case 168:return Pi(e,16476)?"property":"parameter";case 270:case 275:case 280:case 273:case 279:return"alias";case 225:const i=Au(e),{right:s}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=L3(s);return l===""?"const":l;case 3:return _l(s)?"method":"property";case 4:return"property";case 5:return _l(s)?"method":"property";case 6:return"local class";default:return""}case 80:return hh(e.parent)?"alias":"";case 276:const o=L3(e.expression);return o===""?"const":o;default:return""}function t(n){return qy(n)?"const":Uw(n)?"let":"var"}}function tC(e){switch(e.kind){case 110:return!0;case 80:return iH(e)&&e.parent.kind===168;default:return!1}}function z0(e,t){const n=zy(t),i=t.getLineAndCharacterOfPosition(e).line;return n[i]}function wm(e,t){return GQ(e.pos,e.end,t)}function Q1e(e,t){return CP(e,t.pos)&&CP(e,t.end)}function kP(e,t){return e.pos<=t&&t<=e.end}function CP(e,t){return e.pos=n.end}function wP(e,t,n){return e.pos<=t&&e.end>=n}function yE(e,t,n){return Lj(e.pos,e.end,t,n)}function XQ(e,t,n,i){return Lj(e.getStart(t),e.end,n,i)}function Lj(e,t,n,i){const s=Math.max(e,n),o=Math.min(t,i);return si.kind===t)}function Rj(e){const t=on(e.parent.getChildren(),n=>Fk(n)&&wm(n,e));return D.assert(!t||Zn(t.getChildren(),e)),t}function ehe(e){return e.kind===90}function QPe(e){return e.kind===86}function KPe(e){return e.kind===100}function eOe(e){if(sp(e))return e.name;if(cf(e)){const t=e.modifiers&&on(e.modifiers,ehe);if(t)return t}if(Mp(e)){const t=on(e.getChildren(),QPe);if(t)return t}}function tOe(e){if(sp(e))return e.name;if(B_(e)){const t=on(e.modifiers,ehe);if(t)return t}if(_l(e)){const t=on(e.getChildren(),KPe);if(t)return t}}function rOe(e){let t;return Sn(e,n=>(Oa(n)&&(t=n),!Od(n.parent)&&!Oa(n.parent)&&!r7(n.parent))),t}function Bj(e,t){if(e.flags&8388608)return;const n=rz(e,t);if(n)return n;const i=rOe(e);return i&&t.getTypeAtLocation(i)}function nOe(e,t){if(!t)switch(e.kind){case 262:case 230:return eOe(e);case 261:case 217:return tOe(e);case 175:return e}if(sp(e))return e.name}function the(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(r2(e.importClause.namedBindings)){const n=de(e.importClause.namedBindings.elements);return n?n.name:void 0}else if(vb(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function rhe(e,t){if(e.exportClause){if(og(e.exportClause))return de(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(_y(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function iOe(e){if(e.types.length===1)return e.types[0].expression}function nhe(e,t){const{parent:n}=e;if(Do(e)&&(t||e.kind!==90)?lg(n)&&Zn(n.modifiers,e):e.kind===86?cf(n)||Mp(e):e.kind===100?B_(n)||_l(e):e.kind===120?Lp(n):e.kind===94?j4(n):e.kind===156?zg(n):e.kind===145||e.kind===144?Vu(n):e.kind===102?Hf(n):e.kind===139?sg(n):e.kind===153&&u0(n)){const i=nOe(n,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&of(n)&&n.declarations.length===1){const i=n.declarations[0];if(Be(i.name))return i.name}if(e.kind===156){if(hh(n)&&n.isTypeOnly){const i=the(n.parent,t);if(i)return i}if(Sf(n)&&n.isTypeOnly){const i=rhe(n,t);if(i)return i}}if(e.kind===130){if(Ld(n)&&n.propertyName||dd(n)&&n.propertyName||vb(n)||_y(n))return n.name;if(Sf(n)&&n.exportClause&&_y(n.exportClause))return n.exportClause.name}if(e.kind===102&&Tf(n)){const i=the(n,t);if(i)return i}if(e.kind===95){if(Sf(n)){const i=rhe(n,t);if(i)return i}if(Wu(n))return Gf(n.expression)}if(e.kind===149&&yh(n))return n.expression;if(e.kind===160&&(Tf(n)||Sf(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((e.kind===96||e.kind===119)&&Kd(n)&&n.token===e.kind){const i=iOe(n);if(i)return i}if(e.kind===96){if(eu(n)&&n.constraint&&Rg(n.constraint))return n.constraint.typeName;if(Ek(n)&&Rg(n.extendsType))return n.extendsType.typeName}if(e.kind===140&&AS(n))return n.typeParameter.name;if(e.kind===103&&eu(n)&&B9(n.parent))return n.name;if(e.kind===143&&NS(n)&&n.operator===143&&Rg(n.type))return n.type.typeName;if(e.kind===148&&NS(n)&&n.operator===148&&PG(n.type)&&Rg(n.type.elementType))return n.type.elementType.typeName;if(!t){if((e.kind===105&&v3(n)||e.kind===116&&OS(n)||e.kind===114&&Ak(n)||e.kind===135&&Dk(n)||e.kind===127&&zR(n)||e.kind===91&&Qfe(n))&&n.expression)return Gf(n.expression);if((e.kind===103||e.kind===104)&&Un(n)&&n.operatorToken===e)return Gf(n.right);if(e.kind===130&&sI(n)&&Rg(n.type))return n.type.typeName;if(e.kind===103&&RG(n)||e.kind===164&&oI(n))return Gf(n.expression)}return e}function YQ(e){return nhe(e,!1)}function jj(e){return nhe(e,!0)}function qm(e,t){return vE(e,t,n=>rg(n)||pd(n.kind)||Ea(n))}function vE(e,t,n){return ihe(e,t,!1,n,!1)}function Za(e,t){return ihe(e,t,!0,void 0,!1)}function ihe(e,t,n,i,s){let o=e,l;e:for(;;){const _=o.getChildren(e),h=Io(_,t,(m,y)=>y,(m,y)=>{const T=_[m].getEnd();if(Tt?1:f(_[m],k,T)?_[m-1]&&f(_[m-1])?1:0:i&&k===t&&_[m-1]&&_[m-1].getEnd()===t&&f(_[m-1])?1:-1});if(l)return l;if(h>=0&&_[h]){o=_[h];continue e}return o}function f(_,h,m){if(m!=null||(m=_.getEnd()),mt))return!1;if(tn.getStart(e)&&t(o.pos<=e.pos&&o.end>e.end||o.pos===e.end)&&nK(o,n)?i(o):void 0)}}function j_(e,t,n,i){const s=o(n||t);return D.assert(!(s&&AP(s))),s;function o(l){if(she(l)&&l.kind!==1)return l;const f=l.getChildren(t),_=Io(f,e,(m,y)=>y,(m,y)=>e=f[m-1].end?0:1:-1);if(_>=0&&f[_]){const m=f[_];if(e=e||!nK(m,t)||AP(m)){const k=KQ(f,_,t,l.kind);return k?!i&&ML(k)&&k.getChildren(t).length?o(k):QQ(k,t):void 0}else return o(m)}D.assert(n!==void 0||l.kind===311||l.kind===1||ML(l));const h=KQ(f,f.length,t,l.kind);return h&&QQ(h,t)}}function she(e){return ZT(e)&&!AP(e)}function QQ(e,t){if(she(e))return e;const n=e.getChildren(t);if(n.length===0)return e;const i=KQ(n,n.length,t,e.kind);return i&&QQ(i,t)}function KQ(e,t,n,i){for(let s=t-1;s>=0;s--){const o=e[s];if(AP(o))s===0&&(i===12||i===284)&&D.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(nK(e[s],n))return e[s]}}function W7(e,t,n=j_(t,e)){if(n&&zq(n)){const i=n.getStart(e),s=n.getEnd();if(in.getStart(e)}function che(e,t){const n=Za(e,t);return!!(kS(n)||n.kind===19&&V9(n.parent)&&fy(n.parent.parent)||n.kind===30&&$p(n.parent)&&fy(n.parent.parent))}function Jj(e,t){function n(i){for(;i;)if(i.kind>=284&&i.kind<=293||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===283){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return n(Za(e,t))}function Uj(e,t,n){const i=Uo(e.kind),s=Uo(t),o=e.getFullStart(),l=n.text.lastIndexOf(s,o);if(l===-1)return;if(n.text.lastIndexOf(i,o-1)!!o.typeParameters&&o.typeParameters.length>=t)}function rK(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let n=e,i=0,s=0;for(;n;){switch(n.kind){case 30:if(n=j_(n.getFullStart(),t),n&&n.kind===29&&(n=j_(n.getFullStart(),t)),!n||!Be(n))return;if(!i)return Gy(n)?void 0:{called:n,nTypeArguments:s};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(n=Uj(n,19,t),!n)return;break;case 22:if(n=Uj(n,21,t),!n)return;break;case 24:if(n=Uj(n,23,t),!n)return;break;case 28:s++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Oa(n))break;return}n=j_(n.getFullStart(),t)}}function o2(e,t,n){return Q_.getRangeOfEnclosingComment(e,t,void 0,n)}function uhe(e,t){const n=Za(e,t);return!!Sn(n,cg)}function nK(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function bE(e,t=0){const n=[],i=cp(e)?Eq(e)&~t:0;return i&8&&n.push("private"),i&16&&n.push("protected"),i&4&&n.push("public"),(i&32||fu(e))&&n.push("static"),i&256&&n.push("abstract"),i&1&&n.push("export"),i&8192&&n.push("deprecated"),e.flags&16777216&&n.push("declare"),e.kind===276&&n.push("export"),n.length>0?n.join(","):""}function _he(e){if(e.kind===182||e.kind===212)return e.typeArguments;if(Qs(e)||e.kind===262||e.kind===263)return e.typeParameters}function Vj(e){return e===2||e===3}function iK(e){return!!(e===11||e===14||sb(e))}function fhe(e,t,n){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(n)}function phe(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return t.length===2&&(fhe(n,t[0],t[1])||fhe(n,t[1],t[0]))}function NP(e,t,n){return sb(e.kind)&&e.getStart(n){const n=Nc(t);return!e[n]&&(e[n]=!0)}}function Hj(e){return e.getText(0,e.getLength())}function OP(e,t){let n="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function vhe(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function _K(e){return!!e.module||gc(e)>=2||!!e.noEmit}function q7(e,t){return{fileExists:n=>e.fileExists(n),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Zs(t,t.readFile),useCaseSensitiveFileNames:Zs(t,t.useCaseSensitiveFileNames),getSymlinkCache:Zs(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Zs(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var n;return(n=e.getModuleResolutionCache())==null?void 0:n.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Zs(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:n=>e.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),getNearestAncestorDirectoryWithPackageJson:Zs(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function fK(e,t){return Xs(fa({},q7(e,t)),{getCommonSourceDirectory:()=>e.getCommonSourceDirectory()})}function Gj(e){return e===2||e>=3&&e<=99||e===100}function bhe(e,t,n,i){return e||t&&t.length?l2(e,t,n,i):void 0}function l2(e,t,n,i,s){return M.createImportDeclaration(void 0,e||t?M.createImportClause(!!s,e,t&&t.length?M.createNamedImports(t):void 0):void 0,typeof n=="string"?XS(n,i):n,void 0)}function XS(e,t){return M.createStringLiteral(e,t===0)}function pK(e,t){return uF(e,t)?1:0}function f0(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const n=e.imports&&on(e.imports,i=>sc(i)&&!Ol(i.parent));return n?pK(n,e):1}}function dK(e){switch(e){case 0:return"'";case 1:return'"';default:return D.assertNever(e)}}function Xj(e){const t=Zj(e);return t===void 0?void 0:Ba(t)}function Zj(e){return e.escapedName!=="default"?e.escapedName:bo(e.declarations,t=>{const n=Es(t);return n&&n.kind===80?n.escapedText:void 0})}function Yj(e){return Wc(e)&&(yh(e.parent)||Tf(e.parent)||Nd(e.parent,!1)&&e.parent.arguments[0]===e||xm(e.parent)&&e.parent.arguments[0]===e)}function LP(e){return Cc(e)&&Bg(e.parent)&&Be(e.name)&&!e.propertyName}function Qj(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function FP(e,t,n){if(e)for(;e.parent;){if(Ja(e.parent)||!aOe(n,e.parent,t))return e;e=e.parent}}function aOe(e,t,n){return Cq(e,t.getStart(n))&&t.getEnd()<=qf(e)}function rC(e,t){return lg(e)?on(e.modifiers,n=>n.kind===t):void 0}function TE(e,t,n,i,s){const l=(ns(n)?n[0]:n).kind===242?I$:o7,f=Mn(t.statements,l);let _=ns(n)?pg.detectImportDeclarationSorting(n,s):3;const h=pg.getOrganizeImportsComparer(s,_===2),m=ns(n)?mr(n,(y,T)=>pg.compareImportsOrRequireStatements(y,T,h)):[n];if(!f.length)e.insertNodesAtTopOfFile(t,m,i);else if(f&&(_=pg.detectImportDeclarationSorting(f,s))){const y=pg.getOrganizeImportsComparer(s,_===2);for(const T of m){const k=pg.getImportDeclarationInsertionIndex(f,T,y);if(k===0){const E=f[0]===t.statements[0]?{leadingTriviaOption:Vn.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,f[0],T,!1,E)}else{const E=f[k-1];e.insertNodeAfter(t,E,T)}}}else{const y=io(f);y?e.insertNodesAfter(t,y,m):e.insertNodesAtTopOfFile(t,m,i)}}function mK(e,t){return D.assert(e.isTypeOnly),Ws(e.getChildAt(0,t),lK)}function nC(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function sOe(e,t){return e.fileName===t.fileName&&nC(e.textSpan,t.textSpan)}function gK(e,t){if(e){for(let n=0;nCs(n)?!0:Cc(n)||Bg(n)||PS(n)?!1:"quit")}function oOe(){const e=zN*10;let t,n,i,s;m();const o=y=>f(y,17);return{displayParts:()=>{const y=t.length&&t[t.length-1].text;return s>e&&y&&y!=="..."&&(Zh(y.charCodeAt(y.length-1))||t.push(Fd(" ",16)),t.push(Fd("...",15))),t},writeKeyword:y=>f(y,5),writeOperator:y=>f(y,12),writePunctuation:y=>f(y,15),writeTrailingSemicolon:y=>f(y,15),writeSpace:y=>f(y,16),writeStringLiteral:y=>f(y,8),writeParameter:y=>f(y,13),writeProperty:y=>f(y,14),writeLiteral:y=>f(y,8),writeSymbol:_,writeLine:h,write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:xs,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(s>e)&&n){const y=TF(i);y&&(s+=y.length,t.push(Fd(y,16))),n=!1}}function f(y,T){s>e||(l(),s+=y.length,t.push(Fd(y,T)))}function _(y,T){s>e||(l(),s+=y.length,t.push(She(y,T)))}function h(){s>e||(s+=1,t.push(iC()),n=!0)}function m(){t=[],n=!0,i=0,s=0}}function She(e,t){return Fd(e,n(t));function n(i){const s=i.flags;return s&3?yK(i)?13:9:s&4||s&32768||s&65536?14:s&8?19:s&16?20:s&32?1:s&64?4:s&384?2:s&1536?11:s&8192?10:s&262144?18:s&524288||s&2097152?0:17}}function Fd(e,t){return{text:e,kind:bP[t]}}function pu(){return Fd(" ",16)}function tm(e){return Fd(Uo(e),5)}function fp(e){return Fd(Uo(e),15)}function SE(e){return Fd(Uo(e),12)}function khe(e){return Fd(e,13)}function Che(e){return Fd(e,14)}function vK(e){const t=Qx(e);return t===void 0?$m(e):tm(t)}function $m(e){return Fd(e,17)}function whe(e){return Fd(e,0)}function Ehe(e){return Fd(e,18)}function Kj(e){return Fd(e,24)}function Ahe(e,t){return{text:e,kind:bP[23],target:{fileName:bn(t).fileName,textSpan:Zp(t)}}}function bK(e){return Fd(e,22)}function Dhe(e,t){var n;const i=ape(e)?"link":spe(e)?"linkcode":"linkplain",s=[bK(`{@${i} `)];if(!e.name)e.text&&s.push(Kj(e.text));else{const o=t==null?void 0:t.getSymbolAtLocation(e.name),l=lOe(e.text),f=F_(e.name)+e.text.slice(0,l),_=cOe(e.text.slice(l)),h=(o==null?void 0:o.valueDeclaration)||((n=o==null?void 0:o.declarations)==null?void 0:n[0]);h?(s.push(Ahe(f,h)),_&&s.push(Kj(_))):s.push(Kj(f+(l?"":" ")+_))}return s.push(bK("}")),s}function cOe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&n--,i++,!n)return i}return 0}function wb(e,t){var n;return(t==null?void 0:t.newLineCharacter)||((n=e.getNewLine)==null?void 0:n.call(e))||Qhe}function iC(){return Fd(` -`,6)}function Eb(e){try{return e(yz),yz.displayParts()}finally{yz.clear()}}function BP(e,t,n,i=0){return Eb(s=>{e.writeType(t,n,i|1024|16384,s)})}function kE(e,t,n,i,s=0){return Eb(o=>{e.writeSymbol(t,n,i,s|8,o)})}function xK(e,t,n,i=0){return i|=25632,Eb(s=>{e.writeSignature(t,n,i,void 0,s)})}function uOe(e,t){const n=t.getSourceFile();return Eb(i=>{iP().writeNode(4,e,n,i)})}function Nhe(e){return!!e.parent&&YT(e.parent)&&e.parent.propertyName===e}function TK(e,t){return WF(e,t.getScriptKind&&t.getScriptKind(e))}function Ihe(e,t){let n=e;for(;_Oe(n)||ih(n)&&n.links.target;)ih(n)&&n.links.target?n=n.links.target:n=Id(n,t);return n}function _Oe(e){return(e.flags&2097152)!==0}function Phe(e,t){return oc(Id(e,t))}function Ohe(e,t){for(;Zh(e.charCodeAt(t));)t+=1;return t}function ez(e,t){for(;t>-1&&v1(e.charCodeAt(t));)t-=1;return t+1}function Vl(e,t=!0){const n=e&&Mhe(e);return n&&!t&&rm(n),n}function jP(e,t,n){let i=n(e);return i?yi(i,e):i=Mhe(e,n),i&&!t&&rm(i),i}function Mhe(e,t){const n=t?o=>jP(o,!0,t):Vl,s=nn(e,n,rv,t?o=>o&&SK(o,!0,t):o=>o&&F3(o),n);if(s===e){const o=sc(e)?yi(M.createStringLiteralFromNode(e),e):Um(e)?yi(M.createNumericLiteral(e.text,e.numericLiteralFlags),e):M.cloneNode(e);return yt(o,e)}return s.parent=void 0,s}function F3(e,t=!0){if(e){const n=M.createNodeArray(e.map(i=>Vl(i,t)),e.hasTrailingComma);return yt(n,e),n}return e}function SK(e,t,n){return M.createNodeArray(e.map(i=>jP(i,t,n)),e.hasTrailingComma)}function rm(e){tz(e),Lhe(e)}function tz(e){kK(e,1024,pOe)}function Lhe(e){kK(e,2048,vH)}function $7(e,t){const n=e.getSourceFile(),i=n.text;fOe(e,i)?aC(e,t,n):JP(e,t,n),CE(e,t,n)}function fOe(e,t){const n=e.getFullStart(),i=e.getStart();for(let s=n;st)}function H7(e,t){let n=e;for(let i=1;!JL(t,n);i++)n=`${e}_${i}`;return n}function zP(e,t,n,i){let s=0,o=-1;for(const{fileName:l,textChanges:f}of e){D.assert(l===t);for(const _ of f){const{span:h,newText:m}=_,y=dOe(m,_S(n));if(y!==-1&&(o=h.start+s+y,!i))return o;s+=m.length-h.length}}return D.assert(i),D.assert(o>=0),o}function aC(e,t,n,i,s){yD(n.text,e.pos,CK(t,n,i,s,ZN))}function CE(e,t,n,i,s){vD(n.text,e.end,CK(t,n,i,s,sR))}function JP(e,t,n,i,s){vD(n.text,e.pos,CK(t,n,i,s,ZN))}function CK(e,t,n,i,s){return(o,l,f,_)=>{f===3?(o+=2,l-=2):o+=2,s(e,n||f,t.text.slice(o,l),i!==void 0?i:_)}}function dOe(e,t){if(Ga(e,t))return 0;let n=e.indexOf(" "+t);return n===-1&&(n=e.indexOf("."+t)),n===-1&&(n=e.indexOf('"'+t)),n===-1?-1:n+1}function wK(e){return Un(e)&&e.operatorToken.kind===28||Dc(e)||sI(e)&&Dc(e.expression)}function rz(e,t,n){const i=fb(e.parent);switch(i.kind){case 213:return t.getContextualType(i,n);case 225:{const{left:s,operatorToken:o,right:l}=i;return nz(o.kind)?t.getTypeAtLocation(e===l?s:l):t.getContextualType(e,n)}case 295:return AK(i,t);default:return t.getContextualType(e,n)}}function wE(e,t,n){const i=f0(e,t),s=JSON.stringify(n);return i===0?`'${ig(s).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:s}function nz(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function Fhe(e){switch(e.kind){case 11:case 15:case 227:case 214:return!0;default:return!1}}function EK(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function AK(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function EE(e,t,n,i){const s=n.getTypeChecker();let o=!0;const l=()=>o=!1,f=s.typeToTypeNode(e,t,1,{trackSymbol:(_,h,m)=>(o=o&&s.isSymbolAccessible(_,h,m,!1).accessibility===0,!o),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:fK(n,i)});return o?f:void 0}function DK(e){return e===178||e===179||e===180||e===170||e===172}function Rhe(e){return e===261||e===175||e===173||e===176||e===177}function Bhe(e){return e===266}function iz(e){return e===242||e===243||e===245||e===250||e===251||e===252||e===256||e===258||e===171||e===264||e===271||e===270||e===277||e===269||e===276}function mOe(e,t){const n=e.getLastToken(t);if(n&&n.kind===27)return!1;if(DK(e.kind)){if(n&&n.kind===28)return!1}else if(Bhe(e.kind)){const f=fi(e.getChildren(t));if(f&&C1(f))return!1}else if(Rhe(e.kind)){const f=fi(e.getChildren(t));if(f&&a3(f))return!1}else if(!iz(e.kind))return!1;if(e.kind===245)return!0;const i=Sn(e,f=>!f.parent),s=V7(e,i,t);if(!s||s.kind===20)return!0;const o=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(s.getStart(t)).line;return o!==l}function az(e,t,n){const i=Sn(t,s=>s.end!==e?"quit":JK(s.kind));return!!i&&mOe(i,n)}function UP(e){let t=0,n=0;const i=5;return js(e,function s(o){if(iz(o.kind)){const l=o.getLastToken(e);(l==null?void 0:l.kind)===27?t++:n++}else if(DK(o.kind)){const l=o.getLastToken(e);if((l==null?void 0:l.kind)===27)t++;else if(l&&l.kind!==28){const f=Ql(e,l.getStart(e)).line,_=Ql(e,oh(e,l.end).start).line;f!==_&&n++}}return t+n>=i?!0:js(o,s)}),t===0&&n<=1?!0:t/n>1/i}function sz(e,t){return uz(e,e.getDirectories,t)||[]}function NK(e,t,n,i,s){return uz(e,e.readDirectory,t,n,i,s)||tt}function oz(e,t){return uz(e,e.fileExists,t)}function cz(e,t){return lz(()=>Mg(t,e))||!1}function lz(e){try{return e()}catch(t){return}}function uz(e,t,...n){return lz(()=>t&&t.apply(e,n))}function IK(e,t,n){const i=[];return jy(e,s=>{if(s===n)return!0;const o=ta(s,"package.json");oz(t,o)&&i.push(o)}),i}function jhe(e,t){let n;return jy(e,i=>{if(i==="node_modules"||(n=sge(i,s=>oz(t,s),"package.json"),n))return!0}),n}function zhe(e,t){if(!t.fileExists)return[];const n=[];return jy(ga(e),i=>{const s=ta(i,"package.json");if(t.fileExists(s)){const o=Jhe(s,t);o&&n.push(o)}}),n}function Jhe(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",s=gOe(i),o={};if(s)for(const _ of n){const h=s[_];if(!h)continue;const m=new Map;for(const y in h)m.set(y,h[y]);o[_]=m}const l=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return Xs(fa({},o),{parseable:!!s,fileName:e,get:f,has(_,h){return!!f(_,h)}});function f(_,h=15){for(const[m,y]of l)if(y&&h&m){const T=y.get(_);if(T!==void 0)return T}}}function AE(e,t,n){const i=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||zhe(e.fileName,n)).filter(E=>E.parseable);let s,o,l;return{allowsImportingAmbientModule:_,allowsImportingSourceFile:h,allowsImportingSpecifier:m};function f(E){const O=k(E);for(const N of i)if(N.has(O)||N.has(IB(O)))return!0;return!1}function _(E,O){if(!i.length||!E.valueDeclaration)return!0;if(!o)o=new Map;else{const re=o.get(E);if(re!==void 0)return re}const N=ig(E.getName());if(y(N))return o.set(E,!0),!0;const B=E.valueDeclaration.getSourceFile(),U=T(B.fileName,O);if(typeof U=="undefined")return o.set(E,!0),!0;const V=f(U)||f(N);return o.set(E,V),V}function h(E,O){if(!i.length)return!0;if(!l)l=new Map;else{const U=l.get(E);if(U!==void 0)return U}const N=T(E.fileName,O);if(!N)return l.set(E,!0),!0;const B=f(N);return l.set(E,B),B}function m(E){return!i.length||y(E)||ap(E)||t0(E)?!0:f(E)}function y(E){return!!(Ip(e)&&z7.nodeCoreModules.has(E)&&(s===void 0&&(s=_z(e)),s))}function T(E,O){if(!Qo(E,"node_modules"))return;const N=D3.getNodeModulesPackageName(n.getCompilationSettings(),e,E,O,t);if(N&&!ap(N)&&!t0(N))return k(N)}function k(E){const O=G_(qI(E)).slice(1);return Ga(O[0],"@")?`${O[0]}/${O[1]}`:O[0]}}function gOe(e){try{return JSON.parse(e)}catch(t){return}}function _z(e){return bt(e.imports,({text:t})=>z7.nodeCoreModules.has(t))}function Uhe(e){return Zn(G_(e),"node_modules")}function PK(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Vhe(e,t){const n=Zp(e),i=Io(t,n,Jc,Lv);if(i>=0){const s=t[i];return D.assertEqual(s.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Ws(s,PK)}}function Whe(e,t){var n;let i=Io(t,e.start,l=>l.start,Uc);for(i<0&&(i=~i);((n=t[i-1])==null?void 0:n.start)===e.start;)i--;const s=[],o=qf(e);for(;;){const l=di(t[i],PK);if(!l||l.start>o)break;Uce(e,l)&&s.push(l),i++}return s}function ZS({startPosition:e,endPosition:t}){return L_(e,t===void 0?e:t)}function OK(e,t){const n=Za(e,t.start);return Sn(n,s=>s.getStart(e)qf(t)?"quit":ht(s)&&nC(t,Zp(s,e)))}function qhe(e,t,n=Jc){return e?ns(e)?n(er(e,t)):t(e,0):void 0}function MK(e){return ns(e)?Fi(e):e}function $he(e,t){if(Hhe(e)){const n=Ghe(e);if(n)return n;const i=Xf.moduleSymbolToValidIdentifier(LK(e),t,!1),s=Xf.moduleSymbolToValidIdentifier(LK(e),t,!0);return i===s?i:[i,s]}return e.name}function fz(e,t,n){return Hhe(e)?Ghe(e)||Xf.moduleSymbolToValidIdentifier(LK(e),t,!!n):e.name}function Hhe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function Ghe(e){return bo(e.declarations,t=>{var n,i;return Wu(t)?(n=di(Gf(t.expression),Be))==null?void 0:n.text:(i=di(Es(t),Be))==null?void 0:i.text})}function LK(e){var t;return D.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${D.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(n=>{const i=D.formatSyntaxKind(n.kind),s=jn(n),{expression:o}=n;return(s?"[JS]":"")+i+(o?` (expression: ${D.formatSyntaxKind(o.kind)})`:"")}).join(", ")}.`)}function Xhe(e,t,n){const i=t.length;if(i+n>e.length)return!1;for(let s=0;sVu(n)&&x1(n))}function pz(e){return!!(Eq(e)&8192)}function dz(e,t){const n=bo(e.imports,i=>{if(z7.nodeCoreModules.has(i.text))return Ga(i.text,"node:")});return n!=null?n:t.usesUriStyleNodeCoreModules}function VP(e){return e===` -`?1:0}function YS(e){return ns(e)?sy(Vo(e[0]),e.slice(1)):Vo(e)}function mz({options:e},t){const n=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||n&&!UP(t);return Xs(fa({},e),{semicolons:i?"remove":"ignore"})}function RK(e){return e===2||e===3}function DE(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function gz(e,t){const n=new Set,i=new Set,s=new Set;for(const f of t)if(!_I(f)){const _=kl(f.expression);if(t7(_))switch(_.kind){case 15:case 11:n.add(_.text);break;case 9:i.add(parseInt(_.text));break;case 10:const h=$_e(gi(_.text,"n")?_.text.slice(0,-1):_.text);h&&s.add(g3(h));break}else{const h=e.getSymbolAtLocation(f.expression);if(h&&h.valueDeclaration&&C3(h.valueDeclaration)){const m=e.getConstantValue(h.valueDeclaration);m!==void 0&&o(m)}}}return{addValue:o,hasValue:l};function o(f){switch(typeof f){case"string":n.add(f);break;case"number":i.add(f)}}function l(f){switch(typeof f){case"string":return n.has(f);case"number":return i.has(f);case"object":return s.has(g3(f))}}}function BK(e,t,n,i){var s;const o=typeof e=="string"?e:e.fileName;if(!d3(o))return!1;const l=t.getCompilerOptions(),f=Ff(l),_=typeof e=="string"?uP(Sl(e,n.getCurrentDirectory(),Gv(n)),(s=t.getPackageJsonInfoCache)==null?void 0:s.call(t),n,l):e.impliedNodeFormat;if(_===99)return!1;if(_===1||l.verbatimModuleSyntax&&f===1)return!0;if(l.verbatimModuleSyntax&&LF(f))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var pp,jK,Yhe,hz,zK,yz,Qhe,vz,JK,yOe=or({"src/services/utilities.ts"(){"use strict";Ri(),pp=Uv(99,!0),jK=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(jK||{}),Yhe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(zK||{}),yz=oOe(),Qhe=` -`,vz="anonymous function",JK=Mf(DK,Rhe,Bhe,iz)}});function Khe(e){let t=1;const n=Pf(),i=new Map,s=new Map;let o;const l={isUsableByFile:k=>k===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),i.clear(),o=void 0},add:(k,E,O,N,B,U,V,re)=>{k!==o&&(l.clear(),o=k);let z;if(B){const we=UH(B.fileName);if(we){const{topLevelNodeModulesIndex:K,topLevelPackageNameIndex:Ze,packageRootIndex:Re}=we;if(z=PB(qI(B.fileName.substring(Ze+1,Re))),Ga(k,B.path.substring(0,K))){const Fe=s.get(z),Ue=B.fileName.substring(0,Ze+1);if(Fe){const Ae=Fe.indexOf(i2);K>Ae&&s.set(z,Ue)}else s.set(z,Ue)}}}const R=U===1&&uk(E)||E,le=U===0||PP(R)?Ba(O):$he(R,void 0),ae=typeof le=="string"?le:le[0],ye=typeof le=="string"?void 0:le[1],$=ig(N.name),ee=t++,te=Id(E,re),me=E.flags&33554432?void 0:E,ve=N.flags&33554432?void 0:N;(!me||!ve)&&i.set(ee,[E,N]),n.add(_(ae,E,hf($)?void 0:$,re),{id:ee,symbolTableKey:O,symbolName:ae,capitalizedSymbolName:ye,moduleName:$,moduleFile:B,moduleFileName:B==null?void 0:B.fileName,packageName:z,exportKind:U,targetFlags:te.flags,isFromPackageJson:V,symbol:me,moduleSymbol:ve})},get:(k,E)=>{if(k!==o)return;const O=n.get(E);return O==null?void 0:O.map(f)},search:(k,E,O,N)=>{if(k===o)return Zd(n,(B,U)=>{const{symbolName:V,ambientModuleName:re}=h(U),z=E&&B[0].capitalizedSymbolName||V;if(O(z,B[0].targetFlags)){const R=B.map(f).filter((le,ae)=>T(le,B[ae].packageName));if(R.length){const le=N(R,z,!!re,U);if(le!==void 0)return le}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(k,E,O)=>m(k)&&m(E)?!1:o&&o!==E.path||O&&_z(k)!==_z(E)||!Lo(k.moduleAugmentations,E.moduleAugmentations)||!y(k,E)?(l.clear(),!0):(o=E.path,!1)};return D.isDebugging&&Object.defineProperty(l,"__cache",{get:()=>n}),l;function f(k){if(k.symbol&&k.moduleSymbol)return k;const{id:E,exportKind:O,targetFlags:N,isFromPackageJson:B,moduleFileName:U}=k,[V,re]=i.get(E)||tt;if(V&&re)return{symbol:V,moduleSymbol:re,moduleFileName:U,exportKind:O,targetFlags:N,isFromPackageJson:B};const z=(B?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ce=k.moduleSymbol||re||D.checkDefined(k.moduleFile?z.getMergedSymbol(k.moduleFile.symbol):z.tryFindAmbientModule(k.moduleName)),R=k.symbol||V||D.checkDefined(O===2?z.resolveExternalModuleSymbol(ce):z.tryGetMemberInModuleExportsAndProperties(Ba(k.symbolTableKey),ce),`Could not find symbol '${k.symbolName}' by key '${k.symbolTableKey}' in module ${ce.name}`);return i.set(E,[R,ce]),{symbol:R,moduleSymbol:ce,moduleFileName:U,exportKind:O,targetFlags:N,isFromPackageJson:B}}function _(k,E,O,N){const B=O||"";return`${k}|${oc(Id(E,N))}|${B}`}function h(k){const E=k.substring(0,k.indexOf("|")),O=k.substring(k.lastIndexOf("|")+1);return{symbolName:E,ambientModuleName:O===""?void 0:O}}function m(k){return!k.commonJsModuleIndicator&&!k.externalModuleIndicator&&!k.moduleAugmentations&&!k.ambientModuleNames}function y(k,E){if(!Lo(k.ambientModuleNames,E.ambientModuleNames))return!1;let O=-1,N=-1;for(const B of E.ambientModuleNames){const U=V=>_$(V)&&V.name.text===B;if(O=zi(k.statements,U,O+1),N=zi(E.statements,U,N+1),k.statements[O]!==E.statements[N])return!1}return!0}function T(k,E){if(!E||!k.moduleFileName)return!0;const O=e.getGlobalTypingsCacheLocation();if(O&&Ga(k.moduleFileName,O))return!0;const N=s.get(E);return!N||Ga(k.moduleFileName,N)}}function UK(e,t,n,i,s,o,l){var f;if(t===n)return!1;const _=l==null?void 0:l.get(t.path,n.path,i,{});if((_==null?void 0:_.isBlockedByPackageJsonDependencies)!==void 0)return!_.isBlockedByPackageJsonDependencies;const h=Gv(o),m=(f=o.getGlobalTypingsCacheLocation)==null?void 0:f.call(o),y=!!D3.forEachFileNameOfModule(t.fileName,n.fileName,o,!1,T=>{const k=e.getSourceFile(T);return(k===n||!k)&&vOe(t.fileName,T,h,m)});if(s){const T=y&&s.allowsImportingSourceFile(n,o);return l==null||l.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},!T),T}return y}function vOe(e,t,n,i){const s=jy(t,l=>H_(l)==="node_modules"?l:void 0),o=s&&ga(n(s));return o===void 0||Ga(n(e),o)||!!i&&Ga(n(i),o)}function VK(e,t,n,i,s){var o,l;const f=vN(t),_=n.autoImportFileExcludePatterns&&Mr(n.autoImportFileExcludePatterns,m=>{const y=DH(m,"","exclude");return y?mb(y,f):void 0});eye(e.getTypeChecker(),e.getSourceFiles(),_,(m,y)=>s(m,y,e,!1));const h=i&&((o=t.getPackageJsonAutoImportProvider)==null?void 0:o.call(t));if(h){const m=Tl(),y=e.getTypeChecker();eye(h.getTypeChecker(),h.getSourceFiles(),_,(T,k)=>{(k&&!e.getSourceFile(k.fileName)||!k&&!y.resolveName(T.name,void 0,1536,!1))&&s(T,k,h,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Tl()-m}`)}}function eye(e,t,n,i){var s;const o=n&&(l=>n.some(f=>f.test(l)));for(const l of e.getAmbientModules())!Qo(l.name,"*")&&!(n&&((s=l.declarations)!=null&&s.every(f=>o(f.getSourceFile().fileName))))&&i(l,void 0);for(const l of t)bm(l)&&!(o!=null&&o(l.fileName))&&i(e.getMergedSymbol(l.symbol),l)}function WP(e,t,n,i,s){var o,l,f,_,h;const m=Tl();(o=t.getPackageJsonAutoImportProvider)==null||o.call(t);const y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||Khe({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var E;return(E=t.getPackageJsonAutoImportProvider)==null?void 0:E.call(t)},getGlobalTypingsCacheLocation:()=>{var E;return(E=t.getGlobalTypingsCacheLocation)==null?void 0:E.call(t)}});if(y.isUsableByFile(e.path))return(f=t.log)==null||f.call(t,"getExportInfoMap: cache hit"),y;(_=t.log)==null||_.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const T=n.getCompilerOptions();let k=0;try{VK(n,t,i,!0,(E,O,N,B)=>{++k%100===0&&(s==null||s.throwIfCancellationRequested());const U=new Map,V=N.getTypeChecker(),re=bz(E,V,T);re&&tye(re.symbol,V)&&y.add(e.path,re.symbol,re.exportKind===1?"default":"export=",E,O,re.exportKind,B,V),V.forEachExportAndPropertyOfModule(E,(z,ce)=>{z!==(re==null?void 0:re.symbol)&&tye(z,V)&&Lg(U,ce)&&y.add(e.path,z,ce,E,O,0,B,V)})})}catch(E){throw y.clear(),E}return(h=t.log)==null||h.call(t,`getExportInfoMap: done in ${Tl()-m} ms`),y}function bz(e,t,n){const i=bOe(e,t);if(!i)return;const{symbol:s,exportKind:o}=i,l=xz(s,t,n);return l&&fa({symbol:s,exportKind:o},l)}function tye(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!pN(e)&&!Rue(e)}function bOe(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e)return{symbol:n,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function xz(e,t,n){const i=uk(e);if(i)return{resolvedSymbol:i,name:i.name};const s=xOe(e);if(s!==void 0)return{resolvedSymbol:e,name:s};if(e.flags&2097152){const o=t.getImmediateAliasedSymbol(e);if(o&&o.parent)return xz(o,t,n)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:fz(e,n.target)}}function xOe(e){return e.declarations&&bo(e.declarations,t=>{var n;if(Wu(t))return(n=di(Gf(t.expression),Be))==null?void 0:n.text;if(dd(t))return D.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var WK,qK,TOe=or({"src/services/exportInfoMap.ts"(){"use strict";Ri(),WK=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(WK||{}),qK=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(qK||{})}});function rye(){const e=Uv(99,!1);function t(i,s,o){return COe(n(i,s,o),i)}function n(i,s,o){let l=0,f=0;const _=[],{prefix:h,pushTemplate:m}=AOe(s);i=h+i;const y=h.length;m&&_.push(16),e.setText(i);let T=0;const k=[];let E=0;do{l=e.scan(),ik(l)||(O(),f=l);const N=e.getTokenEnd();if(kOe(e.getTokenStart(),N,y,IOe(l),k),N>=i.length){const B=SOe(e,l,io(_));B!==void 0&&(T=B)}}while(l!==1);function O(){switch(l){case 44:case 69:!cye[f]&&e.reScanSlashToken()===14&&(l=14);break;case 30:f===80&&E++;break;case 32:E>0&&E--;break;case 133:case 154:case 150:case 136:case 155:E>0&&!o&&(l=80);break;case 16:_.push(l);break;case 19:_.length>0&&_.push(l);break;case 20:if(_.length>0){const N=io(_);N===16?(l=e.reScanTemplateToken(!1),l===18?_.pop():D.assertEqual(l,17,"Should have been a template middle.")):(D.assertEqual(N,19,"Should have been an open brace"),_.pop())}break;default:if(!pd(l))break;(f===25||pd(f)&&pd(l)&&!EOe(f,l))&&(l=80)}}return{endOfLineState:T,spans:k}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:n}}function SOe(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),s=i.length-1;let o=0;for(;i.charCodeAt(s-o)===92;)o++;return o&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(sb(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return D.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return n===16?6:void 0}}function kOe(e,t,n,i,s){if(i===8)return;e===0&&n>0&&(e+=n);const o=t-e;o>0&&s.push(e-n,o,i)}function COe(e,t){const n=[],i=e.spans;let s=0;for(let l=0;l=0){const m=f-s;m>0&&n.push({length:m,classification:4})}n.push({length:_,classification:wOe(h)}),s=f+_}const o=t.length-s;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}function wOe(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function EOe(e,t){if(!aK(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function AOe(e){switch(e){case 3:return{prefix:`"\\ -`};case 2:return{prefix:`'\\ -`};case 1:return{prefix:`/* -`};case 4:return{prefix:"`\n"};case 5:return{prefix:`} -`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return D.assertNever(e)}}function DOe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function NOe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function IOe(e){if(pd(e))return 3;if(DOe(e)||NOe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return sb(e)?6:2}}function nye(e,t,n,i,s){return sye($K(e,t,n,i,s))}function iye(e,t){switch(t){case 266:case 262:case 263:case 261:case 230:case 217:case 218:e.throwIfCancellationRequested()}}function $K(e,t,n,i,s){const o=[];return n.forEachChild(function f(_){if(!(!_||!mL(s,_.pos,_.getFullWidth()))){if(iye(t,_.kind),Be(_)&&!Eu(_)&&i.has(_.escapedText)){const h=e.getSymbolAtLocation(_),m=h&&aye(h,J7(_),e);m&&l(_.getStart(n),_.getEnd(),m)}_.forEachChild(f)}}),{spans:o,endOfLineState:0};function l(f,_,h){const m=_-f;D.assert(m>0,`Classification had non-positive length of ${m}`),o.push(f),o.push(m),o.push(h)}}function aye(e,t,n){const i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&POe(e)?14:void 0:i&2097152?aye(n.getAliasedSymbol(e),t,n):t&2?i&64?13:i&262144?15:void 0:void 0}function POe(e){return bt(e.declarations,t=>Vu(t)&&tv(t)===1)}function OOe(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function sye(e){D.assert(e.spans.length%3===0);const t=e.spans,n=[];for(let i=0;i])*)(\/>)?)?/im,le=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,ae=t.text.substr(z,ce),ye=R.exec(ae);if(!ye||!ye[3]||!(ye[3]in gn))return!1;let $=z;y($,ye[1].length),$+=ye[1].length,_($,ye[2].length,10),$+=ye[2].length,_($,ye[3].length,21),$+=ye[3].length;const ee=ye[4];let te=$;for(;;){const ve=le.exec(ee);if(!ve)break;const we=$+ve.index+ve[1].length;we>te&&(y(te,we-te),te=we),_(te,ve[2].length,22),te+=ve[2].length,ve[3].length&&(y(te,ve[3].length),te+=ve[3].length),_(te,ve[4].length,5),te+=ve[4].length,ve[5].length&&(y(te,ve[5].length),te+=ve[5].length),_(te,ve[6].length,24),te+=ve[6].length}$+=ye[4].length,$>te&&y(te,$-te),ye[5]&&(_($,ye[5].length,10),$+=ye[5].length);const me=z+ce;return $=0),le>0){const ae=ce||V(z.kind,z);ae&&_(R,le,ae)}return!0}function U(z){switch(z.parent&&z.parent.kind){case 285:if(z.parent.tagName===z)return 19;break;case 286:if(z.parent.tagName===z)return 20;break;case 284:if(z.parent.tagName===z)return 21;break;case 290:if(z.parent.name===z)return 22;break}}function V(z,ce){if(pd(z))return 3;if((z===30||z===32)&&ce&&_he(ce.parent))return 10;if(U$(z)){if(ce){const R=ce.parent;if(z===64&&(R.kind===259||R.kind===171||R.kind===168||R.kind===290)||R.kind===225||R.kind===223||R.kind===224||R.kind===226)return 5}return 10}else{if(z===9)return 4;if(z===10)return 25;if(z===11)return ce&&ce.parent.kind===290?24:6;if(z===14)return 6;if(sb(z))return 6;if(z===12)return 23;if(z===80){if(ce){switch(ce.parent.kind){case 262:return ce.parent.name===ce?11:void 0;case 167:return ce.parent.name===ce?15:void 0;case 263:return ce.parent.name===ce?13:void 0;case 265:return ce.parent.name===ce?12:void 0;case 266:return ce.parent.name===ce?14:void 0;case 168:return ce.parent.name===ce?f3(ce)?3:17:void 0}if(Vy(ce.parent))return 3}return 2}}}function re(z){if(z&&gL(i,s,z.pos,z.getFullWidth())){iye(e,z.kind);for(const ce of z.getChildren(t))B(ce)||re(ce)}}}var cye,lye=or({"src/services/classifier.ts"(){"use strict";Ri(),cye=G2([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),Tz,MOe=or({"src/services/documentHighlights.ts"(){"use strict";Ri(),(e=>{function t($,ee,te,me,ve){const we=qm(te,me);if(we.parent&&(w1(we.parent)&&we.parent.tagName===we||x3(we.parent))){const{openingElement:K,closingElement:Ze}=we.parent.parent,Re=[K,Ze].map(({tagName:Fe})=>n(Fe,te));return[{fileName:te.fileName,highlightSpans:Re}]}return i(me,we,$,ee,ve)||s(we,te)}e.getDocumentHighlights=t;function n($,ee){return{fileName:ee.fileName,textSpan:Zp($,ee),kind:"none"}}function i($,ee,te,me,ve){const we=new Set(ve.map(Fe=>Fe.fileName)),K=tu.getReferenceEntriesForNode($,ee,te,ve,me,void 0,we);if(!K)return;const Ze=_1(K.map(tu.toHighlightSpan),Fe=>Fe.fileName,Fe=>Fe.span),Re=N_(te.useCaseSensitiveFileNames());return zt(Ki(Ze.entries(),([Fe,Ue])=>{if(!we.has(Fe)){if(!te.redirectTargetsMap.has(Sl(Fe,te.getCurrentDirectory(),Re)))return;const Ae=te.getSourceFile(Fe);Fe=on(ve,He=>!!He.redirectInfo&&He.redirectInfo.redirectTarget===Ae).fileName,D.assert(we.has(Fe))}return{fileName:Fe,highlightSpans:Ue}}))}function s($,ee){const te=o($,ee);return te&&[{fileName:ee.fileName,highlightSpans:te}]}function o($,ee){switch($.kind){case 101:case 93:return S7($.parent)?le($.parent,ee):void 0;case 107:return me($.parent,jg,re);case 111:return me($.parent,BG,V);case 113:case 85:case 98:const we=$.kind===85?$.parent.parent:$.parent;return me(we,lI,U);case 109:return me($.parent,cI,B);case 84:case 90:return _I($.parent)||W9($.parent)?me($.parent.parent.parent,cI,B):void 0;case 83:case 88:return me($.parent,Pw,N);case 99:case 117:case 92:return me($.parent,K=>ob(K,!0),O);case 137:return te(Uu,[137]);case 139:case 153:return te(w4,[139,153]);case 135:return me($.parent,Dk,z);case 134:return ve(z($));case 127:return ve(ce($));case 103:return;default:return Wv($.kind)&&(cp($.parent)||S_($.parent))?ve(T($.kind,$.parent)):void 0}function te(we,K){return me($.parent,we,Ze=>{var Re;return Mr((Re=di(Ze,rh))==null?void 0:Re.symbol.declarations,Fe=>we(Fe)?on(Fe.getChildren(ee),Ue=>Zn(K,Ue.kind)):void 0)})}function me(we,K,Ze){return K(we)?ve(Ze(we,ee)):void 0}function ve(we){return we&&we.map(K=>n(K,ee))}}function l($){return BG($)?[$]:lI($)?Nn($.catchClause?l($.catchClause):$.tryBlock&&l($.tryBlock),$.finallyBlock&&l($.finallyBlock)):Qs($)?void 0:h($,l)}function f($){let ee=$;for(;ee.parent;){const te=ee.parent;if(a3(te)||te.kind===311)return te;if(lI(te)&&te.tryBlock===ee&&te.catchClause)return ee;ee=te}}function _($){return Pw($)?[$]:Qs($)?void 0:h($,_)}function h($,ee){const te=[];return $.forEachChild(me=>{const ve=ee(me);ve!==void 0&&te.push(...pm(ve))}),te}function m($,ee){const te=y(ee);return!!te&&te===$}function y($){return Sn($,ee=>{switch(ee.kind){case 254:if($.kind===250)return!1;case 247:case 248:case 249:case 246:case 245:return!$.label||ye(ee,$.label.escapedText);default:return Qs(ee)&&"quit"}})}function T($,ee){return Mr(k(ee,mS($)),te=>rC(te,$))}function k($,ee){const te=$.parent;switch(te.kind){case 267:case 311:case 240:case 295:case 296:return ee&256&&cf($)?[...$.members,$]:te.statements;case 175:case 173:case 261:return[...te.parameters,...Yi(te.parent)?te.parent.members:[]];case 262:case 230:case 263:case 186:const me=te.members;if(ee&92){const ve=on(te.members,Uu);if(ve)return[...me,...ve.parameters]}else if(ee&256)return[...me,te];return me;case 209:return;default:D.assertNever(te,"Invalid container kind.")}}function E($,ee,...te){return ee&&Zn(te,ee.kind)?($.push(ee),!0):!1}function O($){const ee=[];if(E(ee,$.getFirstToken(),99,117,92)&&$.kind===245){const te=$.getChildren();for(let me=te.length-1;me>=0&&!E(ee,te[me],117);me--);}return Vt(_($.statement),te=>{m($,te)&&E(ee,te.getFirstToken(),83,88)}),ee}function N($){const ee=y($);if(ee)switch(ee.kind){case 247:case 248:case 249:case 245:case 246:return O(ee);case 254:return B(ee)}}function B($){const ee=[];return E(ee,$.getFirstToken(),109),Vt($.caseBlock.clauses,te=>{E(ee,te.getFirstToken(),84,90),Vt(_(te),me=>{m($,me)&&E(ee,me.getFirstToken(),83)})}),ee}function U($,ee){const te=[];if(E(te,$.getFirstToken(),113),$.catchClause&&E(te,$.catchClause.getFirstToken(),85),$.finallyBlock){const me=zc($,98,ee);E(te,me,98)}return te}function V($,ee){const te=f($);if(!te)return;const me=[];return Vt(l(te),ve=>{me.push(zc(ve,111,ee))}),a3(te)&&i3(te,ve=>{me.push(zc(ve,107,ee))}),me}function re($,ee){const te=Jm($);if(!te)return;const me=[];return i3(Ws(te.body,oo),ve=>{me.push(zc(ve,107,ee))}),Vt(l(te.body),ve=>{me.push(zc(ve,111,ee))}),me}function z($){const ee=Jm($);if(!ee)return;const te=[];return ee.modifiers&&ee.modifiers.forEach(me=>{E(te,me,134)}),js(ee,me=>{R(me,ve=>{Dk(ve)&&E(te,ve.getFirstToken(),135)})}),te}function ce($){const ee=Jm($);if(!ee)return;const te=[];return js(ee,me=>{R(me,ve=>{zR(ve)&&E(te,ve.getFirstToken(),127)})}),te}function R($,ee){ee($),!Qs($)&&!Yi($)&&!Lp($)&&!Vu($)&&!zg($)&&!Oa($)&&js($,te=>R(te,ee))}function le($,ee){const te=ae($,ee),me=[];for(let ve=0;ve=we.end;Re--)if(!v1(ee.text.charCodeAt(Re))){Ze=!1;break}if(Ze){me.push({fileName:ee.fileName,textSpan:L_(we.getStart(),K.end),kind:"reference"}),ve++;continue}}me.push(n(te[ve],ee))}return me}function ae($,ee){const te=[];for(;S7($.parent)&&$.parent.elseStatement===$;)$=$.parent;for(;;){const me=$.getChildren(ee);E(te,me[0],101);for(let ve=me.length-1;ve>=0&&!E(te,me[ve],93);ve--);if(!$.elseStatement||!S7($.elseStatement))break;$=$.elseStatement}return te}function ye($,ee){return!!Sn($.parent,te=>b3(te)?te.label.escapedText===ee:"quit")}})(Tz||(Tz={}))}});function Sz(e){return!!e.sourceFile}function GK(e,t){return uye(e,t)}function uye(e,t="",n){const i=new Map,s=N_(!!e);function o(){const N=zt(i.keys()).filter(B=>B&&B.charAt(0)==="_").map(B=>{const U=i.get(B),V=[];return U.forEach((re,z)=>{Sz(re)?V.push({name:z,scriptKind:re.sourceFile.scriptKind,refCount:re.languageServiceRefCount}):re.forEach((ce,R)=>V.push({name:z,scriptKind:R,refCount:ce.languageServiceRefCount}))}),V.sort((re,z)=>z.refCount-re.refCount),{bucket:B,sourceFiles:V}});return JSON.stringify(N,void 0,2)}function l(N){return typeof N.getCompilationSettings=="function"?N.getCompilationSettings():N}function f(N,B,U,V,re,z){const ce=Sl(N,t,s),R=kz(l(B));return _(N,ce,B,R,U,V,re,z)}function _(N,B,U,V,re,z,ce,R){return T(N,B,U,V,re,z,!0,ce,R)}function h(N,B,U,V,re,z){const ce=Sl(N,t,s),R=kz(l(B));return m(N,ce,B,R,U,V,re,z)}function m(N,B,U,V,re,z,ce,R){return T(N,B,l(U),V,re,z,!1,ce,R)}function y(N,B){const U=Sz(N)?N:N.get(D.checkDefined(B,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return D.assert(B===void 0||!U||U.sourceFile.scriptKind===B,`Script kind should match provided ScriptKind:${B} and sourceFile.scriptKind: ${U==null?void 0:U.sourceFile.scriptKind}, !entry: ${!U}`),U}function T(N,B,U,V,re,z,ce,R,le){var ae,ye,$,ee;R=WF(N,R);const te=l(U),me=U===te?void 0:U,ve=R===6?100:gc(te),we=typeof le=="object"?le:{languageVersion:ve,impliedNodeFormat:me&&uP(B,(ee=($=(ye=(ae=me.getCompilerHost)==null?void 0:ae.call(me))==null?void 0:ye.getModuleResolutionCache)==null?void 0:$.call(ye))==null?void 0:ee.getPackageJsonInfoCache(),me,te),setExternalModuleIndicator:EN(te)};we.languageVersion=ve;const K=i.size,Ze=_ye(V,we.impliedNodeFormat),Re=$d(i,Ze,()=>new Map);if(Hi){i.size>K&&Hi.instant(Hi.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:te.configFilePath,key:Ze});const Me=!md(B)&&Zd(i,(He,je)=>je!==Ze&&He.has(B)&&je);Me&&Hi.instant(Hi.Phase.Session,"documentRegistryBucketOverlap",{path:B,key1:Me,key2:Ze})}const Fe=Re.get(B);let Ue=Fe&&y(Fe,R);if(!Ue&&n){const Me=n.getDocument(Ze,B);Me&&(D.assert(ce),Ue={sourceFile:Me,languageServiceRefCount:0},Ae())}if(Ue)Ue.sourceFile.version!==z&&(Ue.sourceFile=ate(Ue.sourceFile,re,z,re.getChangeRange(Ue.sourceFile.scriptSnapshot)),n&&n.setDocument(Ze,B,Ue.sourceFile)),ce&&Ue.languageServiceRefCount++;else{const Me=sJ(N,re,we,z,!1,R);n&&n.setDocument(Ze,B,Me),Ue={sourceFile:Me,languageServiceRefCount:1},Ae()}return D.assert(Ue.languageServiceRefCount!==0),Ue.sourceFile;function Ae(){if(!Fe)Re.set(B,Ue);else if(Sz(Fe)){const Me=new Map;Me.set(Fe.sourceFile.scriptKind,Fe),Me.set(R,Ue),Re.set(B,Me)}else Fe.set(R,Ue)}}function k(N,B,U,V){const re=Sl(N,t,s),z=kz(B);return E(re,z,U,V)}function E(N,B,U,V){const re=D.checkDefined(i.get(_ye(B,V))),z=re.get(N),ce=y(z,U);ce.languageServiceRefCount--,D.assert(ce.languageServiceRefCount>=0),ce.languageServiceRefCount===0&&(Sz(z)?re.delete(N):(z.delete(U),z.size===1&&re.set(N,Lu(z.values(),Jc))))}function O(N,B){return zt(i.entries(),([U,V])=>{const re=V.get(N),z=re&&y(re,B);return[U,z&&z.languageServiceRefCount]})}return{acquireDocument:f,acquireDocumentWithKey:_,updateDocument:h,updateDocumentWithKey:m,releaseDocument:k,releaseDocumentWithKey:E,getLanguageServiceRefCounts:O,reportStats:o,getKeyForCompilationSettings:kz}}function kz(e){return HX(e,mB)}function _ye(e,t){return t?`${e}|${t}`:e}var LOe=or({"src/services/documentRegistry.ts"(){"use strict";Ri()}});function fye(e,t,n,i,s,o,l){const f=vN(i),_=N_(f),h=XK(t,n,_,l),m=XK(n,t,_,l);return Vn.ChangeTracker.with({host:i,formatContext:s,preferences:o},y=>{ROe(e,y,h,t,n,i.getCurrentDirectory(),f),BOe(e,y,h,m,i,_)})}function XK(e,t,n,i){const s=n(e);return l=>{const f=i&&i.tryGetSourcePosition({fileName:l,pos:0}),_=o(f?f.fileName:l);return f?_===void 0?void 0:FOe(f.fileName,_,l,n):_};function o(l){if(n(l)===s)return t;const f=EH(l,s,n);return f===void 0?void 0:t+"/"+f}}function FOe(e,t,n,i){const s=fD(e,t,i);return ZK(ga(n),s)}function ROe(e,t,n,i,s,o,l){const{configFile:f}=e.getCompilerOptions();if(!f)return;const _=ga(f.fileName),h=Vw(f);if(!h)return;YK(h,(k,E)=>{switch(E){case"files":case"include":case"exclude":{if(m(k)||E!=="include"||!Op(k.initializer))return;const N=Mr(k.initializer.elements,U=>sc(U)?U.text:void 0);if(N.length===0)return;const B=m9(_,[],N,l,o);mb(D.checkDefined(B.includeFilePattern),l).test(i)&&!mb(D.checkDefined(B.includeFilePattern),l).test(s)&&t.insertNodeAfter(f,fi(k.initializer.elements),M.createStringLiteral(T(s)));return}case"compilerOptions":YK(k.initializer,(O,N)=>{const B=mX(N);D.assert((B==null?void 0:B.type)!=="listOrElement"),B&&(B.isFilePath||B.type==="list"&&B.element.isFilePath)?m(O):N==="paths"&&YK(O.initializer,U=>{if(Op(U.initializer))for(const V of U.initializer.elements)y(V)})});return}});function m(k){const E=Op(k.initializer)?k.initializer.elements:[k.initializer];let O=!1;for(const N of E)O=y(N)||O;return O}function y(k){if(!sc(k))return!1;const E=ZK(_,k.text),O=n(E);return O!==void 0?(t.replaceRangeWithText(f,dye(k,f),T(O)),!0):!1}function T(k){return th(_,k,!l)}}function BOe(e,t,n,i,s,o){const l=e.getSourceFiles();for(const f of l){const _=n(f.fileName),h=_!=null?_:f.fileName,m=ga(h),y=i(f.fileName),T=y||f.fileName,k=ga(T),E=_!==void 0||y!==void 0;JOe(f,t,O=>{if(!ap(O))return;const N=ZK(k,O),B=n(N);return B===void 0?void 0:G6(th(m,B,o))},O=>{const N=e.getTypeChecker().getSymbolAtLocation(O);if(N!=null&&N.declarations&&N.declarations.some(U=>Np(U)))return;const B=y!==void 0?pye(O,rE(O.text,T,e.getCompilerOptions(),s),n,l):zOe(N,O,f,e,s,n);return B!==void 0&&(B.updated||E&&ap(O.text))?D3.updateModuleSpecifier(e.getCompilerOptions(),f,o(h),B.newFileName,q7(e,s),O.text):void 0})}}function jOe(e,t){return ec(ta(e,t))}function ZK(e,t){return G6(jOe(e,t))}function zOe(e,t,n,i,s,o){var l;if(e){const f=on(e.declarations,Ja).fileName,_=o(f);return _===void 0?{newFileName:f,updated:!1}:{newFileName:_,updated:!0}}else{const f=_g(n,t),_=s.resolveModuleNameLiterals||!s.resolveModuleNames?(l=n.resolvedModules)==null?void 0:l.get(t.text,f):s.getResolvedModuleWithFailedLookupLocationsFromCache&&s.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,f);return pye(t,_,o,i.getSourceFiles())}}function pye(e,t,n,i){if(!t)return;if(t.resolvedModule){const _=f(t.resolvedModule.resolvedFileName);if(_)return _}const s=Vt(t.failedLookupLocations,o)||ap(e.text)&&Vt(t.failedLookupLocations,l);if(s)return s;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(_){const h=n(_);return h&&on(i,m=>m.fileName===h)?l(_):void 0}function l(_){return gi(_,"/package.json")?void 0:f(_)}function f(_){const h=n(_);return h&&{newFileName:h,updated:!0}}}function JOe(e,t,n,i){for(const s of e.referencedFiles||tt){const o=n(s.fileName);o!==void 0&&o!==e.text.slice(s.pos,s.end)&&t.replaceRangeWithText(e,s,o)}for(const s of e.imports){const o=i(s);o!==void 0&&o!==s.text&&t.replaceRangeWithText(e,dye(s,e),o)}}function dye(e,t){return L0(e.getStart(t)+1,e.end-1)}function YK(e,t){if(Dc(e))for(const n of e.properties)Y_(n)&&sc(n.name)&&t(n,n.name.text)}var UOe=or({"src/services/getEditsForFileRename.ts"(){"use strict";Ri()}});function qP(e,t){return{kind:e,isCaseSensitive:t}}function mye(e){const t=new Map,n=e.trim().split(".").map(i=>$Oe(i.trim()));if(!n.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,s)=>VOe(i,s,n,t),getMatchForLastSegmentOfPattern:i=>QK(i,fi(n),t),patternContainsDots:n.length>1}}function VOe(e,t,n,i){if(!QK(t,fi(n),i)||n.length-1>e.length)return;let o;for(let l=n.length-2,f=e.length-1;l>=0;l-=1,f-=1)o=yye(o,QK(e[f],n[l],i));return o}function gye(e,t){let n=t.get(e);return n||t.set(e,n=Tye(e)),n}function hye(e,t,n){const i=HOe(e,t.textLowerCase);if(i===0)return qP(t.text.length===e.length?0:1,Ga(e,t.text));if(t.isLowerCase){if(i===-1)return;const s=gye(e,n);for(const o of s)if(KK(e,o,t.text,!0))return qP(2,KK(e,o,t.text,!1));if(t.text.length0)return qP(2,!0);if(t.characterSpans.length>0){const s=gye(e,n),o=vye(e,s,t,!1)?!0:vye(e,s,t,!0)?!1:void 0;if(o!==void 0)return qP(3,o)}}}function QK(e,t,n){if(Cz(t.totalTextChunk.text,o=>o!==32&&o!==42)){const o=hye(e,t.totalTextChunk,n);if(o)return o}const i=t.subWordTextChunks;let s;for(const o of i)s=yye(s,hye(e,o,n));return s}function yye(e,t){return $1([e,t],WOe)}function WOe(e,t){return e===void 0?1:t===void 0?-1:Uc(e.kind,t.kind)||ka(!e.isCaseSensitive,!t.isCaseSensitive)}function KK(e,t,n,i,s={start:0,length:n.length}){return s.length<=t.length&&Cye(0,s.length,o=>qOe(n.charCodeAt(s.start+o),e.charCodeAt(t.start+o),i))}function qOe(e,t,n){return n?eee(e)===eee(t):e===t}function vye(e,t,n,i){const s=n.characterSpans;let o=0,l=0,f,_;for(;;){if(l===s.length)return!0;if(o===t.length)return!1;let h=t[o],m=!1;for(;l=65&&e<=90)return!0;if(e<127||!cL(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function bye(e){if(e>=97&&e<=122)return!0;if(e<127||!cL(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function HOe(e,t){const n=e.length-t.length;for(let i=0;i<=n;i++)if(Cz(t,(s,o)=>eee(e.charCodeAt(o+i))===s))return i;return-1}function eee(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function tee(e){return e>=48&&e<=57}function GOe(e){return QS(e)||bye(e)||tee(e)||e===95||e===36}function XOe(e){const t=[];let n=0,i=0;for(let s=0;s0&&(t.push(ree(e.substr(n,i))),i=0)}return i>0&&t.push(ree(e.substr(n,i))),t}function ree(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:xye(e)}}function xye(e){return Sye(e,!1)}function Tye(e){return Sye(e,!0)}function Sye(e,t){const n=[];let i=0;for(let s=1;snee(i)&&i!==95,t,n)}function ZOe(e,t,n){return t!==n&&t+1t(e.charCodeAt(s),s))}var wz,QOe=or({"src/services/patternMatcher.ts"(){"use strict";Ri(),wz=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(wz||{})}});function wye(e,t=!0,n=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[];let o,l,f,_=0,h=!1;function m(){return l=f,f=pp.scan(),f===19?_++:f===20&&_--,f}function y(){const z=pp.getTokenValue(),ce=pp.getTokenStart();return{fileName:z,pos:ce,end:ce+z.length}}function T(){o||(o=[]),o.push({ref:y(),depth:_})}function k(){s.push(y()),E()}function E(){_===0&&(h=!0)}function O(){let z=pp.getToken();return z===138?(z=m(),z===144&&(z=m(),z===11&&T()),!0):!1}function N(){if(l===25)return!1;let z=pp.getToken();if(z===102){if(z=m(),z===21){if(z=m(),z===11||z===15)return k(),!0}else{if(z===11)return k(),!0;if(z===156&&pp.lookAhead(()=>{const R=pp.scan();return R!==160&&(R===42||R===19||R===80||pd(R))})&&(z=m()),z===80||pd(z))if(z=m(),z===160){if(z=m(),z===11)return k(),!0}else if(z===64){if(U(!0))return!0}else if(z===28)z=m();else return!0;if(z===19){for(z=m();z!==20&&z!==1;)z=m();z===20&&(z=m(),z===160&&(z=m(),z===11&&k()))}else z===42&&(z=m(),z===130&&(z=m(),(z===80||pd(z))&&(z=m(),z===160&&(z=m(),z===11&&k()))))}return!0}return!1}function B(){let z=pp.getToken();if(z===95){if(E(),z=m(),z===156&&pp.lookAhead(()=>{const R=pp.scan();return R===42||R===19})&&(z=m()),z===19){for(z=m();z!==20&&z!==1;)z=m();z===20&&(z=m(),z===160&&(z=m(),z===11&&k()))}else if(z===42)z=m(),z===160&&(z=m(),z===11&&k());else if(z===102&&(z=m(),z===156&&pp.lookAhead(()=>{const R=pp.scan();return R===80||pd(R)})&&(z=m()),(z===80||pd(z))&&(z=m(),z===64&&U(!0))))return!0;return!0}return!1}function U(z,ce=!1){let R=z?m():pp.getToken();return R===149?(R=m(),R===21&&(R=m(),(R===11||ce&&R===15)&&k()),!0):!1}function V(){let z=pp.getToken();if(z===80&&pp.getTokenValue()==="define"){if(z=m(),z!==21)return!0;if(z=m(),z===11||z===15)if(z=m(),z===28)z=m();else return!0;if(z!==23)return!0;for(z=m();z!==24&&z!==1;)(z===11||z===15)&&k(),z=m();return!0}return!1}function re(){for(pp.setText(e),m();pp.getToken()!==1;){if(pp.getToken()===16){const z=[pp.getToken()];e:for(;Nr(z);){const ce=pp.scan();switch(ce){case 1:break e;case 102:N();break;case 16:z.push(ce);break;case 19:Nr(z)&&z.push(ce);break;case 20:Nr(z)&&(io(z)===16?pp.reScanTemplateToken(!1)===18&&z.pop():z.pop());break}}m()}O()||N()||B()||n&&(U(!1,!0)||V())||m()}pp.setText(void 0)}if(t&&re(),uX(i,e),_X(i,Ho),h){if(o)for(const z of o)s.push(z.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let z;if(o)for(const ce of o)ce.depth===0?(z||(z=[]),z.push(ce.ref.fileName)):s.push(ce.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:z}}}var KOe=or({"src/services/preProcess.ts"(){"use strict";Ri()}});function Eye(e){const t=N_(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),i=new Map,s=new Map;return{tryGetSourcePosition:f,tryGetGeneratedPosition:_,toLineColumnOffset:T,clearCache:k};function o(E){return Sl(E,n,t)}function l(E,O){const N=o(E),B=s.get(N);if(B)return B;let U;if(e.getDocumentPositionMapper)U=e.getDocumentPositionMapper(E,O);else if(e.readFile){const V=y(E);U=V&&Aye({getSourceFileLike:y,getCanonicalFileName:t,log:re=>e.log(re)},E,r0e(V.text,zy(V)),re=>!e.fileExists||e.fileExists(re)?e.readFile(re):void 0)}return s.set(N,U||qB),U||qB}function f(E){if(!md(E.fileName)||!h(E.fileName))return;const N=l(E.fileName).getSourcePosition(E);return!N||N===E?void 0:f(N)||N}function _(E){if(md(E.fileName))return;const O=h(E.fileName);if(!O)return;const N=e.getProgram();if(N.isSourceOfProjectReferenceRedirect(O.fileName))return;const B=N.getCompilerOptions(),U=Ml(B),V=U?Pd(U)+".d.ts":K$(E.fileName,N.getCompilerOptions(),n,N.getCommonSourceDirectory(),t);if(V===void 0)return;const re=l(V,E.fileName).getGeneratedPosition(E);return re===E?void 0:re}function h(E){const O=e.getProgram();if(!O)return;const N=o(E),B=O.getSourceFileByPath(N);return B&&B.resolvedPath===N?B:void 0}function m(E){const O=o(E),N=i.get(O);if(N!==void 0)return N||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(O)){i.set(O,!1);return}const B=e.readFile(O),U=B?eMe(B):!1;return i.set(O,U),U||void 0}function y(E){return e.getSourceFileLike?e.getSourceFileLike(E):h(E)||m(E)}function T(E,O){return y(E).getLineAndCharacterOfPosition(O)}function k(){i.clear(),s.clear()}}function Aye(e,t,n,i){let s=n0e(n);if(s){const f=Nye.exec(s);if(f){if(f[1]){const _=f[1];return Dye(e,p_e(Cu,_),t)}s=void 0}}const o=[];s&&o.push(s),o.push(t+".map");const l=s&&ms(s,ga(t));for(const f of o){const _=ms(f,ga(t)),h=i(_,l);if(bs(h))return Dye(e,h,_);if(h!==void 0)return h||void 0}}function Dye(e,t,n){const i=xZ(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(bs)))return c0e(e,i,n)}function eMe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(n){return hD(zy(this),n)}}}var Nye,tMe=or({"src/services/sourcemaps.ts"(){"use strict";Ri(),Nye=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/}});function iee(e,t,n){t.getSemanticDiagnostics(e,n);const i=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||Zl(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(vhe(t)||_K(t.getCompilerOptions()))&&rMe(e)&&i.push(ai(sMe(e.commonJsModuleIndicator),p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const l=Ip(e);if(Az.clear(),f(e),yS(t.getCompilerOptions()))for(const _ of e.imports){const h=tN(_),m=nMe(h);if(!m)continue;const y=j5(e,_.text,_g(e,_)),T=y&&t.getSourceFile(y.resolvedFileName);T&&T.externalModuleIndicator&&T.externalModuleIndicator!==!0&&Wu(T.externalModuleIndicator)&&T.externalModuleIndicator.isExportEquals&&i.push(ai(m,p.Import_may_be_converted_to_a_default_import))}return Et(i,e.bindSuggestionDiagnostics),Et(i,t.getSuggestionDiagnostics(e,n)),i.sort((_,h)=>_.start-h.start);function f(_){if(l)cMe(_,s)&&i.push(ai(Fa(_.parent)?_.parent.name:_,p.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(S_(_)&&_.parent===e&&_.declarationList.flags&2&&_.declarationList.declarations.length===1){const m=_.declarationList.declarations[0].initializer;m&&Nd(m,!0)&&i.push(ai(m,p.require_call_may_be_converted_to_an_import))}const h=Xf.getJSDocTypedefNode(_);h&&i.push(ai(h,p.JSDoc_typedef_may_be_converted_to_TypeScript_type)),Xf.parameterShouldGetTypeFromJSDoc(_)&&i.push(ai(_.name||_,p.JSDoc_types_may_be_moved_to_TypeScript_types))}oee(_)&&iMe(_,s,i),_.forEachChild(f)}}function rMe(e){return e.statements.some(t=>{switch(t.kind){case 242:return t.declarationList.declarations.some(n=>!!n.initializer&&Nd(Iye(n.initializer),!0));case 243:{const{expression:n}=t;if(!Un(n))return Nd(n,!0);const i=Au(n);return i===1||i===2}default:return!1}})}function Iye(e){return mi(e)?Iye(e.expression):e}function nMe(e){switch(e.kind){case 271:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===273&&sc(n)?t.namedBindings.name:void 0;case 270:return e.name;default:return}}function iMe(e,t,n){aMe(e,t)&&!Az.has(Lye(e))&&n.push(ai(!e.name&&Fa(e.parent)&&Be(e.parent.name)?e.parent.name:e,p.This_may_be_converted_to_an_async_function))}function aMe(e,t){return!ak(e)&&e.body&&oo(e.body)&&oMe(e.body,t)&&aee(e,t)}function aee(e,t){const n=t.getSignatureFromDeclaration(e),i=n?t.getReturnTypeOfSignature(n):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function sMe(e){return Un(e)?e.left:e}function oMe(e,t){return!!i3(e,n=>Ez(n,t))}function Ez(e,t){return jg(e)&&!!e.expression&&see(e.expression,t)}function see(e,t){if(!Pye(e)||!Oye(e)||!e.arguments.every(i=>Mye(i,t)))return!1;let n=e.expression.expression;for(;Pye(n)||mi(n);)if(go(n)){if(!Oye(n)||!n.arguments.every(i=>Mye(i,t)))return!1;n=n.expression.expression}else n=n.expression;return!0}function Pye(e){return go(e)&&(TP(e,"then")||TP(e,"catch")||TP(e,"finally"))}function Oye(e){const t=e.expression.name.text,n=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>n?!1:e.arguments.lengthi.kind===106||Be(i)&&i.text==="undefined")}function Mye(e,t){switch(e.kind){case 261:case 217:if(vf(e)&1)return!1;case 218:Az.set(Lye(e),!0);case 106:return!0;case 80:case 210:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||bt(Id(i,t).declarations,s=>Qs(s)||lb(s)&&!!s.initializer&&Qs(s.initializer)):!1}default:return!1}}function Lye(e){return`${e.pos.toString()}:${e.end.toString()}`}function cMe(e,t){var n,i,s,o;if(_l(e)){if(Fa(e.parent)&&((n=e.symbol.members)!=null&&n.size))return!0;const l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(s=l.members)!=null&&s.size))}return B_(e)?!!((o=e.symbol.members)!=null&&o.size):!1}function oee(e){switch(e.kind){case 261:case 173:case 217:case 218:return!0;default:return!1}}var Az,lMe=or({"src/services/suggestionDiagnostics.ts"(){"use strict";Ri(),Az=new Map}});function Fye(e,t){const n=[],i=t.compilerOptions?cee(t.compilerOptions,n):{},s=aJ();for(const T in s)Hs(s,T)&&i[T]===void 0&&(i[T]=s[T]);for(const T of LX)i.verbatimModuleSyntax&&Rye.has(T.name)||(i[T.name]=T.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const o=Yv(i),l={getSourceFile:T=>T===ec(f)?_:void 0,writeFile:(T,k)=>{Xl(T,".map")?(D.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",T),m=k):(D.assertEqual(h,void 0,"Unexpected multiple outputs, file:",T),h=k)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:T=>T,getCurrentDirectory:()=>"",getNewLine:()=>o,fileExists:T=>T===f,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},f=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),_=kI(f,e,{languageVersion:gc(i),impliedNodeFormat:uP(Sl(f,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:EN(i)});t.moduleName&&(_.moduleName=t.moduleName),t.renamedDependencies&&(_.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,m;const y=cj([f],i,l);return t.reportDiagnostics&&(Et(n,y.getSyntacticDiagnostics(_)),Et(n,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),h===void 0?D.fail("Output generation failed"):{outputText:h,diagnostics:n,sourceMapText:m}}function uMe(e,t,n,i,s){const o=Fye(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!i,moduleName:s});return Et(i,o.diagnostics),o.outputText}function cee(e,t){lee=lee||Mn(Ky,n=>typeof n.type=="object"&&!Zd(n.type,i=>typeof i!="number")),e=dhe(e);for(const n of lee){if(!Hs(e,n.name))continue;const i=e[n.name];bs(i)?e[n.name]=oB(n,i,t):Zd(n.type,s=>s===i)||t.push(sde(n))}return e}var Rye,lee,_Me=or({"src/services/transpile.ts"(){"use strict";Ri(),Rye=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function Bye(e,t,n,i,s,o){const l=mye(i);if(!l)return tt;const f=[];for(const _ of e)n.throwIfCancellationRequested(),!(o&&_.isDeclarationFile)&&_.getNamedDeclarations().forEach((h,m)=>{fMe(l,m,h,t,_.fileName,f)});return f.sort(gMe),(s===void 0?f:f.slice(0,s)).map(hMe)}function fMe(e,t,n,i,s,o){const l=e.getMatchForLastSegmentOfPattern(t);if(l){for(const f of n)if(pMe(f,i))if(e.patternContainsDots){const _=e.getFullMatch(mMe(f),t);_&&o.push({name:t,fileName:s,matchKind:_.kind,isCaseSensitive:_.isCaseSensitive,declaration:f})}else o.push({name:t,fileName:s,matchKind:l.kind,isCaseSensitive:l.isCaseSensitive,declaration:f})}}function pMe(e,t){switch(e.kind){case 272:case 275:case 270:const n=t.getSymbolAtLocation(e.name),i=t.getAliasedSymbol(n);return n.escapedName!==i.escapedName;default:return!0}}function dMe(e,t){const n=Es(e);return!!n&&(jye(n,t)||n.kind===166&&uee(n.expression,t))}function uee(e,t){return jye(e,t)||mi(e)&&(t.push(e.name.text),!0)&&uee(e.expression,t)}function jye(e,t){return rg(e)&&(t.push(ng(e)),!0)}function mMe(e){const t=[],n=Es(e);if(n&&n.kind===166&&!uee(n.expression,t))return tt;t.shift();let i=U7(e);for(;i;){if(!dMe(i,t))return tt;i=U7(i)}return t.reverse()}function gMe(e,t){return Uc(e.matchKind,t.matchKind)||Go(e.name,t.name)}function hMe(e){const t=e.declaration,n=U7(t),i=n&&Es(n);return{name:e.name,kind:L3(t),kindModifiers:bE(t),matchKind:wz[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Zp(t),containerName:i?i.text:"",containerKind:i?L3(n):""}}var yMe=or({"src/services/navigateTo.ts"(){"use strict";Ri()}}),zye={};Dl(zye,{getNavigateToItems:()=>Bye});var Jye=or({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";yMe()}});function Uye(e,t){Pz=t,NE=e;try{return er(SMe($ye(e)),kMe)}finally{Wye()}}function Vye(e,t){Pz=t,NE=e;try{return tve($ye(e))}finally{Wye()}}function Wye(){NE=void 0,Pz=void 0,IE=[],nv=void 0,Oz=[]}function $P(e){return sC(e.getText(NE))}function Dz(e){return e.node.kind}function qye(e,t){e.children?e.children.push(t):e.children=[t]}function $ye(e){D.assert(!IE.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};nv=t;for(const n of e.statements)G7(n);return Ab(),D.assert(!nv&&!IE.length),t}function q4(e,t){qye(nv,_ee(e,t))}function _ee(e,t){return{node:e,name:t||(cp(e)||ht(e)?Es(e):void 0),additionalNodes:void 0,parent:nv,children:void 0,indent:nv.indent+1}}function Hye(e){KS||(KS=new Map),KS.set(e,!0)}function Gye(e){for(let t=0;t0;i--){const s=n[i];$4(e,s)}return[n.length-1,n[0]]}function $4(e,t){const n=_ee(e,t);qye(nv,n),IE.push(nv),vee.push(KS),KS=void 0,nv=n}function Ab(){nv.children&&(Nz(nv.children,nv),dee(nv.children)),nv=IE.pop(),KS=vee.pop()}function Db(e,t,n){$4(e,n),G7(t),Ab()}function Zye(e){e.initializer&&wMe(e.initializer)?($4(e),js(e.initializer,G7),Ab()):Db(e,e.initializer)}function fee(e){return!Hv(e)||e.kind!==225&&mi(e.name.expression)&&Be(e.name.expression.expression)&&ri(e.name.expression.expression)==="Symbol"}function G7(e){if(Pz.throwIfCancellationRequested(),!(!e||ZT(e)))switch(e.kind){case 175:const t=e;Db(t,t.body);for(const l of t.parameters)gm(l,t)&&q4(l);break;case 173:case 176:case 177:case 172:fee(e)&&Db(e,e.body);break;case 171:fee(e)&&Zye(e);break;case 170:fee(e)&&q4(e);break;case 272:const n=e;n.name&&q4(n.name);const{namedBindings:i}=n;if(i)if(i.kind===273)q4(i);else for(const l of i.elements)q4(l);break;case 303:Db(e,e.name);break;case 304:const{expression:s}=e;Be(s)?q4(e,s):q4(e);break;case 207:case 302:case 259:{const l=e;_o(l.name)?G7(l.name):Zye(l);break}case 261:const o=e.name;o&&Be(o)&&Hye(o.text),Db(e,e.body);break;case 218:case 217:Db(e,e.body);break;case 265:$4(e);for(const l of e.members)CMe(l)||q4(l);Ab();break;case 262:case 230:case 263:$4(e);for(const l of e.members)G7(l);Ab();break;case 266:Db(e,nve(e).body);break;case 276:{const l=e.expression,f=Dc(l)||go(l)?l:Fl(l)||_l(l)?l.body:void 0;f?($4(e),G7(f),Ab()):q4(e);break}case 280:case 270:case 180:case 178:case 179:case 264:q4(e);break;case 212:case 225:{const l=Au(e);switch(l){case 1:case 2:Db(e,e.right);return;case 6:case 3:{const f=e,_=f.left,h=l===3?_.expression:_;let m=0,y;Be(h.expression)?(Hye(h.expression.text),y=h.expression):[m,y]=Xye(f,h.expression),l===6?Dc(f.right)&&f.right.properties.length>0&&($4(f,y),js(f.right,G7),Ab()):_l(f.right)||Fl(f.right)?Db(e,f.right,y):($4(f,y),Db(e,f.right,_.name),Ab()),Gye(m);return}case 7:case 9:{const f=e,_=l===7?f.arguments[0]:f.arguments[0].expression,h=f.arguments[1],[m,y]=Xye(e,_);$4(e,y),$4(e,yt(M.createIdentifier(h.text),h)),G7(e.arguments[2]),Ab(),Ab(),Gye(m);return}case 5:{const f=e,_=f.left,h=_.expression;if(Be(h)&&Hy(_)!=="prototype"&&KS&&KS.has(h.text)){_l(f.right)||Fl(f.right)?Db(e,f.right,h):u7(_)&&($4(f,h),Db(f.left,f.right,ZD(_)),Ab());return}break}case 4:case 0:case 8:break;default:D.assertNever(l)}}default:vm(e)&&Vt(e.jsDoc,l=>{Vt(l.tags,f=>{M0(f)&&q4(f)})}),js(e,G7)}}function Nz(e,t){const n=new Map;kd(e,(i,s)=>{const o=i.name||Es(i.node),l=o&&$P(o);if(!l)return!0;const f=n.get(l);if(!f)return n.set(l,i),!0;if(f instanceof Array){for(const _ of f)if(Yye(_,i,s,t))return!1;return f.push(i),!0}else{const _=f;return Yye(_,i,s,t)?!1:(n.set(l,[_,i]),!0)}})}function vMe(e,t,n,i){function s(f){return _l(f)||B_(f)||Fa(f)}const o=Un(t.node)||go(t.node)?Au(t.node):0,l=Un(e.node)||go(e.node)?Au(e.node):0;if(oC[o]&&oC[l]||s(e.node)&&oC[o]||s(t.node)&&oC[l]||cf(e.node)&&pee(e.node)&&oC[o]||cf(t.node)&&oC[l]||cf(e.node)&&pee(e.node)&&s(t.node)||cf(t.node)&&s(e.node)&&pee(e.node)){let f=e.additionalNodes&&io(e.additionalNodes)||e.node;if(!cf(e.node)&&!cf(t.node)||s(e.node)||s(t.node)){const h=s(e.node)?e.node:s(t.node)?t.node:void 0;if(h!==void 0){const m=yt(M.createConstructorDeclaration(void 0,[],void 0),h),y=_ee(m);y.indent=e.indent+1,y.children=e.node===h?e.children:t.children,e.children=e.node===h?Nn([y],t.children||[t]):Nn(e.children||[fa({},e)],[y])}else(e.children||t.children)&&(e.children=Nn(e.children||[fa({},e)],t.children||[t]),e.children&&(Nz(e.children,e),dee(e.children)));f=e.node=yt(M.createClassDeclaration(void 0,e.name||M.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Nn(e.children,t.children),e.children&&Nz(e.children,e);const _=t.node;return i.children[n-1].node.end===f.end?yt(f,{pos:f.pos,end:_.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(yt(M.createClassDeclaration(void 0,e.name||M.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return o!==0}function Yye(e,t,n,i){return vMe(e,t,n,i)?!0:bMe(e.node,t.node,i)?(xMe(e,t),!0):!1}function bMe(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&!(Qye(e,n)&&Qye(t,n)))return!1;switch(e.kind){case 171:case 173:case 176:case 177:return so(e)===so(t);case 266:return Kye(e,t)&&hee(e)===hee(t);default:return!0}}function pee(e){return!!(e.flags&8)}function Qye(e,t){const n=C1(e.parent)?e.parent.parent:e.parent;return n===t.node||Zn(t.additionalNodes,n)}function Kye(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==266||Kye(e.body,t.body))}function xMe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=Nn(e.children,t.children),e.children&&(Nz(e.children,e),dee(e.children))}function dee(e){e.sort(TMe)}function TMe(e,t){return Go(eve(e.node),eve(t.node))||Uc(Dz(e),Dz(t))}function eve(e){if(e.kind===266)return rve(e);const t=Es(e);if(t&&_u(t)){const n=P4(t);return n&&Ba(n)}switch(e.kind){case 217:case 218:case 230:return ave(e);default:return}}function mee(e,t){if(e.kind===266)return sC(rve(e));if(t){const n=Be(t)?t.text:Ll(t)?`[${$P(t.argumentExpression)}]`:$P(t);if(n.length>0)return sC(n)}switch(e.kind){case 311:const n=e;return c_(n)?`"${_S(H_(Pd(ec(n.fileName))))}"`:"";case 276:return Wu(e)&&e.isExportEquals?"export=":"default";case 218:case 261:case 217:case 262:case 230:return pb(e)&1024?"default":ave(e);case 175:return"constructor";case 179:return"new()";case 178:return"()";case 180:return"[]";default:return""}}function SMe(e){const t=[];function n(s){if(i(s)&&(t.push(s),s.children))for(const o of s.children)n(o)}return n(e),t;function i(s){if(s.children)return!0;switch(Dz(s)){case 262:case 230:case 265:case 263:case 266:case 311:case 264:case 352:case 344:return!0;case 218:case 261:case 217:return o(s);default:return!1}function o(l){if(!l.node.body)return!1;switch(Dz(l.parent)){case 267:case 311:case 173:case 175:return!0;default:return!1}}}}function tve(e){return{text:mee(e.node,e.name),kind:L3(e.node),kindModifiers:ive(e.node),spans:gee(e),nameSpan:e.name&&yee(e.name),childItems:er(e.children,tve)}}function kMe(e){return{text:mee(e.node,e.name),kind:L3(e.node),kindModifiers:ive(e.node),spans:gee(e),childItems:er(e.children,t)||Oz,indent:e.indent,bolded:!1,grayed:!1};function t(n){return{text:mee(n.node,n.name),kind:L3(n.node),kindModifiers:bE(n.node),spans:gee(n),childItems:Oz,indent:0,bolded:!1,grayed:!1}}}function gee(e){const t=[yee(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(yee(n));return t}function rve(e){return Np(e)?F_(e.name):hee(e)}function hee(e){const t=[ng(e.name)];for(;e.body&&e.body.kind===266;)e=e.body,t.push(ng(e.name));return t.join(".")}function nve(e){return e.body&&Vu(e.body)?nve(e.body):e}function CMe(e){return!e.name||e.name.kind===166}function yee(e){return e.kind===311?Cb(e):Zp(e,NE)}function ive(e){return e.parent&&e.parent.kind===259&&(e=e.parent),bE(e)}function ave(e){const{parent:t}=e;if(e.name&&MD(e.name)>0)return sC(il(e.name));if(Fa(t))return sC(il(t.name));if(Un(t)&&t.operatorToken.kind===64)return $P(t.left).replace(ove,"");if(Y_(t))return $P(t.name);if(pb(e)&1024)return"default";if(Yi(e))return"";if(go(t)){let n=sve(t.expression);if(n!==void 0){if(n=sC(n),n.length>Iz)return`${n} callback`;const i=sC(Mr(t.arguments,s=>Wc(s)?s.getText(NE):void 0).join(", "));return`${n}(${i}) callback`}}return""}function sve(e){if(Be(e))return e.text;if(mi(e)){const t=sve(e.expression),n=e.name.text;return t===void 0?n:`${t}.${n}`}else return}function wMe(e){switch(e.kind){case 218:case 217:case 230:return!0;default:return!1}}function sC(e){return e=e.length>Iz?e.substring(0,Iz)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var ove,Iz,Pz,NE,IE,nv,vee,KS,Oz,oC,EMe=or({"src/services/navigationBar.ts"(){"use strict";Ri(),ove=/\s+/g,Iz=150,IE=[],vee=[],Oz=[],oC={[5]:!0,[3]:!0,[7]:!0,[9]:!0,[0]:!1,[1]:!1,[2]:!1,[8]:!1,[6]:!0,[4]:!1}}}),cve={};Dl(cve,{getNavigationBarItems:()=>Uye,getNavigationTree:()=>Vye});var lve=or({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";EMe()}});function py(e,t){Mz.set(e,t)}function AMe(e,t){return zt(zf(Mz.values(),n=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=n.kinds)!=null&&i.some(s=>Nb(s,e.kind)))?void 0:n.getAvailableActions(e,t)}))}function DMe(e,t,n,i){const s=Mz.get(t);return s&&s.getEditsForAction(e,n,i)}var Mz,uve=or({"src/services/refactorProvider.ts"(){"use strict";Ri(),Th(),Mz=new Map}});function _ve(e,t=!0){const{file:n,program:i}=e,s=ZS(e),o=Za(n,s.start),l=o.parent&&pb(o.parent)&1&&t?o.parent:FP(o,n,s);if(!l||!Ja(l.parent)&&!(C1(l.parent)&&Np(l.parent.parent)))return{error:Vo(p.Could_not_find_export_statement)};const f=i.getTypeChecker(),_=LMe(l.parent,f),h=pb(l)||(Wu(l)&&!l.isExportEquals?1025:0),m=!!(h&1024);if(!(h&1)||!m&&_.exports.has("default"))return{error:Vo(p.This_file_already_has_a_default_export)};const y=T=>Be(T)&&f.getSymbolAtLocation(T)?void 0:{error:Vo(p.Can_only_convert_named_export)};switch(l.kind){case 261:case 262:case 263:case 265:case 264:case 266:{const T=l;return T.name?y(T.name)||{exportNode:T,exportName:T.name,wasDefault:m,exportingModuleSymbol:_}:void 0}case 242:{const T=l;if(!(T.declarationList.flags&2)||T.declarationList.declarations.length!==1)return;const k=Fi(T.declarationList.declarations);return k.initializer?(D.assert(!m,"Can't have a default flag here"),y(k.name)||{exportNode:T,exportName:k.name,wasDefault:m,exportingModuleSymbol:_}):void 0}case 276:{const T=l;return T.isExportEquals?void 0:y(T.expression)||{exportNode:T,exportName:T.expression,wasDefault:m,exportingModuleSymbol:_}}default:return}}function NMe(e,t,n,i,s){IMe(e,n,i,t.getTypeChecker()),PMe(t,n,i,s)}function IMe(e,{wasDefault:t,exportNode:n,exportName:i},s,o){if(t)if(Wu(n)&&!n.isExportEquals){const l=n.expression,f=fve(l.text,l.text);s.replaceNode(e,n,M.createExportDeclaration(void 0,!1,M.createNamedExports([f])))}else s.delete(e,D.checkDefined(rC(n,90),"Should find a default keyword in modifier list"));else{const l=D.checkDefined(rC(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 261:case 262:case 263:s.insertNodeAfter(e,l,M.createToken(90));break;case 242:const f=Fi(n.declarationList.declarations);if(!tu.Core.isSymbolReferencedInFile(i,o,e)&&!f.type){s.replaceNode(e,n,M.createExportDefault(D.checkDefined(f.initializer,"Initializer was previously known to be present")));break}case 265:case 264:case 266:s.deleteModifier(e,l),s.insertNodeAfter(e,n,M.createExportDefault(M.createIdentifier(i.text)));break;default:D.fail(`Unexpected exportNode kind ${n.kind}`)}}}function PMe(e,{wasDefault:t,exportName:n,exportingModuleSymbol:i},s,o){const l=e.getTypeChecker(),f=D.checkDefined(l.getSymbolAtLocation(n),"Export name should resolve to a symbol");tu.Core.eachExportReference(e.getSourceFiles(),l,o,f,i,n.text,t,_=>{if(n===_)return;const h=_.getSourceFile();t?OMe(h,_,s,n.text):MMe(h,_,s)})}function OMe(e,t,n,i){const{parent:s}=t;switch(s.kind){case 210:n.replaceNode(e,t,M.createIdentifier(i));break;case 275:case 280:{const l=s;n.replaceNode(e,l,bee(i,l.name.text));break}case 272:{const l=s;D.assert(l.name===t,"Import clause name should match provided ref");const f=bee(i,t.text),{namedBindings:_}=l;if(!_)n.replaceNode(e,t,M.createNamedImports([f]));else if(_.kind===273){n.deleteRange(e,{pos:t.getStart(e),end:_.getStart(e)});const h=sc(l.parent.moduleSpecifier)?pK(l.parent.moduleSpecifier,e):1,m=l2(void 0,[bee(i,t.text)],l.parent.moduleSpecifier,h);n.insertNodeAfter(e,l.parent,m)}else n.delete(e,t),n.insertNodeAtEndOfList(e,_.elements,f);break}case 204:const o=s;n.replaceNode(e,s,M.createImportTypeNode(o.argument,o.assertions,M.createIdentifier(i),o.typeArguments,o.isTypeOf));break;default:D.failBadSyntaxKind(s)}}function MMe(e,t,n){const i=t.parent;switch(i.kind){case 210:n.replaceNode(e,t,M.createIdentifier("default"));break;case 275:{const s=M.createIdentifier(i.name.text);i.parent.elements.length===1?n.replaceNode(e,i.parent,s):(n.delete(e,i),n.insertNodeBefore(e,i.parent,s));break}case 280:{n.replaceNode(e,i,fve("default",i.name.text));break}default:D.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function bee(e,t){return M.createImportSpecifier(!1,e===t?void 0:M.createIdentifier(e),M.createIdentifier(t))}function fve(e,t){return M.createExportSpecifier(!1,e===t?void 0:M.createIdentifier(e),M.createIdentifier(t))}function LMe(e,t){if(Ja(e))return e.symbol;const n=e.parent.symbol;return n.valueDeclaration&&t3(n.valueDeclaration)?t.getMergedSymbol(n):n}var Lz,HP,GP,FMe=or({"src/services/refactors/convertExport.ts"(){"use strict";Ri(),Th(),Lz="Convert export",HP={name:"Convert default export to named export",description:p.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},GP={name:"Convert named export to default export",description:p.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"},py(Lz,{kinds:[HP.kind,GP.kind],getAvailableActions:function(t){const n=_ve(t,t.triggerReason==="invoked");if(!n)return tt;if(!dy(n)){const i=n.wasDefault?HP:GP;return[{name:Lz,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:Lz,description:p.Convert_default_export_to_named_export.message,actions:[Xs(fa({},HP),{notApplicableReason:n.error}),Xs(fa({},GP),{notApplicableReason:n.error})]}]:tt},getEditsForAction:function(t,n){D.assert(n===HP.name||n===GP.name,"Unexpected action name");const i=_ve(t);return D.assert(i&&!dy(i),"Expected applicable refactor info"),{edits:Vn.ChangeTracker.with(t,o=>NMe(t.file,t.program,i,o,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function pve(e,t=!0){const{file:n}=e,i=ZS(e),s=Za(n,i.start),o=t?Sn(s,Tf):FP(s,n,i);if(!o||!Tf(o))return{error:"Selection is not an import declaration."};const l=i.start+i.length,f=V7(o,o.parent,n);if(f&&l>f.getStart())return;const{importClause:_}=o;return _?_.namedBindings?_.namedBindings.kind===273?{convertTo:0,import:_.namedBindings}:dve(e.program,_)?{convertTo:1,import:_.namedBindings}:{convertTo:2,import:_.namedBindings}:{error:Vo(p.Could_not_find_namespace_import_or_named_imports)}:{error:Vo(p.Could_not_find_import_clause)}}function dve(e,t){return yS(e.getCompilerOptions())&&zMe(t.parent.moduleSpecifier,e.getTypeChecker())}function RMe(e,t,n,i){const s=t.getTypeChecker();i.convertTo===0?BMe(e,s,n,i.import,yS(t.getCompilerOptions())):gve(e,t,n,i.import,i.convertTo===1)}function BMe(e,t,n,i,s){let o=!1;const l=[],f=new Map;tu.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!Tle(y.parent))o=!0;else{const T=mve(y.parent).text;t.resolveName(T,y,67108863,!0)&&f.set(T,!0),D.assert(jMe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});const _=new Map;for(const y of l){const T=mve(y).text;let k=_.get(T);k===void 0&&_.set(T,k=f.has(T)?H7(T,e):T),n.replaceNode(e,y,M.createIdentifier(k))}const h=[];_.forEach((y,T)=>{h.push(M.createImportSpecifier(!1,y===T?void 0:M.createIdentifier(T),M.createIdentifier(y)))});const m=i.parent.parent;o&&!s?n.insertNodeAfter(e,m,xee(m,void 0,h)):n.replaceNode(e,m,xee(m,o?M.createIdentifier(i.name.text):void 0,h))}function mve(e){return mi(e)?e.name:e.right}function jMe(e){return mi(e)?e.expression:e.left}function gve(e,t,n,i,s=dve(t,i.parent)){const o=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:f}=l,_=new Set;i.elements.forEach(E=>{const O=o.getSymbolAtLocation(E.name);O&&_.add(O)});const h=f&&sc(f)?Xf.moduleSpecifierToValidIdentifier(f.text,99):"module";function m(E){return!!tu.Core.eachSymbolReferenceInFile(E.name,o,e,O=>{const N=o.resolveName(h,O,67108863,!0);return N?_.has(N)?dd(O.parent):!0:!1})}const T=i.elements.some(m)?H7(h,e):h,k=new Set;for(const E of i.elements){const O=(E.propertyName||E.name).text;tu.Core.eachSymbolReferenceInFile(E.name,o,e,N=>{const B=M.createPropertyAccessExpression(M.createIdentifier(T),O);_0(N.parent)?n.replaceNode(e,N.parent,M.createPropertyAssignment(N.text,B)):dd(N.parent)?k.add(E):n.replaceNode(e,N,B)})}if(n.replaceNode(e,i,s?M.createIdentifier(T):M.createNamespaceImport(M.createIdentifier(T))),k.size){const E=zt(k.values(),O=>M.createImportSpecifier(O.isTypeOnly,O.propertyName&&M.createIdentifier(O.propertyName.text),M.createIdentifier(O.name.text)));n.insertNodeAfter(e,i.parent.parent,xee(l,void 0,E))}}function zMe(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;const i=t.resolveExternalModuleSymbol(n);return n!==i}function xee(e,t,n){return M.createImportDeclaration(void 0,M.createImportClause(!1,t,n&&n.length?M.createNamedImports(n):void 0),e.moduleSpecifier,void 0)}var Fz,XP,JMe=or({"src/services/refactors/convertImport.ts"(){"use strict";Ri(),Th(),Fz="Convert import",XP={[0]:{name:"Convert namespace import to named imports",description:p.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},[2]:{name:"Convert named imports to namespace import",description:p.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},[1]:{name:"Convert named imports to default import",description:p.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"}},py(Fz,{kinds:If(XP).map(e=>e.kind),getAvailableActions:function(t){const n=pve(t,t.triggerReason==="invoked");if(!n)return tt;if(!dy(n)){const i=XP[n.convertTo];return[{name:Fz,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?If(XP).map(i=>({name:Fz,description:i.description,actions:[Xs(fa({},i),{notApplicableReason:n.error})]})):tt},getEditsForAction:function(t,n){D.assert(bt(If(XP),o=>o.name===n),"Unexpected action name");const i=pve(t);return D.assert(i&&!dy(i),"Expected applicable refactor info"),{edits:Vn.ChangeTracker.with(t,o=>RMe(t.file,t.program,o,i)),renameFilename:void 0,renameLocation:void 0}}})}});function hve(e,t=!0){const{file:n,startPosition:i}=e,s=Ip(n),o=Za(n,i),l=Wj(ZS(e)),f=l.pos===l.end&&t,_=Sn(o,k=>k.parent&&Oa(k)&&!H4(l,k.parent,n)&&(f||XQ(o,n,l.pos,l.end)));if(!_||!Oa(_))return{error:Vo(p.Selection_is_not_a_valid_type_node)};const h=e.program.getTypeChecker(),m=$Me(_,s);if(m===void 0)return{error:Vo(p.No_type_could_be_extracted_from_this_type_node)};const y=UMe(h,_,m,n);if(!y)return{error:Vo(p.No_type_could_be_extracted_from_this_type_node)};const T=Tee(h,_);return{isJS:s,selection:_,enclosingNode:m,typeParameters:y,typeElements:T}}function Tee(e,t){if(t)if(aI(t)){const n=[],i=new Map;for(const s of t.types){const o=Tee(e,s);if(!o||!o.every(l=>l.name&&Lg(i,MP(l.name))))return;Et(n,o)}return n}else{if(DS(t))return Tee(e,t.type);if(Sm(t))return t.members}}function H4(e,t,n){return wP(e,tc(n.text,t.pos),t.end)}function UMe(e,t,n,i){const s=[];return o(t)?void 0:s;function o(l){if(Rg(l)){if(Be(l.typeName)){const f=l.typeName,_=e.resolveName(f.text,f,262144,!0);for(const h of(_==null?void 0:_.declarations)||tt)if(eu(h)&&h.getSourceFile()===i){if(h.name.escapedText===f.escapedText&&H4(h,t,i))return!0;if(H4(n,h,i)&&!H4(t,h,i)){kr(s,h);break}}}}else if(AS(l)){const f=Sn(l,_=>Ek(_)&&H4(_.extendsType,l,i));if(!f||!H4(t,f,i))return!0}else if(RR(l)||BR(l)){const f=Sn(l.parent,Qs);if(f&&f.type&&H4(f.type,l,i)&&!H4(t,f,i))return!0}else if(F9(l)){if(Be(l.exprName)){const f=e.resolveName(l.exprName.text,l.exprName,111551,!1);if(f!=null&&f.valueDeclaration&&H4(n,f.valueDeclaration,i)&&!H4(t,f.valueDeclaration,i))return!0}else if(f3(l.exprName.left)&&!H4(t,l.parent,i))return!0}return i&&wk(l)&&Ql(i,l.pos).line===Ql(i,l.end).line&&Ln(l,1),js(l,o)}}function VMe(e,t,n,i){const{enclosingNode:s,selection:o,typeParameters:l}=i,f=M.createTypeAliasDeclaration(void 0,n,l.map(_=>M.updateTypeParameterDeclaration(_,_.modifiers,_.name,_.constraint,void 0)),o);e.insertNodeBefore(t,s,SG(f),!0),e.replaceNode(t,o,M.createTypeReferenceNode(n,l.map(_=>M.createTypeReferenceNode(_.name,void 0))),{leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.ExcludeWhitespace})}function WMe(e,t,n,i){var s;const{enclosingNode:o,selection:l,typeParameters:f,typeElements:_}=i,h=M.createInterfaceDeclaration(void 0,n,f,void 0,_);yt(h,(s=_[0])==null?void 0:s.parent),e.insertNodeBefore(t,o,SG(h),!0),e.replaceNode(t,l,M.createTypeReferenceNode(n,f.map(m=>M.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.ExcludeWhitespace})}function qMe(e,t,n,i,s){var o;const{enclosingNode:l,selection:f,typeParameters:_}=s;Ln(f,7168);const h=M.createJSDocTypedefTag(M.createIdentifier("typedef"),M.createJSDocTypeExpression(f),M.createIdentifier(i)),m=[];Vt(_,T=>{const k=N5(T),E=M.createTypeParameterDeclaration(void 0,T.name),O=M.createJSDocTemplateTag(M.createIdentifier("template"),k&&Ws(k,E7),[E]);m.push(O)});const y=M.createJSDocComment(void 0,M.createNodeArray(Nn(m,[h])));if(cg(l)){const T=l.getStart(n),k=wb(t.host,(o=t.formatContext)==null?void 0:o.options);e.insertNodeAt(n,l.getStart(n),y,{suffix:k+k+n.text.slice(ez(n.text,T-1),T)})}else e.insertNodeBefore(n,l,y,!0);e.replaceNode(n,f,M.createTypeReferenceNode(i,_.map(T=>M.createTypeReferenceNode(T.name,void 0))))}function $Me(e,t){return Sn(e,us)||(t?Sn(e,cg):void 0)}var Rz,ZP,YP,QP,HMe=or({"src/services/refactors/extractType.ts"(){"use strict";Ri(),Th(),Rz="Extract type",ZP={name:"Extract to type alias",description:Vo(p.Extract_to_type_alias),kind:"refactor.extract.type"},YP={name:"Extract to interface",description:Vo(p.Extract_to_interface),kind:"refactor.extract.interface"},QP={name:"Extract to typedef",description:Vo(p.Extract_to_typedef),kind:"refactor.extract.typedef"},py(Rz,{kinds:[ZP.kind,YP.kind,QP.kind],getAvailableActions:function(t){const n=hve(t,t.triggerReason==="invoked");return n?dy(n)?t.preferences.provideRefactorNotApplicableReason?[{name:Rz,description:Vo(p.Extract_type),actions:[Xs(fa({},QP),{notApplicableReason:n.error}),Xs(fa({},ZP),{notApplicableReason:n.error}),Xs(fa({},YP),{notApplicableReason:n.error})]}]:tt:[{name:Rz,description:Vo(p.Extract_type),actions:n.isJS?[QP]:Ht([ZP],n.typeElements&&YP)}]:tt},getEditsForAction:function(t,n){const{file:i}=t,s=hve(t);D.assert(s&&!dy(s),"Expected to find a range to extract");const o=H7("NewType",i),l=Vn.ChangeTracker.with(t,h=>{switch(n){case ZP.name:return D.assert(!s.isJS,"Invalid actionName/JS combo"),VMe(h,i,o,s);case QP.name:return D.assert(s.isJS,"Invalid actionName/JS combo"),qMe(h,t,i,o,s);case YP.name:return D.assert(!s.isJS&&!!s.typeElements,"Invalid actionName/JS combo"),WMe(h,i,o,s);default:D.fail("Unexpected action name")}}),f=i.fileName,_=zP(l,f,o,!1);return{edits:l,renameFilename:f,renameLocation:_}}})}});function dy(e){return e.error!==void 0}function Nb(e,t){return t?e.substr(0,t.length)===t:!0}var GMe=or({"src/services/refactors/helpers.ts"(){"use strict"}});function XMe(e,t,n,i,s,o,l){const f=t.getTypeChecker(),_=Jz(e,n.all,f),h=Oee(e,t,l,s);i.createNewFile(e,h,ZMe(e,_,i,n,t,s,h,o)),See(t,i,e.fileName,h,Gv(s))}function ZMe(e,t,n,i,s,o,l,f){const _=s.getTypeChecker(),h=i_(e.statements,eg);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return KP(e,i.ranges,n),[...h,...i.all];const m=!BK(l,s,o,!!e.commonJsModuleIndicator),y=f0(e,f),T=Eee(e,t.oldFileImportsFromTargetFile,l,s,o,m,y);T&&TE(n,e,T,!0,f),kee(e,i.all,n,t.unusedImportsFromOldFile,_),KP(e,i.ranges,n),Cee(n,s,o,e,t.movedSymbols,l,y);const k=YMe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,n,_,s,o,m,y),E=Aee(e,i.all,t.oldFileImportsFromTargetFile,m);return k.length&&E.length?[...h,...k,4,...E]:[...h,...k,...E]}function YMe(e,t,n,i,s,o,l,f,_){const h=[];for(const k of e.statements)ME(k,E=>{Ht(h,LE(E,OE(E),O=>t.has(s.getSymbolAtLocation(O))))});let m;const y=[],T=GS();return n.forEach(k=>{if(k.declarations)for(const E of k.declarations){if(!Uz(E))continue;const O=Iee(E);if(!O)continue;const N=zz(E);T(N)&&Pee(e,N,O,i,f),Pi(E,1024)?m=O:y.push(O.text)}}),Ht(h,eO(e,m,y,H_(e.fileName),o,l,f,_)),h}var PE,Bz,jz,QMe=or({"src/services/refactors/moveToNewFile.ts"(){"use strict";Ri(),Th(),PE="Move to a new file",Bz=Vo(p.Move_to_a_new_file),jz={name:PE,description:Bz,kind:"refactor.move.newFile"},py(PE,{kinds:[jz.kind],getAvailableActions:function(t){const n=FE(t);return t.preferences.allowTextChangesInNewFiles&&n?[{name:PE,description:Bz,actions:[jz]}]:t.preferences.provideRefactorNotApplicableReason?[{name:PE,description:Bz,actions:[Xs(fa({},jz),{notApplicableReason:Vo(p.Selection_is_not_a_valid_statement_or_statements)})]}]:tt},getEditsForAction:function(t,n){D.assert(n===PE,"Wrong refactor invoked");const i=D.checkDefined(FE(t));return{edits:Vn.ChangeTracker.with(t,o=>XMe(t.file,t.program,i,o,t.host,t.preferences,t)),renameFilename:void 0,renameLocation:void 0}}})}});function KMe(e,t,n,i,s,o,l,f){const _=i.getTypeChecker(),h=Jz(t,s.all,_);if(!l.fileExists(n))o.createNewFile(t,n,yve(t,n,h,o,s,i,l,f)),See(i,o,t.fileName,n,Gv(l));else{const m=D.checkDefined(i.getSourceFile(n)),y=Xf.createImportAdder(m,e.program,e.preferences,e.host);yve(t,m,h,o,s,i,l,f,y)}}function yve(e,t,n,i,s,o,l,f,_){const h=o.getTypeChecker(),m=i_(e.statements,eg);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&n.oldImportsNeededByTargetFile.size===0&&n.targetFileImportsFromOldFile.size===0&&typeof t=="string")return KP(e,s.ranges,i),[...m,...s.all];const y=typeof t=="string"?t:t.fileName,T=!BK(y,o,l,!!e.commonJsModuleIndicator),k=f0(e,f),E=Eee(e,n.oldFileImportsFromTargetFile,y,o,l,T,k);E&&TE(i,e,E,!0,f),kee(e,s.all,i,n.unusedImportsFromOldFile,h),KP(e,s.ranges,i),Cee(i,o,l,e,n.movedSymbols,y,k);const O=eLe(e,y,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,i,h,o,l,T,k,_),N=Aee(e,s.all,n.oldFileImportsFromTargetFile,T);return typeof t!="string"&&(t.statements.length>0?i.insertNodesAfter(t,t.statements[t.statements.length-1],N):i.insertNodesAtEndOfFile(t,N,!1),O.length>0&&TE(i,t,O,!0,f)),_&&_.writeFixes(i),O.length&&N.length?[...m,...O,4,...N]:[...m,...O,...N]}function eLe(e,t,n,i,s,o,l,f,_,h,m){const y=[];if(m)n.forEach((N,B)=>{try{m.addImportFromExportedSymbol(Id(B,o),N)}catch(U){for(const V of e.statements)ME(V,re=>{Ht(y,LE(re,M.createStringLiteral(OE(re).text),z=>n.has(o.getSymbolAtLocation(z))))})}});else{const N=l.getSourceFile(t);for(const B of e.statements)ME(B,U=>{var V,re;const z=OE(U),ce=(V=e.resolvedModules)==null?void 0:V.get(z.text,_g(e,z)),R=(re=ce==null?void 0:ce.resolvedModule)==null?void 0:re.resolvedFileName;if(R&&N){const le=HI(l.getCompilerOptions(),N,N.path,R,q7(l,f));Ht(y,LE(U,XS(le,h),ae=>n.has(o.getSymbolAtLocation(ae))))}else Ht(y,LE(U,M.createStringLiteral(OE(U).text),le=>n.has(o.getSymbolAtLocation(le))))})}const T=l.getSourceFile(t);let k;const E=[],O=GS();return i.forEach(N=>{if(N.declarations)for(const B of N.declarations){if(!Uz(B))continue;const U=Iee(B);if(!U)continue;const V=zz(B);O(V)&&Pee(e,V,U,s,_),m&&o.isUnknownSymbol(N)?m.addImportFromExportedSymbol(Id(N,o)):Pi(B,1024)?k=U:E.push(U.text)}}),T?Ht(y,eO(T,k,E,e.fileName,l,f,_,h)):Ht(y,eO(e,k,E,e.fileName,l,f,_,h))}function See(e,t,n,i,s){const o=e.getCompilerOptions().configFile;if(!o)return;const l=ec(ta(n,"..",i)),f=fD(o.fileName,l,s),_=o.statements[0]&&di(o.statements[0].expression,Dc),h=_&&on(_.properties,m=>Y_(m)&&sc(m.name)&&m.name.text==="files");h&&Op(h.initializer)&&t.insertNodeInListAfter(o,fi(h.initializer.elements),M.createStringLiteral(f),h.initializer.elements)}function KP(e,t,n){for(const{first:i,afterLast:s}of t)n.deleteNodeRangeExcludingEnd(e,i,s)}function kee(e,t,n,i,s){for(const o of e.statements)Zn(t,o)||ME(o,l=>Dee(e,l,n,f=>i.has(s.getSymbolAtLocation(f))))}function Cee(e,t,n,i,s,o,l){const f=t.getTypeChecker();for(const _ of t.getSourceFiles())if(_!==i)for(const h of _.statements)ME(h,m=>{if(f.getSymbolAtLocation(OE(m))!==i.symbol)return;const y=N=>{const B=Cc(N.parent)?Qj(f,N.parent):Id(f.getSymbolAtLocation(N),f);return!!B&&s.has(B)};Dee(_,m,e,y);const T=ud(ga(i.path),o),k=HI(t.getCompilerOptions(),_,_.path,T,q7(t,n)),E=LE(m,XS(k,l),y);E&&e.insertNodeAfter(_,h,E);const O=tLe(m);O&&rLe(e,_,f,s,k,O,m,l)})}function tLe(e){switch(e.kind){case 271:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===273?e.importClause.namedBindings.name:void 0;case 270:return e.name;case 259:return di(e.name,Be);default:return D.assertNever(e,`Unexpected node kind ${e.kind}`)}}function rLe(e,t,n,i,s,o,l,f){const _=Xf.moduleSpecifierToValidIdentifier(s,99);let h=!1;const m=[];if(tu.Core.eachSymbolReferenceInFile(o,n,t,y=>{mi(y.parent)&&(h=h||!!n.resolveName(_,y,67108863,!0),i.has(n.getSymbolAtLocation(y.parent.name))&&m.push(y))}),m.length){const y=h?H7(_,t):_;for(const T of m)e.replaceNode(t,T,M.createIdentifier(y));e.insertNodeAfter(t,l,nLe(l,_,s,f))}}function nLe(e,t,n,i){const s=M.createIdentifier(t),o=XS(n,i);switch(e.kind){case 271:return M.createImportDeclaration(void 0,M.createImportClause(!1,void 0,M.createNamespaceImport(s)),o,void 0);case 270:return M.createImportEqualsDeclaration(void 0,!1,s,M.createExternalModuleReference(o));case 259:return M.createVariableDeclaration(s,void 0,void 0,wee(o));default:return D.assertNever(e,`Unexpected node kind ${e.kind}`)}}function wee(e){return M.createCallExpression(M.createIdentifier("require"),void 0,[e])}function OE(e){return e.kind===271?e.moduleSpecifier:e.kind===270?e.moduleReference.expression:e.initializer.arguments[0]}function ME(e,t){if(Tf(e))sc(e.moduleSpecifier)&&t(e);else if(Hf(e))yh(e.moduleReference)&&Wc(e.moduleReference.expression)&&t(e);else if(S_(e))for(const n of e.declarationList.declarations)n.initializer&&Nd(n.initializer,!0)&&t(n)}function Eee(e,t,n,i,s,o,l){let f;const _=[];return t.forEach(h=>{h.escapedName==="default"?f=M.createIdentifier(Xj(h)):_.push(h.name)}),eO(e,f,_,n,i,s,o,l)}function eO(e,t,n,i,s,o,l,f){const _=ud(ga(e.path),i),h=HI(s.getCompilerOptions(),e,e.path,_,q7(s,o));if(l){const m=n.map(y=>M.createImportSpecifier(!1,void 0,M.createIdentifier(y)));return bhe(t,m,h,f)}else{D.assert(!t,"No default import should exist");const m=n.map(y=>M.createBindingElement(void 0,void 0,y));return m.length?vve(M.createObjectBindingPattern(m),void 0,wee(XS(h,f))):void 0}}function vve(e,t,n,i=2){return M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(e,void 0,t,n)],i))}function Aee(e,t,n,i){return lo(t,s=>{if(sLe(s)&&!bve(e,s,i)&&Sve(s,o=>{var l;return n.has(D.checkDefined((l=di(o,rh))==null?void 0:l.symbol))})){const o=oLe(Vl(s),i);if(o)return o}return Vl(s)})}function bve(e,t,n,i){var s;return n?!$f(t)&&Pi(t,1)||!!(i&&e.symbol&&((s=e.symbol.exports)!=null&&s.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Nee(t).some(o=>e.symbol.exports.has(Kl(o)))}function Dee(e,t,n,i){switch(t.kind){case 271:iLe(e,t,n,i);break;case 270:i(t.name)&&n.delete(e,t);break;case 259:aLe(e,t,n,i);break;default:D.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function iLe(e,t,n,i){if(!t.importClause)return;const{name:s,namedBindings:o}=t.importClause,l=!s||i(s),f=!o||(o.kind===273?i(o.name):o.elements.length!==0&&o.elements.every(_=>i(_.name)));if(l&&f)n.delete(e,t);else if(s&&l&&n.delete(e,s),o){if(f)n.replaceNode(e,t.importClause,M.updateImportClause(t.importClause,t.importClause.isTypeOnly,s,void 0));else if(o.kind===274)for(const _ of o.elements)i(_.name)&&n.delete(e,_)}}function aLe(e,t,n,i){const{name:s}=t;switch(s.kind){case 80:i(s)&&(t.initializer&&Nd(t.initializer,!0)?n.delete(e,of(t.parent)&&Nr(t.parent.declarations)===1?t.parent.parent:t):n.delete(e,s));break;case 206:break;case 205:if(s.elements.every(o=>Be(o.name)&&i(o.name)))n.delete(e,of(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const o of s.elements)Be(o.name)&&i(o.name)&&n.delete(e,o.name);break}}function sLe(e){return D.assert(Ja(e.parent),"Node parent should be a SourceFile"),Eve(e)||S_(e)}function oLe(e,t){return t?[cLe(e)]:lLe(e)}function cLe(e){const t=lg(e)?Nn([M.createModifier(95)],Kx(e)):void 0;switch(e.kind){case 261:return M.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 262:const n=jS(e)?nb(e):void 0;return M.updateClassDeclaration(e,Nn(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 242:return M.updateVariableStatement(e,t,e.declarationList);case 266:return M.updateModuleDeclaration(e,t,e.name,e.body);case 265:return M.updateEnumDeclaration(e,t,e.name,e.members);case 264:return M.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 263:return M.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 270:return M.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 243:return D.fail();default:return D.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function lLe(e){return[e,...Nee(e).map(xve)]}function xve(e){return M.createExpressionStatement(M.createBinaryExpression(M.createPropertyAccessExpression(M.createIdentifier("exports"),M.createIdentifier(e)),64,M.createIdentifier(e)))}function Nee(e){switch(e.kind){case 261:case 262:return[e.name.text];case 242:return Mr(e.declarationList.declarations,t=>Be(t.name)?t.name.text:void 0);case 266:case 265:case 264:case 263:case 270:return tt;case 243:return D.fail("Can't export an ExpressionStatement");default:return D.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function LE(e,t,n){switch(e.kind){case 271:{const i=e.importClause;if(!i)return;const s=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&uLe(i.namedBindings,n);return s||o?M.createImportDeclaration(void 0,M.createImportClause(i.isTypeOnly,s,o),Vl(t),void 0):void 0}case 270:return n(e.name)?e:void 0;case 259:{const i=_Le(e.name,n);return i?vve(i,e.type,wee(t),e.parent.flags):void 0}default:return D.assertNever(e,`Unexpected import kind ${e.kind}`)}}function uLe(e,t){if(e.kind===273)return t(e.name)?e:void 0;{const n=e.elements.filter(i=>t(i.name));return n.length?M.createNamedImports(n):void 0}}function _Le(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 206:return e;case 205:{const n=e.elements.filter(i=>i.propertyName||!Be(i.name)||t(i.name));return n.length?M.createObjectBindingPattern(n):void 0}}}function Iee(e){return $f(e)?di(e.expression.left.name,Be):di(e.name,Be)}function zz(e){switch(e.kind){case 259:return e.parent.parent;case 207:return zz(Ws(e.parent.parent,t=>Fa(t)||Cc(t)));default:return e}}function Pee(e,t,n,i,s){if(!bve(e,t,s,n))if(s)$f(t)||i.insertExportModifier(e,t);else{const o=Nee(t);o.length!==0&&i.insertNodesAfter(e,t,o.map(xve))}}function Oee(e,t,n,i){const s=t.getTypeChecker(),o=FE(n);let l;if(o){l=Jz(e,o.all,s);const f=ga(e.fileName),_=y7(e.fileName);return ta(f,mLe(gLe(l.oldFileImportsFromTargetFile,l.movedSymbols),_,f,i))+_}return""}function fLe(e){const{file:t}=e,n=Wj(ZS(e)),{statements:i}=t,s=zi(i,f=>f.end>n.pos);if(s===-1)return;const o=i[s];if(sp(o)&&o.name&&wm(o.name,n))return{toMove:[i[s]],afterLast:i[s+1]};if(n.pos>o.getStart(t))return;const l=zi(i,f=>f.end>n.end,s);if(!(l!==-1&&(l===0||i[l].getStart(t){for(let _=l;_!!t.initializer&&Nd(t.initializer,!0));default:return!1}}function Jz(e,t,n){const i=new Set,s=new Map,o=new Set,l=on(t,y=>!!(y.transformFlags&2)),f=m(l);f&&s.set(f,!1);for(const y of t)Sve(y,T=>{i.add(D.checkDefined($f(T)?n.getSymbolAtLocation(T.expression.left):T.symbol,"Need a symbol here"))});for(const y of t)Tve(y,n,(T,k)=>{if(T.declarations)for(const E of T.declarations)if(kve(E)){const O=s.get(T);s.set(T,(O===void 0||O)&&k)}else Uz(E)&&hLe(E)===e&&!i.has(T)&&o.add(T)});const _=new Set(s.keys()),h=new Set;for(const y of e.statements)Zn(t,y)||(f&&y.transformFlags&2&&_.delete(f),Tve(y,n,T=>{i.has(T)&&h.add(T),_.delete(T)}));return{movedSymbols:i,targetFileImportsFromOldFile:o,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:_};function m(y){if(y===void 0)return;const T=n.getJsxNamespace(y),k=n.resolveName(T,y,1920,!0);return k&&bt(k.declarations,kve)?k:void 0}}function mLe(e,t,n,i){let s=e;for(let o=1;;o++){const l=ta(n,s+t);if(!i.fileExists(l))return s;s=`${e}.${o}`}}function gLe(e,t){return tS(e,Xj)||tS(t,Xj)||"newFile"}function Tve(e,t,n){e.forEachChild(function i(s){if(Be(s)&&!Gy(s)){const o=t.getSymbolAtLocation(s);o&&n(o,v7(s))}else s.forEachChild(i)})}function Sve(e,t){switch(e.kind){case 261:case 262:case 266:case 265:case 264:case 263:case 270:return t(e);case 242:return bo(e.declarationList.declarations,n=>wve(n.name,t));case 243:{const{expression:n}=e;return Un(n)&&Au(n)===1?t(e):void 0}}}function kve(e){switch(e.kind){case 270:case 275:case 272:case 273:return!0;case 259:return Cve(e);case 207:return Fa(e.parent.parent)&&Cve(e.parent.parent);default:return!1}}function Cve(e){return Ja(e.parent.parent.parent)&&!!e.initializer&&Nd(e.initializer,!0)}function Uz(e){return Eve(e)&&Ja(e.parent)||Fa(e)&&Ja(e.parent.parent.parent)}function hLe(e){return Fa(e)?e.parent.parent.parent:e.parent}function wve(e,t){switch(e.kind){case 80:return t(Ws(e.parent,n=>Fa(n)||Cc(n)));case 206:case 205:return bo(e.elements,n=>sf(n)?void 0:wve(n.name,t));default:return D.assertNever(e,`Unexpected name kind ${e.kind}`)}}function Eve(e){switch(e.kind){case 261:case 262:case 266:case 265:case 264:case 263:case 270:return!0;default:return!1}}var tO,Vz,Wz,yLe=or({"src/services/refactors/moveToFile.ts"(){"use strict";Hme(),Ri(),uve(),tO="Move to file",Vz=Vo(p.Move_to_file),Wz={name:"Move to file",description:Vz,kind:"refactor.move.file"},py(tO,{kinds:[Wz.kind],getAvailableActions:function(t,n){const i=FE(t);return n?t.preferences.allowTextChangesInNewFiles&&i?[{name:tO,description:Vz,actions:[Wz]}]:t.preferences.provideRefactorNotApplicableReason?[{name:tO,description:Vz,actions:[Xs(fa({},Wz),{notApplicableReason:Vo(p.Selection_is_not_a_valid_statement_or_statements)})]}]:tt:tt},getEditsForAction:function(t,n,i){D.assert(n===tO,"Wrong refactor invoked");const s=D.checkDefined(FE(t));D.assert(i,"No interactive refactor arguments available");const o=i.targetFile;return d3(o)||h9(o)?{edits:Vn.ChangeTracker.with(t,f=>KMe(t,t.file,i.targetFile,t.program,s,f,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:Vo(p.Cannot_move_to_file_selected_file_is_invalid)}}})}});function vLe(e){const{file:t,startPosition:n,program:i}=e;return Dve(t,n,i)?[{name:qz,description:Mee,actions:[Lee]}]:tt}function bLe(e){const{file:t,startPosition:n,program:i}=e,s=Dve(t,n,i);if(!s)return;const o=i.getTypeChecker(),l=s[s.length-1];let f=l;switch(l.kind){case 172:{f=M.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,h(s),l.type);break}case 173:{f=M.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,h(s),l.type,l.body);break}case 178:{f=M.updateCallSignature(l,l.typeParameters,h(s),l.type);break}case 175:{f=M.updateConstructorDeclaration(l,l.modifiers,h(s),l.body);break}case 179:{f=M.updateConstructSignature(l,l.typeParameters,h(s),l.type);break}case 261:{f=M.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,h(s),l.type,l.body);break}default:return D.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(f===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:Vn.ChangeTracker.with(e,T=>{T.replaceNodeRange(t,s[0],s[s.length-1],f)})};function h(T){const k=T[T.length-1];return Jl(k)&&k.body&&(T=T.slice(0,T.length-1)),M.createNodeArray([M.createParameterDeclaration(void 0,M.createToken(26),"args",void 0,M.createUnionTypeNode(er(T,m)))])}function m(T){const k=er(T.parameters,y);return Ln(M.createTupleTypeNode(k),bt(k,E=>!!Nr(Tk(E)))?0:1)}function y(T){D.assert(Be(T.name));const k=yt(M.createNamedTupleMember(T.dotDotDotToken,T.name,T.questionToken,T.type||M.createKeywordTypeNode(133)),T),E=T.symbol&&T.symbol.getDocumentationComment(o);if(E){const O=p2e(E);O.length&&F4(k,[{text:`* -${O.split(` -`).map(N=>` * ${N}`).join(` -`)} - `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return k}}function Ave(e){switch(e.kind){case 172:case 173:case 178:case 175:case 179:case 261:return!0}return!1}function Dve(e,t,n){const i=Za(e,t),s=Sn(i,Ave);if(!s||Jl(s)&&s.body&&kP(s.body,t))return;const o=n.getTypeChecker(),l=s.symbol;if(!l)return;const f=l.declarations;if(Nr(f)<=1||!yn(f,T=>bn(T)===e)||!Ave(f[0]))return;const _=f[0].kind;if(!yn(f,T=>T.kind===_))return;const h=f;if(bt(h,T=>!!T.typeParameters||bt(T.parameters,k=>!!k.modifiers||!Be(k.name))))return;const m=Mr(h,T=>o.getSignatureFromDeclaration(T));if(Nr(m)!==Nr(f))return;const y=o.getReturnTypeOfSignature(m[0]);if(yn(m,T=>o.getReturnTypeOfSignature(T)===y))return h}var qz,Mee,Lee,xLe=or({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";Ri(),Th(),qz="Convert overload list to single signature",Mee=p.Convert_overload_list_to_single_signature.message,Lee={name:qz,description:Mee,kind:"refactor.rewrite.function.overloadList"},py(qz,{kinds:[Lee.kind],getEditsForAction:bLe,getAvailableActions:vLe})}});function TLe(e){const{file:t,startPosition:n,triggerReason:i}=e,s=Nve(t,n,i==="invoked");return s?dy(s)?e.preferences.provideRefactorNotApplicableReason?[{name:$z,description:Fee,actions:[Xs(fa({},rO),{notApplicableReason:s.error}),Xs(fa({},RE),{notApplicableReason:s.error})]}]:tt:[{name:$z,description:Fee,actions:[s.addBraces?rO:RE]}]:tt}function SLe(e,t){const{file:n,startPosition:i}=e,s=Nve(n,i);D.assert(s&&!dy(s),"Expected applicable refactor info");const{expression:o,returnStatement:l,func:f}=s;let _;if(t===rO.name){const m=M.createReturnStatement(o);_=M.createBlock([m],!0),aC(o,m,n,3,!0)}else if(t===RE.name&&l){const m=o||M.createVoidZero();_=wK(m)?M.createParenthesizedExpression(m):m,JP(l,_,n,3,!1),aC(l,_,n,3,!1),CE(l,_,n,3,!1)}else D.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Vn.ChangeTracker.with(e,m=>{m.replaceNode(n,f.body,_)})}}function Nve(e,t,n=!0,i){const s=Za(e,t),o=Jm(s);if(!o)return{error:Vo(p.Could_not_find_a_containing_arrow_function)};if(!Fl(o))return{error:Vo(p.Containing_function_is_not_an_arrow_function)};if(!(!wm(o,s)||wm(o.body,s)&&!n)){if(Nb(rO.kind,i)&&ht(o.body))return{func:o,addBraces:!0,expression:o.body};if(Nb(RE.kind,i)&&oo(o.body)&&o.body.statements.length===1){const l=Fi(o.body.statements);if(jg(l))return{func:o,addBraces:!1,expression:l.expression,returnStatement:l}}}}var $z,Fee,rO,RE,kLe=or({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";Ri(),Th(),$z="Add or remove braces in an arrow function",Fee=p.Add_or_remove_braces_in_an_arrow_function.message,rO={name:"Add braces to arrow function",description:p.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},RE={name:"Remove braces from arrow function",description:p.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"},py($z,{kinds:[RE.kind],getEditsForAction:SLe,getAvailableActions:TLe})}}),CLe={},wLe=or({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";xLe(),kLe()}});function ELe(e){const{file:t,startPosition:n,program:i,kind:s}=e,o=Pve(t,n,i);if(!o)return tt;const{selectedVariableDeclaration:l,func:f}=o,_=[],h=[];if(Nb(jE.kind,s)){const m=l||Fl(f)&&Fa(f.parent)?void 0:Vo(p.Could_not_convert_to_named_function);m?h.push(Xs(fa({},jE),{notApplicableReason:m})):_.push(jE)}if(Nb(BE.kind,s)){const m=!l&&Fl(f)?void 0:Vo(p.Could_not_convert_to_anonymous_function);m?h.push(Xs(fa({},BE),{notApplicableReason:m})):_.push(BE)}if(Nb(zE.kind,s)){const m=_l(f)?void 0:Vo(p.Could_not_convert_to_arrow_function);m?h.push(Xs(fa({},zE),{notApplicableReason:m})):_.push(zE)}return[{name:Ree,description:Lve,actions:_.length===0&&e.preferences.provideRefactorNotApplicableReason?h:_}]}function ALe(e,t){const{file:n,startPosition:i,program:s}=e,o=Pve(n,i,s);if(!o)return;const{func:l}=o,f=[];switch(t){case BE.name:f.push(...PLe(e,l));break;case jE.name:const _=ILe(l);if(!_)return;f.push(...OLe(e,l,_));break;case zE.name:if(!_l(l))return;f.push(...MLe(e,l));break;default:return D.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:f}}function Ive(e){let t=!1;return e.forEachChild(function n(i){if(tC(i)){t=!0;return}!Yi(i)&&!B_(i)&&!_l(i)&&js(i,n)}),t}function Pve(e,t,n){const i=Za(e,t),s=n.getTypeChecker(),o=NLe(e,s,i.parent);if(o&&!Ive(o.body)&&!s.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const l=Jm(i);if(l&&(_l(l)||Fl(l))&&!wm(l.body,i)&&!Ive(l.body)&&!s.containsArgumentsReference(l))return _l(l)&&Mve(e,s,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function DLe(e){return Fa(e)||of(e)&&e.declarations.length===1}function NLe(e,t,n){if(!DLe(n))return;const s=(Fa(n)?n:Fi(n.declarations)).initializer;if(s&&(Fl(s)||_l(s)&&!Mve(e,t,s)))return s}function Ove(e){if(ht(e)){const t=M.createReturnStatement(e),n=e.getSourceFile();return yt(t,e),rm(t),JP(e,t,n,void 0,!0),M.createBlock([t],!0)}else return e}function ILe(e){const t=e.parent;if(!Fa(t)||!YL(t))return;const n=t.parent,i=n.parent;if(!(!of(n)||!S_(i)||!Be(t.name)))return{variableDeclaration:t,variableDeclarationList:n,statement:i,name:t.name}}function PLe(e,t){const{file:n}=e,i=Ove(t.body),s=M.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return Vn.ChangeTracker.with(e,o=>o.replaceNode(n,t,s))}function OLe(e,t,n){const{file:i}=e,s=Ove(t.body),{variableDeclaration:o,variableDeclarationList:l,statement:f,name:_}=n;tz(f);const h=Vv(o)&1|Pp(t),m=M.createModifiersFromModifierFlags(h),y=M.createFunctionDeclaration(Nr(m)?m:void 0,t.asteriskToken,_,t.typeParameters,t.parameters,t.type,s);return l.declarations.length===1?Vn.ChangeTracker.with(e,T=>T.replaceNode(i,f,y)):Vn.ChangeTracker.with(e,T=>{T.delete(i,o),T.insertNodeAfter(i,f,y)})}function MLe(e,t){const{file:n}=e,s=t.body.statements[0];let o;LLe(t.body,s)?(o=s.expression,rm(o),$7(s,o)):o=t.body;const l=M.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,M.createToken(39),o);return Vn.ChangeTracker.with(e,f=>f.replaceNode(n,t,l))}function LLe(e,t){return e.statements.length===1&&jg(t)&&!!t.expression}function Mve(e,t,n){return!!n.name&&tu.Core.isSymbolReferencedInFile(n.name,t,e)}var Ree,Lve,BE,jE,zE,FLe=or({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";Ri(),Th(),Ree="Convert arrow function or function expression",Lve=Vo(p.Convert_arrow_function_or_function_expression),BE={name:"Convert to anonymous function",description:Vo(p.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},jE={name:"Convert to named function",description:Vo(p.Convert_to_named_function),kind:"refactor.rewrite.function.named"},zE={name:"Convert to arrow function",description:Vo(p.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},py(Ree,{kinds:[BE.kind,jE.kind,zE.kind],getEditsForAction:ALe,getAvailableActions:ELe})}}),RLe={},BLe=or({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";FLe()}});function jLe(e){const{file:t,startPosition:n}=e;return Ip(t)||!Bve(t,n,e.program.getTypeChecker())?tt:[{name:iO,description:Jee,actions:[Uee]}]}function zLe(e,t){D.assert(t===iO,"Unexpected action name");const{file:n,startPosition:i,program:s,cancellationToken:o,host:l}=e,f=Bve(n,i,s.getTypeChecker());if(!f||!o)return;const _=ULe(f,s,o);return _.valid?{renameFilename:void 0,renameLocation:void 0,edits:Vn.ChangeTracker.with(e,m=>JLe(n,s,l,m,f,_))}:{edits:[]}}function JLe(e,t,n,i,s,o){const l=o.signature,f=er(Uve(s,t,n),m=>Vl(m));if(l){const m=er(Uve(l,t,n),y=>Vl(y));h(l,m)}h(s,f);const _=$o(o.functionCalls,(m,y)=>Uc(m.pos,y.pos));for(const m of _)if(m.arguments&&m.arguments.length){const y=Vl(QLe(s,m.arguments),!0);i.replaceNodeRange(bn(m),Fi(m.arguments),fi(m.arguments),y,{leadingTriviaOption:Vn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Vn.TrailingTriviaOption.Include})}function h(m,y){i.replaceNodeRangeWithNodes(e,Fi(m.parameters),fi(m.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:Vn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Vn.TrailingTriviaOption.Include})}}function ULe(e,t,n){const i=eFe(e),s=Uu(e)?KLe(e):[],o=No([...i,...s],Dg),l=t.getTypeChecker(),f=lo(o,y=>tu.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),n)),_=h(f);return yn(_.declarations,y=>Zn(o,y))||(_.valid=!1),_;function h(y){const T={accessExpressions:[],typeUsages:[]},k={functionCalls:[],declarations:[],classReferences:T,valid:!0},E=er(i,m),O=er(s,m),N=Uu(e),B=er(i,U=>Bee(U,l));for(const U of y){if(U.kind===tu.EntryKind.Span){k.valid=!1;continue}if(Zn(B,m(U.node))){if($Le(U.node.parent)){k.signature=U.node.parent;continue}const re=Rve(U);if(re){k.functionCalls.push(re);continue}}const V=Bee(U.node,l);if(V&&Zn(B,V)){const re=jee(U);if(re){k.declarations.push(re);continue}}if(Zn(E,m(U.node))||gE(U.node)){if(Fve(U))continue;const z=jee(U);if(z){k.declarations.push(z);continue}const ce=Rve(U);if(ce){k.functionCalls.push(ce);continue}}if(N&&Zn(O,m(U.node))){if(Fve(U))continue;const z=jee(U);if(z){k.declarations.push(z);continue}const ce=VLe(U);if(ce){T.accessExpressions.push(ce);continue}if(cf(e.parent)){const R=WLe(U);if(R){T.typeUsages.push(R);continue}}}k.valid=!1}return k}function m(y){const T=l.getSymbolAtLocation(y);return T&&Ihe(T,l)}}function Bee(e,t){const n=fO(e);if(n){const i=t.getContextualTypeForObjectLiteralElement(n),s=i==null?void 0:i.getSymbol();if(s&&!(Du(s)&6))return s}}function Fve(e){const t=e.node;if(Ld(t.parent)||hh(t.parent)||Hf(t.parent)||vb(t.parent)||dd(t.parent)||Wu(t.parent))return t}function jee(e){if(cp(e.node.parent))return e.node}function Rve(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 212:case 213:const i=di(n,ey);if(i&&i.expression===t)return i;break;case 210:const s=di(n,mi);if(s&&s.parent&&s.name===t){const l=di(s.parent,ey);if(l&&l.expression===s)return l}break;case 211:const o=di(n,Ll);if(o&&o.parent&&o.argumentExpression===t){const l=di(o.parent,ey);if(l&&l.expression===o)return l}break}}}function VLe(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 210:const i=di(n,mi);if(i&&i.expression===t)return i;break;case 211:const s=di(n,Ll);if(s&&s.expression===t)return s;break}}}function WLe(e){const t=e.node;if(J7(t)===2||TN(t.parent))return t}function Bve(e,t,n){const i=vE(e,t),s=due(i);if(!qLe(i)&&s&&HLe(s,n)&&wm(s,i)&&!(s.body&&wm(s.body,i)))return s}function qLe(e){const t=Sn(e,F5);if(t){const n=Sn(t,i=>!F5(i));return!!n&&Jl(n)}return!1}function $Le(e){return ly(e)&&(Lp(e.parent)||Sm(e.parent))}function HLe(e,t){var n;if(!GLe(e.parameters,t))return!1;switch(e.kind){case 261:return jve(e)&&nO(e,t);case 173:if(Dc(e.parent)){const i=Bee(e.name,t);return((n=i==null?void 0:i.declarations)==null?void 0:n.length)===1&&nO(e,t)}return nO(e,t);case 175:return cf(e.parent)?jve(e.parent)&&nO(e,t):zve(e.parent.parent)&&nO(e,t);case 217:case 218:return zve(e.parent)}return!1}function nO(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function jve(e){return e.name?!0:!!rC(e,90)}function GLe(e,t){return ZLe(e)>=Vve&&yn(e,n=>XLe(n,t))}function XLe(e,t){if(ty(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&Be(e.name)}function zve(e){return Fa(e)&&qy(e)&&Be(e.name)&&!e.type}function zee(e){return e.length>0&&tC(e[0].name)}function ZLe(e){return zee(e)?e.length-1:e.length}function Jve(e){return zee(e)&&(e=M.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function YLe(e,t){return Be(t)&&ng(t)===e?M.createShorthandPropertyAssignment(e):M.createPropertyAssignment(e,t)}function QLe(e,t){const n=Jve(e.parameters),i=ty(fi(n)),s=i?t.slice(0,n.length-1):t,o=er(s,(f,_)=>{const h=Hz(n[_]),m=YLe(h,f);return rm(m.name),Y_(m)&&rm(m.initializer),$7(f,m),m});if(i&&t.length>=n.length){const f=t.slice(n.length-1),_=M.createPropertyAssignment(Hz(fi(n)),M.createArrayLiteralExpression(f));o.push(_)}return M.createObjectLiteralExpression(o,!1)}function Uve(e,t,n){const i=t.getTypeChecker(),s=Jve(e.parameters),o=er(s,m),l=M.createObjectBindingPattern(o),f=y(s);let _;yn(s,E)&&(_=M.createObjectLiteralExpression());const h=M.createParameterDeclaration(void 0,void 0,l,void 0,f,_);if(zee(e.parameters)){const O=e.parameters[0],N=M.createParameterDeclaration(void 0,void 0,O.name,void 0,O.type);return rm(N.name),$7(O.name,N.name),O.type&&(rm(N.type),$7(O.type,N.type)),M.createNodeArray([N,h])}return M.createNodeArray([h]);function m(O){const N=M.createBindingElement(void 0,void 0,Hz(O),ty(O)&&E(O)?M.createArrayLiteralExpression():O.initializer);return rm(N),O.initializer&&N.initializer&&$7(O.initializer,N.initializer),N}function y(O){const N=er(O,T);return dh(M.createTypeLiteralNode(N),1)}function T(O){let N=O.type;!N&&(O.initializer||ty(O))&&(N=k(O));const B=M.createPropertySignature(void 0,Hz(O),E(O)?M.createToken(58):O.questionToken,N);return rm(B),$7(O.name,B.name),O.type&&B.type&&$7(O.type,B.type),B}function k(O){const N=i.getTypeAtLocation(O);return EE(N,O,t,n)}function E(O){if(ty(O)){const N=i.getTypeAtLocation(O);return!i.isTupleType(N)}return i.isOptionalParameter(O)}}function Hz(e){return ng(e.name)}function KLe(e){switch(e.parent.kind){case 262:const t=e.parent;return t.name?[t.name]:[D.checkDefined(rC(t,90),"Nameless class declaration should be a default export")];case 230:const i=e.parent,s=e.parent.parent,o=i.name;return o?[o,s.name]:[s.name]}}function eFe(e){switch(e.kind){case 261:return e.name?[e.name]:[D.checkDefined(rC(e,90),"Nameless function declaration should be a default export")];case 173:return[e.name];case 175:const n=D.checkDefined(zc(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===230?[e.parent.parent.name,n]:[n];case 218:return[e.parent.name];case 217:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return D.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var iO,Vve,Jee,Uee,tFe=or({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";Ri(),Th(),iO="Convert parameters to destructured object",Vve=1,Jee=Vo(p.Convert_parameters_to_destructured_object),Uee={name:iO,description:Jee,kind:"refactor.rewrite.parameters.toDestructured"},py(iO,{kinds:[Uee.kind],getEditsForAction:zLe,getAvailableActions:jLe})}}),rFe={},nFe=or({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";tFe()}});function iFe(e){const{file:t,startPosition:n}=e,i=Wve(t,n),s=Vee(i),o={name:Gz,description:Xz,actions:[]};return Un(s)&&Wee(s).isValidConcatenation?(o.actions.push(Zz),[o]):e.preferences.provideRefactorNotApplicableReason?(o.actions.push(Xs(fa({},Zz),{notApplicableReason:Vo(p.Can_only_convert_string_concatenation)})),[o]):tt}function Wve(e,t){const n=Za(e,t),i=Vee(n);return!Wee(i).isValidConcatenation&&Md(i.parent)&&Un(i.parent.parent)?i.parent.parent:n}function aFe(e,t){const{file:n,startPosition:i}=e,s=Wve(n,i);switch(t){case Xz:return{edits:sFe(e,s)};default:return D.fail("invalid action")}}function sFe(e,t){const n=Vee(t),i=e.file,s=lFe(Wee(n),i),o=S4(i.text,n.end);if(o){const l=o[o.length-1],f={pos:o[0].pos,end:l.end};return Vn.ChangeTracker.with(e,_=>{_.deleteRange(i,f),_.replaceNode(i,n,s)})}else return Vn.ChangeTracker.with(e,l=>l.replaceNode(i,n,s))}function oFe(e){return e.operatorToken.kind!==64}function Vee(e){return Sn(e.parent,n=>{switch(n.kind){case 210:case 211:return!1;case 227:case 225:return!(Un(n.parent)&&oFe(n.parent));default:return"quit"}})||e}function Wee(e){const t=l=>{if(!Un(l))return{nodes:[l],operators:[],validOperators:!0,hasString:sc(l)||CS(l)};const{nodes:f,operators:_,hasString:h,validOperators:m}=t(l.left);if(!(h||sc(l.right)||jR(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};const y=l.operatorToken.kind===40,T=m&&y;return f.push(l.right),_.push(l.operatorToken),{nodes:f,operators:_,hasString:!0,validOperators:T}},{nodes:n,operators:i,validOperators:s,hasString:o}=t(e);return{nodes:n,operators:i,isValidConcatenation:s&&o}}function cFe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function qve(e){const t=kk(e)||jfe(e)?-2:-1;return F_(e).slice(1,t)}function $ve(e,t){const n=[];let i="",s="";for(;e{Hve(V);const z=re===T.templateSpans.length-1,ce=V.literal.text+(z?E:""),R=qve(V.literal)+(z?O:"");return M.createTemplateSpan(V.expression,B&&z?M.createTemplateTail(ce,R):M.createTemplateMiddle(ce,R))});h.push(...U)}else{const U=B?M.createTemplateTail(E,O):M.createTemplateMiddle(E,O);s(N,U),h.push(M.createTemplateSpan(T,U))}}return M.createTemplateExpression(m,h)}function Hve(e){const t=e.getSourceFile();CE(e,e.expression,t,3,!1),JP(e.expression,e.expression,t,3,!1)}function uFe(e){return Md(e)&&(Hve(e),e=e.expression),e}var Gz,Xz,Zz,Gve,Xve,_Fe=or({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";Ri(),Th(),Gz="Convert to template string",Xz=Vo(p.Convert_to_template_string),Zz={name:Gz,description:Xz,kind:"refactor.rewrite.string"},py(Gz,{kinds:[Zz.kind],getEditsForAction:aFe,getAvailableActions:iFe}),Gve=(e,t)=>(n,i)=>{n(i,s)=>{for(;i.length>0;){const o=i.shift();CE(e[o],s,t,3,!1),n(o,s)}}}}),fFe={},pFe=or({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";_Fe()}});function dFe(e){const t=Zve(e,e.triggerReason==="invoked");return t?dy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:aO,description:Kz,actions:[Xs(fa({},eJ),{notApplicableReason:t.error})]}]:tt:[{name:aO,description:Kz,actions:[eJ]}]:tt}function mFe(e,t){const n=Zve(e);return D.assert(n&&!dy(n),"Expected applicable refactor info"),{edits:Vn.ChangeTracker.with(e,s=>SFe(e.file,e.program.getTypeChecker(),s,n,t)),renameFilename:void 0,renameLocation:void 0}}function Yz(e){return Un(e)||Nk(e)}function gFe(e){return $f(e)||jg(e)||S_(e)}function Qz(e){return Yz(e)||gFe(e)}function Zve(e,t=!0){const{file:n,program:i}=e,s=ZS(e),o=s.length===0;if(o&&!t)return;const l=Za(n,s.start),f=zj(n,s.start+s.length),_=L_(l.pos,f&&f.end>=l.pos?f.getEnd():l.getEnd()),h=o?xFe(l):bFe(l,_),m=h&&Qz(h)?TFe(h):void 0;if(!m)return{error:Vo(p.Could_not_find_convertible_access_expression)};const y=i.getTypeChecker();return Nk(m)?hFe(m,y):yFe(m)}function hFe(e,t){const n=e.condition,i=$ee(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Vo(p.Could_not_find_convertible_access_expression)};if((mi(n)||Be(n))&&qee(n,i.expression))return{finalExpression:i,occurrences:[n],expression:e};if(Un(n)){const s=Yve(i.expression,n);return s?{finalExpression:i,occurrences:s,expression:e}:{error:Vo(p.Could_not_find_matching_access_expressions)}}}function yFe(e){if(e.operatorToken.kind!==56)return{error:Vo(p.Can_only_convert_logical_AND_access_chains)};const t=$ee(e.right);if(!t)return{error:Vo(p.Could_not_find_convertible_access_expression)};const n=Yve(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:Vo(p.Could_not_find_matching_access_expressions)}}function Yve(e,t){const n=[];for(;Un(t)&&t.operatorToken.kind===56;){const s=qee(kl(e),kl(t.right));if(!s)break;n.push(s),e=s,t=t.left}const i=qee(e,t);return i&&n.push(i),n.length>0?n:void 0}function qee(e,t){if(!(!Be(t)&&!mi(t)&&!Ll(t)))return vFe(e,t)?t:void 0}function vFe(e,t){for(;(go(e)||mi(e)||Ll(e))&&JE(e)!==JE(t);)e=e.expression;for(;mi(e)&&mi(t)||Ll(e)&&Ll(t);){if(JE(e)!==JE(t))return!1;e=e.expression,t=t.expression}return Be(e)&&Be(t)&&e.getText()===t.getText()}function JE(e){if(Be(e)||a0(e))return e.getText();if(mi(e))return JE(e.name);if(Ll(e))return JE(e.argumentExpression)}function bFe(e,t){for(;e.parent;){if(Qz(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function xFe(e){for(;e.parent;){if(Qz(e)&&!Qz(e.parent))return e;e=e.parent}}function TFe(e){if(Yz(e))return e;if(S_(e)){const t=tk(e),n=t==null?void 0:t.initializer;return n&&Yz(n)?n:void 0}return e.expression&&Yz(e.expression)?e.expression:void 0}function $ee(e){if(e=kl(e),Un(e))return $ee(e.left);if((mi(e)||Ll(e)||go(e))&&!op(e))return e}function Qve(e,t,n){if(mi(t)||Ll(t)||go(t)){const i=Qve(e,t.expression,n),s=n.length>0?n[n.length-1]:void 0,o=(s==null?void 0:s.getText())===t.expression.getText();if(o&&n.pop(),go(t))return o?M.createCallChain(i,M.createToken(29),t.typeArguments,t.arguments):M.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(mi(t))return o?M.createPropertyAccessChain(i,M.createToken(29),t.name):M.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Ll(t))return o?M.createElementAccessChain(i,M.createToken(29),t.argumentExpression):M.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function SFe(e,t,n,i,s){const{finalExpression:o,occurrences:l,expression:f}=i,_=l[l.length-1],h=Qve(t,o,l);h&&(mi(h)||Ll(h)||go(h))&&(Un(f)?n.replaceNodeRange(e,_,o,h):Nk(f)&&n.replaceNode(e,f,M.createBinaryExpression(h,M.createToken(61),f.whenFalse)))}var aO,Kz,eJ,kFe=or({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";Ri(),Th(),aO="Convert to optional chain expression",Kz=Vo(p.Convert_to_optional_chain_expression),eJ={name:aO,description:Kz,kind:"refactor.rewrite.expression.optionalChain"},py(aO,{kinds:[eJ.kind],getEditsForAction:mFe,getAvailableActions:dFe})}}),CFe={},wFe=or({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";kFe()}});function Kve(e){const t=e.kind,n=Hee(e.file,ZS(e),e.triggerReason==="invoked"),i=n.targetRange;if(i===void 0){if(!n.errors||n.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return tt;const E=[];return Nb(r8.kind,t)&&E.push({name:e8,description:r8.description,actions:[Xs(fa({},r8),{notApplicableReason:k(n.errors)})]}),Nb(t8.kind,t)&&E.push({name:e8,description:t8.description,actions:[Xs(fa({},t8),{notApplicableReason:k(n.errors)})]}),E}const s=PFe(i,e);if(s===void 0)return tt;const o=[],l=new Map;let f;const _=[],h=new Map;let m,y=0;for(const{functionExtraction:E,constantExtraction:O}of s){if(Nb(r8.kind,t)){const N=E.description;E.errors.length===0?l.has(N)||(l.set(N,!0),o.push({description:N,name:`function_scope_${y}`,kind:r8.kind})):f||(f={description:N,name:`function_scope_${y}`,notApplicableReason:k(E.errors),kind:r8.kind})}if(Nb(t8.kind,t)){const N=O.description;O.errors.length===0?h.has(N)||(h.set(N,!0),_.push({description:N,name:`constant_scope_${y}`,kind:t8.kind})):m||(m={description:N,name:`constant_scope_${y}`,notApplicableReason:k(O.errors),kind:t8.kind})}y++}const T=[];return o.length?T.push({name:e8,description:Vo(p.Extract_function),actions:o}):e.preferences.provideRefactorNotApplicableReason&&f&&T.push({name:e8,description:Vo(p.Extract_function),actions:[f]}),_.length?T.push({name:e8,description:Vo(p.Extract_constant),actions:_}):e.preferences.provideRefactorNotApplicableReason&&m&&T.push({name:e8,description:Vo(p.Extract_constant),actions:[m]}),T.length?T:tt;function k(E){let O=E[0].messageText;return typeof O!="string"&&(O=O.messageText),O}}function e2e(e,t){const i=Hee(e.file,ZS(e)).targetRange,s=/^function_scope_(\d+)$/.exec(t);if(s){const l=+s[1];return D.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),NFe(i,e,l)}const o=/^constant_scope_(\d+)$/.exec(t);if(o){const l=+o[1];return D.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),IFe(i,e,l)}D.fail("Unrecognized action name")}function Hee(e,t,n=!0){const{length:i}=t;if(i===0&&!n)return{errors:[af(e,t.start,i,kf.cannotExtractEmpty)]};const s=i===0&&n,o=ahe(e,t.start),l=zj(e,qf(t)),f=o&&l&&n?EFe(o,l,e):t,_=s?QFe(o):FP(o,e,f),h=s?_:FP(l,e,f);let m=0,y;if(!_||!h)return{errors:[af(e,t.start,i,kf.cannotExtractRange)]};if(_.flags&8388608)return{errors:[af(e,t.start,i,kf.cannotExtractJSDoc)]};if(_.parent!==h.parent)return{errors:[af(e,t.start,i,kf.cannotExtractRange)]};if(_!==h){if(!r2e(_.parent))return{errors:[af(e,t.start,i,kf.cannotExtractRange)]};const U=[];for(const V of _.parent.statements){if(V===_||U.length){const re=B(V);if(re)return{errors:re};U.push(V)}if(V===h)break}return U.length?{targetRange:{range:U,facts:m,thisNode:y}}:{errors:[af(e,t.start,i,kf.cannotExtractRange)]}}if(jg(_)&&!_.expression)return{errors:[af(e,t.start,i,kf.cannotExtractRange)]};const T=E(_),k=O(T)||B(T);if(k)return{errors:k};return{targetRange:{range:AFe(T),facts:m,thisNode:y}};function E(U){if(jg(U)){if(U.expression)return U.expression}else if(S_(U)||of(U)){const V=S_(U)?U.declarationList.declarations:U.declarations;let re=0,z;for(const ce of V)ce.initializer&&(re++,z=ce.initializer);if(re===1)return z}else if(Fa(U)&&U.initializer)return U.initializer;return U}function O(U){if(Be($f(U)?U.expression:U))return[ai(U,kf.cannotExtractIdentifier)]}function N(U,V){let re=U;for(;re!==V;){if(re.kind===171){so(re)&&(m|=32);break}else if(re.kind===168){Jm(re).kind===175&&(m|=32);break}else re.kind===173&&so(re)&&(m|=32);re=re.parent}}function B(U){let V;if((ae=>{ae[ae.None=0]="None",ae[ae.Break=1]="Break",ae[ae.Continue=2]="Continue",ae[ae.Return=4]="Return"})(V||(V={})),D.assert(U.pos<=U.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),D.assert(!k1(U.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!us(U)&&!($y(U)&&t2e(U))&&!Qee(U))return[ai(U,kf.statementOrExpressionExpected)];if(U.flags&16777216)return[ai(U,kf.cannotExtractAmbientBlock)];const re=Z_(U);re&&N(U,re);let z,ce=4,R;if(le(U),m&8){const ae=_d(U,!1,!1);(ae.kind===261||ae.kind===173&&ae.parent.kind===209||ae.kind===217)&&(m|=16)}return z;function le(ae){if(z)return!0;if(cp(ae)){const $=ae.kind===259?ae.parent.parent:ae;if(Pi($,1))return(z||(z=[])).push(ai(ae,kf.cannotExtractExportedEntity)),!0}switch(ae.kind){case 271:return(z||(z=[])).push(ai(ae,kf.cannotExtractImport)),!0;case 276:return(z||(z=[])).push(ai(ae,kf.cannotExtractExportedEntity)),!0;case 108:if(ae.parent.kind===212){const $=Z_(ae);if($===void 0||$.pos=t.start+t.length)return(z||(z=[])).push(ai(ae,kf.cannotExtractSuper)),!0}else m|=8,y=ae;break;case 218:js(ae,function $(ee){if(tC(ee))m|=8,y=ae;else{if(Yi(ee)||Qs(ee)&&!Fl(ee))return!1;js(ee,$)}});case 262:case 261:Ja(ae.parent)&&ae.parent.externalModuleIndicator===void 0&&(z||(z=[])).push(ai(ae,kf.functionWillNotBeVisibleInTheNewScope));case 230:case 217:case 173:case 175:case 176:case 177:return!1}const ye=ce;switch(ae.kind){case 244:ce&=-5;break;case 257:ce=0;break;case 240:ae.parent&&ae.parent.kind===257&&ae.parent.finallyBlock===ae&&(ce=4);break;case 296:case 295:ce|=1;break;default:ob(ae,!1)&&(ce|=3);break}switch(ae.kind){case 196:case 110:m|=8,y=ae;break;case 255:{const $=ae.label;(R||(R=[])).push($.escapedText),js(ae,le),R.pop();break}case 251:case 250:{const $=ae.label;$?Zn(R,$.escapedText)||(z||(z=[])).push(ai(ae,kf.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ce&(ae.kind===251?1:2)||(z||(z=[])).push(ai(ae,kf.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 222:m|=4;break;case 228:m|=2;break;case 252:ce&4?m|=1:(z||(z=[])).push(ai(ae,kf.cannotExtractRangeContainingConditionalReturnStatement));break;default:js(ae,le);break}ce=ye}}}function EFe(e,t,n){const i=e.getStart(n);let s=t.getEnd();return n.text.charCodeAt(s)===59&&s++,{start:i,length:s-i}}function AFe(e){if(us(e))return[e];if($y(e))return $f(e.parent)?[e.parent]:e;if(Qee(e))return e}function Gee(e){return Fl(e)?$q(e.body):Jl(e)||Ja(e)||C1(e)||Yi(e)}function DFe(e){let t=iv(e.range)?Fi(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=Z_(t);if(i){const s=Sn(t,Jl);return s?[s,i]:[i]}}const n=[];for(;;)if(t=t.parent,t.kind===168&&(t=Sn(t,i=>Jl(i)).parent),Gee(t)&&(n.push(t),t.kind===311))return n}function NFe(e,t,n){const{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,functionErrorsPerScope:l,exposedVariableDeclarations:f}}=Xee(e,t);return D.assert(!l[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),BFe(s,i[n],o[n],f,e,t)}function IFe(e,t,n){const{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,constantErrorsPerScope:l,exposedVariableDeclarations:f}}=Xee(e,t);D.assert(!l[n].length,"The extraction went missing? How?"),D.assert(f.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const _=ht(s)?s:s.statements[0].expression;return jFe(_,i[n],o[n],e.facts,t)}function PFe(e,t){const{scopes:n,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:s}}=Xee(e,t);return n.map((l,f)=>{const _=OFe(l),h=MFe(l),m=Jl(l)?LFe(l):Yi(l)?FFe(l):RFe(l);let y,T;return m===1?(y=sy(Vo(p.Extract_to_0_in_1_scope),[_,"global"]),T=sy(Vo(p.Extract_to_0_in_1_scope),[h,"global"])):m===0?(y=sy(Vo(p.Extract_to_0_in_1_scope),[_,"module"]),T=sy(Vo(p.Extract_to_0_in_1_scope),[h,"module"])):(y=sy(Vo(p.Extract_to_0_in_1),[_,m]),T=sy(Vo(p.Extract_to_0_in_1),[h,m])),f===0&&!Yi(l)&&(T=sy(Vo(p.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:y,errors:i[f]},constantExtraction:{description:T,errors:s[f]}}})}function Xee(e,t){const{file:n}=t,i=DFe(e),s=ZFe(e,n),o=YFe(e,i,s,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:o}}function OFe(e){return Jl(e)?"inner function":Yi(e)?"method":"function"}function MFe(e){return Yi(e)?"readonly field":"constant"}function LFe(e){switch(e.kind){case 175:return"constructor";case 217:case 261:return e.name?`function '${e.name.text}'`:vz;case 218:return"arrow function";case 173:return`method '${e.name.getText()}'`;case 176:return`'get ${e.name.getText()}'`;case 177:return`'set ${e.name.getText()}'`;default:D.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function FFe(e){return e.kind===262?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function RFe(e){return e.kind===267?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function BFe(e,t,{usages:n,typeParameterUsages:i,substitutions:s},o,l,f){const _=f.program.getTypeChecker(),h=gc(f.program.getCompilerOptions()),m=Xf.createImportAdder(f.file,f.program,f.preferences,f.host),y=t.getSourceFile(),T=H7(Yi(t)?"newMethod":"newFunction",y),k=jn(t),E=M.createIdentifier(T);let O;const N=[],B=[];let U;n.forEach((Ae,Me)=>{let He;if(!k){let Pe=_.getTypeOfSymbolAtLocation(Ae.symbol,Ae.node);Pe=_.getBaseTypeOfLiteralType(Pe),He=Xf.typeToAutoImportableTypeNode(_,m,Pe,t,h,1)}const je=M.createParameterDeclaration(void 0,void 0,Me,void 0,He);N.push(je),Ae.usage===2&&(U||(U=[])).push(Ae),B.push(M.createIdentifier(Me))});const re=zt(i.values(),Ae=>({type:Ae,declaration:JFe(Ae,f.startPosition)})).sort(UFe),z=re.length===0?void 0:Mr(re,({declaration:Ae})=>Ae),ce=z!==void 0?z.map(Ae=>M.createTypeReferenceNode(Ae.name,void 0)):void 0;if(ht(e)&&!k){const Ae=_.getContextualType(e);O=_.typeToTypeNode(Ae,t,1)}const{body:R,returnValueProperty:le}=WFe(e,o,U,s,!!(l.facts&1));rm(R);let ae;const ye=!!(l.facts&16);if(Yi(t)){const Ae=k?[]:[M.createModifier(123)];l.facts&32&&Ae.push(M.createModifier(126)),l.facts&4&&Ae.push(M.createModifier(134)),ae=M.createMethodDeclaration(Ae.length?Ae:void 0,l.facts&2?M.createToken(42):void 0,E,void 0,z,N,O,R)}else ye&&N.unshift(M.createParameterDeclaration(void 0,void 0,"this",void 0,_.typeToTypeNode(_.getTypeAtLocation(l.thisNode),t,1),void 0)),ae=M.createFunctionDeclaration(l.facts&4?[M.createToken(134)]:void 0,l.facts&2?M.createToken(42):void 0,E,z,N,O,R);const $=Vn.ChangeTracker.fromContext(f),ee=(iv(l.range)?fi(l.range):l.range).end,te=HFe(ee,t);te?$.insertNodeBefore(f.file,te,ae,!0):$.insertNodeAtEndOfScope(f.file,t,ae),m.writeFixes($);const me=[],ve=VFe(t,l,T);ye&&B.unshift(M.createIdentifier("this"));let we=M.createCallExpression(ye?M.createPropertyAccessExpression(ve,"call"):ve,ce,B);if(l.facts&2&&(we=M.createYieldExpression(M.createToken(42),we)),l.facts&4&&(we=M.createAwaitExpression(we)),Yee(e)&&(we=M.createJsxExpression(void 0,we)),o.length&&!U)if(D.assert(!le,"Expected no returnValueProperty"),D.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),o.length===1){const Ae=o[0];me.push(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(Vl(Ae.name),void 0,Vl(Ae.type),we)],Ae.parent.flags)))}else{const Ae=[],Me=[];let He=o[0].parent.flags,je=!1;for(const nt of o){Ae.push(M.createBindingElement(void 0,void 0,Vl(nt.name)));const wt=_.typeToTypeNode(_.getBaseTypeOfLiteralType(_.getTypeAtLocation(nt)),t,1);Me.push(M.createPropertySignature(void 0,nt.symbol.name,void 0,wt)),je=je||nt.type!==void 0,He=He&nt.parent.flags}const Pe=je?M.createTypeLiteralNode(Me):void 0;Pe&&Ln(Pe,1),me.push(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(M.createObjectBindingPattern(Ae),void 0,Pe,we)],He)))}else if(o.length||U){if(o.length)for(const Me of o){let He=Me.parent.flags;He&2&&(He=He&-3|1),me.push(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(Me.symbol.name,void 0,Ue(Me.type))],He)))}le&&me.push(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(le,void 0,Ue(O))],1)));const Ae=Zee(o,U);le&&Ae.unshift(M.createShorthandPropertyAssignment(le)),Ae.length===1?(D.assert(!le,"Shouldn't have returnValueProperty here"),me.push(M.createExpressionStatement(M.createAssignment(Ae[0].name,we))),l.facts&1&&me.push(M.createReturnStatement())):(me.push(M.createExpressionStatement(M.createAssignment(M.createObjectLiteralExpression(Ae),we))),le&&me.push(M.createReturnStatement(M.createIdentifier(le))))}else l.facts&1?me.push(M.createReturnStatement(we)):iv(l.range)?me.push(M.createExpressionStatement(we)):me.push(we);iv(l.range)?$.replaceNodeRangeWithNodes(f.file,Fi(l.range),fi(l.range),me):$.replaceNodeWithNodes(f.file,l.range,me);const K=$.getChanges(),Re=(iv(l.range)?Fi(l.range):l.range).getSourceFile().fileName,Fe=zP(K,Re,T,!1);return{renameFilename:Re,renameLocation:Fe,edits:K};function Ue(Ae){if(Ae===void 0)return;const Me=Vl(Ae);let He=Me;for(;DS(He);)He=He.type;return ES(He)&&on(He.types,je=>je.kind===157)?Me:M.createUnionTypeNode([Me,M.createKeywordTypeNode(157)])}}function jFe(e,t,{substitutions:n},i,s){const o=s.program.getTypeChecker(),l=t.getSourceFile(),f=mi(e)&&!Yi(t)&&!o.resolveName(e.name.text,e,111551,!1)&&!Ea(e.name)&&!C4(e.name)?e.name.text:H7(Yi(t)?"newProperty":"newLocal",l),_=jn(t);let h=_||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),m=qFe(kl(e),n);({variableType:h,initializer:m}=O(h,m)),rm(m);const y=Vn.ChangeTracker.fromContext(s);if(Yi(t)){D.assert(!_,"Cannot extract to a JS class");const N=[];N.push(M.createModifier(123)),i&32&&N.push(M.createModifier(126)),N.push(M.createModifier(148));const B=M.createPropertyDeclaration(N,f,void 0,h,m);let U=M.createPropertyAccessExpression(i&32?M.createIdentifier(t.name.getText()):M.createThis(),M.createIdentifier(f));Yee(e)&&(U=M.createJsxExpression(void 0,U));const V=e.pos,re=GFe(V,t);y.insertNodeBefore(s.file,re,B,!0),y.replaceNode(s.file,e,U)}else{const N=M.createVariableDeclaration(f,void 0,h,m),B=zFe(e,t);if(B){y.insertNodeBefore(s.file,B,N);const U=M.createIdentifier(f);y.replaceNode(s.file,e,U)}else if(e.parent.kind===243&&t===Sn(e,Gee)){const U=M.createVariableStatement(void 0,M.createVariableDeclarationList([N],2));y.replaceNode(s.file,e.parent,U)}else{const U=M.createVariableStatement(void 0,M.createVariableDeclarationList([N],2)),V=XFe(e,t);if(V.pos===0?y.insertNodeAtTopOfFile(s.file,U,!1):y.insertNodeBefore(s.file,V,U,!1),e.parent.kind===243)y.delete(s.file,e.parent);else{let re=M.createIdentifier(f);Yee(e)&&(re=M.createJsxExpression(void 0,re)),y.replaceNode(s.file,e,re)}}}const T=y.getChanges(),k=e.getSourceFile().fileName,E=zP(T,k,f,!0);return{renameFilename:k,renameLocation:E,edits:T};function O(N,B){if(N===void 0)return{variableType:N,initializer:B};if(!_l(B)&&!Fl(B)||B.typeParameters)return{variableType:N,initializer:B};const U=o.getTypeAtLocation(e),V=de(o.getSignaturesOfType(U,0));if(!V)return{variableType:N,initializer:B};if(V.getTypeParameters())return{variableType:N,initializer:B};const re=[];let z=!1;for(const ce of B.parameters)if(ce.type)re.push(ce);else{const R=o.getTypeAtLocation(ce);R===o.getAnyType()&&(z=!0),re.push(M.updateParameterDeclaration(ce,ce.modifiers,ce.dotDotDotToken,ce.name,ce.questionToken,ce.type||o.typeToTypeNode(R,t,1),ce.initializer))}if(z)return{variableType:N,initializer:B};if(N=void 0,Fl(B))B=M.updateArrowFunction(B,lg(e)?Kx(e):void 0,B.typeParameters,re,B.type||o.typeToTypeNode(V.getReturnType(),t,1),B.equalsGreaterThanToken,B.body);else{if(V&&V.thisParameter){const ce=Ji(re);if(!ce||Be(ce.name)&&ce.name.escapedText!=="this"){const R=o.getTypeOfSymbolAtLocation(V.thisParameter,e);re.splice(0,0,M.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(R,t,1)))}}B=M.updateFunctionExpression(B,lg(e)?Kx(e):void 0,B.asteriskToken,B.name,B.typeParameters,re,B.type||o.typeToTypeNode(V.getReturnType(),t,1),B.body)}return{variableType:N,initializer:B}}}function zFe(e,t){let n;for(;e!==void 0&&e!==t;){if(Fa(e)&&e.initializer===n&&of(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}function JFe(e,t){let n;const i=e.symbol;if(i&&i.declarations)for(const s of i.declarations)(n===void 0||s.pos0;if(oo(e)&&!o&&i.size===0)return{body:M.createBlock(e.statements,!0),returnValueProperty:void 0};let l,f=!1;const _=M.createNodeArray(oo(e)?e.statements.slice(0):[us(e)?e:M.createReturnStatement(kl(e))]);if(o||i.size){const m=dn(_,h,us).slice();if(o&&!s&&us(e)){const y=Zee(t,n);y.length===1?m.push(M.createReturnStatement(y[0].name)):m.push(M.createReturnStatement(M.createObjectLiteralExpression(y)))}return{body:M.createBlock(m,!0),returnValueProperty:l}}else return{body:M.createBlock(_,!0),returnValueProperty:void 0};function h(m){if(!f&&jg(m)&&o){const y=Zee(t,n);return m.expression&&(l||(l="__return"),y.unshift(M.createPropertyAssignment(l,Ye(m.expression,h,ht)))),y.length===1?M.createReturnStatement(y[0].name):M.createReturnStatement(M.createObjectLiteralExpression(y))}else{const y=f;f=f||Jl(m)||Yi(m);const T=i.get(Nc(m).toString()),k=T?Vl(T):nn(m,h,rv);return f=y,k}}}function qFe(e,t){return t.size?n(e):e;function n(i){const s=t.get(Nc(i).toString());return s?Vl(s):nn(i,n,rv)}}function $Fe(e){if(Jl(e)){const t=e.body;if(oo(t))return t.statements}else{if(C1(e)||Ja(e))return e.statements;if(Yi(e))return e.members;}return tt}function HFe(e,t){return on($Fe(t),n=>n.pos>=e&&Jl(n)&&!Uu(n))}function GFe(e,t){const n=t.members;D.assert(n.length>0,"Found no members");let i,s=!0;for(const o of n){if(o.pos>e)return i||n[0];if(s&&!fo(o)){if(i!==void 0)return o;s=!1}i=o}return i===void 0?D.fail():i}function XFe(e,t){D.assert(!Yi(t));let n;for(let i=e;i!==t;i=i.parent)Gee(i)&&(n=i);for(let i=(n||e).parent;;i=i.parent){if(r2e(i)){let s;for(const o of i.statements){if(o.pos>e.pos)break;s=o}return!s&&W9(i)?(D.assert(cI(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):D.checkDefined(s,"prevStatement failed to get set")}D.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Zee(e,t){const n=er(e,s=>M.createShorthandPropertyAssignment(s.symbol.name)),i=er(t,s=>M.createShorthandPropertyAssignment(s.symbol.name));return n===void 0?i:i===void 0?n:n.concat(i)}function iv(e){return ns(e)}function ZFe(e,t){return iv(e.range)?{pos:Fi(e.range).getStart(t),end:fi(e.range).getEnd()}:e.range}function YFe(e,t,n,i,s,o){const l=new Map,f=[],_=[],h=[],m=[],y=[],T=new Map,k=[];let E;const O=iv(e.range)?e.range.length===1&&$f(e.range[0])?e.range[0].expression:void 0:e.range;let N;if(O===void 0){const te=e.range,me=Fi(te).getStart(),ve=fi(te).end;N=af(i,me,ve-me,kf.expressionExpected)}else s.getTypeAtLocation(O).flags&147456&&(N=ai(O,kf.uselessConstantType));for(const te of t){f.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),_.push(new Map),h.push([]);const me=[];N&&me.push(N),Yi(te)&&jn(te)&&me.push(ai(te,kf.cannotExtractToJSClass)),Fl(te)&&!oo(te.body)&&me.push(ai(te,kf.cannotExtractToExpressionArrowFunction)),m.push(me)}const B=new Map,U=iv(e.range)?M.createBlock(e.range):e.range,V=iv(e.range)?Fi(e.range):e.range,re=z(V);if(R(U),re&&!iv(e.range)&&!E1(e.range)){const te=s.getContextualType(e.range);ce(te)}if(l.size>0){const te=new Map;let me=0;for(let ve=V;ve!==void 0&&me{f[me].typeParameterUsages.set(K,we)}),me++),h$(ve))for(const we of ab(ve)){const K=s.getTypeAtLocation(we);l.has(K.id.toString())&&te.set(K.id.toString(),K)}D.assert(me===t.length,"Should have iterated all scopes")}if(y.length){const te=g$(t[0],t[0].parent)?t[0]:sh(t[0]);js(te,ye)}for(let te=0;te0&&(me.usages.size>0||me.typeParameterUsages.size>0)){const K=iv(e.range)?e.range[0]:e.range;m[te].push(ai(K,kf.cannotAccessVariablesFromNestedScopes))}e.facts&16&&Yi(t[te])&&h[te].push(ai(e.thisNode,kf.cannotExtractFunctionsContainingThisToMethod));let ve=!1,we;if(f[te].usages.forEach(K=>{K.usage===2&&(ve=!0,K.symbol.flags&106500&&K.symbol.valueDeclaration&&Qd(K.symbol.valueDeclaration,64)&&(we=K.symbol.valueDeclaration))}),D.assert(iv(e.range)||k.length===0,"No variable declarations expected if something was extracted"),ve&&!iv(e.range)){const K=ai(e.range,kf.cannotWriteInExpression);h[te].push(K),m[te].push(K)}else if(we&&te>0){const K=ai(we,kf.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[te].push(K),m[te].push(K)}else if(E){const K=ai(E,kf.cannotExtractExportedEntity);h[te].push(K),m[te].push(K)}}return{target:U,usagesPerScope:f,functionErrorsPerScope:h,constantErrorsPerScope:m,exposedVariableDeclarations:k};function z(te){return!!Sn(te,me=>h$(me)&&ab(me).length!==0)}function ce(te){const me=s.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:ve}=me.walkType(te);for(const we of ve)we.isTypeParameter()&&l.set(we.id.toString(),we)}function R(te,me=1){if(re){const ve=s.getTypeAtLocation(te);ce(ve)}if(cp(te)&&te.symbol&&y.push(te),Hp(te))R(te.left,2),R(te.right);else if(Cle(te))R(te.operand,2);else if(mi(te)||Ll(te))js(te,R);else if(Be(te)){if(!te.parent||Od(te.parent)&&te!==te.parent.left||mi(te.parent)&&te!==te.parent.expression)return;le(te,me,ry(te))}else js(te,R)}function le(te,me,ve){const we=ae(te,me,ve);if(we)for(let K=0;K=me)return K;if(B.set(K,me),Ze){for(const Ue of f)Ue.usages.get(te.text)&&Ue.usages.set(te.text,{usage:me,symbol:we,node:te});return K}const Re=we.getDeclarations(),Fe=Re&&on(Re,Ue=>Ue.getSourceFile()===i);if(Fe&&!wP(n,Fe.getStart(),Fe.end)){if(e.facts&2&&me===2){const Ue=ai(te,kf.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const Ae of h)Ae.push(Ue);for(const Ae of m)Ae.push(Ue)}for(let Ue=0;Ue=0)return;const me=Be(te)?$(te):s.getSymbolAtLocation(te);if(me){const ve=on(y,we=>we.symbol===me);if(ve)if(Fa(ve)){const we=ve.symbol.id.toString();T.has(we)||(k.push(ve),T.set(we,!0))}else E=E||ve}js(te,ye)}function $(te){return te.parent&&_0(te.parent)&&te.parent.name===te?s.getShorthandAssignmentValueSymbol(te.parent):s.getSymbolAtLocation(te)}function ee(te,me,ve){if(!te)return;const we=te.getDeclarations();if(we&&we.some(Ze=>Ze.parent===me))return M.createIdentifier(te.name);const K=ee(te.parent,me,ve);if(K!==void 0)return ve?M.createQualifiedName(K,M.createIdentifier(te.name)):M.createPropertyAccessExpression(K,te.name)}}function QFe(e){return Sn(e,t=>t.parent&&t2e(t)&&!Un(t.parent))}function t2e(e){const{parent:t}=e;switch(t.kind){case 305:return!1}switch(e.kind){case 11:return t.kind!==271&&t.kind!==275;case 229:case 205:case 207:return!1;case 80:return t.kind!==207&&t.kind!==275&&t.kind!==280}return!0}function r2e(e){switch(e.kind){case 240:case 311:case 267:case 295:return!0;default:return!1}}function Yee(e){return Qee(e)||(fy(e)||C7(e)||T3(e))&&(fy(e.parent)||T3(e.parent))}function Qee(e){return sc(e)&&e.parent&&E1(e.parent)}var e8,t8,r8,kf,Kee,KFe=or({"src/services/refactors/extractSymbol.ts"(){"use strict";Ri(),Th(),e8="Extract Symbol",t8={name:"Extract Constant",description:Vo(p.Extract_constant),kind:"refactor.extract.constant"},r8={name:"Extract Function",description:Vo(p.Extract_function),kind:"refactor.extract.function"},py(e8,{kinds:[t8.kind,r8.kind],getEditsForAction:e2e,getAvailableActions:Kve}),(e=>{function t(n){return{message:n,code:0,category:3,key:n}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(kf||(kf={})),Kee=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(Kee||{})}}),n2e={};Dl(n2e,{Messages:()=>kf,RangeFacts:()=>Kee,getRangeToExtract:()=>Hee,getRefactorActionsToExtractSymbol:()=>Kve,getRefactorEditsToExtractSymbol:()=>e2e});var eRe=or({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";KFe()}}),sO,tJ,rJ,tRe=or({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";Ri(),Th(),sO="Generate 'get' and 'set' accessors",tJ=p.Generate_get_and_set_accessors.message,rJ={name:sO,description:tJ,kind:"refactor.rewrite.property.generateAccessors"},py(sO,{kinds:[rJ.kind],getEditsForAction:function(t,n){if(!t.endPosition)return;const i=Xf.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);D.assert(i&&!dy(i),"Expected applicable refactor info");const s=Xf.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,n);if(!s)return;const o=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,_=(Be(l)?0:-1)+zP(s,o,l.text,Cs(i.declaration));return{renameFilename:o,renameLocation:_,edits:s}},getAvailableActions(e){if(!e.endPosition)return tt;const t=Xf.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?dy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:sO,description:tJ,actions:[Xs(fa({},rJ),{notApplicableReason:t.error})]}]:tt:[{name:sO,description:tJ,actions:[rJ]}]:tt}})}}),rRe={},nRe=or({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";tRe()}});function iRe(e){const t=i2e(e);if(t&&!dy(t))return{renameFilename:void 0,renameLocation:void 0,edits:Vn.ChangeTracker.with(e,i=>sRe(e.file,i,t.declaration,t.returnTypeNode))}}function aRe(e){const t=i2e(e);return t?dy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:oO,description:nJ,actions:[Xs(fa({},cO),{notApplicableReason:t.error})]}]:tt:[{name:oO,description:nJ,actions:[cO]}]:tt}function sRe(e,t,n,i){const s=zc(n,22,e),o=Fl(n)&&s===void 0,l=o?Fi(n.parameters):s;l&&(o&&(t.insertNodeBefore(e,l,M.createToken(21)),t.insertNodeAfter(e,l,M.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function i2e(e){if(jn(e.file)||!Nb(cO.kind,e.kind))return;const t=Za(e.file,e.startPosition),n=Sn(t,l=>oo(l)||l.parent&&Fl(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":oRe(l));if(!n||!n.body||n.type)return{error:Vo(p.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),s=cRe(i,n);if(!s)return{error:Vo(p.Could_not_determine_function_return_type)};const o=i.typeToTypeNode(s,n,1);if(o)return{declaration:n,returnTypeNode:o}}function oRe(e){switch(e.kind){case 261:case 217:case 218:case 173:return!0;default:return!1}}function cRe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Mr(i,s=>s.getReturnType()))}const n=e.getSignatureFromDeclaration(t);if(n)return e.getReturnTypeOfSignature(n)}var oO,nJ,cO,lRe=or({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";Ri(),Th(),oO="Infer function return type",nJ=p.Infer_function_return_type.message,cO={name:oO,description:nJ,kind:"refactor.rewrite.function.returnType"},py(oO,{kinds:[cO.kind],getEditsForAction:iRe,getAvailableActions:aRe})}}),uRe={},_Re=or({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";lRe()}}),UE={};Dl(UE,{addExportToChanges:()=>Pee,addExports:()=>Aee,addNewFileToTsconfig:()=>See,addOrRemoveBracesToArrowFunction:()=>CLe,convertArrowFunctionOrFunctionExpression:()=>RLe,convertParamsToDestructuredObject:()=>rFe,convertStringOrTemplateLiteral:()=>fFe,convertToOptionalChainExpression:()=>CFe,createNewFileName:()=>Oee,createOldFileImportsFromTargetFile:()=>Eee,deleteMovedStatements:()=>KP,deleteUnusedImports:()=>Dee,deleteUnusedOldImports:()=>kee,doChangeNamedToNamespaceOrDefault:()=>gve,extractSymbol:()=>n2e,filterImport:()=>LE,forEachImportInStatement:()=>ME,generateGetAccessorAndSetAccessor:()=>rRe,getApplicableRefactors:()=>AMe,getEditsForRefactor:()=>DMe,getStatementsToMove:()=>FE,getTopLevelDeclarationStatement:()=>zz,getUsageInfo:()=>Jz,inferFunctionReturnType:()=>uRe,isRefactorErrorInfo:()=>dy,isTopLevelDeclaration:()=>Uz,makeImportOrRequire:()=>eO,moduleSpecifierFromImport:()=>OE,nameOfTopLevelDeclaration:()=>Iee,refactorKindBeginsWith:()=>Nb,registerRefactor:()=>py,updateImportsInOtherFiles:()=>Cee});var Th=or({"src/services/_namespaces/ts.refactor.ts"(){"use strict";uve(),FMe(),JMe(),HMe(),GMe(),QMe(),yLe(),wLe(),BLe(),nFe(),pFe(),wFe(),eRe(),nRe(),_Re()}});function a2e(e,t,n,i){const s=ete(e,t,n,i);D.assert(s.spans.length%3===0);const o=s.spans,l=[];for(let f=0;f{s.push(l.getStart(t),l.getWidth(t),(f+1<<8)+_)},i),s}function pRe(e,t,n,i,s){const o=e.getTypeChecker();let l=!1;function f(_){switch(_.kind){case 266:case 262:case 263:case 261:case 230:case 217:case 218:s.throwIfCancellationRequested()}if(!_||!mL(n,_.pos,_.getFullWidth())||_.getFullWidth()===0)return;const h=l;if((fy(_)||C7(_))&&(l=!0),V9(_)&&(l=!1),Be(_)&&!l&&!hRe(_)&&!S9(_.escapedText)){let m=o.getSymbolAtLocation(_);if(m){m.flags&2097152&&(m=o.getAliasedSymbol(m));let y=dRe(m,J7(_));if(y!==void 0){let T=0;_.parent&&(Cc(_.parent)||ite.get(_.parent.kind)===y)&&_.parent.name===_&&(T=1),y===6&&o2e(_)&&(y=9),y=mRe(o,_,y);const k=m.valueDeclaration;if(k){const E=Vv(k),O=b1(k);E&32&&(T|=2),E&512&&(T|=4),y!==0&&y!==2&&(E&64||O&2||m.getFlags()&8)&&(T|=8),(y===7||y===10)&&gRe(k,t)&&(T|=32),e.isSourceFileDefaultLibrary(k.getSourceFile())&&(T|=16)}else m.declarations&&m.declarations.some(E=>e.isSourceFileDefaultLibrary(E.getSourceFile()))&&(T|=16);i(_,y,T)}}}js(_,f),l=h}f(t)}function dRe(e,t){const n=e.getFlags();if(n&32)return 0;if(n&384)return 1;if(n&524288)return 5;if(n&64){if(t&2)return 2}else if(n&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Cc(i)&&(i=s2e(i)),i&&ite.get(i.kind)}function mRe(e,t,n){if(n===7||n===9||n===6){const i=e.getTypeAtLocation(t);if(i){const s=o=>o(i)||i.isUnion()&&i.types.some(o);if(n!==6&&s(o=>o.getConstructSignatures().length>0))return 0;if(s(o=>o.getCallSignatures().length>0)&&!s(o=>o.getProperties().length>0)||yRe(t))return n===9?11:10}}return n}function gRe(e,t){return Cc(e)&&(e=s2e(e)),Fa(e)?(!Ja(e.parent.parent.parent)||Ik(e.parent))&&e.getSourceFile()===t:B_(e)?!Ja(e.parent)&&e.getSourceFile()===t:!1}function s2e(e){for(;;)if(Cc(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function hRe(e){const t=e.parent;return t&&(hh(t)||Ld(t)||vb(t))}function yRe(e){for(;o2e(e);)e=e.parent;return go(e.parent)&&e.parent.expression===e}function o2e(e){return Od(e.parent)&&e.parent.right===e||mi(e.parent)&&e.parent.name===e}var tte,rte,nte,ite,c2e=or({"src/services/classifier2020.ts"(){"use strict";Ri(),tte=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(tte||{}),rte=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(rte||{}),nte=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(nte||{}),ite=new Map([[259,7],[168,6],[171,9],[266,3],[265,1],[305,8],[262,0],[173,11],[261,10],[217,10],[172,11],[176,9],[177,9],[170,9],[263,2],[264,5],[167,4],[302,9],[303,9]])}});function l2e(e,t,n,i){const s=wD(e)?new cJ(e,t,n):e===80?new uJ(80,t,n):e===81?new _J(81,t,n):new cte(e,t,n);return s.parent=i,s.flags=i.flags&50720768,s}function vRe(e,t){if(!wD(e.kind))return tt;const n=[];if(ML(e))return e.forEachChild(l=>{n.push(l)}),n;pp.setText((t||e.getSourceFile()).text);let i=e.pos;const s=l=>{lO(n,i,l.pos,e),n.push(l),i=l.end},o=l=>{lO(n,i,l.pos,e),n.push(bRe(l,e)),i=l.end};return Vt(e.jsDoc,s),i=e.pos,e.forEachChild(s,o),lO(n,i,e.end,e),pp.setText(void 0),n}function lO(e,t,n,i){for(pp.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function iJ(e,t){if(!e)return tt;let n=X4.getJsDocTagsFromDeclarations(e,t);if(t&&(n.length===0||e.some(u2e))){const i=new Set;for(const s of e){const o=_2e(t,s,l=>{var f;if(!i.has(l))return i.add(l),s.kind===176||s.kind===177?l.getContextualJsDocTags(s,t):((f=l.declarations)==null?void 0:f.length)===1?l.getJsDocTags():void 0});o&&(n=[...o,...n])}}return n}function uO(e,t){if(!e)return tt;let n=X4.getJsDocCommentsFromDeclarations(e,t);if(t&&(n.length===0||e.some(u2e))){const i=new Set;for(const s of e){const o=_2e(t,s,l=>{if(!i.has(l))return i.add(l),s.kind===176||s.kind===177?l.getContextualDocumentationComment(s,t):l.getDocumentationComment(t)});o&&(n=n.length===0?o.slice():o.concat(iC(),n))}}return n}function _2e(e,t,n){var i;const s=((i=t.parent)==null?void 0:i.kind)===175?t.parent.parent:t.parent;if(!s)return;const o=R_(t);return bo(Gw(s),l=>{const f=e.getTypeAtLocation(l),_=o&&f.symbol?e.getTypeOfSymbol(f.symbol):f,h=e.getPropertyOfType(_,t.symbol.name);return h?n(h):void 0})}function xRe(){return{getNodeConstructor:()=>cJ,getTokenConstructor:()=>cte,getIdentifierConstructor:()=>uJ,getPrivateIdentifierConstructor:()=>_J,getSourceFileConstructor:()=>b2e,getSymbolConstructor:()=>h2e,getTypeConstructor:()=>y2e,getSignatureConstructor:()=>v2e,getSourceMapSourceConstructor:()=>x2e}}function _O(e){let t=!0;for(const i in e)if(Hs(e,i)&&!f2e(i)){t=!1;break}if(t)return e;const n={};for(const i in e)if(Hs(e,i)){const s=f2e(i)?i:i.charAt(0).toLowerCase()+i.substr(1);n[s]=e[i]}return n}function f2e(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function p2e(e){return e?er(e,t=>t.text).join(""):""}function aJ(){return{target:1,jsx:1}}function d2e(){return Xf.getSupportedErrorCodes()}function m2e(e,t,n){e.version=n,e.scriptSnapshot=t}function sJ(e,t,n,i,s,o){const l=kI(e,Hj(t),n,s,o);return m2e(l,t,i),l}function ate(e,t,n,i,s){if(i&&n!==e.version){let l;const f=i.span.start!==0?e.text.substr(0,i.span.start):"",_=qf(i.span)!==e.text.length?e.text.substr(qf(i.span)):"";if(i.newLength===0)l=f&&_?f+_:f||_;else{const m=t.getText(i.span.start,i.span.start+i.newLength);l=f&&_?f+m+_:f?f+m:m+_}const h=lX(e,l,i,s);return m2e(h,t,n),h.nameTable=void 0,e!==h&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),h}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return sJ(e.fileName,t,o,n,!0,e.scriptKind)}function g2e(e,t=GK(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),n){var i;let s;n===void 0?s=0:typeof n=="boolean"?s=n?2:0:s=n;const o=new T2e(e);let l,f,_=0;const h=e.getCancellationToken?new k2e(e.getCancellationToken()):S2e,m=e.getCurrentDirectory();w_e((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(he){e.log&&e.log(he)}const T=vN(e),k=N_(T),E=Eye({useCaseSensitiveFileNames:()=>T,getCurrentDirectory:()=>m,getProgram:B,fileExists:Zs(e,e.fileExists),readFile:Zs(e,e.readFile),getDocumentPositionMapper:Zs(e,e.getDocumentPositionMapper),getSourceFileLike:Zs(e,e.getSourceFileLike),log:y});function O(he){const ue=l.getSourceFile(he);if(!ue){const _e=new Error(`Could not find source file: '${he}'.`);throw _e.ProgramFiles=l.getSourceFiles().map(pe=>pe.fileName),_e}return ue}function N(){var he,ue,_e;if(D.assert(s!==2),e.getProjectVersion){const os=e.getProjectVersion();if(os){if(f===os&&!((he=e.hasChangedAutomaticTypeDirectiveNames)!=null&&he.call(e)))return;f=os}}const pe=e.getTypeRootsVersion?e.getTypeRootsVersion():0;_!==pe&&(y("TypeRoots version has changed; provide new program"),l=void 0,_=pe);const q=e.getScriptFileNames().slice(),rt=e.getCompilationSettings()||aJ(),ar=e.hasInvalidatedResolutions||Rm,st=Zs(e,e.hasInvalidatedLibResolutions)||Rm,Ft=Zs(e,e.hasChangedAutomaticTypeDirectiveNames),zr=(ue=e.getProjectReferences)==null?void 0:ue.call(e);let En,Ti={getSourceFile:pc,getSourceFileByPath:Yr,getCancellationToken:()=>h,getCanonicalFileName:k,useCaseSensitiveFileNames:()=>T,getNewLine:()=>Yv(rt),getDefaultLibFileName:os=>e.getDefaultLibFileName(os),writeFile:Ho,getCurrentDirectory:()=>m,fileExists:os=>e.fileExists(os),readFile:os=>e.readFile&&e.readFile(os),getSymlinkCache:Zs(e,e.getSymlinkCache),realpath:Zs(e,e.realpath),directoryExists:os=>Mg(os,e),getDirectories:os=>e.getDirectories?e.getDirectories(os):[],readDirectory:(os,Gs,Ua,el,Wl)=>(D.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(os,Gs,Ua,el,Wl)),onReleaseOldSourceFile:al,onReleaseParsedCommandLine:Na,hasInvalidatedResolutions:ar,hasInvalidatedLibResolutions:st,hasChangedAutomaticTypeDirectiveNames:Ft,trace:Zs(e,e.trace),resolveModuleNames:Zs(e,e.resolveModuleNames),getModuleResolutionCache:Zs(e,e.getModuleResolutionCache),createHash:Zs(e,e.createHash),resolveTypeReferenceDirectives:Zs(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Zs(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Zs(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Zs(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Zs(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ks};const Ui=Ti.getSourceFile,{getSourceFileWithCache:ya}=sP(Ti,os=>Sl(os,m,k),(...os)=>Ui.call(Ti,...os));Ti.getSourceFile=ya,(_e=e.setCompilerHost)==null||_e.call(e,Ti);const _s={useCaseSensitiveFileNames:T,fileExists:os=>Ti.fileExists(os),readFile:os=>Ti.readFile(os),readDirectory:(...os)=>Ti.readDirectory(...os),trace:Ti.trace,getCurrentDirectory:Ti.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Ho},Os=t.getKeyForCompilationSettings(rt);let zs=new Set;if(uY(l,q,rt,(os,Gs)=>e.getScriptVersion(Gs),os=>Ti.fileExists(os),ar,st,Ft,Ks,zr)){Ti=void 0,En=void 0,zs=void 0;return}l=cj({rootNames:q,options:rt,host:Ti,oldProgram:l,projectReferences:zr}),Ti=void 0,En=void 0,zs=void 0,E.clearCache(),l.getTypeChecker();return;function Ks(os){const Gs=Sl(os,m,k),Ua=En==null?void 0:En.get(Gs);if(Ua!==void 0)return Ua||void 0;const el=e.getParsedCommandLine?e.getParsedCommandLine(os):ti(os);return(En||(En=new Map)).set(Gs,el||!1),el}function ti(os){const Gs=pc(os,100);if(Gs)return Gs.path=Sl(os,m,k),Gs.resolvedPath=Gs.path,Gs.originalFileName=Gs.fileName,NI(Gs,_s,ms(ga(os),m),void 0,ms(os,m))}function Na(os,Gs,Ua){var el;e.getParsedCommandLine?(el=e.onReleaseParsedCommandLine)==null||el.call(e,os,Gs,Ua):Gs&&al(Gs.sourceFile,Ua)}function al(os,Gs){const Ua=t.getKeyForCompilationSettings(Gs);t.releaseDocumentWithKey(os.resolvedPath,Ua,os.scriptKind,os.impliedNodeFormat)}function pc(os,Gs,Ua,el){return Yr(os,Sl(os,m,k),Gs,Ua,el)}function Yr(os,Gs,Ua,el,Wl){D.assert(Ti,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const du=e.getScriptSnapshot(os);if(!du)return;const uf=TK(os,e),Ms=e.getScriptVersion(os);if(!Wl){const qa=l&&l.getSourceFileByPath(Gs);if(qa){if(uf===qa.scriptKind||zs.has(qa.resolvedPath))return t.updateDocumentWithKey(os,Gs,e,Os,du,Ms,uf,Ua);t.releaseDocumentWithKey(qa.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),qa.scriptKind,qa.impliedNodeFormat),zs.add(qa.resolvedPath)}}return t.acquireDocumentWithKey(os,Gs,e,Os,du,Ms,uf,Ua)}}function B(){if(s===2){D.assert(l===void 0);return}return N(),l}function U(){var he;return(he=e.getPackageJsonAutoImportProvider)==null?void 0:he.call(e)}function V(he,ue){const _e=l.getTypeChecker(),pe=q();if(!pe)return!1;for(const ar of he)for(const st of ar.references){const Ft=rt(st);if(D.assertIsDefined(Ft),ue.has(st)||tu.isDeclarationOfSymbol(Ft,pe)){ue.add(st),st.isDefinition=!0;const zr=hK(st,E,Zs(e,e.fileExists));zr&&ue.add(zr)}else st.isDefinition=!1}return!0;function q(){for(const ar of he)for(const st of ar.references){if(ue.has(st)){const zr=rt(st);return D.assertIsDefined(zr),_e.getSymbolAtLocation(zr)}const Ft=hK(st,E,Zs(e,e.fileExists));if(Ft&&ue.has(Ft)){const zr=rt(Ft);if(zr)return _e.getSymbolAtLocation(zr)}}}function rt(ar){const st=l.getSourceFile(ar.fileName);if(!st)return;const Ft=qm(st,ar.textSpan.start);return tu.Core.getAdjustedNode(Ft,{use:tu.FindReferencesUse.References})}}function re(){l=void 0}function z(){if(l){const he=t.getKeyForCompilationSettings(l.getCompilerOptions());Vt(l.getSourceFiles(),ue=>t.releaseDocumentWithKey(ue.resolvedPath,he,ue.scriptKind,ue.impliedNodeFormat)),l=void 0}e=void 0}function ce(he){return N(),l.getSyntacticDiagnostics(O(he),h).slice()}function R(he){N();const ue=O(he),_e=l.getSemanticDiagnostics(ue,h);if(!ag(l.getCompilerOptions()))return _e.slice();const pe=l.getDeclarationDiagnostics(ue,h);return[..._e,...pe]}function le(he){return N(),iee(O(he),l,h)}function ae(){return N(),[...l.getOptionsDiagnostics(h),...l.getGlobalDiagnostics(h)]}function ye(he,ue,_e=j0,pe){const q=Xs(fa({},_e),{includeCompletionsForModuleExports:_e.includeCompletionsForModuleExports||_e.includeExternalModuleExports,includeCompletionsWithInsertText:_e.includeCompletionsWithInsertText||_e.includeInsertTextCompletions});return N(),u8.getCompletionsAtPosition(e,l,y,O(he),ue,q,_e.triggerCharacter,_e.triggerKind,h,pe&&Q_.getFormatContext(pe,e),_e.includeSymbol)}function $(he,ue,_e,pe,q,rt=j0,ar){return N(),u8.getCompletionEntryDetails(l,y,O(he),ue,{name:_e,source:q,data:ar},e,pe&&Q_.getFormatContext(pe,e),rt,h)}function ee(he,ue,_e,pe,q=j0){return N(),u8.getCompletionEntrySymbol(l,y,O(he),ue,{name:_e,source:pe},e,q)}function te(he,ue){N();const _e=O(he),pe=qm(_e,ue);if(pe===_e)return;const q=l.getTypeChecker(),rt=me(pe),ar=CRe(rt,q);if(!ar||q.isUnknownSymbol(ar)){const Ti=ve(_e,rt,ue)?q.getTypeAtLocation(rt):void 0;return Ti&&{kind:"",kindModifiers:"",textSpan:Zp(rt,_e),displayParts:q.runWithCancellationToken(h,Ui=>BP(Ui,Ti,U7(rt))),documentation:Ti.symbol?Ti.symbol.getDocumentationComment(q):void 0,tags:Ti.symbol?Ti.symbol.getJsDocTags(q):void 0}}const{symbolKind:st,displayParts:Ft,documentation:zr,tags:En}=q.runWithCancellationToken(h,Ti=>_2.getSymbolDisplayPartsDocumentationAndSymbolKind(Ti,ar,_e,U7(rt),rt));return{kind:st,kindModifiers:_2.getSymbolModifiers(q,ar),textSpan:Zp(rt,_e),displayParts:Ft,documentation:zr,tags:En}}function me(he){return v3(he.parent)&&he.pos===he.parent.pos?he.parent.expression:R9(he.parent)&&he.pos===he.parent.pos||q5(he.parent)&&he.parent.name===he||A1(he.parent)?he.parent:he}function ve(he,ue,_e){switch(ue.kind){case 80:return!VQ(ue)&&!WQ(ue)&&!Vy(ue.parent);case 210:case 165:return!o2(he,_e);case 110:case 196:case 108:case 201:return!0;case 235:return q5(ue);default:return!1}}function we(he,ue,_e,pe){return N(),eA.getDefinitionAtPosition(l,O(he),ue,_e,pe)}function K(he,ue){return N(),eA.getDefinitionAndBoundSpan(l,O(he),ue)}function Ze(he,ue){return N(),eA.getTypeDefinitionAtPosition(l.getTypeChecker(),O(he),ue)}function Re(he,ue){return N(),tu.getImplementationsAtPosition(l,h,l.getSourceFiles(),O(he),ue)}function Fe(he,ue,_e){const pe=ec(he);D.assert(_e.some(ar=>ec(ar)===pe)),N();const q=Mr(_e,ar=>l.getSourceFile(ar)),rt=O(he);return Tz.getDocumentHighlights(l,h,rt,ue,q)}function Ue(he,ue,_e,pe,q){N();const rt=O(he),ar=jj(qm(rt,ue));if(uV.nodeIsEligibleForRename(ar))if(Be(ar)&&(w1(ar.parent)||x3(ar.parent))&&ok(ar.escapedText)){const{openingElement:st,closingElement:Ft}=ar.parent.parent;return[st,Ft].map(zr=>{const En=Zp(zr.tagName,rt);return fa({fileName:rt.fileName,textSpan:En},tu.toContextSpan(En,rt,zr.parent))})}else{const st=f0(rt,q!=null?q:j0),Ft=typeof q=="boolean"?q:q==null?void 0:q.providePrefixAndSuffixTextForRename;return Me(ar,ue,{findInStrings:_e,findInComments:pe,providePrefixAndSuffixTextForRename:Ft,use:tu.FindReferencesUse.Rename},(zr,En,Ti)=>tu.toRenameLocation(zr,En,Ti,Ft||!1,st))}}function Ae(he,ue){return N(),Me(qm(O(he),ue),ue,{use:tu.FindReferencesUse.References},tu.toReferenceEntry)}function Me(he,ue,_e,pe){N();const q=_e&&_e.use===tu.FindReferencesUse.Rename?l.getSourceFiles().filter(rt=>!l.isSourceFileDefaultLibrary(rt)):l.getSourceFiles();return tu.findReferenceOrRenameEntries(l,h,q,he,ue,_e,pe)}function He(he,ue){return N(),tu.findReferencedSymbols(l,h,l.getSourceFiles(),O(he),ue)}function je(he){return N(),tu.Core.getReferencesForFileName(he,l,l.getSourceFiles()).map(tu.toReferenceEntry)}function Pe(he,ue,_e,pe=!1){N();const q=_e?[O(_e)]:l.getSourceFiles();return Bye(q,l.getTypeChecker(),h,he,ue,pe)}function nt(he,ue,_e){N();const pe=O(he),q=e.getCustomTransformers&&e.getCustomTransformers();return hge(l,pe,!!ue,h,q,_e)}function wt(he,ue,{triggerReason:_e}=j0){N();const pe=O(he);return FO.getSignatureHelpItems(l,pe,ue,_e,h)}function xt(he){return o.getCurrentSourceFile(he)}function Zt(he,ue,_e){const pe=o.getCurrentSourceFile(he),q=qm(pe,ue);if(q===pe)return;switch(q.kind){case 210:case 165:case 11:case 97:case 112:case 106:case 108:case 110:case 196:case 80:break;default:return}let rt=q;for(;;)if(eC(rt)||Z1e(rt))rt=rt.parent;else if($Q(rt))if(rt.parent.parent.kind===266&&rt.parent.parent.body===rt.parent)rt=rt.parent.parent.name;else break;else break;return L_(rt.getStart(),q.getEnd())}function Qe(he,ue){const _e=o.getCurrentSourceFile(he);return gte.spanInSourceFileAtLocation(_e,ue)}function Mt(he){return Uye(o.getCurrentSourceFile(he),h)}function yr(he){return Vye(o.getCurrentSourceFile(he),h)}function Cr(he,ue,_e){return N(),(_e||"original")==="2020"?a2e(l,h,O(he),ue):nye(l.getTypeChecker(),h,O(he),l.getClassifiableNames(),ue)}function Lt(he,ue,_e){return N(),(_e||"original")==="original"?$K(l.getTypeChecker(),h,O(he),l.getClassifiableNames(),ue):ete(l,h,O(he),ue)}function an(he,ue){return oye(h,o.getCurrentSourceFile(he),ue)}function xn(he,ue){return HK(h,o.getCurrentSourceFile(he),ue)}function Lr(he){const ue=o.getCurrentSourceFile(he);return _ie.collectElements(ue,h)}const In=new Map(Object.entries({[19]:20,[21]:22,[23]:24,[32]:30}));In.forEach((he,ue)=>In.set(he.toString(),Number(ue)));function vi(he,ue){const _e=o.getCurrentSourceFile(he),pe=vE(_e,ue),q=pe.getStart(_e)===ue?In.get(pe.kind.toString()):void 0,rt=q&&zc(pe.parent,q,_e);return rt?[Zp(pe,_e),Zp(rt,_e)].sort((ar,st)=>ar.start-st.start):tt}function ia(he,ue,_e){let pe=Tl();const q=_O(_e),rt=o.getCurrentSourceFile(he);y("getIndentationAtPosition: getCurrentSourceFile: "+(Tl()-pe)),pe=Tl();const ar=Q_.SmartIndenter.getIndentation(ue,rt,q);return y("getIndentationAtPosition: computeIndentation : "+(Tl()-pe)),ar}function Wa(he,ue,_e,pe){const q=o.getCurrentSourceFile(he);return Q_.formatSelection(ue,_e,q,Q_.getFormatContext(_O(pe),e))}function bi(he,ue){return Q_.formatDocument(o.getCurrentSourceFile(he),Q_.getFormatContext(_O(ue),e))}function Pt(he,ue,_e,pe){const q=o.getCurrentSourceFile(he),rt=Q_.getFormatContext(_O(pe),e);if(!o2(q,ue))switch(_e){case"{":return Q_.formatOnOpeningCurly(ue,q,rt);case"}":return Q_.formatOnClosingCurly(ue,q,rt);case";":return Q_.formatOnSemicolon(ue,q,rt);case` -`:return Q_.formatOnEnter(ue,q,rt)}return[]}function Ar(he,ue,_e,pe,q,rt=j0){N();const ar=O(he),st=L_(ue,_e),Ft=Q_.getFormatContext(q,e);return lo(No(pe,Dg,Uc),zr=>(h.throwIfCancellationRequested(),Xf.getFixes({errorCode:zr,sourceFile:ar,span:st,program:l,host:e,cancellationToken:h,formatContext:Ft,preferences:rt})))}function Yt(he,ue,_e,pe=j0){N(),D.assert(he.type==="file");const q=O(he.fileName),rt=Q_.getFormatContext(_e,e);return Xf.getAllFixes({fixId:ue,sourceFile:q,program:l,host:e,cancellationToken:h,formatContext:rt,preferences:pe})}function Qr(he,ue,_e=j0){var ar;N(),D.assert(he.type==="file");const pe=O(he.fileName),q=Q_.getFormatContext(ue,e),rt=(ar=he.mode)!=null?ar:he.skipDestructiveCodeActions?"SortAndCombine":"All";return pg.organizeImports(pe,q,e,l,_e,rt)}function $r(he,ue,_e,pe=j0){return fye(B(),he,ue,e,Q_.getFormatContext(_e,e),pe,E)}function Fn(he,ue){const _e=typeof he=="string"?ue:he;return ns(_e)?Promise.all(_e.map(pe=>ja(pe))):ja(_e)}function ja(he){const ue=_e=>Sl(_e,m,k);return D.assertEqual(he.type,"install package"),e.installPackage?e.installPackage({fileName:ue(he.file),packageName:he.packageName}):Promise.reject("Host does not implement `installPackage`")}function Ca(he,ue,_e,pe){const q=pe?Q_.getFormatContext(pe,e).options:void 0;return X4.getDocCommentTemplateAtPosition(wb(e,q),o.getCurrentSourceFile(he),ue,_e)}function rn(he,ue,_e){if(_e===60)return!1;const pe=o.getCurrentSourceFile(he);if(W7(pe,ue))return!1;if(ohe(pe,ue))return _e===123;if(eK(pe,ue))return!1;switch(_e){case 39:case 34:case 96:return!o2(pe,ue)}return!0}function wr(he,ue){const _e=o.getCurrentSourceFile(he),pe=j_(ue,_e);if(!pe)return;const q=pe.kind===32&&w1(pe.parent)?pe.parent.parent:kS(pe)&&fy(pe.parent)?pe.parent:void 0;if(q&&Wt(q))return{newText:``};const rt=pe.kind===32&&FS(pe.parent)?pe.parent.parent:kS(pe)&&T3(pe.parent)?pe.parent:void 0;if(rt&&nr(rt))return{newText:""}}function ln(he,ue){const _e=o.getCurrentSourceFile(he),pe=j_(ue,_e);if(!pe||pe.parent.kind===311)return;const q="[a-zA-Z0-9:\\-\\._$]*";if(T3(pe.parent.parent)){const rt=pe.parent.parent.openingFragment,ar=pe.parent.parent.closingFragment;if(z5(rt)||z5(ar))return;const st=rt.getStart(_e)+1,Ft=ar.getStart(_e)+2;return ue!==st&&ue!==Ft?void 0:{ranges:[{start:st,length:0},{start:Ft,length:0}],wordPattern:q}}else{const rt=Sn(pe.parent,ya=>!!(w1(ya)||x3(ya)));if(!rt)return;D.assert(w1(rt)||x3(rt),"tag should be opening or closing element");const ar=rt.parent.openingElement,st=rt.parent.closingElement,Ft=ar.tagName.getStart(_e),zr=ar.tagName.end,En=st.tagName.getStart(_e),Ti=st.tagName.end;return!(Ft<=ue&&ue<=zr||En<=ue&&ue<=Ti)||ar.tagName.getText(_e)!==st.tagName.getText(_e)?void 0:{ranges:[{start:Ft,length:zr-Ft},{start:En,length:Ti-En}],wordPattern:q}}}function Kr(he,ue){return{lineStarts:he.getLineStarts(),firstLine:he.getLineAndCharacterOfPosition(ue.pos).line,lastLine:he.getLineAndCharacterOfPosition(ue.end).line}}function Li(he,ue,_e){const pe=o.getCurrentSourceFile(he),q=[],{lineStarts:rt,firstLine:ar,lastLine:st}=Kr(pe,ue);let Ft=_e||!1,zr=Number.MAX_VALUE;const En=new Map,Ti=new RegExp(/\S/),Ui=Jj(pe,rt[ar]),ya=Ui?"{/*":"//";for(let _s=ar;_s<=st;_s++){const Os=pe.text.substring(rt[_s],pe.getLineEndOfPosition(rt[_s])),zs=Ti.exec(Os);zs&&(zr=Math.min(zr,zs.index),En.set(_s.toString(),zs.index),Os.substr(zs.index,ya.length)!==ya&&(Ft=_e===void 0||_e))}for(let _s=ar;_s<=st;_s++){if(ar!==st&&rt[_s]===ue.end)continue;const Os=En.get(_s.toString());Os!==void 0&&(Ui?q.push.apply(q,ot(he,{pos:rt[_s]+zr,end:pe.getLineEndOfPosition(rt[_s])},Ft,Ui)):Ft?q.push({newText:ya,span:{length:0,start:rt[_s]+zr}}):pe.text.substr(rt[_s]+Os,ya.length)===ya&&q.push({newText:"",span:{length:ya.length,start:rt[_s]+Os}}))}return q}function ot(he,ue,_e,pe){var q;const rt=o.getCurrentSourceFile(he),ar=[],{text:st}=rt;let Ft=!1,zr=_e||!1;const En=[];let{pos:Ti}=ue;const Ui=pe!==void 0?pe:Jj(rt,Ti),ya=Ui?"{/*":"/*",_s=Ui?"*/}":"*/",Os=Ui?"\\{\\/\\*":"\\/\\*",zs=Ui?"\\*\\/\\}":"\\*\\/";for(;Ti<=ue.end;){const Wo=st.substr(Ti,ya.length)===ya?ya.length:0,Ks=o2(rt,Ti+Wo);if(Ks)Ui&&(Ks.pos--,Ks.end++),En.push(Ks.pos),Ks.kind===3&&En.push(Ks.end),Ft=!0,Ti=Ks.end+1;else{const ti=st.substring(Ti,ue.end).search(`(${Os})|(${zs})`);zr=_e!==void 0?_e:zr||!xhe(st,Ti,ti===-1?ue.end:Ti+ti),Ti=ti===-1?ue.end+1:Ti+ti+_s.length}}if(zr||!Ft){((q=o2(rt,ue.pos))==null?void 0:q.kind)!==2&&qo(En,ue.pos,Uc),qo(En,ue.end,Uc);const Wo=En[0];st.substr(Wo,ya.length)!==ya&&ar.push({newText:ya,span:{length:0,start:Wo}});for(let Ks=1;Ks0?Wo-_s.length:0,ti=st.substr(Ks,_s.length)===_s?_s.length:0;ar.push({newText:"",span:{length:ya.length,start:Wo-ti}})}return ar}function Tt(he,ue){const _e=o.getCurrentSourceFile(he),{firstLine:pe,lastLine:q}=Kr(_e,ue);return pe===q&&ue.pos!==ue.end?ot(he,ue,!0):Li(he,ue,!0)}function it(he,ue){const _e=o.getCurrentSourceFile(he),pe=[],{pos:q}=ue;let{end:rt}=ue;q===rt&&(rt+=Jj(_e,q)?2:1);for(let ar=q;ar<=rt;ar++){const st=o2(_e,ar);if(st){switch(st.kind){case 2:pe.push.apply(pe,Li(he,{end:st.end,pos:st.pos+1},!1));break;case 3:pe.push.apply(pe,ot(he,{end:st.end,pos:st.pos+1},!1))}ar=st.end+1}}return pe}function Wt({openingElement:he,closingElement:ue,parent:_e}){return!U4(he.tagName,ue.tagName)||fy(_e)&&U4(he.tagName,_e.openingElement.tagName)&&Wt(_e)}function nr({closingFragment:he,parent:ue}){return!!(he.flags&131072)||T3(ue)&&nr(ue)}function Y(he,ue,_e){const pe=o.getCurrentSourceFile(he),q=Q_.getRangeOfEnclosingComment(pe,ue);return q&&(!_e||q.kind===3)?Cb(q):void 0}function Ge(he,ue){N();const _e=O(he);h.throwIfCancellationRequested();const pe=_e.text,q=[];if(ue.length>0&&!Ft(_e.fileName)){const zr=ar();let En;for(;En=zr.exec(pe);){h.throwIfCancellationRequested();const Ti=3;D.assert(En.length===ue.length+Ti);const Ui=En[1],ya=En.index+Ui.length;if(!o2(_e,ya))continue;let _s;for(let zs=0;zs"("+rt(Ks.text)+")").join("|")+")",_s=/(?:$|\*\/)/.source,Os=/(?:.*?)/.source,zs="("+ya+Os+")",Wo=Ui+zs+_s;return new RegExp(Wo,"gim")}function st(zr){return zr>=97&&zr<=122||zr>=65&&zr<=90||zr>=48&&zr<=57}function Ft(zr){return Qo(zr,"/node_modules/")}}function dt(he,ue,_e){return N(),uV.getRenameInfo(l,O(he),ue,_e||{})}function Q(he,ue,_e,pe,q,rt){const[ar,st]=typeof ue=="number"?[ue,void 0]:[ue.pos,ue.end];return{file:he,startPosition:ar,endPosition:st,program:B(),host:e,formatContext:Q_.getFormatContext(pe,e),cancellationToken:h,preferences:_e,triggerReason:q,kind:rt}}function at(he,ue,_e){return{file:he,program:B(),host:e,span:ue,preferences:_e,cancellationToken:h}}function fr(he,ue){return gie.getSmartSelectionRange(ue,o.getCurrentSourceFile(he))}function Ne(he,ue,_e=j0,pe,q,rt){N();const ar=O(he);return UE.getApplicableRefactors(Q(ar,ue,_e,j0,pe,q),rt)}function $t(he,ue,_e=j0){N();const pe=O(he),q=D.checkDefined(l.getSourceFiles()),rt=y7(he),ar=Mr(q,Ft=>!(l!=null&&l.isSourceFileFromExternalLibrary(pe))&&!(pe===O(Ft.fileName)||rt===".ts"&&y7(Ft.fileName)===".d.ts"||rt===".d.ts"&&Ga(H_(Ft.fileName),"lib.")&&y7(Ft.fileName)===".d.ts")&&rt===y7(Ft.fileName)?Ft.fileName:void 0);return{newFileName:Oee(pe,l,Q(pe,ue,_e,j0),e),files:ar}}function Jt(he,ue,_e,pe,q,rt=j0,ar){N();const st=O(he);return UE.getEditsForRefactor(Q(st,_e,rt,ue),pe,q,ar)}function Pr(he,ue){return ue===0?{line:0,character:0}:E.toLineColumnOffset(he,ue)}function li(he,ue){N();const _e=i8.resolveCallHierarchyDeclaration(l,qm(O(he),ue));return _e&&qhe(_e,pe=>i8.createCallHierarchyItem(l,pe))}function Yn(he,ue){N();const _e=O(he),pe=MK(i8.resolveCallHierarchyDeclaration(l,ue===0?_e:qm(_e,ue)));return pe?i8.getIncomingCalls(l,pe,h):[]}function Jn(he,ue){N();const _e=O(he),pe=MK(i8.resolveCallHierarchyDeclaration(l,ue===0?_e:qm(_e,ue)));return pe?i8.getOutgoingCalls(l,pe):[]}function w(he,ue,_e=j0){N();const pe=O(he);return tie.provideInlayHints(at(pe,ue,_e))}const ge={dispose:z,cleanupSemanticCache:re,getSyntacticDiagnostics:ce,getSemanticDiagnostics:R,getSuggestionDiagnostics:le,getCompilerOptionsDiagnostics:ae,getSyntacticClassifications:an,getSemanticClassifications:Cr,getEncodedSyntacticClassifications:xn,getEncodedSemanticClassifications:Lt,getCompletionsAtPosition:ye,getCompletionEntryDetails:$,getCompletionEntrySymbol:ee,getSignatureHelpItems:wt,getQuickInfoAtPosition:te,getDefinitionAtPosition:we,getDefinitionAndBoundSpan:K,getImplementationAtPosition:Re,getTypeDefinitionAtPosition:Ze,getReferencesAtPosition:Ae,findReferences:He,getFileReferences:je,getDocumentHighlights:Fe,getNameOrDottedNameSpan:Zt,getBreakpointStatementAtPosition:Qe,getNavigateToItems:Pe,getRenameInfo:dt,getSmartSelectionRange:fr,findRenameLocations:Ue,getNavigationBarItems:Mt,getNavigationTree:yr,getOutliningSpans:Lr,getTodoComments:Ge,getBraceMatchingAtPosition:vi,getIndentationAtPosition:ia,getFormattingEditsForRange:Wa,getFormattingEditsForDocument:bi,getFormattingEditsAfterKeystroke:Pt,getDocCommentTemplateAtPosition:Ca,isValidBraceCompletionAtPosition:rn,getJsxClosingTagAtPosition:wr,getLinkedEditingRangeAtPosition:ln,getSpanOfEnclosingComment:Y,getCodeFixesAtPosition:Ar,getCombinedCodeFix:Yt,applyCodeActionCommand:Fn,organizeImports:Qr,getEditsForFileRename:$r,getEmitOutput:nt,getNonBoundSourceFile:xt,getProgram:B,getCurrentProgram:()=>l,getAutoImportProvider:U,updateIsDefinitionOfReferencedSymbols:V,getApplicableRefactors:Ne,getEditsForRefactor:Jt,getMoveToRefactoringFileSuggestions:$t,toLineColumnOffset:Pr,getSourceMapper:()=>E,clearSourceMapperCache:()=>E.clearCache(),prepareCallHierarchy:li,provideCallHierarchyIncomingCalls:Yn,provideCallHierarchyOutgoingCalls:Jn,toggleLineComment:Li,toggleMultilineComment:ot,commentSelection:Tt,uncommentSelection:it,provideInlayHints:w,getSupportedCodeFixes:d2e};switch(s){case 0:break;case 1:ute.forEach(he=>ge[he]=()=>{throw new Error(`LanguageService Operation: ${he} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:C2e.forEach(he=>ge[he]=()=>{throw new Error(`LanguageService Operation: ${he} not allowed in LanguageServiceMode.Syntactic`)});break;default:D.assertNever(s)}return ge}function ste(e){return e.nameTable||TRe(e),e.nameTable}function TRe(e){const t=e.nameTable=new Map;e.forEachChild(function n(i){if(Be(i)&&!WQ(i)&&i.escapedText||a0(i)&&SRe(i)){const s=Zw(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(Ea(i)){const s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(js(i,n),vm(i))for(const s of i.jsDoc)js(s,n)})}function SRe(e){return Gy(e)||e.parent.kind===282||wRe(e)||lN(e)}function fO(e){const t=kRe(e);return t&&(Dc(t.parent)||S3(t.parent))?t:void 0}function kRe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===166)return Zq(e.parent.parent)?e.parent.parent:void 0;case 80:return Zq(e.parent)&&(e.parent.parent.kind===209||e.parent.parent.kind===291)&&e.parent.name===e?e.parent:void 0}}function CRe(e,t){const n=fO(e);if(n){const i=t.getContextualType(n.parent),s=i&&oJ(n,t,i,!1);if(s&&s.length===1)return Fi(s)}return t.getSymbolAtLocation(e)}function oJ(e,t,n,i){const s=MP(e.name);if(!s)return tt;if(!n.isUnion()){const l=n.getProperty(s);return l?[l]:tt}const o=Mr(n.types,l=>(Dc(e.parent)||S3(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(l,e.parent)?void 0:l.getProperty(s));if(i&&(o.length===0||o.length===n.types.length)){const l=n.getProperty(s);if(l)return[l]}return o.length===0?Mr(n.types,l=>l.getProperty(s)):o}function wRe(e){return e&&e.parent&&e.parent.kind===211&&e.parent.argumentExpression===e}function ERe(e){if(Cu)return ta(ga(ec(Cu.getExecutingFilePath())),pL(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var ote,cJ,lJ,h2e,cte,uJ,_J,y2e,v2e,b2e,x2e,T2e,S2e,k2e,lte,ute,C2e,ARe=or({"src/services/services.ts"(){"use strict";Ri(),Jye(),lve(),Th(),lye(),c2e(),ote="0.8",cJ=class{constructor(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){D.assert(!k1(this.pos)&&!k1(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return bn(this)}getStart(e,t){return this.assertHasRealPosition(),s7(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=vRe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=on(t,i=>i.kind<315||i.kind>356);return n.kind<165?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),n=io(t);if(n)return n.kind<165?n:n.getLastToken(e)}forEachChild(e,t){return js(this,e,t)}},lJ=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return bn(this)}getStart(e,t){return s7(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||tt}getFirstToken(){}getLastToken(){}forEachChild(){}},h2e=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Bu(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=tt,!this.declarations&&ih(this)&&this.links.target&&ih(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=uO([t],e)}else this.documentationComment=uO(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(cb(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=uO(Mn(this.declarations,cb),t)),Nr(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if($v(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=uO(Mn(this.declarations,$v),t)),Nr(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=iJ(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(cb(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=iJ(Mn(this.declarations,cb),t)),Nr(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if($v(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=iJ(Mn(this.declarations,$v),t)),Nr(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},cte=class extends lJ{constructor(e,t,n){super(t,n),this.kind=e}},uJ=class extends lJ{constructor(e,t,n){super(t,n),this.kind=80}get text(){return ri(this)}},uJ.prototype.kind=80,_J=class extends lJ{constructor(e,t,n){super(t,n),this.kind=81}get text(){return ri(this)}},_J.prototype.kind=81,y2e=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Mi(this)&3)}isClass(){return!!(Mi(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Mi(this)&4)return this.checker.getTypeArguments(this)}},v2e=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&k9(t.type)){const n=t.type.getConstraint();if(n)return this.checker.getIndexType(n)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=uO(pa(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=iJ(pa(this.declaration),this.checker))}},b2e=class extends cJ{constructor(e,t,n){super(e,t,n),this.kind=311}update(e,t){return lX(this,e,t)}getLineAndCharacterOfPosition(e){return Ql(this,e)}getLineStarts(){return zy(this)}getPositionOfLineAndCharacter(e,t,n){return xq(zy(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let i;t+1>=n.length&&(i=this.getEnd()),i||(i=n[t+1]-1);const s=this.getFullText();return s[i]===` -`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=Pf();return this.forEachChild(s),e;function t(o){const l=i(o);l&&e.add(l,o)}function n(o){let l=e.get(o);return l||e.set(o,l=[]),l}function i(o){const l=yL(o);return l&&(jc(l)&&mi(l.expression)?l.expression.name.text:_u(l)?MP(l):void 0)}function s(o){switch(o.kind){case 261:case 217:case 173:case 172:const l=o,f=i(l);if(f){const m=n(f),y=io(m);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(m[m.length-1]=l):m.push(l)}js(o,s);break;case 262:case 230:case 263:case 264:case 265:case 266:case 270:case 280:case 275:case 272:case 273:case 176:case 177:case 186:t(o),js(o,s);break;case 168:if(!Pi(o,16476))break;case 259:case 207:{const m=o;if(_o(m.name)){js(m.name,s);break}m.initializer&&s(m.initializer)}case 305:case 171:case 170:t(o);break;case 277:const _=o;_.exportClause&&(og(_.exportClause)?Vt(_.exportClause.elements,s):s(_.exportClause.name));break;case 271:const h=o.importClause;h&&(h.name&&t(h.name),h.namedBindings&&(h.namedBindings.kind===273?t(h.namedBindings):Vt(h.namedBindings.elements,s)));break;case 225:Au(o)!==0&&t(o);default:js(o,s)}}}},x2e=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}getLineAndCharacterOfPosition(e){return Ql(this,e)}},T2e=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,i,s,o,l,f,_;const h=this.host.getScriptSnapshot(e);if(!h)throw new Error("Could not find file: '"+e+"'.");const m=TK(e,this.host),y=this.host.getScriptVersion(e);let T;if(this.currentFileName!==e){const k={languageVersion:99,impliedNodeFormat:uP(Sl(e,this.host.getCurrentDirectory(),((i=(n=(t=this.host).getCompilerHost)==null?void 0:n.call(t))==null?void 0:i.getCanonicalFileName)||Gv(this.host)),(_=(f=(l=(o=(s=this.host).getCompilerHost)==null?void 0:o.call(s))==null?void 0:l.getModuleResolutionCache)==null?void 0:f.call(l))==null?void 0:_.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:EN(this.host.getCompilationSettings())};T=sJ(e,h,k,y,!0,m)}else if(this.currentFileVersion!==y){const k=h.getChangeRange(this.currentFileScriptSnapshot);T=ate(this.currentSourceFile,h,y,k)}return T&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=h,this.currentSourceFile=T),this.currentSourceFile}},S2e={isCancellationRequested:Rm,throwIfCancellationRequested:Ho},k2e=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Hi)==null||e.instant(Hi.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new It}},lte=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Tl();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Hi)==null||e.instant(Hi.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new It}},ute=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],C2e=[...ute,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],k_e(xRe())}});function DRe(e,t,n){const i=[];n=cee(n,i);const s=ns(e)?e:[e],o=tP(void 0,void 0,M,n,s,t,!0);return o.diagnostics=Nn(o.diagnostics,i),o}var NRe=or({"src/services/transform.ts"(){"use strict";Ri()}});function fJ(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function IRe(e,t,n,i){let s;i&&(e.log(t),s=Tl());const o=n();if(i){const l=Tl();if(e.log(`${t} completed in ${l-s} msec`),bs(o)){let f=o;f.length>128&&(f=f.substring(0,128)+"..."),e.log(` result.length=${f.length}, result='${JSON.stringify(f)}'`)}}return o}function _te(e,t,n,i){return w2e(e,t,!0,n,i)}function w2e(e,t,n,i,s){try{const o=IRe(e,t,i,s);return n?JSON.stringify({result:o}):o}catch(o){return o instanceof It?JSON.stringify({canceled:!0}):(fJ(e,o),o.description=t,JSON.stringify({error:o}))}}function fte(e,t){return e.map(n=>PRe(n,t))}function PRe(e,t){return{message:Sb(e.messageText,t),start:e.start,length:e.length,category:V6(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function pte(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var pJ,E2e,dte,mte,dJ,A2e,D2e,N2e,I2e,ORe=or({"src/services/shims.ts"(){"use strict";Ri(),pJ=function(){return this}(),E2e=class{constructor(e){this.scriptSnapshotShim=e}getText(e,t){return this.scriptSnapshotShim.getText(e,t)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(e){const t=e,n=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(n===null)return null;const i=JSON.parse(n);return TD(nf(i.span.start,i.span.length),i.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},dte=class{constructor(e){this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(t,n)=>{const i=JSON.parse(this.shimHost.getModuleResolutionsForFile(n));return er(t,s=>{const o=Hd(i,s);return o?{resolvedFileName:o,extension:y7(o),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=t=>this.shimHost.directoryExists(t)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(t,n)=>{const i=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return er(t,s=>Hd(i,bs(s)?s:Cd(s.fileName)))})}log(e){this.loggingEnabled&&this.shimHost.log(e)}trace(e){this.tracingEnabled&&this.shimHost.trace(e)}error(e){this.shimHost.error(e)}getProjectVersion(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1}getCompilationSettings(){const e=this.shimHost.getCompilationSettings();if(e===null||e==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const t=JSON.parse(e);return t.allowNonTsExtensions=!0,t}getScriptFileNames(){const e=this.shimHost.getScriptFileNames();return JSON.parse(e)}getScriptSnapshot(e){const t=this.shimHost.getScriptSnapshot(e);return t&&new E2e(t)}getScriptKind(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0}getScriptVersion(e){return this.shimHost.getScriptVersion(e)}getLocalizedDiagnosticMessages(){const e=this.shimHost.getLocalizedDiagnosticMessages();if(e===null||e==="")return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){const e=this.shimHost.getCancellationToken();return new lte(e)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}getDefaultLibFileName(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))}readDirectory(e,t,n,i,s){const o=m9(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,s))}readFile(e,t){return this.shimHost.readFile(e,t)}fileExists(e){return this.shimHost.fileExists(e)}},mte=class{constructor(e){this.shimHost=e,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=t=>this.shimHost.directoryExists(t):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=t=>this.shimHost.realpath(t):this.realpath=void 0}readDirectory(e,t,n,i,s){const o=m9(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,s))}fileExists(e){return this.shimHost.fileExists(e)}readFile(e){return this.shimHost.readFile(e)}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}},dJ=class{constructor(e){this.factory=e,e.registerShim(this)}dispose(e){this.factory.unregisterShim(this)}},A2e=class extends dJ{constructor(e,t,n){super(e),this.host=t,this.languageService=n,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(e,t){return _te(this.logger,e,t,this.logPerformance)}dispose(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,pJ&&pJ.CollectGarbage&&(pJ.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(e)}refresh(e){this.forwardJSONCall(`refresh(${e})`,()=>null)}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",()=>(this.languageService.cleanupSemanticCache(),null))}realizeDiagnostics(e){const t=wb(this.host,void 0);return fte(e,t)}getSyntacticClassifications(e,t,n){return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${t}, ${n})`,()=>this.languageService.getSyntacticClassifications(e,nf(t,n)))}getSemanticClassifications(e,t,n){return this.forwardJSONCall(`getSemanticClassifications('${e}', ${t}, ${n})`,()=>this.languageService.getSemanticClassifications(e,nf(t,n)))}getEncodedSyntacticClassifications(e,t,n){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${t}, ${n})`,()=>pte(this.languageService.getEncodedSyntacticClassifications(e,nf(t,n))))}getEncodedSemanticClassifications(e,t,n){return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${t}, ${n})`,()=>pte(this.languageService.getEncodedSemanticClassifications(e,nf(t,n))))}getSyntacticDiagnostics(e){return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`,()=>{const t=this.languageService.getSyntacticDiagnostics(e);return this.realizeDiagnostics(t)})}getSemanticDiagnostics(e){return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`,()=>{const t=this.languageService.getSemanticDiagnostics(e);return this.realizeDiagnostics(t)})}getSuggestionDiagnostics(e){return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`,()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e)))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",()=>{const e=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(e)})}getQuickInfoAtPosition(e,t){return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${t})`,()=>this.languageService.getQuickInfoAtPosition(e,t))}getNameOrDottedNameSpan(e,t,n){return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${t}, ${n})`,()=>this.languageService.getNameOrDottedNameSpan(e,t,n))}getBreakpointStatementAtPosition(e,t){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${t})`,()=>this.languageService.getBreakpointStatementAtPosition(e,t))}getSignatureHelpItems(e,t,n){return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${t})`,()=>this.languageService.getSignatureHelpItems(e,t,n))}getDefinitionAtPosition(e,t){return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getDefinitionAtPosition(e,t))}getDefinitionAndBoundSpan(e,t){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${t})`,()=>this.languageService.getDefinitionAndBoundSpan(e,t))}getTypeDefinitionAtPosition(e,t){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getTypeDefinitionAtPosition(e,t))}getImplementationAtPosition(e,t){return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${t})`,()=>this.languageService.getImplementationAtPosition(e,t))}getRenameInfo(e,t,n){return this.forwardJSONCall(`getRenameInfo('${e}', ${t})`,()=>this.languageService.getRenameInfo(e,t,n))}getSmartSelectionRange(e,t){return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${t})`,()=>this.languageService.getSmartSelectionRange(e,t))}findRenameLocations(e,t,n,i,s){return this.forwardJSONCall(`findRenameLocations('${e}', ${t}, ${n}, ${i})`,()=>this.languageService.findRenameLocations(e,t,n,i,s))}getBraceMatchingAtPosition(e,t){return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${t})`,()=>this.languageService.getBraceMatchingAtPosition(e,t))}isValidBraceCompletionAtPosition(e,t,n){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${t}, ${n})`,()=>this.languageService.isValidBraceCompletionAtPosition(e,t,n))}getSpanOfEnclosingComment(e,t,n){return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${t})`,()=>this.languageService.getSpanOfEnclosingComment(e,t,n))}getIndentationAtPosition(e,t,n){return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${t})`,()=>{const i=JSON.parse(n);return this.languageService.getIndentationAtPosition(e,t,i)})}getReferencesAtPosition(e,t){return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${t})`,()=>this.languageService.getReferencesAtPosition(e,t))}findReferences(e,t){return this.forwardJSONCall(`findReferences('${e}', ${t})`,()=>this.languageService.findReferences(e,t))}getFileReferences(e){return this.forwardJSONCall(`getFileReferences('${e})`,()=>this.languageService.getFileReferences(e))}getDocumentHighlights(e,t,n){return this.forwardJSONCall(`getDocumentHighlights('${e}', ${t})`,()=>{const i=this.languageService.getDocumentHighlights(e,t,JSON.parse(n)),s=Cd(kc(e));return Mn(i,o=>Cd(kc(o.fileName))===s)})}getCompletionsAtPosition(e,t,n,i){return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${t}, ${n}, ${i})`,()=>this.languageService.getCompletionsAtPosition(e,t,n,i))}getCompletionEntryDetails(e,t,n,i,s,o,l){return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${t}, '${n}')`,()=>{const f=i===void 0?void 0:JSON.parse(i);return this.languageService.getCompletionEntryDetails(e,t,n,f,s,o,l)})}getFormattingEditsForRange(e,t,n,i){return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${t}, ${n})`,()=>{const s=JSON.parse(i);return this.languageService.getFormattingEditsForRange(e,t,n,s)})}getFormattingEditsForDocument(e,t){return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`,()=>{const n=JSON.parse(t);return this.languageService.getFormattingEditsForDocument(e,n)})}getFormattingEditsAfterKeystroke(e,t,n,i){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${t}, '${n}')`,()=>{const s=JSON.parse(i);return this.languageService.getFormattingEditsAfterKeystroke(e,t,n,s)})}getDocCommentTemplateAtPosition(e,t,n,i){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${t})`,()=>this.languageService.getDocCommentTemplateAtPosition(e,t,n,i))}getNavigateToItems(e,t,n){return this.forwardJSONCall(`getNavigateToItems('${e}', ${t}, ${n})`,()=>this.languageService.getNavigateToItems(e,t,n))}getNavigationBarItems(e){return this.forwardJSONCall(`getNavigationBarItems('${e}')`,()=>this.languageService.getNavigationBarItems(e))}getNavigationTree(e){return this.forwardJSONCall(`getNavigationTree('${e}')`,()=>this.languageService.getNavigationTree(e))}getOutliningSpans(e){return this.forwardJSONCall(`getOutliningSpans('${e}')`,()=>this.languageService.getOutliningSpans(e))}getTodoComments(e,t){return this.forwardJSONCall(`getTodoComments('${e}')`,()=>this.languageService.getTodoComments(e,JSON.parse(t)))}prepareCallHierarchy(e,t){return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${t})`,()=>this.languageService.prepareCallHierarchy(e,t))}provideCallHierarchyIncomingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyIncomingCalls(e,t))}provideCallHierarchyOutgoingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyOutgoingCalls(e,t))}provideInlayHints(e,t,n){return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(t)}', ${JSON.stringify(n)})`,()=>this.languageService.provideInlayHints(e,t,n))}getEmitOutput(e){return this.forwardJSONCall(`getEmitOutput('${e}')`,()=>{const i=this.languageService.getEmitOutput(e),{diagnostics:t}=i,n=_q(i,["diagnostics"]);return Xs(fa({},n),{diagnostics:this.realizeDiagnostics(t)})})}getEmitOutputObject(e){return w2e(this.logger,`getEmitOutput('${e}')`,!1,()=>this.languageService.getEmitOutput(e),this.logPerformance)}toggleLineComment(e,t){return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleLineComment(e,t))}toggleMultilineComment(e,t){return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleMultilineComment(e,t))}commentSelection(e,t){return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.commentSelection(e,t))}uncommentSelection(e,t){return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.uncommentSelection(e,t))}},D2e=class extends dJ{constructor(e,t){super(e),this.logger=t,this.logPerformance=!1,this.classifier=rye()}getEncodedLexicalClassifications(e,t,n=!1){return _te(this.logger,"getEncodedLexicalClassifications",()=>pte(this.classifier.getEncodedLexicalClassifications(e,t,n)),this.logPerformance)}getClassificationsForLine(e,t,n=!1){const i=this.classifier.getClassificationsForLine(e,t,n);let s="";for(const o of i.entries)s+=o.length+` -`,s+=o.classification+` -`;return s+=i.finalLexState,s}},N2e=class extends dJ{constructor(e,t,n){super(e),this.logger=t,this.host=n,this.logPerformance=!1}forwardJSONCall(e,t){return _te(this.logger,e,t,this.logPerformance)}resolveModuleName(e,t,n){return this.forwardJSONCall(`resolveModuleName('${e}')`,()=>{const i=JSON.parse(n),s=rE(t,kc(e),i,this.host);let o=s.resolvedModule?s.resolvedModule.resolvedFileName:void 0;return s.resolvedModule&&s.resolvedModule.extension!==".ts"&&s.resolvedModule.extension!==".tsx"&&s.resolvedModule.extension!==".d.ts"&&(o=void 0),{resolvedFileName:o,failedLookupLocations:s.failedLookupLocations,affectingLocations:s.affectingLocations}})}resolveTypeReferenceDirective(e,t,n){return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`,()=>{const i=JSON.parse(n),s=WX(t,kc(e),i,this.host);return{resolvedFileName:s.resolvedTypeReferenceDirective?s.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:s.resolvedTypeReferenceDirective?s.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:s.failedLookupLocations}})}getPreProcessedFileInfo(e,t){return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`,()=>{const n=wye(Hj(t),!0,!0);return{referencedFiles:this.convertFileReferences(n.referencedFiles),importedFiles:this.convertFileReferences(n.importedFiles),ambientExternalModules:n.ambientExternalModules,isLibFile:n.isLibFile,typeReferenceDirectives:this.convertFileReferences(n.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(n.libReferenceDirectives)}})}getAutomaticTypeDirectiveNames(e){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`,()=>{const t=JSON.parse(e);return SB(t,this.host)})}convertFileReferences(e){if(!e)return;const t=[];for(const n of e)t.push({path:kc(n.fileName),position:n.pos,length:n.end-n.pos});return t}getTSConfigFileInfo(e,t){return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`,()=>{const n=CI(e,Hj(t)),i=kc(e),s=NI(n,this.host,ga(i),{},i);return{options:s.options,typeAcquisition:s.typeAcquisition,files:s.fileNames,raw:s.raw,errors:fte([...n.parseDiagnostics,...s.errors],`\r -`)}})}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",()=>aJ())}discoverTypings(e){const t=N_(!1);return this.forwardJSONCall("discoverTypings()",()=>{const n=JSON.parse(e);return this.safeList===void 0&&(this.safeList=z7.loadSafeList(this.host,Sl(n.safeListPath,n.safeListPath,t))),z7.discoverTypings(this.host,i=>this.logger.log(i),n.fileNames,Sl(n.projectRootPath,n.projectRootPath,t),this.safeList,n.packageNameToTypingLocation,n.typeAcquisition,n.unresolvedImports,n.typesRegistry,j0)})}},I2e=class{constructor(){this._shims=[]}getServicesVersion(){return ote}createLanguageServiceShim(e){try{this.documentRegistry===void 0&&(this.documentRegistry=GK(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));const t=new dte(e),n=g2e(t,this.documentRegistry,!1);return new A2e(this,e,n)}catch(t){throw fJ(e,t),t}}createClassifierShim(e){try{return new D2e(this,e)}catch(t){throw fJ(e,t),t}}createCoreServicesShim(e){try{const t=new mte(e);return new N2e(this,e,t)}catch(t){throw fJ(e,t),t}}close(){vu(this._shims),this.documentRegistry=void 0}registerShim(e){this._shims.push(e)}unregisterShim(e){for(let t=0;ti){const y=j_(n.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;n=y}if(n.flags&16777216)return;return m(n);function s(y,T){const k=jS(y)?rl(y.modifiers,lp):void 0,E=k?tc(e.text,k.end):y.getStart(e);return L_(E,(T||y).getEnd())}function o(y,T){return s(y,V7(T,T.parent,e))}function l(y,T){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?m(y):m(T)}function f(y,T,k){if(y){const E=y.indexOf(T);if(E>=0){let O=E,N=E+1;for(;O>0&&k(y[O-1]);)O--;for(;N0)return m(Ze.declarations[0])}else return m(K.initializer)}function z(K){if(K.initializer)return re(K);if(K.condition)return s(K.condition);if(K.incrementor)return s(K.incrementor)}function ce(K){const Ze=Vt(K.elements,Re=>Re.kind!==231?Re:void 0);return Ze?m(Ze):K.parent.kind===207?s(K.parent):T(K.parent)}function R(K){D.assert(K.kind!==206&&K.kind!==205);const Ze=K.kind===208?K.elements:K.properties,Re=Vt(Ze,Fe=>Fe.kind!==231?Fe:void 0);return Re?m(Re):s(K.parent.kind===225?K.parent:K)}function le(K){switch(K.parent.kind){case 265:const Ze=K.parent;return l(j_(K.pos,e,K.parent),Ze.members.length?Ze.members[0]:Ze.getLastToken(e));case 262:const Re=K.parent;return l(j_(K.pos,e,K.parent),Re.members.length?Re.members[0]:Re.getLastToken(e));case 268:return l(K.parent.parent,K.parent.clauses[0])}return m(K.parent)}function ae(K){switch(K.parent.kind){case 267:if(tv(K.parent.parent)!==1)return;case 265:case 262:return s(K);case 240:if(a3(K.parent))return s(K);case 298:return m(io(K.parent.statements));case 268:const Ze=K.parent,Re=io(Ze.clauses);return Re?m(io(Re.statements)):void 0;case 205:const Fe=K.parent;return m(io(Fe.elements)||Fe);default:if(c2(K.parent)){const Ue=K.parent;return s(io(Ue.properties)||Ue)}return m(K.parent)}}function ye(K){switch(K.parent.kind){case 206:const Ze=K.parent;return s(io(Ze.elements)||Ze);default:if(c2(K.parent)){const Re=K.parent;return s(io(Re.elements)||Re)}return m(K.parent)}}function $(K){return K.parent.kind===245||K.parent.kind===212||K.parent.kind===213?_(K):K.parent.kind===216?h(K):m(K.parent)}function ee(K){switch(K.parent.kind){case 217:case 261:case 218:case 173:case 172:case 176:case 177:case 175:case 246:case 245:case 247:case 249:case 212:case 213:case 216:return _(K);default:return m(K.parent)}}function te(K){return Qs(K.parent)||K.parent.kind===302||K.parent.kind===168?_(K):m(K.parent)}function me(K){return K.parent.kind===215?h(K):m(K.parent)}function ve(K){return K.parent.kind===245?o(K,K.parent.expression):m(K.parent)}function we(K){return K.parent.kind===249?h(K):m(K.parent)}}}var LRe=or({"src/services/breakpoints.ts"(){"use strict";Ri()}}),gte={};Dl(gte,{spanInSourceFileAtLocation:()=>MRe});var FRe=or({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";LRe()}});function RRe(e){return(_l(e)||Mp(e))&&sp(e)}function VE(e){return(_l(e)||Fl(e)||Mp(e))&&Fa(e.parent)&&e===e.parent.initializer&&Be(e.parent.name)&&!!(b1(e.parent)&2)}function P2e(e){return Ja(e)||Vu(e)||B_(e)||_l(e)||cf(e)||Mp(e)||fu(e)||g_(e)||ly(e)||sg(e)||u0(e)}function n8(e){return Ja(e)||Vu(e)&&Be(e.name)||B_(e)||cf(e)||fu(e)||g_(e)||ly(e)||sg(e)||u0(e)||RRe(e)||VE(e)}function O2e(e){return Ja(e)?e:sp(e)?e.name:VE(e)?e.parent.name:D.checkDefined(e.modifiers&&on(e.modifiers,M2e))}function M2e(e){return e.kind===90}function L2e(e,t){const n=O2e(t);return n&&e.getSymbolAtLocation(n)}function BRe(e,t){if(Ja(t))return{text:t.fileName,pos:0,end:0};if((B_(t)||cf(t))&&!sp(t)){const s=t.modifiers&&on(t.modifiers,M2e);if(s)return{text:"default",pos:s.getStart(),end:s.getEnd()}}if(fu(t)){const s=t.getSourceFile(),o=tc(s.text,S1(t).pos),l=o+6,f=e.getTypeChecker(),_=f.getSymbolAtLocation(t.parent);return{text:`${_?`${f.symbolToString(_,t.parent)} `:""}static {}`,pos:o,end:l}}const n=VE(t)?t.parent.name:D.checkDefined(Es(t),"Expected call hierarchy item to have a name");let i=Be(n)?ri(n):a0(n)?n.text:jc(n)&&a0(n.expression)?n.expression.text:void 0;if(i===void 0){const s=e.getTypeChecker(),o=s.getSymbolAtLocation(n);o&&(i=s.symbolToString(o,t))}if(i===void 0){const s=iP();i=Rw(o=>s.writeNode(4,t,t.getSourceFile(),o))}return{text:i,pos:n.getStart(),end:n.getEnd()}}function jRe(e){var t,n;if(VE(e))return C1(e.parent.parent.parent.parent)&&Be(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 176:case 177:case 173:return e.parent.kind===209?(t=Aq(e.parent))==null?void 0:t.getText():(n=Es(e.parent))==null?void 0:n.getText();case 261:case 262:case 266:if(C1(e.parent)&&Be(e.parent.parent.name))return e.parent.parent.name.getText()}}function F2e(e,t){if(t.body)return t;if(Uu(t))return ay(t.parent);if(B_(t)||g_(t)){const n=L2e(e,t);return n&&n.valueDeclaration&&Jl(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function R2e(e,t){const n=L2e(e,t);let i;if(n&&n.declarations){const s=rc(n.declarations),o=er(n.declarations,_=>({file:_.getSourceFile().fileName,pos:_.pos}));s.sort((_,h)=>tn(o[_].file,o[h].file)||o[_].pos-o[h].pos);const l=er(s,_=>n.declarations[_]);let f;for(const _ of l)n8(_)&&((!f||f.parent!==_.parent||f.end!==_.pos)&&(i=Ht(i,_)),f=_)}return i}function mJ(e,t){var n,i,s;return fu(t)?t:Jl(t)?(i=(n=F2e(e,t))!=null?n:R2e(e,t))!=null?i:t:(s=R2e(e,t))!=null?s:t}function B2e(e,t){const n=e.getTypeChecker();let i=!1;for(;;){if(n8(t))return mJ(n,t);if(P2e(t)){const s=Sn(t,n8);return s&&mJ(n,s)}if(Gy(t)){if(n8(t.parent))return mJ(n,t.parent);if(P2e(t.parent)){const s=Sn(t.parent,n8);return s&&mJ(n,s)}return Fa(t.parent)&&t.parent.initializer&&VE(t.parent.initializer)?t.parent.initializer:void 0}if(Uu(t))return n8(t.parent)?t.parent:void 0;if(t.kind===126&&fu(t.parent)){t=t.parent;continue}if(Fa(t)&&t.initializer&&VE(t.initializer))return t.initializer;if(!i){let s=n.getSymbolAtLocation(t);if(s&&(s.flags&2097152&&(s=n.getAliasedSymbol(s)),s.valueDeclaration)){i=!0,t=s.valueDeclaration;continue}}return}}function hte(e,t){const n=t.getSourceFile(),i=BRe(e,t),s=jRe(t),o=L3(t),l=bE(t),f=L_(tc(n.text,t.getFullStart(),!1,!0),t.getEnd()),_=L_(i.pos,i.end);return{file:n.fileName,kind:o,kindModifiers:l,name:i.text,containerName:s,span:f,selectionSpan:_}}function zRe(e){return e!==void 0}function JRe(e){if(e.kind===tu.EntryKind.Node){const{node:t}=e;if(JQ(t,!0,!0)||$1e(t,!0,!0)||H1e(t,!0,!0)||G1e(t,!0,!0)||eC(t)||qQ(t)){const n=t.getSourceFile();return{declaration:Sn(t,n8)||n,range:cK(t,n)}}}}function j2e(e){return Nc(e.declaration)}function URe(e,t){return{from:e,fromSpans:t}}function VRe(e,t){return URe(hte(e,t[0].declaration),er(t,n=>Cb(n.range)))}function WRe(e,t,n){if(Ja(t)||Vu(t)||fu(t))return[];const i=O2e(t),s=Mn(tu.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),i,0,{use:tu.FindReferencesUse.References},JRe),zRe);return s?V1(s,j2e,o=>VRe(e,o)):[]}function qRe(e,t){function n(s){const o=T7(s)?s.tag:$p(s)?s.tagName:$l(s)||fu(s)?s:s.expression,l=B2e(e,o);if(l){const f=cK(o,s.getSourceFile());if(ns(l))for(const _ of l)t.push({declaration:_,range:f});else t.push({declaration:l,range:f})}}function i(s){if(s&&!(s.flags&16777216)){if(n8(s)){if(Yi(s))for(const o of s.members)o.name&&jc(o.name)&&i(o.name.expression);return}switch(s.kind){case 80:case 270:case 271:case 277:case 263:case 264:return;case 174:n(s);return;case 215:case 233:i(s.expression);return;case 259:case 168:i(s.name),i(s.initializer);return;case 212:n(s),i(s.expression),Vt(s.arguments,i);return;case 213:n(s),i(s.expression),Vt(s.arguments,i);return;case 214:n(s),i(s.tag),i(s.template);return;case 285:case 284:n(s),i(s.tagName),i(s.attributes);return;case 169:n(s),i(s.expression);return;case 210:case 211:n(s),js(s,i);break;case 237:i(s.expression);return}ry(s)||js(s,i)}}return i}function $Re(e,t){Vt(e.statements,t)}function HRe(e,t){!Pi(e,2)&&e.body&&C1(e.body)&&Vt(e.body.statements,t)}function GRe(e,t,n){const i=F2e(e,t);i&&(Vt(i.parameters,n),n(i.body))}function XRe(e,t){t(e.body)}function ZRe(e,t){Vt(e.modifiers,t);const n=l3(e);n&&t(n.expression);for(const i of e.members)lg(i)&&Vt(i.modifiers,t),fo(i)?t(i.initializer):Uu(i)&&i.body?(Vt(i.parameters,t),t(i.body)):fu(i)&&t(i)}function YRe(e,t){const n=[],i=qRe(e,n);switch(t.kind){case 311:$Re(t,i);break;case 266:HRe(t,i);break;case 261:case 217:case 218:case 173:case 176:case 177:GRe(e.getTypeChecker(),t,i);break;case 262:case 230:ZRe(t,i);break;case 174:XRe(t,i);break;default:D.assertNever(t)}return n}function QRe(e,t){return{to:e,fromSpans:t}}function KRe(e,t){return QRe(hte(e,t[0].declaration),er(t,n=>Cb(n.range)))}function eBe(e,t){return t.flags&16777216||ly(t)?[]:V1(YRe(e,t),j2e,n=>KRe(e,n))}var tBe=or({"src/services/callHierarchy.ts"(){"use strict";Ri()}}),i8={};Dl(i8,{createCallHierarchyItem:()=>hte,getIncomingCalls:()=>WRe,getOutgoingCalls:()=>eBe,resolveCallHierarchyDeclaration:()=>B2e});var rBe=or({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";tBe()}}),z2e={};Dl(z2e,{TokenEncodingConsts:()=>tte,TokenModifier:()=>nte,TokenType:()=>rte,getEncodedSemanticClassifications:()=>ete,getSemanticClassifications:()=>a2e});var nBe=or({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";c2e()}}),J2e={};Dl(J2e,{v2020:()=>z2e});var iBe=or({"src/services/_namespaces/ts.classifier.ts"(){"use strict";nBe()}});function Wg(e,t,n){return vte(e,YS(n),t,void 0,void 0)}function po(e,t,n,i,s,o){return vte(e,YS(n),t,i,YS(s),o)}function yte(e,t,n,i,s,o){return vte(e,YS(n),t,i,s&&YS(s),o)}function vte(e,t,n,i,s,o){return{fixName:e,description:t,changes:n,fixId:i,fixAllDescription:s,commands:o?[o]:void 0}}function Po(e){for(const t of e.errorCodes)pO=void 0,gJ.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)D.assert(!hJ.has(t)),hJ.set(t,e)}function aBe(){return pO!=null?pO:pO=zt(gJ.keys())}function sBe(e,t){const{errorCodes:n}=e;let i=0;for(const o of t)if(Zn(n,o.code)&&i++,i>1)break;const s=i<2;return _=>{var h=_,{fixId:o,fixAllDescription:l}=h,f=_q(h,["fixId","fixAllDescription"]);return s?f:Xs(fa({},f),{fixId:o,fixAllDescription:l})}}function oBe(e){const t=V2e(e),n=gJ.get(String(e.errorCode));return lo(n,i=>er(i.getCodeActions(e),sBe(i,t)))}function cBe(e){return hJ.get(Ws(e.fixId,bs)).getAllCodeActions(e)}function a8(e,t){return{changes:e,commands:t}}function U2e(e,t){return{fileName:e,textChanges:t}}function qc(e,t,n){const i=[],s=Vn.ChangeTracker.with(e,o=>s8(e,t,l=>n(o,l,i)));return a8(s,i.length===0?void 0:i)}function s8(e,t,n){for(const i of V2e(e))Zn(t,i.code)&&n(i)}function V2e({program:e,sourceFile:t,cancellationToken:n}){return[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...iee(t,e,n)]}var gJ,hJ,pO,lBe=or({"src/services/codeFixProvider.ts"(){"use strict";Ri(),gJ=Pf(),hJ=new Map}});function W2e(e,t,n){const i=sI(n)?M.createAsExpression(n.expression,M.createKeywordTypeNode(159)):M.createTypeAssertion(M.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,i)}function q2e(e,t){if(!jn(e))return Sn(Za(e,t),n=>sI(n)||Yfe(n))}var yJ,bte,uBe=or({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";Ri(),Fo(),yJ="addConvertToUnknownForNonOverlappingTypes",bte=[p.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],Po({errorCodes:bte,getCodeActions:function(t){const n=q2e(t.sourceFile,t.span.start);if(n===void 0)return;const i=Vn.ChangeTracker.with(t,s=>W2e(s,t.sourceFile,n));return[po(yJ,i,p.Add_unknown_conversion_for_non_overlapping_types,yJ,p.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[yJ],getAllCodeActions:e=>qc(e,bte,(t,n)=>{const i=q2e(n.file,n.start);i&&W2e(t,n.file,i)})})}}),_Be=or({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";Ri(),Fo(),Po({errorCodes:[p.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,p.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){const{sourceFile:n}=t,i=Vn.ChangeTracker.with(t,s=>{const o=M.createExportDeclaration(void 0,!1,M.createNamedExports([]),void 0);s.insertNodeAtEndOfScope(n,n,o)});return[Wg("addEmptyExportDeclaration",i,p.Add_export_to_make_this_file_into_a_module)]}})}});function $2e(e,t,n,i){const s=n(o=>fBe(o,e.sourceFile,t,i));return po(vJ,s,p.Add_async_modifier_to_containing_function,vJ,p.Add_all_missing_async_modifiers)}function fBe(e,t,n,i){if(i&&i.has(Nc(n)))return;i==null||i.add(Nc(n));const s=M.updateModifiers(Vl(n,!0),M.createNodeArray(M.createModifiersFromModifierFlags(pb(n)|512)));e.replaceNode(t,n,s)}function H2e(e,t){if(!t)return;const n=Za(e,t.start);return Sn(n,s=>s.getStart(e)qf(t)?"quit":(Fl(s)||g_(s)||_l(s)||B_(s))&&nC(t,Zp(s,e)))}function pBe(e,t){return({start:n,length:i,relatedInformation:s,code:o})=>Gd(n)&&Gd(i)&&nC({start:n,length:i},e)&&o===t&&!!s&&bt(s,l=>l.code===p.Did_you_mean_to_mark_this_function_as_async.code)}var vJ,xte,dBe=or({"src/services/codefixes/addMissingAsync.ts"(){"use strict";Ri(),Fo(),vJ="addMissingAsync",xte=[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_comparable_to_type_1.code],Po({fixIds:[vJ],errorCodes:xte,getCodeActions:function(t){const{sourceFile:n,errorCode:i,cancellationToken:s,program:o,span:l}=t,f=on(o.getTypeChecker().getDiagnostics(n,s),pBe(l,i)),_=f&&f.relatedInformation&&on(f.relatedInformation,y=>y.code===p.Did_you_mean_to_mark_this_function_as_async.code),h=H2e(n,_);return h?[$2e(t,h,y=>Vn.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return qc(e,xte,(i,s)=>{const o=s.relatedInformation&&on(s.relatedInformation,_=>_.code===p.Did_you_mean_to_mark_this_function_as_async.code),l=H2e(t,o);return l?$2e(e,l,_=>(_(i),[]),n):void 0})}})}});function G2e(e,t,n,i,s){const o=OK(e,n);return o&&mBe(e,t,n,i,s)&&Y2e(o)?o:void 0}function X2e(e,t,n,i,s,o){const{sourceFile:l,program:f,cancellationToken:_}=e,h=gBe(t,l,_,f,i);if(h){const m=s(y=>{Vt(h.initializers,({expression:T})=>Tte(y,n,l,i,T,o)),o&&h.needsSecondPassForFixAll&&Tte(y,n,l,i,t,o)});return Wg("addMissingAwaitToInitializer",m,h.initializers.length===1?[p.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:p.Add_await_to_initializers)}}function Z2e(e,t,n,i,s,o){const l=s(f=>Tte(f,n,e.sourceFile,i,t,o));return po(bJ,l,p.Add_await,bJ,p.Fix_all_expressions_possibly_missing_await)}function mBe(e,t,n,i,s){const l=s.getTypeChecker().getDiagnostics(e,i);return bt(l,({start:f,length:_,relatedInformation:h,code:m})=>Gd(f)&&Gd(_)&&nC({start:f,length:_},n)&&m===t&&!!h&&bt(h,y=>y.code===p.Did_you_forget_to_use_await.code))}function gBe(e,t,n,i,s){const o=hBe(e,s);if(!o)return;let l=o.isCompleteFix,f;for(const _ of o.identifiers){const h=s.getSymbolAtLocation(_);if(!h)continue;const m=di(h.valueDeclaration,Fa),y=m&&di(m.name,Be),T=I4(m,242);if(!m||!T||m.type||!m.initializer||T.getSourceFile()!==t||Pi(T,1)||!y||!Y2e(m.initializer)){l=!1;continue}const k=i.getSemanticDiagnostics(t,n);if(tu.Core.eachSymbolReferenceInFile(y,s,t,O=>_!==O&&!yBe(O,k,t,s))){l=!1;continue}(f||(f=[])).push({expression:m.initializer,declarationSymbol:h})}return f&&{initializers:f,needsSecondPassForFixAll:!l}}function hBe(e,t){if(mi(e.parent)&&Be(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Be(e))return{identifiers:[e],isCompleteFix:!0};if(Un(e)){let n,i=!0;for(const s of[e.left,e.right]){const o=t.getTypeAtLocation(s);if(t.getPromisedTypeOfPromise(o)){if(!Be(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}function yBe(e,t,n,i){const s=mi(e.parent)?e.parent.name:Un(e.parent)?e.parent:e,o=on(t,l=>l.start===s.getStart(n)&&l.start+l.length===s.getEnd());return o&&Zn(xJ,o.code)||i.getTypeAtLocation(s).flags&1}function Y2e(e){return e.kind&32768||!!Sn(e,t=>t.parent&&Fl(t.parent)&&t.parent.body===t||oo(t)&&(t.parent.kind===261||t.parent.kind===217||t.parent.kind===218||t.parent.kind===173))}function Tte(e,t,n,i,s,o){if(oI(s.parent)&&!s.parent.awaitModifier){const l=i.getTypeAtLocation(s),f=i.getAsyncIterableType();if(f&&i.isTypeAssignableTo(l,f)){const _=s.parent;e.replaceNode(n,_,M.updateForOfStatement(_,M.createToken(135),_.initializer,_.expression,_.statement));return}}if(Un(s))for(const l of[s.left,s.right]){if(o&&Be(l)){const h=i.getSymbolAtLocation(l);if(h&&o.has(oc(h)))continue}const f=i.getTypeAtLocation(l),_=i.getPromisedTypeOfPromise(f)?M.createAwaitExpression(l):l;e.replaceNode(n,l,_)}else if(t===Ste&&mi(s.parent)){if(o&&Be(s.parent.expression)){const l=i.getSymbolAtLocation(s.parent.expression);if(l&&o.has(oc(l)))return}e.replaceNode(n,s.parent.expression,M.createParenthesizedExpression(M.createAwaitExpression(s.parent.expression))),Q2e(e,s.parent.expression,n)}else if(Zn(kte,t)&&ey(s.parent)){if(o&&Be(s)){const l=i.getSymbolAtLocation(s);if(l&&o.has(oc(l)))return}e.replaceNode(n,s,M.createParenthesizedExpression(M.createAwaitExpression(s))),Q2e(e,s,n)}else{if(o&&Fa(s.parent)&&Be(s.parent.name)){const l=i.getSymbolAtLocation(s.parent.name);if(l&&!bu(o,oc(l)))return}e.replaceNode(n,s,M.createAwaitExpression(s))}}function Q2e(e,t,n){const i=j_(t.pos,n);i&&az(i.end,i.parent,n)&&e.insertText(n,t.getStart(n),";")}var bJ,Ste,kte,xJ,vBe=or({"src/services/codefixes/addMissingAwait.ts"(){"use strict";Ri(),Fo(),bJ="addMissingAwait",Ste=p.Property_0_does_not_exist_on_type_1.code,kte=[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],xJ=[p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.Operator_0_cannot_be_applied_to_type_1.code,p.Operator_0_cannot_be_applied_to_types_1_and_2.code,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,p.This_condition_will_always_return_true_since_this_0_is_always_defined.code,p.Type_0_is_not_an_array_type.code,p.Type_0_is_not_an_array_type_or_a_string_type.code,p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Ste,...kte],Po({fixIds:[bJ],errorCodes:xJ,getCodeActions:function(t){const{sourceFile:n,errorCode:i,span:s,cancellationToken:o,program:l}=t,f=G2e(n,i,s,o,l);if(!f)return;const _=t.program.getTypeChecker(),h=m=>Vn.ChangeTracker.with(t,m);return Ma([X2e(t,f,i,_,h),Z2e(t,f,i,_,h)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:i}=e,s=e.program.getTypeChecker(),o=new Set;return qc(e,xJ,(l,f)=>{const _=G2e(t,f.code,f,i,n);if(!_)return;const h=m=>(m(l),[]);return X2e(e,_,f.code,s,h,o)||Z2e(e,_,f.code,s,h,o)})}})}});function K2e(e,t,n,i,s){const o=Za(t,n),l=Sn(o,h=>L5(h.parent)?h.parent.initializer===h:bBe(h)?!1:"quit");if(l)return TJ(e,l,t,s);const f=o.parent;if(Un(f)&&f.operatorToken.kind===64&&$f(f.parent))return TJ(e,o,t,s);if(Op(f)){const h=i.getTypeChecker();return yn(f.elements,m=>xBe(m,h))?TJ(e,f,t,s):void 0}const _=Sn(o,h=>$f(h.parent)?!0:TBe(h)?!1:"quit");if(_){const h=i.getTypeChecker();return ebe(_,h)?TJ(e,_,t,s):void 0}}function TJ(e,t,n,i){(!i||bu(i,t))&&e.insertModifierBefore(n,87,t)}function bBe(e){switch(e.kind){case 80:case 208:case 209:case 302:case 303:return!0;default:return!1}}function xBe(e,t){const n=Be(e)?e:Hp(e,!0)&&Be(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}function TBe(e){switch(e.kind){case 80:case 225:case 28:return!0;default:return!1}}function ebe(e,t){return Un(e)?e.operatorToken.kind===28?yn([e.left,e.right],n=>ebe(n,t)):e.operatorToken.kind===64&&Be(e.left)&&!t.getSymbolAtLocation(e.left):!1}var SJ,Cte,SBe=or({"src/services/codefixes/addMissingConst.ts"(){"use strict";Ri(),Fo(),SJ="addMissingConst",Cte=[p.Cannot_find_name_0.code,p.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Po({errorCodes:Cte,getCodeActions:function(t){const n=Vn.ChangeTracker.with(t,i=>K2e(i,t.sourceFile,t.span.start,t.program));if(n.length>0)return[po(SJ,n,p.Add_const_to_unresolved_variable,SJ,p.Add_const_to_all_unresolved_variables)]},fixIds:[SJ],getAllCodeActions:e=>{const t=new Set;return qc(e,Cte,(n,i)=>K2e(n,i.file,i.start,e.program,t))}})}});function tbe(e,t,n,i){const s=Za(t,n);if(!Be(s))return;const o=s.parent;o.kind===171&&(!i||bu(i,o))&&e.insertModifierBefore(t,138,o)}var kJ,wte,kBe=or({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";Ri(),Fo(),kJ="addMissingDeclareProperty",wte=[p.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],Po({errorCodes:wte,getCodeActions:function(t){const n=Vn.ChangeTracker.with(t,i=>tbe(i,t.sourceFile,t.span.start));if(n.length>0)return[po(kJ,n,p.Prefix_with_declare,kJ,p.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[kJ],getAllCodeActions:e=>{const t=new Set;return qc(e,wte,(n,i)=>tbe(n,i.file,i.start,t))}})}});function rbe(e,t,n){const i=Za(t,n),s=Sn(i,lp);D.assert(!!s,"Expected position to be owned by a decorator.");const o=M.createCallExpression(s.expression,void 0,void 0);e.replaceNode(t,s.expression,o)}var CJ,Ete,CBe=or({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";Ri(),Fo(),CJ="addMissingInvocationForDecorator",Ete=[p._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Po({errorCodes:Ete,getCodeActions:function(t){const n=Vn.ChangeTracker.with(t,i=>rbe(i,t.sourceFile,t.span.start));return[po(CJ,n,p.Call_decorator_expression,CJ,p.Add_to_all_uncalled_decorators)]},fixIds:[CJ],getAllCodeActions:e=>qc(e,Ete,(t,n)=>rbe(t,n.file,n.start))})}});function nbe(e,t,n){const i=Za(t,n),s=i.parent;if(!Cs(s))return D.fail("Tried to add a parameter name to a non-parameter: "+D.formatSyntaxKind(i.kind));const o=s.parent.parameters.indexOf(s);D.assert(!s.type,"Tried to add a parameter name to a parameter that already had one."),D.assert(o>-1,"Parameter not found in parent parameter list.");const l=M.createTypeReferenceNode(s.name,void 0),f=M.createParameterDeclaration(s.modifiers,s.dotDotDotToken,"arg"+o,s.questionToken,s.dotDotDotToken?M.createArrayTypeNode(l):l,s.initializer);e.replaceNode(t,s,f)}var wJ,Ate,wBe=or({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";Ri(),Fo(),wJ="addNameToNamelessParameter",Ate=[p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Po({errorCodes:Ate,getCodeActions:function(t){const n=Vn.ChangeTracker.with(t,i=>nbe(i,t.sourceFile,t.span.start));return[po(wJ,n,p.Add_parameter_name,wJ,p.Add_names_to_all_parameters_without_names)]},fixIds:[wJ],getAllCodeActions:e=>qc(e,Ate,(t,n)=>nbe(t,n.file,n.start))})}});function EBe(e,t,n){var i,s;const o=ibe(OK(e,t),n);if(!o)return tt;const{source:l,target:f}=o,_=ABe(l,f,n)?n.getTypeAtLocation(f.expression):n.getTypeAtLocation(f);return(s=(i=_.symbol)==null?void 0:i.declarations)!=null&&s.some(h=>bn(h).fileName.match(/\.d\.ts$/))?tt:n.getExactOptionalProperties(_)}function ABe(e,t,n){return mi(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}function ibe(e,t){var n;if(e){if(Un(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Fa(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(go(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!KT(i.valueDeclaration.kind)||!ht(e))return;const s=e.parent.arguments.indexOf(e);if(s===-1)return;const o=i.valueDeclaration.parameters[s].name;if(Be(o))return{source:e,target:o}}else if(Y_(e.parent)&&Be(e.parent.name)||_0(e.parent)){const i=ibe(e.parent.parent,t);if(!i)return;const s=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),o=(n=s==null?void 0:s.declarations)==null?void 0:n[0];return o?{source:Y_(e.parent)?e.parent.initializer:e.parent.name,target:o}:void 0}}else return}function DBe(e,t){for(const n of t){const i=n.valueDeclaration;if(i&&(Vm(i)||fo(i))&&i.type){const s=M.createUnionTypeNode([...i.type.kind===191?i.type.types:[i.type],M.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,s)}}}var Dte,abe,NBe=or({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";Ri(),Fo(),Dte="addOptionalPropertyUndefined",abe=[p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],Po({errorCodes:abe,getCodeActions(e){const t=e.program.getTypeChecker(),n=EBe(e.sourceFile,e.span,t);if(!n.length)return;const i=Vn.ChangeTracker.with(e,s=>DBe(s,n));return[Wg(Dte,i,p.Add_undefined_to_optional_property_type)]},fixIds:[Dte]})}});function sbe(e,t){const n=Za(e,t);return di(Cs(n.parent)?n.parent.parent:n.parent,obe)}function obe(e){return IBe(e)&&cbe(e)}function cbe(e){return Jl(e)?e.parameters.some(cbe)||!e.type&&!!kD(e):!e.type&&!!ib(e)}function lbe(e,t,n){if(Jl(n)&&(kD(n)||n.parameters.some(i=>!!ib(i)))){if(!n.typeParameters){const s=wF(n);s.length&&e.insertTypeParameters(t,n,s)}const i=Fl(n)&&!zc(n,21,t);i&&e.insertNodeBefore(t,Fi(n.parameters),M.createToken(21));for(const s of n.parameters)if(!s.type){const o=ib(s);o&&e.tryInsertTypeAnnotation(t,s,Ye(o,G4,Oa))}if(i&&e.insertNodeAfter(t,fi(n.parameters),M.createToken(22)),!n.type){const s=kD(n);s&&e.tryInsertTypeAnnotation(t,n,Ye(s,G4,Oa))}}else{const i=D.checkDefined(ib(n),"A JSDocType for this declaration should exist");D.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,Ye(i,G4,Oa))}}function IBe(e){return Jl(e)||e.kind===259||e.kind===170||e.kind===171}function G4(e){switch(e.kind){case 318:case 319:return M.createTypeReferenceNode("any",tt);case 322:return OBe(e);case 321:return G4(e.type);case 320:return MBe(e);case 324:return LBe(e);case 323:return FBe(e);case 182:return BBe(e);case 328:return PBe(e);default:const t=nn(e,G4,rv);return Ln(t,1),t}}function PBe(e){const t=M.createTypeLiteralNode(er(e.jsDocPropertyTags,n=>M.createPropertySignature(void 0,Be(n.name)?n.name:n.name.right,RN(n)?M.createToken(58):void 0,n.typeExpression&&Ye(n.typeExpression.type,G4,Oa)||M.createKeywordTypeNode(133))));return Ln(t,1),t}function OBe(e){return M.createUnionTypeNode([Ye(e.type,G4,Oa),M.createTypeReferenceNode("undefined",tt)])}function MBe(e){return M.createUnionTypeNode([Ye(e.type,G4,Oa),M.createTypeReferenceNode("null",tt)])}function LBe(e){return M.createArrayTypeNode(Ye(e.type,G4,Oa))}function FBe(e){var t;return M.createFunctionTypeNode(tt,e.parameters.map(RBe),(t=e.type)!=null?t:M.createKeywordTypeNode(133))}function RBe(e){const t=e.parent.parameters.indexOf(e),n=e.type.kind===324&&t===e.parent.parameters.length-1,i=e.name||(n?"rest":"arg"+t),s=n?M.createToken(26):e.dotDotDotToken;return M.createParameterDeclaration(e.modifiers,s,i,e.questionToken,Ye(e.type,G4,Oa),e.initializer)}function BBe(e){let t=e.typeName,n=e.typeArguments;if(Be(e.typeName)){if(lF(e))return jBe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=M.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?n=M.createNodeArray([M.createTypeReferenceNode("any",tt)]):n=dn(e.typeArguments,G4,Oa)}return M.createTypeReferenceNode(t,n)}function jBe(e){const t=M.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,M.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),n=M.createTypeLiteralNode([M.createIndexSignature(void 0,[t],e.typeArguments[1])]);return Ln(n,1),n}var EJ,Nte,zBe=or({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";Ri(),Fo(),EJ="annotateWithTypeFromJSDoc",Nte=[p.JSDoc_types_may_be_moved_to_TypeScript_types.code],Po({errorCodes:Nte,getCodeActions(e){const t=sbe(e.sourceFile,e.span.start);if(!t)return;const n=Vn.ChangeTracker.with(e,i=>lbe(i,e.sourceFile,t));return[po(EJ,n,p.Annotate_with_type_from_JSDoc,EJ,p.Annotate_everything_with_types_from_JSDoc)]},fixIds:[EJ],getAllCodeActions:e=>qc(e,Nte,(t,n)=>{const i=sbe(n.file,n.start);i&&lbe(t,n.file,i)})})}});function ube(e,t,n,i,s,o){const l=i.getSymbolAtLocation(Za(t,n));if(!l||!l.valueDeclaration||!(l.flags&19))return;const f=l.valueDeclaration;if(B_(f)||_l(f))e.replaceNode(t,f,m(f));else if(Fa(f)){const y=h(f);if(!y)return;const T=f.parent.parent;of(f.parent)&&f.parent.declarations.length>1?(e.delete(t,f),e.insertNodeAfter(t,T,y)):e.replaceNode(t,T,y)}function _(y){const T=[];return y.exports&&y.exports.forEach(O=>{if(O.name==="prototype"&&O.declarations){const N=O.declarations[0];if(O.declarations.length===1&&mi(N)&&Un(N.parent)&&N.parent.operatorToken.kind===64&&Dc(N.parent.right)){const B=N.parent.right;E(B.symbol,void 0,T)}}else E(O,[M.createToken(126)],T)}),y.members&&y.members.forEach((O,N)=>{var B,U,V,re;if(N==="constructor"&&O.valueDeclaration){const z=(re=(V=(U=(B=y.exports)==null?void 0:B.get("prototype"))==null?void 0:U.declarations)==null?void 0:V[0])==null?void 0:re.parent;z&&Un(z)&&Dc(z.right)&&bt(z.right.properties,DJ)||e.delete(t,O.valueDeclaration.parent);return}E(O,void 0,T)}),T;function k(O,N){return $l(O)?mi(O)&&DJ(O)?!0:Qs(N):yn(O.properties,B=>!!(g_(B)||bL(B)||Y_(B)&&_l(B.initializer)&&B.name||DJ(B)))}function E(O,N,B){if(!(O.flags&8192)&&!(O.flags&4096))return;const U=O.valueDeclaration,V=U.parent,re=V.right;if(!k(U,re)||bt(B,ae=>{const ye=Es(ae);return!!(ye&&Be(ye)&&ri(ye)===Bu(O))}))return;const z=V.parent&&V.parent.kind===243?V.parent:V;if(e.delete(t,z),!re){B.push(M.createPropertyDeclaration(N,O.name,void 0,void 0,void 0));return}if($l(U)&&(_l(re)||Fl(re))){const ae=f0(t,s),ye=JBe(U,o,ae);ye&&ce(B,re,ye);return}else if(Dc(re)){Vt(re.properties,ae=>{(g_(ae)||bL(ae))&&B.push(ae),Y_(ae)&&_l(ae.initializer)&&ce(B,ae.initializer,ae.name),DJ(ae)});return}else{if(Ip(t)||!mi(U))return;const ae=M.createPropertyDeclaration(N,U.name,void 0,void 0,re);aC(V.parent,ae,t),B.push(ae);return}function ce(ae,ye,$){return _l(ye)?R(ae,ye,$):le(ae,ye,$)}function R(ae,ye,$){const ee=Nn(N,AJ(ye,134)),te=M.createMethodDeclaration(ee,void 0,$,void 0,void 0,ye.parameters,void 0,ye.body);aC(V,te,t),ae.push(te)}function le(ae,ye,$){const ee=ye.body;let te;ee.kind===240?te=ee:te=M.createBlock([M.createReturnStatement(ee)]);const me=Nn(N,AJ(ye,134)),ve=M.createMethodDeclaration(me,void 0,$,void 0,void 0,ye.parameters,void 0,te);aC(V,ve,t),ae.push(ve)}}}function h(y){const T=y.initializer;if(!T||!_l(T)||!Be(y.name))return;const k=_(y.symbol);T.body&&k.unshift(M.createConstructorDeclaration(void 0,T.parameters,T.body));const E=AJ(y.parent.parent,95);return M.createClassDeclaration(E,y.name,void 0,void 0,k)}function m(y){const T=_(l);y.body&&T.unshift(M.createConstructorDeclaration(void 0,y.parameters,y.body));const k=AJ(y,95);return M.createClassDeclaration(k,y.name,void 0,void 0,T)}}function AJ(e,t){return lg(e)?Mn(e.modifiers,n=>n.kind===t):void 0}function DJ(e){return e.name?!!(Be(e.name)&&e.name.text==="constructor"):!1}function JBe(e,t,n){if(mi(e))return e.name;const i=e.argumentExpression;if(Um(i))return i;if(Wc(i))return r0(i.text,gc(t))?M.createIdentifier(i.text):CS(i)?M.createStringLiteral(i.text,n===0):i}var NJ,Ite,UBe=or({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";Ri(),Fo(),NJ="convertFunctionToEs6Class",Ite=[p.This_constructor_function_may_be_converted_to_a_class_declaration.code],Po({errorCodes:Ite,getCodeActions(e){const t=Vn.ChangeTracker.with(e,n=>ube(n,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[po(NJ,t,p.Convert_function_to_an_ES2015_class,NJ,p.Convert_all_constructor_functions_to_classes)]},fixIds:[NJ],getAllCodeActions:e=>qc(e,Ite,(t,n)=>ube(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function _be(e,t,n,i){const s=Za(t,n);let o;if(Be(s)&&Fa(s.parent)&&s.parent.initializer&&Jl(s.parent.initializer)?o=s.parent.initializer:o=di(Jm(Za(t,n)),oee),!o)return;const l=new Map,f=jn(o),_=WBe(o,i),h=qBe(o,i,l);if(!aee(h,i))return;const m=h.body&&oo(h.body)?VBe(h.body,i):tt,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:_,isInJSFile:f};if(!m.length)return;const T=tc(t.text,S1(o).pos);e.insertModifierAt(t,T,134,{suffix:" "});for(const k of m)if(js(k,function E(O){if(go(O)){const N=o8(O,O,y,!1);if(X7())return!0;e.replaceNodeWithNodes(t,k,N)}else if(!Qs(O)&&(js(O,E),X7()))return!0}),X7())return}function VBe(e,t){const n=[];return i3(e,i=>{Ez(i,t)&&n.push(i)}),n}function WBe(e,t){if(!e.body)return new Set;const n=new Set;return js(e.body,function i(s){WE(s,t,"then")?(n.add(Nc(s)),Vt(s.arguments,i)):WE(s,t,"catch")||WE(s,t,"finally")?(n.add(Nc(s)),js(s,i)):pbe(s,t)?n.add(Nc(s)):js(s,i)}),n}function WE(e,t,n){if(!go(e))return!1;const s=TP(e,n)&&t.getTypeAtLocation(e);return!!(s&&t.getPromisedTypeOfPromise(s))}function fbe(e,t){return(Mi(e)&4)!==0&&e.target===t}function IJ(e,t,n){if(e.expression.name.escapedText==="finally")return;const i=n.getTypeAtLocation(e.expression.expression);if(fbe(i,n.getPromiseType())||fbe(i,n.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===d1(e.arguments,0))return d1(e.typeArguments,0);if(t===d1(e.arguments,1))return d1(e.typeArguments,1)}else return d1(e.typeArguments,0)}function pbe(e,t){return ht(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function qBe(e,t,n){const i=new Map,s=Pf();return js(e,function o(l){if(!Be(l)){js(l,o);return}const f=t.getSymbolAtLocation(l);if(f){const _=t.getTypeAtLocation(l),h=vbe(_,t),m=oc(f).toString();if(h&&!Cs(l.parent)&&!Jl(l.parent)&&!n.has(m)){const y=Ji(h.parameters),T=(y==null?void 0:y.valueDeclaration)&&Cs(y.valueDeclaration)&&di(y.valueDeclaration.name,Be)||M.createUniqueName("result",16),k=dbe(T,s);n.set(m,k),s.add(T.text,f)}else if(l.parent&&(Cs(l.parent)||Fa(l.parent)||Cc(l.parent))){const y=l.text,T=s.get(y);if(T&&T.some(k=>k!==f)){const k=dbe(l,s);i.set(m,k.identifier),n.set(m,k),s.add(y,f)}else{const k=Vl(l);n.set(m,cC(k)),s.add(y,f)}}}}),jP(e,!0,o=>{if(Cc(o)&&Be(o.name)&&Bg(o.parent)){const l=t.getSymbolAtLocation(o.name),f=l&&i.get(String(oc(l)));if(f&&f.text!==(o.name||o.propertyName).getText())return M.createBindingElement(o.dotDotDotToken,o.propertyName||o.name,f,o.initializer)}else if(Be(o)){const l=t.getSymbolAtLocation(o),f=l&&i.get(String(oc(l)));if(f)return M.createIdentifier(f.text)}})}function dbe(e,t){const n=(t.get(e.text)||tt).length,i=n===0?e:M.createIdentifier(e.text+"_"+n);return cC(i)}function X7(){return!mO}function Ib(){return mO=!1,tt}function o8(e,t,n,i,s){if(WE(t,n.checker,"then"))return GBe(t,d1(t.arguments,0),d1(t.arguments,1),n,i,s);if(WE(t,n.checker,"catch"))return hbe(t,d1(t.arguments,0),n,i,s);if(WE(t,n.checker,"finally"))return HBe(t,d1(t.arguments,0),n,i,s);if(mi(t))return o8(e,t.expression,n,i,s);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(D.assertNode(au(t).parent,mi),XBe(e,t,n,i,s)):Ib()}function PJ({checker:e},t){if(t.kind===106)return!0;if(Be(t)&&!uu(t)&&ri(t)==="undefined"){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function $Be(e){const t=M.createUniqueName(e.identifier.text,16);return cC(t)}function mbe(e,t,n){let i;return n&&!$E(e,t)&&(qE(n)?(i=n,t.synthNamesMap.forEach((s,o)=>{if(s.identifier.text===n.identifier.text){const l=$Be(n);t.synthNamesMap.set(o,l)}})):i=cC(M.createUniqueName("result",16),n.types),Lte(i)),i}function gbe(e,t,n,i,s){const o=[];let l;if(i&&!$E(e,t)){l=Vl(Lte(i));const f=i.types,_=t.checker.getUnionType(f,2),h=t.isInJSFile?void 0:t.checker.typeToTypeNode(_,void 0,void 0),m=[M.createVariableDeclaration(l,void 0,h)],y=M.createVariableStatement(void 0,M.createVariableDeclarationList(m,1));o.push(y)}return o.push(n),s&&l&&QBe(s)&&o.push(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(Vl(Sbe(s)),void 0,void 0,l)],2))),o}function HBe(e,t,n,i,s){if(!t||PJ(n,t))return o8(e,e.expression.expression,n,i,s);const o=mbe(e,n,s),l=o8(e,e.expression.expression,n,!0,o);if(X7())return Ib();const f=Ote(t,i,void 0,void 0,e,n);if(X7())return Ib();const _=M.createBlock(l),h=M.createBlock(f),m=M.createTryStatement(_,void 0,h);return gbe(e,n,m,o,s)}function hbe(e,t,n,i,s){if(!t||PJ(n,t))return o8(e,e.expression.expression,n,i,s);const o=xbe(t,n),l=mbe(e,n,s),f=o8(e,e.expression.expression,n,!0,l);if(X7())return Ib();const _=Ote(t,i,l,o,e,n);if(X7())return Ib();const h=M.createBlock(f),m=M.createCatchClause(o&&Vl(dO(o)),M.createBlock(_)),y=M.createTryStatement(h,m,void 0);return gbe(e,n,y,l,s)}function GBe(e,t,n,i,s,o){if(!t||PJ(i,t))return hbe(e,n,i,s,o);if(n&&!PJ(i,n))return Ib();const l=xbe(t,i),f=o8(e.expression.expression,e.expression.expression,i,!0,l);if(X7())return Ib();const _=Ote(t,s,o,l,e,i);return X7()?Ib():Nn(f,_)}function XBe(e,t,n,i,s){if($E(e,n)){let o=Vl(t);return i&&(o=M.createAwaitExpression(o)),[M.createReturnStatement(o)]}return OJ(s,M.createAwaitExpression(t),void 0)}function OJ(e,t,n){return!e||Tbe(e)?[M.createExpressionStatement(t)]:qE(e)&&e.hasBeenDeclared?[M.createExpressionStatement(M.createAssignment(Vl(Mte(e)),t))]:[M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(Vl(dO(e)),void 0,n,t)],2))]}function Pte(e,t){if(t&&e){const n=M.createUniqueName("result",16);return[...OJ(cC(n),e,t),M.createReturnStatement(n)]}return[M.createReturnStatement(e)]}function Ote(e,t,n,i,s,o){var l;switch(e.kind){case 106:break;case 210:case 80:if(!i)break;const f=M.createCallExpression(Vl(e),void 0,qE(i)?[Mte(i)]:[]);if($E(s,o))return Pte(f,IJ(s,e,o.checker));const _=o.checker.getTypeAtLocation(e),h=o.checker.getSignaturesOfType(_,0);if(!h.length)return Ib();const m=h[0].getReturnType(),y=OJ(n,M.createAwaitExpression(f),IJ(s,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(m)||m),y;case 217:case 218:{const T=e.body,k=(l=vbe(o.checker.getTypeAtLocation(e),o.checker))==null?void 0:l.getReturnType();if(oo(T)){let E=[],O=!1;for(const N of T.statements)if(jg(N))if(O=!0,Ez(N,o.checker))E=E.concat(bbe(o,N,t,n));else{const B=k&&N.expression?ybe(o.checker,k,N.expression):N.expression;E.push(...Pte(B,IJ(s,e,o.checker)))}else{if(t&&i3(N,Cp))return Ib();E.push(N)}return $E(s,o)?E.map(N=>Vl(N)):ZBe(E,n,o,O)}else{const E=see(T,o.checker)?bbe(o,M.createReturnStatement(T),t,n):tt;if(E.length>0)return E;if(k){const O=ybe(o.checker,k,T);if($E(s,o))return Pte(O,IJ(s,e,o.checker));{const N=OJ(n,O,void 0);return n&&n.types.push(o.checker.getAwaitedType(k)||k),N}}else return Ib()}}default:return Ib()}return tt}function ybe(e,t,n){const i=Vl(n);return e.getPromisedTypeOfPromise(t)?M.createAwaitExpression(i):i}function vbe(e,t){const n=t.getSignaturesOfType(e,0);return io(n)}function ZBe(e,t,n,i){const s=[];for(const o of e)if(jg(o)){if(o.expression){const l=pbe(o.expression,n.checker)?M.createAwaitExpression(o.expression):o.expression;t===void 0?s.push(M.createExpressionStatement(l)):qE(t)&&t.hasBeenDeclared?s.push(M.createExpressionStatement(M.createAssignment(Mte(t),l))):s.push(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(dO(t),void 0,void 0,l)],2)))}}else s.push(Vl(o));return!i&&t!==void 0&&s.push(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(dO(t),void 0,void 0,M.createIdentifier("undefined"))],2))),s}function bbe(e,t,n,i){let s=[];return js(t,function o(l){if(go(l)){const f=o8(l,l,e,n,i);if(s=s.concat(f),s.length>0)return}else Qs(l)||js(l,o)}),s}function xbe(e,t){const n=[];let i;if(Jl(e)){if(e.parameters.length>0){const _=e.parameters[0].name;i=s(_)}}else Be(e)?i=o(e):mi(e)&&Be(e.name)&&(i=o(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function s(_){if(Be(_))return o(_);const h=lo(_.elements,m=>sf(m)?[]:[s(m.name)]);return YBe(_,h)}function o(_){const h=f(_),m=l(h);return m&&t.synthNamesMap.get(oc(m).toString())||cC(_,n)}function l(_){var m;var h;return(m=(h=di(_,rh))==null?void 0:h.symbol)!=null?m:t.checker.getSymbolAtLocation(_)}function f(_){return _.original?_.original:_}}function Tbe(e){return e?qE(e)?!e.identifier.text:yn(e.elements,Tbe):!0}function cC(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function YBe(e,t=tt,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}function Mte(e){return e.hasBeenReferenced=!0,e.identifier}function dO(e){return qE(e)?Lte(e):Sbe(e)}function Sbe(e){for(const t of e.elements)dO(t);return e.bindingPattern}function Lte(e){return e.hasBeenDeclared=!0,e.identifier}function qE(e){return e.kind===0}function QBe(e){return e.kind===1}function $E(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(Nc(e.original))}var MJ,Fte,mO,KBe=or({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";Ri(),Fo(),MJ="convertToAsyncFunction",Fte=[p.This_may_be_converted_to_an_async_function.code],mO=!0,Po({errorCodes:Fte,getCodeActions(e){mO=!0;const t=Vn.ChangeTracker.with(e,n=>_be(n,e.sourceFile,e.span.start,e.program.getTypeChecker()));return mO?[po(MJ,t,p.Convert_to_async_function,MJ,p.Convert_all_to_async_functions)]:[]},fixIds:[MJ],getAllCodeActions:e=>qc(e,Fte,(t,n)=>_be(t,n.file,n.start,e.program.getTypeChecker()))})}});function eje(e,t,n,i){for(const s of e.imports){const o=j5(e,s.text,_g(e,s));if(!o||o.resolvedFileName!==t.fileName)continue;const l=tN(s);switch(l.kind){case 270:n.replaceNode(e,l,l2(l.name,void 0,s,i));break;case 212:Nd(l,!1)&&n.replaceNode(e,l,M.createPropertyAccessExpression(Vl(l),"default"));break}}}function tje(e,t,n,i,s){const o={original:dje(e),additional:new Set},l=rje(e,t,o);nje(e,l,n);let f=!1,_;for(const h of Mn(e.statements,S_)){const m=Cbe(e,h,n,t,o,i,s);m&&RL(m,_!=null?_:_=new Map)}for(const h of Mn(e.statements,m=>!S_(m))){const m=ije(e,h,t,n,o,i,l,_,s);f=f||m}return _==null||_.forEach((h,m)=>{n.replaceNode(e,m,h)}),f}function rje(e,t,n){const i=new Map;return kbe(e,s=>{const{text:o}=s.name;!i.has(o)&&(yF(s.name)||t.resolveName(o,s,111551,!0))&&i.set(o,LJ(`_${o}`,n))}),i}function nje(e,t,n){kbe(e,(i,s)=>{if(s)return;const{text:o}=i.name;n.replaceNode(e,i,M.createIdentifier(t.get(o)||o))})}function kbe(e,t){e.forEachChild(function n(i){if(mi(i)&&A3(e,i.expression)&&Be(i.name)){const{parent:s}=i;t(i,Un(s)&&s.left===i&&s.operatorToken.kind===64)}i.forEachChild(n)})}function ije(e,t,n,i,s,o,l,f,_){switch(t.kind){case 242:return Cbe(e,t,i,n,s,o,_),!1;case 243:{const{expression:h}=t;switch(h.kind){case 212:return Nd(h,!0)&&i.replaceNode(e,t,l2(void 0,void 0,h.arguments[0],_)),!1;case 225:{const{operatorToken:m}=h;return m.kind===64&&sje(e,n,h,i,l,f)}}}default:return!1}}function Cbe(e,t,n,i,s,o,l){const{declarationList:f}=t;let _=!1;const h=er(f.declarations,m=>{const{name:y,initializer:T}=m;if(T){if(A3(e,T))return _=!0,lC([]);if(Nd(T,!0))return _=!0,fje(y,T.arguments[0],i,s,o,l);if(mi(T)&&Nd(T.expression,!0))return _=!0,aje(y,T.name.text,T.expression.arguments[0],s,l)}return lC([M.createVariableStatement(void 0,M.createVariableDeclarationList([m],f.flags))])});if(_){n.replaceNodeWithNodes(e,t,lo(h,y=>y.newImports));let m;return Vt(h,y=>{y.useSitesToUnqualify&&RL(y.useSitesToUnqualify,m!=null?m:m=new Map)}),m}}function aje(e,t,n,i,s){switch(e.kind){case 205:case 206:{const o=LJ(t,i);return lC([Dbe(o,t,n,s),FJ(void 0,e,M.createIdentifier(o))])}case 80:return lC([Dbe(e.text,t,n,s)]);default:return D.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function sje(e,t,n,i,s,o){const{left:l,right:f}=n;if(!mi(l))return!1;if(A3(e,l))if(A3(e,f))i.delete(e,n.parent);else{const _=Dc(f)?oje(f,o):Nd(f,!0)?lje(f.arguments[0],t):void 0;return _?(i.replaceNodeWithNodes(e,n.parent,_[0]),_[1]):(i.replaceRangeWithText(e,L0(l.getStart(e),f.pos),"export default"),!0)}else A3(e,l.expression)&&cje(e,n,i,s);return!1}function oje(e,t){const n=Ii(e.properties,i=>{switch(i.kind){case 176:case 177:case 303:case 304:return;case 302:return Be(i.name)?_je(i.name.text,i.initializer,t):void 0;case 173:return Be(i.name)?Abe(i.name.text,[M.createToken(95)],i,t):void 0;default:D.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return n&&[n,!1]}function cje(e,t,n,i){const{text:s}=t.left.name,o=i.get(s);if(o!==void 0){const l=[FJ(void 0,o,t.right),jte([M.createExportSpecifier(!1,o,s)])];n.replaceNodeWithNodes(e,t.parent,l)}else uje(t,e,n)}function lje(e,t){const n=e.text,i=t.getSymbolAtLocation(e),s=i?i.exports:JT;return s.has("export=")?[[Rte(n)],!0]:s.has("default")?s.size>1?[[wbe(n),Rte(n)],!0]:[[Rte(n)],!0]:[[wbe(n)],!1]}function wbe(e){return jte(void 0,e)}function Rte(e){return jte([M.createExportSpecifier(!1,void 0,"default")],e)}function uje({left:e,right:t,parent:n},i,s){const o=e.name.text;if((_l(t)||Fl(t)||Mp(t))&&(!t.name||t.name.text===o)){s.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},M.createToken(95),{suffix:" "}),t.name||s.insertName(i,t,o);const l=zc(n,27,i);l&&s.delete(i,l)}else s.replaceNodeRangeWithNodes(i,e.expression,zc(e,25,i),[M.createToken(95),M.createToken(87)],{joiner:" ",suffix:" "})}function _je(e,t,n){const i=[M.createToken(95)];switch(t.kind){case 217:{const{name:o}=t;if(o&&o.text!==e)return s()}case 218:return Abe(e,i,t,n);case 230:return gje(e,i,t,n);default:return s()}function s(){return FJ(i,M.createIdentifier(e),Bte(t,n))}}function Bte(e,t){if(!t||!bt(zt(t.keys()),i=>wm(e,i)))return e;return ns(e)?SK(e,!0,n):jP(e,!0,n);function n(i){if(i.kind===210){const s=t.get(i);return t.delete(i),s}}}function fje(e,t,n,i,s,o){switch(e.kind){case 205:{const l=Ii(e.elements,f=>f.dotDotDotToken||f.initializer||f.propertyName&&!Be(f.propertyName)||!Be(f.name)?void 0:Nbe(f.propertyName&&f.propertyName.text,f.name.text));if(l)return lC([l2(void 0,l,t,o)])}case 206:{const l=LJ(Yte(t.text,s),i);return lC([l2(M.createIdentifier(l),void 0,t,o),FJ(void 0,Vl(e),M.createIdentifier(l))])}case 80:return pje(e,t,n,i,o);default:return D.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function pje(e,t,n,i,s){const o=n.getSymbolAtLocation(e),l=new Map;let f=!1,_;for(const m of i.original.get(e.text)){if(n.getSymbolAtLocation(m)!==o||m===e)continue;const{parent:y}=m;if(mi(y)){const{name:{text:T}}=y;if(T==="default"){f=!0;const k=m.getText();(_!=null?_:_=new Map).set(y,M.createIdentifier(k))}else{D.assert(y.expression===m,"Didn't expect expression === use");let k=l.get(T);k===void 0&&(k=LJ(T,i),l.set(T,k)),(_!=null?_:_=new Map).set(y,M.createIdentifier(k))}}else f=!0}const h=l.size===0?void 0:zt(tf(l.entries(),([m,y])=>M.createImportSpecifier(!1,m===y?void 0:M.createIdentifier(m),M.createIdentifier(y))));return h||(f=!0),lC([l2(f?Vl(e):void 0,h,t,s)],_)}function LJ(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function dje(e){const t=Pf();return Ebe(e,n=>t.add(n.text,n)),t}function Ebe(e,t){Be(e)&&mje(e)&&t(e),e.forEachChild(n=>Ebe(n,t))}function mje(e){const{parent:t}=e;switch(t.kind){case 210:return t.name!==e;case 207:return t.propertyName!==e;case 275:return t.propertyName!==e;default:return!0}}function Abe(e,t,n,i){return M.createFunctionDeclaration(Nn(t,F3(n.modifiers)),Vl(n.asteriskToken),e,F3(n.typeParameters),F3(n.parameters),Vl(n.type),M.converters.convertToFunctionBlock(Bte(n.body,i)))}function gje(e,t,n,i){return M.createClassDeclaration(Nn(t,F3(n.modifiers)),e,F3(n.typeParameters),F3(n.heritageClauses),Bte(n.members,i))}function Dbe(e,t,n,i){return t==="default"?l2(M.createIdentifier(e),void 0,n,i):l2(void 0,[Nbe(t,e)],n,i)}function Nbe(e,t){return M.createImportSpecifier(!1,e!==void 0&&e!==t?M.createIdentifier(e):void 0,M.createIdentifier(t))}function FJ(e,t,n){return M.createVariableStatement(e,M.createVariableDeclarationList([M.createVariableDeclaration(t,void 0,void 0,n)],2))}function jte(e,t){return M.createExportDeclaration(void 0,!1,e&&M.createNamedExports(e),t===void 0?void 0:M.createStringLiteral(t))}function lC(e,t){return{newImports:e,useSitesToUnqualify:t}}var hje=or({"src/services/codefixes/convertToEsModule.ts"(){"use strict";Ri(),Fo(),Po({errorCodes:[p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:i}=e,s=Vn.ChangeTracker.with(e,o=>{if(tje(t,n.getTypeChecker(),o,gc(n.getCompilerOptions()),f0(t,i)))for(const f of n.getSourceFiles())eje(f,t,o,f0(f,i))});return[Wg("convertToEsModule",s,p.Convert_to_ES_module)]}})}});function Ibe(e,t){const n=Sn(Za(e,t),Od);return D.assert(!!n,"Expected position to be owned by a qualified name."),Be(n.left)?n:void 0}function Pbe(e,t,n){const i=n.right.text,s=M.createIndexedAccessTypeNode(M.createTypeReferenceNode(n.left,void 0),M.createLiteralTypeNode(M.createStringLiteral(i)));e.replaceNode(t,n,s)}var RJ,zte,yje=or({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";Ri(),Fo(),RJ="correctQualifiedNameToIndexedAccessType",zte=[p.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],Po({errorCodes:zte,getCodeActions(e){const t=Ibe(e.sourceFile,e.span.start);if(!t)return;const n=Vn.ChangeTracker.with(e,s=>Pbe(s,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[po(RJ,n,[p.Rewrite_as_the_indexed_access_type_0,i],RJ,p.Rewrite_all_as_indexed_access_types)]},fixIds:[RJ],getAllCodeActions:e=>qc(e,zte,(t,n)=>{const i=Ibe(n.file,n.start);i&&Pbe(t,n.file,i)})})}});function Obe(e,t){return di(Za(t,e.start).parent,dd)}function Mbe(e,t,n){if(!t)return;const i=t.parent,s=i.parent,o=vje(t,n);if(o.length===i.elements.length)e.insertModifierBefore(n.sourceFile,156,i);else{const l=M.updateExportDeclaration(s,s.modifiers,!1,M.updateNamedExports(i,Mn(i.elements,_=>!Zn(o,_))),s.moduleSpecifier,void 0),f=M.createExportDeclaration(void 0,!0,M.createNamedExports(o),s.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,s,l,{leadingTriviaOption:Vn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Vn.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,s,f)}}function vje(e,t){const n=e.parent;if(n.elements.length===1)return n.elements;const i=Whe(Zp(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Mn(n.elements,s=>{var o;return s===e||((o=Vhe(s,i))==null?void 0:o.code)===BJ[0]})}var BJ,jJ,bje=or({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";Ri(),Fo(),BJ=[p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],jJ="convertToTypeOnlyExport",Po({errorCodes:BJ,getCodeActions:function(t){const n=Vn.ChangeTracker.with(t,i=>Mbe(i,Obe(t.span,t.sourceFile),t));if(n.length)return[po(jJ,n,p.Convert_to_type_only_export,jJ,p.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[jJ],getAllCodeActions:function(t){const n=new Map;return qc(t,BJ,(i,s)=>{const o=Obe(s,t.sourceFile);o&&Lg(n,Nc(o.parent.parent))&&Mbe(i,o,t)})}})}});function Lbe(e,t){const{parent:n}=Za(e,t);return Ld(n)||Tf(n)&&n.importClause?n:void 0}function Fbe(e,t,n){if(Ld(n))e.replaceNode(t,n,M.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const i=n.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,n,[M.createImportDeclaration(F3(n.modifiers,!0),M.createImportClause(!0,Vl(i.name,!0),void 0),Vl(n.moduleSpecifier,!0),Vl(n.assertClause,!0)),M.createImportDeclaration(F3(n.modifiers,!0),M.createImportClause(!0,void 0,Vl(i.namedBindings,!0)),Vl(n.moduleSpecifier,!0),Vl(n.assertClause,!0))]);else{const s=M.updateImportDeclaration(n,n.modifiers,M.updateImportClause(i,!0,i.name,i.namedBindings),n.moduleSpecifier,n.assertClause);e.replaceNode(t,n,s)}}}var Jte,zJ,xje=or({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";Ri(),Fo(),Jte=[p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],zJ="convertToTypeOnlyImport",Po({errorCodes:Jte,getCodeActions:function(t){const n=Lbe(t.sourceFile,t.span.start);if(n){const i=Vn.ChangeTracker.with(t,s=>Fbe(s,t.sourceFile,n));return[po(zJ,i,p.Convert_to_type_only_import,zJ,p.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]}},fixIds:[zJ],getAllCodeActions:function(t){return qc(t,Jte,(n,i)=>{const s=Lbe(i.file,i.start);s&&Fbe(n,i.file,s)})}})}});function Rbe(e,t,n){pI(t)&&Tje(e,t,n)}function Tje(e,t,n){if(!t)return;const i=Sje(t);if(!i)return;const s=t.parent;e.replaceNode(n,s,i)}function Sje(e){var t;const{typeExpression:n}=e;if(!n)return;const i=(t=e.name)==null?void 0:t.getText();if(i){if(n.kind===328)return kje(i,n);if(n.kind===315)return Cje(i,n)}}function kje(e,t){const n=Bbe(t);return bt(n)?M.createInterfaceDeclaration(void 0,e,void 0,void 0,n):void 0}function Cje(e,t){const n=Vl(t.type);return n?M.createTypeAliasDeclaration(void 0,M.createIdentifier(e),void 0,n):void 0}function Bbe(e){const t=e.jsDocPropertyTags;return bt(t)?Mr(t,s=>{var o;const l=wje(s),f=(o=s.typeExpression)==null?void 0:o.type,_=s.isBracketed;let h;if(f&&Mk(f)){const m=Bbe(f);h=M.createTypeLiteralNode(m)}else f&&(h=Vl(f));if(h&&l){const m=_?M.createToken(58):void 0;return M.createPropertySignature(void 0,l,m,h)}}):void 0}function wje(e){return e.name.kind===80?e.name.text:e.name.right.text}function Eje(e){if(vm(e))return Vt(e.jsDoc,t=>{var n;return(n=t.tags)==null?void 0:n.find(pI)})}var JJ,Ute,Aje=or({"src/services/codefixes/convertTypedefToType.ts"(){"use strict";Ri(),Fo(),JJ="convertTypedefToType",Ute=[p.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Po({fixIds:[JJ],errorCodes:Ute,getCodeActions(e){const t=Za(e.sourceFile,e.span.start);if(!t)return;const n=Vn.ChangeTracker.with(e,i=>Rbe(i,t,e.sourceFile));if(n.length>0)return[po(JJ,n,p.Convert_typedef_to_TypeScript_type,JJ,p.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>qc(e,Ute,(t,n)=>{const i=Za(n.file,n.start);i&&Rbe(t,i,n.file)})})}});function jbe(e,t){const n=Za(e,t);if(Be(n)){const i=Ws(n.parent.parent,Vm),s=n.getText(e);return{container:Ws(i.parent,Sm),typeNode:i.type,constraint:s,name:s==="K"?"P":"K"}}}function zbe(e,t,{container:n,typeNode:i,constraint:s,name:o}){e.replaceNode(t,n,M.createMappedTypeNode(void 0,M.createTypeParameterDeclaration(void 0,o,M.createTypeReferenceNode(s)),void 0,void 0,i,void 0))}var UJ,Vte,Dje=or({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";Ri(),Fo(),UJ="convertLiteralTypeToMappedType",Vte=[p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Po({errorCodes:Vte,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=jbe(n,i.start);if(!s)return;const{name:o,constraint:l}=s,f=Vn.ChangeTracker.with(t,_=>zbe(_,n,s));return[po(UJ,f,[p.Convert_0_to_1_in_0,l,o],UJ,p.Convert_all_type_literals_to_mapped_type)]},fixIds:[UJ],getAllCodeActions:e=>qc(e,Vte,(t,n)=>{const i=jbe(n.file,n.start);i&&zbe(t,n.file,i)})})}});function Jbe(e,t){return D.checkDefined(Z_(Za(e,t)),"There should be a containing class")}function Ube(e){return!e.valueDeclaration||!(Pp(e.valueDeclaration)&8)}function Vbe(e,t,n,i,s,o){const l=e.program.getTypeChecker(),f=Nje(i,l),_=l.getTypeAtLocation(t),m=l.getPropertiesOfType(_).filter(Mx(Ube,N=>!f.has(N.escapedName))),y=l.getTypeAtLocation(i),T=on(i.members,N=>Uu(N));y.getNumberIndexType()||E(_,1),y.getStringIndexType()||E(_,0);const k=Z7(n,e.program,o,e.host);Xre(i,m,n,e,o,k,N=>O(n,i,N)),k.writeFixes(s);function E(N,B){const U=l.getIndexInfoOfType(N,B);U&&O(n,i,l.indexInfoToIndexSignatureDeclaration(U,i,void 0,c8(e)))}function O(N,B,U){T?s.insertNodeAfter(N,T,U):s.insertMemberAtStart(N,B,U)}}function Nje(e,t){const n=T1(e);if(!n)return To();const i=t.getTypeAtLocation(n),s=t.getPropertiesOfType(i);return To(s.filter(Ube))}var Wte,VJ,Ije=or({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";Ri(),Fo(),Wte=[p.Class_0_incorrectly_implements_interface_1.code,p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],VJ="fixClassIncorrectlyImplementsInterface",Po({errorCodes:Wte,getCodeActions(e){const{sourceFile:t,span:n}=e,i=Jbe(t,n.start);return Mr(nk(i),s=>{const o=Vn.ChangeTracker.with(e,l=>Vbe(e,s,t,i,l,e.preferences));return o.length===0?void 0:po(VJ,o,[p.Implement_interface_0,s.getText(t)],VJ,p.Implement_all_unimplemented_interfaces)})},fixIds:[VJ],getAllCodeActions(e){const t=new Map;return qc(e,Wte,(n,i)=>{const s=Jbe(i.file,i.start);if(Lg(t,Nc(s)))for(const o of nk(s))Vbe(e,o,i.file,s,n,e.preferences)})}})}});function Z7(e,t,n,i,s){return Wbe(e,t,!1,n,i,s)}function Wbe(e,t,n,i,s,o){const l=t.getCompilerOptions(),f=[],_=[],h=new Map,m=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:T,writeFixes:E,hasFixes:O};function y(N,B){const U=Zbe(B,N.code,N.start,n);!U||!U.length||k(Fi(U))}function T(N,B){const U=D.checkDefined(N.parent),V=fz(N,gc(l)),re=t.getTypeChecker(),z=re.getMergedSymbol(Id(N,re)),ce=Hbe(e,z,V,U,!1,t,s,i,o),R=qJ(e,t),le=qbe(e,D.checkDefined(ce),t,void 0,!!B,R,s,i);le&&k({fix:le,symbolName:V,errorIdentifierText:void 0})}function k(N){var B,U;const{fix:V,symbolName:re}=N;switch(V.kind){case 0:f.push(V);break;case 1:_.push(V);break;case 2:{const{importClauseOrBindingPattern:le,importKind:ae,addAsTypeOnly:ye}=V,$=String(Nc(le));let ee=h.get($);if(ee||h.set($,ee={importClauseOrBindingPattern:le,defaultImport:void 0,namedImports:new Map}),ae===0){const te=ee==null?void 0:ee.namedImports.get(re);ee.namedImports.set(re,z(te,ye))}else D.assert(ee.defaultImport===void 0||ee.defaultImport.name===re,"(Add to Existing) Default import should be missing or match symbolName"),ee.defaultImport={name:re,addAsTypeOnly:z((B=ee.defaultImport)==null?void 0:B.addAsTypeOnly,ye)};break}case 3:{const{moduleSpecifier:le,importKind:ae,useRequire:ye,addAsTypeOnly:$}=V,ee=ce(le,ae,ye,$);switch(D.assert(ee.useRequire===ye,"(Add new) Tried to add an `import` and a `require` for the same module"),ae){case 1:D.assert(ee.defaultImport===void 0||ee.defaultImport.name===re,"(Add new) Default import should be missing or match symbolName"),ee.defaultImport={name:re,addAsTypeOnly:z((U=ee.defaultImport)==null?void 0:U.addAsTypeOnly,$)};break;case 0:const te=(ee.namedImports||(ee.namedImports=new Map)).get(re);ee.namedImports.set(re,z(te,$));break;case 3:case 2:D.assert(ee.namespaceLikeImport===void 0||ee.namespaceLikeImport.name===re,"Namespacelike import shoudl be missing or match symbolName"),ee.namespaceLikeImport={importKind:ae,name:re,addAsTypeOnly:$};break}break}case 4:break;default:D.assertNever(V,`fix wasn't never - got kind ${V.kind}`)}function z(le,ae){return Math.max(le!=null?le:0,ae)}function ce(le,ae,ye,$){const ee=R(le,!0),te=R(le,!1),me=m.get(ee),ve=m.get(te),we={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ye};return ae===1&&$===2?me||(m.set(ee,we),we):$===1&&(me||ve)?me||ve:ve||(m.set(te,we),we)}function R(le,ae){return`${ae?1:0}|${le}`}}function E(N){const B=f0(e,i);for(const V of f)Xte(N,e,V);for(const V of _)n4e(N,e,V,B);h.forEach(({importClauseOrBindingPattern:V,defaultImport:re,namedImports:z})=>{r4e(N,e,V,re,zt(z.entries(),([ce,R])=>({addAsTypeOnly:R,name:ce})),i)});let U;m.forEach(({useRequire:V,defaultImport:re,namedImports:z,namespaceLikeImport:ce},R)=>{const le=R.slice(2),ye=(V?s4e:a4e)(le,B,re,z&&zt(z.entries(),([$,ee])=>({addAsTypeOnly:ee,name:$})),ce,l);U=Ss(U,ye)}),U&&TE(N,e,U,!0,i)}function O(){return f.length>0||_.length>0||h.size>0||m.size>0}}function Pje(e,t,n,i){const s=AE(e,i,n),o=Gbe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(f,_,h,m){const{fixes:y,computedWithoutCacheCount:T}=WJ(f,_,h,!1,t,e,n,i,o,m),k=Ybe(y,e,t,s,n);return k&&Xs(fa({},k),{computedWithoutCacheCount:T})}}function Oje(e,t,n,i,s,o,l,f,_,h,m,y){const T=f.getCompilerOptions();let k;n?(k=WP(i,l,f,m,y).get(i.path,n),D.assertIsDefined(k,"Some exportInfo should match the specified exportMapKey")):(k=eb(ig(t.name))?[Lje(e,s,t,f,l)]:Hbe(i,e,s,t,o,f,l,m,y),D.assertIsDefined(k,"Some exportInfo should match the specified symbol / moduleSymbol"));const E=qJ(i,f),O=v7(Za(i,h)),N=D.checkDefined(qbe(i,k,f,h,O,E,l,m));return{moduleSpecifier:N.moduleSpecifier,codeAction:$be(Gte({host:l,formatContext:_,preferences:m},i,s,N,!1,T,m))}}function Mje(e,t,n,i,s,o){const l=n.getCompilerOptions(),f=Se(Hte(e,n.getTypeChecker(),t,l)),_=e4e(e,t,f,n),h=f!==t.text;return _&&$be(Gte({host:i,formatContext:s,preferences:o},e,f,_,h,l,o))}function qbe(e,t,n,i,s,o,l,f){const _=AE(e,f,l);return Ybe(WJ(t,i,s,o,n,e,l,f).fixes,e,n,_,l)}function $be({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function Hbe(e,t,n,i,s,o,l,f,_){const h=Xbe(o,l);return WP(e,l,o,f,_).search(e.path,s,m=>m===n,m=>{if(Id(m[0].symbol,h(m[0].isFromPackageJson))===t&&m.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return m})}function Lje(e,t,n,i,s){var o,l;const f=i.getCompilerOptions(),_=m(i.getTypeChecker(),!1);if(_)return _;const h=(l=(o=s.getPackageJsonAutoImportProvider)==null?void 0:o.call(s))==null?void 0:l.getTypeChecker();return D.checkDefined(h&&m(h,!0),"Could not find symbol in specified module for code actions");function m(y,T){const k=bz(n,y,f);if(k&&Id(k.symbol,y)===e)return{symbol:k.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:k.exportKind,targetFlags:Id(e,y).flags,isFromPackageJson:T};const E=y.tryGetMemberInModuleExportsAndProperties(t,n);if(E&&Id(E,y)===e)return{symbol:E,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:Id(e,y).flags,isFromPackageJson:T}}}function WJ(e,t,n,i,s,o,l,f,_=Gbe(s.getTypeChecker(),o,s.getCompilerOptions()),h){const m=s.getTypeChecker(),y=lo(e,_.getImportsForExportInfo),T=t!==void 0&&Fje(y,t),k=Bje(y,n,m,s.getCompilerOptions());if(k)return{computedWithoutCacheCount:0,fixes:[...T?[T]:tt,k]};const{fixes:E,computedWithoutCacheCount:O=0}=zje(e,y,s,o,t,n,i,l,f,h);return{computedWithoutCacheCount:O,fixes:[...T?[T]:tt,...E]}}function Fje(e,t){return bo(e,({declaration:n,importKind:i})=>{var s;if(i!==0)return;const o=Rje(n),l=o&&((s=eN(n))==null?void 0:s.text);if(l)return{kind:0,namespacePrefix:o,usagePosition:t,moduleSpecifier:l}})}function Rje(e){var t,n,i;switch(e.kind){case 259:return(t=di(e.name,Be))==null?void 0:t.text;case 270:return e.name.text;case 271:return(i=di((n=e.importClause)==null?void 0:n.namedBindings,vb))==null?void 0:i.name.text;default:return D.assertNever(e)}}function qte(e,t,n,i,s,o){return e?t&&o.importsNotUsedAsValues===2||kH(o)&&(!(i&111551)||s.getTypeOnlyAliasDeclaration(n))?2:1:4}function Bje(e,t,n,i){let s;for(const l of e){const f=o(l);if(!f)continue;const _=wL(f.importClauseOrBindingPattern);if(f.addAsTypeOnly!==4&&_||f.addAsTypeOnly===4&&!_)return f;s!=null||(s=f)}return s;function o({declaration:l,importKind:f,symbol:_,targetFlags:h}){if(f===3||f===2||l.kind===270)return;if(l.kind===259)return(f===0||f===1)&&l.name.kind===205?{kind:2,importClauseOrBindingPattern:l.name,importKind:f,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:m}=l;if(!m||!Wc(l.moduleSpecifier))return;const{name:y,namedBindings:T}=m;if(m.isTypeOnly&&!(f===0&&T))return;const k=qte(t,!1,_,h,n,i);if(!(f===1&&(y||k===2&&T))&&!(f===0&&(T==null?void 0:T.kind)===273))return{kind:2,importClauseOrBindingPattern:m,importKind:f,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:k}}}function Gbe(e,t,n){let i;for(const s of t.imports){const o=tN(s);if(N$(o.parent)){const l=e.resolveExternalModuleName(s);l&&(i||(i=Pf())).add(oc(l),o.parent)}else if(o.kind===271||o.kind===270){const l=e.getSymbolAtLocation(s);l&&(i||(i=Pf())).add(oc(l),o)}}return{getImportsForExportInfo:({moduleSymbol:s,exportKind:o,targetFlags:l,symbol:f})=>{if(!(l&111551)&&Ip(t))return tt;const _=i==null?void 0:i.get(oc(s));if(!_)return tt;const h=$te(t,o,n);return _.map(m=>({declaration:m,importKind:h,symbol:f,targetFlags:l}))}}}function qJ(e,t){if(!Ip(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return Ff(n)<5;for(const i of t.getSourceFiles())if(!(i===e||!Ip(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function Xbe(e,t){return f_(n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function jje(e,t,n,i,s,o,l,f,_){const h=Ip(t),m=e.getCompilerOptions(),y=q7(e,l),T=Xbe(e,l),k=Ju(m),E=Gj(k),O=_?U=>({moduleSpecifiers:D3.tryGetModuleSpecifiersFromCache(U,t,y,f),computedWithoutCache:!1}):(U,V)=>D3.getModuleSpecifiersWithCacheInfo(U,V,m,t,y,f);let N=0;const B=lo(o,(U,V)=>{const re=T(U.isFromPackageJson),{computedWithoutCache:z,moduleSpecifiers:ce}=O(U.moduleSymbol,re),R=!!(U.targetFlags&111551),le=qte(i,!0,U.symbol,U.targetFlags,re,m);return N+=z?1:0,Mr(ce,ae=>{var ye;if(E&&$k(ae))return;if(!R&&h&&n!==void 0)return{kind:1,moduleSpecifier:ae,usagePosition:n,exportInfo:U,isReExport:V>0};const $=$te(t,U.exportKind,m);let ee;if(n!==void 0&&$===3&&U.exportKind===0){const te=re.resolveExternalModuleSymbol(U.moduleSymbol);let me;te!==U.moduleSymbol&&(me=(ye=xz(te,re,m))==null?void 0:ye.name),me||(me=Zte(U.moduleSymbol,gc(m),!1)),ee={namespacePrefix:me,usagePosition:n}}return{kind:3,moduleSpecifier:ae,importKind:$,useRequire:s,addAsTypeOnly:le,exportInfo:U,isReExport:V>0,qualification:ee}})});return{computedWithoutCacheCount:N,fixes:B}}function zje(e,t,n,i,s,o,l,f,_,h){const m=bo(t,y=>Jje(y,o,l,n.getTypeChecker(),n.getCompilerOptions()));return m?{fixes:[m]}:jje(n,i,s,o,l,e,f,_,h)}function Jje({declaration:e,importKind:t,symbol:n,targetFlags:i},s,o,l,f){var _;const h=(_=eN(e))==null?void 0:_.text;if(h){const m=o?4:qte(s,!0,n,i,l,f);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:m,useRequire:o}}}function Zbe(e,t,n,i){const s=Za(e.sourceFile,n);let o;if(t===p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=qje(e,s);else if(Be(s))if(t===p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const f=Se(Hte(e.sourceFile,e.program.getTypeChecker(),s,e.program.getCompilerOptions())),_=e4e(e.sourceFile,s,f,e.program);return _&&[{fix:_,symbolName:f,errorIdentifierText:s.text}]}else o=Gje(e,s,i);else return;const l=AE(e.sourceFile,e.preferences,e.host);return o&&Uje(o,e.sourceFile,e.program,l,e.host)}function Uje(e,t,n,i,s){const o=l=>Sl(l,s.getCurrentDirectory(),Gv(s));return qt(e,(l,f)=>ka(!!l.isJsxNamespaceFix,!!f.isJsxNamespaceFix)||Uc(l.fix.kind,f.fix.kind)||Qbe(l.fix,f.fix,t,n,i.allowsImportingSpecifier,o))}function Ybe(e,t,n,i,s){if(bt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((o,l)=>Qbe(l,o,t,n,i.allowsImportingSpecifier,f=>Sl(f,s.getCurrentDirectory(),Gv(s)))===-1?l:o)}function Qbe(e,t,n,i,s,o){return e.kind!==0&&t.kind!==0?ka(s(t.moduleSpecifier),s(e.moduleSpecifier))||Wje(e.moduleSpecifier,t.moduleSpecifier,n,i)||ka(Kbe(e,n,i.getCompilerOptions(),o),Kbe(t,n,i.getCompilerOptions(),o))||PN(e.moduleSpecifier,t.moduleSpecifier):0}function Kbe(e,t,n,i){var s;if(e.isReExport&&((s=e.exportInfo)!=null&&s.moduleFileName)&&Ju(n)===2&&Vje(e.exportInfo.moduleFileName)){const o=i(ga(e.exportInfo.moduleFileName));return Ga(t.path,o)}return!1}function Vje(e){return H_(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function Wje(e,t,n,i){return Ga(e,"node:")&&!Ga(t,"node:")?dz(n,i)?-1:1:Ga(t,"node:")&&!Ga(e,"node:")?dz(n,i)?1:-1:0}function qje({sourceFile:e,program:t,host:n,preferences:i},s){const o=t.getTypeChecker(),l=$je(s,o);if(!l)return;const f=o.getAliasedSymbol(l),_=l.name,h=[{symbol:l,moduleSymbol:f,moduleFileName:void 0,exportKind:3,targetFlags:f.flags,isFromPackageJson:!1}],m=qJ(e,t);return WJ(h,void 0,!1,m,t,e,n,i).fixes.map(T=>{var k;return{fix:T,symbolName:_,errorIdentifierText:(k=di(s,Be))==null?void 0:k.text}})}function $je(e,t){const n=Be(e)?t.getSymbolAtLocation(e):void 0;if(PF(n))return n;const{parent:i}=e;if($p(i)&&i.tagName===e||FS(i)){const s=t.resolveName(t.getJsxNamespace(i),$p(i)?e:i,111551,!1);if(PF(s))return s}}function $te(e,t,n,i){if(n.verbatimModuleSyntax&&(Ff(n)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return Yje(e,n,!!i);case 3:return Hje(e,n,!!i);default:return D.assertNever(t)}}function Hje(e,t,n){if(yS(t))return 1;const i=Ff(t);switch(i){case 2:case 1:case 3:return jn(e)&&(c_(e)||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return D.assertNever(i,`Unexpected moduleKind ${i}`)}}function Gje({sourceFile:e,program:t,cancellationToken:n,host:i,preferences:s},o,l){const f=t.getTypeChecker(),_=t.getCompilerOptions();return lo(Hte(e,f,o,_),h=>{if(h==="default")return;const m=v7(o),y=qJ(e,t),T=Zje(h,X5(o),J7(o),n,e,t,l,i,s);return zt(zf(T.values(),k=>WJ(k,o.getStart(e),m,y,t,e,i,s).fixes),k=>({fix:k,symbolName:h,errorIdentifierText:o.text,isJsxNamespaceFix:h!==o.text}))})}function e4e(e,t,n,i){const s=i.getTypeChecker(),o=s.resolveName(n,t,111551,!0);if(!o)return;const l=s.getTypeOnlyAliasDeclaration(o);if(!(!l||bn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function Hte(e,t,n,i){const s=n.parent;if(($p(s)||x3(s))&&s.tagName===n&&RK(i.jsx)){const o=t.getJsxNamespace(e);if(Xje(o,n,t))return!ok(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,o]:[o]}return[n.text]}function Xje(e,t,n){if(ok(t.text))return!0;const i=n.resolveName(e,t,111551,!0);return!i||bt(i.declarations,Q6)&&!(i.flags&111551)}function Zje(e,t,n,i,s,o,l,f,_){var h;const m=Pf(),y=AE(s,_,f),T=(h=f.getModuleSpecifierCache)==null?void 0:h.call(f),k=f_(O=>q7(O?f.getPackageJsonAutoImportProvider():o,f));function E(O,N,B,U,V,re){const z=k(re);if(N&&UK(V,s,N,_,y,z,T)||!N&&y.allowsImportingAmbientModule(O,z)){const ce=V.getTypeChecker();m.add(Phe(B,ce).toString(),{symbol:B,moduleSymbol:O,moduleFileName:N==null?void 0:N.fileName,exportKind:U,targetFlags:Id(B,ce).flags,isFromPackageJson:re})}}return VK(o,f,_,l,(O,N,B,U)=>{const V=B.getTypeChecker();i.throwIfCancellationRequested();const re=B.getCompilerOptions(),z=bz(O,V,re);z&&(z.name===e||Zte(O,gc(re),t)===e)&&c4e(z.resolvedSymbol,n)&&E(O,N,z.symbol,z.exportKind,B,U);const ce=V.tryGetMemberInModuleExportsAndProperties(e,O);ce&&c4e(ce,n)&&E(O,N,ce,0,B,U)}),m}function Yje(e,t,n){const i=yS(t),s=jn(e);if(!s&&Ff(t)>=5)return i?1:2;if(s)return c_(e)||n?i?1:2:3;for(const o of e.statements)if(Hf(o)&&!Eu(o.moduleReference))return 3;return i?1:3}function Gte(e,t,n,i,s,o,l){let f;const _=Vn.ChangeTracker.with(e,h=>{f=Qje(h,t,n,i,s,o,l)});return po(Qte,_,f,Kte,p.Add_all_missing_imports)}function Qje(e,t,n,i,s,o,l){const f=f0(t,l);switch(i.kind){case 0:return Xte(e,t,i),[p.Change_0_to_1,n,`${i.namespacePrefix}.${n}`];case 1:return n4e(e,t,i,f),[p.Change_0_to_1,n,i4e(i.moduleSpecifier,f)+n];case 2:{const{importClauseOrBindingPattern:_,importKind:h,addAsTypeOnly:m,moduleSpecifier:y}=i;r4e(e,t,_,h===1?{name:n,addAsTypeOnly:m}:void 0,h===0?[{name:n,addAsTypeOnly:m}]:tt,l);const T=ig(y);return s?[p.Import_0_from_1,n,T]:[p.Update_import_from_0,T]}case 3:{const{importKind:_,moduleSpecifier:h,addAsTypeOnly:m,useRequire:y,qualification:T}=i,k=y?s4e:a4e,E=_===1?{name:n,addAsTypeOnly:m}:void 0,O=_===0?[{name:n,addAsTypeOnly:m}]:void 0,N=_===2||_===3?{importKind:_,name:(T==null?void 0:T.namespacePrefix)||n,addAsTypeOnly:m}:void 0;return TE(e,t,k(h,f,E,O,N,o),!0,l),T&&Xte(e,t,T),s?[p.Import_0_from_1,n,h]:[p.Add_import_from_0,h]}case 4:{const{typeOnlyAliasDeclaration:_}=i,h=Kje(e,_,o,t,l);return h.kind===275?[p.Remove_type_from_import_of_0_from_1,n,t4e(h.parent.parent)]:[p.Remove_type_from_import_declaration_from_0,t4e(h)]}default:return D.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function t4e(e){var t,n;return e.kind===270?((n=di((t=di(e.moduleReference,yh))==null?void 0:t.expression,Wc))==null?void 0:n.text)||e.moduleReference.getText():Ws(e.parent.moduleSpecifier,sc).text}function Kje(e,t,n,i,s){const o=kH(n);switch(t.kind){case 275:if(t.isTypeOnly){const f=pg.detectImportSpecifierSorting(t.parent.elements,s);if(t.parent.elements.length>1&&f){e.delete(i,t);const _=M.updateImportSpecifier(t,!1,t.propertyName,t.name),h=pg.getOrganizeImportsComparer(s,f===2),m=pg.getImportSpecifierInsertionIndex(t.parent.elements,_,h);e.insertImportSpecifierAtIndex(i,_,t.parent,m)}else e.deleteRange(i,t.getFirstToken());return t}else return D.assert(t.parent.parent.isTypeOnly),l(t.parent.parent),t.parent.parent;case 272:return l(t),t;case 273:return l(t.parent),t.parent;case 270:return e.deleteRange(i,t.getChildAt(1)),t;default:D.failBadSyntaxKind(t)}function l(f){if(e.delete(i,mK(f,i)),o){const _=di(f.namedBindings,r2);if(_&&_.elements.length>1){pg.detectImportSpecifierSorting(_.elements,s)&&t.kind===275&&_.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,_,0));for(const h of _.elements)h!==t&&!h.isTypeOnly&&e.insertModifierBefore(i,156,h)}}}}function r4e(e,t,n,i,s,o){var l;if(n.kind===205){i&&h(n,i.name,"default");for(const m of s)h(n,m.name,void 0);return}const f=n.isTypeOnly&&bt([i,...s],m=>(m==null?void 0:m.addAsTypeOnly)===4),_=n.namedBindings&&((l=di(n.namedBindings,r2))==null?void 0:l.elements);if(i&&(D.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),M.createIdentifier(i.name),{suffix:", "})),s.length){let m;if(typeof o.organizeImportsIgnoreCase=="boolean")m=o.organizeImportsIgnoreCase;else if(_){const E=pg.detectImportSpecifierSorting(_,o);E!==3&&(m=E===2)}m===void 0&&(m=pg.detectSorting(t,o)===2);const y=pg.getOrganizeImportsComparer(o,m),T=mr(s.map(E=>M.createImportSpecifier((!n.isTypeOnly||f)&&gO(E),void 0,M.createIdentifier(E.name))),(E,O)=>pg.compareImportOrExportSpecifiers(E,O,y)),k=(_==null?void 0:_.length)&&pg.detectImportSpecifierSorting(_,o);if(k&&!(m&&k===1))for(const E of T){const O=f&&!E.isTypeOnly?0:pg.getImportSpecifierInsertionIndex(_,E,y);e.insertImportSpecifierAtIndex(t,E,n.namedBindings,O)}else if(_!=null&&_.length)for(const E of T)e.insertNodeInListAfter(t,fi(_),E,_);else if(T.length){const E=M.createNamedImports(T);n.namedBindings?e.replaceNode(t,n.namedBindings,E):e.insertNodeAfter(t,D.checkDefined(n.name,"Import clause must have either named imports or a default import"),E)}}if(f&&(e.delete(t,mK(n,t)),_))for(const m of _)e.insertModifierBefore(t,156,m);function h(m,y,T){const k=M.createBindingElement(void 0,T,y);m.elements.length?e.insertNodeInListAfter(t,fi(m.elements),k):e.replaceNode(t,m,M.createObjectBindingPattern([k]))}}function Xte(e,t,{namespacePrefix:n,usagePosition:i}){e.insertText(t,i,n+".")}function n4e(e,t,{moduleSpecifier:n,usagePosition:i},s){e.insertText(t,i,i4e(n,s))}function i4e(e,t){const n=dK(t);return`import(${n}${e}${n}).`}function gO({addAsTypeOnly:e}){return e===2}function a4e(e,t,n,i,s,o){const l=XS(e,t);let f;if(n!==void 0||i!=null&&i.length){const _=(!n||gO(n))&&yn(i,gO)||o.verbatimModuleSyntax&&(n==null?void 0:n.addAsTypeOnly)!==4&&!bt(i,h=>h.addAsTypeOnly===4);f=Ss(f,l2(n&&M.createIdentifier(n.name),i==null?void 0:i.map(({addAsTypeOnly:h,name:m})=>M.createImportSpecifier(!_&&h===2,void 0,M.createIdentifier(m))),e,t,_))}if(s){const _=s.importKind===3?M.createImportEqualsDeclaration(void 0,gO(s),M.createIdentifier(s.name),M.createExternalModuleReference(l)):M.createImportDeclaration(void 0,M.createImportClause(gO(s),void 0,M.createNamespaceImport(M.createIdentifier(s.name))),l,void 0);f=Ss(f,_)}return D.checkDefined(f)}function s4e(e,t,n,i,s){const o=XS(e,t);let l;if(n||i!=null&&i.length){const f=(i==null?void 0:i.map(({name:h})=>M.createBindingElement(void 0,void 0,h)))||[];n&&f.unshift(M.createBindingElement(void 0,"default",n.name));const _=o4e(M.createObjectBindingPattern(f),o);l=Ss(l,_)}if(s){const f=o4e(s.name,o);l=Ss(l,f)}return D.checkDefined(l)}function o4e(e,t){return M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(typeof e=="string"?M.createIdentifier(e):e,void 0,void 0,M.createCallExpression(M.createIdentifier("require"),void 0,[t]))],2))}function c4e({declarations:e},t){return bt(e,n=>!!(xP(n)&t))}function Zte(e,t,n){return Yte(Pd(ig(e.name)),t,n)}function Yte(e,t,n){const i=H_(Uf(e,"/index"));let s="",o=!0;const l=i.charCodeAt(0);Qh(l,t)?(s+=String.fromCharCode(l),n&&(s=s.toUpperCase())):o=!1;for(let f=1;fGte(e,i,_,f,_!==h,o.getCompilerOptions(),n))},fixIds:[Kte],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:i,host:s,cancellationToken:o}=e,l=Wbe(t,n,!0,i,s,o);return s8(e,ere,f=>l.addImportFromDiagnostic(f,e)),a8(Vn.ChangeTracker.with(e,l.writeFixes))}})}});function l4e(e,t,n){const i=on(e.getSemanticDiagnostics(t),l=>l.start===n.start&&l.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;const s=on(i.relatedInformation,l=>l.code===p.This_type_parameter_might_need_an_extends_0_constraint.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let o=rne(s.file,nf(s.start,s.length));if(o!==void 0&&(Be(o)&&eu(o.parent)&&(o=o.parent),eu(o))){if(B9(o.parent))return;const l=Za(t,n.start),f=e.getTypeChecker();return{constraint:rze(f,l)||tze(s.messageText),declaration:o,token:l}}}function u4e(e,t,n,i,s,o){const{declaration:l,constraint:f}=o,_=t.getTypeChecker();if(bs(f))e.insertText(s,l.name.end,` extends ${f}`);else{const h=gc(t.getCompilerOptions()),m=c8({program:t,host:i}),y=Z7(s,t,n,i),T=AU(_,y,f,void 0,h,void 0,m);T&&(e.replaceNode(s,l,M.updateTypeParameterDeclaration(l,void 0,l.name,T,l.default)),y.writeFixes(e))}}function tze(e){const[t,n]=Sb(e,` -`,0).match(/`extends (.*)`/)||[];return n}function rze(e,t){return Oa(t.parent)?e.getTypeArgumentConstraint(t.parent):(ht(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var $J,tre,nze=or({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";Ri(),Fo(),$J="addMissingConstraint",tre=[p.Type_0_is_not_comparable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.Type_0_is_not_assignable_to_type_1.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.Property_0_is_incompatible_with_index_signature.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Type_0_does_not_satisfy_the_constraint_1.code],Po({errorCodes:tre,getCodeActions(e){const{sourceFile:t,span:n,program:i,preferences:s,host:o}=e,l=l4e(i,t,n);if(l===void 0)return;const f=Vn.ChangeTracker.with(e,_=>u4e(_,i,s,o,t,l));return[po($J,f,p.Add_extends_constraint,$J,p.Add_extends_constraint_to_all_type_parameters)]},fixIds:[$J],getAllCodeActions:e=>{const{program:t,preferences:n,host:i}=e,s=new Map;return a8(Vn.ChangeTracker.with(e,o=>{s8(e,tre,l=>{const f=l4e(t,l.file,nf(l.start,l.length));if(f&&Lg(s,Nc(f.declaration)))return u4e(o,t,n,i,l.file,f)})}))}})}});function _4e(e,t,n,i){switch(n){case p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return ize(e,t.sourceFile,i);case p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return aze(e,t.sourceFile,i);default:D.fail("Unexpected error code: "+n)}}function ize(e,t,n){const i=p4e(t,n);if(Ip(t)){e.addJSDocTags(t,i,[M.createJSDocOverrideTag(M.createIdentifier("override"))]);return}const s=i.modifiers||tt,o=on(s,wS),l=on(s,$fe),f=on(s,y=>aK(y.kind)),_=rl(s,lp),h=l?l.end:o?o.end:f?f.end:_?tc(t.text,_.end):i.getStart(t),m=f||o||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,h,163,m)}function aze(e,t,n){const i=p4e(t,n);if(Ip(t)){e.filterJSDocTags(t,i,H1(qR));return}const s=on(i.modifiers,Hfe);D.assertIsDefined(s),e.deleteModifier(t,s)}function f4e(e){switch(e.kind){case 175:case 171:case 173:case 176:case 177:return!0;case 168:return gm(e,e.parent);default:return!1}}function p4e(e,t){const n=Za(e,t),i=Sn(n,s=>Yi(s)?"quit":f4e(s));return D.assert(i&&f4e(i)),i}var rre,uC,HE,nre,ire,sze=or({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";Ri(),Fo(),rre="fixOverrideModifier",uC="fixAddOverrideModifier",HE="fixRemoveOverrideModifier",nre=[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],ire={[p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:uC,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:uC,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:HE,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:HE,fixAllDescriptions:p.Remove_override_modifier},[p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:uC,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:uC,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:uC,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:HE,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:HE,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers}},Po({errorCodes:nre,getCodeActions:function(t){const{errorCode:n,span:i}=t,s=ire[n];if(!s)return tt;const{descriptions:o,fixId:l,fixAllDescriptions:f}=s,_=Vn.ChangeTracker.with(t,h=>_4e(h,t,n,i.start));return[yte(rre,_,o,l,f)]},fixIds:[rre,uC,HE],getAllCodeActions:e=>qc(e,nre,(t,n)=>{const{code:i,start:s}=n,o=ire[i];!o||o.fixId!==e.fixId||_4e(t,e,i,s)})})}});function d4e(e,t,n,i){const s=f0(t,i),o=M.createStringLiteral(n.name.text,s===0);e.replaceNode(t,n,xL(n)?M.createElementAccessChain(n.expression,n.questionDotToken,o):M.createElementAccessExpression(n.expression,o))}function m4e(e,t){return Ws(Za(e,t).parent,mi)}var HJ,are,oze=or({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";Ri(),Fo(),HJ="fixNoPropertyAccessFromIndexSignature",are=[p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Po({errorCodes:are,fixIds:[HJ],getCodeActions(e){const{sourceFile:t,span:n,preferences:i}=e,s=m4e(t,n.start),o=Vn.ChangeTracker.with(e,l=>d4e(l,e.sourceFile,s,i));return[po(HJ,o,[p.Use_element_access_for_0,s.name.text],HJ,p.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>qc(e,are,(t,n)=>d4e(t,n.file,m4e(n.file,n.start),e.preferences))})}});function g4e(e,t,n,i){const s=Za(t,n);if(!tC(s))return;const o=_d(s,!1,!1);if(!(!B_(o)&&!_l(o))&&!Ja(_d(o,!1,!1))){const l=D.checkDefined(zc(o,100,t)),{name:f}=o,_=D.checkDefined(o.body);return _l(o)?f&&tu.Core.isSymbolReferencedInFile(f,i,t,_)?void 0:(e.delete(t,l),f&&e.delete(t,f),e.insertText(t,_.pos," =>"),[p.Convert_function_expression_0_to_arrow_function,f?f.text:vz]):(e.replaceNode(t,l,M.createToken(87)),e.insertText(t,f.end," = "),e.insertText(t,_.pos," =>"),[p.Convert_function_declaration_0_to_arrow_function,f.text])}}var GJ,sre,cze=or({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";Ri(),Fo(),GJ="fixImplicitThis",sre=[p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Po({errorCodes:sre,getCodeActions:function(t){const{sourceFile:n,program:i,span:s}=t;let o;const l=Vn.ChangeTracker.with(t,f=>{o=g4e(f,n,s.start,i.getTypeChecker())});return o?[po(GJ,l,o,GJ,p.Fix_all_implicit_this_errors)]:tt},fixIds:[GJ],getAllCodeActions:e=>qc(e,sre,(t,n)=>{g4e(t,n.file,n.start,e.program.getTypeChecker())})})}});function h4e(e,t,n){var i;const s=Za(e,t);if(Be(s)){const o=Sn(s,Tf);if(o===void 0)return;const l=sc(o.moduleSpecifier)?o.moduleSpecifier.text:void 0;if(l===void 0)return;const f=j5(e,l,void 0);if(f===void 0)return;const _=n.getSourceFile(f.resolvedFileName);if(_===void 0||DE(n,_))return;const h=_.symbol,m=(i=di(h.valueDeclaration,nh))==null?void 0:i.locals;if(m===void 0)return;const y=m.get(s.escapedText);if(y===void 0)return;const T=uze(y);return T===void 0?void 0:{exportName:{node:s,isTypeOnly:yk(T)},node:T,moduleSourceFile:_,moduleSpecifier:l}}}function lze(e,t,{exportName:n,node:i,moduleSourceFile:s}){const o=XJ(s,n.isTypeOnly);o?y4e(e,t,s,o,[n]):FN(i)?e.insertExportModifier(s,i):v4e(e,t,s,[n])}function ore(e,t,n,i,s){Nr(i)&&(s?y4e(e,t,n,s,i):v4e(e,t,n,i))}function XJ(e,t){const n=i=>Sf(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return rl(e.statements,n)}function y4e(e,t,n,i,s){const o=i.exportClause&&og(i.exportClause)?i.exportClause.elements:M.createNodeArray([]),l=!i.isTypeOnly&&!!(Fg(t.getCompilerOptions())||on(o,f=>f.isTypeOnly));e.replaceNode(n,i,M.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,M.createNamedExports(M.createNodeArray([...o,...b4e(s,l)],o.hasTrailingComma)),i.moduleSpecifier,i.assertClause))}function v4e(e,t,n,i){e.insertNodeAtEndOfScope(n,n,M.createExportDeclaration(void 0,!1,M.createNamedExports(b4e(i,Fg(t.getCompilerOptions()))),void 0,void 0))}function b4e(e,t){return M.createNodeArray(er(e,n=>M.createExportSpecifier(t&&n.isTypeOnly,void 0,n.node)))}function uze(e){if(e.valueDeclaration===void 0)return Ji(e.declarations);const t=e.valueDeclaration,n=Fa(t)?di(t.parent.parent,S_):void 0;return n&&Nr(n.declarationList.declarations)===1?n:t}var ZJ,cre,_ze=or({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";Ri(),Fo(),ZJ="fixImportNonExportedMember",cre=[p.Module_0_declares_1_locally_but_it_is_not_exported.code],Po({errorCodes:cre,fixIds:[ZJ],getCodeActions(e){const{sourceFile:t,span:n,program:i}=e,s=h4e(t,n.start,i);if(s===void 0)return;const o=Vn.ChangeTracker.with(e,l=>lze(l,i,s));return[po(ZJ,o,[p.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],ZJ,p.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return a8(Vn.ChangeTracker.with(e,n=>{const i=new Map;s8(e,cre,s=>{const o=h4e(s.file,s.start,t);if(o===void 0)return;const{exportName:l,node:f,moduleSourceFile:_}=o;if(XJ(_,l.isTypeOnly)===void 0&&FN(f))n.insertExportModifier(_,f);else{const h=i.get(_)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?h.typeOnlyExports.push(l):h.exports.push(l),i.set(_,h)}}),i.forEach((s,o)=>{const l=XJ(o,!0);l&&l.isTypeOnly?(ore(n,t,o,s.typeOnlyExports,l),ore(n,t,o,s.exports,XJ(o,!1))):ore(n,t,o,[...s.exports,...s.typeOnlyExports],l)})}))}})}});function fze(e,t){const n=Za(e,t);return Sn(n,i=>i.kind===201)}function pze(e,t,n){if(!n)return;let i=n.type,s=!1,o=!1;for(;i.kind===189||i.kind===190||i.kind===195;)i.kind===189?s=!0:i.kind===190&&(o=!0),i=i.type;const l=M.updateNamedTupleMember(n,n.dotDotDotToken||(o?M.createToken(26):void 0),n.name,n.questionToken||(s?M.createToken(58):void 0),i);l!==n&&e.replaceNode(t,n,l)}var YJ,x4e,dze=or({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";Ri(),Fo(),YJ="fixIncorrectNamedTupleSyntax",x4e=[p.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Po({errorCodes:x4e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=fze(n,i.start),o=Vn.ChangeTracker.with(t,l=>pze(l,n,s));return[po(YJ,o,p.Move_labeled_tuple_element_modifiers_to_labels,YJ,p.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[YJ]})}});function T4e(e,t,n,i){const s=Za(e,t),o=s.parent;if((i===p.No_overload_matches_this_call.code||i===p.Type_0_is_not_assignable_to_type_1.code)&&!E1(o))return;const l=n.program.getTypeChecker();let f;if(mi(o)&&o.name===s){D.assert(Uy(s),"Expected an identifier for spelling (property access)");let _=l.getTypeAtLocation(o.expression);o.flags&32&&(_=l.getNonNullableType(_)),f=l.getSuggestedSymbolForNonexistentProperty(s,_)}else if(Un(o)&&o.operatorToken.kind===103&&o.left===s&&Ea(s)){const _=l.getTypeAtLocation(o.right);f=l.getSuggestedSymbolForNonexistentProperty(s,_)}else if(Od(o)&&o.right===s){const _=l.getSymbolAtLocation(o.left);_&&_.flags&1536&&(f=l.getSuggestedSymbolForNonexistentModule(o.right,_))}else if(Ld(o)&&o.name===s){D.assertNode(s,Be,"Expected an identifier for spelling (import)");const _=Sn(s,Tf),h=gze(e,n,_);h&&h.symbol&&(f=l.getSuggestedSymbolForNonexistentModule(s,h.symbol))}else if(E1(o)&&o.name===s){D.assertNode(s,Be,"Expected an identifier for JSX attribute");const _=Sn(s,$p),h=l.getContextualTypeForArgumentAtIndex(_,0);f=l.getSuggestedSymbolForNonexistentJSXAttribute(s,h)}else if(Pi(o,16384)&&yf(o)&&o.name===s){const _=Sn(s,Yi),h=_?T1(_):void 0,m=h?l.getTypeAtLocation(h):void 0;m&&(f=l.getSuggestedSymbolForNonexistentClassMember(F_(s),m))}else{const _=J7(s),h=F_(s);D.assert(h!==void 0,"name should be defined"),f=l.getSuggestedSymbolForNonexistentSymbol(s,h,mze(_))}return f===void 0?void 0:{node:s,suggestedSymbol:f}}function S4e(e,t,n,i,s){const o=Bu(i);if(!r0(o,s)&&mi(n.parent)){const l=i.valueDeclaration;l&&sp(l)&&Ea(l.name)?e.replaceNode(t,n,M.createIdentifier(o)):e.replaceNode(t,n.parent,M.createElementAccessExpression(n.parent.expression,M.createStringLiteral(o)))}else e.replaceNode(t,n,M.createIdentifier(o))}function mze(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function gze(e,t,n){if(!n||!Wc(n.moduleSpecifier))return;const i=j5(e,n.moduleSpecifier.text,_g(e,n.moduleSpecifier));if(i)return t.program.getSourceFile(i.resolvedFileName)}var lre,ure,hze=or({"src/services/codefixes/fixSpelling.ts"(){"use strict";Ri(),Fo(),lre="fixSpelling",ure=[p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,p.Cannot_find_name_0_Did_you_mean_1.code,p.Could_not_find_name_0_Did_you_mean_1.code,p.Cannot_find_namespace_0_Did_you_mean_1.code,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,p._0_has_no_exported_member_named_1_Did_you_mean_2.code,p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,p.No_overload_matches_this_call.code,p.Type_0_is_not_assignable_to_type_1.code],Po({errorCodes:ure,getCodeActions(e){const{sourceFile:t,errorCode:n}=e,i=T4e(t,e.span.start,e,n);if(!i)return;const{node:s,suggestedSymbol:o}=i,l=gc(e.host.getCompilationSettings()),f=Vn.ChangeTracker.with(e,_=>S4e(_,t,s,o,l));return[po("spelling",f,[p.Change_spelling_to_0,Bu(o)],lre,p.Fix_all_detected_spelling_errors)]},fixIds:[lre],getAllCodeActions:e=>qc(e,ure,(t,n)=>{const i=T4e(n.file,n.start,e,n.code),s=gc(e.host.getCompilationSettings());i&&S4e(t,e.sourceFile,i.node,i.suggestedSymbol,s)})})}});function k4e(e,t,n){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(n);const s=To([i]);return e.createAnonymousType(void 0,s,[],[],[])}function _re(e,t,n,i){if(!t.body||!oo(t.body)||Nr(t.body.statements)!==1)return;const s=Fi(t.body.statements);if($f(s)&&fre(e,t,e.getTypeAtLocation(s.expression),n,i))return{declaration:t,kind:0,expression:s.expression,statement:s,commentSource:s.expression};if(b3(s)&&$f(s.statement)){const o=M.createObjectLiteralExpression([M.createPropertyAssignment(s.label,s.statement.expression)]),l=k4e(e,s.label,s.statement.expression);if(fre(e,t,l,n,i))return Fl(t)?{declaration:t,kind:1,expression:o,statement:s,commentSource:s.statement.expression}:{declaration:t,kind:0,expression:o,statement:s,commentSource:s.statement.expression}}else if(oo(s)&&Nr(s.statements)===1){const o=Fi(s.statements);if(b3(o)&&$f(o.statement)){const l=M.createObjectLiteralExpression([M.createPropertyAssignment(o.label,o.statement.expression)]),f=k4e(e,o.label,o.statement.expression);if(fre(e,t,f,n,i))return{declaration:t,kind:0,expression:l,statement:s,commentSource:o}}}}function fre(e,t,n,i,s){if(s){const o=e.getSignatureFromDeclaration(t);if(o){Pi(t,512)&&(n=e.createPromiseType(n));const l=e.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=e.createAnonymousType(void 0,To(),[l],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,i)}function C4e(e,t,n,i){const s=Za(t,n);if(!s.parent)return;const o=Sn(s.parent,Jl);switch(i){case p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!o||!o.body||!o.type||!wm(o.type,s)?void 0:_re(e,o,e.getTypeFromTypeNode(o.type),!1);case p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!go(o.parent)||!o.body)return;const l=o.parent.arguments.indexOf(o),f=e.getContextualTypeForArgumentAtIndex(o.parent,l);return f?_re(e,o,f,!0):void 0;case p.Type_0_is_not_assignable_to_type_1.code:if(!Gy(s)||!$5(s.parent)&&!E1(s.parent))return;const _=yze(s.parent);return!_||!Jl(_)||!_.body?void 0:_re(e,_,e.getTypeAtLocation(s.parent),!0)}}function yze(e){switch(e.kind){case 259:case 168:case 207:case 171:case 302:return e.initializer;case 290:return e.initializer&&(V9(e.initializer)?e.initializer.expression:void 0);case 303:case 170:case 305:case 354:case 347:return}}function w4e(e,t,n,i){rm(n);const s=UP(t);e.replaceNode(t,i,M.createReturnStatement(n),{leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.Exclude,suffix:s?";":void 0})}function E4e(e,t,n,i,s,o){const l=o||wK(i)?M.createParenthesizedExpression(i):i;rm(s),$7(s,l),e.replaceNode(t,n.body,l)}function A4e(e,t,n,i){e.replaceNode(t,n.body,M.createParenthesizedExpression(i))}function vze(e,t,n){const i=Vn.ChangeTracker.with(e,s=>w4e(s,e.sourceFile,t,n));return po(QJ,i,p.Add_a_return_statement,KJ,p.Add_all_missing_return_statement)}function bze(e,t,n,i){const s=Vn.ChangeTracker.with(e,o=>E4e(o,e.sourceFile,t,n,i,!1));return po(QJ,s,p.Remove_braces_from_arrow_function_body,eU,p.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function xze(e,t,n){const i=Vn.ChangeTracker.with(e,s=>A4e(s,e.sourceFile,t,n));return po(QJ,i,p.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,tU,p.Wrap_all_object_literal_with_parentheses)}var QJ,KJ,eU,tU,pre,Tze=or({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";Ri(),Fo(),QJ="returnValueCorrect",KJ="fixAddReturnStatement",eU="fixRemoveBracesFromArrowFunctionBody",tU="fixWrapTheBlockWithParen",pre=[p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,p.Type_0_is_not_assignable_to_type_1.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Po({errorCodes:pre,fixIds:[KJ,eU,tU],getCodeActions:function(t){const{program:n,sourceFile:i,span:{start:s},errorCode:o}=t,l=C4e(n.getTypeChecker(),i,s,o);if(l)return l.kind===0?Ht([vze(t,l.expression,l.statement)],Fl(l.declaration)?bze(t,l.declaration,l.expression,l.commentSource):void 0):[xze(t,l.declaration,l.expression)]},getAllCodeActions:e=>qc(e,pre,(t,n)=>{const i=C4e(e.program.getTypeChecker(),n.file,n.start,n.code);if(i)switch(e.fixId){case KJ:w4e(t,n.file,i.expression,i.statement);break;case eU:if(!Fl(i.declaration))return;E4e(t,n.file,i.declaration,i.expression,i.commentSource,!1);break;case tU:if(!Fl(i.declaration))return;A4e(t,n.file,i.declaration,i.expression);break;default:D.fail(JSON.stringify(e.fixId))}})})}});function D4e(e,t,n,i,s){var o;const l=Za(e,t),f=l.parent;if(n===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&Dc(f)&&go(f.parent)))return;const k=zi(f.parent.arguments,B=>B===f);if(k<0)return;const E=i.getResolvedSignature(f.parent);if(!(E&&E.declaration&&E.parameters[k]))return;const O=E.parameters[k].valueDeclaration;if(!(O&&Cs(O)&&Be(O.name)))return;const N=zt(i.getUnmatchedProperties(i.getTypeAtLocation(f),i.getParameterType(E,k),!1,!1));return Nr(N)?{kind:3,token:O.name,properties:N,parentDeclaration:f}:void 0}if(!Uy(l))return;if(Be(l)&&lb(f)&&f.initializer&&Dc(f.initializer)){const k=i.getContextualType(l)||i.getTypeAtLocation(l),E=zt(i.getUnmatchedProperties(i.getTypeAtLocation(f.initializer),k,!1,!1));return Nr(E)?{kind:3,token:l,properties:E,parentDeclaration:f.initializer}:void 0}if(Be(l)&&$p(l.parent)){const k=gc(s.getCompilerOptions()),E=Dze(i,k,l.parent);return Nr(E)?{kind:4,token:l,attributes:E,parentDeclaration:l.parent}:void 0}if(Be(l)){const k=(o=i.getContextualType(l))==null?void 0:o.getNonNullableType();if(k&&Mi(k)&16){const E=Ji(i.getSignaturesOfType(k,0));return E===void 0?void 0:{kind:5,token:l,signature:E,sourceFile:e,parentDeclaration:z4e(l)}}if(go(f)&&f.expression===l)return{kind:2,token:l,call:f,sourceFile:e,modifierFlags:0,parentDeclaration:z4e(l)}}if(!mi(f))return;const _=uK(i.getTypeAtLocation(f.expression)),h=_.symbol;if(!h||!h.declarations)return;if(Be(l)&&go(f.parent)){const k=on(h.declarations,Vu),E=k==null?void 0:k.getSourceFile();if(k&&E&&!DE(s,E))return{kind:2,token:l,call:f.parent,sourceFile:e,modifierFlags:1,parentDeclaration:k};const O=on(h.declarations,Ja);if(e.commonJsModuleIndicator)return;if(O&&!DE(s,O))return{kind:2,token:l,call:f.parent,sourceFile:O,modifierFlags:1,parentDeclaration:O}}const m=on(h.declarations,Yi);if(!m&&Ea(l))return;const y=m||on(h.declarations,k=>Lp(k)||Sm(k));if(y&&!DE(s,y.getSourceFile())){const k=!Sm(y)&&(_.target||_)!==i.getDeclaredTypeOfSymbol(h);if(k&&(Ea(l)||Lp(y)))return;const E=y.getSourceFile(),O=Sm(y)?0:(k?32:0)|(FK(l.text)?8:0),N=Ip(E),B=di(f.parent,go);return{kind:0,token:l,call:B,modifierFlags:O,parentDeclaration:y,declSourceFile:E,isJSFile:N}}const T=on(h.declarations,j4);if(T&&!(_.flags&1056)&&!Ea(l)&&!DE(s,T.getSourceFile()))return{kind:1,token:l,parentDeclaration:T}}function Sze(e,t){return t.isJSFile?pa(kze(e,t)):Cze(e,t)}function kze(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){if(Lp(t)||Sm(t))return;const o=Vn.ChangeTracker.with(e,f=>N4e(f,n,t,s,!!(i&32)));if(o.length===0)return;const l=i&32?p.Initialize_static_property_0:Ea(s)?p.Declare_a_private_field_named_0:p.Initialize_property_0_in_the_constructor;return po(u2,o,[l,s.text],u2,p.Add_all_missing_members)}function N4e(e,t,n,i,s){const o=i.text;if(s){if(n.kind===230)return;const l=n.name.getText(),f=I4e(M.createIdentifier(l),o);e.insertNodeAfter(t,n,f)}else if(Ea(i)){const l=M.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),f=M4e(n);f?e.insertNodeAfter(t,f,l):e.insertMemberAtStart(t,n,l)}else{const l=ay(n);if(!l)return;const f=I4e(M.createThis(),o);e.insertNodeAtConstructorEnd(t,l,f)}}function I4e(e,t){return M.createExpressionStatement(M.createAssignment(M.createPropertyAccessExpression(e,t),Y7()))}function Cze(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){const o=s.text,l=i&32,f=P4e(e.program.getTypeChecker(),t,s),_=m=>Vn.ChangeTracker.with(e,y=>O4e(y,n,t,o,f,m)),h=[po(u2,_(i&32),[l?p.Declare_static_property_0:p.Declare_property_0,o],u2,p.Add_all_missing_members)];return l||Ea(s)||(i&8&&h.unshift(Wg(u2,_(8),[p.Declare_private_property_0,o])),h.push(wze(e,n,t,s.text,f))),h}function P4e(e,t,n){let i;if(n.parent.parent.kind===225){const s=n.parent.parent,o=n.parent===s.left?s.right:s.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));i=e.typeToTypeNode(l,t,1)}else{const s=e.getContextualType(n.parent);i=s?e.typeToTypeNode(s,void 0,1):void 0}return i||M.createKeywordTypeNode(133)}function O4e(e,t,n,i,s,o){const l=o?M.createNodeArray(M.createModifiersFromModifierFlags(o)):void 0,f=Yi(n)?M.createPropertyDeclaration(l,i,void 0,s,void 0):M.createPropertySignature(void 0,i,void 0,s),_=M4e(n);_?e.insertNodeAfter(t,_,f):e.insertMemberAtStart(t,n,f)}function M4e(e){let t;for(const n of e.members){if(!fo(n))break;t=n}return t}function wze(e,t,n,i,s){const o=M.createKeywordTypeNode(154),l=M.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),f=M.createIndexSignature(void 0,[l],s),_=Vn.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,n,f));return Wg(u2,_,[p.Add_index_signature_for_property_0,i])}function Eze(e,t){const{parentDeclaration:n,declSourceFile:i,modifierFlags:s,token:o,call:l}=t;if(l===void 0||Ea(o))return;const f=o.text,_=m=>Vn.ChangeTracker.with(e,y=>L4e(e,y,l,o,m,n,i)),h=[po(u2,_(s&32),[s&32?p.Declare_static_method_0:p.Declare_method_0,f],u2,p.Add_all_missing_members)];return s&8&&h.unshift(Wg(u2,_(8),[p.Declare_private_method_0,f])),h}function L4e(e,t,n,i,s,o,l){const f=Z7(l,e.program,e.preferences,e.host),_=Yi(o)?173:172,h=Zre(_,e,f,n,i,s,o),m=Nze(o,n);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,o,h),f.writeFixes(t)}function F4e(e,t,{token:n,parentDeclaration:i}){const s=bt(i.members,l=>{const f=t.getTypeAtLocation(l);return!!(f&&f.flags&402653316)}),o=M.createEnumMember(n,s?M.createStringLiteral(n.text):void 0);e.replaceNode(i.getSourceFile(),i,M.updateEnumDeclaration(i,i.modifiers,i.name,Nn(i.members,pa(o))),{leadingTriviaOption:Vn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Vn.TrailingTriviaOption.Exclude})}function R4e(e,t,n){const i=f0(t.sourceFile,t.preferences),s=Z7(t.sourceFile,t.program,t.preferences,t.host),o=n.kind===2?Zre(261,t,s,n.call,ri(n.token),n.modifierFlags,n.parentDeclaration):EU(261,t,i,n.signature,SO(p.Function_not_implemented.message,i),n.token,void 0,void 0,void 0,s);o===void 0&&D.fail("fixMissingFunctionDeclaration codefix got unexpected error."),jg(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),s.writeFixes(e)}function B4e(e,t,n){const i=Z7(t.sourceFile,t.program,t.preferences,t.host),s=f0(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),l=n.parentDeclaration.attributes,f=bt(l.properties,RS),_=er(n.attributes,y=>{const T=rU(t,o,i,s,o.getTypeOfSymbol(y),n.parentDeclaration),k=M.createIdentifier(y.name),E=M.createJsxAttribute(k,M.createJsxExpression(void 0,T));return fc(k,E),E}),h=M.createJsxAttributes(f?[..._,...l.properties]:[...l.properties,..._]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,h,m),i.writeFixes(e)}function j4e(e,t,n){const i=Z7(t.sourceFile,t.program,t.preferences,t.host),s=f0(t.sourceFile,t.preferences),o=gc(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),f=er(n.properties,h=>{const m=rU(t,l,i,s,l.getTypeOfSymbol(h),n.parentDeclaration);return M.createPropertyAssignment(Ize(h,o,s,l),m)}),_={leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,M.createObjectLiteralExpression([...n.parentDeclaration.properties,...f],!0),_),i.writeFixes(e)}function rU(e,t,n,i,s,o){if(s.flags&3)return Y7();if(s.flags&134217732)return M.createStringLiteral("",i===0);if(s.flags&8)return M.createNumericLiteral(0);if(s.flags&64)return M.createBigIntLiteral("0n");if(s.flags&16)return M.createFalse();if(s.flags&1056){const l=s.symbol.exports?nc(s.symbol.exports.values()):s.symbol,f=t.symbolToExpression(s.symbol.parent?s.symbol.parent:s.symbol,111551,void 0,void 0);return l===void 0||f===void 0?M.createNumericLiteral(0):M.createPropertyAccessExpression(f,t.symbolToString(l))}if(s.flags&256)return M.createNumericLiteral(s.value);if(s.flags&2048)return M.createBigIntLiteral(s.value);if(s.flags&128)return M.createStringLiteral(s.value,i===0);if(s.flags&512)return s===t.getFalseType()||s===t.getFalseType(!0)?M.createFalse():M.createTrue();if(s.flags&65536)return M.createNull();if(s.flags&1048576){const l=bo(s.types,f=>rU(e,t,n,i,f,o));return l!=null?l:Y7()}if(t.isArrayLikeType(s))return M.createArrayLiteralExpression();if(Aze(s)){const l=er(t.getPropertiesOfType(s),f=>{const _=rU(e,t,n,i,t.getTypeOfSymbol(f),o);return M.createPropertyAssignment(f.name,_)});return M.createObjectLiteralExpression(l,!0)}if(Mi(s)&16){if(on(s.symbol.declarations||tt,Mf(uy,ly,g_))===void 0)return Y7();const f=t.getSignaturesOfType(s,0);if(f===void 0)return Y7();const _=EU(217,e,i,f[0],SO(p.Function_not_implemented.message,i),void 0,void 0,void 0,o,n);return _!=null?_:Y7()}if(Mi(s)&1){const l=Zy(s.symbol);if(l===void 0||p3(l))return Y7();const f=ay(l);return f&&Nr(f.parameters)?Y7():M.createNewExpression(M.createIdentifier(s.symbol.name),void 0,void 0)}return Y7()}function Y7(){return M.createIdentifier("undefined")}function Aze(e){return e.flags&524288&&(Mi(e)&128||e.symbol&&di(de(e.symbol.declarations),Sm))}function Dze(e,t,n){const i=e.getContextualType(n.attributes);if(i===void 0)return tt;const s=i.getProperties();if(!Nr(s))return tt;const o=new Set;for(const l of n.attributes.properties)if(E1(l)&&o.add(C9(l.name)),RS(l)){const f=e.getTypeAtLocation(l.expression);for(const _ of f.getProperties())o.add(_.escapedName)}return Mn(s,l=>r0(l.name,t,1)&&!(l.flags&16777216||Du(l)&48||o.has(l.escapedName)))}function Nze(e,t){if(Sm(e))return;const n=Sn(t,i=>g_(i)||Uu(i));return n&&n.parent===e?n:void 0}function Ize(e,t,n,i){if(ih(e)){const s=i.symbolToNode(e,111551,void 0,1073741824);if(s&&jc(s))return s}return XF(e.name,t,n===0)}function z4e(e){if(Sn(e,V9)){const t=Sn(e.parent,jg);if(t)return t}return bn(e)}var u2,hO,yO,vO,dre,Pze=or({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";Ri(),Fo(),u2="fixMissingMember",hO="fixMissingProperties",yO="fixMissingAttributes",vO="fixMissingFunctionDeclaration",dre=[p.Property_0_does_not_exist_on_type_1.code,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_is_missing_in_type_1_but_required_in_type_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Cannot_find_name_0.code],Po({errorCodes:dre,getCodeActions(e){const t=e.program.getTypeChecker(),n=D4e(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(n.kind===3){const i=Vn.ChangeTracker.with(e,s=>j4e(s,e,n));return[po(hO,i,p.Add_missing_properties,hO,p.Add_all_missing_properties)]}if(n.kind===4){const i=Vn.ChangeTracker.with(e,s=>B4e(s,e,n));return[po(yO,i,p.Add_missing_attributes,yO,p.Add_all_missing_attributes)]}if(n.kind===2||n.kind===5){const i=Vn.ChangeTracker.with(e,s=>R4e(s,e,n));return[po(vO,i,[p.Add_missing_function_declaration_0,n.token.text],vO,p.Add_all_missing_function_declarations)]}if(n.kind===1){const i=Vn.ChangeTracker.with(e,s=>F4e(s,e.program.getTypeChecker(),n));return[po(u2,i,[p.Add_missing_enum_member_0,n.token.text],u2,p.Add_all_missing_members)]}return Nn(Eze(e,n),Sze(e,n))}},fixIds:[u2,vO,hO,yO],getAllCodeActions:e=>{const{program:t,fixId:n}=e,i=t.getTypeChecker(),s=new Map,o=new Map;return a8(Vn.ChangeTracker.with(e,l=>{s8(e,dre,f=>{const _=D4e(f.file,f.start,f.code,i,e.program);if(!(!_||!Lg(s,Nc(_.parentDeclaration)+"#"+_.token.text))){if(n===vO&&(_.kind===2||_.kind===5))R4e(l,e,_);else if(n===hO&&_.kind===3)j4e(l,e,_);else if(n===yO&&_.kind===4)B4e(l,e,_);else if(_.kind===1&&F4e(l,i,_),_.kind===0){const{parentDeclaration:h,token:m}=_,y=$d(o,h,()=>[]);y.some(T=>T.token.text===m.text)||y.push(_)}}}),o.forEach((f,_)=>{const h=Sm(_)?void 0:ine(_,i);for(const m of f){if(h!=null&&h.some(B=>{const U=o.get(B);return!!U&&U.some(({token:V})=>V.text===m.token.text)}))continue;const{parentDeclaration:y,declSourceFile:T,modifierFlags:k,token:E,call:O,isJSFile:N}=m;if(O&&!Ea(E))L4e(e,l,O,E,k&32,y,T);else if(N&&!Lp(y)&&!Sm(y))N4e(l,T,y,E,!!(k&32));else{const B=P4e(i,y,E);O4e(l,T,y,E.text,B,k&32)}}})}))}})}});function J4e(e,t,n){const i=Ws(Oze(t,n),go),s=M.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,s)}function Oze(e,t){let n=Za(e,t.start);const i=qf(t);for(;n.endJ4e(s,t,n));return[po(nU,i,p.Add_missing_new_operator_to_call,nU,p.Add_missing_new_operator_to_all_calls)]},fixIds:[nU],getAllCodeActions:e=>qc(e,mre,(t,n)=>J4e(t,e.sourceFile,n))})}});function U4e(e,t){return{type:"install package",file:e,packageName:t}}function V4e(e,t){const n=di(Za(e,t),sc);if(!n)return;const i=n.text,{packageName:s}=tZ(i);return hf(s)?void 0:s}function W4e(e,t,n){var i;return n===gre?z7.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?IB(e):void 0}var q4e,iU,gre,hre,Lze=or({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";Ri(),Fo(),q4e="fixCannotFindModule",iU="installTypesPackage",gre=p.Cannot_find_module_0_or_its_corresponding_type_declarations.code,hre=[gre,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Po({errorCodes:hre,getCodeActions:function(t){const{host:n,sourceFile:i,span:{start:s}}=t,o=V4e(i,s);if(o===void 0)return;const l=W4e(o,n,t.errorCode);return l===void 0?[]:[po(q4e,[],[p.Install_0,l],iU,p.Install_all_missing_types_packages,U4e(i.fileName,l))]},fixIds:[iU],getAllCodeActions:e=>qc(e,hre,(t,n,i)=>{const s=V4e(n.file,n.start);if(s!==void 0)switch(e.fixId){case iU:{const o=W4e(s,e.host,n.code);o&&i.push(U4e(n.file.fileName,o));break}default:D.fail(`Bad fixId: ${e.fixId}`)}})})}});function $4e(e,t){const n=Za(e,t);return Ws(n.parent,Yi)}function H4e(e,t,n,i,s){const o=T1(e),l=n.program.getTypeChecker(),f=l.getTypeAtLocation(o),_=l.getPropertiesOfType(f).filter(Fze),h=Z7(t,n.program,s,n.host);Xre(e,_,t,n,s,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function Fze(e){const t=pb(Fi(e.getDeclarations()));return!(t&8)&&!!(t&256)}var yre,aU,Rze=or({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";Ri(),Fo(),yre=[p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],aU="fixClassDoesntImplementInheritedAbstractMember",Po({errorCodes:yre,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=Vn.ChangeTracker.with(t,o=>H4e($4e(n,i.start),n,t,o,t.preferences));return s.length===0?void 0:[po(aU,s,p.Implement_inherited_abstract_class,aU,p.Implement_all_inherited_abstract_classes)]},fixIds:[aU],getAllCodeActions:function(t){const n=new Map;return qc(t,yre,(i,s)=>{const o=$4e(s.file,s.start);Lg(n,Nc(o))&&H4e(o,t.sourceFile,t,i,t.preferences)})}})}});function G4e(e,t,n,i){e.insertNodeAtConstructorStart(t,n,i),e.delete(t,i)}function X4e(e,t){const n=Za(e,t);if(n.kind!==110)return;const i=Jm(n),s=Z4e(i.body);return s&&!s.expression.arguments.some(o=>mi(o)&&o.expression===n)?{constructor:i,superCall:s}:void 0}function Z4e(e){return $f(e)&&W5(e.expression)?e:Qs(e)?void 0:js(e,Z4e)}var sU,vre,Bze=or({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";Ri(),Fo(),sU="classSuperMustPrecedeThisAccess",vre=[p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Po({errorCodes:vre,getCodeActions(e){const{sourceFile:t,span:n}=e,i=X4e(t,n.start);if(!i)return;const{constructor:s,superCall:o}=i,l=Vn.ChangeTracker.with(e,f=>G4e(f,t,s,o));return[po(sU,l,p.Make_super_call_the_first_statement_in_the_constructor,sU,p.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[sU],getAllCodeActions(e){const{sourceFile:t}=e,n=new Map;return qc(e,vre,(i,s)=>{const o=X4e(s.file,s.start);if(!o)return;const{constructor:l,superCall:f}=o;Lg(n,Nc(l.parent))&&G4e(i,t,l,f)})}})}});function Y4e(e,t){const n=Za(e,t);return D.assert(Uu(n.parent),"token should be at the constructor declaration"),n.parent}function Q4e(e,t,n){const i=M.createExpressionStatement(M.createCallExpression(M.createSuper(),void 0,tt));e.insertNodeAtConstructorStart(t,n,i)}var oU,bre,jze=or({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";Ri(),Fo(),oU="constructorForDerivedNeedSuperCall",bre=[p.Constructors_for_derived_classes_must_contain_a_super_call.code],Po({errorCodes:bre,getCodeActions(e){const{sourceFile:t,span:n}=e,i=Y4e(t,n.start),s=Vn.ChangeTracker.with(e,o=>Q4e(o,t,i));return[po(oU,s,p.Add_missing_super_call,oU,p.Add_all_missing_super_calls)]},fixIds:[oU],getAllCodeActions:e=>qc(e,bre,(t,n)=>Q4e(t,e.sourceFile,Y4e(n.file,n.start)))})}});function K4e(e,t){ene(e,t,"jsx",M.createStringLiteral("react"))}var xre,Tre,zze=or({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";Ri(),Fo(),xre="fixEnableJsxFlag",Tre=[p.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Po({errorCodes:Tre,getCodeActions:function(t){const{configFile:n}=t.program.getCompilerOptions();if(n===void 0)return;const i=Vn.ChangeTracker.with(t,s=>K4e(s,n));return[Wg(xre,i,p.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[xre],getAllCodeActions:e=>qc(e,Tre,t=>{const{configFile:n}=e.program.getCompilerOptions();n!==void 0&&K4e(t,n)})})}});function e6e(e,t,n){const i=on(e.getSemanticDiagnostics(t),l=>l.start===n.start&&l.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;const s=on(i.relatedInformation,l=>l.code===p.Did_you_mean_0.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;const o=rne(s.file,nf(s.start,s.length));if(o!==void 0&&ht(o)&&Un(o.parent))return{suggestion:Jze(s.messageText),expression:o.parent,arg:o}}function t6e(e,t,n,i){const s=M.createCallExpression(M.createPropertyAccessExpression(M.createIdentifier("Number"),M.createIdentifier("isNaN")),void 0,[n]),o=i.operatorToken.kind;e.replaceNode(t,i,o===38||o===36?M.createPrefixUnaryExpression(54,s):s)}function Jze(e){const[t,n]=Sb(e,` -`,0).match(/\'(.*)\'/)||[];return n}var cU,Sre,Uze=or({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";Ri(),Fo(),cU="fixNaNEquality",Sre=[p.This_condition_will_always_return_0.code],Po({errorCodes:Sre,getCodeActions(e){const{sourceFile:t,span:n,program:i}=e,s=e6e(i,t,n);if(s===void 0)return;const{suggestion:o,expression:l,arg:f}=s,_=Vn.ChangeTracker.with(e,h=>t6e(h,t,f,l));return[po(cU,_,[p.Use_0,o],cU,p.Use_Number_isNaN_in_all_conditions)]},fixIds:[cU],getAllCodeActions:e=>qc(e,Sre,(t,n)=>{const i=e6e(e.program,n.file,nf(n.start,n.length));i&&t6e(t,n.file,i.arg,i.expression)})})}}),Vze=or({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";Ri(),Fo(),Po({errorCodes:[p.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,p.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const n=t.program.getCompilerOptions(),{configFile:i}=n;if(i===void 0)return;const s=[],o=Ff(n);if(o>=5&&o<99){const h=Vn.ChangeTracker.with(t,m=>{ene(m,i,"module",M.createStringLiteral("esnext"))});s.push(Wg("fixModuleOption",h,[p.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const f=gc(n);if(f<4||f>99){const h=Vn.ChangeTracker.with(t,m=>{if(!Vw(i))return;const T=[["target",M.createStringLiteral("es2017")]];o===1&&T.push(["module",M.createStringLiteral("commonjs")]),Kre(m,i,T)});s.push(Wg("fixTargetOption",h,[p.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return s.length?s:void 0}})}});function r6e(e,t,n){e.replaceNode(t,n,M.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function n6e(e,t){return Ws(Za(e,t).parent,_0)}var lU,kre,Wze=or({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";Ri(),Fo(),lU="fixPropertyAssignment",kre=[p.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],Po({errorCodes:kre,fixIds:[lU],getCodeActions(e){const{sourceFile:t,span:n}=e,i=n6e(t,n.start),s=Vn.ChangeTracker.with(e,o=>r6e(o,e.sourceFile,i));return[po(lU,s,[p.Change_0_to_1,"=",":"],lU,[p.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>qc(e,kre,(t,n)=>r6e(t,n.file,n6e(n.file,n.start)))})}});function i6e(e,t){const n=Za(e,t),i=Z_(n).heritageClauses,s=i[0].getFirstToken();return s.kind===96?{extendsToken:s,heritageClauses:i}:void 0}function a6e(e,t,n,i){if(e.replaceNode(t,n,M.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const s=i[1].getFirstToken(),o=s.getFullStart();e.replaceRange(t,{pos:o,end:o},M.createToken(28));const l=t.text;let f=s.end;for(;fa6e(l,t,i,s));return[po(uU,o,p.Change_extends_to_implements,uU,p.Change_all_extended_interfaces_to_implements)]},fixIds:[uU],getAllCodeActions:e=>qc(e,Cre,(t,n)=>{const i=i6e(n.file,n.start);i&&a6e(t,n.file,i.extendsToken,i.heritageClauses)})})}});function s6e(e,t,n){const i=Za(e,t);if(Be(i)||Ea(i))return{node:i,className:n===wre?Z_(i).name.text:void 0}}function o6e(e,t,{node:n,className:i}){rm(n),e.replaceNode(t,n,M.createPropertyAccessExpression(i?M.createIdentifier(i):M.createThis(),n))}var _U,wre,Ere,$ze=or({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";Ri(),Fo(),_U="forgottenThisPropertyAccess",wre=p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Ere=[p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,wre],Po({errorCodes:Ere,getCodeActions(e){const{sourceFile:t}=e,n=s6e(t,e.span.start,e.errorCode);if(!n)return;const i=Vn.ChangeTracker.with(e,s=>o6e(s,t,n));return[po(_U,i,[p.Add_0_to_unresolved_variable,n.className||"this"],_U,p.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[_U],getAllCodeActions:e=>qc(e,Ere,(t,n)=>{const i=s6e(n.file,n.start,n.code);i&&o6e(t,e.sourceFile,i)})})}});function Hze(e){return Hs(Nre,e)}function Are(e,t,n,i,s){const o=n.getText()[i];if(!Hze(o))return;const l=s?Nre[o]:`{${wE(n,t,o)}}`;e.replaceRangeWithText(n,{pos:i,end:i+1},l)}var fU,bO,Dre,Nre,Gze=or({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";Ri(),Fo(),fU="fixInvalidJsxCharacters_expression",bO="fixInvalidJsxCharacters_htmlEntity",Dre=[p.Unexpected_token_Did_you_mean_or_gt.code,p.Unexpected_token_Did_you_mean_or_rbrace.code],Po({errorCodes:Dre,fixIds:[fU,bO],getCodeActions(e){const{sourceFile:t,preferences:n,span:i}=e,s=Vn.ChangeTracker.with(e,l=>Are(l,n,t,i.start,!1)),o=Vn.ChangeTracker.with(e,l=>Are(l,n,t,i.start,!0));return[po(fU,s,p.Wrap_invalid_character_in_an_expression_container,fU,p.Wrap_all_invalid_characters_in_an_expression_container),po(bO,o,p.Convert_invalid_character_to_its_html_entity_code,bO,p.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return qc(e,Dre,(t,n)=>Are(t,e.preferences,n.file,n.start,e.fixId===bO))}}),Nre={">":">","}":"}"}}});function Xze(e,{name:t,jsDocHost:n,jsDocParameterTag:i}){const s=Vn.ChangeTracker.with(e,o=>o.filterJSDocTags(e.sourceFile,n,l=>l!==i));return po(xO,s,[p.Delete_unused_param_tag_0,t.getText(e.sourceFile)],xO,p.Delete_all_unused_param_tags)}function Zze(e,{name:t,jsDocHost:n,signature:i,jsDocParameterTag:s}){if(!Nr(i.parameters))return;const o=e.sourceFile,l=Z6(i),f=new Set;for(const y of l)Jg(y)&&Be(y.name)&&f.add(y.name.escapedText);const _=bo(i.parameters,y=>Be(y.name)&&!f.has(y.name.escapedText)?y.name.getText(o):void 0);if(_===void 0)return;const h=M.updateJSDocParameterTag(s,s.tagName,M.createIdentifier(_),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),m=Vn.ChangeTracker.with(e,y=>y.replaceJSDocComment(o,n,er(l,T=>T===s?h:T)));return Wg(Ire,m,[p.Rename_param_tag_name_0_to_1,t.getText(o),_])}function c6e(e,t){const n=Za(e,t);if(n.parent&&Jg(n.parent)&&Be(n.parent.name)){const i=n.parent,s=lS(i),o=N4(i);if(s&&o)return{jsDocHost:s,signature:o,name:n.parent.name,jsDocParameterTag:i}}}var xO,Ire,Pre,Yze=or({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";Ri(),Fo(),xO="deleteUnmatchedParameter",Ire="renameUnmatchedParameter",Pre=[p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Po({fixIds:[xO,Ire],errorCodes:Pre,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=[],o=c6e(n,i.start);if(o)return Ht(s,Xze(t,o)),Ht(s,Zze(t,o)),s},getAllCodeActions:function(t){const n=new Map;return a8(Vn.ChangeTracker.with(t,i=>{s8(t,Pre,({file:s,start:o})=>{const l=c6e(s,o);l&&n.set(l.signature,Ht(n.get(l.signature),l.jsDocParameterTag))}),n.forEach((s,o)=>{if(t.fixId===xO){const l=new Set(s);i.filterJSDocTags(o.getSourceFile(),o,f=>!l.has(f))}})}))}})}});function Qze(e,t,n){const i=di(Za(e,n),Be);if(!i||i.parent.kind!==182)return;const o=t.getTypeChecker().getSymbolAtLocation(i);return on((o==null?void 0:o.declarations)||tt,Mf(hh,Ld,Hf))}function Kze(e,t,n,i){if(n.kind===270){e.insertModifierBefore(t,156,n.name);return}const s=n.kind===272?n:n.parent.parent;if(s.name&&s.namedBindings)return;const o=i.getTypeChecker();dF(s,f=>{if(Id(f.symbol,o).flags&111551)return!0})||e.insertModifierBefore(t,156,s)}function eJe(e,t,n,i){UE.doChangeNamedToNamespaceOrDefault(t,i,e,n.parent)}var pU,l6e,tJe=or({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";Ri(),Fo(),pU="fixUnreferenceableDecoratorMetadata",l6e=[p.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Po({errorCodes:l6e,getCodeActions:e=>{const t=Qze(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Vn.ChangeTracker.with(e,o=>t.kind===275&&eJe(o,e.sourceFile,t,e.program)),i=Vn.ChangeTracker.with(e,o=>Kze(o,e.sourceFile,t,e.program));let s;return n.length&&(s=Ht(s,Wg(pU,n,p.Convert_named_imports_to_namespace_import))),i.length&&(s=Ht(s,Wg(pU,i,p.Convert_to_type_only_import))),s},fixIds:[pU]})}});function u6e(e,t,n){e.replaceNode(t,n.parent,M.createKeywordTypeNode(159))}function GE(e,t){return po(XE,e,t,gU,p.Delete_all_unused_declarations)}function _6e(e,t,n){e.delete(t,D.checkDefined(Ws(n.parent,y$).typeParameters,"The type parameter to delete should exist"))}function Ore(e){return e.kind===102||e.kind===80&&(e.parent.kind===275||e.parent.kind===272)}function f6e(e){return e.kind===102?di(e.parent,Tf):void 0}function p6e(e,t){return of(t.parent)&&Fi(t.parent.getChildren(e))===t}function d6e(e,t,n){e.delete(t,n.parent.kind===242?n.parent:n)}function rJe(e,t,n){Vt(n.elements,i=>e.delete(t,i))}function nJe(e,t,n,{parent:i}){if(Fa(i)&&i.initializer&&n7(i.initializer))if(of(i.parent)&&Nr(i.parent.declarations)>1){const s=i.parent.parent,o=s.getStart(n),l=s.end;t.delete(n,i),t.insertNodeAt(n,l,i.initializer,{prefix:wb(e.host,e.formatContext.options)+n.text.slice(ez(n.text,o-1),o),suffix:UP(n)?";":""})}else t.replaceNode(n,i.parent,i.initializer);else t.delete(n,i)}function m6e(e,t,n,i){t!==p.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=Ws(i.parent,AS).typeParameter.name),Be(i)&&iJe(i)&&(e.replaceNode(n,i,M.createIdentifier(`_${i.text}`)),Cs(i.parent)&&D5(i.parent).forEach(s=>{Be(s.name)&&e.replaceNode(n,s.name,M.createIdentifier(`_${s.name.text}`))})))}function iJe(e){switch(e.parent.kind){case 168:case 167:return!0;case 259:switch(e.parent.parent.parent.kind){case 249:case 248:return!0}}return!1}function dU(e,t,n,i,s,o,l,f){aJe(t,n,e,i,s,o,l,f),Be(t)&&tu.Core.eachSymbolReferenceInFile(t,i,e,_=>{mi(_.parent)&&_.parent.name===_&&(_=_.parent),!f&&lJe(_)&&n.delete(e,_.parent.parent)})}function aJe(e,t,n,i,s,o,l,f){const{parent:_}=e;if(Cs(_))sJe(t,n,_,i,s,o,l,f);else if(!(f&&Be(e)&&tu.Core.isSymbolReferencedInFile(e,i,n))){const h=hh(_)?e:jc(_)?_.parent:_;D.assert(h!==n,"should not delete whole source file"),t.delete(n,h)}}function sJe(e,t,n,i,s,o,l,f=!1){if(oJe(i,t,n,s,o,l,f))if(n.modifiers&&n.modifiers.length>0&&(!Be(n.name)||tu.Core.isSymbolReferencedInFile(n.name,i,t)))for(const _ of n.modifiers)Do(_)&&e.deleteModifier(t,_);else!n.initializer&&g6e(n,i,s)&&e.delete(t,n)}function g6e(e,t,n){const i=e.parent.parameters.indexOf(e);return!tu.Core.someSignatureUsage(e.parent,n,t,(s,o)=>!o||o.arguments.length>i)}function oJe(e,t,n,i,s,o,l){const{parent:f}=n;switch(f.kind){case 173:case 175:const _=f.parameters.indexOf(n),h=g_(f)?f.name:f,m=tu.Core.getReferencedSymbolsForNode(f.pos,h,s,i,o);if(m){for(const y of m)for(const T of y.references)if(T.kind===tu.EntryKind.Node){const k=O9(T.node)&&go(T.node.parent)&&T.node.parent.arguments.length>_,E=mi(T.node.parent)&&O9(T.node.parent.expression)&&go(T.node.parent.parent)&&T.node.parent.parent.arguments.length>_,O=(g_(T.node.parent)||ly(T.node.parent))&&T.node.parent!==n.parent&&T.node.parent.parameters.length>_;if(k||E||O)return!1}}return!0;case 261:return f.name&&cJe(e,t,f.name)?h6e(f,n,l):!0;case 217:case 218:return h6e(f,n,l);case 177:return!1;case 176:return!0;default:return D.failBadSyntaxKind(f)}}function cJe(e,t,n){return!!tu.Core.eachSymbolReferenceInFile(n,e,t,i=>Be(i)&&go(i.parent)&&i.parent.arguments.indexOf(i)>=0)}function h6e(e,t,n){const i=e.parameters,s=i.indexOf(t);return D.assert(s!==-1,"The parameter should already be in the list"),n?i.slice(s+1).every(o=>Be(o.name)&&!o.symbol.isReferenced):s===i.length-1}function lJe(e){return(Un(e.parent)&&e.parent.left===e||(LG(e.parent)||B4(e.parent))&&e.parent.operand===e)&&$f(e.parent.parent)}var XE,mU,gU,TO,hU,Mre,uJe=or({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";Ri(),Fo(),XE="unusedIdentifier",mU="unusedIdentifier_prefix",gU="unusedIdentifier_delete",TO="unusedIdentifier_deleteImports",hU="unusedIdentifier_infer",Mre=[p._0_is_declared_but_its_value_is_never_read.code,p._0_is_declared_but_never_used.code,p.Property_0_is_declared_but_its_value_is_never_read.code,p.All_imports_in_import_declaration_are_unused.code,p.All_destructured_elements_are_unused.code,p.All_variables_are_unused.code,p.All_type_parameters_are_unused.code],Po({errorCodes:Mre,getCodeActions(e){const{errorCode:t,sourceFile:n,program:i,cancellationToken:s}=e,o=i.getTypeChecker(),l=i.getSourceFiles(),f=Za(n,e.span.start);if(Ug(f))return[GE(Vn.ChangeTracker.with(e,y=>y.delete(n,f)),p.Remove_template_tag)];if(f.kind===30){const y=Vn.ChangeTracker.with(e,T=>_6e(T,n,f));return[GE(y,p.Remove_type_parameters)]}const _=f6e(f);if(_){const y=Vn.ChangeTracker.with(e,T=>T.delete(n,_));return[po(XE,y,[p.Remove_import_from_0,b_e(_)],TO,p.Delete_all_unused_imports)]}else if(Ore(f)){const y=Vn.ChangeTracker.with(e,T=>dU(n,f,T,o,l,i,s,!1));if(y.length)return[po(XE,y,[p.Remove_unused_declaration_for_Colon_0,f.getText(n)],TO,p.Delete_all_unused_imports)]}if(Bg(f.parent)||PS(f.parent)){if(Cs(f.parent.parent)){const y=f.parent.elements,T=[y.length>1?p.Remove_unused_declarations_for_Colon_0:p.Remove_unused_declaration_for_Colon_0,er(y,k=>k.getText(n)).join(", ")];return[GE(Vn.ChangeTracker.with(e,k=>rJe(k,n,f.parent)),T)]}return[GE(Vn.ChangeTracker.with(e,y=>nJe(e,y,n,f.parent)),p.Remove_unused_destructuring_declaration)]}if(p6e(n,f))return[GE(Vn.ChangeTracker.with(e,y=>d6e(y,n,f.parent)),p.Remove_variable_statement)];const h=[];if(f.kind===140){const y=Vn.ChangeTracker.with(e,k=>u6e(k,n,f)),T=Ws(f.parent,AS).typeParameter.name.text;h.push(po(XE,y,[p.Replace_infer_0_with_unknown,T],hU,p.Replace_all_unused_infer_with_unknown))}else{const y=Vn.ChangeTracker.with(e,T=>dU(n,f,T,o,l,i,s,!1));if(y.length){const T=jc(f.parent)?f.parent:f;h.push(GE(y,[p.Remove_unused_declaration_for_Colon_0,T.getText(n)]))}}const m=Vn.ChangeTracker.with(e,y=>m6e(y,t,n,f));return m.length&&h.push(po(XE,m,[p.Prefix_0_with_an_underscore,f.getText(n)],mU,p.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[mU,gU,TO,hU],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:i}=e,s=n.getTypeChecker(),o=n.getSourceFiles();return qc(e,Mre,(l,f)=>{const _=Za(t,f.start);switch(e.fixId){case mU:m6e(l,f.code,t,_);break;case TO:{const h=f6e(_);h?l.delete(t,h):Ore(_)&&dU(t,_,l,s,o,n,i,!0);break}case gU:{if(_.kind===140||Ore(_))break;if(Ug(_))l.delete(t,_);else if(_.kind===30)_6e(l,t,_);else if(Bg(_.parent)){if(_.parent.parent.initializer)break;(!Cs(_.parent.parent)||g6e(_.parent.parent,s,o))&&l.delete(t,_.parent.parent)}else{if(PS(_.parent.parent)&&_.parent.parent.parent.initializer)break;p6e(t,_)?d6e(l,t,_.parent):dU(t,_,l,s,o,n,i,!0)}break}case hU:_.kind===140&&u6e(l,t,_);break;default:D.fail(JSON.stringify(e.fixId))}})}})}});function y6e(e,t,n,i,s){const o=Za(t,n),l=Sn(o,us);if(l.getStart(t)!==o.getStart(t)){const _=JSON.stringify({statementKind:D.formatSyntaxKind(l.kind),tokenKind:D.formatSyntaxKind(o.kind),errorCode:s,start:n,length:i});D.fail("Token and statement should start at the same point. "+_)}const f=(oo(l.parent)?l.parent:l).parent;if(!oo(l.parent)||l===Fi(l.parent.statements))switch(f.kind){case 244:if(f.elseStatement){if(oo(l.parent))break;e.replaceNode(t,l,M.createBlock(tt));return}case 246:case 247:e.delete(t,f);return}if(oo(l.parent)){const _=n+i,h=D.checkDefined(_Je(LH(l.parent.statements,l),m=>m.pos<_),"Some statement should be last");e.deleteNodeRange(t,l,h)}else e.delete(t,l)}function _Je(e,t){let n;for(const i of e){if(!t(i))break;n=i}return n}var yU,Lre,fJe=or({"src/services/codefixes/fixUnreachableCode.ts"(){"use strict";Ri(),Fo(),yU="fixUnreachableCode",Lre=[p.Unreachable_code_detected.code],Po({errorCodes:Lre,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const n=Vn.ChangeTracker.with(e,i=>y6e(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[po(yU,n,p.Remove_unreachable_code,yU,p.Remove_all_unreachable_code)]},fixIds:[yU],getAllCodeActions:e=>qc(e,Lre,(t,n)=>y6e(t,n.file,n.start,n.length,n.code))})}});function v6e(e,t,n){const i=Za(t,n),s=Ws(i.parent,b3),o=i.getStart(t),l=s.statement.getStart(t),f=F0(o,l,t)?l:tc(t.text,zc(s,59,t).end,!0);e.deleteRange(t,{pos:o,end:f})}var vU,Fre,pJe=or({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";Ri(),Fo(),vU="fixUnusedLabel",Fre=[p.Unused_label.code],Po({errorCodes:Fre,getCodeActions(e){const t=Vn.ChangeTracker.with(e,n=>v6e(n,e.sourceFile,e.span.start));return[po(vU,t,p.Remove_unused_label,vU,p.Remove_all_unused_labels)]},fixIds:[vU],getAllCodeActions:e=>qc(e,Fre,(t,n)=>v6e(t,n.file,n.start))})}});function b6e(e,t,n,i,s){e.replaceNode(t,n,s.typeToTypeNode(i,n,void 0))}function x6e(e,t,n){const i=Sn(Za(e,t),dJe),s=i&&i.type;return s&&{typeNode:s,type:mJe(n,s)}}function dJe(e){switch(e.kind){case 233:case 178:case 179:case 261:case 176:case 180:case 199:case 173:case 172:case 168:case 171:case 170:case 177:case 264:case 215:case 259:return!0;default:return!1}}function mJe(e,t){if(Pk(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(Ht([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Rre,bU,Bre,gJe=or({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";Ri(),Fo(),Rre="fixJSDocTypes_plain",bU="fixJSDocTypes_nullable",Bre=[p.JSDoc_types_can_only_be_used_inside_documentation_comments.code,p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Po({errorCodes:Bre,getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),i=x6e(t,e.span.start,n);if(!i)return;const{typeNode:s,type:o}=i,l=s.getText(t),f=[_(o,Rre,p.Change_all_jsdoc_style_types_to_TypeScript)];return s.kind===320&&f.push(_(o,bU,p.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),f;function _(h,m,y){const T=Vn.ChangeTracker.with(e,k=>b6e(k,t,s,h,n));return po("jdocTypes",T,[p.Change_0_to_1,l,n.typeToString(h)],m,y)}},fixIds:[Rre,bU],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:i}=e,s=n.getTypeChecker();return qc(e,Bre,(o,l)=>{const f=x6e(l.file,l.start,s);if(!f)return;const{typeNode:_,type:h}=f,m=_.kind===320&&t===bU?s.getNullableType(h,32768):h;b6e(o,i,_,m,s)})}})}});function T6e(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function S6e(e,t){const n=Za(e,t);if(mi(n.parent)){let i=n.parent;for(;mi(i.parent);)i=i.parent;return i.name}if(Be(n))return n}var xU,jre,hJe=or({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";Ri(),Fo(),xU="fixMissingCallParentheses",jre=[p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Po({errorCodes:jre,fixIds:[xU],getCodeActions(e){const{sourceFile:t,span:n}=e,i=S6e(t,n.start);if(!i)return;const s=Vn.ChangeTracker.with(e,o=>T6e(o,e.sourceFile,i));return[po(xU,s,p.Add_missing_call_parentheses,xU,p.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>qc(e,jre,(t,n)=>{const i=S6e(n.file,n.start);i&&T6e(t,n.file,i)})})}});function yJe(e){if(e.type)return e.type;if(Fa(e.parent)&&e.parent.type&&uy(e.parent.type))return e.parent.type.type}function k6e(e,t){const n=Za(e,t),i=Jm(n);if(!i)return;let s;switch(i.kind){case 173:s=i.name;break;case 261:case 217:s=zc(i,100,e);break;case 218:const o=i.typeParameters?30:21;s=zc(i,o,e)||Fi(i.parameters);break;default:return}return s&&{insertBefore:s,returnType:yJe(i)}}function C6e(e,t,{insertBefore:n,returnType:i}){if(i){const s=UD(i);(!s||s.kind!==80||s.text!=="Promise")&&e.replaceNode(t,i,M.createTypeReferenceNode("Promise",M.createNodeArray([i])))}e.insertModifierBefore(t,134,n)}var TU,zre,vJe=or({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";Ri(),Fo(),TU="fixAwaitInSyncFunction",zre=[p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Po({errorCodes:zre,getCodeActions(e){const{sourceFile:t,span:n}=e,i=k6e(t,n.start);if(!i)return;const s=Vn.ChangeTracker.with(e,o=>C6e(o,t,i));return[po(TU,s,p.Add_async_modifier_to_containing_function,TU,p.Add_all_missing_async_modifiers)]},fixIds:[TU],getAllCodeActions:function(t){const n=new Map;return qc(t,zre,(i,s)=>{const o=k6e(s.file,s.start);!o||!Lg(n,Nc(o.insertBefore))||C6e(i,t.sourceFile,o)})}})}});function w6e(e,t,n,i,s){let o,l;if(i===p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,l=t+n;else if(i===p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const f=s.program.getTypeChecker(),_=Za(e,t).parent;D.assert(w4(_),"error span of fixPropertyOverrideAccessor should only be on an accessor");const h=_.parent;D.assert(Yi(h),"erroneous accessors should only be inside classes");const m=de(ine(h,f));if(!m)return[];const y=Ba(U5(_.name)),T=f.getPropertyOfType(f.getTypeAtLocation(m),y);if(!T||!T.valueDeclaration)return[];o=T.valueDeclaration.pos,l=T.valueDeclaration.end,e=bn(T.valueDeclaration)}else D.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return J6e(e,s.program,o,l,s,p.Generate_get_and_set_accessors.message)}var Jre,SU,bJe=or({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";Ri(),Fo(),Jre=[p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],SU="fixPropertyOverrideAccessor",Po({errorCodes:Jre,getCodeActions(e){const t=w6e(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[po(SU,t,p.Generate_get_and_set_accessors,SU,p.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[SU],getAllCodeActions:e=>qc(e,Jre,(t,n)=>{const i=w6e(n.file,n.start,n.length,n.code,e);if(i)for(const s of i)t.pushRaw(e.sourceFile,s)})})}});function xJe(e,t){switch(e){case p.Parameter_0_implicitly_has_an_1_type.code:case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return u0(Jm(t))?p.Infer_type_of_0_from_usage:p.Infer_parameter_types_from_usage;case p.Rest_parameter_0_implicitly_has_an_any_type.code:case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Infer_parameter_types_from_usage;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return p.Infer_this_type_of_0_from_usage;default:return p.Infer_type_of_0_from_usage}}function TJe(e){switch(e){case p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_an_1_type.code;case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Parameter_0_implicitly_has_an_1_type.code;case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Rest_parameter_0_implicitly_has_an_any_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Member_0_implicitly_has_an_1_type.code}return e}function E6e(e,t,n,i,s,o,l,f,_){if(!Mw(n.kind)&&n.kind!==80&&n.kind!==26&&n.kind!==110)return;const{parent:h}=n,m=Z7(t,s,_,f);switch(i=TJe(i),i){case p.Member_0_implicitly_has_an_1_type.code:case p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Fa(h)&&l(h)||fo(h)||Vm(h))return A6e(e,m,t,h,s,f,o),m.writeFixes(e),h;if(mi(h)){const k=ZE(h.name,s,o),E=EE(k,h,s,f);if(E){const O=M.createJSDocTypeTag(void 0,M.createJSDocTypeExpression(E),void 0);e.addJSDocTags(t,Ws(h.parent.parent,$f),[O])}return m.writeFixes(e),h}return;case p.Variable_0_implicitly_has_an_1_type.code:{const k=s.getTypeChecker().getSymbolAtLocation(n);return k&&k.valueDeclaration&&Fa(k.valueDeclaration)&&l(k.valueDeclaration)?(A6e(e,m,bn(k.valueDeclaration),k.valueDeclaration,s,f,o),m.writeFixes(e),k.valueDeclaration):void 0}}const y=Jm(n);if(y===void 0)return;let T;switch(i){case p.Parameter_0_implicitly_has_an_1_type.code:if(u0(y)){D6e(e,m,t,y,s,f,o),T=y;break}case p.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(y)){const k=Ws(h,Cs);SJe(e,m,t,k,y,s,f,o),T=k}break;case p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:sg(y)&&Be(y.name)&&(kU(e,m,t,y,ZE(y.name,s,o),s,f),T=y);break;case p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:u0(y)&&(D6e(e,m,t,y,s,f,o),T=y);break;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Vn.isThisTypeAnnotatable(y)&&l(y)&&(kJe(e,t,y,s,f,o),T=y);break;default:return D.fail(String(i))}return m.writeFixes(e),T}function A6e(e,t,n,i,s,o,l){Be(i.name)&&kU(e,t,n,i,ZE(i.name,s,l),s,o)}function SJe(e,t,n,i,s,o,l,f){if(!Be(i.name))return;const _=EJe(s,n,o,f);if(D.assert(s.parameters.length===_.length,"Parameter count and inference count should match"),jn(s))N6e(e,n,_,o,l);else{const h=Fl(s)&&!zc(s,21,n);h&&e.insertNodeBefore(n,Fi(s.parameters),M.createToken(21));for(const{declaration:m,type:y}of _)m&&!m.type&&!m.initializer&&kU(e,t,n,m,y,o,l);h&&e.insertNodeAfter(n,fi(s.parameters),M.createToken(22))}}function kJe(e,t,n,i,s,o){const l=I6e(n,t,i,o);if(!l||!l.length)return;const f=Vre(i,l,o).thisParameter(),_=EE(f,n,i,s);_&&(jn(n)?CJe(e,t,n,_):e.tryInsertThisTypeAnnotation(t,n,_))}function CJe(e,t,n,i){e.addJSDocTags(t,n,[M.createJSDocThisTag(void 0,M.createJSDocTypeExpression(i))])}function D6e(e,t,n,i,s,o,l){const f=Ji(i.parameters);if(f&&Be(i.name)&&Be(f.name)){let _=ZE(i.name,s,l);_===s.getTypeChecker().getAnyType()&&(_=ZE(f.name,s,l)),jn(i)?N6e(e,n,[{declaration:f,type:_}],s,o):kU(e,t,n,f,_,s,o)}}function kU(e,t,n,i,s,o,l){const f=EE(s,i,o,l);if(f)if(jn(n)&&i.kind!==170){const _=Fa(i)?di(i.parent.parent,S_):i;if(!_)return;const h=M.createJSDocTypeExpression(f),m=sg(i)?M.createJSDocReturnTag(void 0,h,void 0):M.createJSDocTypeTag(void 0,h,void 0);e.addJSDocTags(n,_,[m])}else wJe(f,i,n,e,t,gc(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,i,f)}function wJe(e,t,n,i,s,o){const l=Q7(e,o);return l&&i.tryInsertTypeAnnotation(n,t,l.typeNode)?(Vt(l.symbols,f=>s.addImportFromExportedSymbol(f,!0)),!0):!1}function N6e(e,t,n,i,s){const o=n.length&&n[0].declaration.parent;if(!o)return;const l=Mr(n,f=>{const _=f.declaration;if(_.initializer||ib(_)||!Be(_.name))return;const h=f.type&&EE(f.type,_,i,s);if(h){const m=M.cloneNode(_.name);return Ln(m,7168),{name:M.cloneNode(_.name),param:_,isOptional:!!f.isOptional,typeNode:h}}});if(l.length)if(Fl(o)||_l(o)){const f=Fl(o)&&!zc(o,21,t);f&&e.insertNodeBefore(t,Fi(o.parameters),M.createToken(21)),Vt(l,({typeNode:_,param:h})=>{const m=M.createJSDocTypeTag(void 0,M.createJSDocTypeExpression(_)),y=M.createJSDocComment(void 0,[m]);e.insertNodeAt(t,h.getStart(t),y,{suffix:" "})}),f&&e.insertNodeAfter(t,fi(o.parameters),M.createToken(22))}else{const f=er(l,({name:_,typeNode:h,isOptional:m})=>M.createJSDocParameterTag(void 0,_,!!m,M.createJSDocTypeExpression(h),!1,void 0));e.addJSDocTags(t,o,f)}}function Ure(e,t,n){return Mr(tu.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),i=>i.kind!==tu.EntryKind.Span?di(i.node,Be):void 0)}function ZE(e,t,n){const i=Ure(e,t,n);return Vre(t,i,n).single()}function EJe(e,t,n,i){const s=I6e(e,t,n,i);return s&&Vre(n,s,i).parameters(e)||e.parameters.map(o=>({declaration:o,type:Be(o.name)?ZE(o.name,n,i):n.getTypeChecker().getAnyType()}))}function I6e(e,t,n,i){let s;switch(e.kind){case 175:s=zc(e,137,t);break;case 218:case 217:const o=e.parent;s=(Fa(o)||fo(o))&&Be(o.name)?o.name:e.name;break;case 261:case 173:case 172:s=e.name;break}if(s)return Ure(s,n,i)}function Vre(e,t,n){const i=e.getTypeChecker(),s={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Ae=>i.createArrayType(Ae),Promise:Ae=>i.createPromiseType(Ae)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:_,parameters:h,thisParameter:m};function l(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function f(Ae){const Me=new Map;for(const je of Ae)je.properties&&je.properties.forEach((Pe,nt)=>{Me.has(nt)||Me.set(nt,[]),Me.get(nt).push(Pe)});const He=new Map;return Me.forEach((je,Pe)=>{He.set(Pe,f(je))}),{isNumber:Ae.some(je=>je.isNumber),isString:Ae.some(je=>je.isString),isNumberOrString:Ae.some(je=>je.isNumberOrString),candidateTypes:lo(Ae,je=>je.candidateTypes),properties:He,calls:lo(Ae,je=>je.calls),constructs:lo(Ae,je=>je.constructs),numberIndex:Vt(Ae,je=>je.numberIndex),stringIndex:Vt(Ae,je=>je.stringIndex),candidateThisTypes:lo(Ae,je=>je.candidateThisTypes),inferredTypes:void 0}}function _(){return ae(y(t))}function h(Ae){if(t.length===0||!Ae.parameters)return;const Me=l();for(const je of t)n.throwIfCancellationRequested(),T(je,Me);const He=[...Me.constructs||[],...Me.calls||[]];return Ae.parameters.map((je,Pe)=>{const nt=[],wt=ty(je);let xt=!1;for(const Qe of He)if(Qe.argumentTypes.length<=Pe)xt=jn(Ae),nt.push(i.getUndefinedType());else if(wt)for(let Mt=Pe;MtHe.every(Pe=>!Pe(je)))}function le(Ae){return ae($(Ae))}function ae(Ae){if(!Ae.length)return i.getAnyType();const Me=i.getUnionType([i.getStringType(),i.getNumberType()]);let je=R(Ae,[{high:nt=>nt===i.getStringType()||nt===i.getNumberType(),low:nt=>nt===Me},{high:nt=>!(nt.flags&16385),low:nt=>!!(nt.flags&16385)},{high:nt=>!(nt.flags&114689)&&!(Mi(nt)&16),low:nt=>!!(Mi(nt)&16)}]);const Pe=je.filter(nt=>Mi(nt)&16);return Pe.length&&(je=je.filter(nt=>!(Mi(nt)&16)),je.push(ye(Pe))),i.getWidenedType(i.getUnionType(je.map(i.getBaseTypeOfLiteralType),2))}function ye(Ae){if(Ae.length===1)return Ae[0];const Me=[],He=[],je=[],Pe=[];let nt=!1,wt=!1;const xt=Pf();for(const Mt of Ae){for(const Lt of i.getPropertiesOfType(Mt))xt.add(Lt.escapedName,Lt.valueDeclaration?i.getTypeOfSymbolAtLocation(Lt,Lt.valueDeclaration):i.getAnyType());Me.push(...i.getSignaturesOfType(Mt,0)),He.push(...i.getSignaturesOfType(Mt,1));const yr=i.getIndexInfoOfType(Mt,0);yr&&(je.push(yr.type),nt=nt||yr.isReadonly);const Cr=i.getIndexInfoOfType(Mt,1);Cr&&(Pe.push(Cr.type),wt=wt||Cr.isReadonly)}const Zt=xc(xt,(Mt,yr)=>{const Cr=yr.lengthi.getBaseTypeOfLiteralType(xt)),wt=(je=Ae.calls)!=null&&je.length?ee(Ae):void 0;return wt&&nt?Pe.push(i.getUnionType([wt,...nt],2)):(wt&&Pe.push(wt),Nr(nt)&&Pe.push(...nt)),Pe.push(...te(Ae)),Pe}function ee(Ae){const Me=new Map;Ae.properties&&Ae.properties.forEach((nt,wt)=>{const xt=i.createSymbol(4,wt);xt.links.type=le(nt),Me.set(wt,xt)});const He=Ae.calls?[Re(Ae.calls)]:[],je=Ae.constructs?[Re(Ae.constructs)]:[],Pe=Ae.stringIndex?[i.createIndexInfo(i.getStringType(),le(Ae.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Me,He,je,Pe)}function te(Ae){if(!Ae.properties||!Ae.properties.size)return[];const Me=o.filter(He=>me(He,Ae));return 0ve(He,Ae)):[]}function me(Ae,Me){return Me.properties?!Zd(Me.properties,(He,je)=>{const Pe=i.getTypeOfPropertyOfType(Ae,je);return Pe?He.calls?!i.getSignaturesOfType(Pe,0).length||!i.isTypeAssignableTo(Pe,Ze(He.calls)):!i.isTypeAssignableTo(Pe,le(He)):!0}):!1}function ve(Ae,Me){if(!(Mi(Ae)&4)||!Me.properties)return Ae;const He=Ae.target,je=de(He.typeParameters);if(!je)return Ae;const Pe=[];return Me.properties.forEach((nt,wt)=>{const xt=i.getTypeOfPropertyOfType(He,wt);D.assert(!!xt,"generic should have all the properties of its reference."),Pe.push(...we(xt,le(nt),je))}),s[Ae.symbol.escapedName](ae(Pe))}function we(Ae,Me,He){if(Ae===He)return[Me];if(Ae.flags&3145728)return lo(Ae.types,nt=>we(nt,Me,He));if(Mi(Ae)&4&&Mi(Me)&4){const nt=i.getTypeArguments(Ae),wt=i.getTypeArguments(Me),xt=[];if(nt&&wt)for(let Zt=0;ZtPe.argumentTypes.length));for(let Pe=0;Pewt.argumentTypes[Pe]||i.getUndefinedType())),Ae.some(wt=>wt.argumentTypes[Pe]===void 0)&&(nt.flags|=16777216),Me.push(nt)}const je=le(f(Ae.map(Pe=>Pe.return_)));return i.createSignature(void 0,void 0,void 0,Me,je,void 0,He,0)}function Fe(Ae,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Ae.candidateTypes||(Ae.candidateTypes=[])).push(Me)}function Ue(Ae,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Ae.candidateThisTypes||(Ae.candidateThisTypes=[])).push(Me)}}var CU,Wre,AJe=or({"src/services/codefixes/inferFromUsage.ts"(){"use strict";Ri(),Fo(),CU="inferFromUsage",Wre=[p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,p.Variable_0_implicitly_has_an_1_type.code,p.Parameter_0_implicitly_has_an_1_type.code,p.Rest_parameter_0_implicitly_has_an_any_type.code,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,p.Member_0_implicitly_has_an_1_type.code,p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Po({errorCodes:Wre,getCodeActions(e){const{sourceFile:t,program:n,span:{start:i},errorCode:s,cancellationToken:o,host:l,preferences:f}=e,_=Za(t,i);let h;const m=Vn.ChangeTracker.with(e,T=>{h=E6e(T,t,_,s,n,o,Cp,l,f)}),y=h&&Es(h);return!y||m.length===0?void 0:[po(CU,m,[xJe(s,_),F_(y)],CU,p.Infer_all_types_from_usage)]},fixIds:[CU],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:i,host:s,preferences:o}=e,l=GS();return qc(e,Wre,(f,_)=>{E6e(f,t,Za(_.file,_.start),_.code,n,i,l,s,o)})}})}});function P6e(e,t,n){if(jn(e))return;const i=Za(e,n),s=Sn(i,Jl),o=s==null?void 0:s.type;if(!o)return;const l=t.getTypeFromTypeNode(o),f=t.getAwaitedType(l)||t.getVoidType(),_=t.typeToTypeNode(f,o,void 0);if(_)return{returnTypeNode:o,returnType:l,promisedTypeNode:_,promisedType:f}}function O6e(e,t,n,i){e.replaceNode(t,n,M.createTypeReferenceNode("Promise",[i]))}var wU,qre,DJe=or({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";Ri(),Fo(),wU="fixReturnTypeInAsyncFunction",qre=[p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Po({errorCodes:qre,fixIds:[wU],getCodeActions:function(t){const{sourceFile:n,program:i,span:s}=t,o=i.getTypeChecker(),l=P6e(n,i.getTypeChecker(),s.start);if(!l)return;const{returnTypeNode:f,returnType:_,promisedTypeNode:h,promisedType:m}=l,y=Vn.ChangeTracker.with(t,T=>O6e(T,n,f,h));return[po(wU,y,[p.Replace_0_with_Promise_1,o.typeToString(_),o.typeToString(m)],wU,p.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>qc(e,qre,(t,n)=>{const i=P6e(n.file,e.program.getTypeChecker(),n.start);i&&O6e(t,n.file,i.returnTypeNode,i.promisedTypeNode)})})}});function M6e(e,t,n,i){const{line:s}=Ql(t,n);(!i||bu(i,s))&&e.insertCommentBeforeLine(t,s,n," @ts-ignore")}var $re,Hre,Gre,NJe=or({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";Ri(),Fo(),$re="disableJsDiagnostics",Hre="disableJsDiagnostics",Gre=Mr(Object.keys(p),e=>{const t=p[e];return t.category===1?t.code:void 0}),Po({errorCodes:Gre,getCodeActions:function(t){const{sourceFile:n,program:i,span:s,host:o,formatContext:l}=t;if(!jn(n)||!LN(n,i.getCompilerOptions()))return;const f=n.checkJsDirective?"":wb(o,l.options),_=[Wg($re,[U2e(n.fileName,[IP(n.checkJsDirective?L_(n.checkJsDirective.pos,n.checkJsDirective.end):nf(0,0),`// @ts-nocheck${f}`)])],p.Disable_checking_for_this_file)];return Vn.isValidLocationToAddComment(n,s.start)&&_.unshift(po($re,Vn.ChangeTracker.with(t,h=>M6e(h,n,s.start)),p.Ignore_this_error_message,Hre,p.Add_ts_ignore_to_all_error_messages)),_},fixIds:[Hre],getAllCodeActions:e=>{const t=new Set;return qc(e,Gre,(n,i)=>{Vn.isValidLocationToAddComment(i.file,i.start)&&M6e(n,i.file,i.start,t)})}})}});function Xre(e,t,n,i,s,o,l){const f=e.symbol.members;for(const _ of t)f.has(_.escapedName)||L6e(_,e,n,i,s,o,l,void 0)}function c8(e){return{trackSymbol:()=>!1,moduleResolverHost:fK(e.program,e.host)}}function L6e(e,t,n,i,s,o,l,f,_=3,h=!1){var te;const m=e.getDeclarations(),y=m==null?void 0:m[0],T=i.program.getTypeChecker(),k=gc(i.program.getCompilerOptions()),E=(te=y==null?void 0:y.kind)!=null?te:170,O=Vl(Es(y),!1),N=y?Pp(y):0;let B=N&4?4:N&16?16:0;y&&ym(y)&&(B|=128);const U=le(),V=T.getWidenedType(T.getTypeOfSymbolAtLocation(e,t)),re=!!(e.flags&16777216),z=!!(t.flags&16777216)||h,ce=f0(n,s);switch(E){case 170:case 171:const me=ce===0?268435456:void 0;let ve=T.typeToTypeNode(V,t,me,c8(i));if(o){const K=Q7(ve,k);K&&(ve=K.typeNode,l8(o,K.symbols))}l(M.createPropertyDeclaration(U,y?ye(O):e.getName(),re&&_&2?M.createToken(58):void 0,ve,void 0));break;case 176:case 177:{D.assertIsDefined(m);let K=T.typeToTypeNode(V,t,void 0,c8(i));const Ze=d7(m,y),Re=Ze.secondAccessor?[Ze.firstAccessor,Ze.secondAccessor]:[Ze.firstAccessor];if(o){const Fe=Q7(K,k);Fe&&(K=Fe.typeNode,l8(o,Fe.symbols))}for(const Fe of Re)if(sg(Fe))l(M.createGetAccessorDeclaration(U,ye(O),tt,ee(K),$(f,ce,z)));else{D.assertNode(Fe,u0,"The counterpart to a getter should be a setter");const Ue=t9(Fe),Ae=Ue&&Be(Ue.name)?ri(Ue.name):void 0;l(M.createSetAccessorDeclaration(U,ye(O),Yre(1,[Ae],[ee(K)],1,!1),$(f,ce,z)))}break}case 172:case 173:D.assertIsDefined(m);const we=V.isUnion()?lo(V.types,K=>K.getCallSignatures()):V.getCallSignatures();if(!bt(we))break;if(m.length===1){D.assert(we.length===1,"One declaration implies one signature");const K=we[0];R(ce,K,U,ye(O),$(f,ce,z));break}for(const K of we)R(ce,K,U,ye(O));if(!z)if(m.length>we.length){const K=T.getSignatureFromDeclaration(m[m.length-1]);R(ce,K,U,ye(O),$(f,ce))}else D.assert(m.length===we.length,"Declarations and signatures should match count"),l(OJe(T,i,t,we,ye(O),re&&!!(_&1),U,ce,f));break}function R(me,ve,we,K,Ze){const Re=EU(173,i,me,ve,Ze,K,we,re&&!!(_&1),t,o);Re&&l(Re)}function le(){let me;return B&&(me=Ss(me,M.createModifiersFromModifierFlags(B))),ae()&&(me=Ht(me,M.createToken(163))),me&&M.createNodeArray(me)}function ae(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&p3(y))}function ye(me){return Be(me)&&me.escapedText==="constructor"?M.createComputedPropertyName(M.createStringLiteral(ri(me),ce===0)):Vl(me,!1)}function $(me,ve,we){return we?void 0:Vl(me,!1)||Qre(ve)}function ee(me){return Vl(me,!1)}}function EU(e,t,n,i,s,o,l,f,_,h){const m=t.program,y=m.getTypeChecker(),T=gc(m.getCompilerOptions()),k=jn(_),E=524545|(n===0?268435456:0),O=y.signatureToSignatureDeclaration(i,e,_,E,c8(t));if(!O)return;let N=k?void 0:O.typeParameters,B=O.parameters,U=k?void 0:O.type;if(h){if(N){const ce=ll(N,R=>{let le=R.constraint,ae=R.default;if(le){const ye=Q7(le,T);ye&&(le=ye.typeNode,l8(h,ye.symbols))}if(ae){const ye=Q7(ae,T);ye&&(ae=ye.typeNode,l8(h,ye.symbols))}return M.updateTypeParameterDeclaration(R,R.modifiers,R.name,le,ae)});N!==ce&&(N=yt(M.createNodeArray(ce,N.hasTrailingComma),N))}const z=ll(B,ce=>{let R=k?void 0:ce.type;if(R){const le=Q7(R,T);le&&(R=le.typeNode,l8(h,le.symbols))}return M.updateParameterDeclaration(ce,ce.modifiers,ce.dotDotDotToken,ce.name,k?void 0:ce.questionToken,R,ce.initializer)});if(B!==z&&(B=yt(M.createNodeArray(z,B.hasTrailingComma),B)),U){const ce=Q7(U,T);ce&&(U=ce.typeNode,l8(h,ce.symbols))}}const V=f?M.createToken(58):void 0,re=O.asteriskToken;if(_l(O))return M.updateFunctionExpression(O,l,O.asteriskToken,di(o,Be),N,B,U,s!=null?s:O.body);if(Fl(O))return M.updateArrowFunction(O,l,N,B,U,O.equalsGreaterThanToken,s!=null?s:O.body);if(g_(O))return M.updateMethodDeclaration(O,l,re,o!=null?o:M.createIdentifier(""),V,N,B,U,s);if(B_(O))return M.updateFunctionDeclaration(O,l,O.asteriskToken,di(o,Be),N,B,U,s!=null?s:O.body)}function Zre(e,t,n,i,s,o,l){const f=f0(t.sourceFile,t.preferences),_=gc(t.program.getCompilerOptions()),h=c8(t),m=t.program.getTypeChecker(),y=jn(l),{typeArguments:T,arguments:k,parent:E}=i,O=y?void 0:m.getContextualType(i),N=er(k,ae=>Be(ae)?ae.text:mi(ae)&&Be(ae.name)?ae.name.text:void 0),B=y?[]:er(k,ae=>m.getTypeAtLocation(ae)),{argumentTypeNodes:U,argumentTypeParameters:V}=B6e(m,n,B,l,_,void 0,h),re=o?M.createNodeArray(M.createModifiersFromModifierFlags(o)):void 0,z=zR(E)?M.createToken(42):void 0,ce=y?void 0:IJe(m,V,T),R=Yre(k.length,N,U,void 0,y),le=y||O===void 0?void 0:m.typeToTypeNode(O,l,void 0,h);switch(e){case 173:return M.createMethodDeclaration(re,z,s,void 0,ce,R,le,Qre(f));case 172:return M.createMethodSignature(re,s,void 0,ce,R,le===void 0?M.createKeywordTypeNode(159):le);case 261:return M.createFunctionDeclaration(re,z,s,ce,R,le,SO(p.Function_not_implemented.message,f));default:D.fail("Unexpected kind")}}function IJe(e,t,n){const i=new Set(t.map(o=>o[0])),s=new Map(t);if(n){const o=n.filter(f=>!t.some(_=>{var h;return e.getTypeAtLocation(f)===((h=_[1])==null?void 0:h.argumentType)})),l=i.size+o.length;for(let f=0;i.size{var l;return M.createTypeParameterDeclaration(void 0,o,(l=s.get(o))==null?void 0:l.constraint)})}function F6e(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function AU(e,t,n,i,s,o,l){let f=e.typeToTypeNode(n,i,o,l);if(f&&Qy(f)){const _=Q7(f,s);_&&(l8(t,_.symbols),f=_.typeNode)}return Vl(f)}function R6e(e){return e.isUnionOrIntersection()?e.types.some(R6e):e.flags&262144}function B6e(e,t,n,i,s,o,l){const f=[],_=new Map;for(let h=0;h=i?M.createToken(58):void 0,s?void 0:(n==null?void 0:n[f])||M.createKeywordTypeNode(159),void 0);o.push(m)}return o}function OJe(e,t,n,i,s,o,l,f,_){let h=i[0],m=i[0].minArgumentCount,y=!1;for(const O of i)m=Math.min(O.minArgumentCount,m),up(O)&&(y=!0),O.parameters.length>=h.parameters.length&&(!up(O)||up(h))&&(h=O);const T=h.parameters.length-(up(h)?1:0),k=h.parameters.map(O=>O.name),E=Yre(T,k,void 0,m,!1);if(y){const O=M.createParameterDeclaration(void 0,M.createToken(26),k[T]||"rest",T>=m?M.createToken(58):void 0,M.createArrayTypeNode(M.createKeywordTypeNode(159)),void 0);E.push(O)}return LJe(l,s,o,void 0,E,MJe(i,e,t,n),f,_)}function MJe(e,t,n,i){if(Nr(e)){const s=t.getUnionType(er(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(s,i,1,c8(n))}}function LJe(e,t,n,i,s,o,l,f){return M.createMethodDeclaration(e,void 0,t,n?M.createToken(58):void 0,i,s,o,f||Qre(l))}function Qre(e){return SO(p.Method_not_implemented.message,e)}function SO(e,t){return M.createBlock([M.createThrowStatement(M.createNewExpression(M.createIdentifier("Error"),void 0,[M.createStringLiteral(e,t===0)]))],!0)}function Kre(e,t,n){const i=Vw(t);if(!i)return;const s=tne(i,"compilerOptions");if(s===void 0){e.insertNodeAtObjectStart(t,i,DU("compilerOptions",M.createObjectLiteralExpression(n.map(([l,f])=>DU(l,f)),!0)));return}const o=s.initializer;if(Dc(o))for(const[l,f]of n){const _=tne(o,l);_===void 0?e.insertNodeAtObjectStart(t,o,DU(l,f)):e.replaceNode(t,_.initializer,f)}}function ene(e,t,n,i){Kre(e,t,[[n,i]])}function DU(e,t){return M.createPropertyAssignment(M.createStringLiteral(e),t)}function tne(e,t){return on(e.properties,n=>Y_(n)&&!!n.name&&sc(n.name)&&n.name.text===t)}function Q7(e,t){let n;const i=Ye(e,s,Oa);if(n&&i)return{typeNode:i,symbols:n};function s(o){if(E4(o)&&o.qualifier){const l=Tm(o.qualifier),f=fz(l.symbol,t),_=f!==l.text?z6e(o.qualifier,M.createIdentifier(f)):o.qualifier;n=Ht(n,l.symbol);const h=dn(o.typeArguments,s,Oa);return M.createTypeReferenceNode(_,h)}return nn(o,s,rv)}}function z6e(e,t){return e.kind===80?t:M.createQualifiedName(z6e(e.left,t),e.right)}function l8(e,t){t.forEach(n=>e.addImportFromExportedSymbol(n,!0))}function rne(e,t){const n=qf(t);let i=Za(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(nne||{})}});function J6e(e,t,n,i,s,o){const l=W6e(e,t,n,i);if(!l||UE.isRefactorErrorInfo(l))return;const f=Vn.ChangeTracker.fromContext(s),{isStatic:_,isReadonly:h,fieldName:m,accessorName:y,originalName:T,type:k,container:E,declaration:O}=l;rm(m),rm(y),rm(O),rm(E);let N,B;if(Yi(E)){const V=Pp(O);if(Ip(e)){const re=M.createModifiersFromModifierFlags(V);N=re,B=re}else N=M.createModifiersFromModifierFlags(jJe(V)),B=M.createModifiersFromModifierFlags(zJe(V));jS(O)&&(B=Nn(nb(O),B))}qJe(f,e,O,k,m,B);const U=JJe(m,y,k,N,_,E);if(rm(U),q6e(f,e,U,O,E),h){const V=ay(E);V&&$Je(f,e,V,m.text,T)}else{const V=UJe(m,y,k,N,_,E);rm(V),q6e(f,e,V,O,E)}return f.getChanges()}function RJe(e){return Be(e)||sc(e)}function BJe(e){return gm(e,e.parent)||fo(e)||Y_(e)}function U6e(e,t){return Be(t)?M.createIdentifier(e):M.createStringLiteral(e)}function V6e(e,t,n){const i=t?n.name:M.createThis();return Be(e)?M.createPropertyAccessExpression(i,e):M.createElementAccessExpression(i,M.createStringLiteralFromNode(e))}function jJe(e){return e&=-65,e&=-9,e&16||(e|=4),e}function zJe(e){return e&=-5,e&=-17,e|=8,e}function W6e(e,t,n,i,s=!0){const o=Za(e,n),l=n===i&&s,f=Sn(o.parent,BJe),_=124;if(!f||!(XQ(f.name,e,n,i)||l))return{error:Vo(p.Could_not_find_property_for_which_to_generate_accessor)};if(!RJe(f.name))return{error:Vo(p.Name_is_not_valid)};if((Pp(f)&126975|_)!==_)return{error:Vo(p.Can_only_convert_property_with_modifier)};const h=f.name.text,m=FK(h),y=U6e(m?h:H7(`_${h}`,e),f.name),T=U6e(m?H7(h.substring(1),e):h,f.name);return{isStatic:R_(f),isReadonly:r9(f),type:HJe(f,t),container:f.kind===168?f.parent.parent:f.parent,originalName:f.name.text,declaration:f,fieldName:y,accessorName:T,renameAccessor:m}}function JJe(e,t,n,i,s,o){return M.createGetAccessorDeclaration(i,t,[],n,M.createBlock([M.createReturnStatement(V6e(e,s,o))],!0))}function UJe(e,t,n,i,s,o){return M.createSetAccessorDeclaration(i,t,[M.createParameterDeclaration(void 0,void 0,M.createIdentifier("value"),void 0,n)],M.createBlock([M.createExpressionStatement(M.createAssignment(V6e(e,s,o),M.createIdentifier("value")))],!0))}function VJe(e,t,n,i,s,o){const l=M.updatePropertyDeclaration(n,o,s,n.questionToken||n.exclamationToken,i,n.initializer);e.replaceNode(t,n,l)}function WJe(e,t,n,i){let s=M.updatePropertyAssignment(n,i,n.initializer);(s.modifiers||s.questionToken||s.exclamationToken)&&(s===n&&(s=M.cloneNode(s)),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0),e.replacePropertyAssignment(t,n,s)}function qJe(e,t,n,i,s,o){fo(n)?VJe(e,t,n,i,s,o):Y_(n)?WJe(e,t,n,s):e.replaceNode(t,n,M.updateParameterDeclaration(n,o,n.dotDotDotToken,Ws(s,Be),n.questionToken,n.type,n.initializer))}function q6e(e,t,n,i,s){gm(i,i.parent)?e.insertMemberAtStart(t,s,n):Y_(i)?e.insertNodeAfterComma(t,i,n):e.insertNodeAfter(t,i,n)}function $Je(e,t,n,i,s){n.body&&n.body.forEachChild(function o(l){Ll(l)&&l.expression.kind===110&&sc(l.argumentExpression)&&l.argumentExpression.text===s&&u9(l)&&e.replaceNode(t,l.argumentExpression,M.createStringLiteral(i)),mi(l)&&l.expression.kind===110&&l.name.text===s&&u9(l)&&e.replaceNode(t,l.name,M.createIdentifier(i)),!Qs(l)&&!Yi(l)&&l.forEachChild(o)})}function HJe(e,t){const n=Hue(e);if(fo(e)&&n&&e.questionToken){const i=t.getTypeChecker(),s=i.getTypeFromTypeNode(n);if(!i.isTypeAssignableTo(i.getUndefinedType(),s)){const o=ES(n)?n.types:[n];return M.createUnionTypeNode([...o,M.createKeywordTypeNode(157)])}}return n}function ine(e,t){const n=[];for(;e;){const i=l3(e),s=i&&t.getSymbolAtLocation(i.expression);if(!s)break;const o=s.flags&2097152?t.getAliasedSymbol(s):s,l=o.declarations&&on(o.declarations,Yi);if(!l)break;n.push(l),e=l}return n}var GJe=or({"src/services/codefixes/generateAccessors.ts"(){"use strict";Ri()}});function XJe(e,t){const n=bn(t),i=K5(t),s=e.program.getCompilerOptions(),o=[];return o.push($6e(e,n,t,l2(i.name,void 0,t.moduleSpecifier,f0(n,e.preferences)))),Ff(s)===1&&o.push($6e(e,n,t,M.createImportEqualsDeclaration(void 0,!1,i.name,M.createExternalModuleReference(t.moduleSpecifier)))),o}function $6e(e,t,n,i){const s=Vn.ChangeTracker.with(e,o=>o.replaceNode(t,n,i));return Wg(ane,s,[p.Replace_import_with_0,s[0].textChanges[0].newText])}function ZJe(e){const t=e.sourceFile,n=p.This_expression_is_not_callable.code===e.errorCode?212:213,i=Sn(Za(t,e.span.start),o=>o.kind===n);if(!i)return[];const s=i.expression;return H6e(e,s)}function YJe(e){const t=e.sourceFile,n=Sn(Za(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return n?H6e(e,n):[]}function H6e(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&ih(n.symbol)&&n.symbol.links.originatingImport))return[];const i=[],s=n.symbol.links.originatingImport;if(xm(s)||Et(i,XJe(e,s)),ht(t)&&!(sp(t.parent)&&t.parent.name===t)){const o=e.sourceFile,l=Vn.ChangeTracker.with(e,f=>f.replaceNode(o,t,M.createPropertyAccessExpression(t,"default"),{}));i.push(Wg(ane,l,p.Use_synthetic_default_member))}return i}var ane,QJe=or({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";Ri(),Fo(),ane="invalidImportSyntax",Po({errorCodes:[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],getCodeActions:ZJe}),Po({errorCodes:[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_does_not_satisfy_the_constraint_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_predicate_0_is_not_assignable_to_1.code,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,p._0_index_type_1_is_not_assignable_to_2_index_type_3.code,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:YJe})}});function G6e(e,t){const n=Za(e,t);if(Be(n)&&fo(n.parent)){const i=Lf(n.parent);if(i)return{type:i,prop:n.parent,isJs:jn(n.parent)}}}function KJe(e,t){if(t.isJs)return;const n=Vn.ChangeTracker.with(e,i=>X6e(i,e.sourceFile,t.prop));return po(NU,n,[p.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],IU,p.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function X6e(e,t,n){rm(n);const i=M.updatePropertyDeclaration(n,n.modifiers,n.name,M.createToken(54),n.type,n.initializer);e.replaceNode(t,n,i)}function eUe(e,t){const n=Vn.ChangeTracker.with(e,i=>Z6e(i,e.sourceFile,t));return po(NU,n,[p.Add_undefined_type_to_property_0,t.prop.name.getText()],PU,p.Add_undefined_type_to_all_uninitialized_properties)}function Z6e(e,t,n){const i=M.createKeywordTypeNode(157),s=ES(n.type)?n.type.types.concat(i):[n.type,i],o=M.createUnionTypeNode(s);n.isJs?e.addJSDocTags(t,n.prop,[M.createJSDocTypeTag(void 0,M.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function tUe(e,t){if(t.isJs)return;const n=e.program.getTypeChecker(),i=Q6e(n,t.prop);if(!i)return;const s=Vn.ChangeTracker.with(e,o=>Y6e(o,e.sourceFile,t.prop,i));return po(NU,s,[p.Add_initializer_to_property_0,t.prop.name.getText()],OU,p.Add_initializers_to_all_uninitialized_properties)}function Y6e(e,t,n,i){rm(n);const s=M.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,i);e.replaceNode(t,n,s)}function Q6e(e,t){return K6e(e,e.getTypeFromTypeNode(t.type))}function K6e(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?M.createFalse():M.createTrue();if(t.isStringLiteral())return M.createStringLiteral(t.value);if(t.isNumberLiteral())return M.createNumericLiteral(t.value);if(t.flags&2048)return M.createBigIntLiteral(t.value);if(t.isUnion())return bo(t.types,n=>K6e(e,n));if(t.isClass()){const n=Zy(t.symbol);if(!n||Pi(n,256))return;const i=ay(n);return i&&i.parameters.length?void 0:M.createNewExpression(M.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return M.createArrayLiteralExpression()}var NU,IU,PU,OU,sne,rUe=or({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";Ri(),Fo(),NU="strictClassInitialization",IU="addMissingPropertyDefiniteAssignmentAssertions",PU="addMissingPropertyUndefinedType",OU="addMissingPropertyInitializer",sne=[p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Po({errorCodes:sne,getCodeActions:function(t){const n=G6e(t.sourceFile,t.span.start);if(!n)return;const i=[];return Ht(i,eUe(t,n)),Ht(i,KJe(t,n)),Ht(i,tUe(t,n)),i},fixIds:[IU,PU,OU],getAllCodeActions:e=>qc(e,sne,(t,n)=>{const i=G6e(n.file,n.start);if(i)switch(e.fixId){case IU:X6e(t,n.file,i.prop);break;case PU:Z6e(t,n.file,i);break;case OU:const s=e.program.getTypeChecker(),o=Q6e(s,i.prop);if(!o)return;Y6e(t,n.file,i.prop,o);break;default:D.fail(JSON.stringify(e.fixId))}})})}});function e3e(e,t,n){const{allowSyntheticDefaults:i,defaultImportName:s,namedImports:o,statement:l,required:f}=n;e.replaceNode(t,l,s&&!i?M.createImportEqualsDeclaration(void 0,!1,s,M.createExternalModuleReference(f)):M.createImportDeclaration(void 0,M.createImportClause(!1,s,o),f,void 0))}function t3e(e,t,n){const{parent:i}=Za(e,n);Nd(i,!0)||D.failBadSyntaxKind(i);const s=Ws(i.parent,Fa),o=di(s.name,Be),l=Bg(s.name)?nUe(s.name):void 0;if(o||l)return{allowSyntheticDefaults:yS(t.getCompilerOptions()),defaultImportName:o,namedImports:l,statement:Ws(s.parent.parent,S_),required:Fi(i.arguments)}}function nUe(e){const t=[];for(const n of e.elements){if(!Be(n.name)||n.initializer)return;t.push(M.createImportSpecifier(!1,di(n.propertyName,Be),n.name))}if(t.length)return M.createNamedImports(t)}var MU,one,iUe=or({"src/services/codefixes/requireInTs.ts"(){"use strict";Ri(),Fo(),MU="requireInTs",one=[p.require_call_may_be_converted_to_an_import.code],Po({errorCodes:one,getCodeActions(e){const t=t3e(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Vn.ChangeTracker.with(e,i=>e3e(i,e.sourceFile,t));return[po(MU,n,p.Convert_require_to_import,MU,p.Convert_all_require_to_import)]},fixIds:[MU],getAllCodeActions:e=>qc(e,one,(t,n)=>{const i=t3e(n.file,e.program,n.start);i&&e3e(t,e.sourceFile,i)})})}});function r3e(e,t){const n=Za(e,t);if(!Be(n))return;const{parent:i}=n;if(Hf(i)&&yh(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(vb(i)){const s=i.parent.parent;return{importNode:s,name:n,moduleSpecifier:s.moduleSpecifier}}}function n3e(e,t,n,i){e.replaceNode(t,n.importNode,l2(n.name,void 0,n.moduleSpecifier,f0(t,i)))}var LU,cne,aUe=or({"src/services/codefixes/useDefaultImport.ts"(){"use strict";Ri(),Fo(),LU="useDefaultImport",cne=[p.Import_may_be_converted_to_a_default_import.code],Po({errorCodes:cne,getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,i=r3e(t,n);if(!i)return;const s=Vn.ChangeTracker.with(e,o=>n3e(o,t,i,e.preferences));return[po(LU,s,p.Convert_to_default_import,LU,p.Convert_all_to_default_imports)]},fixIds:[LU],getAllCodeActions:e=>qc(e,cne,(t,n)=>{const i=r3e(n.file,n.start);i&&n3e(t,n.file,i,e.preferences)})})}});function i3e(e,t,n){const i=di(Za(t,n.start),Um);if(!i)return;const s=i.getText(t)+"n";e.replaceNode(t,i,M.createBigIntLiteral(s))}var FU,lne,sUe=or({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";Ri(),Fo(),FU="useBigintLiteral",lne=[p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Po({errorCodes:lne,getCodeActions:function(t){const n=Vn.ChangeTracker.with(t,i=>i3e(i,t.sourceFile,t.span));if(n.length>0)return[po(FU,n,p.Convert_to_a_bigint_numeric_literal,FU,p.Convert_all_to_bigint_numeric_literals)]},fixIds:[FU],getAllCodeActions:e=>qc(e,lne,(t,n)=>i3e(t,n.file,n))})}});function a3e(e,t){const n=Za(e,t);return D.assert(n.kind===102,"This token should be an ImportKeyword"),D.assert(n.parent.kind===204,"Token parent should be an ImportType"),n.parent}function s3e(e,t,n){const i=M.updateImportTypeNode(n,n.argument,n.assertions,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,i)}var o3e,RU,une,oUe=or({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";Ri(),Fo(),o3e="fixAddModuleReferTypeMissingTypeof",RU=o3e,une=[p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Po({errorCodes:une,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=a3e(n,i.start),o=Vn.ChangeTracker.with(t,l=>s3e(l,n,s));return[po(RU,o,p.Add_missing_typeof,RU,p.Add_missing_typeof)]},fixIds:[RU],getAllCodeActions:e=>qc(e,une,(t,n)=>s3e(t,e.sourceFile,a3e(n.file,n.start)))})}});function c3e(e,t){let s=Za(e,t).parent.parent;if(!(!Un(s)&&(s=s.parent,!Un(s)))&&Eu(s.operatorToken))return s}function l3e(e,t,n){const i=cUe(n);i&&e.replaceNode(t,n,M.createJsxFragment(M.createJsxOpeningFragment(),i,M.createJsxJsxClosingFragment()))}function cUe(e){const t=[];let n=e;for(;;)if(Un(n)&&Eu(n.operatorToken)&&n.operatorToken.kind===28){if(t.push(n.left),OD(n.right))return t.push(n.right),t;if(Un(n.right)){n=n.right;continue}else return}else return}var BU,_ne,lUe=or({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";Ri(),Fo(),BU="wrapJsxInFragment",_ne=[p.JSX_expressions_must_have_one_parent_element.code],Po({errorCodes:_ne,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=c3e(n,i.start);if(!s)return;const o=Vn.ChangeTracker.with(t,l=>l3e(l,n,s));return[po(BU,o,p.Wrap_in_JSX_fragment,BU,p.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[BU],getAllCodeActions:e=>qc(e,_ne,(t,n)=>{const i=c3e(e.sourceFile,n.start);i&&l3e(t,e.sourceFile,i)})})}});function u3e(e,t){const n=Za(e,t),i=di(n.parent.parent,x7);if(!i)return;const s=Lp(i.parent)?i.parent:di(i.parent.parent,zg);if(s)return{indexSignature:i,container:s}}function uUe(e,t){return M.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function _3e(e,t,{indexSignature:n,container:i}){const o=(Lp(i)?i.members:i.type.members).filter(m=>!x7(m)),l=Fi(n.parameters),f=M.createTypeParameterDeclaration(void 0,Ws(l.name,Be),l.type),_=M.createMappedTypeNode(r9(n)?M.createModifier(148):void 0,f,void 0,n.questionToken,n.type,void 0),h=M.createIntersectionTypeNode([...Gw(i),_,...o.length?[M.createTypeLiteralNode(o)]:tt]);e.replaceNode(t,i,uUe(i,h))}var jU,fne,_Ue=or({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";Ri(),Fo(),jU="fixConvertToMappedObjectType",fne=[p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Po({errorCodes:fne,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=u3e(n,i.start);if(!s)return;const o=Vn.ChangeTracker.with(t,f=>_3e(f,n,s)),l=ri(s.container.name);return[po(jU,o,[p.Convert_0_to_mapped_object_type,l],jU,[p.Convert_0_to_mapped_object_type,l])]},fixIds:[jU],getAllCodeActions:e=>qc(e,fne,(t,n)=>{const i=u3e(n.file,n.start);i&&_3e(t,n.file,i)})})}}),pne,f3e,fUe=or({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";Ri(),Fo(),pne="removeAccidentalCallParentheses",f3e=[p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Po({errorCodes:f3e,getCodeActions(e){const t=Sn(Za(e.sourceFile,e.span.start),go);if(!t)return;const n=Vn.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Wg(pne,n,p.Remove_parentheses)]},fixIds:[pne]})}});function p3e(e,t,n){const i=di(Za(t,n.start),f=>f.kind===135),s=i&&di(i.parent,Dk);if(!s)return;let o=s;if(Md(s.parent)){const f=f9(s.expression,!1);if(Be(f)){const _=j_(s.parent.pos,t);_&&_.kind!==105&&(o=s.parent)}}e.replaceNode(t,o,s.expression)}var zU,dne,pUe=or({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";Ri(),Fo(),zU="removeUnnecessaryAwait",dne=[p.await_has_no_effect_on_the_type_of_this_expression.code],Po({errorCodes:dne,getCodeActions:function(t){const n=Vn.ChangeTracker.with(t,i=>p3e(i,t.sourceFile,t.span));if(n.length>0)return[po(zU,n,p.Remove_unnecessary_await,zU,p.Remove_all_unnecessary_uses_of_await)]},fixIds:[zU],getAllCodeActions:e=>qc(e,dne,(t,n)=>p3e(t,n.file,n))})}});function d3e(e,t){return Sn(Za(e,t.start),Tf)}function m3e(e,t,n){if(!t)return;const i=D.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,M.updateImportDeclaration(t,t.modifiers,M.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.assertClause)),e.insertNodeAfter(n.sourceFile,t,M.createImportDeclaration(void 0,M.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.assertClause))}var mne,JU,dUe=or({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";Ri(),Fo(),mne=[p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],JU="splitTypeOnlyImport",Po({errorCodes:mne,fixIds:[JU],getCodeActions:function(t){const n=Vn.ChangeTracker.with(t,i=>m3e(i,d3e(t.sourceFile,t.span),t));if(n.length)return[po(JU,n,p.Split_into_two_separate_import_declarations,JU,p.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>qc(e,mne,(t,n)=>{m3e(t,d3e(e.sourceFile,n),e)})})}});function g3e(e,t,n){var i;const o=n.getTypeChecker().getSymbolAtLocation(Za(e,t));if(o===void 0)return;const l=di((i=o==null?void 0:o.valueDeclaration)==null?void 0:i.parent,of);if(l===void 0)return;const f=zc(l,87,e);if(f!==void 0)return{symbol:o,token:f}}function h3e(e,t,n){e.replaceNode(t,n,M.createToken(121))}var UU,gne,mUe=or({"src/services/codefixes/convertConstToLet.ts"(){"use strict";Ri(),Fo(),UU="fixConvertConstToLet",gne=[p.Cannot_assign_to_0_because_it_is_a_constant.code],Po({errorCodes:gne,getCodeActions:function(t){const{sourceFile:n,span:i,program:s}=t,o=g3e(n,i.start,s);if(o===void 0)return;const l=Vn.ChangeTracker.with(t,f=>h3e(f,n,o.token));return[yte(UU,l,p.Convert_const_to_let,UU,p.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Map;return a8(Vn.ChangeTracker.with(e,i=>{s8(e,gne,s=>{const o=g3e(s.file,s.start,t);if(o&&Lg(n,oc(o.symbol)))return h3e(i,s.file,o.token)})}))},fixIds:[UU]})}});function y3e(e,t,n){const i=Za(e,t);return i.kind===27&&i.parent&&(Dc(i.parent)||Op(i.parent))?{node:i}:void 0}function v3e(e,t,{node:n}){const i=M.createToken(28);e.replaceNode(t,n,i)}var VU,b3e,hne,gUe=or({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";Ri(),Fo(),VU="fixExpectedComma",b3e=p._0_expected.code,hne=[b3e],Po({errorCodes:hne,getCodeActions(e){const{sourceFile:t}=e,n=y3e(t,e.span.start,e.errorCode);if(!n)return;const i=Vn.ChangeTracker.with(e,s=>v3e(s,t,n));return[po(VU,i,[p.Change_0_to_1,";",","],VU,[p.Change_0_to_1,";",","])]},fixIds:[VU],getAllCodeActions:e=>qc(e,hne,(t,n)=>{const i=y3e(n.file,n.start,n.code);i&&v3e(t,e.sourceFile,i)})})}});function x3e(e,t,n,i,s){const o=Za(t,n.start);if(!Be(o)||!go(o.parent)||o.parent.expression!==o||o.parent.arguments.length!==0)return;const l=i.getTypeChecker(),f=l.getSymbolAtLocation(o),_=f==null?void 0:f.valueDeclaration;if(!_||!Cs(_)||!v3(_.parent.parent)||s!=null&&s.has(_))return;s==null||s.add(_);const h=hUe(_.parent.parent);if(bt(h)){const m=h[0],y=!ES(m)&&!DS(m)&&DS(M.createUnionTypeNode([m,M.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,y?") | void":" | void")}else{const m=l.getResolvedSignature(o.parent),y=m==null?void 0:m.parameters[0],T=y&&l.getTypeOfSymbolAtLocation(y,_.parent.parent);jn(_)?(!T||T.flags&3)&&(e.insertText(t,_.parent.parent.end,")"),e.insertText(t,tc(t.text,_.parent.parent.pos),"/** @type {Promise} */(")):(!T||T.flags&2)&&e.insertText(t,_.parent.parent.expression.end,"")}}function hUe(e){var t;if(jn(e)){if(Md(e.parent)){const n=(t=X6(e.parent))==null?void 0:t.typeExpression.type;if(n&&Rg(n)&&Be(n.typeName)&&ri(n.typeName)==="Promise")return n.typeArguments}}else return e.typeArguments}var T3e,yne,vne,yUe=or({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";Ri(),Fo(),T3e="addVoidToPromise",yne="addVoidToPromise",vne=[p.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,p.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Po({errorCodes:vne,fixIds:[yne],getCodeActions(e){const t=Vn.ChangeTracker.with(e,n=>x3e(n,e.sourceFile,e.span,e.program));if(t.length>0)return[po(T3e,t,p.Add_void_to_Promise_resolved_without_a_value,yne,p.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return qc(e,vne,(t,n)=>x3e(t,n.file,n,e.program,new Set))}})}}),Xf={};Dl(Xf,{PreserveOptionalFlags:()=>nne,addNewNodeForMemberSymbol:()=>L6e,codeFixAll:()=>qc,createCodeFixAction:()=>po,createCodeFixActionMaybeFixAll:()=>yte,createCodeFixActionWithoutFixAll:()=>Wg,createCombinedCodeActions:()=>a8,createFileTextChanges:()=>U2e,createImportAdder:()=>Z7,createImportSpecifierResolver:()=>Pje,createJsonPropertyAssignment:()=>DU,createMissingMemberNodes:()=>Xre,createSignatureDeclarationFromCallExpression:()=>Zre,createSignatureDeclarationFromSignature:()=>EU,createStubbedBody:()=>SO,eachDiagnostic:()=>s8,findAncestorMatchingSpan:()=>rne,findJsonProperty:()=>tne,generateAccessorFromProperty:()=>J6e,getAccessorConvertiblePropertyAtPosition:()=>W6e,getAllFixes:()=>cBe,getAllSupers:()=>ine,getArgumentTypesAndTypeParameters:()=>B6e,getFixes:()=>oBe,getImportCompletionAction:()=>Oje,getImportKind:()=>$te,getJSDocTypedefNode:()=>Eje,getNoopSymbolTrackerWithResolver:()=>c8,getPromoteTypeOnlyCompletionAction:()=>Mje,getSupportedErrorCodes:()=>aBe,importFixName:()=>Qte,importSymbols:()=>l8,moduleSpecifierToValidIdentifier:()=>Yte,moduleSymbolToValidIdentifier:()=>Zte,parameterShouldGetTypeFromJSDoc:()=>obe,registerCodeFix:()=>Po,setJsonCompilerOptionValue:()=>ene,setJsonCompilerOptionValues:()=>Kre,tryGetAutoImportableReferenceFromTypeNode:()=>Q7,typeToAutoImportableTypeNode:()=>AU});var Fo=or({"src/services/_namespaces/ts.codefix.ts"(){"use strict";lBe(),uBe(),_Be(),dBe(),vBe(),SBe(),kBe(),CBe(),wBe(),NBe(),zBe(),UBe(),KBe(),hje(),yje(),bje(),xje(),Aje(),Dje(),Ije(),eze(),nze(),sze(),oze(),cze(),_ze(),dze(),hze(),Tze(),Pze(),Mze(),Lze(),Rze(),Bze(),jze(),zze(),Uze(),Vze(),Wze(),qze(),$ze(),Gze(),Yze(),tJe(),uJe(),fJe(),pJe(),gJe(),hJe(),vJe(),bJe(),AJe(),DJe(),NJe(),FJe(),GJe(),QJe(),rUe(),iUe(),aUe(),sUe(),oUe(),lUe(),_Ue(),fUe(),pUe(),dUe(),mUe(),gUe(),yUe()}});function vUe(e){return!!(e.kind&1)}function bUe(e){return!!(e.kind&2)}function kO(e){return!!(e&&e.kind&4)}function _C(e){return!!(e&&e.kind===32)}function xUe(e){return kO(e)||_C(e)||bne(e)}function TUe(e){return(kO(e)||_C(e))&&!!e.isFromPackageJson}function SUe(e){return!!(e.kind&8)}function kUe(e){return!!(e.kind&16)}function S3e(e){return!!(e&&e.kind&64)}function k3e(e){return!!(e&&e.kind&128)}function CUe(e){return!!(e&&e.kind&256)}function bne(e){return!!(e&&e.kind&512)}function C3e(e,t,n,i,s,o,l,f,_){var h,m,y;const T=Tl(),k=l||vS(Ju(i.getCompilerOptions()));let E=!1,O=0,N=0,B=0,U=0;const V=_({tryResolve:z,skippedAny:()=>E,resolvedAny:()=>N>0,resolvedBeyondLimit:()=>N>KU}),re=U?` (${(B/U*100).toFixed(1)}% hit rate)`:"";return(h=t.log)==null||h.call(t,`${e}: resolved ${N} module specifiers, plus ${O} ambient and ${B} from cache${re}`),(m=t.log)==null||m.call(t,`${e}: response is ${E?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${Tl()-T}`),V;function z(ce,R){if(R){const $=n.getModuleSpecifierForBestExportInfo(ce,s,f);return $&&O++,$||"failed"}const le=k||o.allowIncompleteCompletions&&N{const E=Mr(_.entries,O=>{var N;if(!O.hasAction||!O.source||!O.data||w3e(O.data))return O;if(!Y3e(O.name,m))return;const{origin:B}=D.checkDefined(B3e(O.name,O.data,i,s)),U=y.get(t.path,O.data.exportMapKey),V=U&&k.tryResolve(U,!hf(ig(B.moduleSymbol.name)));if(V==="skipped")return O;if(!V||V==="failed"){(N=s.log)==null||N.call(s,`Unexpected failure resolving auto import for '${O.name}' from '${O.source}'`);return}const re=Xs(fa({},B),{kind:32,moduleSpecifier:V.moduleSpecifier});return O.data=M3e(re),O.source=Sne(re),O.sourceDisplay=[$m(re.moduleSpecifier)],O});return k.skippedAny()||(_.isIncomplete=void 0),E});return _.entries=T,_.flags=(_.flags||0)|4,_.optionalReplacementSpan=N3e(h),_}function xne(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function E3e(e,t,n,i,s,o){const l=Za(e,t);if(!R5(l)&&!cg(l))return[];const f=cg(l)?l:l.parent;if(!cg(f))return[];const _=f.parent;if(!Qs(_))return[];const h=Ip(e),m=s.includeCompletionsWithSnippetText||void 0,y=ef(f.tags,T=>Jg(T)&&T.getEnd()<=t);return Mr(_.parameters,T=>{if(!D5(T).length){if(Be(T.name)){const k={tabstop:1},E=T.name.text;let O=YE(E,T.initializer,T.dotDotDotToken,h,!1,!1,n,i,s),N=m?YE(E,T.initializer,T.dotDotDotToken,h,!1,!0,n,i,s,k):void 0;return o&&(O=O.slice(1),N&&(N=N.slice(1))),{name:O,kind:"parameter",sortText:Cf.LocationPriority,insertText:m?N:void 0,isSnippet:m}}else if(T.parent.parameters.indexOf(T)===y){const k=`param${y}`,E=A3e(k,T.name,T.initializer,T.dotDotDotToken,h,!1,n,i,s),O=m?A3e(k,T.name,T.initializer,T.dotDotDotToken,h,!0,n,i,s):void 0;let N=E.join(Yv(i)+"* "),B=O==null?void 0:O.join(Yv(i)+"* ");return o&&(N=N.slice(1),B&&(B=B.slice(1))),{name:N,kind:"parameter",sortText:Cf.LocationPriority,insertText:m?B:void 0,isSnippet:m}}}})}function A3e(e,t,n,i,s,o,l,f,_){if(!s)return[YE(e,n,i,s,!1,o,l,f,_,{tabstop:1})];return h(e,t,n,i,{tabstop:1});function h(y,T,k,E,O){if(Bg(T)&&!E){const B={tabstop:O.tabstop},U=YE(y,k,E,s,!0,o,l,f,_,B);let V=[];for(const re of T.elements){const z=m(y,re,B);if(z)V.push(...z);else{V=void 0;break}}if(V)return O.tabstop=B.tabstop,[U,...V]}return[YE(y,k,E,s,!1,o,l,f,_,O)]}function m(y,T,k){if(!T.propertyName&&Be(T.name)||Be(T.name)){const E=T.propertyName?Jw(T.propertyName):T.name.text;if(!E)return;const O=`${y}.${E}`;return[YE(O,T.initializer,T.dotDotDotToken,s,!1,o,l,f,_,k)]}else if(T.propertyName){const E=Jw(T.propertyName);return E&&h(`${y}.${E}`,T.name,T.initializer,T.dotDotDotToken,k)}}}function YE(e,t,n,i,s,o,l,f,_,h){if(o&&D.assertIsDefined(h),t&&(e=AUe(e,t)),o&&(e=h3(e)),i){let m="*";if(s)D.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){const k=l.getTypeAtLocation(t.parent);if(!(k.flags&16385)){const E=t.getSourceFile(),N=f0(E,_)===0?268435456:0,B=l.typeToTypeNode(k,Sn(t,Qs),N);if(B){const U=o?$U({removeComments:!0,module:f.module,target:f.target}):V4({removeComments:!0,module:f.module,target:f.target});Ln(B,1),m=U.printNode(4,B,E)}}}o&&m==="*"&&(m=`\${${h.tabstop++}:${m}}`)}const y=!s&&n?"...":"",T=o?`\${${h.tabstop++}}`:"";return`@param {${y}${m}} ${e} ${T}`}else{const m=o?`\${${h.tabstop++}}`:"";return`@param ${e} ${m}`}}function AUe(e,t){const n=t.getText().trim();return n.includes(` -`)||n.length>80?`[${e}]`:`[${e}=${n}]`}function DUe(e){return{name:Uo(e),kind:"keyword",kindModifiers:"",sortText:Cf.GlobalsOrKeywords}}function NUe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function D3e(e,t,n){return{kind:4,keywordCompletions:j3e(e,t),isNewIdentifierLocation:n}}function IUe(e){switch(e){case 156:return 8;default:D.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function N3e(e){return(e==null?void 0:e.kind)===80?Zp(e):void 0}function PUe(e,t,n,i,s,o,l,f,_,h){const{symbols:m,contextToken:y,completionKind:T,isInSnippetScope:k,isNewIdentifierLocation:E,location:O,propertyAccessToConvert:N,keywordFilters:B,symbolToOriginInfoMap:U,recommendedCompletion:V,isJsxInitializer:re,isTypeOnlyLocation:z,isJsxIdentifierExpected:ce,isRightOfOpenTag:R,isRightOfDotOrQuestionDot:le,importStatementCompletion:ae,insideJsDocTagTypeExpression:ye,symbolToSortTextMap:$,hasUnresolvedAutoImports:ee}=o;let te=o.literals;const me=n.getTypeChecker();if(wN(e.scriptKind)===1){const Fe=MUe(O,e);if(Fe)return Fe}const ve=Sn(y,W9);if(ve&&(Xfe(y)||c3(y,ve.expression))){const Fe=gz(me,ve.parent.clauses);te=te.filter(Ue=>!Fe.hasValue(Ue)),m.forEach((Ue,Ae)=>{if(Ue.valueDeclaration&&C3(Ue.valueDeclaration)){const Me=me.getConstantValue(Ue.valueDeclaration);Me!==void 0&&Fe.hasValue(Me)&&(U[Ae]={kind:256})}})}const we=dl(),K=I3e(e,i);if(K&&!E&&(!m||m.length===0)&&B===0)return;const Ze=kne(m,we,void 0,y,O,_,e,t,n,gc(i),s,T,l,i,f,z,N,ce,re,ae,V,U,$,ce,R,h);if(B!==0)for(const Fe of j3e(B,!ye&&Ip(e)))(z&&xE(Qx(Fe.name))||!Ze.has(Fe.name))&&(Ze.add(Fe.name),qo(we,Fe,CO,!0));for(const Fe of rVe(y,_))Ze.has(Fe.name)||(Ze.add(Fe.name),qo(we,Fe,CO,!0));for(const Fe of te){const Ue=FUe(e,l,Fe);Ze.add(Ue.name),qo(we,Ue,CO,!0)}K||LUe(e,O.pos,Ze,gc(i),we);let Re;if(l.includeCompletionsWithInsertText&&y&&!R&&!le&&(Re=Sn(y,U9))){const Fe=P3e(Re,e,l,i,t,n,f);Fe&&we.push(Fe.entry)}return{flags:o.flags,isGlobalCompletion:k,isIncomplete:l.allowIncompleteCompletions&&ee?!0:void 0,isMemberCompletion:OUe(T),isNewIdentifierLocation:E,optionalReplacementSpan:N3e(O),entries:we}}function I3e(e,t){return!Ip(e)||!!LN(e,t)}function P3e(e,t,n,i,s,o,l){const f=e.clauses,_=o.getTypeChecker(),h=_.getTypeAtLocation(e.parent.expression);if(h&&h.isUnion()&&yn(h.types,m=>m.isLiteral())){const m=gz(_,f),y=gc(i),T=f0(t,n),k=Xf.createImportAdder(t,o,n,s),E=[];for(const z of h.types)if(z.flags&1024){D.assert(z.symbol,"An enum member type should have a symbol"),D.assert(z.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const ce=z.symbol.valueDeclaration&&_.getConstantValue(z.symbol.valueDeclaration);if(ce!==void 0){if(m.hasValue(ce))continue;m.addValue(ce)}const R=Xf.typeToAutoImportableTypeNode(_,k,z,e,y);if(!R)return;const le=WU(R,y,T);if(!le)return;E.push(le)}else if(!m.hasValue(z.value))switch(typeof z.value){case"object":E.push(z.value.negative?M.createPrefixUnaryExpression(41,M.createBigIntLiteral({negative:!1,base10Value:z.value.base10Value})):M.createBigIntLiteral(z.value));break;case"number":E.push(z.value<0?M.createPrefixUnaryExpression(41,M.createNumericLiteral(-z.value)):M.createNumericLiteral(z.value));break;case"string":E.push(M.createStringLiteral(z.value,T===0));break}if(E.length===0)return;const O=er(E,z=>M.createCaseClause(z,[])),N=wb(s,l==null?void 0:l.options),B=$U({removeComments:!0,module:i.module,target:i.target,newLine:VP(N)}),U=l?z=>B.printAndFormatNode(4,z,t,l):z=>B.printNode(4,z,t),V=er(O,(z,ce)=>n.includeCompletionsWithSnippetText?`${U(z)}$${ce+1}`:`${U(z)}`).join(N);return{entry:{name:`${B.printNode(4,O[0],t)} ...`,kind:"",sortText:Cf.GlobalsOrKeywords,insertText:V,hasAction:k.hasFixes()||void 0,source:"SwitchCases/",isSnippet:n.includeCompletionsWithSnippetText?!0:void 0},importAdder:k}}}function WU(e,t,n){switch(e.kind){case 182:const i=e.typeName;return qU(i,t,n);case 198:const s=WU(e.objectType,t,n),o=WU(e.indexType,t,n);return s&&o&&M.createElementAccessExpression(s,o);case 200:const l=e.literal;switch(l.kind){case 11:return M.createStringLiteral(l.text,n===0);case 9:return M.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 195:const f=WU(e.type,t,n);return f&&(Be(f)?f:M.createParenthesizedExpression(f));case 185:return qU(e.exprName,t,n);case 204:D.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function qU(e,t,n){if(Be(e))return e;const i=Ba(e.right.escapedText);return VH(i,t)?M.createPropertyAccessExpression(qU(e.left,t,n),i):M.createElementAccessExpression(qU(e.left,t,n),M.createStringLiteral(i,n===0))}function OUe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function MUe(e,t){const n=Sn(e,i=>{switch(i.kind){case 286:return!0;case 44:case 32:case 80:case 210:return!1;default:return"quit"}});if(n){const i=!!zc(n,32,t),l=n.parent.openingElement.tagName.getText(t)+(i?"":">"),f=Zp(n.tagName),_={name:l,kind:"class",kindModifiers:void 0,sortText:Cf.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:f,entries:[_]}}}function LUe(e,t,n,i,s){ste(e).forEach((o,l)=>{if(o===t)return;const f=Ba(l);!n.has(f)&&r0(f,i)&&(n.add(f),qo(s,{name:f,kind:"warning",kindModifiers:"",sortText:Cf.JavascriptIdentifiers,isFromUncheckedFile:!0},CO))})}function Tne(e,t,n){return typeof n=="object"?g3(n)+"n":bs(n)?wE(e,t,n):JSON.stringify(n)}function FUe(e,t,n){return{name:Tne(e,t,n),kind:"string",kindModifiers:"",sortText:Cf.LocationPriority}}function RUe(e,t,n,i,s,o,l,f,_,h,m,y,T,k,E,O,N,B,U,V,re,z,ce,R){let le,ae=sK(n),ye,$,ee=Sne(y),te,me,ve;const we=_.getTypeChecker(),K=y&&kUe(y),Ze=y&&bUe(y)||m;if(y&&vUe(y))le=m?`this${K?"?.":""}[${L3e(l,U,h)}]`:`this${K?"?.":"."}${h}`;else if((Ze||K)&&k){le=Ze?m?`[${L3e(l,U,h)}]`:`[${h}]`:h,(K||k.questionDotToken)&&(le=`?.${le}`);const Re=zc(k,25,l)||zc(k,29,l);if(!Re)return;const Fe=Ga(h,k.name.text)?k.name.end:Re.end;ae=L_(Re.getStart(l),Fe)}if(E&&(le===void 0&&(le=h),le=`{${le}}`,typeof E!="boolean"&&(ae=Zp(E,l))),y&&SUe(y)&&k){le===void 0&&(le=h);const Re=j_(k.pos,l);let Fe="";Re&&az(Re.end,Re.parent,l)&&(Fe=";"),Fe+=`(await ${k.expression.getText()})`,le=m?`${Fe}${le}`:`${Fe}${K?"?.":"."}${le}`;const Ae=di(k.parent,Dk)?k.parent:k.expression;ae=L_(Ae.getStart(l),k.end)}if(_C(y)&&(te=[$m(y.moduleSpecifier)],O&&({insertText:le,replacementSpan:ae}=WUe(h,O,y,N,l,B,U),$=U.includeCompletionsWithSnippetText?!0:void 0)),(y==null?void 0:y.kind)===64&&(me=!0),U.includeCompletionsWithClassMemberSnippets&&U.includeCompletionsWithInsertText&&V===3&&BUe(e,s,l)){let Re;({insertText:le,isSnippet:$,importAdder:Re,replacementSpan:ae}=O3e(f,_,B,U,h,e,s,o,i,re)),t=Cf.ClassMemberSnippets,Re!=null&&Re.hasFixes()&&(me=!0,ee="ClassMemberSnippet/")}if(y&&k3e(y)&&({insertText:le,isSnippet:$,labelDetails:ve}=y,U.useLabelDetailsInCompletionEntries||(h=h+ve.detail,ve=void 0),ee="ObjectLiteralMethodSnippet/",t=Cf.SortBelow(t)),z&&!ce&&U.includeCompletionsWithSnippetText&&U.jsxAttributeCompletionStyle&&U.jsxAttributeCompletionStyle!=="none"&&!(E1(s.parent)&&s.parent.initializer)){let Re=U.jsxAttributeCompletionStyle==="braces";const Fe=we.getTypeOfSymbolAtLocation(e,s);U.jsxAttributeCompletionStyle==="auto"&&!(Fe.flags&528)&&!(Fe.flags&1048576&&on(Fe.types,Ue=>!!(Ue.flags&528)))&&(Fe.flags&402653316||Fe.flags&1048576&&yn(Fe.types,Ue=>!!(Ue.flags&402686084||phe(Ue)))?(le=`${h3(h)}=${wE(l,U,"$1")}`,$=!0):Re=!0),Re&&(le=`${h3(h)}={$1}`,$=!0)}if(!(le!==void 0&&!U.includeCompletionsWithInsertText))return(kO(y)||_C(y))&&(ye=M3e(y),me=!O),fa({name:h,kind:_2.getSymbolKind(we,e,s),kindModifiers:_2.getSymbolModifiers(we,e),sortText:t,source:ee,hasAction:me?!0:void 0,isRecommended:qUe(e,T,we)||void 0,insertText:le,replacementSpan:ae,sourceDisplay:te,labelDetails:ve,isSnippet:$,isPackageJsonImport:TUe(y)||void 0,isImportStatementCompletion:!!O||void 0,data:ye},R?{symbol:e}:void 0)}function BUe(e,t,n){if(jn(t))return!1;const i=106500;return!!(e.flags&i)&&(Yi(t)||t.parent&&t.parent.parent&&yf(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&Yi(t.parent.parent)||t.parent&&Fk(t)&&Yi(t.parent))}function O3e(e,t,n,i,s,o,l,f,_,h){const m=Sn(l,Yi);if(!m)return{insertText:s};let y,T,k=s;const E=t.getTypeChecker(),O=l.getSourceFile(),N=$U({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:VP(wb(e,h==null?void 0:h.options))}),B=Xf.createImportAdder(O,t,i,e);let U;if(i.includeCompletionsWithSnippetText){y=!0;const le=M.createEmptyStatement();U=M.createBlock([le],!0),TG(le,{kind:0,order:0})}else U=M.createBlock([],!0);let V=0;const{modifiers:re,span:z}=jUe(_,O,f),ce=!!(re&256),R=[];return Xf.addNewNodeForMemberSymbol(o,m,O,{program:t,host:e},i,B,le=>{let ae=0;ce&&(ae|=256),yf(le)&&E.getMemberOverrideModifierStatus(m,le,o)===1&&(ae|=16384),R.length||(V=le.modifierFlagsCache|ae|re),le=M.updateModifiers(le,V),R.push(le)},U,Xf.PreserveOptionalFlags.Property,ce),R.length&&(T=z,h?k=N.printAndFormatSnippetList(131073,M.createNodeArray(R),O,h):k=N.printSnippetList(131073,M.createNodeArray(R),O)),{insertText:k,isSnippet:y,importAdder:B,replacementSpan:T}}function jUe(e,t,n){if(!e||Ql(t,n).line>Ql(t,e.getEnd()).line)return{modifiers:0};let i=0,s,o;return(o=zUe(e))&&(i|=mS(o),s=Zp(e)),fo(e.parent)&&(i|=uh(e.parent.modifiers)&126975,s=Zp(e.parent)),{modifiers:i,span:s}}function zUe(e){if(Do(e))return e.kind;if(Be(e)){const t=C4(e);if(t&&Wv(t))return t}}function JUe(e,t,n,i,s,o,l,f){const _=l.includeCompletionsWithSnippetText||void 0;let h=t;const m=n.getSourceFile(),y=UUe(e,n,m,i,s,l);if(!y)return;const T=$U({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:VP(wb(s,f==null?void 0:f.options))});f?h=T.printAndFormatSnippetList(80,M.createNodeArray([y],!0),m,f):h=T.printSnippetList(80,M.createNodeArray([y],!0),m);const k=V4({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),E=M.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),O={detail:k.printNode(4,E,m)};return{isSnippet:_,insertText:h,labelDetails:O}}function UUe(e,t,n,i,s,o){const l=e.getDeclarations();if(!(l&&l.length))return;const f=i.getTypeChecker(),_=l[0],h=Vl(Es(_),!1),m=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),T=33554432|(f0(n,o)===0?268435456:0);switch(_.kind){case 170:case 171:case 172:case 173:{let k=m.flags&1048576&&m.types.length<10?f.getUnionType(m.types,2):m;if(k.flags&1048576){const U=Mn(k.types,V=>f.getSignaturesOfType(V,0).length>0);if(U.length===1)k=U[0];else return}if(f.getSignaturesOfType(k,0).length!==1)return;const O=f.typeToTypeNode(k,t,T,Xf.getNoopSymbolTrackerWithResolver({program:i,host:s}));if(!O||!uy(O))return;let N;if(o.includeCompletionsWithSnippetText){const U=M.createEmptyStatement();N=M.createBlock([U],!0),TG(U,{kind:0,order:0})}else N=M.createBlock([],!0);const B=O.parameters.map(U=>M.createParameterDeclaration(void 0,U.dotDotDotToken,U.name,void 0,void 0,U.initializer));return M.createMethodDeclaration(void 0,void 0,h,void 0,void 0,B,void 0,N)}default:return}}function $U(e){let t;const n=Vn.createWriter(Yv(e)),i=V4(e,n),s=Xs(fa({},n),{write:T=>o(T,()=>n.write(T)),nonEscapingWrite:n.write,writeLiteral:T=>o(T,()=>n.writeLiteral(T)),writeStringLiteral:T=>o(T,()=>n.writeStringLiteral(T)),writeSymbol:(T,k)=>o(T,()=>n.writeSymbol(T,k)),writeParameter:T=>o(T,()=>n.writeParameter(T)),writeComment:T=>o(T,()=>n.writeComment(T)),writeProperty:T=>o(T,()=>n.writeProperty(T))});return{printSnippetList:l,printAndFormatSnippetList:_,printNode:h,printAndFormatNode:y};function o(T,k){const E=h3(T);if(E!==T){const O=n.getTextPos();k();const N=n.getTextPos();t=Ht(t||(t=[]),{newText:E,span:{start:O,length:N-O}})}else k()}function l(T,k,E){const O=f(T,k,E);return t?Vn.applyChanges(O,t):O}function f(T,k,E){return t=void 0,s.clear(),i.writeList(T,k,E,s),s.getText()}function _(T,k,E,O){const N={text:f(T,k,E),getLineAndCharacterOfPosition(re){return Ql(this,re)}},B=mz(O,E),U=lo(k,re=>{const z=Vn.assignPositionsToNode(re);return Q_.formatNodeGivenIndentation(z,N,E.languageVariant,0,0,Xs(fa({},O),{options:B}))}),V=t?mr(Nn(U,t),(re,z)=>Lv(re.span,z.span)):U;return Vn.applyChanges(N.text,V)}function h(T,k,E){const O=m(T,k,E);return t?Vn.applyChanges(O,t):O}function m(T,k,E){return t=void 0,s.clear(),i.writeNode(T,k,E,s),s.getText()}function y(T,k,E,O){const N={text:m(T,k,E),getLineAndCharacterOfPosition(z){return Ql(this,z)}},B=mz(O,E),U=Vn.assignPositionsToNode(k),V=Q_.formatNodeGivenIndentation(U,N,E.languageVariant,0,0,Xs(fa({},O),{options:B})),re=t?mr(Nn(V,t),(z,ce)=>Lv(z.span,ce.span)):V;return Vn.applyChanges(N.text,re)}}function M3e(e){const t=e.fileName?void 0:ig(e.moduleSymbol.name),n=e.isFromPackageJson?!0:void 0;return _C(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:ig(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function VUe(e,t,n){const i=e.exportName==="default",s=!!e.isPackageJsonImport;return w3e(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}}function WUe(e,t,n,i,s,o,l){const f=t.replacementSpan,_=h3(wE(s,l,n.moduleSpecifier)),h=n.isDefaultExport?1:n.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",y=Xf.getImportKind(s,h,o,!0),T=t.couldBeTypeOnlyImportSpecifier,k=t.isTopLevelTypeOnly?` ${Uo(156)} `:" ",E=T?`${Uo(156)} `:"",O=i?";":"";switch(y){case 3:return{replacementSpan:f,insertText:`import${k}${h3(e)}${m} = require(${_})${O}`};case 1:return{replacementSpan:f,insertText:`import${k}${h3(e)}${m} from ${_}${O}`};case 2:return{replacementSpan:f,insertText:`import${k}* as ${h3(e)} from ${_}${O}`};case 0:return{replacementSpan:f,insertText:`import${k}{ ${E}${h3(e)}${m} } from ${_}${O}`}}}function L3e(e,t,n){return/^\d+$/.test(n)?n:wE(e,t,n)}function qUe(e,t,n){return e===t||!!(e.flags&1048576)&&n.getExportSymbolOfSymbol(e)===t}function Sne(e){if(kO(e))return ig(e.moduleSymbol.name);if(_C(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function kne(e,t,n,i,s,o,l,f,_,h,m,y,T,k,E,O,N,B,U,V,re,z,ce,R,le,ae=!1){var we;const ye=Tl(),$=fVe(i,s),ee=UP(l),te=_.getTypeChecker(),me=new Map;for(let K=0;Knt.getSourceFile()===s.getSourceFile()));me.set(Ue,Pe),qo(t,je,CO,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Tl()-ye)),{has:K=>me.has(K),add:K=>me.set(K,!0)};function ve(K,Ze){var Ue;var Re;let Fe=K.flags;if(!Ja(s)){if(Wu(s.parent))return!0;if(di($,Fa)&&K.valueDeclaration===$)return!1;const Ae=(Ue=K.valueDeclaration)!=null?Ue:(Re=K.declarations)==null?void 0:Re[0];if($&&Ae&&(eu($)&&eu(Ae)||Cs($)&&Cs(Ae))){const He=Ae.pos,je=Cs($)?$.parent.parameters:AS($.parent)?void 0:$.parent.typeParameters;if(He>=$.pos&&je&&HeTne(n,l,V)===s.name);return U!==void 0?{type:"literal",literal:U}:bo(h,(V,re)=>{const z=k[re],ce=GU(V,gc(f),z,T,_.isJsxIdentifierExpected);return ce&&ce.name===s.name&&(s.source==="ClassMemberSnippet/"&&V.flags&106500||s.source==="ObjectLiteralMethodSnippet/"&&V.flags&8196||Sne(z)===s.source)?{type:"symbol",symbol:V,location:y,origin:z,contextToken:E,previousToken:O,isJsxInitializer:N,isTypeOnlyLocation:B}:void 0})||{type:"none"}}function GUe(e,t,n,i,s,o,l,f,_){const h=e.getTypeChecker(),m=e.getCompilerOptions(),{name:y,source:T,data:k}=s,{previousToken:E,contextToken:O}=HU(i,n);if(W7(n,i,E))return tV.getStringLiteralCompletionDetails(y,n,i,E,h,m,o,_,f);const N=F3e(e,t,n,i,s,o,f);switch(N.type){case"request":{const{request:B}=N;switch(B.kind){case 1:return X4.getJSDocTagNameCompletionDetails(y);case 2:return X4.getJSDocTagCompletionDetails(y);case 3:return X4.getJSDocParameterNameCompletionDetails(y);case 4:return bt(B.keywordCompletions,U=>U.name===y)?Cne(y,"keyword",5):void 0;default:return D.assertNever(B)}}case"symbol":{const{symbol:B,location:U,contextToken:V,origin:re,previousToken:z}=N,{codeActions:ce,sourceDisplay:R}=XUe(y,U,V,re,B,e,o,m,n,i,z,l,f,k,T,_),le=bne(re)?re.symbolName:B.name;return wne(B,le,h,n,U,_,ce,R)}case"literal":{const{literal:B}=N;return Cne(Tne(n,f,B),"string",typeof B=="string"?8:7)}case"cases":{const{entry:B,importAdder:U}=P3e(O.parent,n,f,e.getCompilerOptions(),o,e,void 0);if(U.hasFixes()){const V=Vn.ChangeTracker.with({host:o,formatContext:l,preferences:f},U.writeFixes);return{name:B.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:V,description:YS([p.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:B.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Mne().some(B=>B.name===y)?Cne(y,"keyword",5):void 0;default:D.assertNever(N)}}function Cne(e,t,n){return wO(e,"",t,[Fd(e,n)])}function wne(e,t,n,i,s,o,l,f){const{displayParts:_,documentation:h,symbolKind:m,tags:y}=n.runWithCancellationToken(o,T=>_2.getSymbolDisplayPartsDocumentationAndSymbolKind(T,e,i,s,s,7));return wO(t,_2.getSymbolModifiers(n,e),m,_,h,y,l,f)}function wO(e,t,n,i,s,o,l,f){return{name:e,kindModifiers:t,kind:n,displayParts:i,documentation:s,tags:o,codeActions:l,source:f,sourceDisplay:f}}function XUe(e,t,n,i,s,o,l,f,_,h,m,y,T,k,E,O){if(k!=null&&k.moduleSpecifier&&m&&$3e(n||m).replacementSpan)return{codeActions:void 0,sourceDisplay:[$m(k.moduleSpecifier)]};if(E==="ClassMemberSnippet/"){const{importAdder:ce}=O3e(l,o,f,T,e,s,t,h,n,y);if(ce)return{sourceDisplay:void 0,codeActions:[{changes:Vn.ChangeTracker.with({host:l,formatContext:y,preferences:T},ce.writeFixes),description:YS([p.Includes_imports_of_types_referenced_by_0,e])}]}}if(S3e(i)){const ce=Xf.getPromoteTypeOnlyCompletionAction(_,i.declaration.name,o,l,y,T);return D.assertIsDefined(ce,"Expected to have a code action for promoting type-only alias"),{codeActions:[ce],sourceDisplay:void 0}}if(!i||!(kO(i)||_C(i)))return{codeActions:void 0,sourceDisplay:void 0};const N=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:B}=i,U=N.getMergedSymbol(Id(s.exportSymbol||s,N)),V=(n==null?void 0:n.kind)===30&&$p(n.parent),{moduleSpecifier:re,codeAction:z}=Xf.getImportCompletionAction(U,B,k==null?void 0:k.exportMapKey,_,e,V,l,o,y,m&&Be(m)?m.getStart(_):h,T,O);return D.assert(!(k!=null&&k.moduleSpecifier)||re===k.moduleSpecifier),{sourceDisplay:[$m(re)],codeActions:[z]}}function ZUe(e,t,n,i,s,o,l){const f=F3e(e,t,n,i,s,o,l);return f.type==="symbol"?f.symbol:void 0}function YUe(e,t,n){return bo(t&&(t.isUnion()?t.types:[t]),i=>{const s=i&&i.symbol;return s&&s.flags&424&&!v_e(s)?Ene(s,e,n):void 0})}function QUe(e,t,n,i){const{parent:s}=e;switch(e.kind){case 80:return rz(e,i);case 64:switch(s.kind){case 259:return i.getContextualType(s.initializer);case 225:return i.getTypeAtLocation(s.left);case 290:return i.getContextualTypeForJsxAttribute(s);default:return}case 105:return i.getContextualType(s);case 84:const o=di(s,W9);return o?AK(o,i):void 0;case 19:return V9(s)&&!fy(s.parent)&&!T3(s.parent)?i.getContextualTypeForJsxAttribute(s.parent):void 0;default:const l=FO.getArgumentInfoForCompletions(e,t,n);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex+(e.kind===28?1:0)):nz(e.kind)&&Un(s)&&nz(s.operatorToken.kind)?i.getTypeAtLocation(s.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Ene(e,t,n){const i=n.getAccessibleSymbolChain(e,t,67108863,!1);return i?Fi(i):e.parent&&(KUe(e.parent)?e:Ene(e.parent,t,n))}function KUe(e){var t;return!!((t=e.declarations)!=null&&t.some(n=>n.kind===311))}function R3e(e,t,n,i,s,o,l,f,_,h){const m=e.getTypeChecker(),y=I3e(n,i);let T=Tl(),k=Za(n,s);t("getCompletionData: Get current token: "+(Tl()-T)),T=Tl();const E=o2(n,s,k);t("getCompletionData: Is inside comment: "+(Tl()-T));let O=!1,N=!1;if(E){if(uhe(n,s)){if(n.text.charCodeAt(s-1)===64)return{kind:1};{const q=z0(s,n);if(!/[^\*|\s(/)]/.test(n.text.substring(q,s)))return{kind:2}}}const pe=nVe(k,s);if(pe){if(pe.tagName.pos<=s&&s<=pe.tagName.end)return{kind:1};const q=Cr(pe);if(q&&(k=Za(n,s),(!k||!Gy(k)&&(k.parent.kind!==354||k.parent.name!==k))&&(O=_e(q))),!O&&Jg(pe)&&(Eu(pe.name)||pe.name.pos<=s&&s<=pe.name.end))return{kind:3,tag:pe}}if(!O){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}T=Tl();const B=!O&&Ip(n),U=HU(s,n),V=U.previousToken;let re=U.contextToken;t("getCompletionData: Get previous token: "+(Tl()-T));let z=k,ce,R=!1,le=!1,ae=!1,ye=!1,$=!1,ee=!1,te,me=qm(n,s),ve=0,we=!1,K=0;if(re){const pe=$3e(re);if(pe.keywordCompletion){if(pe.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[DUe(pe.keywordCompletion)],isNewIdentifierLocation:pe.isNewIdentifierLocation};ve=IUe(pe.keywordCompletion)}if(pe.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(K|=2,te=pe,we=pe.isNewIdentifierLocation),!pe.replacementSpan&&ln(re))return t("Returning an empty list because completion was requested in an invalid position."),ve?D3e(ve,B,Li()):void 0;let q=re.parent;if(re.kind===25||re.kind===29)switch(R=re.kind===25,le=re.kind===29,q.kind){case 210:ce=q,z=ce.expression;const rt=_9(ce);if(Eu(rt)||(go(z)||Qs(z))&&z.end===re.pos&&z.getChildCount(n)&&fi(z.getChildren(n)).kind!==22)return;break;case 165:z=q.left;break;case 266:z=q.name;break;case 204:z=q;break;case 235:z=q.getFirstToken(n),D.assert(z.kind===102||z.kind===105);break;default:return}else if(!te){if(q&&q.kind===210&&(re=q,q=q.parent),k.parent===me)switch(k.kind){case 32:(k.parent.kind===283||k.parent.kind===285)&&(me=k);break;case 44:k.parent.kind===284&&(me=k);break}switch(q.kind){case 286:re.kind===44&&(ye=!0,me=re);break;case 225:if(!q3e(q))break;case 284:case 283:case 285:ee=!0,re.kind===30&&(ae=!0,me=re);break;case 293:case 292:(V.kind===20||V.kind===80&&V.parent.kind===290)&&(ee=!0);break;case 290:if(q.initializer===V&&V.endq7(pe?f.getPackageJsonAutoImportProvider():e,f));if(R||le)Lt();else if(ae)Ae=m.getJsxIntrinsicTagNamesAt(me),D.assertEachIsDefined(Ae,"getJsxIntrinsicTagNames() should all be defined"),In(),Re=1,ve=0;else if(ye){const pe=re.parent.parent.openingElement.tagName,q=m.getSymbolAtLocation(pe);q&&(Ae=[q]),Re=1,ve=0}else if(!In())return ve?D3e(ve,B,we):void 0;t("getCompletionData: Semantic work: "+(Tl()-Ze));const xt=V&&QUe(V,s,n,m),Qe=!di(V,Wc)&&!ee?Mr(xt&&(xt.isUnion()?xt.types:[xt]),pe=>pe.isLiteral()&&!(pe.flags&1024)?pe.value:void 0):[],Mt=V&&xt&&YUe(V,xt,m);return{kind:0,symbols:Ae,completionKind:Re,isInSnippetScope:N,propertyAccessToConvert:ce,isNewIdentifierLocation:we,location:me,keywordFilters:ve,literals:Qe,symbolToOriginInfoMap:He,recommendedCompletion:Mt,previousToken:V,contextToken:re,isJsxInitializer:$,insideJsDocTagTypeExpression:O,symbolToSortTextMap:je,isTypeOnlyLocation:nt,isJsxIdentifierExpected:ee,isRightOfOpenTag:ae,isRightOfDotOrQuestionDot:R||le,importStatementCompletion:te,hasUnresolvedAutoImports:Ue,flags:K};function yr(pe){switch(pe.kind){case 347:case 354:case 348:case 350:case 352:case 355:case 356:return!0;case 351:return!!pe.constraint;default:return!1}}function Cr(pe){if(yr(pe)){const q=Ug(pe)?pe.constraint:pe.typeExpression;return q&&q.kind===315?q:void 0}if(Lk(pe)||GG(pe))return pe.class}function Lt(){Re=2;const pe=E4(z),q=pe&&!z.isTypeOf||ry(z.parent)||DP(re,n,m),rt=Nj(z);if(hm(z)||pe||mi(z)){const ar=Vu(z.parent);ar&&(we=!0);let st=m.getSymbolAtLocation(z);if(st&&(st=Id(st,m),st.flags&1920)){const Ft=m.getExportsOfModule(st);D.assertEachIsDefined(Ft,"getExportsOfModule() should all be defined");const zr=Ui=>m.isValidPropertyAccess(pe?z:z.parent,Ui.name),En=Ui=>Dne(Ui,m),Ti=ar?Ui=>{var ya;return!!(Ui.flags&1920)&&!((ya=Ui.declarations)!=null&&ya.every(_s=>_s.parent===z.parent))}:rt?Ui=>En(Ui)||zr(Ui):q||O?En:zr;for(const Ui of Ft)Ti(Ui)&&Ae.push(Ui);if(!q&&!O&&st.declarations&&st.declarations.some(Ui=>Ui.kind!==311&&Ui.kind!==266&&Ui.kind!==265)){let Ui=m.getTypeOfSymbolAtLocation(st,z).getNonOptionalType(),ya=!1;if(Ui.isNullableType()){const _s=R&&!le&&o.includeAutomaticOptionalChainCompletions!==!1;(_s||le)&&(Ui=Ui.getNonNullableType(),_s&&(ya=!0))}an(Ui,!!(z.flags&32768),ya)}return}}if(!q){m.tryGetThisTypeAt(z,!1);let ar=m.getTypeAtLocation(z).getNonOptionalType(),st=!1;if(ar.isNullableType()){const Ft=R&&!le&&o.includeAutomaticOptionalChainCompletions!==!1;(Ft||le)&&(ar=ar.getNonNullableType(),Ft&&(st=!0))}an(ar,!!(z.flags&32768),st)}}function an(pe,q,rt){we=!!pe.getStringIndexType(),le&&bt(pe.getCallSignatures())&&(we=!0);const ar=z.kind===204?z:z.parent;if(y)for(const st of pe.getApparentProperties())m.isValidPropertyAccessForCompletions(ar,pe,st)&&xn(st,!1,rt);else Ae.push(...Mn(YU(pe,m),st=>m.isValidPropertyAccessForCompletions(ar,pe,st)));if(q&&o.includeCompletionsWithInsertText){const st=m.getPromisedTypeOfPromise(pe);if(st)for(const Ft of st.getApparentProperties())m.isValidPropertyAccessForCompletions(ar,st,Ft)&&xn(Ft,!0,rt)}}function xn(pe,q,rt){var ar;const st=bo(pe.declarations,Ti=>di(Es(Ti),jc));if(st){const Ti=Lr(st.expression),Ui=Ti&&m.getSymbolAtLocation(Ti),ya=Ui&&Ene(Ui,re,m);if(ya&&Lg(Pe,oc(ya))){const _s=Ae.length;Ae.push(ya);const Os=ya.parent;if(!Os||!PP(Os)||m.tryGetMemberInModuleExportsAndProperties(ya.name,Os)!==ya)He[_s]={kind:En(2)};else{const zs=hf(ig(Os.name))?(ar=jL(Os))==null?void 0:ar.fileName:void 0,{moduleSpecifier:Wo}=(Me||(Me=Xf.createImportSpecifierResolver(n,e,f,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:zs,isFromPackageJson:!1,moduleSymbol:Os,symbol:ya,targetFlags:Id(ya,m).flags}],s,v7(me))||{};if(Wo){const Ks={kind:En(6),moduleSymbol:Os,isDefaultExport:!1,symbolName:ya.name,exportName:ya.name,fileName:zs,moduleSpecifier:Wo};He[_s]=Ks}}}else o.includeCompletionsWithInsertText&&(zr(pe),Ft(pe),Ae.push(pe))}else zr(pe),Ft(pe),Ae.push(pe);function Ft(Ti){lVe(Ti)&&(je[oc(Ti)]=Cf.LocalDeclarationPriority)}function zr(Ti){o.includeCompletionsWithInsertText&&(q&&Lg(Pe,oc(Ti))?He[Ae.length]={kind:En(8)}:rt&&(He[Ae.length]={kind:16}))}function En(Ti){return rt?Ti|16:Ti}}function Lr(pe){return Be(pe)?pe:mi(pe)?Lr(pe.expression):void 0}function In(){return(Tt()||it()||Wa()||Wt()||nr()||vi()||Y()||ia()||(bi(),1))===1}function vi(){return dt(re)?(Re=5,we=!0,ve=4,1):0}function ia(){const pe=at(re),q=pe&&m.getContextualType(pe.attributes);if(!q)return 0;const rt=pe&&m.getContextualType(pe.attributes,4);return Ae=Nn(Ae,ue(ZU(q,rt,pe.attributes,m),pe.attributes.properties)),Jn(),Re=3,we=!1,1}function Wa(){return te?(we=!0,Fn(),1):0}function bi(){ve=Q(re)?5:1,Re=1,we=Li(),V!==re&&D.assert(!!V,"Expected 'contextToken' to be defined when different from 'previousToken'.");const pe=V!==re?V.getStart():s,q=wr(re,pe,n)||n;N=Ar(q);const rt=(nt?0:111551)|788968|1920|2097152,ar=V&&!v7(V);Ae=Nn(Ae,m.getSymbolsInScope(q,rt)),D.assertEachIsDefined(Ae,"getSymbolsInScope() should all be defined");for(let st=0;stzr.getSourceFile()===n)&&(je[oc(Ft)]=Cf.GlobalsOrKeywords),ar&&!(Ft.flags&111551)){const zr=Ft.declarations&&on(Ft.declarations,wL);if(zr){const En={kind:64,declaration:zr};He[st]=En}}}if(o.includeCompletionsWithInsertText&&q.kind!==311){const st=m.tryGetThisTypeAt(q,!1,Yi(q.parent)?q:void 0);if(st&&!cVe(st,n,m))for(const Ft of YU(st,m))He[Ae.length]={kind:1},Ae.push(Ft),je[oc(Ft)]=Cf.SuggestedClassMembers}Fn(),nt&&(ve=re&&i7(re.parent)?6:7)}function Pt(){return te?!0:Fe||!o.includeCompletionsForModuleExports?!1:n.externalModuleIndicator||n.commonJsModuleIndicator||_K(e.getCompilerOptions())?!0:yhe(e)}function Ar(pe){switch(pe.kind){case 311:case 227:case 293:case 240:return!0;default:return us(pe)}}function Yt(){return O||!!te&&Q6(me.parent)||!Qr(re)&&(DP(re,n,m)||ry(me)||$r(re))}function Qr(pe){return pe&&(pe.kind===114&&(pe.parent.kind===185||Ak(pe.parent))||pe.kind===131&&pe.parent.kind===181)}function $r(pe){if(pe){const q=pe.parent.kind;switch(pe.kind){case 59:return q===171||q===170||q===168||q===259||KT(q);case 64:return q===264;case 130:return q===233;case 30:return q===182||q===215;case 96:return q===167;case 152:return q===237}}return!1}function Fn(){var pe,q;if(!Pt()||(D.assert(!(l!=null&&l.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;K|=1;const ar=V===re&&te?"":V&&Be(V)?V.text.toLowerCase():"",st=(pe=f.getModuleSpecifierCache)==null?void 0:pe.call(f),Ft=WP(n,f,e,o,h),zr=(q=f.getPackageJsonAutoImportProvider)==null?void 0:q.call(f),En=l?void 0:AE(n,o,f);C3e("collectAutoImports",f,Me||(Me=Xf.createImportSpecifierResolver(n,e,f,o)),e,s,o,!!te,v7(me),Ui=>{Ft.search(n.path,ae,(ya,_s)=>{if(!r0(ya,gc(f.getCompilationSettings()))||!l&&uS(ya)||!nt&&!te&&!(_s&111551)||nt&&!(_s&790504))return!1;const Os=ya.charCodeAt(0);return ae&&(Os<65||Os>90)?!1:l?!0:Y3e(ya,ar)},(ya,_s,Os,zs)=>{if(l&&!bt(ya,pc=>l.source===ig(pc.moduleSymbol.name))||(ya=Mn(ya,Ti),!ya.length))return;const Wo=Ui.tryResolve(ya,Os)||{};if(Wo==="failed")return;let Ks=ya[0],ti;Wo!=="skipped"&&({exportInfo:Ks=ya[0],moduleSpecifier:ti}=Wo);const Na=Ks.exportKind===1,al=Na&&uk(Ks.symbol)||Ks.symbol;ja(al,{kind:ti?32:4,moduleSpecifier:ti,symbolName:_s,exportMapKey:zs,exportName:Ks.exportKind===2?"export=":Ks.symbol.name,fileName:Ks.moduleFileName,isDefaultExport:Na,moduleSymbol:Ks.moduleSymbol,isFromPackageJson:Ks.isFromPackageJson})}),Ue=Ui.skippedAny(),K|=Ui.resolvedAny()?8:0,K|=Ui.resolvedBeyondLimit()?16:0});function Ti(Ui){const ya=di(Ui.moduleSymbol.valueDeclaration,Ja);if(!ya){const _s=ig(Ui.moduleSymbol.name);return z7.nodeCoreModules.has(_s)&&Ga(_s,"node:")!==dz(n,e)?!1:En?En.allowsImportingAmbientModule(Ui.moduleSymbol,wt(Ui.isFromPackageJson)):!0}return UK(Ui.isFromPackageJson?zr:e,n,ya,o,En,wt(Ui.isFromPackageJson),st)}}function ja(pe,q){const rt=oc(pe);je[rt]!==Cf.GlobalsOrKeywords&&(He[Ae.length]=q,je[rt]=te?Cf.LocationPriority:Cf.AutoImportSuggestions,Ae.push(pe))}function Ca(pe,q){jn(me)||pe.forEach(rt=>{if(!rn(rt))return;const ar=GU(rt,gc(i),void 0,0,!1);if(!ar)return;const{name:st}=ar,Ft=JUe(rt,st,q,e,f,i,o,_);if(!Ft)return;const zr=fa({kind:128},Ft);K|=32,He[Ae.length]=zr,Ae.push(rt)})}function rn(pe){return!!(pe.flags&8196)}function wr(pe,q,rt){let ar=pe;for(;ar&&!ZQ(ar,q,rt);)ar=ar.parent;return ar}function ln(pe){const q=Tl(),rt=ot(pe)||fr(pe)||Jt(pe)||Kr(pe)||OR(pe);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Tl()-q)),rt}function Kr(pe){if(pe.kind===12)return!0;if(pe.kind===32&&pe.parent){if(me===pe.parent&&(me.kind===285||me.kind===284))return!1;if(pe.parent.kind===285)return me.parent.kind!==285;if(pe.parent.kind===286||pe.parent.kind===284)return!!pe.parent.parent&&pe.parent.parent.kind===283}return!1}function Li(){if(re){const pe=re.parent.kind,q=XU(re);switch(q){case 28:return pe===212||pe===175||pe===213||pe===208||pe===225||pe===183||pe===209;case 21:return pe===212||pe===175||pe===213||pe===216||pe===195;case 23:return pe===208||pe===180||pe===166;case 144:case 145:case 102:return!0;case 25:return pe===266;case 19:return pe===262||pe===209;case 64:return pe===259||pe===225;case 16:return pe===227;case 17:return pe===238;case 134:return pe===173||pe===303;case 42:return pe===173}if(EO(q))return!0}return!1}function ot(pe){return(EG(pe)||zq(pe))&&(CP(pe,s)||s===pe.end&&(!!pe.isUnterminated||EG(pe)))}function Tt(){const pe=sVe(re);if(!pe)return 0;const rt=(aI(pe.parent)?pe.parent:void 0)||pe,ar=W3e(rt,m);if(!ar)return 0;const st=m.getTypeFromTypeNode(rt),Ft=YU(ar,m),zr=YU(st,m),En=new Set;return zr.forEach(Ti=>En.add(Ti.escapedName)),Ae=Nn(Ae,Mn(Ft,Ti=>!En.has(Ti.escapedName))),Re=0,we=!0,1}function it(){const pe=Ae.length,q=eVe(re);if(!q)return 0;Re=0;let rt,ar;if(q.kind===209){const st=uVe(q,m);if(st===void 0)return q.flags&33554432?2:(Fe=!0,0);const Ft=m.getContextualType(q,4),zr=(Ft||st).getStringIndexType(),En=(Ft||st).getNumberIndexType();if(we=!!zr||!!En,rt=ZU(st,Ft,q,m),ar=q.properties,rt.length===0&&!En)return Fe=!0,0}else{D.assert(q.kind===205),we=!1;const st=ch(q.parent);if(!$5(st))return D.fail("Root declaration is not variable-like.");let Ft=lb(st)||!!Lf(st)||st.parent.parent.kind===249;if(!Ft&&st.kind===168&&(ht(st.parent)?Ft=!!m.getContextualType(st.parent):(st.parent.kind===173||st.parent.kind===177)&&(Ft=ht(st.parent.parent)&&!!m.getContextualType(st.parent.parent))),Ft){const zr=m.getTypeAtLocation(q);if(!zr)return 2;rt=m.getPropertiesOfType(zr).filter(En=>m.isPropertyAccessible(q,!1,!1,zr,En)),ar=q.elements}}if(rt&&rt.length>0){const st=li(rt,D.checkDefined(ar));Ae=Nn(Ae,st),Jn(),q.kind===209&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(ge(pe),Ca(st,q))}return 1}function Wt(){if(!re)return 0;const pe=re.kind===19||re.kind===28?di(re.parent,xH):$j(re)?di(re.parent.parent,xH):void 0;if(!pe)return 0;$j(re)||(ve=8);const{moduleSpecifier:q}=pe.kind===274?pe.parent.parent:pe.parent;if(!q)return we=!0,pe.kind===274?2:0;const rt=m.getSymbolAtLocation(q);if(!rt)return we=!0,2;Re=3,we=!1;const ar=m.getExportsAndPropertiesOfModule(rt),st=new Set(pe.elements.filter(zr=>!_e(zr)).map(zr=>(zr.propertyName||zr.name).escapedText)),Ft=ar.filter(zr=>zr.escapedName!=="default"&&!st.has(zr.escapedName));return Ae=Nn(Ae,Ft),Ft.length||(ve=0),1}function nr(){var pe;const q=re&&(re.kind===19||re.kind===28)?di(re.parent,og):void 0;if(!q)return 0;const rt=Sn(q,Mf(Ja,Vu));return Re=5,we=!1,(pe=rt.locals)==null||pe.forEach((ar,st)=>{var Ft,zr;Ae.push(ar),(zr=(Ft=rt.symbol)==null?void 0:Ft.exports)!=null&&zr.has(st)&&(je[oc(ar)]=Cf.OptionalMember)}),1}function Y(){const pe=aVe(n,re,me,s);if(!pe)return 0;if(Re=3,we=!0,ve=re.kind===42?0:Yi(pe)?2:3,!Yi(pe))return 1;const q=re.kind===27?re.parent.parent:re.parent;let rt=yf(q)?Pp(q):0;if(re.kind===80&&!_e(re))switch(re.getText()){case"private":rt=rt|8;break;case"static":rt=rt|32;break;case"override":rt=rt|16384;break}if(fu(q)&&(rt|=32),!(rt&8)){const ar=Yi(pe)&&rt&16384?pa(T1(pe)):Gw(pe),st=lo(ar,Ft=>{const zr=m.getTypeAtLocation(Ft);return rt&32?(zr==null?void 0:zr.symbol)&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(zr.symbol,pe)):zr&&m.getPropertiesOfType(zr)});Ae=Nn(Ae,he(st,pe.members,rt)),Vt(Ae,(Ft,zr)=>{const En=Ft==null?void 0:Ft.valueDeclaration;if(En&&yf(En)&&En.name&&jc(En.name)){const Ti={kind:512,symbolName:m.symbolToString(Ft)};He[zr]=Ti}})}return 1}function Ge(pe){return!!pe.parent&&Cs(pe.parent)&&Uu(pe.parent.parent)&&(Mw(pe.kind)||Gy(pe))}function dt(pe){if(pe){const q=pe.parent;switch(pe.kind){case 21:case 28:return Uu(pe.parent)?pe.parent:void 0;default:if(Ge(pe))return q.parent}}}function Q(pe){if(pe){let q;const rt=Sn(pe.parent,ar=>Yi(ar)?"quit":Jl(ar)&&q===ar.body?!0:(q=ar,!1));return rt&&rt}}function at(pe){if(pe){const q=pe.parent;switch(pe.kind){case 32:case 31:case 44:case 80:case 210:case 291:case 290:case 292:if(q&&(q.kind===284||q.kind===285)){if(pe.kind===32){const rt=j_(pe.pos,n,void 0);if(!q.typeArguments||rt&&rt.kind===44)break}return q}else if(q.kind===290)return q.parent.parent;break;case 11:if(q&&(q.kind===290||q.kind===292))return q.parent.parent;break;case 20:if(q&&q.kind===293&&q.parent&&q.parent.kind===290)return q.parent.parent.parent;if(q&&q.kind===292)return q.parent.parent;break}}}function fr(pe){const q=pe.parent,rt=q.kind;switch(pe.kind){case 28:return rt===259||Pr(pe)||rt===242||rt===265||$t(rt)||rt===263||rt===206||rt===264||Yi(q)&&!!q.typeParameters&&q.typeParameters.end>=pe.pos;case 25:return rt===206;case 59:return rt===207;case 23:return rt===206;case 21:return rt===298||$t(rt);case 19:return rt===265;case 30:return rt===262||rt===230||rt===263||rt===264||KT(rt);case 126:return rt===171&&!Yi(q.parent);case 26:return rt===168||!!q.parent&&q.parent.kind===206;case 125:case 123:case 124:return rt===168&&!Uu(q.parent);case 130:return rt===275||rt===280||rt===273;case 139:case 153:return!QU(pe);case 80:if(rt===275&&pe===q.name&&pe.text==="type")return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return rt!==275;case 42:return Qs(pe.parent)&&!g_(pe.parent)}if(EO(XU(pe))&&QU(pe)||Ge(pe)&&(!Be(pe)||Mw(XU(pe))||_e(pe)))return!1;switch(XU(pe)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return fo(pe.parent)}if(Sn(pe.parent,Yi)&&pe===V&&Ne(pe,s))return!1;const st=I4(pe.parent,171);if(st&&pe!==V&&Yi(V.parent.parent)&&s<=V.end){if(Ne(pe,V.end))return!1;if(pe.kind!==64&&(KI(st)||LL(st)))return!0}return Gy(pe)&&!_0(pe.parent)&&!E1(pe.parent)&&!((Yi(pe.parent)||Lp(pe.parent)||eu(pe.parent))&&(pe!==V||s>V.end))}function Ne(pe,q){return pe.kind!==64&&(pe.kind===27||!F0(pe.end,q,n))}function $t(pe){return KT(pe)&&pe!==175}function Jt(pe){if(pe.kind===9){const q=pe.getFullText();return q.charAt(q.length-1)==="."}return!1}function Pr(pe){return pe.parent.kind===260&&!DP(pe,n,m)}function li(pe,q){if(q.length===0)return pe;const rt=new Set,ar=new Set;for(const Ft of q){if(Ft.kind!==302&&Ft.kind!==303&&Ft.kind!==207&&Ft.kind!==173&&Ft.kind!==176&&Ft.kind!==177&&Ft.kind!==304||_e(Ft))continue;let zr;if(k3(Ft))Yn(Ft,rt);else if(Cc(Ft)&&Ft.propertyName)Ft.propertyName.kind===80&&(zr=Ft.propertyName.escapedText);else{const En=Es(Ft);zr=En&&rg(En)?Zw(En):void 0}zr!==void 0&&ar.add(zr)}const st=pe.filter(Ft=>!ar.has(Ft.escapedName));return w(rt,st),st}function Yn(pe,q){const rt=pe.expression,ar=m.getSymbolAtLocation(rt),st=ar&&m.getTypeOfSymbolAtLocation(ar,rt),Ft=st&&st.properties;Ft&&Ft.forEach(zr=>{q.add(zr.name)})}function Jn(){Ae.forEach(pe=>{var q;if(pe.flags&16777216){const rt=oc(pe);je[rt]=(q=je[rt])!=null?q:Cf.OptionalMember}})}function w(pe,q){if(pe.size!==0)for(const rt of q)pe.has(rt.name)&&(je[oc(rt)]=Cf.MemberDeclaredBySpreadAssignment)}function ge(pe){var q;for(let rt=pe;rt!ar.has(st.escapedName)&&!!st.declarations&&!(c0(st)&8)&&!(st.valueDeclaration&&qp(st.valueDeclaration)))}function ue(pe,q){const rt=new Set,ar=new Set;for(const Ft of q)_e(Ft)||(Ft.kind===290?rt.add(C9(Ft.name)):RS(Ft)&&Yn(Ft,ar));const st=pe.filter(Ft=>!rt.has(Ft.escapedName));return w(ar,st),st}function _e(pe){return pe.getStart(n)<=s&&s<=pe.getEnd()}}function eVe(e){if(e){const{parent:t}=e;switch(e.kind){case 19:case 28:if(Dc(t)||Bg(t))return t;break;case 42:return g_(t)?di(t.parent,Dc):void 0;case 134:return di(t.parent,Dc);case 80:return e.text==="async"&&_0(e.parent)?e.parent.parent:void 0}}}function HU(e,t){const n=j_(e,t);return n&&e<=n.end&&(Uy(n)||pd(n.kind))?{contextToken:j_(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function B3e(e,t,n,i){const s=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,o=s.getTypeChecker(),l=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(D.checkDefined(s.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let f=t.exportName==="export="?o.resolveExternalModuleSymbol(l):o.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return f?(f=t.exportName==="default"&&uk(f)||f,{symbol:f,origin:VUe(t,e,l)}):void 0}function GU(e,t,n,i,s){if(CUe(n))return;const o=xUe(n)?n.symbolName:e.name;if(o===void 0||e.flags&1536&&qD(o.charCodeAt(0))||pN(e))return;const l={name:o,needsConvertPropertyAccess:!1};if(r0(o,t,s?1:0)||e.valueDeclaration&&qp(e.valueDeclaration))return l;switch(i){case 3:return bne(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return o.charCodeAt(0)===32?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:D.assertNever(i)}}function j3e(e,t){if(!t)return z3e(e);const n=e+8+1;return AO[n]||(AO[n]=z3e(e).filter(i=>!tVe(Qx(i.name))))}function z3e(e){return AO[e]||(AO[e]=Mne().filter(t=>{const n=Qx(t.name);switch(e){case 0:return!1;case 1:return U3e(n)||n===138||n===144||n===156||n===145||n===128||xE(n)&&n!==157;case 5:return U3e(n);case 2:return EO(n);case 3:return J3e(n);case 4:return Mw(n);case 6:return xE(n)||n===87;case 7:return xE(n);case 8:return n===156;default:return D.assertNever(e)}}))}function tVe(e){switch(e){case 128:case 133:case 162:case 136:case 138:case 94:case 161:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 163:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function J3e(e){return e===148}function EO(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 163:return!0;default:return Jq(e)}}function U3e(e){return e===134||e===135||e===130||e===152||e===156||!hF(e)&&!EO(e)}function XU(e){var t;return Be(e)?(t=C4(e))!=null?t:0:e.kind}function rVe(e,t){const n=[];if(e){const i=e.getSourceFile(),s=e.parent,o=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Tf(s)||Sf(s)&&s.moduleSpecifier)&&e===s.moduleSpecifier&&o===l&&n.push({name:Uo(132),kind:"keyword",kindModifiers:"",sortText:Cf.GlobalsOrKeywords})}return n}function nVe(e,t){return Sn(e,n=>R5(n)&&kP(n,t)?!0:cg(n)?"quit":!1)}function ZU(e,t,n,i){const s=t&&t!==e,o=s&&!(t.flags&3)?i.getUnionType([e,t]):e,l=iVe(o,n,i);return o.isClass()&&V3e(l)?[]:s?Mn(l,f):l;function f(_){return Nr(_.declarations)?bt(_.declarations,h=>h.parent!==n):!0}}function iVe(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(Mn(e.types,i=>!(i.flags&402784252||n.isArrayLikeType(i)||n.isTypeInvalidDueToUnionDiscriminant(i,t)||n.typeHasCallOrConstructSignatures(i)||i.isClass()&&V3e(i.getApparentProperties())))):e.getApparentProperties()}function V3e(e){return bt(e,t=>!!(c0(t)&24))}function YU(e,t){return e.isUnion()?D.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):D.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function aVe(e,t,n,i){var s;switch(n.kind){case 357:return di(n.parent,gS);case 1:const o=di(io(Ws(n.parent,Ja).statements),gS);if(o&&!zc(o,20,e))return o;break;case 80:{if(C4(n)||fo(n.parent)&&n.parent.initializer===n)return;if(QU(n))return Sn(n,gS)}}if(t){if(n.kind===137||Be(t)&&fo(t.parent)&&Yi(n))return Sn(t,Yi);switch(t.kind){case 64:return;case 27:case 20:return QU(n)&&n.parent.name===n?n.parent.parent:di(n,gS);case 19:case 28:return di(t.parent,gS);default:if(gS(n)){if(Ql(e,t.getEnd()).line!==Ql(e,i).line)return n;const o=Yi(t.parent.parent)?EO:J3e;return o(t.kind)||t.kind===42||Be(t)&&o((s=C4(t))!=null?s:0)?t.parent.parent:void 0}return}}}function sVe(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(Sm(t))return t;break;case 27:case 28:case 80:if(t.kind===170&&Sm(t.parent))return t.parent;break}}function W3e(e,t){if(!e)return;if(Oa(e)&&FL(e.parent))return t.getTypeArgumentConstraint(e);const n=W3e(e.parent,t);if(n)switch(e.kind){case 170:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 192:case 186:case 191:return n}}function QU(e){return e.parent&&EL(e.parent)&&gS(e.parent.parent)}function oVe(e,t,n,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&Fhe(n)&&i===n.getStart(e)+1;case"#":return!!n&&Ea(n)&&!!Z_(n);case"<":return!!n&&n.kind===30&&(!Un(n.parent)||q3e(n.parent));case"/":return!!n&&(Wc(n)?!!rN(n):n.kind===44&&x3(n.parent));case" ":return!!n&&M9(n)&&n.parent.kind===311;default:return D.assertNever(t)}}function q3e({left:e}){return Eu(e)}function cVe(e,t,n){const i=n.resolveName("self",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const s=n.resolveName("global",void 0,111551,!1);if(s&&n.getTypeOfSymbolAtLocation(s,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);return!!(o&&n.getTypeOfSymbolAtLocation(o,t)===e)}function lVe(e){return!!(e.valueDeclaration&&Pp(e.valueDeclaration)&32&&Yi(e.valueDeclaration.parent))}function uVe(e,t){const n=t.getContextualType(e);if(n)return n;const i=fb(e.parent);if(Un(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(ht(i))return t.getContextualType(i)}function $3e(e){var t,n,i;let s,o=!1;const l=f();return{isKeywordOnlyCompletion:o,keywordCompletion:s,isNewIdentifierLocation:!!(l||s===156),isTopLevelTypeOnly:!!((n=(t=di(l,Tf))==null?void 0:t.importClause)!=null&&n.isTypeOnly)||!!((i=di(l,Hf))!=null&&i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!l&&G3e(l,e),replacementSpan:_Ve(l)};function f(){const _=e.parent;if(Hf(_))return s=e.kind===156?void 0:156,Ane(_.moduleReference)?_:void 0;if(G3e(_,e)&&X3e(_.parent))return _;if(r2(_)||vb(_)){if(!_.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),X3e(_))if(e.kind===20||e.kind===80)o=!0,s=160;else return _.parent.parent;return}if(M9(e)&&Ja(_))return s=156,e;if(M9(e)&&Tf(_))return s=156,Ane(_.moduleSpecifier)?_:void 0}}function _Ve(e){var l,f;var t;if(!e)return;const n=(l=Sn(e,Mf(Tf,Hf)))!=null?l:e,i=n.getSourceFile();if(m7(n,i))return Zp(n,i);D.assert(n.kind!==102&&n.kind!==275);const s=n.kind===271?(f=H3e((t=n.importClause)==null?void 0:t.namedBindings))!=null?f:n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:s.pos};if(m7(o,i))return Cb(o)}function H3e(e){var t;return on((t=di(e,r2))==null?void 0:t.elements,n=>{var i;return!n.propertyName&&uS(n.name.text)&&((i=j_(n.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function G3e(e,t){return Ld(e)&&(e.isTypeOnly||t===e.name&&$j(t))}function X3e(e){if(!Ane(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(r2(e)){const t=H3e(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Ane(e){var t;return Eu(e)?!0:!((t=di(yh(e)?e.expression:e,Wc))!=null&&t.text)}function fVe(e,t){if(!e)return;const n=Sn(e,s=>a3(s)||Z3e(s)||_o(s)?"quit":(Cs(s)||eu(s))&&!x7(s.parent)),i=Sn(t,s=>a3(s)||Z3e(s)||_o(s)?"quit":Fa(s));return n||i}function Z3e(e){return e.parent&&Fl(e.parent)&&(e.parent.body===e||e.kind===39)}function Dne(e,t,n=new Map){return i(e)||i(Id(e.exportSymbol||e,t));function i(s){return!!(s.flags&788968)||t.isUnknownSymbol(s)||!!(s.flags&1536)&&Lg(n,oc(s))&&t.getExportsOfModule(s).some(o=>Dne(o,t,n))}}function pVe(e,t){const n=Id(e,t).declarations;return!!Nr(n)&&yn(n,pz)}function Y3e(e,t){if(t.length===0)return!0;let n=!1,i,s=0;const o=e.length;for(let l=0;l(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e))(Ine||{}),Pne=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(Pne||{}),One=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(One||{}),AO=[],Mne=q_(()=>{const e=[];for(let t=83;t<=164;t++)e.push({name:Uo(t),kind:"keyword",kindModifiers:"",sortText:Cf.GlobalsOrKeywords});return e})}});function Lne(){const e=new Map;function t(n){const i=e.get(n.name);(!i||zne[i.kind]({name:T.value,kindModifiers:"",kind:"string",sortText:Cf.LocationPriority,replacementSpan:sK(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:y}}default:return D.assertNever(e)}}function yVe(e,t,n,i,s,o,l,f,_){if(!i||!Wc(i))return;const h=exe(t,i,n,s,o,l,_);return h&&vVe(e,i,h,t,s,f)}function vVe(e,t,n,i,s,o){switch(n.kind){case 0:{const l=on(n.paths,f=>f.name===e);return l&&wO(e,K3e(l.extension),l.kind,[$m(e)])}case 1:{const l=on(n.symbols,f=>f.name===e);return l&&wne(l,l.name,s,i,t,o)}case 2:return on(n.types,l=>l.value===e)?wO(e,"","string",[$m(e)]):void 0;default:return D.assertNever(n)}}function Q3e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:s,kind:o,span:l,extension:f})=>({name:s,kind:o,kindModifiers:K3e(f),sortText:Cf.LocationPriority,replacementSpan:l}))}}function K3e(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return D.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return D.assertNever(e)}}function exe(e,t,n,i,s,o,l){const f=Fne(t.parent);switch(f.kind){case 200:{const k=Fne(f.parent);return k.kind===204?{kind:0,paths:nxe(e,t,s,o,i,l)}:_(k)}case 302:return Dc(f.parent)&&f.name===t?TVe(i,f.parent):h()||h(0);case 211:{const{expression:k,argumentExpression:E}=f;return t===kl(E)?txe(i.getTypeAtLocation(k)):void 0}case 212:case 213:case 290:if(!FVe(t)&&!xm(f)){const k=FO.getArgumentInfoForCompletions(f.kind===290?f.parent:t,n,e);return k&&xVe(k.invocation,t,k,i)||h(0)}case 271:case 277:case 282:return{kind:0,paths:nxe(e,t,s,o,i,l)};case 295:const m=gz(i,f.parent.clauses),y=h();return y?{kind:2,types:y.types.filter(k=>!m.hasValue(k.value)),isNewIdentifier:!1}:void 0;default:return h()||h(0)}function _(m){switch(m.kind){case 232:case 182:{const k=Sn(f,E=>E.parent===m);return k?{kind:2,types:eV(i.getTypeArgumentConstraint(k)),isNewIdentifier:!1}:void 0}case 198:const{indexType:y,objectType:T}=m;return kP(y,n)?txe(i.getTypeFromTypeNode(T)):void 0;case 191:{const k=_(Fne(m.parent));if(!k)return;const E=bVe(m,f);return k.kind===1?{kind:1,symbols:k.symbols.filter(O=>!Zn(E,O.name)),hasIndexSignature:k.hasIndexSignature}:{kind:2,types:k.types.filter(O=>!Zn(E,O.value)),isNewIdentifier:!1}}default:return}}function h(m=4){const y=eV(rz(t,i,m));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function Fne(e){switch(e.kind){case 195:return oN(e);case 216:return fb(e);default:return e}}function bVe(e,t){return Mr(e.types,n=>n!==t&&R4(n)&&sc(n.literal)?n.literal.text:void 0)}function xVe(e,t,n,i){let s=!1;const o=new Map,l=[],f=$p(e)?D.checkDefined(Sn(t.parent,E1)):t;i.getResolvedSignatureForStringLiteralCompletions(e,f,l);const _=lo(l,h=>{if(!up(h)&&n.argumentCount>h.parameters.length)return;let m=h.getTypeParameterAtPosition(n.argumentIndex);if($p(e)){const y=i.getTypeOfPropertyOfType(m,jN(f.name));y&&(m=y)}return s=s||!!(m.flags&4),eV(m,o)});return Nr(_)?{kind:2,types:_,isNewIdentifier:s}:void 0}function txe(e){return e&&{kind:1,symbols:Mn(e.getApparentProperties(),t=>!(t.valueDeclaration&&qp(t.valueDeclaration))),hasIndexSignature:EK(e)}}function TVe(e,t){const n=e.getContextualType(t);if(!n)return;const i=e.getContextualType(t,4);return{kind:1,symbols:ZU(n,i,t,e),hasIndexSignature:EK(n)}}function eV(e,t=new Map){return e?(e=uK(e),e.isUnion()?lo(e.types,n=>eV(n,t)):e.isStringLiteral()&&!(e.flags&1024)&&Lg(t,e.value)?[e]:tt):tt}function fC(e,t,n){return{name:e,kind:t,extension:n}}function Rne(e){return fC(e,"directory",void 0)}function rxe(e,t,n){const i=MVe(e,t),s=e.length===0?void 0:nf(t,e.length);return n.map(({name:o,kind:l,extension:f})=>Math.max(o.indexOf(Yl),o.indexOf(pD))!==-1?{name:o,kind:l,extension:f,span:s}:{name:o,kind:l,extension:f,span:i})}function nxe(e,t,n,i,s,o){return rxe(t.text,t.getStart(e)+1,SVe(e,t,n,i,s,o))}function SVe(e,t,n,i,s,o){const l=kc(t.text),f=Wc(t)?_g(e,t):void 0,_=e.path,h=ga(_),m=Bne(n,1,e,s,o,f);return LVe(l)||!n.baseUrl&&!n.paths&&(t0(l)||vw(l))?kVe(l,h,n,i,_,m):AVe(l,h,f,n,i,m,s)}function Bne(e,t,n,i,s,o){return{extensionsToSearch:x_(CVe(e,i)),referenceKind:t,importingSourceFile:n,endingPreference:s==null?void 0:s.importModuleSpecifierEnding,resolutionMode:o}}function kVe(e,t,n,i,s,o){return n.rootDirs?EVe(n.rootDirs,e,t,o,n,i,s):zt(QE(e,t,o,i,!1,s).values())}function CVe(e,t){const n=t?Mr(t.getAmbientModules(),o=>{const l=o.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...g9(e),n],s=Ju(e);return Gj(s)?IN(e,i):i}function wVe(e,t,n,i){e=e.map(o=>ec(t0(o)?o:ta(t,o)));const s=bo(e,o=>tb(o,n,t,i)?n.substr(o.length):void 0);return No([...e.map(o=>ta(o,s)),n],q1,tn)}function EVe(e,t,n,i,s,o,l){const f=s.project||o.getCurrentDirectory(),_=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),h=wVe(e,f,n,_);return lo(h,m=>zt(QE(t,m,i,o,!0,l).values()))}function QE(e,t,n,i,s,o,l=Lne()){var f;e===void 0&&(e=""),e=kc(e),Xh(e)||(e=ga(e)),e===""&&(e="."+Yl),e=Dp(e);const _=ud(t,e),h=Xh(_)?_:ga(_);if(!s){const k=jhe(h,i);if(k){const O=s9(k,i).typesVersions;if(typeof O=="object"){const N=(f=TB(O))==null?void 0:f.paths;if(N){const B=ga(k),U=_.slice(Dp(B).length);if(axe(l,U,B,n,i,N))return l}}}}const m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!cz(i,h))return l;const y=NK(i,h,n.extensionsToSearch,void 0,["./*"]);if(y)for(let k of y){if(k=ec(k),o&&Yx(k,o,t,m)===0)continue;const{name:E,extension:O}=ixe(H_(k),i.getCompilationSettings(),n);l.add(fC(E,"script",O))}const T=sz(i,h);if(T)for(const k of T){const E=H_(ec(k));E!=="@types"&&l.add(Rne(E))}return l}function ixe(e,t,n){const i=D3.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:oy(i)};if(n.referenceKind===0)return{name:e,extension:oy(e)};const s=OH(n.endingPreference,n.resolutionMode,t,n.importingSourceFile);if(s===3){if(Zl(e,rR))return{name:e,extension:oy(e)};const l=D3.tryGetJSExtensionForFile(e,t);return l?{name:m3(e,l),extension:l}:{name:e,extension:oy(e)}}if((s===0||s===1)&&Zl(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Pd(e),extension:oy(e)};const o=D3.tryGetJSExtensionForFile(e,t);return o?{name:m3(e,o),extension:o}:{name:e,extension:oy(e)}}function axe(e,t,n,i,s,o){const l=_=>o[_],f=(_,h)=>{const m=dk(_),y=dk(h),T=typeof m=="object"?m.prefix.length:_.length,k=typeof y=="object"?y.prefix.length:h.length;return Uc(k,T)};return sxe(e,t,n,i,s,eo(o),l,f)}function sxe(e,t,n,i,s,o,l,f){let _=[],h;for(const m of o){if(m===".")continue;const y=m.replace(/^\.\//,""),T=l(m);if(T){const k=dk(y);if(!k)continue;const E=typeof k=="object"&&Vh(k,t);E&&(h===void 0||f(m,h)===-1)&&(h=m,_=_.filter(N=>!N.matchedPattern)),(typeof k=="string"||h===void 0||f(m,h)!==1)&&_.push({matchedPattern:E,results:DVe(y,T,t,n,i,s).map(({name:N,kind:B,extension:U})=>fC(N,B,U))})}}return _.forEach(m=>m.results.forEach(y=>e.add(y))),h!==void 0}function AVe(e,t,n,i,s,o,l){const{baseUrl:f,paths:_}=i,h=Lne(),m=Ju(i);if(f){const T=ec(ta(s.getCurrentDirectory(),f));QE(e,T,o,s,!1,void 0,h)}if(_){const T=kF(i,s);axe(h,e,T,o,s,_)}const y=cxe(e);for(const T of IVe(e,y,l))h.add(fC(T,"external module name",void 0));if(_xe(s,i,t,y,o,h),Gj(m)){let T=!1;if(y===void 0)for(const k of OVe(s,t)){const E=fC(k,"external module name",void 0);h.has(E.name)||(T=!0,h.add(E))}if(!T){let k=E=>{const O=ta(E,"node_modules");cz(s,O)&&QE(e,O,o,s,!1,void 0,h)};if(y&&CH(i)){const E=k;k=O=>{const N=G_(e);N.shift();let B=N.shift();if(!B)return E(O);if(Ga(B,"@")){const re=N.shift();if(!re)return E(O);B=ta(B,re)}const U=ta(O,"node_modules",B),V=ta(U,"package.json");if(oz(s,V)){const z=s9(V,s).exports;if(z){if(typeof z!="object"||z===null)return;const ce=eo(z),R=N.join("/")+(N.length&&Xh(e)?"/":""),le=n===99?["node","import","types"]:["node","require","types"];sxe(h,R,U,o,s,ce,ae=>pa(oxe(z[ae],le)),nZ);return}}return E(O)}}jy(t,k)}}return zt(h.values())}function oxe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!ns(e)){for(const n in e)if(n==="default"||t.indexOf(n)>-1||WI(t,n)){const i=e[n];return oxe(i,t)}}}function cxe(e){return jne(e)?Xh(e)?e:ga(e):void 0}function DVe(e,t,n,i,s,o){if(!gi(e,"*"))return Qo(e,"*")?tt:_(e,"script");const l=e.slice(0,e.length-1),f=z6(n,l);if(f===void 0)return e[e.length-2]==="/"?_(l,"directory"):lo(t,m=>{var y;return(y=lxe("",i,m,s,o))==null?void 0:y.map(E=>{var O=E,{name:T}=O,k=_q(O,["name"]);return fa({name:l+T},k)})});return lo(t,h=>lxe(f,i,h,s,o));function _(h,m){return Ga(h,n)?[{name:H6(h),kind:m,extension:void 0}]:tt}}function lxe(e,t,n,i,s){if(!s.readDirectory)return;const o=dk(n);if(o===void 0||bs(o))return;const l=ud(o.prefix),f=Xh(o.prefix)?l:ga(l),_=Xh(o.prefix)?"":H_(l),h=jne(e),m=h?Xh(e)?e:ga(e):void 0,y=h?ta(f,_+m):f,T=ec(o.suffix),k=ec(ta(t,y)),E=h?k:Dp(k)+_,O=T?"**/*"+T:"./*",N=Mr(NK(s,k,i.extensionsToSearch,void 0,[O]),V=>{const re=U(V);if(re){if(jne(re))return Rne(G_(uxe(re))[1]);const{name:z,extension:ce}=ixe(re,s.getCompilationSettings(),i);return fC(z,"script",ce)}}),B=T?tt:Mr(sz(s,k),V=>V==="node_modules"?void 0:Rne(V));return[...N,...B];function U(V){const re=NVe(ec(V),E,T);return re===void 0?void 0:uxe(re)}}function NVe(e,t,n){return Ga(e,t)&&gi(e,n)?e.slice(t.length,e.length-n.length):void 0}function uxe(e){return e[0]===Yl?e.slice(1):e}function IVe(e,t,n){const s=n.getAmbientModules().map(o=>ig(o.name)).filter(o=>Ga(o,e)&&o.indexOf("*")<0);if(t!==void 0){const o=Dp(t);return s.map(l=>cu(l,o))}return s}function PVe(e,t,n,i){const s=Za(e,t),o=Yh(e.text,s.pos),l=o&&on(o,E=>t>=E.pos&&t<=E.end);if(!l)return;const f=e.text.slice(l.pos,t),_=fxe.exec(f);if(!_)return;const[,h,m,y]=_,T=ga(e.path),k=m==="path"?QE(y,T,Bne(n,0,e),i,!0,e.path):m==="types"?_xe(i,n,T,cxe(y),Bne(n,1,e)):D.fail();return rxe(y,l.pos+h.length,zt(k.values()))}function _xe(e,t,n,i,s,o=Lne()){const l=new Map,f=lz(()=>zI(t,e))||tt;for(const h of f)_(h);for(const h of IK(n,e)){const m=ta(ga(h),"node_modules/@types");_(m)}return o;function _(h){if(cz(e,h))for(const m of sz(e,h)){const y=PB(m);if(!(t.types&&!Zn(t.types,y)))if(i===void 0)l.has(y)||(o.add(fC(y,"external module name",void 0)),l.set(y,!0));else{const T=ta(h,m),k=EH(i,y,Gv(e));k!==void 0&&QE(k,T,s,e,!1,void 0,o)}}}}function OVe(e,t){if(!e.readFile||!e.fileExists)return tt;const n=[];for(const i of IK(t,e)){const s=s9(i,e);for(const o of pxe){const l=s[o];if(l)for(const f in l)Hs(l,f)&&!Ga(f,"@types/")&&n.push(f)}}return n}function MVe(e,t){const n=Math.max(e.lastIndexOf(Yl),e.lastIndexOf(pD)),i=n!==-1?n+1:0,s=e.length-i;return s===0||r0(e.substr(i,s),99)?void 0:nf(t+i,s)}function LVe(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,n=e.charCodeAt(t);return n===47||n===92}return!1}function jne(e){return Qo(e,Yl)}function FVe(e){return go(e.parent)&&Ji(e.parent.arguments)===e&&Be(e.parent.expression)&&e.parent.expression.escapedText==="require"}var zne,fxe,pxe,RVe=or({"src/services/stringCompletions.ts"(){"use strict";Ri(),Jne(),zne={directory:0,script:1,["external module name"]:2},fxe=/^(\/\/\/\s*yVe,getStringLiteralCompletions:()=>gVe});var BVe=or({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";RVe()}}),u8={};Dl(u8,{CompletionKind:()=>One,CompletionSource:()=>Ine,SortText:()=>Cf,StringCompletions:()=>tV,SymbolOriginInfoKind:()=>Pne,createCompletionDetails:()=>wO,createCompletionDetailsForSymbol:()=>wne,getCompletionEntriesFromSymbols:()=>kne,getCompletionEntryDetails:()=>GUe,getCompletionEntrySymbol:()=>ZUe,getCompletionsAtPosition:()=>wUe,getPropertiesForObjectExpression:()=>ZU,moduleSpecifierResolutionCacheAttemptLimit:()=>Nne,moduleSpecifierResolutionLimit:()=>KU});var Jne=or({"src/services/_namespaces/ts.Completions.ts"(){"use strict";mVe(),BVe()}});function Une(e,t,n,i){const s=UVe(e,n,i);return(o,l,f)=>{const{directImports:_,indirectUsers:h}=jVe(e,t,s,l,n,i);return fa({indirectUsers:h},zVe(_,o,l.exportKind,n,f))}}function jVe(e,t,n,{exportingModuleSymbol:i,exportKind:s},o,l){const f=GS(),_=GS(),h=[],m=!!i.globalExports,y=m?void 0:[];return k(i),{directImports:h,indirectUsers:T()};function T(){if(m)return e;if(i.declarations)for(const V of i.declarations)t3(V)&&t.has(V.getSourceFile().fileName)&&B(V);return y.map(bn)}function k(V){const re=U(V);if(re){for(const z of re)if(f(z))switch(l&&l.throwIfCancellationRequested(),z.kind){case 212:if(xm(z)){E(z);break}if(!m){const R=z.parent;if(s===2&&R.kind===259){const{name:le}=R;if(le.kind===80){h.push(le);break}}}break;case 80:break;case 270:N(z,z.name,Pi(z,1),!1);break;case 271:h.push(z);const ce=z.importClause&&z.importClause.namedBindings;ce&&ce.kind===273?N(z,ce.name,!1,!0):!m&&sS(z)&&B(DO(z));break;case 277:z.exportClause?z.exportClause.kind===279?B(DO(z),!0):h.push(z):k(HVe(z,o));break;case 204:!m&&z.isTypeOf&&!z.qualifier&&O(z)&&B(z.getSourceFile(),!0),h.push(z);break;default:D.failBadSyntaxKind(z,"Unexpected import kind.")}}}function E(V){const re=Sn(V,rV)||V.getSourceFile();B(re,!!O(V,!0))}function O(V,re=!1){return Sn(V,z=>re&&rV(z)?"quit":lg(z)&&bt(z.modifiers,FR))}function N(V,re,z,ce){if(s===2)ce||h.push(V);else if(!m){const R=DO(V);D.assert(R.kind===311||R.kind===266),z||JVe(R,re,o)?B(R,!0):B(R)}}function B(V,re=!1){if(D.assert(!m),!_(V)||(y.push(V),!re))return;const ce=o.getMergedSymbol(V.symbol);if(!ce)return;D.assert(!!(ce.flags&1536));const R=U(ce);if(R)for(const le of R)Qy(le)||B(DO(le),!0)}function U(V){return n.get(oc(V).toString())}}function zVe(e,t,n,i,s){const o=[],l=[];function f(T,k){o.push([T,k])}if(e)for(const T of e)_(T);return{importSearches:o,singleReferences:l};function _(T){if(T.kind===270){Wne(T)&&h(T.name);return}if(T.kind===80){h(T);return}if(T.kind===204){if(T.qualifier){const O=Tm(T.qualifier);O.escapedText===Bu(t)&&l.push(O)}else n===2&&l.push(T.argument.literal);return}if(T.moduleSpecifier.kind!==11)return;if(T.kind===277){T.exportClause&&og(T.exportClause)&&m(T.exportClause);return}const{name:k,namedBindings:E}=T.importClause||{name:void 0,namedBindings:void 0};if(E)switch(E.kind){case 273:h(E.name);break;case 274:(n===0||n===1)&&m(E);break;default:D.assertNever(E)}if(k&&(n===1||n===2)&&(!s||k.escapedText===Zj(t))){const O=i.getSymbolAtLocation(k);f(k,O)}}function h(T){n===2&&(!s||y(T.escapedText))&&f(T,i.getSymbolAtLocation(T))}function m(T){if(T)for(const k of T.elements){const{name:E,propertyName:O}=k;if(y((O||E).escapedText))if(O)l.push(O),(!s||E.escapedText===t.escapedName)&&f(E,i.getSymbolAtLocation(E));else{const N=k.kind===280&&k.propertyName?i.getExportSpecifierLocalTargetSymbol(k):i.getSymbolAtLocation(E);f(E,N)}}}function y(T){return T===t.escapedName||n!==0&&T==="default"}}function JVe(e,t,n){const i=n.getSymbolAtLocation(t);return!!mxe(e,s=>{if(!Sf(s))return;const{exportClause:o,moduleSpecifier:l}=s;return!l&&o&&og(o)&&o.elements.some(f=>n.getExportSpecifierLocalTargetSymbol(f)===i)})}function dxe(e,t,n){var i;const s=[],o=e.getTypeChecker();for(const l of t){const f=n.valueDeclaration;if((f==null?void 0:f.kind)===311){for(const _ of l.referencedFiles)e.getSourceFileFromReference(l,_)===f&&s.push({kind:"reference",referencingFile:l,ref:_});for(const _ of l.typeReferenceDirectives){const h=(i=e.getResolvedTypeReferenceDirectives().get(_.fileName,_.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;h!==void 0&&h.resolvedFileName===f.fileName&&s.push({kind:"reference",referencingFile:l,ref:_})}}gxe(l,(_,h)=>{o.getSymbolAtLocation(h)===n&&s.push(Ol(_)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return s}function UVe(e,t,n){const i=new Map;for(const s of e)n&&n.throwIfCancellationRequested(),gxe(s,(o,l)=>{const f=t.getSymbolAtLocation(l);if(f){const _=oc(f).toString();let h=i.get(_);h||i.set(_,h=[]),h.push(o)}});return i}function mxe(e,t){return Vt(e.kind===311?e.statements:e.body.statements,n=>t(n)||rV(n)&&Vt(n.body&&n.body.statements,t))}function gxe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const n of e.imports)t(tN(n),n);else mxe(e,n=>{switch(n.kind){case 277:case 271:{const i=n;i.moduleSpecifier&&sc(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 270:{const i=n;Wne(i)&&t(i,i.moduleReference.expression);break}}})}function hxe(e,t,n,i){return i?s():s()||o();function s(){var _;const{parent:h}=e,m=h.parent;if(t.exportSymbol)return h.kind===210?(_=t.declarations)!=null&&_.some(k=>k===h)&&Un(m)?T(m,!1):void 0:l(t.exportSymbol,f(h));{const k=WVe(h,e);if(k&&Pi(k,1))return Hf(k)&&k.moduleReference===e?i?void 0:{kind:0,symbol:n.getSymbolAtLocation(k.name)}:l(t,f(k));if(_y(h))return l(t,0);if(Wu(h))return y(h);if(Wu(m))return y(m);if(Un(h))return T(h,!0);if(Un(m))return T(m,!0);if(pI(h)||UG(h))return l(t,0)}function y(k){if(!k.symbol.parent)return;const E=k.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:k.symbol.parent,exportKind:E}}}function T(k,E){let O;switch(Au(k)){case 1:O=0;break;case 2:O=2;break;default:return}const N=E?n.getSymbolAtLocation(x_e(Ws(k.left,$l))):t;return N&&l(N,O)}}function o(){if(!qVe(e))return;let h=n.getImmediateAliasedSymbol(t);if(!h||(h=$Ve(h,n),h.escapedName==="export="&&(h=VVe(h,n),h===void 0)))return;const m=Zj(h);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:h}}function l(_,h){const m=Vne(_,h,n);return m&&{kind:1,symbol:_,exportInfo:m}}function f(_){return Pi(_,1024)?1:0}}function VVe(e,t){var n,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const s=D.checkDefined(e.valueDeclaration);if(Wu(s))return(n=di(s.expression,rh))==null?void 0:n.symbol;if(Un(s))return(i=di(s.right,rh))==null?void 0:i.symbol;if(Ja(s))return s.symbol}function WVe(e,t){const n=Fa(e)?e:Cc(e)?A5(e):void 0;return n?e.name!==t||Ik(n.parent)?void 0:S_(n.parent.parent)?n.parent.parent:void 0:e}function qVe(e){const{parent:t}=e;switch(t.kind){case 270:return t.name===e&&Wne(t);case 275:return!t.propertyName;case 272:case 273:return D.assert(t.name===e),!0;case 207:return jn(e)&&o3(t.parent.parent);default:return!1}}function Vne(e,t,n){const i=e.parent;if(!i)return;const s=n.getMergedSymbol(i);return PP(s)?{exportingModuleSymbol:s,exportKind:t}:void 0}function $Ve(e,t){if(e.declarations)for(const n of e.declarations){if(dd(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(mi(n)&&ny(n.expression)&&!Ea(n.name))return t.getSymbolAtLocation(n);if(_0(n)&&Un(n.parent.parent)&&Au(n.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}function HVe(e,t){return t.getMergedSymbol(DO(e).symbol)}function DO(e){if(e.kind===212)return e.getSourceFile();const{parent:t}=e;return t.kind===311?t:(D.assert(t.kind===267),Ws(t.parent,rV))}function rV(e){return e.kind===266&&e.name.kind===11}function Wne(e){return e.moduleReference.kind===282&&e.moduleReference.expression.kind===11}var qne,$ne,GVe=or({"src/services/importTracker.ts"(){"use strict";Ri(),qne=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(qne||{}),$ne=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))($ne||{})}});function Sh(e,t=1){return{kind:t,node:e.name||e,context:XVe(e)}}function yxe(e){return e&&e.kind===void 0}function XVe(e){if(cp(e))return R3(e);if(e.parent){if(!cp(e.parent)&&!Wu(e.parent)){if(jn(e)){const n=Un(e.parent)?e.parent:$l(e.parent)&&Un(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(n&&Au(n)!==0)return R3(n)}if(w1(e.parent)||x3(e.parent))return e.parent.parent;if(C7(e.parent)||b3(e.parent)||Pw(e.parent))return e.parent;if(Wc(e)){const n=rN(e);if(n){const i=Sn(n,s=>cp(s)||us(s)||R5(s));return cp(i)?R3(i):i}}const t=Sn(e,jc);return t?R3(t.parent):void 0}if(e.parent.name===e||Uu(e.parent)||Wu(e.parent)||(YT(e.parent)||Cc(e.parent))&&e.parent.propertyName===e||e.kind===90&&Pi(e.parent,1025))return R3(e.parent)}}function R3(e){if(e)switch(e.kind){case 259:return!of(e.parent)||e.parent.declarations.length!==1?e:S_(e.parent.parent)?e.parent.parent:L5(e.parent.parent)?R3(e.parent.parent):e.parent;case 207:return R3(e.parent.parent);case 275:return e.parent.parent.parent;case 280:case 273:return e.parent.parent;case 272:case 279:return e.parent;case 225:return $f(e.parent)?e.parent:e;case 249:case 248:return{start:e.initializer,end:e.expression};case 302:case 303:return c2(e.parent)?R3(Sn(e.parent,t=>Un(t)||L5(t))):e;default:return e}}function Hne(e,t,n){if(!n)return;const i=yxe(n)?IO(n.start,t,n.end):IO(n,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function ZVe(e,t,n,i,s){const o=qm(i,s),l={use:1},f=K7.getReferencedSymbolsForNode(s,o,e,n,t,l),_=e.getTypeChecker(),h=K7.getAdjustedNode(o,l),m=YVe(h)?_.getSymbolAtLocation(h):void 0;return!f||!f.length?void 0:Mr(f,({definition:y,references:T})=>y&&{definition:_.runWithCancellationToken(t,k=>eWe(y,k,o)),references:T.map(k=>rWe(k,m))})}function YVe(e){return e.kind===90||!!cN(e)||lN(e)||e.kind===137&&Uu(e.parent)}function QVe(e,t,n,i,s){const o=qm(i,s);let l;const f=vxe(e,t,n,o,s);if(o.parent.kind===210||o.parent.kind===207||o.parent.kind===211||o.kind===108)l=f&&[...f];else if(f){const h=Jf(f),m=new Map;for(;!h.isEmpty();){const y=h.dequeue();if(!Lg(m,Nc(y.node)))continue;l=Ht(l,y);const T=vxe(e,t,n,y.node,y.node.pos);T&&h.enqueue(...T)}}const _=e.getTypeChecker();return er(l,h=>iWe(h,_))}function vxe(e,t,n,i,s){if(i.kind===311)return;const o=e.getTypeChecker();if(i.parent.kind===303){const l=[];return K7.getReferenceEntriesForShorthandPropertyAssignment(i,o,f=>l.push(Sh(f))),l}else if(i.kind===108||fd(i.parent)){const l=o.getSymbolAtLocation(i);return l.valueDeclaration&&[Sh(l.valueDeclaration)]}else return bxe(s,i,e,n,t,{implementations:!0,use:1})}function KVe(e,t,n,i,s,o,l){return er(xxe(K7.getReferencedSymbolsForNode(s,i,e,n,t,o)),f=>l(f,i,e.getTypeChecker()))}function bxe(e,t,n,i,s,o={},l=new Set(i.map(f=>f.fileName))){return xxe(K7.getReferencedSymbolsForNode(e,t,n,i,s,o,l))}function xxe(e){return e&&lo(e,t=>t.references)}function eWe(e,t,n){const i=(()=>{switch(e.type){case 0:{const{symbol:m}=e,{displayParts:y,kind:T}=Txe(m,t,n),k=y.map(N=>N.text).join(""),E=m.declarations&&Ji(m.declarations),O=E?Es(E)||E:n;return Xs(fa({},NO(O)),{name:k,kind:T,displayParts:y,context:R3(E)})}case 1:{const{node:m}=e;return Xs(fa({},NO(m)),{name:m.text,kind:"label",displayParts:[Fd(m.text,17)]})}case 2:{const{node:m}=e,y=Uo(m.kind);return Xs(fa({},NO(m)),{name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]})}case 3:{const{node:m}=e,y=t.getSymbolAtLocation(m),T=y&&_2.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,m.getSourceFile(),U7(m),m).displayParts||[$m("this")];return Xs(fa({},NO(m)),{name:"this",kind:"var",displayParts:T})}case 4:{const{node:m}=e;return Xs(fa({},NO(m)),{name:m.text,kind:"var",displayParts:[Fd(F_(m),8)]})}case 5:return{textSpan:Cb(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[Fd(`"${e.reference.fileName}"`,8)]};default:return D.assertNever(e)}})(),{sourceFile:s,textSpan:o,name:l,kind:f,displayParts:_,context:h}=i;return fa({containerKind:"",containerName:"",fileName:s.fileName,kind:f,name:l,textSpan:o,displayParts:_},Hne(o,s,h))}function NO(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:IO(jc(e)?e.expression:e,t)}}function Txe(e,t,n){const i=K7.getIntersectingMeaningFromDeclarations(n,e),s=e.declarations&&Ji(e.declarations)||n,{displayParts:o,symbolKind:l}=_2.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,s.getSourceFile(),s,s,i);return{displayParts:o,kind:l}}function tWe(e,t,n,i,s){return fa(fa({},nV(e)),i&&nWe(e,t,n,s))}function rWe(e,t){const n=Sxe(e);return t?Xs(fa({},n),{isDefinition:e.kind!==0&&Cxe(e.node,t)}):n}function Sxe(e){const t=nV(e);if(e.kind===0)return Xs(fa({},t),{isWriteAccess:!1});const{kind:n,node:i}=e;return Xs(fa({},t),{isWriteAccess:kxe(i),isInString:n===2?!0:void 0})}function nV(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=IO(e.node,t);return fa({textSpan:n,fileName:t.fileName},Hne(n,t,e.context))}}function nWe(e,t,n,i){if(e.kind!==0&&Be(t)){const{node:s,kind:o}=e,l=s.parent,f=t.text,_=_0(l);if(_||LP(l)&&l.name===s&&l.dotDotDotToken===void 0){const h={prefixText:f+": "},m={suffixText:": "+f};if(o===3)return h;if(o===4)return m;if(_){const y=l.parent;return Dc(y)&&Un(y.parent)&&ny(y.parent.left)?h:m}else return h}else if(Ld(l)&&!l.propertyName){const h=dd(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t);return Zn(h.declarations,l)?{prefixText:f+" as "}:j0}else if(dd(l)&&!l.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:f+" as "}:{suffixText:" as "+f}}if(e.kind!==0&&Um(e.node)&&$l(e.node.parent)){const s=dK(i);return{prefixText:s,suffixText:s}}return j0}function iWe(e,t){const n=nV(e);if(e.kind!==0){const{node:i}=e;return fa(fa({},n),aWe(i,t))}else return Xs(fa({},n),{kind:"",displayParts:[]})}function aWe(e,t){const n=t.getSymbolAtLocation(cp(e)&&e.name?e.name:e);return n?Txe(n,t,e):e.kind===209?{kind:"interface",displayParts:[fp(21),$m("object literal"),fp(22)]}:e.kind===230?{kind:"local class",displayParts:[fp(21),$m("anonymous local class"),fp(22)]}:{kind:L3(e),displayParts:[]}}function sWe(e){const t=nV(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=kxe(e.node),i=fa({textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:e.kind===2?!0:void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:i}}function IO(e,t,n){let i=e.getStart(t),s=(n||e).getEnd();return Wc(e)&&s-i>2&&(D.assert(n===void 0),i+=1,s-=1),L_(i,s)}function Gne(e){return e.kind===0?e.textSpan:IO(e.node,e.node.getSourceFile())}function kxe(e){const t=cN(e);return!!t&&oWe(t)||e.kind===90||u9(e)}function Cxe(e,t){var n;if(!t)return!1;const i=cN(e)||(e.kind===90?e.parent:lN(e)||e.kind===137&&Uu(e.parent)?e.parent.parent:void 0),s=i&&Un(i)?i.left:void 0;return!!(i&&((n=t.declarations)!=null&&n.some(o=>o===i||o===s)))}function oWe(e){if(e.flags&16777216)return!0;switch(e.kind){case 225:case 207:case 262:case 230:case 90:case 265:case 305:case 280:case 272:case 270:case 275:case 263:case 344:case 352:case 290:case 266:case 269:case 273:case 279:case 168:case 303:case 264:case 167:return!0;case 302:return!c2(e.parent);case 261:case 217:case 175:case 173:case 176:case 177:return!!e.body;case 259:case 171:return!!e.initializer||Ik(e.parent);case 172:case 170:case 354:case 347:return!1;default:return D.failBadSyntaxKind(e)}}var Xne,Zne,Yne,K7,cWe=or({"src/services/findAllReferences.ts"(){"use strict";Ri(),wxe(),Xne=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(Xne||{}),Zne=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(Zne||{}),Yne=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Yne||{}),(e=>{function t(ot,Tt,it,Wt,nr,Y={},Ge=new Set(Wt.map(dt=>dt.fileName))){var dt,Q,at;if(Tt=n(Tt,Y),Ja(Tt)){const Yn=eA.getReferenceAtPosition(Tt,ot,it);if(!(Yn!=null&&Yn.file))return;const Jn=it.getTypeChecker().getMergedSymbol(Yn.file.symbol);if(Jn)return h(it,Jn,!1,Wt,Ge);const w=it.getFileIncludeReasons();return w?[{definition:{type:5,reference:Yn.reference,file:Tt},references:s(Yn.file,w,it)||tt}]:void 0}if(!Y.implementations){const Yn=y(Tt,Wt,nr);if(Yn)return Yn}const fr=it.getTypeChecker(),Ne=fr.getSymbolAtLocation(Uu(Tt)&&Tt.parent.name||Tt);if(!Ne){if(!Y.implementations&&Wc(Tt)){if(Yj(Tt)){const Yn=it.getFileIncludeReasons(),Jn=(at=(Q=(dt=Tt.getSourceFile().resolvedModules)==null?void 0:dt.get(Tt.text,_g(Tt.getSourceFile(),Tt)))==null?void 0:Q.resolvedModule)==null?void 0:at.resolvedFileName,w=Jn?it.getSourceFile(Jn):void 0;if(w)return[{definition:{type:4,node:Tt},references:s(w,Yn,it)||tt}]}return Pt(Tt,Wt,fr,nr)}return}if(Ne.escapedName==="export=")return h(it,Ne.parent,!1,Wt,Ge);const $t=l(Ne,it,Wt,nr,Y,Ge);if($t&&!(Ne.flags&33554432))return $t;const Jt=o(Tt,Ne,fr),Pr=Jt&&l(Jt,it,Wt,nr,Y,Ge),li=T(Ne,Tt,Wt,Ge,fr,nr,Y);return f(it,$t,li,Pr)}e.getReferencedSymbolsForNode=t;function n(ot,Tt){return Tt.use===1?ot=YQ(ot):Tt.use===2&&(ot=jj(ot)),ot}e.getAdjustedNode=n;function i(ot,Tt,it,Wt=new Set(it.map(nr=>nr.fileName))){var nr,Y;const Ge=(nr=Tt.getSourceFile(ot))==null?void 0:nr.symbol;if(Ge)return((Y=h(Tt,Ge,!1,it,Wt)[0])==null?void 0:Y.references)||tt;const dt=Tt.getFileIncludeReasons(),Q=Tt.getSourceFile(ot);return Q&&dt&&s(Q,dt,Tt)||tt}e.getReferencesForFileName=i;function s(ot,Tt,it){let Wt;const nr=Tt.get(ot.path)||tt;for(const Y of nr)if(W4(Y)){const Ge=it.getSourceFileByPath(Y.file),dt=pE(it.getSourceFileByPath,Y);Zk(dt)&&(Wt=Ht(Wt,{kind:0,fileName:Ge.fileName,textSpan:Cb(dt)}))}return Wt}function o(ot,Tt,it){if(ot.parent&&uI(ot.parent)){const Wt=it.getAliasedSymbol(Tt),nr=it.getMergedSymbol(Wt);if(Wt!==nr)return nr}}function l(ot,Tt,it,Wt,nr,Y){const Ge=ot.flags&1536&&ot.declarations&&on(ot.declarations,Ja);if(!Ge)return;const dt=ot.exports.get("export="),Q=h(Tt,ot,!!dt,it,Y);if(!dt||!Y.has(Ge.fileName))return Q;const at=Tt.getTypeChecker();return ot=Id(dt,at),f(Tt,Q,T(ot,void 0,it,Y,at,Wt,nr))}function f(ot,...Tt){let it;for(const Wt of Tt)if(!(!Wt||!Wt.length)){if(!it){it=Wt;continue}for(const nr of Wt){if(!nr.definition||nr.definition.type!==0){it.push(nr);continue}const Y=nr.definition.symbol,Ge=zi(it,Q=>!!Q.definition&&Q.definition.type===0&&Q.definition.symbol===Y);if(Ge===-1){it.push(nr);continue}const dt=it[Ge];it[Ge]={definition:dt.definition,references:dt.references.concat(nr.references).sort((Q,at)=>{const fr=_(ot,Q),Ne=_(ot,at);if(fr!==Ne)return Uc(fr,Ne);const $t=Gne(Q),Jt=Gne(at);return $t.start!==Jt.start?Uc($t.start,Jt.start):Uc($t.length,Jt.length)})}}}return it}function _(ot,Tt){const it=Tt.kind===0?ot.getSourceFile(Tt.fileName):Tt.node.getSourceFile();return ot.getSourceFiles().indexOf(it)}function h(ot,Tt,it,Wt,nr){D.assert(!!Tt.valueDeclaration);const Y=Mr(dxe(ot,Wt,Tt),dt=>{if(dt.kind==="import"){const Q=dt.literal.parent;if(R4(Q)){const at=Ws(Q.parent,Qy);if(it&&!at.qualifier)return}return Sh(dt.literal)}else if(dt.kind==="implicit"){const Q=dt.literal.text!==hb&&Z9(dt.referencingFile,at=>at.transformFlags&2?fy(at)||C7(at)||T3(at)?at:void 0:"skip")||dt.referencingFile.statements[0]||dt.referencingFile;return Sh(Q)}else return{kind:0,fileName:dt.referencingFile.fileName,textSpan:Cb(dt.ref)}});if(Tt.declarations)for(const dt of Tt.declarations)switch(dt.kind){case 311:break;case 266:nr.has(dt.getSourceFile().fileName)&&Y.push(Sh(dt.name));break;default:D.assert(!!(Tt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const Ge=Tt.exports.get("export=");if(Ge!=null&&Ge.declarations)for(const dt of Ge.declarations){const Q=dt.getSourceFile();if(nr.has(Q.fileName)){const at=Un(dt)&&mi(dt.left)?dt.left.expression:Wu(dt)?D.checkDefined(zc(dt,95,Q)):Es(dt)||dt;Y.push(Sh(at))}}return Y.length?[{definition:{type:0,symbol:Tt},references:Y}]:tt}function m(ot){return ot.kind===148&&NS(ot.parent)&&ot.parent.operator===148}function y(ot,Tt,it){if(xE(ot.kind))return ot.kind===116&&OS(ot.parent)||ot.kind===148&&!m(ot)?void 0:Re(Tt,ot.kind,it,ot.kind===148?m:void 0);if(q5(ot.parent)&&ot.parent.name===ot)return Ze(Tt,it);if(wS(ot)&&fu(ot.parent))return[{definition:{type:2,node:ot},references:[Sh(ot)]}];if(SP(ot)){const Wt=Oj(ot.parent,ot.text);return Wt&&we(Wt.parent,Wt)}else if(UQ(ot))return we(ot.parent,ot);if(tC(ot))return bi(ot,Tt,it);if(ot.kind===108)return ia(ot)}function T(ot,Tt,it,Wt,nr,Y,Ge){const dt=Tt&&O(ot,Tt,nr,!Li(Ge))||ot,Q=Tt?ja(Tt,dt):7,at=[],fr=new U(it,Wt,Tt?E(Tt):0,nr,Y,Q,Ge,at),Ne=!Li(Ge)||!dt.declarations?void 0:on(dt.declarations,dd);if(Ne)He(Ne.name,dt,Ne,fr.createSearch(Tt,ot,void 0),fr,!0,!0);else if(Tt&&Tt.kind===90&&dt.escapedName==="default"&&dt.parent)xt(Tt,dt,fr),V(Tt,dt,{exportingModuleSymbol:dt.parent,exportKind:1},fr);else{const $t=fr.createSearch(Tt,dt,void 0,{allSearchSymbols:Tt?Ar(dt,Tt,nr,Ge.use===2,!!Ge.providePrefixAndSuffixTextForRename,!!Ge.implementations):[dt]});k(dt,fr,$t)}return at}function k(ot,Tt,it){const Wt=ae(ot);if(Wt)Ue(Wt,Wt.getSourceFile(),it,Tt,!(Ja(Wt)&&!Zn(Tt.sourceFiles,Wt)));else for(const nr of Tt.sourceFiles)Tt.cancellationToken.throwIfCancellationRequested(),R(nr,it,Tt)}function E(ot){switch(ot.kind){case 175:case 137:return 1;case 80:if(Yi(ot.parent))return D.assert(ot.parent.name===ot),2;default:return 0}}function O(ot,Tt,it,Wt){const{parent:nr}=Tt;return dd(nr)&&Wt?je(Tt,ot,nr,it):bo(ot.declarations,Y=>{if(!Y.parent){if(ot.flags&33554432)return;D.fail(`Unexpected symbol at ${D.formatSyntaxKind(Tt.kind)}: ${D.formatSymbol(ot)}`)}return Sm(Y.parent)&&ES(Y.parent.parent)?it.getPropertyOfType(it.getTypeFromTypeNode(Y.parent.parent),ot.name):void 0})}let N;(ot=>{ot[ot.None=0]="None",ot[ot.Constructor=1]="Constructor",ot[ot.Class=2]="Class"})(N||(N={}));function B(ot){if(!(ot.flags&33555968))return;const Tt=ot.declarations&&on(ot.declarations,it=>!Ja(it)&&!Vu(it));return Tt&&Tt.symbol}class U{constructor(Tt,it,Wt,nr,Y,Ge,dt,Q){this.sourceFiles=Tt,this.sourceFilesSet=it,this.specialSearchKind=Wt,this.checker=nr,this.cancellationToken=Y,this.searchMeaning=Ge,this.options=dt,this.result=Q,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=GS(),this.markSeenReExportRHS=GS(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Tt){return this.sourceFilesSet.has(Tt.fileName)}getImportSearches(Tt,it){return this.importTracker||(this.importTracker=Une(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Tt,it,this.options.use===2)}createSearch(Tt,it,Wt,nr={}){const{text:Y=ig(Bu(uk(it)||B(it)||it)),allSearchSymbols:Ge=[it]}=nr,dt=Kl(Y),Q=this.options.implementations&&Tt?Kr(Tt,it,this.checker):void 0;return{symbol:it,comingFrom:Wt,text:Y,escapedText:dt,parents:Q,allSearchSymbols:Ge,includes:at=>Zn(Ge,at)}}referenceAdder(Tt){const it=oc(Tt);let Wt=this.symbolIdToReferences[it];return Wt||(Wt=this.symbolIdToReferences[it]=[],this.result.push({definition:{type:0,symbol:Tt},references:Wt})),(nr,Y)=>Wt.push(Sh(nr,Y))}addStringOrCommentReference(Tt,it){this.result.push({definition:void 0,references:[{kind:0,fileName:Tt,textSpan:it}]})}markSearchedSymbols(Tt,it){const Wt=Nc(Tt),nr=this.sourceFileToSeenSymbols[Wt]||(this.sourceFileToSeenSymbols[Wt]=new Set);let Y=!1;for(const Ge of it)Y=bu(nr,oc(Ge))||Y;return Y}}function V(ot,Tt,it,Wt){const{importSearches:nr,singleReferences:Y,indirectUsers:Ge}=Wt.getImportSearches(Tt,it);if(Y.length){const dt=Wt.referenceAdder(Tt);for(const Q of Y)z(Q,Wt)&&dt(Q)}for(const[dt,Q]of nr)Fe(dt.getSourceFile(),Wt.createSearch(dt,Q,1),Wt);if(Ge.length){let dt;switch(it.exportKind){case 0:dt=Wt.createSearch(ot,Tt,1);break;case 1:dt=Wt.options.use===2?void 0:Wt.createSearch(ot,Tt,1,{text:"default"});break;case 2:break}if(dt)for(const Q of Ge)R(Q,dt,Wt)}}function re(ot,Tt,it,Wt,nr,Y,Ge,dt){const Q=Une(ot,new Set(ot.map($t=>$t.fileName)),Tt,it),{importSearches:at,indirectUsers:fr,singleReferences:Ne}=Q(Wt,{exportKind:Ge?1:0,exportingModuleSymbol:nr},!1);for(const[$t]of at)dt($t);for(const $t of Ne)Be($t)&&Qy($t.parent)&&dt($t);for(const $t of fr)for(const Jt of me($t,Ge?"default":Y)){const Pr=Tt.getSymbolAtLocation(Jt),li=bt(Pr==null?void 0:Pr.declarations,Yn=>!!di(Yn,Wu));Be(Jt)&&!YT(Jt.parent)&&(Pr===Wt||li)&&dt(Jt)}}e.eachExportReference=re;function z(ot,Tt){return Ae(ot,Tt)?Tt.options.use!==2?!0:Be(ot)?!(YT(ot.parent)&&ot.escapedText==="default"):!1:!1}function ce(ot,Tt){if(ot.declarations)for(const it of ot.declarations){const Wt=it.getSourceFile();Fe(Wt,Tt.createSearch(it,ot,0),Tt,Tt.includesSourceFile(Wt))}}function R(ot,Tt,it){ste(ot).get(Tt.escapedText)!==void 0&&Fe(ot,Tt,it)}function le(ot,Tt){return c2(ot.parent.parent)?Tt.getPropertySymbolOfDestructuringAssignment(ot):void 0}function ae(ot){const{declarations:Tt,flags:it,parent:Wt,valueDeclaration:nr}=ot;if(nr&&(nr.kind===217||nr.kind===230))return nr;if(!Tt)return;if(it&8196){const dt=on(Tt,Q=>Qd(Q,8)||qp(Q));return dt?I4(dt,262):void 0}if(Tt.some(LP))return;const Y=Wt&&!(ot.flags&262144);if(Y&&!(PP(Wt)&&!Wt.globalExports))return;let Ge;for(const dt of Tt){const Q=U7(dt);if(Ge&&Ge!==Q||!Q||Q.kind===311&&!bm(Q))return;if(Ge=Q,_l(Ge)){let at;for(;at=R$(Ge);)Ge=at}}return Y?Ge.getSourceFile():Ge}function ye(ot,Tt,it,Wt=it){return $(ot,Tt,it,()=>!0,Wt)||!1}e.isSymbolReferencedInFile=ye;function $(ot,Tt,it,Wt,nr=it){const Y=gm(ot.parent,ot.parent.parent)?Fi(Tt.getSymbolsOfParameterPropertyDeclaration(ot.parent,ot.text)):Tt.getSymbolAtLocation(ot);if(Y)for(const Ge of me(it,Y.name,nr)){if(!Be(Ge)||Ge===ot||Ge.escapedText!==ot.escapedText)continue;const dt=Tt.getSymbolAtLocation(Ge);if(dt===Y||Tt.getShorthandAssignmentValueSymbol(Ge.parent)===Y||dd(Ge.parent)&&je(Ge,dt,Ge.parent,Tt)===Y){const Q=Wt(Ge);if(Q)return Q}}}e.eachSymbolReferenceInFile=$;function ee(ot,Tt){return Mn(me(Tt,ot),nr=>!!cN(nr)).reduce((nr,Y)=>{const Ge=Wt(Y);return!bt(nr.declarationNames)||Ge===nr.depth?(nr.declarationNames.push(Y),nr.depth=Ge):Gefr===nr)&&Wt(Ge,Q))return!0}return!1}e.someSignatureUsage=te;function me(ot,Tt,it=ot){return ve(ot,Tt,it).map(Wt=>qm(ot,Wt))}function ve(ot,Tt,it=ot){const Wt=[];if(!Tt||!Tt.length)return Wt;const nr=ot.text,Y=nr.length,Ge=Tt.length;let dt=nr.indexOf(Tt,it.pos);for(;dt>=0&&!(dt>it.end);){const Q=dt+Ge;(dt===0||!k4(nr.charCodeAt(dt-1),99))&&(Q===Y||!k4(nr.charCodeAt(Q),99))&&Wt.push(dt),dt=nr.indexOf(Tt,dt+Ge+1)}return Wt}function we(ot,Tt){const it=ot.getSourceFile(),Wt=Tt.text,nr=Mr(me(it,Wt,ot),Y=>Y===Tt||SP(Y)&&Oj(Y,Wt)===Tt?Sh(Y):void 0);return[{definition:{type:1,node:Tt},references:nr}]}function K(ot,Tt){switch(ot.kind){case 81:if(z4(ot.parent))return!0;case 80:return ot.text.length===Tt.length;case 15:case 11:{const it=ot;return(Mj(it)||$Q(ot)||Y1e(ot)||go(ot.parent)&&iS(ot.parent)&&ot.parent.arguments[1]===ot)&&it.text.length===Tt.length}case 9:return Mj(ot)&&ot.text.length===Tt.length;case 90:return Tt.length===7;default:return!1}}function Ze(ot,Tt){const it=lo(ot,Wt=>(Tt.throwIfCancellationRequested(),Mr(me(Wt,"meta",Wt),nr=>{const Y=nr.parent;if(q5(Y))return Sh(Y)})));return it.length?[{definition:{type:2,node:it[0].node},references:it}]:void 0}function Re(ot,Tt,it,Wt){const nr=lo(ot,Y=>(it.throwIfCancellationRequested(),Mr(me(Y,Uo(Tt),Y),Ge=>{if(Ge.kind===Tt&&(!Wt||Wt(Ge)))return Sh(Ge)})));return nr.length?[{definition:{type:2,node:nr[0].node},references:nr}]:void 0}function Fe(ot,Tt,it,Wt=!0){return it.cancellationToken.throwIfCancellationRequested(),Ue(ot,ot,Tt,it,Wt)}function Ue(ot,Tt,it,Wt,nr){if(Wt.markSearchedSymbols(Tt,it.allSearchSymbols))for(const Y of ve(Tt,it.text,ot))Me(Tt,Y,it,Wt,nr)}function Ae(ot,Tt){return!!(J7(ot)&Tt.searchMeaning)}function Me(ot,Tt,it,Wt,nr){const Y=qm(ot,Tt);if(!K(Y,it.text)){!Wt.options.implementations&&(Wt.options.findInStrings&&W7(ot,Tt)||Wt.options.findInComments&&ghe(ot,Tt))&&Wt.addStringOrCommentReference(ot.fileName,nf(Tt,it.text.length));return}if(!Ae(Y,Wt))return;let Ge=Wt.checker.getSymbolAtLocation(Y);if(!Ge)return;const dt=Y.parent;if(Ld(dt)&&dt.propertyName===Y)return;if(dd(dt)){D.assert(Y.kind===80),He(Y,Ge,dt,it,Wt,nr);return}const Q=Fn(it,Ge,Y,Wt);if(!Q){wt(Ge,it,Wt);return}switch(Wt.specialSearchKind){case 0:nr&&xt(Y,Q,Wt);break;case 1:Zt(Y,ot,it,Wt);break;case 2:Qe(Y,it,Wt);break;default:D.assertNever(Wt.specialSearchKind)}jn(Y)&&Cc(Y.parent)&&o3(Y.parent.parent.parent)&&(Ge=Y.parent.symbol,!Ge)||nt(Y,Ge,it,Wt)}function He(ot,Tt,it,Wt,nr,Y,Ge){D.assert(!Ge||!!nr.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:dt,propertyName:Q,name:at}=it,fr=dt.parent,Ne=je(ot,Tt,it,nr.checker);if(!Ge&&!Wt.includes(Ne))return;if(Q?ot===Q?(fr.moduleSpecifier||$t(),Y&&nr.options.use!==2&&nr.markSeenReExportRHS(at)&&xt(at,D.checkDefined(it.symbol),nr)):nr.markSeenReExportRHS(ot)&&$t():nr.options.use===2&&at.escapedText==="default"||$t(),!Li(nr.options)||Ge){const Pr=ot.escapedText==="default"||it.name.escapedText==="default"?1:0,li=D.checkDefined(it.symbol),Yn=Vne(li,Pr,nr.checker);Yn&&V(ot,li,Yn,nr)}if(Wt.comingFrom!==1&&fr.moduleSpecifier&&!Q&&!Li(nr.options)){const Jt=nr.checker.getExportSpecifierLocalTargetSymbol(it);Jt&&ce(Jt,nr)}function $t(){Y&&xt(ot,Ne,nr)}}function je(ot,Tt,it,Wt){return Pe(ot,it)&&Wt.getExportSpecifierLocalTargetSymbol(it)||Tt}function Pe(ot,Tt){const{parent:it,propertyName:Wt,name:nr}=Tt;return D.assert(Wt===ot||nr===ot),Wt?Wt===ot:!it.parent.moduleSpecifier}function nt(ot,Tt,it,Wt){const nr=hxe(ot,Tt,Wt.checker,it.comingFrom===1);if(!nr)return;const{symbol:Y}=nr;nr.kind===0?Li(Wt.options)||ce(Y,Wt):V(ot,Y,nr.exportInfo,Wt)}function wt({flags:ot,valueDeclaration:Tt},it,Wt){const nr=Wt.checker.getShorthandAssignmentValueSymbol(Tt),Y=Tt&&Es(Tt);!(ot&33554432)&&Y&&it.includes(nr)&&xt(Y,nr,Wt)}function xt(ot,Tt,it){const{kind:Wt,symbol:nr}="kind"in Tt?Tt:{kind:void 0,symbol:Tt};if(it.options.use===2&&ot.kind===90)return;const Y=it.referenceAdder(nr);it.options.implementations?xn(ot,Y,it):Y(ot,Wt)}function Zt(ot,Tt,it,Wt){gE(ot)&&xt(ot,it.symbol,Wt);const nr=()=>Wt.referenceAdder(it.symbol);if(Yi(ot.parent))D.assert(ot.kind===90||ot.parent.name===ot),Mt(it.symbol,Tt,nr());else{const Y=ln(ot);Y&&(Cr(Y,nr()),an(Y,Wt))}}function Qe(ot,Tt,it){xt(ot,Tt.symbol,it);const Wt=ot.parent;if(it.options.use===2||!Yi(Wt))return;D.assert(Wt.name===ot);const nr=it.referenceAdder(Tt.symbol);for(const Y of Wt.members)O5(Y)&&so(Y)&&Y.body&&Y.body.forEachChild(function Ge(dt){dt.kind===110?nr(dt):!Qs(dt)&&!Yi(dt)&&dt.forEachChild(Ge)})}function Mt(ot,Tt,it){const Wt=yr(ot);if(Wt&&Wt.declarations)for(const nr of Wt.declarations){const Y=zc(nr,137,Tt);D.assert(nr.kind===175&&!!Y),it(Y)}ot.exports&&ot.exports.forEach(nr=>{const Y=nr.valueDeclaration;if(Y&&Y.kind===173){const Ge=Y.body;Ge&&wr(Ge,110,dt=>{gE(dt)&&it(dt)})}})}function yr(ot){return ot.members&&ot.members.get("__constructor")}function Cr(ot,Tt){const it=yr(ot.symbol);if(it&&it.declarations)for(const Wt of it.declarations){D.assert(Wt.kind===175);const nr=Wt.body;nr&&wr(nr,108,Y=>{zQ(Y)&&Tt(Y)})}}function Lt(ot){return!!yr(ot.symbol)}function an(ot,Tt){if(Lt(ot))return;const it=ot.symbol,Wt=Tt.createSearch(void 0,it,void 0);k(it,Tt,Wt)}function xn(ot,Tt,it){if(Gy(ot)&&Ca(ot.parent)){Tt(ot);return}if(ot.kind!==80)return;ot.parent.kind===303&&rn(ot,it.checker,Tt);const Wt=Lr(ot);if(Wt){Tt(Wt);return}const nr=Sn(ot,dt=>!Od(dt.parent)&&!Oa(dt.parent)&&!r7(dt.parent)),Y=nr.parent;if(LL(Y)&&Y.type===nr&&it.markSeenContainingTypeReference(Y))if(lb(Y))Ge(Y.initializer);else if(Qs(Y)&&Y.body){const dt=Y.body;dt.kind===240?i3(dt,Q=>{Q.expression&&Ge(Q.expression)}):Ge(dt)}else i7(Y)&&Ge(Y.expression);function Ge(dt){In(dt)&&Tt(dt)}}function Lr(ot){return Be(ot)||mi(ot)?Lr(ot.parent):t2(ot)?di(ot.parent.parent,Yi):void 0}function In(ot){switch(ot.kind){case 216:return In(ot.expression);case 218:case 217:case 209:case 230:case 208:return!0;default:return!1}}function vi(ot,Tt,it,Wt){if(ot===Tt)return!0;const nr=oc(ot)+","+oc(Tt),Y=it.get(nr);if(Y!==void 0)return Y;it.set(nr,!1);const Ge=!!ot.declarations&&ot.declarations.some(dt=>Gw(dt).some(Q=>{const at=Wt.getTypeAtLocation(Q);return!!at&&!!at.symbol&&vi(at.symbol,Tt,it,Wt)}));return it.set(nr,Ge),Ge}function ia(ot){let Tt=zD(ot,!1);if(!Tt)return;let it=32;switch(Tt.kind){case 171:case 170:case 173:case 172:case 175:case 176:case 177:it&=pb(Tt),Tt=Tt.parent;break;default:return}const Wt=Tt.getSourceFile(),nr=Mr(me(Wt,"super",Tt),Y=>{if(Y.kind!==108)return;const Ge=zD(Y,!1);return Ge&&so(Ge)===!!it&&Ge.parent.symbol===Tt.symbol?Sh(Y):void 0});return[{definition:{type:0,symbol:Tt.symbol},references:nr}]}function Wa(ot){return ot.kind===80&&ot.parent.kind===168&&ot.parent.name===ot}function bi(ot,Tt,it){let Wt=_d(ot,!1,!1),nr=32;switch(Wt.kind){case 173:case 172:if(tg(Wt)){nr&=pb(Wt),Wt=Wt.parent;break}case 171:case 170:case 175:case 176:case 177:nr&=pb(Wt),Wt=Wt.parent;break;case 311:if(c_(Wt)||Wa(ot))return;case 261:case 217:break;default:return}const Y=lo(Wt.kind===311?Tt:[Wt.getSourceFile()],dt=>(it.throwIfCancellationRequested(),me(dt,"this",Ja(Wt)?dt:Wt).filter(Q=>{if(!tC(Q))return!1;const at=_d(Q,!1,!1);if(!rh(at))return!1;switch(Wt.kind){case 217:case 261:return Wt.symbol===at.symbol;case 173:case 172:return tg(Wt)&&Wt.symbol===at.symbol;case 230:case 262:case 209:return at.parent&&rh(at.parent)&&Wt.symbol===at.parent.symbol&&so(at)===!!nr;case 311:return at.kind===311&&!c_(at)&&!Wa(Q)}}))).map(dt=>Sh(dt));return[{definition:{type:3,node:bo(Y,dt=>Cs(dt.node.parent)?dt.node:void 0)||ot},references:Y}]}function Pt(ot,Tt,it,Wt){const nr=Bj(ot,it),Y=lo(Tt,Ge=>(Wt.throwIfCancellationRequested(),Mr(me(Ge,ot.text),dt=>{if(Wc(dt)&&dt.text===ot.text)if(nr){const Q=Bj(dt,it);if(nr!==it.getStringType()&&nr===Q)return Sh(dt,2)}else return CS(dt)&&!m7(dt,Ge)?void 0:Sh(dt,2)})));return[{definition:{type:4,node:ot},references:Y}]}function Ar(ot,Tt,it,Wt,nr,Y){const Ge=[];return Yt(ot,Tt,it,Wt,!(Wt&&nr),(dt,Q,at)=>{at&&$r(ot)!==$r(at)&&(at=void 0),Ge.push(at||Q||dt)},()=>!Y),Ge}function Yt(ot,Tt,it,Wt,nr,Y,Ge){const dt=fO(Tt);if(dt){const Pr=it.getShorthandAssignmentValueSymbol(Tt.parent);if(Pr&&Wt)return Y(Pr,void 0,void 0,3);const li=it.getContextualType(dt.parent),Yn=li&&bo(oJ(dt,it,li,!0),he=>$t(he,4));if(Yn)return Yn;const Jn=le(Tt,it),w=Jn&&Y(Jn,void 0,void 0,4);if(w)return w;const ge=Pr&&Y(Pr,void 0,void 0,3);if(ge)return ge}const Q=o(Tt,ot,it);if(Q){const Pr=Y(Q,void 0,void 0,1);if(Pr)return Pr}const at=$t(ot);if(at)return at;if(ot.valueDeclaration&&gm(ot.valueDeclaration,ot.valueDeclaration.parent)){const Pr=it.getSymbolsOfParameterPropertyDeclaration(Ws(ot.valueDeclaration,Cs),ot.name);return D.assert(Pr.length===2&&!!(Pr[0].flags&1)&&!!(Pr[1].flags&4)),$t(ot.flags&1?Pr[1]:Pr[0])}const fr=wu(ot,280);if(!Wt||fr&&!fr.propertyName){const Pr=fr&&it.getExportSpecifierLocalTargetSymbol(fr);if(Pr){const li=Y(Pr,void 0,void 0,1);if(li)return li}}if(!Wt){let Pr;return nr?Pr=LP(Tt.parent)?Qj(it,Tt.parent):void 0:Pr=Jt(ot,it),Pr&&$t(Pr,4)}if(D.assert(Wt),nr){const Pr=Jt(ot,it);return Pr&&$t(Pr,4)}function $t(Pr,li){return bo(it.getRootSymbols(Pr),Yn=>Y(Pr,Yn,void 0,li)||(Yn.parent&&Yn.parent.flags&96&&Ge(Yn)?Qr(Yn.parent,Yn.name,it,Jn=>Y(Pr,Yn,Jn,li)):void 0))}function Jt(Pr,li){const Yn=wu(Pr,207);if(Yn&&LP(Yn))return Qj(li,Yn)}}function Qr(ot,Tt,it,Wt){const nr=new Map;return Y(ot);function Y(Ge){if(!(!(Ge.flags&96)||!Lg(nr,oc(Ge))))return bo(Ge.declarations,dt=>bo(Gw(dt),Q=>{const at=it.getTypeAtLocation(Q),fr=at&&at.symbol&&it.getPropertyOfType(at,Tt);return at&&fr&&(bo(it.getRootSymbols(fr),Wt)||Y(at.symbol))}))}}function $r(ot){return ot.valueDeclaration?!!(Pp(ot.valueDeclaration)&32):!1}function Fn(ot,Tt,it,Wt){const{checker:nr}=Wt;return Yt(Tt,it,nr,!1,Wt.options.use!==2||!!Wt.options.providePrefixAndSuffixTextForRename,(Y,Ge,dt,Q)=>(dt&&$r(Tt)!==$r(dt)&&(dt=void 0),ot.includes(dt||Ge||Y)?{symbol:Ge&&!(Du(Y)&6)?Ge:Y,kind:Q}:void 0),Y=>!(ot.parents&&!ot.parents.some(Ge=>vi(Y.parent,Ge,Wt.inheritsFromCache,nr))))}function ja(ot,Tt){let it=J7(ot);const{declarations:Wt}=Tt;if(Wt){let nr;do{nr=it;for(const Y of Wt){const Ge=xP(Y);Ge&it&&(it|=Ge)}}while(it!==nr)}return it}e.getIntersectingMeaningFromDeclarations=ja;function Ca(ot){return ot.flags&16777216?!(Lp(ot)||zg(ot)):$5(ot)?lb(ot):Jl(ot)?!!ot.body:Yi(ot)||IL(ot)}function rn(ot,Tt,it){const Wt=Tt.getSymbolAtLocation(ot),nr=Tt.getShorthandAssignmentValueSymbol(Wt.valueDeclaration);if(nr)for(const Y of nr.getDeclarations())xP(Y)&1&&it(Y)}e.getReferenceEntriesForShorthandPropertyAssignment=rn;function wr(ot,Tt,it){js(ot,Wt=>{Wt.kind===Tt&&it(Wt),wr(Wt,Tt,it)})}function ln(ot){return uH(Pj(ot).parent)}function Kr(ot,Tt,it){const Wt=eC(ot)?ot.parent:void 0,nr=Wt&&it.getTypeAtLocation(Wt.expression),Y=Mr(nr&&(nr.isUnionOrIntersection()?nr.types:nr.symbol===Tt.parent?void 0:[nr]),Ge=>Ge.symbol&&Ge.symbol.flags&96?Ge.symbol:void 0);return Y.length===0?void 0:Y}function Li(ot){return ot.use===2&&ot.providePrefixAndSuffixTextForRename}})(K7||(K7={}))}}),tu={};Dl(tu,{Core:()=>K7,DefinitionKind:()=>Xne,EntryKind:()=>Zne,ExportKind:()=>qne,FindReferencesUse:()=>Yne,ImportExport:()=>$ne,createImportTracker:()=>Une,findModuleReferences:()=>dxe,findReferenceOrRenameEntries:()=>KVe,findReferencedSymbols:()=>ZVe,getContextNode:()=>R3,getExportInfo:()=>Vne,getImplementationsAtPosition:()=>QVe,getImportOrExportSymbol:()=>hxe,getReferenceEntriesForNode:()=>bxe,getTextSpanOfEntry:()=>Gne,isContextWithStartAndEndNode:()=>yxe,isDeclarationOfSymbol:()=>Cxe,nodeEntry:()=>Sh,toContextSpan:()=>Hne,toHighlightSpan:()=>sWe,toReferenceEntry:()=>Sxe,toRenameLocation:()=>tWe});var wxe=or({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";GVe(),cWe()}});function Exe(e,t,n,i,s){var o,l;const f=Dxe(t,n,e),_=f&&[hWe(f.reference.fileName,f.fileName,f.unverified)]||tt;if(f!=null&&f.file)return _;const h=qm(t,n);if(h===t)return;const{parent:m}=h,y=e.getTypeChecker();if(h.kind===163||Be(h)&&qR(m)&&m.tagName===h)return uWe(y,h)||tt;if(SP(h)){const B=Oj(h.parent,h.text);return B?[Kne(y,B,"label",h.text,void 0)]:void 0}if(h.kind===107){const B=Sn(h.parent,U=>fu(U)?"quit":Jl(U));return B?[PO(y,B)]:void 0}if(h.kind===135){const B=Sn(h,V=>Jl(V));return B&&bt(B.modifiers,V=>V.kind===134)?[PO(y,B)]:void 0}if(h.kind===127){const B=Sn(h,V=>Jl(V));return B&&B.asteriskToken?[PO(y,B)]:void 0}if(wS(h)&&fu(h.parent)){const B=h.parent.parent,{symbol:U,failedAliasResolution:V}=iV(B,y,s),re=Mn(B.members,fu),z=U?y.symbolToString(U,B):"",ce=h.getSourceFile();return er(re,R=>{let{pos:le}=S1(R);return le=tc(ce.text,le),Kne(y,R,"constructor","static {}",z,!1,V,{start:le,length:6})})}let{symbol:T,failedAliasResolution:k}=iV(h,y,s),E=h;if(i&&k){const B=Vt([h,...(T==null?void 0:T.declarations)||tt],V=>Sn(V,eue)),U=B&&eN(B);U&&({symbol:T,failedAliasResolution:k}=iV(U,y,s),E=U)}if(!T&&Yj(E)){const B=(l=(o=t.resolvedModules)==null?void 0:o.get(E.text,_g(t,E)))==null?void 0:l.resolvedModule;if(B)return[{name:E.text,fileName:B.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:nf(0,0),failedAliasResolution:k,isAmbient:md(B.resolvedFileName),unverified:E!==h}]}if(!T)return Nn(_,dWe(h,y));if(i&&yn(T.declarations,B=>B.getSourceFile().fileName===t.fileName))return;const O=vWe(y,h);if(O&&!($p(h.parent)&&bWe(O))){const B=PO(y,O,k);if(y.getRootSymbols(T).some(U=>lWe(U,O)))return[B];{const U=pC(y,T,h,k,O)||tt;return h.kind===108?[B,...U]:[...U,B]}}if(h.parent.kind===303){const B=y.getShorthandAssignmentValueSymbol(T.valueDeclaration),U=B!=null&&B.declarations?B.declarations.map(V=>KE(V,y,B,h,!1,k)):tt;return Nn(U,Axe(y,h))}if(_u(h)&&Cc(m)&&Bg(m.parent)&&h===(m.propertyName||m.name)){const B=MP(h),U=y.getTypeAtLocation(m.parent);return B===void 0?tt:lo(U.isUnion()?U.types:[U],V=>{const re=V.getProperty(B);return re&&pC(y,re,h)})}const N=Axe(y,h);return Nn(_,N.length?N:pC(y,T,h,k))}function lWe(e,t){var n;return e===t.symbol||e===t.symbol.parent||Hp(t.parent)||!n7(t.parent)&&e===((n=di(t.parent,rh))==null?void 0:n.symbol)}function Axe(e,t){const n=fO(t);if(n){const i=n&&e.getContextualType(n.parent);if(i)return lo(oJ(n,e,i,!1),s=>pC(e,s,t))}return tt}function uWe(e,t){const n=Sn(t,yf);if(!(n&&n.name))return;const i=Sn(n,Yi);if(!i)return;const s=T1(i);if(!s)return;const o=kl(s.expression),l=Mp(o)?o.symbol:e.getSymbolAtLocation(o);if(!l)return;const f=Ba(U5(n.name)),_=R_(n)?e.getPropertyOfType(e.getTypeOfSymbol(l),f):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),f);if(_)return pC(e,_,t)}function Dxe(e,t,n){var i,s,o,l;const f=dC(e.referencedFiles,t);if(f){const m=n.getSourceFileFromReference(e,f);return m&&{reference:f,fileName:m.fileName,file:m,unverified:!1}}const _=dC(e.typeReferenceDirectives,t);if(_){const m=(i=n.getResolvedTypeReferenceDirectives().get(_.fileName,_.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,y=m&&n.getSourceFile(m.resolvedFileName);return y&&{reference:_,fileName:y.fileName,file:y,unverified:!1}}const h=dC(e.libReferenceDirectives,t);if(h){const m=n.getLibFileFromReference(h);return m&&{reference:h,fileName:m.fileName,file:m,unverified:!1}}if((s=e.resolvedModules)!=null&&s.size()){const m=vE(e,t);if(Yj(m)&&hf(m.text)&&e.resolvedModules.has(m.text,_g(e,m))){const y=(l=(o=e.resolvedModules.get(m.text,_g(e,m)))==null?void 0:o.resolvedModule)==null?void 0:l.resolvedFileName,T=y||ud(ga(e.fileName),m.text);return{file:n.getSourceFile(T),fileName:T,reference:{pos:m.getStart(),end:m.getEnd(),fileName:m.text},unverified:!y}}}}function _We(e,t,n){const i=qm(t,n);if(i===t)return;if(q5(i.parent)&&i.parent.name===i)return Qne(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:s,failedAliasResolution:o}=iV(i,e,!1);if(!s)return;const l=e.getTypeOfSymbolAtLocation(s,i),f=fWe(s,l,e),_=f&&Qne(f,e,i,o),h=_&&_.length!==0?_:Qne(l,e,i,o);return h.length?h:!(s.flags&111551)&&s.flags&788968?pC(e,Id(s,e),i,o):void 0}function Qne(e,t,n,i){return lo(e.isUnion()&&!(e.flags&32)?e.types:[e],s=>s.symbol&&pC(t,s.symbol,n,i))}function fWe(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Fa(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return n.getReturnTypeOfSignature(Fi(i))}}function pWe(e,t,n){const i=Exe(e,t,n);if(!i||i.length===0)return;const s=dC(t.referencedFiles,n)||dC(t.typeReferenceDirectives,n)||dC(t.libReferenceDirectives,n);if(s)return{definitions:i,textSpan:Cb(s)};const o=qm(t,n),l=nf(o.getStart(),o.getWidth());return{definitions:i,textSpan:l}}function dWe(e,t){return Mr(t.getIndexInfosAtLocation(e),n=>n.declaration&&PO(t,n.declaration))}function iV(e,t,n){const i=t.getSymbolAtLocation(e);let s=!1;if(i!=null&&i.declarations&&i.flags&2097152&&!n&&mWe(e,i.declarations[0])){const o=t.getAliasedSymbol(i);if(o.declarations)return{symbol:o};s=!0}return{symbol:i,failedAliasResolution:s}}function mWe(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==273}function gWe(e){if(!$w(e))return!1;const t=Sn(e,n=>Hp(n)?!0:$w(n)?!1:"quit");return!!t&&Au(t)===5}function pC(e,t,n,i,s){const o=Mn(t.declarations,y=>y!==s),l=Mn(o,y=>!gWe(y)),f=bt(l)?l:o;return _()||h()||er(f,y=>KE(y,e,t,n,!1,i));function _(){if(t.flags&32&&!(t.flags&19)&&(gE(n)||n.kind===137)){const y=on(o,Yi)||D.fail("Expected declaration to have at least one class-like declaration");return m(y.members,!0)}}function h(){return JQ(n)||HQ(n)?m(o,!1):void 0}function m(y,T){if(!y)return;const k=y.filter(T?Uu:Qs),E=k.filter(O=>!!O.body);return k.length?E.length!==0?E.map(O=>KE(O,e,t,n)):[KE(fi(k),e,t,n,!1,i)]:void 0}}function KE(e,t,n,i,s,o){const l=t.symbolToString(n),f=_2.getSymbolKind(t,n,i),_=n.parent?t.symbolToString(n.parent,i):"";return Kne(t,e,f,l,_,s,o)}function Kne(e,t,n,i,s,o,l,f){const _=t.getSourceFile();if(!f){const h=Es(t)||t;f=Zp(h,_)}return Xs(fa({fileName:_.fileName,textSpan:f,kind:n,name:i,containerKind:void 0,containerName:s},tu.toContextSpan(f,_,tu.getContextNode(t))),{isLocal:!eie(e,t),isAmbient:!!(t.flags&16777216),unverified:o,failedAliasResolution:l})}function eie(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(lb(t.parent)&&t.parent.initializer===t)return eie(e,t.parent);switch(t.kind){case 171:case 176:case 177:case 173:if(Qd(t,8))return!1;case 175:case 302:case 303:case 209:case 230:case 218:case 217:return eie(e,t.parent);default:return!1}}function PO(e,t,n){return KE(t,e,t.symbol,t,!1,n)}function dC(e,t){return on(e,n=>dL(n,t))}function hWe(e,t,n){return{fileName:t,textSpan:L_(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:n}}function yWe(e){const t=Sn(e,i=>!eC(i)),n=t==null?void 0:t.parent;return n&&n7(n)&&iF(n)===t?n:void 0}function vWe(e,t){const n=yWe(t),i=n&&e.getResolvedSignature(n);return di(i&&i.declaration,s=>Qs(s)&&!uy(s))}function bWe(e){switch(e.kind){case 175:case 184:case 179:return!0;default:return!1}}var xWe=or({"src/services/goToDefinition.ts"(){"use strict";Ri()}}),eA={};Dl(eA,{createDefinitionInfo:()=>KE,findReferenceInPosition:()=>dC,getDefinitionAndBoundSpan:()=>pWe,getDefinitionAtPosition:()=>Exe,getReferenceAtPosition:()=>Dxe,getTypeDefinitionAtPosition:()=>_We});var TWe=or({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";xWe()}});function SWe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function kWe(e){return e.includeInlayParameterNameHints==="literals"}function CWe(e){const{file:t,program:n,span:i,cancellationToken:s,preferences:o}=e,l=t.text,f=n.getCompilerOptions(),_=n.getTypeChecker(),h=[];return m(t),h;function m(me){if(!(!me||me.getFullWidth()===0)){switch(me.kind){case 266:case 262:case 263:case 261:case 230:case 217:case 173:case 218:s.throwIfCancellationRequested()}if(mL(i,me.pos,me.getFullWidth())&&!(Oa(me)&&!t2(me)))return o.includeInlayVariableTypeHints&&Fa(me)||o.includeInlayPropertyDeclarationTypeHints&&fo(me)?B(me):o.includeInlayEnumMemberValueHints&&C3(me)?O(me):SWe(o)&&(go(me)||v3(me))?U(me):(o.includeInlayFunctionParameterTypeHints&&Jl(me)&&GF(me)&&le(me),o.includeInlayFunctionLikeReturnTypeHints&&y(me)&&ce(me)),js(me,m)}}function y(me){return Fl(me)||_l(me)||B_(me)||g_(me)||sg(me)}function T(me,ve,we){h.push({text:`${we?"...":""}${ye(me,aV)}:`,position:ve,kind:"Parameter",whitespaceAfter:!0})}function k(me,ve){h.push({text:`: ${ye(me,aV)}`,position:ve,kind:"Type",whitespaceBefore:!0})}function E(me,ve){h.push({text:`= ${ye(me,aV)}`,position:ve,kind:"Enum",whitespaceBefore:!0})}function O(me){if(me.initializer)return;const ve=_.getConstantValue(me);ve!==void 0&&E(ve.toString(),me.end)}function N(me){return me.symbol&&me.symbol.flags&1536}function B(me){if(!me.initializer||_o(me.name)||Fa(me)&&!te(me)||Lf(me))return;const we=_.getTypeAtLocation(me);if(N(we))return;const K=$(we);if(K){if(o.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&C0(me.name.getText(),K))return;k(K,me.name.end)}}function U(me){const ve=me.arguments;if(!ve||!ve.length)return;const we=[],K=_.getResolvedSignatureForSignatureHelp(me,we);if(!(!K||!we.length))for(let Ze=0;ZeK.test(l.substring(Ze.pos,Ze.end)))}function z(me){switch(me.kind){case 223:{const ve=me.operand;return t7(ve)||Be(ve)&&S9(ve.escapedText)}case 112:case 97:case 106:case 15:case 227:return!0;case 80:{const ve=me.escapedText;return ee(ve)||S9(ve)}}return t7(me)}function ce(me){if(Fl(me)&&!zc(me,21,t)||Og(me)||!me.body)return;const we=_.getSignatureFromDeclaration(me);if(!we)return;const K=_.getReturnTypeOfSignature(we);if(N(K))return;const Ze=$(K);Ze&&k(Ze,R(me))}function R(me){const ve=zc(me,22,t);return ve?ve.end:me.parameters.end}function le(me){const ve=_.getSignatureFromDeclaration(me);if(ve)for(let we=0;weve?me.substr(0,ve-3)+"...":me}function $(me){const we=O3();return Rw(K=>{const Ze=_.typeToTypeNode(me,void 0,71286784);D.assertIsDefined(Ze,"should always get typenode"),we.writeNode(4,Ze,t,K)})}function ee(me){return me==="undefined"}function te(me){if((f7(me)||Fa(me)&&qy(me))&&me.initializer){const ve=kl(me.initializer);return!(z(ve)||v3(ve)||Dc(ve)||i7(ve))}return!0}}var aV,Nxe,wWe=or({"src/services/inlayHints.ts"(){"use strict";Ri(),aV=30,Nxe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),tie={};Dl(tie,{provideInlayHints:()=>CWe});var EWe=or({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";wWe()}});function AWe(e,t){const n=[];return gK(e,i=>{for(const s of NWe(i)){const o=cg(s)&&s.tags&&on(s.tags,f=>f.kind===333&&(f.tagName.escapedText==="inheritDoc"||f.tagName.escapedText==="inheritdoc"));if(s.comment===void 0&&!o||cg(s)&&i.kind!==352&&i.kind!==344&&s.tags&&s.tags.some(f=>f.kind===352||f.kind===344)&&!s.tags.some(f=>f.kind===347||f.kind===348))continue;let l=s.comment?_8(s.comment,t):[];o&&o.comment&&(l=l.concat(_8(o.comment,t))),Zn(n,l,DWe)||n.push(l)}}),x_(np(n,[iC()]))}function DWe(e,t){return cl(e,t,(n,i)=>n.kind===i.kind&&n.text===i.text)}function NWe(e){switch(e.kind){case 347:case 354:return[e];case 344:case 352:return[e,e.parent];default:return F$(e)}}function IWe(e,t){const n=[];return gK(e,i=>{const s=Z6(i);if(!(s.some(o=>o.kind===352||o.kind===344)&&!s.some(o=>o.kind===347||o.kind===348)))for(const o of s)n.push({name:o.tagName.text,text:PWe(o,t)})}),n}function _8(e,t){return typeof e=="string"?[$m(e)]:lo(e,n=>n.kind===327?[$m(n.text)]:Dhe(n,t))}function PWe(e,t){const{comment:n,kind:i}=e,s=OWe(i);switch(i){case 355:const f=e.typeExpression;return f?o(f):n===void 0?void 0:_8(n,t);case 335:return o(e.class);case 334:return o(e.class);case 351:const _=e,h=[];if(_.constraint&&h.push($m(_.constraint.getText())),Nr(_.typeParameters)){Nr(h)&&h.push(pu());const y=_.typeParameters[_.typeParameters.length-1];Vt(_.typeParameters,T=>{h.push(s(T.getText())),y!==T&&h.push(fp(28),pu())})}return n&&h.push(pu(),..._8(n,t)),h;case 350:case 356:return o(e.typeExpression);case 352:case 344:case 354:case 347:case 353:const{name:m}=e;return m?o(m):n===void 0?void 0:_8(n,t);default:return n===void 0?void 0:_8(n,t)}function o(f){return l(f.getText())}function l(f){return n?f.match(/^https?$/)?[$m(f),..._8(n,t)]:[s(f),pu(),..._8(n,t)]:[$m(f)]}}function OWe(e){switch(e){case 347:return khe;case 354:return Che;case 351:return Ehe;case 352:case 344:return whe;default:return $m}}function MWe(){return Pxe||(Pxe=er(nie,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:u8.SortText.LocationPriority})))}function LWe(){return Oxe||(Oxe=er(nie,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:u8.SortText.LocationPriority})))}function Ixe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[$m(e)],documentation:tt,tags:void 0,codeActions:void 0}}function FWe(e){if(!Be(e.name))return tt;const t=e.name.text,n=e.parent,i=n.parent;return Qs(i)?Mr(i.parameters,s=>{if(!Be(s.name))return;const o=s.name.text;if(!(n.tags.some(l=>l!==e&&Jg(l)&&Be(l.name)&&l.name.escapedText===o)||t!==void 0&&!Ga(o,t)))return{name:o,kind:"parameter",kindModifiers:"",sortText:u8.SortText.LocationPriority}}):[]}function RWe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[$m(e)],documentation:tt,tags:void 0,codeActions:void 0}}function BWe(e,t,n,i){const s=Za(t,n),o=Sn(s,cg);if(o&&(o.comment!==void 0||Nr(o.tags)))return;const l=s.getStart(t);if(!o&&l!!V.tags);if(O&&!U){const V=N+e+k+" * ",re=l===n?e+k:"";return{newText:V+e+O+k+B+re,caretOffset:V.length}}return{newText:N+B,caretOffset:3}}function jWe(e,t){const{text:n}=e,i=z0(t,e);let s=i;for(;s<=t&&v1(n.charCodeAt(s));s++);return n.slice(i,s)}function zWe(e,t,n,i){return e.map(({name:s,dotDotDotToken:o},l)=>{const f=s.kind===80?s.text:"param"+l;return`${n} * @param ${t?o?"{...any} ":"{any} ":""}${f}${i}`}).join("")}function JWe(e,t){return`${e} * @returns${t}`}function UWe(e,t){return Ble(e,n=>rie(n,t))}function rie(e,t){switch(e.kind){case 261:case 217:case 173:case 175:case 172:case 218:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:OO(n,t)};case 302:return rie(e.initializer,t);case 262:case 263:case 265:case 305:case 264:return{commentOwner:e};case 170:{const s=e;return s.type&&uy(s.type)?{commentOwner:e,parameters:s.type.parameters,hasReturn:OO(s.type,t)}:{commentOwner:e}}case 242:{const o=e.declarationList.declarations,l=o.length===1&&o[0].initializer?VWe(o[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:OO(l,t)}:{commentOwner:e}}case 311:return"quit";case 266:return e.parent.kind===266?void 0:{commentOwner:e};case 243:return rie(e.expression,t);case 225:{const s=e;return Au(s)===0?"quit":Qs(s.right)?{commentOwner:e,parameters:s.right.parameters,hasReturn:OO(s.right,t)}:{commentOwner:e}}case 171:const i=e.initializer;if(i&&(_l(i)||Fl(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:OO(i,t)}}}function OO(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(uy(e)||Fl(e)&&ht(e.body)||Jl(e)&&e.body&&oo(e.body)&&!!i3(e.body,n=>n))}function VWe(e){for(;e.kind===216;)e=e.expression;switch(e.kind){case 217:case 218:return e;case 230:return on(e.members,Uu)}}var nie,Pxe,Oxe,Mxe,WWe=or({"src/services/jsDoc.ts"(){"use strict";Ri(),nie=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Mxe=Ixe}}),X4={};Dl(X4,{getDocCommentTemplateAtPosition:()=>BWe,getJSDocParameterNameCompletionDetails:()=>RWe,getJSDocParameterNameCompletions:()=>FWe,getJSDocTagCompletionDetails:()=>Ixe,getJSDocTagCompletions:()=>LWe,getJSDocTagNameCompletionDetails:()=>Mxe,getJSDocTagNameCompletions:()=>MWe,getJsDocCommentsFromDeclarations:()=>AWe,getJsDocTagsFromDeclarations:()=>IWe});var qWe=or({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";WWe()}});function $We(e,t,n,i,s,o){const l=Vn.ChangeTracker.fromContext({host:n,formatContext:t,preferences:s}),f=o==="SortAndCombine"||o==="All",_=f,h=o==="RemoveUnused"||o==="All",m=sV(e,e.statements.filter(Tf)),y=lqe(s,f?()=>Rxe(m,s)===2:void 0),T=E=>(h&&(E=GWe(E,e,i)),_&&(E=Lxe(E,y,e)),f&&(E=mr(E,(O,N)=>cie(O,N,y))),E);m.forEach(E=>k(E,T)),o!=="RemoveUnused"&&uqe(e).forEach(E=>k(E,O=>iie(O,y)));for(const E of e.statements.filter(Np)){if(!E.body)continue;if(sV(e,E.body.statements.filter(Tf)).forEach(N=>k(N,T)),o!=="RemoveUnused"){const N=E.body.statements.filter(Sf);k(N,B=>iie(B,y))}}return l.getChanges();function k(E,O){if(Nr(E)===0)return;tz(E[0]);const N=_?V1(E,V=>MO(V.moduleSpecifier)):[E],B=f?mr(N,(V,re)=>sie(V[0].moduleSpecifier,re[0].moduleSpecifier,y)):N,U=lo(B,V=>MO(V[0].moduleSpecifier)||V[0].moduleSpecifier===void 0?O(V):V);if(U.length===0)l.deleteNodes(e,E,{leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.Include},!0);else{const V={leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.Include,suffix:wb(n,t.options)};l.replaceNodeWithNodes(e,E[0],U,V);const re=l.nodeHasTrailingComment(e,E[0],V);l.deleteNodes(e,E.slice(1),{trailingTriviaOption:Vn.TrailingTriviaOption.Include},re)}}}function sV(e,t){const n=Uv(e.languageVersion,!1,e.languageVariant),i=[];let s=0;for(const o of t)i[s]&&HWe(e,o,n)&&s++,i[s]||(i[s]=[]),i[s].push(o);return i}function HWe(e,t,n){const i=t.getFullStart(),s=t.getStart();n.setText(e.text,i,s-i);let o=0;for(;n.getTokenStart()=2))return!0;return!1}function GWe(e,t,n){const i=n.getTypeChecker(),s=n.getCompilerOptions(),o=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),f=!!(t.transformFlags&2),_=[];for(const m of e){const{importClause:y,moduleSpecifier:T}=m;if(!y){_.push(m);continue}let{name:k,namedBindings:E}=y;if(k&&!h(k)&&(k=void 0),E)if(vb(E))h(E.name)||(E=void 0);else{const O=E.elements.filter(N=>h(N.name));O.lengthsc(i)&&i.text===n)}function MO(e){return e!==void 0&&Wc(e)?e.text:void 0}function ZWe(e,t,n){const i=oV(t);return Lxe(e,i,n)}function Lxe(e,t,n){if(e.length===0)return e;const{importWithoutClause:i,typeOnlyImports:s,regularImports:o}=YWe(e),l=[];i&&l.push(i);for(const f of[o,s]){const _=f===s,{defaultImports:h,namespaceImports:m,namedImports:y}=f;if(!_&&h.length===1&&m.length===1&&y.length===0){const re=h[0];l.push(tA(re,re.importClause.name,m[0].importClause.namedBindings));continue}const T=mr(m,(re,z)=>t(re.importClause.namedBindings.name.text,z.importClause.namedBindings.name.text));for(const re of T)l.push(tA(re,void 0,re.importClause.namedBindings));const k=Ji(h),E=Ji(y),O=k!=null?k:E;if(!O)continue;let N;const B=[];if(h.length===1)N=h[0].importClause.name;else for(const re of h)B.push(M.createImportSpecifier(!1,M.createIdentifier("default"),re.importClause.name));B.push(...aqe(y));const U=M.createNodeArray(Fxe(B,t),E==null?void 0:E.importClause.namedBindings.elements.hasTrailingComma),V=U.length===0?N?void 0:M.createNamedImports(tt):E?M.updateNamedImports(E.importClause.namedBindings,U):M.createNamedImports(U);n&&V&&(E!=null&&E.importClause.namedBindings)&&!m7(E.importClause.namedBindings,n)&&Ln(V,2),_&&N&&V?(l.push(tA(O,N,void 0)),l.push(tA(E!=null?E:O,void 0,V))):l.push(tA(O,N,V))}return l}function YWe(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const s of e){if(s.importClause===void 0){t=t||s;continue}const o=s.importClause.isTypeOnly?n:i,{name:l,namedBindings:f}=s.importClause;l&&o.defaultImports.push(s),f&&(vb(f)?o.namespaceImports.push(s):o.namedImports.push(s))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:i}}function QWe(e,t){const n=oV(t);return iie(e,n)}function iie(e,t){if(e.length===0)return e;const{exportWithoutClause:n,namedExports:i,typeOnlyExports:s}=l(e),o=[];n&&o.push(n);for(const f of[i,s]){if(f.length===0)continue;const _=[];_.push(...lo(f,y=>y.exportClause&&og(y.exportClause)?y.exportClause.elements:tt));const h=Fxe(_,t),m=f[0];o.push(M.updateExportDeclaration(m,m.modifiers,m.isTypeOnly,m.exportClause&&(og(m.exportClause)?M.updateNamedExports(m.exportClause,h):M.updateNamespaceExport(m.exportClause,m.exportClause.name)),m.moduleSpecifier,m.assertClause))}return o;function l(f){let _;const h=[],m=[];for(const y of f)y.exportClause===void 0?_=_||y:y.isTypeOnly?m.push(y):h.push(y);return{exportWithoutClause:_,namedExports:h,typeOnlyExports:m}}}function tA(e,t,n){return M.updateImportDeclaration(e,e.modifiers,M.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.assertClause)}function Fxe(e,t){return mr(e,(n,i)=>aie(n,i,t))}function aie(e,t,n){return ka(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}function KWe(e,t,n){const i=oV(!!n);return sie(e,t,i)}function sie(e,t,n){const i=e===void 0?void 0:MO(e),s=t===void 0?void 0:MO(t);return ka(i===void 0,s===void 0)||ka(hf(i),hf(s))||n(i,s)}function oie(e){var t;switch(e.kind){case 270:return(t=di(e.moduleReference,yh))==null?void 0:t.expression;case 271:return e.moduleSpecifier;case 242:return e.declarationList.declarations[0].initializer.arguments[0]}}function eqe(e,t){return Rxe(sV(e,e.statements.filter(Tf)),t)}function Rxe(e,t){const n=f8(t,!1),i=f8(t,!0);let s=3,o=!1;for(const l of e){if(l.length>1){const _=jl(l,h=>{var y;var m;return(y=(m=di(h.moduleSpecifier,sc))==null?void 0:m.text)!=null?y:""},n,i);if(_&&(s&=_,o=!0),!s)return s}const f=on(l,_=>{var h,m;return((m=di((h=_.importClause)==null?void 0:h.namedBindings,r2))==null?void 0:m.elements.length)>1});if(f){const _=lie(f.importClause.namedBindings.elements,t);if(_&&(s&=_,o=!0),!s)return s}if(s!==3)return s}return o?0:s}function tqe(e,t){const n=f8(t,!1),i=f8(t,!0);return jl(e,s=>MO(oie(s))||"",n,i)}function rqe(e,t,n){const i=tr(e,t,Jc,(s,o)=>cie(s,o,n));return i<0?~i:i}function nqe(e,t,n){const i=tr(e,t,Jc,(s,o)=>aie(s,o,n));return i<0?~i:i}function cie(e,t,n){return sie(oie(e),oie(t),n)||iqe(e,t)}function iqe(e,t){return Uc(Bxe(e),Bxe(t))}function Bxe(e){var t;switch(e.kind){case 271:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===273?2:e.importClause.name?3:4:0;case 270:return 5;case 242:return 6}}function aqe(e){return lo(e,t=>er(sqe(t),n=>n.name&&n.propertyName&&n.name.escapedText===n.propertyName.escapedText?M.updateImportSpecifier(n,n.isTypeOnly,void 0,n.name):n))}function sqe(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&r2(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function oV(e){return e?Ix:tn}function oqe(e,t){var _,h,m;const n=cqe(t),i=(_=t.organizeImportsCaseFirst)!=null?_:!1,s=(h=t.organizeImportsNumericCollation)!=null?h:!1,o=(m=t.organizeImportsAccentCollation)!=null?m:!0,l=e?o?"accent":"base":o?"variant":"case";return new Intl.Collator(n,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:s}).compare}function cqe(e){let t=e.organizeImportsLocale;t==="auto"&&(t=f1()),t===void 0&&(t="en");const n=Intl.Collator.supportedLocalesOf(t);return n.length?n[0]:"en"}function f8(e,t){var i;return((i=e.organizeImportsCollation)!=null?i:"ordinal")==="unicode"?oqe(t,e):oV(t)}function lqe(e,t){var i;const n=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(i=t==null?void 0:t())!=null?i:!1;return f8(e,n)}function uqe(e){const t=[],n=e.statements,i=Nr(n);let s=0,o=0;for(;ssV(e,l))}var jxe,lie,_qe=or({"src/services/organizeImports.ts"(){"use strict";Ri(),jxe=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],n){var i;this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),(i=this._cache)!=null||(this._cache=new WeakMap),this._cache.set(e,n)}},lie=d4((e,t)=>{if(!xu(e,(s,o)=>ka(s.isTypeOnly,o.isTypeOnly)))return 0;const n=f8(t,!1),i=f8(t,!0);return jl(e,s=>s.name.text,n,i)},new jxe)}}),pg={};Dl(pg,{coalesceExports:()=>QWe,coalesceImports:()=>ZWe,compareImportOrExportSpecifiers:()=>aie,compareImportsOrRequireStatements:()=>cie,compareModuleSpecifiers:()=>KWe,detectImportDeclarationSorting:()=>tqe,detectImportSpecifierSorting:()=>lie,detectSorting:()=>eqe,getImportDeclarationInsertionIndex:()=>rqe,getImportSpecifierInsertionIndex:()=>nqe,getOrganizeImportsComparer:()=>f8,organizeImports:()=>$We});var fqe=or({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";_qe()}});function pqe(e,t){const n=[];return dqe(e,t,n),mqe(e,n),n.sort((i,s)=>i.textSpan.start-s.textSpan.start)}function dqe(e,t,n){let i=40,s=0;const o=[...e.statements,e.endOfFileToken],l=o.length;for(;s1&&i.push(LO(o,l,"comment"))}}function Jxe(e,t,n,i){kS(e)||uie(e.pos,t,n,i)}function LO(e,t,n){return eT(L_(e,t),n)}function gqe(e,t){switch(e.kind){case 240:if(Qs(e.parent))return hqe(e.parent,e,t);switch(e.parent.kind){case 245:case 248:case 249:case 247:case 244:case 246:case 253:case 298:return m(e.parent);case 257:const k=e.parent;if(k.tryBlock===e)return m(e.parent);if(k.finallyBlock===e){const E=zc(k,98,t);if(E)return m(E)}default:return eT(Zp(e,t),"code")}case 267:return m(e.parent);case 262:case 230:case 263:case 265:case 268:case 186:case 205:return m(e);case 188:return m(e,!1,!wk(e.parent),23);case 295:case 296:return y(e.statements);case 209:return h(e);case 208:return h(e,23);case 283:return o(e);case 287:return l(e);case 284:case 285:return f(e.attributes);case 227:case 15:return _(e);case 206:return m(e,!1,!Cc(e.parent),23);case 218:return s(e);case 212:return i(e);case 216:return T(e);case 274:case 278:case 299:return n(e)}function n(k){if(!k.elements.length)return;const E=zc(k,19,t),O=zc(k,20,t);if(!(!E||!O||F0(E.pos,O.pos,t)))return cV(E,O,k,t,!1,!1)}function i(k){if(!k.arguments.length)return;const E=zc(k,21,t),O=zc(k,22,t);if(!(!E||!O||F0(E.pos,O.pos,t)))return cV(E,O,k,t,!1,!0)}function s(k){if(oo(k.body)||Md(k.body)||F0(k.body.getFullStart(),k.body.getEnd(),t))return;const E=L_(k.body.getFullStart(),k.body.getEnd());return eT(E,"code",Zp(k))}function o(k){const E=L_(k.openingElement.getStart(t),k.closingElement.getEnd()),O=k.openingElement.tagName.getText(t),N="<"+O+">...";return eT(E,"code",E,!1,N)}function l(k){const E=L_(k.openingFragment.getStart(t),k.closingFragment.getEnd());return eT(E,"code",E,!1,"<>...")}function f(k){if(k.properties.length!==0)return LO(k.getStart(t),k.getEnd(),"code")}function _(k){if(!(k.kind===15&&k.text.length===0))return LO(k.getStart(t),k.getEnd(),"code")}function h(k,E=19){return m(k,!1,!Op(k.parent)&&!go(k.parent),E)}function m(k,E=!1,O=!0,N=19,B=N===19?20:24){const U=zc(e,N,t),V=zc(e,B,t);return U&&V&&cV(U,V,k,t,E,O)}function y(k){return k.length?eT(Cb(k),"code"):void 0}function T(k){if(F0(k.getStart(),k.getEnd(),t))return;const E=L_(k.getStart(),k.getEnd());return eT(E,"code",Zp(k))}}function hqe(e,t,n){const i=yqe(e,t,n),s=zc(t,20,n);return i&&s&&cV(i,s,e,n,e.kind!==218)}function cV(e,t,n,i,s=!1,o=!0){const l=L_(o?e.getFullStart():e.getStart(i),t.getEnd());return eT(l,"code",Zp(n,i),s)}function eT(e,t,n=e,i=!1,s="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:s,autoCollapse:i}}function yqe(e,t,n){if(g_e(e.parameters,n)){const i=zc(e,21,n);if(i)return i}return zc(t,19,n)}var Uxe,vqe=or({"src/services/outliningElementsCollector.ts"(){"use strict";Ri(),Uxe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),_ie={};Dl(_ie,{collectElements:()=>pqe});var bqe=or({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";vqe()}});function xqe(e,t,n,i){const s=jj(qm(t,n));if(Wxe(s)){const o=Tqe(s,e.getTypeChecker(),t,e,i);if(o)return o}return lV(p.You_cannot_rename_this_element)}function Tqe(e,t,n,i,s){const o=t.getSymbolAtLocation(e);if(!o){if(Wc(e)){const T=Bj(e,t);if(T&&(T.flags&128||T.flags&1048576&&yn(T.types,k=>!!(k.flags&128))))return fie(e.text,e.text,"string","",e,n)}else if(VQ(e)){const T=F_(e);return fie(T,T,"label","",e,n)}return}const{declarations:l}=o;if(!l||l.length===0)return;if(l.some(T=>Sqe(i,T)))return lV(p.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Be(e)&&e.escapedText==="default"&&o.parent&&o.parent.flags&1536)return;if(Wc(e)&&rN(e))return s.allowRenameOfImportPath?Cqe(e,n,o):void 0;const f=kqe(n,o,t,s);if(f)return lV(f);const _=_2.getSymbolKind(t,o,e),h=Nhe(e)||a0(e)&&e.parent.kind===166?ig(ng(e)):void 0,m=h||t.symbolToString(o),y=h||t.getFullyQualifiedName(o);return fie(m,y,_,_2.getSymbolModifiers(t,o),e,n)}function Sqe(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&Xl(n.fileName,".d.ts")}function kqe(e,t,n,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&on(t.declarations,f=>Ld(f));l&&!l.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:s}=t;if(!s)return;const o=Vxe(e.path);if(o===void 0)return bt(s,l=>Uhe(l.getSourceFile().path))?p.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const l of s){const f=Vxe(l.getSourceFile().path);if(f){const _=Math.min(o.length,f.length);for(let h=0;h<=_;h++)if(tn(o[h],f[h])!==0)return p.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function Vxe(e){const t=G_(e),n=t.lastIndexOf("node_modules");if(n!==-1)return t.slice(0,n+2)}function Cqe(e,t,n){if(!hf(e.text))return lV(p.You_cannot_rename_a_module_via_a_global_import);const i=n.declarations&&on(n.declarations,Ja);if(!i)return;const s=gi(e.text,"/index")||gi(e.text,"/index.js")?void 0:rf(Pd(i.fileName),"/index"),o=s===void 0?i.fileName:s,l=s===void 0?"module":"directory",f=e.text.lastIndexOf("/")+1,_=nf(e.getStart(t)+1+f,e.text.length-f);return{canRename:!0,fileToRename:o,kind:l,displayName:o,fullDisplayName:o,kindModifiers:"",triggerSpan:_}}function fie(e,t,n,i,s,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:wqe(s,o)}}function lV(e){return{canRename:!1,localizedErrorMessage:Vo(e)}}function wqe(e,t){let n=e.getStart(t),i=e.getWidth(t);return Wc(e)&&(n+=1,i-=2),nf(n,i)}function Wxe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return Mj(e);default:return!1}}var Eqe=or({"src/services/rename.ts"(){"use strict";Ri()}}),uV={};Dl(uV,{getRenameInfo:()=>xqe,nodeIsEligibleForRename:()=>Wxe});var Aqe=or({"src/services/_namespaces/ts.Rename.ts"(){"use strict";Eqe()}});function Dqe(e,t,n,i,s){const o=e.getTypeChecker(),l=zj(t,n);if(!l)return;const f=!!i&&i.kind==="characterTyped";if(f&&(W7(t,n,l)||o2(t,n)))return;const _=!!i&&i.kind==="invoked",h=qqe(l,n,t,o,_);if(!h)return;s.throwIfCancellationRequested();const m=Nqe(h,o,t,l,f);return s.throwIfCancellationRequested(),m?o.runWithCancellationToken(s,y=>m.kind===0?Yxe(m.candidates,m.resolvedSignature,h,t,y):Hqe(m.symbol,h,t,y)):Ip(t)?Pqe(h,e,s):void 0}function Nqe({invocation:e,argumentCount:t},n,i,s,o){switch(e.kind){case 0:{if(o&&!Iqe(s,e.node,i))return;const l=[],f=n.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:f}}case 1:{const{called:l}=e;if(o&&!qxe(s,i,Be(l)?l.parent:l))return;const f=tK(l,t,n);if(f.length!==0)return{kind:0,candidates:f,resolvedSignature:Fi(f)};const _=n.getSymbolAtLocation(l);return _&&{kind:1,symbol:_}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return D.assertNever(e)}}function Iqe(e,t,n){if(!ey(t))return!1;const i=t.getChildren(n);switch(e.kind){case 21:return Zn(i,e);case 28:{const s=Rj(e);return!!s&&Zn(i,s)}case 30:return qxe(e,n,t.expression);default:return!1}}function Pqe(e,t,n){if(e.invocation.kind===2)return;const i=Xxe(e.invocation),s=mi(i)?i.name.text:void 0,o=t.getTypeChecker();return s===void 0?void 0:bo(t.getSourceFiles(),l=>bo(l.getNamedDeclarations().get(s),f=>{const _=f.symbol&&o.getTypeOfSymbolAtLocation(f.symbol,f),h=_&&_.getCallSignatures();if(h&&h.length)return o.runWithCancellationToken(n,m=>Yxe(h,h[0],e,l,m,!0))}))}function qxe(e,t,n){const i=e.getFullStart();let s=e.parent;for(;s;){const o=j_(i,t,s,!0);if(o)return wm(n,o);s=s.parent}return D.fail("Could not find preceding token")}function Oqe(e,t,n){const i=Hxe(e,t,n);return!i||i.isTypeParameterList||i.invocation.kind!==0?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function $xe(e,t,n){const i=Mqe(e,n);if(!i)return;const{list:s,argumentIndex:o}=i,l=Jqe(s,W7(n,t,e));o!==0&&D.assertLessThan(o,l);const f=Vqe(s,n);return{list:s,argumentIndex:o,argumentCount:l,argumentsSpan:f}}function Mqe(e,t){if(e.kind===30||e.kind===21)return{list:$qe(e.parent,e,t),argumentIndex:0};{const n=Rj(e);return n&&{list:n,argumentIndex:zqe(n,e)}}}function Hxe(e,t,n){const{parent:i}=e;if(ey(i)){const s=i,o=$xe(e,t,n);if(!o)return;const{list:l,argumentIndex:f,argumentCount:_,argumentsSpan:h}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===l.pos,invocation:{kind:0,node:s},argumentsSpan:h,argumentIndex:f,argumentCount:_}}else{if(CS(e)&&T7(i))return NP(e,t,n)?die(i,0,n):void 0;if(kk(e)&&i.parent.kind===214){const s=i,o=s.parent;D.assert(s.kind===227);const l=NP(e,t,n)?0:1;return die(o,l,n)}else if(J9(i)&&T7(i.parent.parent)){const s=i,o=i.parent.parent;if(AG(e)&&!NP(e,t,n))return;const l=s.parent.templateSpans.indexOf(s),f=Uqe(l,e,t,n);return die(o,f,n)}else if($p(i)){const s=i.attributes.pos,o=tc(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:nf(s,o-s),argumentIndex:0,argumentCount:1}}else{const s=rK(e,n);if(s){const{called:o,nTypeArguments:l}=s,f={kind:1,called:o},_=L_(o.getStart(n),e.end);return{isTypeParameterList:!0,invocation:f,argumentsSpan:_,argumentIndex:l,argumentCount:l+1}}return}}}function Lqe(e,t,n,i){return Fqe(e,t,n,i)||Hxe(e,t,n)}function Gxe(e){return Un(e.parent)?Gxe(e.parent):e}function pie(e){return Un(e.left)?pie(e.left)+1:2}function Fqe(e,t,n,i){const s=Rqe(e);if(s===void 0)return;const o=Bqe(s,n,t,i);if(o===void 0)return;const{contextualType:l,argumentIndex:f,argumentCount:_,argumentsSpan:h}=o,m=l.getNonNullableType(),y=m.symbol;if(y===void 0)return;const T=io(m.getCallSignatures());return T===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:T,node:e,symbol:jqe(y)},argumentsSpan:h,argumentIndex:f,argumentCount:_}}function Rqe(e){switch(e.kind){case 21:case 28:return e;default:return Sn(e.parent,t=>Cs(t)?!0:Cc(t)||Bg(t)||PS(t)?!1:"quit")}}function Bqe(e,t,n,i){const{parent:s}=e;switch(s.kind){case 216:case 173:case 217:case 218:const o=$xe(e,n,t);if(!o)return;const{argumentIndex:l,argumentCount:f,argumentsSpan:_}=o,h=g_(s)?i.getContextualTypeForObjectLiteralElement(s):i.getContextualType(s);return h&&{contextualType:h,argumentIndex:l,argumentCount:f,argumentsSpan:_};case 225:{const m=Gxe(s),y=i.getContextualType(m),T=e.kind===21?0:pie(s)-1,k=pie(m);return y&&{contextualType:y,argumentIndex:T,argumentCount:k,argumentsSpan:Zp(s)}}default:return}}function jqe(e){return e.name==="__type"&&bo(e.declarations,t=>{var n;return uy(t)?(n=di(t.parent,rh))==null?void 0:n.symbol:void 0})||e}function zqe(e,t){let n=0;for(const i of e.getChildren()){if(i===t)break;i.kind!==28&&n++}return n}function Jqe(e,t){const n=e.getChildren();let i=ef(n,s=>s.kind!==28);return!t&&n.length>0&&fi(n).kind===28&&i++,i}function Uqe(e,t,n,i){return D.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),ple(t)?NP(t,n,i)?0:e+2:e+1}function die(e,t,n){const i=CS(e.template)?1:e.template.templateSpans.length+1;return t!==0&&D.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Wqe(e,n),argumentIndex:t,argumentCount:i}}function Vqe(e,t){const n=e.getFullStart(),i=tc(t.text,e.getEnd(),!1);return nf(n,i-n)}function Wqe(e,t){const n=e.template,i=n.getStart();let s=n.getEnd();return n.kind===227&&fi(n.templateSpans).literal.getFullWidth()===0&&(s=tc(t.text,s,!1)),nf(i,s-i)}function qqe(e,t,n,i,s){for(let o=e;!Ja(o)&&(s||!oo(o));o=o.parent){D.assert(wm(o.parent,o),"Not a subspan",()=>`Child: ${D.formatSyntaxKind(o.kind)}, parent: ${D.formatSyntaxKind(o.parent.kind)}`);const l=Lqe(o,t,n,i);if(l)return l}}function $qe(e,t,n){const i=e.getChildren(n),s=i.indexOf(t);return D.assert(s>=0&&i.length>s+1),i[s+1]}function Xxe(e){return e.kind===0?iF(e.node):e.called}function Zxe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function Yxe(e,t,{isTypeParameterList:n,argumentCount:i,argumentsSpan:s,invocation:o,argumentIndex:l},f,_,h){var m;const y=Zxe(o),T=o.kind===2?o.symbol:_.getSymbolAtLocation(Xxe(o))||h&&((m=t.declaration)==null?void 0:m.symbol),k=T?kE(_,T,h?f:void 0,void 0):tt,E=er(e,V=>Xqe(V,k,n,_,y,f));l!==0&&D.assertLessThan(l,i);let O=0,N=0;for(let V=0;V1)){let z=0;for(const ce of re){if(ce.isVariadic||ce.parameters.length>=i){O=N+z;break}z++}}N+=re.length}D.assert(O!==-1);const B={items:jf(E,Jc),applicableSpan:s,selectedItemIndex:O,argumentIndex:l,argumentCount:i},U=B.items[O];if(U.isVariadic){const V=zi(U.parameters,re=>!!re.isRest);-1Qxe(y,n,i,s,l)),_=e.getDocumentationComment(n),h=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,fp(30)],suffixDisplayParts:[fp(32)],separatorDisplayParts:mie,parameters:f,documentation:_,tags:h}}function Xqe(e,t,n,i,s,o){const l=(n?Yqe:Qqe)(e,i,s,o);return er(l,({isVariadic:f,parameters:_,prefix:h,suffix:m})=>{const y=[...t,...h],T=[...m,...Zqe(e,s,i)],k=e.getDocumentationComment(i),E=e.getJsDocTags();return{isVariadic:f,prefixDisplayParts:y,suffixDisplayParts:T,separatorDisplayParts:mie,parameters:_,documentation:k,tags:E}})}function Zqe(e,t,n){return Eb(i=>{i.writePunctuation(":"),i.writeSpace(" ");const s=n.getTypePredicateOfSignature(e);s?n.writeTypePredicate(s,t,void 0,i):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,i)})}function Yqe(e,t,n,i){const s=(e.target||e).typeParameters,o=O3(),l=(s||tt).map(_=>Qxe(_,t,n,i,o)),f=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,rA)]:[];return t.getExpandedParameters(e).map(_=>{const h=M.createNodeArray([...f,...er(_,y=>t.symbolToParameterDeclaration(y,n,rA))]),m=Eb(y=>{o.writeList(2576,h,i,y)});return{isVariadic:!1,parameters:l,prefix:[fp(30)],suffix:[fp(32),...m]}})}function Qqe(e,t,n,i){const s=O3(),o=Eb(_=>{if(e.typeParameters&&e.typeParameters.length){const h=M.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,n,rA)));s.writeList(53776,h,i,_)}}),l=t.getExpandedParameters(e),f=t.hasEffectiveRestParameter(e)?l.length===1?_=>!0:_=>{var h;return!!(_.length&&((h=di(_[_.length-1],ih))==null?void 0:h.links.checkFlags)&32768)}:_=>!1;return l.map(_=>({isVariadic:f(_),parameters:_.map(h=>Kqe(h,t,n,i,s)),prefix:[...o,fp(21)],suffix:[fp(22)]}))}function Kqe(e,t,n,i,s){const o=Eb(_=>{const h=t.symbolToParameterDeclaration(e,n,rA);s.writeNode(4,h,i,_)}),l=t.isOptionalParameter(e.valueDeclaration),f=ih(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:l,isRest:f}}function Qxe(e,t,n,i,s){const o=Eb(l=>{const f=t.typeParameterToDeclaration(e,n,rA);s.writeNode(4,f,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var rA,mie,e$e=or({"src/services/signatureHelp.ts"(){"use strict";Ri(),rA=70246400,mie=[fp(28),pu()]}}),FO={};Dl(FO,{getArgumentInfoForCompletions:()=>Oqe,getSignatureHelpItems:()=>Dqe});var t$e=or({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";e$e()}});function r$e(e,t){var n,i;let s={textSpan:L_(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const _=i$e(o);if(!_.length)break;for(let h=0;h<_.length;h++){const m=_[h-1],y=_[h],T=_[h+1];if(s7(y,t,!0)>e)break e;const k=de(S4(t.text,y.end));if(k&&k.kind===2&&f(k.pos,k.end),n$e(t,e,y)){if($q(y)&&Jl(o)&&!F0(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),oo(y)||J9(y)||kk(y)||AG(y)||m&&kk(m)||of(y)&&S_(o)||Fk(y)&&of(o)||Fa(y)&&Fk(o)&&_.length===1||E7(y)||J4(y)||Mk(y)){o=y;break}if(J9(o)&&T&&CL(T)){const B=y.getFullStart()-2,U=T.getStart()+1;l(B,U)}const E=Fk(y)&&a$e(m)&&s$e(T)&&!F0(m.getStart(),T.getStart(),t);let O=E?m.getEnd():y.getStart();const N=E?T.getStart():o$e(t,y);if(vm(y)&&((n=y.jsDoc)!=null&&n.length)&&l(Fi(y.jsDoc).getStart(),N),Fk(y)){const B=y.getChildren()[0];B&&vm(B)&&((i=B.jsDoc)!=null&&i.length)&&B.getStart()!==y.pos&&(O=Math.min(O,Fi(B.jsDoc).getStart()))}l(O,N),(sc(y)||M5(y))&&l(O+1,N-1),o=y;break}if(h===_.length-1)break e}}return s;function l(_,h){if(_!==h){const m=L_(_,h);(!s||!nC(m,s.textSpan)&&Wce(m,e))&&(s=fa({textSpan:m},s&&{parent:s}))}}function f(_,h){l(_,h);let m=_;for(;t.text.charCodeAt(m)===47;)m++;l(m,h)}}function n$e(e,t,n){return D.assert(n.pos<=t),tf===e.readonlyToken||f.kind===148||f===e.questionToken||f.kind===58),l=nA(o,({kind:f})=>f===23||f===167||f===24);return[n,iA(_V(l,({kind:f})=>f===59)),s]}if(Vm(e)){const n=nA(e.getChildren(),l=>l===e.name||Zn(e.modifiers,l)),i=((t=n[0])==null?void 0:t.kind)===326?n[0]:void 0,s=i?n.slice(1):n,o=_V(s,({kind:l})=>l===59);return i?[i,iA(o)]:o}if(Cs(e)){const n=nA(e.getChildren(),s=>s===e.dotDotDotToken||s===e.name),i=nA(n,s=>s===n[0]||s===e.questionToken);return _V(i,({kind:s})=>s===64)}return Cc(e)?_V(e.getChildren(),({kind:n})=>n===64):e.getChildren()}function nA(e,t){const n=[];let i;for(const s of e)t(s)?(i=i||[],i.push(s)):(i&&(n.push(iA(i)),i=void 0),n.push(s));return i&&n.push(iA(i)),n}function _V(e,t,n=!0){if(e.length<2)return e;const i=zi(e,t);if(i===-1)return e;const s=e.slice(0,i),o=e[i],l=fi(e),f=n&&l.kind===27,_=e.slice(i+1,f?e.length-1:void 0),h=Ma([s.length?iA(s):void 0,o,_.length?iA(_):void 0]);return f?h.concat(l):h}function iA(e){return D.assertGreaterThanOrEqual(e.length,1),ph(vh.createSyntaxList(e),e[0].pos,fi(e).end)}function a$e(e){const t=e&&e.kind;return t===19||t===23||t===21||t===285}function s$e(e){const t=e&&e.kind;return t===20||t===24||t===22||t===286}function o$e(e,t){switch(t.kind){case 347:case 344:case 354:case 352:case 349:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Kxe,c$e=or({"src/services/smartSelection.ts"(){"use strict";Ri(),Kxe=Mf(Tf,Hf)}}),gie={};Dl(gie,{getSmartSelectionRange:()=>r$e});var l$e=or({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";c$e()}});function e7e(e,t,n){const i=t7e(e,t,n);if(i!=="")return i;const s=l9(t);return s&32?wu(t,230)?"local class":"class":s&384?"enum":s&524288?"type":s&64?"interface":s&262144?"type parameter":s&8?"enum member":s&2097152?"alias":s&1536?"module":i}function t7e(e,t,n){const i=e.getRootSymbols(t);if(i.length===1&&Fi(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(n.kind===110&&ht(n)||pS(n))return"parameter";const s=l9(t);if(s&3)return yK(t)?"parameter":t.valueDeclaration&&qy(t.valueDeclaration)?"const":Vt(t.declarations,Uw)?"let":i7e(t)?"local var":"var";if(s&16)return i7e(t)?"local function":"function";if(s&32768)return"getter";if(s&65536)return"setter";if(s&8192)return"method";if(s&16384)return"constructor";if(s&131072)return"index";if(s&4){if(s&33554432&&t.links.checkFlags&6){const o=Vt(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return o||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function r7e(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,i=Nr(n)&&pz(t)&&bt(n,o=>!pz(o))?8192:0,s=bE(t,i);if(s)return s.split(",")}return[]}function u$e(e,t){if(!t)return"";const n=new Set(r7e(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&Vt(r7e(i),s=>{n.add(s)})}return t.flags&16777216&&n.add("optional"),n.size>0?zt(n.values()).join(","):""}function n7e(e,t,n,i,s,o=J7(s),l){var f;const _=[];let h=[],m=[];const y=l9(t);let T=o&1?t7e(e,t,s):"",k=!1;const E=s.kind===110&&sF(s)||pS(s);let O,N,B,U=!1;if(s.kind===110&&!E)return{displayParts:[tm(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(T!==""||y&32||y&2097152){if(T==="getter"||T==="setter"){const me=on(t.declarations,ve=>ve.name===s);if(me)switch(me.kind){case 176:T="getter";break;case 177:T="setter";break;case 171:T="accessor";break;default:D.assertNever(me)}else T="property"}let ee;if(O=E?e.getTypeAtLocation(s):e.getTypeOfSymbolAtLocation(t,s),s.parent&&s.parent.kind===210){const me=s.parent.name;(me===s||me&&me.getFullWidth()===0)&&(s=s.parent)}let te;if(ey(s)?te=s:(zQ(s)||gE(s)||s.parent&&($p(s.parent)||T7(s.parent))&&Qs(t.valueDeclaration))&&(te=s.parent),te){ee=e.getResolvedSignature(te);const me=te.kind===213||go(te)&&te.expression.kind===108,ve=me?O.getConstructSignatures():O.getCallSignatures();if(ee&&!Zn(ve,ee.target)&&!Zn(ve,ee)&&(ee=ve.length?ve[0]:void 0),ee){switch(me&&y&32?(T="constructor",le(O.symbol,T)):y&2097152?(T="alias",ae(T),_.push(pu()),me&&(ee.flags&4&&(_.push(tm(128)),_.push(pu())),_.push(tm(105)),_.push(pu())),R(t)):le(t,T),T){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":_.push(fp(59)),_.push(pu()),!(Mi(O)&16)&&O.symbol&&(Et(_,kE(e,O.symbol,i,void 0,5)),_.push(iC())),me&&(ee.flags&4&&(_.push(tm(128)),_.push(pu())),_.push(tm(105)),_.push(pu())),ye(ee,ve,262144);break;default:ye(ee,ve)}k=!0,U=ve.length>1}}else if(HQ(s)&&!(y&98304)||s.kind===137&&s.parent.kind===175){const me=s.parent;if(t.declarations&&on(t.declarations,we=>we===(s.kind===137?me.parent:me))){const we=me.kind===175?O.getNonNullableType().getConstructSignatures():O.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(me)?ee=we[0]:ee=e.getSignatureFromDeclaration(me),me.kind===175?(T="constructor",le(O.symbol,T)):le(me.kind===178&&!(O.symbol.flags&2048||O.symbol.flags&4096)?O.symbol:t,T),ee&&ye(ee,we),k=!0,U=we.length>1}}}if(y&32&&!k&&!E&&(z(),wu(t,230)?ae("local class"):_.push(tm(86)),_.push(pu()),R(t),$(t,n)),y&64&&o&2&&(re(),_.push(tm(120)),_.push(pu()),R(t),$(t,n)),y&524288&&o&2&&(re(),_.push(tm(156)),_.push(pu()),R(t),$(t,n),_.push(pu()),_.push(SE(64)),_.push(pu()),Et(_,BP(e,s.parent&&Vy(s.parent)?e.getTypeAtLocation(s.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),y&384&&(re(),bt(t.declarations,ee=>j4(ee)&&n3(ee))&&(_.push(tm(87)),_.push(pu())),_.push(tm(94)),_.push(pu()),R(t)),y&1536&&!E){re();const ee=wu(t,266),te=ee&&ee.name&&ee.name.kind===80;_.push(tm(te?145:144)),_.push(pu()),R(t)}if(y&262144&&o&2)if(re(),_.push(fp(21)),_.push($m("type parameter")),_.push(fp(22)),_.push(pu()),R(t),t.parent)ce(),R(t.parent,i),$(t.parent,i);else{const ee=wu(t,167);if(ee===void 0)return D.fail();const te=ee.parent;if(te)if(Qs(te)){ce();const me=e.getSignatureFromDeclaration(te);te.kind===179?(_.push(tm(105)),_.push(pu())):te.kind!==178&&te.name&&R(te.symbol),Et(_,xK(e,me,n,32))}else zg(te)&&(ce(),_.push(tm(156)),_.push(pu()),R(te.symbol),$(te.symbol,n))}if(y&8){T="enum member",le(t,"enum member");const ee=(f=t.declarations)==null?void 0:f[0];if((ee==null?void 0:ee.kind)===305){const te=e.getConstantValue(ee);te!==void 0&&(_.push(pu()),_.push(SE(64)),_.push(pu()),_.push(Fd(Zle(te),typeof te=="number"?7:8)))}}if(t.flags&2097152){if(re(),!k||h.length===0&&m.length===0){const ee=e.getAliasedSymbol(t);if(ee!==t&&ee.declarations&&ee.declarations.length>0){const te=ee.declarations[0],me=Es(te);if(me&&!k){const ve=WL(te)&&Pi(te,2),we=t.name!=="default"&&!ve,K=n7e(e,ee,bn(te),te,me,o,we?t:ee);_.push(...K.displayParts),_.push(iC()),N=K.documentation,B=K.tags}else N=ee.getContextualDocumentationComment(te,e),B=ee.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 269:_.push(tm(95)),_.push(pu()),_.push(tm(145));break;case 276:_.push(tm(95)),_.push(pu()),_.push(tm(t.declarations[0].isExportEquals?64:90));break;case 280:_.push(tm(95));break;default:_.push(tm(102))}_.push(pu()),R(t),Vt(t.declarations,ee=>{if(ee.kind===270){const te=ee;if(A4(te))_.push(pu()),_.push(SE(64)),_.push(pu()),_.push(tm(149)),_.push(fp(21)),_.push(Fd(F_(qw(te)),8)),_.push(fp(22));else{const me=e.getSymbolAtLocation(te.moduleReference);me&&(_.push(pu()),_.push(SE(64)),_.push(pu()),R(me,i))}return!0}})}if(!k)if(T!==""){if(O){if(E?(re(),_.push(tm(110))):le(t,T),T==="property"||T==="accessor"||T==="getter"||T==="setter"||T==="JSX attribute"||y&3||T==="local var"||T==="index"||E){if(_.push(fp(59)),_.push(pu()),O.symbol&&O.symbol.flags&262144&&T!=="index"){const ee=Eb(te=>{const me=e.typeParameterToDeclaration(O,i,hie);V().writeNode(4,me,bn(gs(i)),te)});Et(_,ee)}else Et(_,BP(e,O,i));if(ih(t)&&t.links.target&&ih(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const ee=t.links.target.links.tupleLabelDeclaration;D.assertNode(ee.name,Be),_.push(pu()),_.push(fp(21)),_.push($m(ri(ee.name))),_.push(fp(22))}}else if(y&16||y&8192||y&16384||y&131072||y&98304||T==="method"){const ee=O.getNonNullableType().getCallSignatures();ee.length&&(ye(ee[0],ee),U=ee.length>1)}}}else T=e7e(e,t,s);if(h.length===0&&!U&&(h=t.getContextualDocumentationComment(i,e)),h.length===0&&y&4&&t.parent&&t.declarations&&Vt(t.parent.declarations,ee=>ee.kind===311))for(const ee of t.declarations){if(!ee.parent||ee.parent.kind!==225)continue;const te=e.getSymbolAtLocation(ee.parent.right);if(te&&(h=te.getDocumentationComment(e),m=te.getJsDocTags(e),h.length>0))break}if(h.length===0&&Be(s)&&t.valueDeclaration&&Cc(t.valueDeclaration)){const ee=t.valueDeclaration,te=ee.parent;if(Be(ee.name)&&Bg(te)){const me=ng(ee.name),ve=e.getTypeAtLocation(te);h=bo(ve.isUnion()?ve.types:[ve],we=>{const K=we.getProperty(me);return K?K.getDocumentationComment(e):void 0})||tt}}return m.length===0&&!U&&(m=t.getContextualJsDocTags(i,e)),h.length===0&&N&&(h=N),m.length===0&&B&&(m=B),{displayParts:_,documentation:h,symbolKind:T,tags:m.length===0?void 0:m};function V(){return O3()}function re(){_.length&&_.push(iC()),z()}function z(){l&&(ae("alias"),_.push(pu()))}function ce(){_.push(pu()),_.push(tm(103)),_.push(pu())}function R(ee,te){let me;l&&ee===t&&(ee=l),T==="index"&&(me=e.getIndexInfosOfIndexSymbol(ee));let ve=[];ee.flags&131072&&me?(ee.parent&&(ve=kE(e,ee.parent)),ve.push(fp(23)),me.forEach((we,K)=>{ve.push(...BP(e,we.keyType)),K!==me.length-1&&(ve.push(pu()),ve.push(fp(52)),ve.push(pu()))}),ve.push(fp(24))):ve=kE(e,ee,te||n,void 0,7),Et(_,ve),t.flags&16777216&&_.push(fp(58))}function le(ee,te){re(),te&&(ae(te),ee&&!bt(ee.declarations,me=>Fl(me)||(_l(me)||Mp(me))&&!me.name)&&(_.push(pu()),R(ee)))}function ae(ee){switch(ee){case"var":case"function":case"let":case"const":case"constructor":_.push(vK(ee));return;default:_.push(fp(21)),_.push(vK(ee)),_.push(fp(22));return}}function ye(ee,te,me=0){Et(_,xK(e,ee,i,me|32)),te.length>1&&(_.push(pu()),_.push(fp(21)),_.push(SE(40)),_.push(Fd((te.length-1).toString(),7)),_.push(pu()),_.push($m(te.length===2?"overload":"overloads")),_.push(fp(22))),h=ee.getDocumentationComment(e),m=ee.getJsDocTags(),te.length>1&&h.length===0&&m.length===0&&(h=te[0].getDocumentationComment(e),m=te[0].getJsDocTags().filter(ve=>ve.name!=="deprecated"))}function $(ee,te){const me=Eb(ve=>{const we=e.symbolToTypeParameterDeclarations(ee,te,hie);V().writeList(53776,we,bn(gs(te)),ve)});Et(_,me)}}function i7e(e){return e.parent?!1:Vt(e.declarations,t=>{if(t.kind===217)return!0;if(t.kind!==259&&t.kind!==261)return!1;for(let n=t.parent;!a3(n);n=n.parent)if(n.kind===311||n.kind===267)return!1;return!0})}var hie,_$e=or({"src/services/symbolDisplay.ts"(){"use strict";Ri(),hie=70246400}}),_2={};Dl(_2,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>n7e,getSymbolKind:()=>e7e,getSymbolModifiers:()=>u$e});var f$e=or({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";_$e()}});function a7e(e){const t=e.__pos;return D.assert(typeof t=="number"),t}function yie(e,t){D.assert(typeof t=="number"),e.__pos=t}function s7e(e){const t=e.__end;return D.assert(typeof t=="number"),t}function vie(e,t){D.assert(typeof t=="number"),e.__end=t}function o7e(e,t){return tc(e,t,!1,!0)}function p$e(e,t){let n=t;for(;n0?1:0;let T=_b(e9(e,h)+y,e);return T=o7e(e.text,T),_b(e9(e,T),e)}function bie(e,t,n){const{end:i}=t,{trailingTriviaOption:s}=n;if(s===2){const o=S4(e.text,i);if(o){const l=e9(e,t.end);for(const f of o){if(f.kind===2||e9(e,f.pos)>l)break;if(e9(e,f.end)>l)return tc(e.text,f.end,!0,!0)}}}}function p8(e,t,n){var i;const{end:s}=t,{trailingTriviaOption:o}=n;if(o===0)return s;if(o===1){const _=Nn(S4(e.text,s),Yh(e.text,s)),h=(i=_==null?void 0:_[_.length-1])==null?void 0:i.end;return h||s}const l=bie(e,t,n);if(l)return l;const f=tc(e.text,s,!0);return f!==s&&(o===2||Wf(e.text.charCodeAt(f-1)))?f:s}function fV(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===209)}function d$e(e){return _l(e)||B_(e)}function m$e(e){if(e.kind!==218)return e;const t=e.parent.kind===171?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function g$e(e,t){if(e.kind===t.kind)switch(e.kind){case 347:{const n=e,i=t;return Be(n.name)&&Be(i.name)&&n.name.escapedText===i.name.escapedText?M.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0}case 348:return M.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 350:return M.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function xie(e,t){return tc(e.text,tT(e,t,{leadingTriviaOption:1}),!1,!0)}function h$e(e,t,n,i){const s=xie(e,i);if(n===void 0||F0(p8(e,t,{}),s,e))return s;const o=j_(i.getStart(e),e);if(fV(t,o)){const l=j_(t.getStart(e),e);if(fV(n,l)){const f=tc(e.text,o.getEnd(),!0,!0);if(F0(l.getStart(e),o.getStart(e),e))return Wf(e.text.charCodeAt(f-1))?f-1:f;if(Wf(e.text.charCodeAt(f)))return f}}return s}function y$e(e,t){const n=zc(e,19,t),i=zc(e,20,t);return[n==null?void 0:n.end,i==null?void 0:i.end]}function pV(e){return Dc(e)?e.properties:e.members}function Tie(e,t){for(let n=t.length-1;n>=0;n--){const{span:i,newText:s}=t[n];e=`${e.substring(0,i.start)}${s}${e.substring(qf(i))}`}return e}function v$e(e){return tc(e,0)===e.length}function dV(e){const t=nn(e,dV,u7e,b$e,dV),n=Ol(t)?t:Object.create(t);return ph(n,a7e(e),s7e(e)),n}function b$e(e,t,n,i,s){const o=dn(e,t,n,i,s);if(!o)return o;D.assert(e);const l=o===e?M.createNodeArray(o.slice(0)):o;return ph(l,a7e(e),s7e(e)),l}function c7e(e){let t=0;const n=yN(e),i=K=>{K&&yie(K,t)},s=K=>{K&&vie(K,t)},o=K=>{K&&yie(K,t)},l=K=>{K&&vie(K,t)},f=K=>{K&&yie(K,t)},_=K=>{K&&vie(K,t)};function h(K,Ze){if(Ze||!v$e(K)){t=n.getTextPos();let Re=0;for(;Zh(K.charCodeAt(K.length-Re-1));)Re++;t-=Re}}function m(K){n.write(K),h(K,!1)}function y(K){n.writeComment(K)}function T(K){n.writeKeyword(K),h(K,!1)}function k(K){n.writeOperator(K),h(K,!1)}function E(K){n.writePunctuation(K),h(K,!1)}function O(K){n.writeTrailingSemicolon(K),h(K,!1)}function N(K){n.writeParameter(K),h(K,!1)}function B(K){n.writeProperty(K),h(K,!1)}function U(K){n.writeSpace(K),h(K,!1)}function V(K){n.writeStringLiteral(K),h(K,!1)}function re(K,Ze){n.writeSymbol(K,Ze),h(K,!1)}function z(K){n.writeLine(K)}function ce(){n.increaseIndent()}function R(){n.decreaseIndent()}function le(){return n.getText()}function ae(K){n.rawWrite(K),h(K,!1)}function ye(K){n.writeLiteral(K),h(K,!0)}function $(){return n.getTextPos()}function ee(){return n.getLine()}function te(){return n.getColumn()}function me(){return n.getIndent()}function ve(){return n.isAtStartOfLine()}function we(){n.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:s,onBeforeEmitNodeArray:o,onAfterEmitNodeArray:l,onBeforeEmitToken:f,onAfterEmitToken:_,write:m,writeComment:y,writeKeyword:T,writeOperator:k,writePunctuation:E,writeTrailingSemicolon:O,writeParameter:N,writeProperty:B,writeSpace:U,writeStringLiteral:V,writeSymbol:re,writeLine:z,increaseIndent:ce,decreaseIndent:R,getText:le,rawWrite:ae,writeLiteral:ye,getTextPos:$,getLine:ee,getColumn:te,getIndent:me,isAtStartOfLine:ve,hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:we}}function x$e(e){let t;for(const h of e.statements)if(eg(h))t=h;else break;let n=0;const i=e.text;if(t)return n=t.end,_(),n;const s=_L(i);s!==void 0&&(n=s.length,_());const o=Yh(i,n);if(!o)return n;let l,f;for(const h of o){if(h.kind===3){if(UL(i,h.pos)){l={range:h,pinnedOrTripleSlash:!0};continue}}else if(s$(i,h.pos,h.end)){l={range:h,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const m=e.getLineAndCharacterOfPosition(h.pos).line,y=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=y+2)break}if(e.statements.length){f===void 0&&(f=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const m=e.getLineAndCharacterOfPosition(h.end).line;if(f(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Sie||{}),kie=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(kie||{}),mC={leadingTriviaOption:0,trailingTriviaOption:0},mV=class{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(e){return new mV(wb(e.host,e.formatContext.options),e.formatContext)}static with(e,t){const n=mV.fromContext(e);return t(n),n.getChanges()}pushRaw(e,t){D.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:Wj(n.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,n={leadingTriviaOption:1}){this.deleteRange(e,aA(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},i){for(const s of t){const o=tT(e,s,n,i),l=p8(e,s,n);this.deleteRange(e,{pos:o,end:l}),i=!!bie(e,s,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:tc(e.text,t.end,!0)})}deleteNodeRange(e,t,n,i={leadingTriviaOption:1}){const s=tT(e,t,i),o=p8(e,n,i);this.deleteRange(e,{pos:s,end:o})}deleteNodeRangeExcludingEnd(e,t,n,i={leadingTriviaOption:1}){const s=tT(e,t,i),o=n===void 0?e.text.length:tT(e,n,i);this.deleteRange(e,{pos:s,end:o})}replaceRange(e,t,n,i={}){this.changes.push({kind:1,sourceFile:e,range:t,options:i,node:n})}replaceNode(e,t,n,i=mC){this.replaceRange(e,aA(e,t,t,i),n,i)}replaceNodeRange(e,t,n,i,s=mC){this.replaceRange(e,aA(e,t,n,s),i,s)}replaceRangeWithNodes(e,t,n,i={}){this.changes.push({kind:2,sourceFile:e,range:t,options:i,nodes:n})}replaceNodeWithNodes(e,t,n,i=mC){this.replaceRangeWithNodes(e,aA(e,t,t,i),n,i)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,aA(e,t,t,mC),n)}replaceNodeRangeWithNodes(e,t,n,i,s=mC){this.replaceRangeWithNodes(e,aA(e,t,n,s),i,s)}nodeHasTrailingComment(e,t,n=mC){return!!bie(e,t,n)}nextCommaToken(e,t){const n=V7(t,t.parent,e);return n&&n.kind===28?n:void 0}replacePropertyAssignment(e,t,n){const i=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:i})}insertNodeAt(e,t,n,i={}){this.replaceRange(e,L0(t),n,i)}insertNodesAt(e,t,n,i={}){this.replaceRangeWithNodes(e,L0(t),n,i)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){const i=x$e(e),s={prefix:i===0?void 0:this.newLineCharacter,suffix:(Wf(e.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};ns(t)?this.insertNodesAt(e,i,t,s):this.insertNodeAt(e,i,t,s)}insertNodesAtEndOfFile(e,t,n){this.insertAtEndOfFile(e,t,n)}insertAtEndOfFile(e,t,n){const i=e.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(n?this.newLineCharacter:"")};this.insertNodesAt(e,i,t,s)}insertStatementsInNewFile(e,t,n){this.newFileChanges||(this.newFileChanges=Pf()),this.newFileChanges.add(e,{oldFile:n,statements:t})}insertFirstParameter(e,t,n){const i=Ji(t);i?this.insertNodeBefore(e,i,n):this.insertNodeAt(e,t.pos,n)}insertNodeBefore(e,t,n,i=!1,s={}){this.insertNodeAt(e,tT(e,t,s),n,this.getOptionsForInsertNodeBefore(t,n,i))}insertModifierAt(e,t,n,i={}){this.insertNodeAt(e,t,M.createToken(n),i)}insertModifierBefore(e,t,n){return this.insertModifierAt(e,n.getStart(e),t,{suffix:" "})}insertCommentBeforeLine(e,t,n,i){const s=_b(t,e),o=Ohe(e.text,s),l=l7e(e,o),f=vE(e,l?o:n),_=e.text.slice(s,o),h=`${l?"":this.newLineCharacter}//${i}${this.newLineCharacter}${_}`;this.insertText(e,f.getStart(e),h)}insertJsdocCommentBefore(e,t,n){const i=t.getStart(e);if(t.jsDoc)for(const l of t.jsDoc)this.deleteRange(e,{pos:z0(l.getStart(e),e),end:p8(e,l,{})});const s=ez(e.text,i-1),o=e.text.slice(s,i);this.insertNodeAt(e,i,n,{suffix:this.newLineCharacter+o})}createJSDocText(e,t){const n=lo(t.jsDoc,s=>bs(s.comment)?M.createJSDocText(s.comment):s.comment),i=de(t.jsDoc);return i&&F0(i.pos,i.end,e)&&Nr(n)===0?void 0:M.createNodeArray(np(n,M.createJSDocText(` -`)))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,m$e(t),M.createJSDocComment(this.createJSDocText(e,t),M.createNodeArray(n)))}addJSDocTags(e,t,n){const i=jf(t.jsDoc,o=>o.tags),s=n.filter(o=>!i.some((l,f)=>{const _=g$e(l,o);return _&&(i[f]=_),!!_}));this.replaceJSDocComment(e,t,[...i,...s])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,Mn(jf(t.jsDoc,i=>i.tags),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,L0(t),n)}tryInsertTypeAnnotation(e,t,n){var s;let i;if(Qs(t)){if(i=zc(t,22,e),!i){if(!Fl(t))return!1;i=Fi(t.parameters)}}else i=(s=t.kind===259?t.exclamationToken:t.questionToken)!=null?s:t.name;return this.insertNodeAt(e,i.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const i=zc(t,21,e).getStart(e)+1,s=t.parameters.length?", ":"";this.insertNodeAt(e,i,n,{prefix:"this: ",suffix:s})}insertTypeParameters(e,t,n){const i=(zc(t,21,e)||Fi(t.parameters)).getStart(e);this.insertNodesAt(e,i,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return us(e)||yf(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Fa(e)?{suffix:", "}:Cs(e)?Cs(t)?{suffix:", "}:{}:sc(e)&&Tf(e.parent)||r2(e)?{suffix:", "}:Ld(e)?{suffix:","+(n?this.newLineCharacter:" ")}:D.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const i=Ji(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[n,...t.body.statements]):this.insertNodeBefore(e,i,n)}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const i=on(t.body.statements,s=>$f(s)&&W5(s.expression));!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,n]):this.insertNodeAfter(e,i,n)}insertNodeAtConstructorEnd(e,t,n){const i=io(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,n]):this.insertNodeAfter(e,i,n)}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,M.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const i=tT(e,t.getLastToken(),{});this.insertNodeAt(e,i,n,{prefix:Wf(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){var s;const i=(s=this.guessIndentationFromExistingMembers(e,t))!=null?s:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,pV(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,i))}guessIndentationFromExistingMembers(e,t){let n,i=t;for(const s of pV(t)){if(NF(i,s,e))return;const o=s.getStart(e),l=Q_.SmartIndenter.findFirstNonWhitespaceColumn(z0(o,e),o,e,this.formatContext.options);if(n===void 0)n=l;else if(l!==n)return;i=s}return n}computeIndentationForNewMember(e,t){var i;const n=t.getStart(e);return Q_.SmartIndenter.findFirstNonWhitespaceColumn(z0(n,e),n,e,this.formatContext.options)+((i=this.formatContext.options.indentSize)!=null?i:4)}getInsertNodeAtStartInsertOptions(e,t,n){const s=pV(t).length===0,o=Lg(this.classesWithNodesInsertedAtStart,Nc(t),{node:t,sourceFile:e}),l=Dc(t)&&(!O0(e)||!s),f=Dc(t)&&O0(e)&&s&&!o;return{indentation:n,prefix:(f?",":"")+this.newLineCharacter,suffix:l?",":Lp(t)&&s?";":""}}insertNodeAfterComma(e,t,n){const i=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,i,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const i=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,i,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})}insertNodesAfter(e,t,n){const i=this.insertNodeAfterWorker(e,t,Fi(n));this.insertNodesAt(e,i,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){return T$e(t,n)&&e.text.charCodeAt(t.end-1)!==59&&this.replaceRange(e,L0(t.end),M.createToken(27)),p8(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return Xs(fa({},n),{prefix:t.end===e.end&&us(t)?n.prefix?` -${n.prefix}`:` -`:n.prefix})}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 262:case 266:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 259:case 11:case 80:return{prefix:", "};case 302:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 168:return{};default:return D.assert(us(e)||EL(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(D.assert(!t.name),t.kind===218){const i=zc(t,39,e),s=zc(t,21,e);s?(this.insertNodesAt(e,s.getStart(e),[M.createToken(100),M.createIdentifier(n)],{joiner:" "}),my(this,e,i)):(this.insertText(e,Fi(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,i,M.createToken(22))),t.body.kind!==240&&(this.insertNodesAt(e,t.body.getStart(e),[M.createToken(19),M.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[M.createToken(27),M.createToken(20)],{joiner:" "}))}else{const i=zc(t,t.kind===217?100:86,e).end;this.insertNodeAt(e,i,M.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,i){const s=n.elements[i-1];s?this.insertNodeInListAfter(e,s,t):this.insertNodeBefore(e,n.elements[0],t,!F0(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,i=Q_.SmartIndenter.getContainingList(t,e)){if(!i){D.fail("node is not a list element");return}const s=J5(i,t);if(s<0)return;const o=t.getEnd();if(s!==i.length-1){const l=Za(e,t.end);if(l&&fV(t,l)){const f=i[s+1],_=o7e(e.text,f.getFullStart()),h=`${Uo(l.kind)}${e.text.substring(l.end,_)}`;this.insertNodesAt(e,_,[n],{suffix:h})}}else{const l=t.getStart(e),f=z0(l,e);let _,h=!1;if(i.length===1)_=28;else{const m=j_(t.pos,e);_=fV(t,m)?m.kind:28,h=z0(i[s-1].getStart(e),e)!==f}if(p$e(e.text,t.end)&&(h=!0),h){this.replaceRange(e,L0(o),M.createToken(_));const m=Q_.SmartIndenter.findFirstNonWhitespaceColumn(f,l,e,this.formatContext.options);let y=tc(e.text,o,!0,!1);for(;y!==o&&Wf(e.text.charCodeAt(y-1));)y--;this.replaceRange(e,L0(y),n,{indentation:m,prefix:this.newLineCharacter})}else this.replaceRange(e,L0(o),n,{prefix:`${Uo(_)} `})}}parenthesizeExpression(e,t){this.replaceRange(e,FH(t),M.createParenthesizedExpression(t))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:e,sourceFile:t})=>{const[n,i]=y$e(e,t);if(n!==void 0&&i!==void 0){const s=pV(e).length===0,o=F0(n,i,t);s&&o&&n!==i-1&&this.deleteRange(t,L0(n,i-1)),o&&this.insertText(t,i-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some(i=>i.sourceFile===t&&Q1e(i.node,n))||(ns(n)?this.deleteRange(t,RH(t,n)):Cie.deleteDeclaration(this,e,t,n));e.forEach(t=>{const n=t.getSourceFile(),i=Q_.SmartIndenter.getContainingList(t,n);if(t!==fi(i))return;const s=xo(i,o=>!e.has(o),i.length-2);s!==-1&&this.deleteRange(n,{pos:i[s].end,end:xie(n,i[s+1])})})}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=gV.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach((n,i)=>{t.push(gV.newFileChanges(i,n,this.newLineCharacter,this.formatContext))}),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}},(e=>{function t(f,_,h,m){return Mr(V1(f,y=>y.sourceFile.path),y=>{const T=y[0].sourceFile,k=mr(y,(O,N)=>O.range.pos-N.range.pos||O.range.end-N.range.end);for(let O=0;O`${JSON.stringify(k[O].range)} and ${JSON.stringify(k[O+1].range)}`);const E=Mr(k,O=>{var V,re;const N=Cb(O.range),B=O.kind===1?(V=bn(au(O.node)))!=null?V:O.sourceFile:O.kind===2&&(re=bn(au(O.nodes[0])))!=null?re:O.sourceFile,U=s(O,B,T,_,h,m);if(!(N.length===U.length&&Xhe(B.text,U,N.start)))return IP(N,U)});return E.length>0?{fileName:T.fileName,textChanges:E}:void 0})}e.getTextChangesFromChanges=t;function n(f,_,h,m){const y=i(PH(f),_,h,m);return{fileName:f,textChanges:[IP(nf(0,0),y)],isNewFile:!0}}e.newFileChanges=n;function i(f,_,h,m){const y=lo(_,E=>E.statements.map(O=>O===4?"":l(O,E.oldFile,h).text)).join(h),T=kI("any file name",y,99,!0,f),k=Q_.formatDocument(T,m);return Tie(y,k)+h}e.newFileChangesWorker=i;function s(f,_,h,m,y,T){var k;if(f.kind===0)return"";if(f.kind===3)return f.text;const{options:E={},range:{pos:O}}=f,N=V=>o(V,_,h,O,E,m,y,T),B=f.kind===2?f.nodes.map(V=>Uf(N(V),m)).join(((k=f.options)==null?void 0:k.joiner)||m):N(f.node),U=E.indentation!==void 0||z0(O,_)===O?B:B.replace(/^\s+/,"");return(E.prefix||"")+U+(!E.suffix||gi(U,E.suffix)?"":E.suffix)}function o(f,_,h,m,{indentation:y,prefix:T,delta:k},E,O,N){const{node:B,text:U}=l(f,_,E);N&&N(B,U);const V=mz(O,_),re=y!==void 0?y:Q_.SmartIndenter.getIndentation(m,h,V,T===E||z0(m,_)===m);k===void 0&&(k=Q_.SmartIndenter.shouldIndentChildNode(V,f)&&V.indentSize||0);const z={text:U,getLineAndCharacterOfPosition(R){return Ql(this,R)}},ce=Q_.formatNodeGivenIndentation(B,z,_.languageVariant,re,k,Xs(fa({},O),{options:V}));return Tie(U,ce)}function l(f,_,h){const m=c7e(h),y=VP(h);return V4({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,f,_,m),{text:m.getText(),node:dV(f)}}e.getNonformattedText=l})(gV||(gV={})),u7e=Xs(fa({},rv),{factory:WN(rv.factory.flags|1,rv.factory.baseFactory)}),(e=>{function t(o,l,f,_){switch(_.kind){case 168:{const k=_.parent;Fl(k)&&k.parameters.length===1&&!zc(k,21,f)?o.replaceNodeWithText(f,_,"()"):sA(o,l,f,_);break}case 271:case 270:const h=f.imports.length&&_===Fi(f.imports).parent||_===on(f.statements,o7);my(o,f,_,{leadingTriviaOption:h?0:vm(_)?2:3});break;case 207:const m=_.parent;m.kind===206&&_!==fi(m.elements)?my(o,f,_):sA(o,l,f,_);break;case 259:s(o,l,f,_);break;case 167:sA(o,l,f,_);break;case 275:const T=_.parent;T.elements.length===1?i(o,f,T):sA(o,l,f,_);break;case 273:i(o,f,_);break;case 27:my(o,f,_,{trailingTriviaOption:0});break;case 100:my(o,f,_,{leadingTriviaOption:0});break;case 262:case 261:my(o,f,_,{leadingTriviaOption:vm(_)?2:3});break;default:_.parent?hh(_.parent)&&_.parent.name===_?n(o,f,_.parent):go(_.parent)&&Zn(_.parent.arguments,_)?sA(o,l,f,_):my(o,f,_):my(o,f,_)}}e.deleteDeclaration=t;function n(o,l,f){if(!f.namedBindings)my(o,l,f.parent);else{const _=f.name.getStart(l),h=Za(l,f.name.end);if(h&&h.kind===28){const m=tc(l.text,h.end,!1,!0);o.deleteRange(l,{pos:_,end:m})}else my(o,l,f.name)}}function i(o,l,f){if(f.parent.name){const _=D.checkDefined(Za(l,f.pos-1));o.deleteRange(l,{pos:_.getStart(l),end:f.end})}else{const _=I4(f,271);my(o,l,_)}}function s(o,l,f,_){const{parent:h}=_;if(h.kind===298){o.deleteNodeRange(f,zc(h,21,f),zc(h,22,f));return}if(h.declarations.length!==1){sA(o,l,f,_);return}const m=h.parent;switch(m.kind){case 249:case 248:o.replaceNode(f,_,M.createObjectLiteralExpression());break;case 247:my(o,f,h);break;case 242:my(o,f,m,{leadingTriviaOption:vm(m)?2:3});break;default:D.assertNever(m)}}})(Cie||(Cie={}))}}),Vn={};Dl(Vn,{ChangeTracker:()=>mV,LeadingTriviaOption:()=>Sie,TrailingTriviaOption:()=>kie,applyChanges:()=>Tie,assignPositionsToNode:()=>dV,createWriter:()=>c7e,deleteNode:()=>my,isThisTypeAnnotatable:()=>d$e,isValidLocationToAddComment:()=>l7e});var k$e=or({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";S$e()}}),wie,Eie,C$e=or({"src/services/formatting/formattingContext.ts"(){"use strict";Ri(),wie=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(wie||{}),Eie=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,i,s){this.currentTokenSpan=D.checkDefined(e),this.currentTokenParent=D.checkDefined(t),this.nextTokenSpan=D.checkDefined(n),this.nextTokenParent=D.checkDefined(i),this.contextNode=D.checkDefined(s),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,n=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===n}BlockIsOnOneLine(e){const t=zc(e,19,this.sourceFile),n=zc(e,20,this.sourceFile);if(t&&n){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,s=this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line;return i===s}return!1}}}});function Aie(e,t,n,i,s){const o=t===1?f7e:_7e;o.setText(e),o.resetTokenState(n);let l=!0,f,_,h,m,y;const T=s({advance:k,readTokenInfo:z,readEOFTokenRange:R,isOnToken:le,isOnEOF:ae,getCurrentLeadingTrivia:()=>f,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:$,skipToStartOf:ee,getTokenFullStart:()=>{var te;return(te=y==null?void 0:y.token.pos)!=null?te:o.getTokenStart()},getStartPos:()=>{var te;return(te=y==null?void 0:y.token.pos)!=null?te:o.getTokenStart()}});return y=void 0,o.setText(void 0),T;function k(){y=void 0,o.getTokenFullStart()!==n?l=!!_&&fi(_).kind===4:o.scan(),f=void 0,_=void 0;let me=o.getTokenFullStart();for(;me(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(Die||{}),Nie=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Nie||{})}});function p7e(){const e=[];for(let ce=0;ce<=164;ce++)ce!==1&&e.push(ce);function t(...ce){return{tokens:e.filter(R=>!ce.some(le=>le===R)),isSpecific:!1}}const n={tokens:e,isSpecific:!1},i=gC([...e,3]),s=gC([...e,1]),o=m7e(83,164),l=m7e(30,79),f=[103,104,164,130,142,152],_=[46,47,55,54],h=[9,10,80,21,23,19,110,105],m=[80,21,110,105],y=[80,22,24,105],T=[80,21,110,105],k=[80,22,24,105],E=[2,3],O=[80,...hz],N=i,B=gC([80,3,86,95,102]),U=gC([22,3,92,113,98,93]),V=[wi("IgnoreBeforeComment",n,E,RO,1),wi("IgnoreAfterLineComment",2,n,RO,1),wi("NotSpaceBeforeColon",n,59,[Aa,BO,y7e],16),wi("SpaceAfterColon",59,n,[Aa,BO],4),wi("NoSpaceBeforeQuestionMark",n,58,[Aa,BO,y7e],16),wi("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Aa,D$e],4),wi("NoSpaceAfterQuestionMark",58,n,[Aa],16),wi("NoSpaceBeforeDot",n,[25,29],[Aa,eHe],16),wi("NoSpaceAfterDot",[25,29],n,[Aa],16),wi("NoSpaceBetweenImportParenInImportType",102,21,[Aa,z$e],16),wi("NoSpaceAfterUnaryPrefixOperator",_,h,[Aa,BO],16),wi("NoSpaceAfterUnaryPreincrementOperator",46,m,[Aa],16),wi("NoSpaceAfterUnaryPredecrementOperator",47,T,[Aa],16),wi("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Aa,O7e],16),wi("NoSpaceBeforeUnaryPostdecrementOperator",k,47,[Aa,O7e],16),wi("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Aa,f2],4),wi("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Aa,f2],4),wi("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Aa,f2],4),wi("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Aa,f2],4),wi("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Aa,f2],4),wi("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Aa,f2],4),wi("NoSpaceAfterCloseBrace",20,[28,27],[Aa],16),wi("NewLineBeforeCloseBraceInBlockContext",i,20,[b7e],8),wi("SpaceAfterCloseBrace",20,t(22),[Aa,P$e],4),wi("SpaceBetweenCloseBraceAndElse",20,93,[Aa],4),wi("SpaceBetweenCloseBraceAndWhile",20,117,[Aa],4),wi("NoSpaceBetweenEmptyBraceBrackets",19,20,[Aa,w7e],16),wi("SpaceAfterConditionalClosingParen",22,23,[jO],4),wi("NoSpaceBetweenFunctionKeywordAndStar",100,42,[S7e],16),wi("SpaceAfterStarInGeneratorDeclaration",42,80,[S7e],4),wi("SpaceAfterFunctionInFuncDecl",100,n,[B3],4),wi("NewLineAfterOpenBraceInBlockContext",19,n,[b7e],8),wi("SpaceAfterGetSetInMember",[139,153],80,[B3],4),wi("NoSpaceBetweenYieldKeywordAndStar",127,42,[Aa,P7e],16),wi("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Aa,P7e],4),wi("NoSpaceBetweenReturnAndSemicolon",107,27,[Aa],16),wi("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Aa],4),wi("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Aa,W$e],4),wi("NoSpaceBeforeOpenParenInFuncCall",n,21,[Aa,L$e,F$e],16),wi("SpaceBeforeBinaryKeywordOperator",n,f,[Aa,f2],4),wi("SpaceAfterBinaryKeywordOperator",f,n,[Aa,f2],4),wi("SpaceAfterVoidOperator",116,n,[Aa,X$e],4),wi("SpaceBetweenAsyncAndOpenParen",134,21,[j$e,Aa],4),wi("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Aa],4),wi("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Aa],16),wi("SpaceBeforeJsxAttribute",n,80,[J$e,Aa],4),wi("SpaceBeforeSlashInJsxOpeningElement",n,44,[D7e,Aa],4),wi("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[D7e,Aa],16),wi("NoSpaceBeforeEqualInJsxAttribute",n,64,[A7e,Aa],16),wi("NoSpaceAfterEqualInJsxAttribute",64,n,[A7e,Aa],16),wi("NoSpaceAfterModuleImport",[144,149],21,[Aa],16),wi("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,160,143,140],n,[Aa],4),wi("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,160],[Aa],4),wi("SpaceAfterModuleName",11,19,[q$e],4),wi("SpaceBeforeArrow",n,39,[Aa],4),wi("SpaceAfterArrow",39,n,[Aa],4),wi("NoSpaceAfterEllipsis",26,80,[Aa],16),wi("NoSpaceAfterOptionalParameters",58,[22,28],[Aa,BO],16),wi("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Aa,$$e],16),wi("NoSpaceBeforeOpenAngularBracket",O,30,[Aa,zO],16),wi("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Aa,zO],16),wi("NoSpaceAfterOpenAngularBracket",30,n,[Aa,zO],16),wi("NoSpaceBeforeCloseAngularBracket",n,32,[Aa,zO],16),wi("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Aa,zO,I$e,G$e],16),wi("SpaceBeforeAt",[22,80],60,[Aa],4),wi("NoSpaceAfterAt",60,n,[Aa],16),wi("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[V$e],4),wi("NoSpaceBeforeNonNullAssertionOperator",n,54,[Aa,Z$e],16),wi("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Aa,H$e],16),wi("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Aa],4)],re=[wi("SpaceAfterConstructor",137,21,[Em("insertSpaceAfterConstructor"),Aa],4),wi("NoSpaceAfterConstructor",137,21,[qg("insertSpaceAfterConstructor"),Aa],16),wi("SpaceAfterComma",28,n,[Em("insertSpaceAfterCommaDelimiter"),Aa,Rie,R$e,B$e],4),wi("NoSpaceAfterComma",28,n,[qg("insertSpaceAfterCommaDelimiter"),Aa,Rie],16),wi("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Em("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),B3],4),wi("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[qg("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),B3],16),wi("SpaceAfterKeywordInControl",o,21,[Em("insertSpaceAfterKeywordsInControlFlowStatements"),jO],4),wi("NoSpaceAfterKeywordInControl",o,21,[qg("insertSpaceAfterKeywordsInControlFlowStatements"),jO],16),wi("SpaceAfterOpenParen",21,n,[Em("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Aa],4),wi("SpaceBeforeCloseParen",n,22,[Em("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Aa],4),wi("SpaceBetweenOpenParens",21,21,[Em("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Aa],4),wi("NoSpaceBetweenParens",21,22,[Aa],16),wi("NoSpaceAfterOpenParen",21,n,[qg("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Aa],16),wi("NoSpaceBeforeCloseParen",n,22,[qg("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Aa],16),wi("SpaceAfterOpenBracket",23,n,[Em("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Aa],4),wi("SpaceBeforeCloseBracket",n,24,[Em("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Aa],4),wi("NoSpaceBetweenBrackets",23,24,[Aa],16),wi("NoSpaceAfterOpenBracket",23,n,[qg("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Aa],16),wi("NoSpaceBeforeCloseBracket",n,24,[qg("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Aa],16),wi("SpaceAfterOpenBrace",19,n,[h7e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v7e],4),wi("SpaceBeforeCloseBrace",n,20,[h7e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v7e],4),wi("NoSpaceBetweenEmptyBraceBrackets",19,20,[Aa,w7e],16),wi("NoSpaceAfterOpenBrace",19,n,[Iie("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Aa],16),wi("NoSpaceBeforeCloseBrace",n,20,[Iie("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Aa],16),wi("SpaceBetweenEmptyBraceBrackets",19,20,[Em("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),wi("NoSpaceBetweenEmptyBraceBrackets",19,20,[Iie("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Aa],16),wi("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[Em("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),E7e],4,1),wi("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[Em("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Aa],4),wi("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[qg("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),E7e],16,1),wi("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[qg("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Aa],16),wi("SpaceAfterOpenBraceInJsxExpression",19,n,[Em("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Aa,yV],4),wi("SpaceBeforeCloseBraceInJsxExpression",n,20,[Em("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Aa,yV],4),wi("NoSpaceAfterOpenBraceInJsxExpression",19,n,[qg("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Aa,yV],16),wi("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[qg("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Aa,yV],16),wi("SpaceAfterSemicolonInFor",27,n,[Em("insertSpaceAfterSemicolonInForStatements"),Aa,Oie],4),wi("NoSpaceAfterSemicolonInFor",27,n,[qg("insertSpaceAfterSemicolonInForStatements"),Aa,Oie],16),wi("SpaceBeforeBinaryOperator",n,l,[Em("insertSpaceBeforeAndAfterBinaryOperators"),Aa,f2],4),wi("SpaceAfterBinaryOperator",l,n,[Em("insertSpaceBeforeAndAfterBinaryOperators"),Aa,f2],4),wi("NoSpaceBeforeBinaryOperator",n,l,[qg("insertSpaceBeforeAndAfterBinaryOperators"),Aa,f2],16),wi("NoSpaceAfterBinaryOperator",l,n,[qg("insertSpaceBeforeAndAfterBinaryOperators"),Aa,f2],16),wi("SpaceBeforeOpenParenInFuncDecl",n,21,[Em("insertSpaceBeforeFunctionParenthesis"),Aa,B3],4),wi("NoSpaceBeforeOpenParenInFuncDecl",n,21,[qg("insertSpaceBeforeFunctionParenthesis"),Aa,B3],16),wi("NewLineBeforeOpenBraceInControl",U,19,[Em("placeOpenBraceOnNewLineForControlBlocks"),jO,Fie],8,1),wi("NewLineBeforeOpenBraceInFunction",N,19,[Em("placeOpenBraceOnNewLineForFunctions"),B3,Fie],8,1),wi("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",B,19,[Em("placeOpenBraceOnNewLineForFunctions"),k7e,Fie],8,1),wi("SpaceAfterTypeAssertion",32,n,[Em("insertSpaceAfterTypeAssertion"),Aa,jie],4),wi("NoSpaceAfterTypeAssertion",32,n,[qg("insertSpaceAfterTypeAssertion"),Aa,jie],16),wi("SpaceBeforeTypeAnnotation",n,[58,59],[Em("insertSpaceBeforeTypeAnnotation"),Aa,Mie],4),wi("NoSpaceBeforeTypeAnnotation",n,[58,59],[qg("insertSpaceBeforeTypeAnnotation"),Aa,Mie],16),wi("NoOptionalSemicolon",27,s,[g7e("semicolons","remove"),Q$e],32),wi("OptionalSemicolon",n,s,[g7e("semicolons","insert"),K$e],64)],z=[wi("NoSpaceBeforeSemicolon",n,27,[Aa],16),wi("SpaceBeforeOpenBraceInControl",U,19,[Pie("placeOpenBraceOnNewLineForControlBlocks"),jO,Bie,Lie],4,1),wi("SpaceBeforeOpenBraceInFunction",N,19,[Pie("placeOpenBraceOnNewLineForFunctions"),B3,hV,Bie,Lie],4,1),wi("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",B,19,[Pie("placeOpenBraceOnNewLineForFunctions"),k7e,Bie,Lie],4,1),wi("NoSpaceBeforeComma",n,28,[Aa],16),wi("NoSpaceBeforeOpenBracket",t(134,84),23,[Aa],16),wi("NoSpaceAfterCloseBracket",24,n,[Aa,U$e],16),wi("SpaceAfterSemicolon",27,n,[Aa],4),wi("SpaceBetweenForAndAwaitKeyword",99,135,[Aa],4),wi("SpaceBetweenStatements",[22,92,93,84],n,[Aa,Rie,A$e],4),wi("SpaceAfterTryCatchFinally",[113,85,98],19,[Aa],4)];return[...V,...re,...z]}function wi(e,t,n,i,s,o=0){return{leftTokenRange:d7e(t),rightTokenRange:d7e(n),rule:{debugName:e,context:i,action:s,flags:o}}}function gC(e){return{tokens:e,isSpecific:!0}}function d7e(e){return typeof e=="number"?gC([e]):ns(e)?gC(e):e}function m7e(e,t,n=[]){const i=[];for(let s=e;s<=t;s++)Zn(n,s)||i.push(s);return gC(i)}function g7e(e,t){return n=>n.options&&n.options[e]===t}function Em(e){return t=>t.options&&Hs(t.options,e)&&!!t.options[e]}function Iie(e){return t=>t.options&&Hs(t.options,e)&&!t.options[e]}function qg(e){return t=>!t.options||!Hs(t.options,e)||!t.options[e]}function Pie(e){return t=>!t.options||!Hs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function h7e(e){return t=>!t.options||!Hs(t.options,e)||!!t.options[e]}function Oie(e){return e.contextNode.kind===247}function A$e(e){return!Oie(e)}function f2(e){switch(e.contextNode.kind){case 225:return e.contextNode.operatorToken.kind!==28;case 226:case 193:case 233:case 280:case 275:case 181:case 191:case 192:case 237:return!0;case 207:case 264:case 270:case 276:case 259:case 168:case 305:case 171:case 170:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 248:case 167:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:return e.currentTokenSpan.kind===164||e.nextTokenSpan.kind===164}return!1}function BO(e){return!f2(e)}function y7e(e){return!Mie(e)}function Mie(e){const t=e.contextNode.kind;return t===171||t===170||t===168||t===259||KT(t)}function D$e(e){return e.contextNode.kind===226||e.contextNode.kind===193}function Lie(e){return e.TokensAreOnSameLine()||hV(e)}function v7e(e){return e.contextNode.kind===205||e.contextNode.kind===199||N$e(e)}function Fie(e){return hV(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function b7e(e){return x7e(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function N$e(e){return x7e(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function x7e(e){return T7e(e.contextNode)}function hV(e){return T7e(e.nextTokenParent)}function T7e(e){if(C7e(e))return!0;switch(e.kind){case 240:case 268:case 209:case 267:return!0}return!1}function B3(e){switch(e.contextNode.kind){case 261:case 173:case 172:case 176:case 177:case 178:case 217:case 175:case 218:case 263:return!0}return!1}function I$e(e){return!B3(e)}function S7e(e){return e.contextNode.kind===261||e.contextNode.kind===217}function k7e(e){return C7e(e.contextNode)}function C7e(e){switch(e.kind){case 262:case 230:case 263:case 265:case 186:case 266:case 277:case 278:case 271:case 274:return!0}return!1}function P$e(e){switch(e.currentTokenParent.kind){case 262:case 266:case 265:case 298:case 267:case 254:return!0;case 240:{const t=e.currentTokenParent.parent;if(!t||t.kind!==218&&t.kind!==217)return!0}}return!1}function jO(e){switch(e.contextNode.kind){case 244:case 254:case 247:case 248:case 249:case 246:case 257:case 245:case 253:case 298:return!0;default:return!1}}function w7e(e){return e.contextNode.kind===209}function O$e(e){return e.contextNode.kind===212}function M$e(e){return e.contextNode.kind===213}function L$e(e){return O$e(e)||M$e(e)}function F$e(e){return e.currentTokenSpan.kind!==28}function R$e(e){return e.nextTokenSpan.kind!==24}function B$e(e){return e.nextTokenSpan.kind!==22}function j$e(e){return e.contextNode.kind===218}function z$e(e){return e.contextNode.kind===204}function Aa(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function E7e(e){return e.contextNode.kind!==12}function Rie(e){return e.contextNode.kind!==283&&e.contextNode.kind!==287}function yV(e){return e.contextNode.kind===293||e.contextNode.kind===292}function J$e(e){return e.nextTokenParent.kind===290}function A7e(e){return e.contextNode.kind===290}function D7e(e){return e.contextNode.kind===284}function U$e(e){return!B3(e)&&!hV(e)}function V$e(e){return e.TokensAreOnSameLine()&&o0(e.contextNode)&&N7e(e.currentTokenParent)&&!N7e(e.nextTokenParent)}function N7e(e){for(;e&&ht(e);)e=e.parent;return e&&e.kind===169}function W$e(e){return e.currentTokenParent.kind===260&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Bie(e){return e.formattingRequestKind!==2}function q$e(e){return e.contextNode.kind===266}function $$e(e){return e.contextNode.kind===186}function H$e(e){return e.contextNode.kind===179}function I7e(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 182:case 215:case 264:case 262:case 230:case 263:case 261:case 217:case 218:case 173:case 172:case 178:case 179:case 212:case 213:case 232:return!0;default:return!1}}function zO(e){return I7e(e.currentTokenSpan,e.currentTokenParent)||I7e(e.nextTokenSpan,e.nextTokenParent)}function jie(e){return e.contextNode.kind===215}function G$e(e){return!jie(e)}function X$e(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===221}function P7e(e){return e.contextNode.kind===228&&e.contextNode.expression!==void 0}function Z$e(e){return e.contextNode.kind===234}function O7e(e){return!Y$e(e)}function Y$e(e){switch(e.contextNode.kind){case 244:case 247:case 248:case 249:case 245:case 246:return!0;default:return!1}}function Q$e(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(ik(t)){const o=e.nextTokenParent===e.currentTokenParent?V7(e.currentTokenParent,Sn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!o)return!0;t=o.kind,n=o.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,s=e.sourceFile.getLineAndCharacterOfPosition(n).line;return i===s?t===20||t===1:t===239||t===27?!1:e.contextNode.kind===263||e.contextNode.kind===264?!Vm(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:fo(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==247&&e.currentTokenParent.kind!==241&&e.currentTokenParent.kind!==239&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==227&&t!==16&&t!==15&&t!==25}function K$e(e){return az(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function eHe(e){return!mi(e.contextNode)||!Um(e.contextNode.expression)||e.contextNode.expression.getText().indexOf(".")!==-1}var tHe=or({"src/services/formatting/rules.ts"(){"use strict";Ri(),lA()}});function rHe(e,t){return{options:e,getRules:nHe(),host:t}}function nHe(){return zie===void 0&&(zie=aHe(p7e())),zie}function iHe(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function aHe(e){const t=sHe(e);return n=>{const i=t[M7e(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];if(i){const s=[];let o=0;for(const l of i){const f=~iHe(o);l.action&f&&yn(l.context,_=>_(n))&&(s.push(l),o|=l.action)}if(s.length)return s}}}function sHe(e){const t=new Array(vV*vV),n=new Array(t.length);for(const i of e){const s=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const o of i.leftTokenRange.tokens)for(const l of i.rightTokenRange.tokens){const f=M7e(o,l);let _=t[f];_===void 0&&(_=t[f]=[]),oHe(_,i.rule,s,n,f)}}return t}function M7e(e,t){return D.assert(e<=164&&t<=164,"Must compute formatting context from tokens"),e*vV+t}function oHe(e,t,n,i,s){const o=t.action&3?n?0:hC.StopRulesAny:t.context!==RO?n?hC.ContextRulesSpecific:hC.ContextRulesAny:n?hC.NoContextRulesSpecific:hC.NoContextRulesAny,l=i[s]||0;e.splice(cHe(l,o),0,t),i[s]=lHe(l,o)}function cHe(e,t){let n=0;for(let i=0;i<=t;i+=d8)n+=e&JO,e>>=d8;return n}function lHe(e,t){const n=(e>>t&JO)+1;return D.assert((n&JO)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(JO<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=d8*1]="StopRulesAny",e[e.ContextRulesSpecific=d8*2]="ContextRulesSpecific",e[e.ContextRulesAny=d8*3]="ContextRulesAny",e[e.NoContextRulesSpecific=d8*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=d8*5]="NoContextRulesAny",e))(hC||{})}});function bV(e,t,n){const i={pos:e,end:t,kind:n};return D.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>D.formatSyntaxKind(n)}),i}function _He(e,t,n){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let s=LD(i,t);for(;v1(t.text.charCodeAt(s));)s--;Wf(t.text.charCodeAt(s))&&s--;const o={pos:_b(i-1,t),end:s+1};return UO(o,t,n,2)}function fHe(e,t,n){const i=Jie(e,27,t);return L7e(Uie(i),t,n,3)}function pHe(e,t,n){const i=Jie(e,19,t);if(!i)return[];const s=i.parent,o=Uie(s),l={pos:z0(o.getStart(t),t),end:e};return UO(l,t,n,4)}function dHe(e,t,n){const i=Jie(e,20,t);return L7e(Uie(i),t,n,5)}function mHe(e,t){const n={pos:0,end:e.text.length};return UO(n,e,t,0)}function gHe(e,t,n,i){const s={pos:z0(e,n),end:t};return UO(s,n,i,1)}function Jie(e,t,n){const i=j_(e,n);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function Uie(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!hHe(t.parent,t);)t=t.parent;return t}function hHe(e,t){switch(e.kind){case 262:case 263:return wm(e.members,t);case 266:const n=e.body;return!!n&&n.kind===267&&wm(n.statements,t);case 311:case 240:case 267:return wm(e.statements,t);case 298:return wm(e.block.statements,t)}return!1}function yHe(e,t){return n(t);function n(i){const s=js(i,o=>GQ(o.getStart(t),o.end,e)&&o);if(s){const o=n(s);if(o)return o}return i}}function vHe(e,t){if(!e.length)return s;const n=e.filter(o=>yE(t,o.start,o.start+o.length)).sort((o,l)=>o.start-l.start);if(!n.length)return s;let i=0;return o=>{for(;;){if(i>=n.length)return!1;const l=n[i];if(o.end<=l.start)return!1;if(Lj(o.pos,o.end,l.start,l.start+l.length))return!0;i++}};function s(){return!1}}function bHe(e,t,n){const i=e.getStart(n);if(i===t.pos&&e.end===t.end)return i;const s=j_(t.pos,n);return!s||s.end>=t.pos?e.pos:s.end}function xHe(e,t,n){let i=-1,s;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&o!==i)break;if($g.shouldIndentChildNode(t,e,s,n))return t.indentSize;i=o,s=e,e=e.parent}return 0}function THe(e,t,n,i,s,o){const l={pos:e.pos,end:e.end};return Aie(t.text,n,l.pos,l.end,f=>F7e(l,e,i,s,f,o,1,_=>!1,t))}function L7e(e,t,n,i){if(!e)return[];const s={pos:z0(e.getStart(t),t),end:e.end};return UO(s,t,n,i)}function UO(e,t,n,i){const s=yHe(e,t);return Aie(t.text,t.languageVariant,bHe(s,e,t),e.end,o=>F7e(e,s,$g.getIndentationForNode(s,e,t,n.options),xHe(s,n.options,t),o,n,i,vHe(t.parseDiagnostics,e),t))}function F7e(e,t,n,i,s,{options:o,getRules:l,host:f},_,h,m){var y;const T=new Eie(m,_,o);let k,E,O,N,B,U=-1;const V=[];if(s.advance(),s.isOnToken()){const je=m.getLineAndCharacterOfPosition(t.getStart(m)).line;let Pe=je;o0(t)&&(Pe=m.getLineAndCharacterOfPosition(o$(t,m)).line),le(t,t,je,Pe,n,i)}if(!s.isOnToken()){const je=$g.nodeWillIndentChild(o,t,void 0,m,!1)?n+o.indentSize:n,Pe=s.getCurrentLeadingTrivia();Pe&&(ae(Pe,je,!1,nt=>$(nt,m.getLineAndCharacterOfPosition(nt.pos),t,t,void 0)),o.trimTrailingWhitespace!==!1&&Re(Pe))}if(E&&s.getTokenFullStart()>=e.end){const je=s.isOnEOF()?s.readEOFTokenRange():s.isOnToken()?s.readTokenInfo(t).token:void 0;if(je&&je.pos===k){const Pe=((y=j_(je.end,m,t))==null?void 0:y.parent)||O;ee(je,m.getLineAndCharacterOfPosition(je.pos).line,Pe,E,N,O,Pe,void 0)}}return V;function re(je,Pe,nt,wt,xt){if(yE(wt,je,Pe)||wP(wt,je,Pe)){if(xt!==-1)return xt}else{const Zt=m.getLineAndCharacterOfPosition(je).line,Qe=z0(je,m),Mt=$g.findFirstNonWhitespaceColumn(Qe,je,m,o);if(Zt!==nt||je===Mt){const yr=$g.getBaseIndentation(o);return yr>Mt?yr:Mt}}return-1}function z(je,Pe,nt,wt,xt,Zt){const Qe=$g.shouldIndentChildNode(o,je)?o.indentSize:0;return Zt===Pe?{indentation:Pe===B?U:xt.getIndentation(),delta:Math.min(o.indentSize,xt.getDelta(je)+Qe)}:nt===-1?je.kind===21&&Pe===B?{indentation:U,delta:xt.getDelta(je)}:$g.childStartsOnTheSameLineWithElseInIfStatement(wt,je,Pe,m)||$g.childIsUnindentedBranchOfConditionalExpression(wt,je,Pe,m)||$g.argumentStartsOnSameLineAsPreviousArgument(wt,je,Pe,m)?{indentation:xt.getIndentation(),delta:Qe}:{indentation:xt.getIndentation()+xt.getDelta(je),delta:Qe}:{indentation:nt,delta:Qe}}function ce(je){if(lg(je)){const Pe=on(je.modifiers,Do,zi(je.modifiers,lp));if(Pe)return Pe.kind}switch(je.kind){case 262:return 86;case 263:return 120;case 261:return 100;case 265:return 265;case 176:return 139;case 177:return 153;case 173:if(je.asteriskToken)return 42;case 171:case 168:const Pe=Es(je);if(Pe)return Pe.kind}}function R(je,Pe,nt,wt){return{getIndentationForComment:(Qe,Mt,yr)=>{switch(Qe){case 20:case 24:case 22:return nt+Zt(yr)}return Mt!==-1?Mt:nt},getIndentationForToken:(Qe,Mt,yr,Cr)=>!Cr&&xt(Qe,Mt,yr)?nt+Zt(yr):nt,getIndentation:()=>nt,getDelta:Zt,recomputeIndentation:(Qe,Mt)=>{$g.shouldIndentChildNode(o,Mt,je,m)&&(nt+=Qe?o.indentSize:-o.indentSize,wt=$g.shouldIndentChildNode(o,je)?o.indentSize:0)}};function xt(Qe,Mt,yr){switch(Mt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(yr.kind){case 285:case 286:case 284:return!1}break;case 23:case 24:if(yr.kind!==199)return!1;break}return Pe!==Qe&&!(o0(je)&&Mt===ce(je))}function Zt(Qe){return $g.nodeWillIndentChild(o,je,Qe,m,!0)?wt:0}}function le(je,Pe,nt,wt,xt,Zt){if(!yE(e,je.getStart(m),je.getEnd()))return;const Qe=R(je,nt,xt,Zt);let Mt=Pe;for(js(je,an=>{yr(an,-1,je,Qe,nt,wt,!1)},an=>{Cr(an,je,nt,Qe)});s.isOnToken()&&s.getTokenFullStart()Math.min(je.end,e.end))break;Lt(an,je,Qe,je)}function yr(an,xn,Lr,In,vi,ia,Wa,bi){if(D.assert(!Ol(an)),Eu(an)||Wle(Lr,an))return xn;const Pt=an.getStart(m),Ar=m.getLineAndCharacterOfPosition(Pt).line;let Yt=Ar;o0(an)&&(Yt=m.getLineAndCharacterOfPosition(o$(an,m)).line);let Qr=-1;if(Wa&&wm(e,Lr)&&(Qr=re(Pt,an.end,vi,e,xn),Qr!==-1&&(xn=Qr)),!yE(e,an.pos,an.end))return an.ende.end)return xn;if(ja.token.end>Pt){ja.token.pos>Pt&&s.skipToStartOf(an);break}Lt(ja,je,In,je)}if(!s.isOnToken()||s.getTokenFullStart()>=e.end)return xn;if(ZT(an)){const ja=s.readTokenInfo(an);if(an.kind!==12)return D.assert(ja.token.end===an.end,"Token end is child end"),Lt(ja,je,In,an),xn}const $r=an.kind===169?Ar:ia,Fn=z(an,Ar,Qr,je,In,$r);return le(an,Mt,Ar,Yt,Fn.indentation,Fn.delta),Mt=je,bi&&Lr.kind===208&&xn===-1&&(xn=Fn.indentation),xn}function Cr(an,xn,Lr,In){D.assert(Y6(an)),D.assert(!Ol(an));const vi=SHe(xn,an);let ia=In,Wa=Lr;if(!yE(e,an.pos,an.end)){an.endan.pos)break;if(Ar.token.kind===vi){Wa=m.getLineAndCharacterOfPosition(Ar.token.pos).line,Lt(Ar,xn,In,xn);let Yt;if(U!==-1)Yt=U;else{const Qr=z0(Ar.token.pos,m);Yt=$g.findFirstNonWhitespaceColumn(Qr,Ar.token.pos,m,o)}ia=R(xn,Lr,Yt,o.indentSize)}else Lt(Ar,xn,In,xn)}let bi=-1;for(let Ar=0;Arte(Fn.pos,$r,!1))}Yt!==-1&&Qr&&(te(an.token.pos,Yt,bi===1),B=Ar.line,U=Yt)}s.advance(),Mt=xn}}function ae(je,Pe,nt,wt){for(const xt of je){const Zt=wm(e,xt);switch(xt.kind){case 3:Zt&&we(xt,Pe,!nt),nt=!1;break;case 2:nt&&Zt&&wt(xt),nt=!1;break;case 4:nt=!0;break}}return nt}function ye(je,Pe,nt,wt){for(const xt of je)if(Vj(xt.kind)&&wm(e,xt)){const Zt=m.getLineAndCharacterOfPosition(xt.pos);$(xt,Zt,Pe,nt,wt)}}function $(je,Pe,nt,wt,xt){const Zt=h(je);let Qe=0;if(!Zt)if(E)Qe=ee(je,Pe.line,nt,E,N,O,wt,xt);else{const Mt=m.getLineAndCharacterOfPosition(e.pos);K(Mt.line,Pe.line)}return E=je,k=je.end,O=nt,N=Pe.line,Qe}function ee(je,Pe,nt,wt,xt,Zt,Qe,Mt){T.updateContext(wt,Zt,je,nt,Qe);const yr=l(T);let Cr=T.options.trimTrailingWhitespace!==!1,Lt=0;return yr?Gl(yr,an=>{if(Lt=He(an,wt,xt,je,Pe),Mt)switch(Lt){case 2:nt.getStart(m)===je.pos&&Mt.recomputeIndentation(!1,Qe);break;case 1:nt.getStart(m)===je.pos&&Mt.recomputeIndentation(!0,Qe);break;default:D.assert(Lt===0)}Cr=Cr&&!(an.action&16)&&an.flags!==1}):Cr=Cr&&je.kind!==1,Pe!==xt&&Cr&&K(xt,Pe,wt),Lt}function te(je,Pe,nt){const wt=Vie(Pe,o);if(nt)Ae(je,0,wt);else{const xt=m.getLineAndCharacterOfPosition(je),Zt=_b(xt.line,m);(Pe!==me(Zt,xt.character)||ve(wt,Zt))&&Ae(Zt,xt.character,wt)}}function me(je,Pe){let nt=0;for(let wt=0;wt0){const ia=Vie(vi,o);Ae(Lr,In.character,ia)}else Ue(Lr,In.character)}}function K(je,Pe,nt){for(let wt=je;wtZt)continue;const Qe=Ze(xt,Zt);Qe!==-1&&(D.assert(Qe===xt||!v1(m.text.charCodeAt(Qe-1))),Ue(Qe,Zt+1-Qe))}}function Ze(je,Pe){let nt=Pe;for(;nt>=je&&v1(m.text.charCodeAt(nt));)nt--;return nt!==Pe?nt+1:-1}function Re(je){let Pe=E?E.end:e.pos;for(const nt of je)Vj(nt.kind)&&(PeCP(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function SHe(e,t){switch(e.kind){case 175:case 261:case 217:case 173:case 172:case 218:case 178:case 179:case 183:case 184:case 176:case 177:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 212:case 213:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 262:case 230:case 263:case 264:if(e.typeParameters===t)return 30;break;case 182:case 214:case 185:case 232:case 204:if(e.typeArguments===t)return 30;break;case 186:return 19}return 0}function kHe(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function Vie(e,t){if((!xV||xV.tabSize!==t.tabSize||xV.indentSize!==t.indentSize)&&(xV={tabSize:t.tabSize,indentSize:t.indentSize},oA=cA=void 0),t.convertTabsToSpaces){let i;const s=Math.floor(e/t.indentSize),o=e%t.indentSize;return cA||(cA=[]),cA[s]===void 0?(i=OP(" ",t.indentSize*s),cA[s]=i):i=cA[s],o?i+OP(" ",o):i}else{const i=Math.floor(e/t.tabSize),s=e-i*t.tabSize;let o;return oA||(oA=[]),oA[i]===void 0?oA[i]=o=OP(" ",i):o=oA[i],s?o+OP(" ",s):o}}var xV,oA,cA,CHe=or({"src/services/formatting/formatting.ts"(){"use strict";Ri(),lA()}}),$g,wHe=or({"src/services/formatting/smartIndenter.ts"(){"use strict";Ri(),lA(),(e=>{let t;(K=>{K[K.Unknown=-1]="Unknown"})(t||(t={}));function n(K,Ze,Re,Fe=!1){if(K>Ze.text.length)return f(Re);if(Re.indentStyle===0)return 0;const Ue=j_(K,Ze,void 0,!0),Ae=R7e(Ze,K,Ue||null);if(Ae&&Ae.kind===3)return i(Ze,K,Re,Ae);if(!Ue)return f(Re);if(iK(Ue.kind)&&Ue.getStart(Ze)<=K&&K=0),Ue<=Ae)return ee(_b(Ae,K),Ze,K,Re);const Me=_b(Ue,K),{column:He,character:je}=$(Me,Ze,K,Re);return He===0?He:K.text.charCodeAt(Me+je)===42?He-1:He}function s(K,Ze,Re){let Fe=Ze;for(;Fe>0;){const Ae=K.text.charCodeAt(Fe);if(!Zh(Ae))break;Fe--}const Ue=z0(Fe,K);return ee(Ue,Fe,K,Re)}function o(K,Ze,Re,Fe,Ue,Ae){let Me,He=Re;for(;He;){if(ZQ(He,Ze,K)&&ve(Ae,He,Me,K,!0)){const Pe=E(He,K),nt=k(Re,He,Fe,K),wt=nt!==0?Ue&&nt===2?Ae.indentSize:0:Fe!==Pe.line?Ae.indentSize:0;return _(He,Pe,void 0,wt,K,!0,Ae)}const je=le(He,K,Ae,!0);if(je!==-1)return je;Me=He,He=He.parent}return f(Ae)}function l(K,Ze,Re,Fe){const Ue=Re.getLineAndCharacterOfPosition(K.getStart(Re));return _(K,Ue,Ze,0,Re,!1,Fe)}e.getIndentationForNode=l;function f(K){return K.baseIndentSize||0}e.getBaseIndentation=f;function _(K,Ze,Re,Fe,Ue,Ae,Me){var He;let je=K.parent;for(;je;){let Pe=!0;if(Re){const Zt=K.getStart(Ue);Pe=ZtRe.end}const nt=h(je,K,Ue),wt=nt.line===Ze.line||N(je,K,Ze.line,Ue);if(Pe){const Zt=(He=V(K,Ue))==null?void 0:He[0],Qe=!!Zt&&E(Zt,Ue).line>nt.line;let Mt=le(K,Ue,Me,Qe);if(Mt!==-1||(Mt=y(K,je,Ze,wt,Ue,Me),Mt!==-1))return Mt+Fe}ve(Me,je,K,Ue,Ae)&&!wt&&(Fe+=Me.indentSize);const xt=O(je,K,Ze.line,Ue);K=je,je=K.parent,Ze=xt?Ue.getLineAndCharacterOfPosition(K.getStart(Ue)):nt}return Fe+f(Me)}function h(K,Ze,Re){const Fe=V(Ze,Re),Ue=Fe?Fe.pos:K.getStart(Re);return Re.getLineAndCharacterOfPosition(Ue)}function m(K,Ze,Re){const Fe=K1e(K);return Fe&&Fe.listItemIndex>0?ae(Fe.list.getChildren(),Fe.listItemIndex-1,Ze,Re):-1}function y(K,Ze,Re,Fe,Ue,Ae){return(cp(K)||PD(K))&&(Ze.kind===311||!Fe)?ye(Re,Ue,Ae):-1}let T;(K=>{K[K.Unknown=0]="Unknown",K[K.OpenBrace=1]="OpenBrace",K[K.CloseBrace=2]="CloseBrace"})(T||(T={}));function k(K,Ze,Re,Fe){const Ue=V7(K,Ze,Fe);if(!Ue)return 0;if(Ue.kind===19)return 1;if(Ue.kind===20){const Ae=E(Ue,Fe).line;return Re===Ae?2:0}return 0}function E(K,Ze){return Ze.getLineAndCharacterOfPosition(K.getStart(Ze))}function O(K,Ze,Re,Fe){if(!(go(K)&&Zn(K.arguments,Ze)))return!1;const Ue=K.expression.getEnd();return Ql(Fe,Ue).line===Re}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=O;function N(K,Ze,Re,Fe){if(K.kind===244&&K.elseStatement===Ze){const Ue=zc(K,93,Fe);return D.assert(Ue!==void 0),E(Ue,Fe).line===Re}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=N;function B(K,Ze,Re,Fe){if(Nk(K)&&(Ze===K.whenTrue||Ze===K.whenFalse)){const Ue=Ql(Fe,K.condition.end).line;if(Ze===K.whenTrue)return Re===Ue;{const Ae=E(K.whenTrue,Fe).line,Me=Ql(Fe,K.whenTrue.end).line;return Ue===Ae&&Me===Re}}return!1}e.childIsUnindentedBranchOfConditionalExpression=B;function U(K,Ze,Re,Fe){if(ey(K)){if(!K.arguments)return!1;const Ue=on(K.arguments,je=>je.pos===Ze.pos);if(!Ue)return!1;const Ae=K.arguments.indexOf(Ue);if(Ae===0)return!1;const Me=K.arguments[Ae-1],He=Ql(Fe,Me.getEnd()).line;if(Re===He)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=U;function V(K,Ze){return K.parent&&z(K.getStart(Ze),K.getEnd(),K.parent,Ze)}e.getContainingList=V;function re(K,Ze,Re){return Ze&&z(K,K,Ze,Re)}function z(K,Ze,Re,Fe){switch(Re.kind){case 182:return Ue(Re.typeArguments);case 209:return Ue(Re.properties);case 208:return Ue(Re.elements);case 186:return Ue(Re.members);case 261:case 217:case 218:case 173:case 172:case 178:case 175:case 184:case 179:return Ue(Re.typeParameters)||Ue(Re.parameters);case 176:return Ue(Re.parameters);case 262:case 230:case 263:case 264:case 351:return Ue(Re.typeParameters);case 213:case 212:return Ue(Re.typeArguments)||Ue(Re.arguments);case 260:return Ue(Re.declarations);case 274:case 278:return Ue(Re.elements);case 205:case 206:return Ue(Re.elements)}function Ue(Ae){return Ae&&wP(ce(Re,Ae,Fe),K,Ze)?Ae:void 0}}function ce(K,Ze,Re){const Fe=K.getChildren(Re);for(let Ue=1;Ue=0&&Ze=0;Me--){if(K[Me].kind===28)continue;if(Re.getLineAndCharacterOfPosition(K[Me].end).line!==Ae.line)return ye(Ae,Re,Fe);Ae=E(K[Me],Re)}return-1}function ye(K,Ze,Re){const Fe=Ze.getPositionOfLineAndCharacter(K.line,0);return ee(Fe,Fe+K.character,Ze,Re)}function $(K,Ze,Re,Fe){let Ue=0,Ae=0;for(let Me=K;MeEie,FormattingRequestKind:()=>wie,RuleAction:()=>Die,RuleFlags:()=>Nie,SmartIndenter:()=>$g,anyContext:()=>RO,createTextRangeWithKind:()=>bV,formatDocument:()=>mHe,formatNodeGivenIndentation:()=>THe,formatOnClosingCurly:()=>dHe,formatOnEnter:()=>_He,formatOnOpeningCurly:()=>pHe,formatOnSemicolon:()=>fHe,formatSelection:()=>gHe,getAllRules:()=>p7e,getFormatContext:()=>rHe,getFormattingScanner:()=>Aie,getIndentationString:()=>Vie,getRangeOfEnclosingComment:()=>R7e});var lA=or({"src/services/_namespaces/ts.formatting.ts"(){"use strict";C$e(),w$e(),E$e(),tHe(),uHe(),CHe(),wHe()}}),Ri=or({"src/services/_namespaces/ts.ts"(){"use strict";ho(),Dj(),WPe(),yOe(),TOe(),lye(),MOe(),LOe(),UOe(),QOe(),KOe(),tMe(),lMe(),_Me(),ARe(),NRe(),ORe(),FRe(),rBe(),iBe(),Fo(),Jne(),wxe(),TWe(),EWe(),qWe(),Jye(),lve(),fqe(),bqe(),Th(),Aqe(),t$e(),l$e(),f$e(),k$e(),lA()}});function EHe(){return TV!=null?TV:TV=new Ed(Zu)}function B7e(e,t,n,i,s){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=i?`has been deprecated since v${i}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=s?` ${sy(s,[e],0)}`:"",o}function AHe(e,t,n,i){const s=B7e(e,!0,t,n,i);return()=>{throw new TypeError(s)}}function DHe(e,t,n,i){let s=!1;return()=>{j7e&&!s&&(D.log.warn(B7e(e,!1,t,n,i)),s=!0)}}function NHe(e,t={}){var _,h;const n=typeof t.typeScriptVersion=="string"?new Ed(t.typeScriptVersion):(_=t.typeScriptVersion)!=null?_:EHe(),i=typeof t.errorAfter=="string"?new Ed(t.errorAfter):t.errorAfter,s=typeof t.warnAfter=="string"?new Ed(t.warnAfter):t.warnAfter,o=typeof t.since=="string"?new Ed(t.since):(h=t.since)!=null?h:s,l=t.error||i&&n.compareTo(i)>=0,f=!s||n.compareTo(s)>=0;return l?AHe(e,i,o,t.message):f?DHe(e,i,o,t.message):Ho}function IHe(e,t){return function(){return e(),t.apply(this,arguments)}}function Wie(e,t){var i;const n=NHe((i=t==null?void 0:t.name)!=null?i:D.getFunctionName(e),t);return IHe(n,e)}var j7e,TV,z7e=or({"src/deprecatedCompat/deprecate.ts"(){"use strict";SV(),j7e=!0}});function qie(e,t,n,i){if(Object.defineProperty(o,"name",Xs(fa({},Object.getOwnPropertyDescriptor(o,"name")),{value:e})),i)for(const l of Object.keys(i)){const f=+l;!isNaN(f)&&Hs(t,`${f}`)&&(t[f]=Wie(t[f],Xs(fa({},i[f]),{name:e})))}const s=PHe(t,n);return o;function o(...l){const f=s(l),_=f!==void 0?t[f]:void 0;if(typeof _=="function")return _(...l);throw new TypeError("Invalid arguments")}}function PHe(e,t){return n=>{for(let i=0;Hs(e,`${i}`)&&Hs(t,`${i}`);i++){const s=t[i];if(s(n))return i}}}function OHe(e){return{overload:t=>({bind:n=>({finish:()=>qie(e,t,n),deprecate:i=>({finish:()=>qie(e,t,n,i)})})})}}var MHe=or({"src/deprecatedCompat/deprecations.ts"(){"use strict";SV(),z7e()}}),LHe=or({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";SV(),z7e(),S_e(e=>{const t=e.getIdentifierConstructor();Hs(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Wie(function(){return C4(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Hs(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Wie(function(){return this.flags&2048?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),SV=or({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";ho(),MHe(),LHe()}}),J7e={};Dl(J7e,{ANONYMOUS:()=>vz,AccessFlags:()=>Tu,AssertionLevel:()=>o5,AssignmentDeclarationKind:()=>Up,AssignmentKind:()=>YH,Associativity:()=>KH,BreakpointResolver:()=>gte,BuilderFileEmit:()=>NY,BuilderProgramKind:()=>IY,BuilderState:()=>xh,BundleFileSectionKind:()=>At,CallHierarchy:()=>i8,CharacterCodes:()=>x4,CheckFlags:()=>lc,CheckMode:()=>zB,ClassificationType:()=>jQ,ClassificationTypeNames:()=>BQ,CommentDirectiveType:()=>mt,Comparison:()=>rr,CompletionInfoFlags:()=>IQ,CompletionTriggerKind:()=>wQ,Completions:()=>u8,ConfigFileProgramReloadLevel:()=>KZ,ContextFlags:()=>cs,CoreServicesShimHostAdapter:()=>mte,Debug:()=>D,DiagnosticCategory:()=>Vf,Diagnostics:()=>p,DocumentHighlights:()=>Tz,ElementFlags:()=>d_,EmitFlags:()=>I,EmitHint:()=>xe,EmitOnly:()=>Er,EndOfLineState:()=>MQ,EnumKind:()=>uo,ExitStatus:()=>na,ExportKind:()=>qK,Extension:()=>K1,ExternalEmitHelpers:()=>oe,FileIncludeKind:()=>Bt,FilePreprocessingDiagnosticsKind:()=>Ur,FileSystemEntryKind:()=>Q2,FileWatcherEventKind:()=>Xx,FindAllReferences:()=>tu,FlattenLevel:()=>OZ,FlowFlags:()=>lt,ForegroundColorEscapeSequences:()=>mY,FunctionFlags:()=>QH,GeneratedIdentifierFlags:()=>Gx,GetLiteralTextFlags:()=>GH,GoToDefinition:()=>eA,HighlightSpanKind:()=>AQ,ImportKind:()=>WK,ImportsNotUsedAsValues:()=>ld,IndentStyle:()=>DQ,IndexFlags:()=>Qu,IndexKind:()=>m_,InferenceFlags:()=>Jp,InferencePriority:()=>cd,InlayHintKind:()=>EQ,InlayHints:()=>tie,InternalEmitFlags:()=>W,InternalSymbolName:()=>to,InvalidatedProjectKind:()=>_Q,JsDoc:()=>X4,JsTyping:()=>z7,JsxEmit:()=>A0,JsxFlags:()=>Hx,JsxReferenceKind:()=>T_,LanguageServiceMode:()=>SQ,LanguageServiceShimHostAdapter:()=>dte,LanguageVariant:()=>h1,LexicalEnvironmentFlags:()=>vt,ListFormat:()=>Dr,LogLevel:()=>w0,MemberOverrideStatus:()=>wa,ModifierFlags:()=>$x,ModuleDetectionKind:()=>lu,ModuleInstanceState:()=>cZ,ModuleKind:()=>zm,ModuleResolutionKind:()=>a_,ModuleSpecifierEnding:()=>uG,NavigateTo:()=>zye,NavigationBar:()=>cve,NewLineKind:()=>Ad,NodeBuilderFlags:()=>Is,NodeCheckFlags:()=>Ko,NodeFactoryFlags:()=>gG,NodeFlags:()=>qx,NodeResolutionFeatures:()=>sZ,ObjectFlags:()=>Sc,OperationCanceledException:()=>It,OperatorPrecedence:()=>eG,OrganizeImports:()=>pg,OrganizeImportsMode:()=>CQ,OuterExpressionKinds:()=>et,OutliningElementsCollector:()=>_ie,OutliningSpanKind:()=>PQ,OutputFileType:()=>OQ,PackageJsonAutoImportPreference:()=>TQ,PackageJsonDependencyGroup:()=>xQ,PatternMatchKind:()=>wz,PollingInterval:()=>eh,PollingWatchKind:()=>ip,PragmaKindFlags:()=>Zr,PrivateIdentifierKind:()=>wG,ProcessLevel:()=>RZ,QuotePreference:()=>zK,RelationComparisonResult:()=>W6,Rename:()=>uV,ScriptElementKind:()=>FQ,ScriptElementKindModifier:()=>RQ,ScriptKind:()=>zv,ScriptSnapshot:()=>bQ,ScriptTarget:()=>Y2,SemanticClassificationFormat:()=>kQ,SemanticMeaning:()=>jK,SemicolonPreference:()=>NQ,SignatureCheckMode:()=>JB,SignatureFlags:()=>Ru,SignatureHelp:()=>FO,SignatureKind:()=>Ku,SmartSelectionRange:()=>gie,SnippetKind:()=>C,SortKind:()=>a5,StructureIsReused:()=>ui,SymbolAccessibility:()=>ks,SymbolDisplay:()=>_2,SymbolDisplayPartKind:()=>bP,SymbolFlags:()=>Ao,SymbolFormatFlags:()=>ls,SyntaxKind:()=>Wx,SyntheticSymbolKind:()=>wo,Ternary:()=>wp,ThrottledCancellationToken:()=>lte,TokenClass:()=>LQ,TokenFlags:()=>Oe,TransformFlags:()=>j,TypeFacts:()=>BB,TypeFlags:()=>Tc,TypeFormatFlags:()=>ao,TypeMapKind:()=>P_,TypePredicateKind:()=>Eo,TypeReferenceSerializationKind:()=>Ys,TypeScriptServicesFactory:()=>I2e,UnionReduction:()=>is,UpToDateStatusType:()=>ZY,VarianceFlags:()=>ql,Version:()=>Ed,VersionRange:()=>Bv,WatchDirectoryFlags:()=>Ig,WatchDirectoryKind:()=>Xd,WatchFileKind:()=>Ep,WatchLogLevel:()=>eY,WatchType:()=>B0,accessPrivateIdentifier:()=>g0e,addEmitFlags:()=>dh,addEmitHelper:()=>TS,addEmitHelpers:()=>Kv,addInternalEmitFlags:()=>bS,addNodeFactoryPatcher:()=>Z9e,addObjectAllocatorPatcher:()=>S_e,addRange:()=>Et,addRelatedInfo:()=>ic,addSyntheticLeadingComment:()=>ZN,addSyntheticTrailingComment:()=>sR,addToSeen:()=>Lg,advancedAsyncSuperHelper:()=>tI,affectsDeclarationPathOptionDeclarations:()=>OX,affectsEmitOptionDeclarations:()=>PX,allKeysStartWithDot:()=>NB,altDirectorySeparator:()=>pD,and:()=>Mx,append:()=>Ht,appendIfUnique:()=>ct,arrayFrom:()=>zt,arrayIsEqualTo:()=>Lo,arrayIsHomogeneous:()=>G_e,arrayIsSorted:()=>xu,arrayOf:()=>H2,arrayReverseIterator:()=>ur,arrayToMap:()=>Fm,arrayToMultiMap:()=>_1,arrayToNumericMap:()=>G2,arraysEqual:()=>cl,assertType:()=>sD,assign:()=>_m,assignHelper:()=>pR,asyncDelegator:()=>mR,asyncGeneratorHelper:()=>dR,asyncSuperHelper:()=>eI,asyncValues:()=>gR,attachFileToDiagnostics:()=>hS,awaitHelper:()=>SS,awaiterHelper:()=>yR,base64decode:()=>p_e,base64encode:()=>f_e,binarySearch:()=>tr,binarySearchKey:()=>Io,bindSourceFile:()=>Eme,breakIntoCharacterSpans:()=>xye,breakIntoWordSpans:()=>Tye,buildLinkParts:()=>Dhe,buildOpts:()=>gB,buildOverload:()=>OHe,bundlerModuleNameResolver:()=>ome,canBeConvertedToAsync:()=>oee,canHaveDecorators:()=>jS,canHaveExportModifier:()=>FN,canHaveFlowNode:()=>iN,canHaveIllegalDecorators:()=>aX,canHaveIllegalModifiers:()=>Tpe,canHaveIllegalType:()=>BEe,canHaveIllegalTypeParameters:()=>xpe,canHaveJSDoc:()=>aN,canHaveLocals:()=>nh,canHaveModifiers:()=>lg,canHaveSymbol:()=>rh,canJsonReportNoInputFiles:()=>II,canProduceDiagnostics:()=>YB,canUsePropertyAccess:()=>VH,canWatchAffectingLocation:()=>jge,canWatchAtTypes:()=>Fge,canWatchDirectoryOrFile:()=>Lge,cartesianProduct:()=>r5,cast:()=>Ws,chainBundle:()=>ug,chainDiagnosticMessages:()=>Ps,changeAnyExtension:()=>mq,changeCompilerHostLikeToUseCache:()=>sP,changeExtension:()=>m3,changesAffectModuleResolution:()=>t$,changesAffectingProgramStructure:()=>Rle,childIsDecorated:()=>Ww,classElementOrClassElementParameterIsDecorated:()=>w$,classOrConstructorParameterIsDecorated:()=>s3,classPrivateFieldGetHelper:()=>NR,classPrivateFieldInHelper:()=>PR,classPrivateFieldSetHelper:()=>IR,classicNameResolver:()=>Sme,classifier:()=>J2e,cleanExtendedConfigCache:()=>QZ,clear:()=>vu,clearMap:()=>l0,clearSharedExtendedConfigFileWatcher:()=>rge,climbPastPropertyAccess:()=>Pj,climbPastPropertyOrElementAccess:()=>X1e,clone:()=>G0,cloneCompilerOptions:()=>dhe,closeFileWatcher:()=>_h,closeFileWatcherOf:()=>bh,codefix:()=>Xf,collapseTextChangeRangesAcrossMultipleVersions:()=>lwe,collectExternalModuleInfo:()=>CZ,combine:()=>Ss,combinePaths:()=>ta,commentPragmas:()=>gn,commonOptionsWithBuild:()=>FI,commonPackageFolders:()=>nG,compact:()=>Ma,compareBooleans:()=>ka,compareDataObjects:()=>yH,compareDiagnostics:()=>p9,compareDiagnosticsSkipRelatedInformation:()=>MF,compareEmitHelpers:()=>Rfe,compareNumberOfDirectorySeparators:()=>PN,comparePaths:()=>Yx,comparePathsCaseInsensitive:()=>KCe,comparePathsCaseSensitive:()=>QCe,comparePatternKeys:()=>nZ,compareProperties:()=>cn,compareStringsCaseInsensitive:()=>X0,compareStringsCaseInsensitiveEslintCompatible:()=>Ix,compareStringsCaseSensitive:()=>tn,compareStringsCaseSensitiveUI:()=>Go,compareTextSpans:()=>Lv,compareValues:()=>Uc,compileOnSaveCommandLineOption:()=>OI,compilerOptionsAffectDeclarationPath:()=>R_e,compilerOptionsAffectEmit:()=>F_e,compilerOptionsAffectSemanticDiagnostics:()=>L_e,compilerOptionsDidYouMeanDiagnostics:()=>BI,compilerOptionsIndicateEsModules:()=>_K,compose:()=>Z2,computeCommonSourceDirectoryOfFilenames:()=>oge,computeLineAndCharacterOfPosition:()=>hD,computeLineOfPosition:()=>kw,computeLineStarts:()=>mD,computePositionOfLineAndCharacter:()=>xq,computeSignature:()=>B7,computeSignatureWithDiagnostics:()=>CY,computeSuggestionDiagnostics:()=>iee,concatenate:()=>Nn,concatenateDiagnosticMessageChains:()=>A_e,consumesNodeCoreModules:()=>_z,contains:()=>Zn,containsIgnoredPath:()=>T9,containsObjectRestOrSpread:()=>TI,containsParseError:()=>z5,containsPath:()=>tb,convertCompilerOptionsForTelemetry:()=>$Ae,convertCompilerOptionsFromJson:()=>BAe,convertJsonOption:()=>US,convertToBase64:()=>__e,convertToJson:()=>DI,convertToObject:()=>yde,convertToOptionsWithAbsolutePaths:()=>xX,convertToRelativePath:()=>Tw,convertToTSConfig:()=>kAe,convertTypeAcquisitionFromJson:()=>jAe,copyComments:()=>$7,copyEntries:()=>RL,copyLeadingComments:()=>aC,copyProperties:()=>Ag,copyTrailingAsLeadingComments:()=>JP,copyTrailingComments:()=>CE,couldStartTrivia:()=>wce,countWhere:()=>ef,createAbstractBuilder:()=>HIe,createAccessorPropertyBackingField:()=>sX,createAccessorPropertyGetRedirector:()=>Ipe,createAccessorPropertySetRedirector:()=>Ppe,createBaseNodeFactory:()=>bfe,createBinaryExpressionTrampoline:()=>eB,createBindingHelper:()=>Sk,createBuildInfo:()=>nP,createBuilderProgram:()=>wY,createBuilderProgramUsingProgramBuildInfo:()=>Mge,createBuilderStatusReporter:()=>r1e,createCacheWithRedirects:()=>GX,createCacheableExportInfoMap:()=>Khe,createCachedDirectoryStructureHost:()=>tge,createClassifier:()=>rye,createCommentDirectivesMap:()=>Gle,createCompilerDiagnostic:()=>zu,createCompilerDiagnosticForInvalidCustomType:()=>sde,createCompilerDiagnosticFromMessageChain:()=>OF,createCompilerHost:()=>cge,createCompilerHostFromProgramHost:()=>qY,createCompilerHostWorker:()=>nY,createDetachedDiagnostic:()=>pk,createDiagnosticCollection:()=>sk,createDiagnosticForFileFromMessageChain:()=>b$,createDiagnosticForNode:()=>ai,createDiagnosticForNodeArray:()=>V5,createDiagnosticForNodeArrayFromMessageChain:()=>BD,createDiagnosticForNodeFromMessageChain:()=>Wy,createDiagnosticForNodeInSourceFile:()=>P0,createDiagnosticForRange:()=>x$,createDiagnosticMessageChainFromDiagnostic:()=>iue,createDiagnosticReporter:()=>pP,createDocumentPositionMapper:()=>c0e,createDocumentRegistry:()=>GK,createDocumentRegistryInternal:()=>uye,createEmitAndSemanticDiagnosticsBuilderProgram:()=>PY,createEmitHelperFactory:()=>Ffe,createEmptyExports:()=>dI,createExpressionForJsxElement:()=>fpe,createExpressionForJsxFragment:()=>ppe,createExpressionForObjectLiteralElementLike:()=>dpe,createExpressionForPropertyName:()=>KG,createExpressionFromEntityName:()=>mI,createExternalHelpersImportDeclarationIfNeeded:()=>rX,createFileDiagnostic:()=>af,createFileDiagnosticFromMessageChain:()=>$L,createForOfBindingStatement:()=>QG,createGetCanonicalFileName:()=>N_,createGetSourceFile:()=>tY,createGetSymbolAccessibilityDiagnosticForNode:()=>a2,createGetSymbolAccessibilityDiagnosticForNodeName:()=>z0e,createGetSymbolWalker:()=>Ime,createIncrementalCompilerHost:()=>GY,createIncrementalProgram:()=>t1e,createInputFiles:()=>nEe,createInputFilesWithFilePaths:()=>dG,createInputFilesWithFileTexts:()=>mG,createJsxFactoryExpression:()=>YG,createLanguageService:()=>g2e,createLanguageServiceSourceFile:()=>sJ,createMemberAccessForPropertyName:()=>A7,createModeAwareCache:()=>P7,createModeAwareCacheKey:()=>tE,createModuleNotFoundChain:()=>n$,createModuleResolutionCache:()=>qk,createModuleResolutionLoader:()=>lY,createModuleSpecifierResolutionHost:()=>q7,createMultiMap:()=>Pf,createNodeConverters:()=>Tfe,createNodeFactory:()=>WN,createOptionNameMap:()=>sB,createOverload:()=>qie,createPackageJsonImportFilter:()=>AE,createPackageJsonInfo:()=>Jhe,createParenthesizerRules:()=>xfe,createPatternMatcher:()=>mye,createPrependNodes:()=>pY,createPrinter:()=>V4,createPrinterWithDefaults:()=>XZ,createPrinterWithRemoveComments:()=>O3,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>ZZ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>iP,createProgram:()=>cj,createProgramHost:()=>$Y,createPropertyNameNodeForIdentifierOrLiteral:()=>XF,createQueue:()=>Jf,createRange:()=>L0,createRedirectedBuilderProgram:()=>DY,createResolutionCache:()=>Vge,createRuntimeTypeSerializer:()=>x0e,createScanner:()=>Uv,createSemanticDiagnosticsBuilderProgram:()=>$Ie,createSet:()=>W1,createSolutionBuilder:()=>_Pe,createSolutionBuilderHost:()=>cPe,createSolutionBuilderWithWatch:()=>fPe,createSolutionBuilderWithWatchHost:()=>lPe,createSortedArray:()=>dl,createSourceFile:()=>kI,createSourceMapGenerator:()=>t0e,createSourceMapSource:()=>iEe,createSuperAccessVariableStatement:()=>ZB,createSymbolTable:()=>To,createSymlinkCache:()=>B_e,createSystemWatchFunctions:()=>D0,createTextChange:()=>IP,createTextChangeFromStartLength:()=>qj,createTextChangeRange:()=>TD,createTextRangeFromNode:()=>cK,createTextRangeFromSpan:()=>Wj,createTextSpan:()=>nf,createTextSpanFromBounds:()=>L_,createTextSpanFromNode:()=>Zp,createTextSpanFromRange:()=>Cb,createTextSpanFromStringLiteralLikeContent:()=>oK,createTextWriter:()=>yN,createTokenRange:()=>dH,createTypeChecker:()=>Gme,createTypeReferenceDirectiveResolutionCache:()=>kB,createTypeReferenceResolutionLoader:()=>sj,createUnparsedSourceFile:()=>pG,createWatchCompilerHost:()=>nPe,createWatchCompilerHostOfConfigFile:()=>Kge,createWatchCompilerHostOfFilesAndCompilerOptions:()=>e1e,createWatchFactory:()=>WY,createWatchHost:()=>VY,createWatchProgram:()=>iPe,createWatchStatusReporter:()=>qge,createWriteFileMeasuringIO:()=>rY,declarationNameToString:()=>il,decodeMappings:()=>TZ,decodedTextSpanIntersectsWith:()=>gL,decorateHelper:()=>cR,deduplicate:()=>No,defaultIncludeSpec:()=>vB,defaultInitCompilerOptions:()=>yB,defaultMaximumTruncationLength:()=>zN,detectSortCaseSensitivity:()=>jl,diagnosticCategoryName:()=>V6,diagnosticToString:()=>YS,directoryProbablyExists:()=>Mg,directorySeparator:()=>Yl,displayPart:()=>Fd,displayPartsToString:()=>p2e,disposeEmitNodes:()=>vG,documentSpansEqual:()=>sOe,dumpTracingLegend:()=>x5,elementAt:()=>d1,elideNodes:()=>Npe,emitComments:()=>Que,emitDetachedComments:()=>Kue,emitFiles:()=>KB,emitFilesAndReportErrors:()=>bj,emitFilesAndReportErrorsAndGetExitStatus:()=>Zge,emitModuleKindIsNonNodeESM:()=>LF,emitNewLineBeforeLeadingCommentOfPosition:()=>Yue,emitNewLineBeforeLeadingComments:()=>Xue,emitNewLineBeforeLeadingCommentsOfPosition:()=>Zue,emitSkippedWithNoDiagnostics:()=>mj,emitUsingBuildInfo:()=>ege,emptyArray:()=>tt,emptyFileSystemEntries:()=>iR,emptyMap:()=>JT,emptyOptions:()=>j0,emptySet:()=>sw,endsWith:()=>gi,ensurePathIsNonModuleName:()=>G6,ensureScriptKind:()=>WF,ensureTrailingDirectorySeparator:()=>Dp,entityNameToString:()=>Yd,enumerateInsertsAndDeletes:()=>p1,equalOwnProperties:()=>jr,equateStringsCaseInsensitive:()=>C0,equateStringsCaseSensitive:()=>q1,equateValues:()=>Dg,esDecorateHelper:()=>_R,escapeJsxAttributeString:()=>Z$,escapeLeadingUnderscores:()=>Kl,escapeNonAsciiString:()=>gN,escapeSnippetText:()=>h3,escapeString:()=>_S,every:()=>yn,expandPreOrPostfixIncrementOrDecrementExpression:()=>GR,explainFiles:()=>Xge,explainIfFileIsRedirectAndImpliedFormat:()=>jY,exportAssignmentIsAlias:()=>rk,exportStarHelper:()=>DR,expressionResultIsUnused:()=>Z_e,extend:()=>k0,extendsHelper:()=>vR,extensionFromPath:()=>y7,extensionIsTS:()=>$F,extensionsNotSupportingExtensionlessResolution:()=>VN,externalHelpersModuleNameText:()=>hb,factory:()=>M,fileExtensionIs:()=>Xl,fileExtensionIsOneOf:()=>Zl,fileIncludeReasonToDiagnostics:()=>UY,fileShouldUseJavaScriptRequire:()=>BK,filter:()=>Mn,filterMutate:()=>kd,filterSemanticDiagnostics:()=>lj,find:()=>on,findAncestor:()=>Sn,findBestPatternMatch:()=>Ox,findChildOfKind:()=>zc,findComputedPropertyNameCacheAssignment:()=>rB,findConfigFile:()=>sge,findContainingList:()=>Rj,findDiagnosticForNode:()=>Vhe,findFirstNonJsxWhitespaceToken:()=>ahe,findIndex:()=>zi,findLast:()=>rl,findLastIndex:()=>xo,findListItemInfo:()=>K1e,findMap:()=>hs,findModifier:()=>rC,findNextToken:()=>V7,findPackageJson:()=>jhe,findPackageJsons:()=>IK,findPrecedingMatchingToken:()=>Uj,findPrecedingToken:()=>j_,findSuperStatementIndex:()=>HB,findTokenOnLeftOfPosition:()=>zj,findUseStrictPrologue:()=>tX,first:()=>Fi,firstDefined:()=>bo,firstDefinedIterator:()=>Lu,firstIterator:()=>Nl,firstOrOnly:()=>MK,firstOrUndefined:()=>Ji,firstOrUndefinedIterator:()=>nc,fixupCompilerOptions:()=>cee,flatMap:()=>lo,flatMapIterator:()=>zf,flatMapToMutable:()=>jf,flatten:()=>x_,flattenCommaList:()=>Ope,flattenDestructuringAssignment:()=>L7,flattenDestructuringBinding:()=>I3,flattenDiagnosticMessageText:()=>Sb,forEach:()=>Vt,forEachAncestor:()=>Ble,forEachAncestorDirectory:()=>jy,forEachChild:()=>js,forEachChildRecursively:()=>Z9,forEachEmittedFile:()=>qZ,forEachEnclosingBlockScopeContainer:()=>rue,forEachEntry:()=>Zd,forEachExternalModuleToImportFrom:()=>VK,forEachImportClauseDeclaration:()=>dF,forEachKey:()=>tS,forEachLeadingCommentRange:()=>yD,forEachNameInAccessChainWalkingLeft:()=>b9e,forEachPropertyAssignment:()=>H5,forEachResolvedProjectReference:()=>fge,forEachReturnStatement:()=>i3,forEachRight:()=>Gl,forEachTrailingCommentRange:()=>vD,forEachTsConfigPropArray:()=>jD,forEachUnique:()=>gK,forEachYieldExpression:()=>sue,forSomeAncestorDirectory:()=>v9e,formatColorAndReset:()=>M3,formatDiagnostic:()=>iY,formatDiagnostics:()=>SIe,formatDiagnosticsWithColorAndContext:()=>_ge,formatGeneratedName:()=>D7,formatGeneratedNamePart:()=>jk,formatLocation:()=>aY,formatMessage:()=>SH,formatStringFromArgs:()=>sy,formatting:()=>Q_,fullTripleSlashAMDReferencePathRegEx:()=>ZH,fullTripleSlashReferencePathRegEx:()=>XH,generateDjb2Hash:()=>_i,generateTSConfig:()=>DAe,generatorHelper:()=>wR,getAdjustedReferenceLocation:()=>YQ,getAdjustedRenameLocation:()=>jj,getAliasDeclarationFromName:()=>z$,getAllAccessorDeclarations:()=>d7,getAllDecoratorsOfClass:()=>DZ,getAllDecoratorsOfClassElement:()=>XB,getAllJSDocTags:()=>Oq,getAllJSDocTagsOfKind:()=>ywe,getAllKeys:()=>__,getAllProjectOutputs:()=>QB,getAllSuperTypeNodes:()=>Gw,getAllUnscopedEmitHelpers:()=>CG,getAllowJSCompilerOption:()=>DN,getAllowSyntheticDefaultImports:()=>yS,getAncestor:()=>I4,getAnyExtensionFromPath:()=>xw,getAreDeclarationMapsEnabled:()=>RF,getAssignedExpandoInitializer:()=>nS,getAssignedName:()=>Aq,getAssignmentDeclarationKind:()=>Au,getAssignmentDeclarationPropertyAccessKind:()=>YD,getAssignmentTargetKind:()=>_7,getAutomaticTypeDirectiveNames:()=>SB,getBaseFileName:()=>H_,getBinaryOperatorPrecedence:()=>mN,getBuildInfo:()=>ej,getBuildInfoFileVersionMap:()=>AY,getBuildInfoText:()=>K0e,getBuildOrderFromAnyBuildOrder:()=>Cj,getBuilderCreationParameters:()=>hj,getBuilderFileEmit:()=>kb,getCheckFlags:()=>Du,getClassExtendsHeritageElement:()=>l3,getClassLikeDeclarationOfSymbol:()=>Zy,getCombinedLocalAndExportSymbolFlags:()=>l9,getCombinedModifierFlags:()=>Vv,getCombinedNodeFlags:()=>b1,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Eq,getCommentRange:()=>mh,getCommonSourceDirectory:()=>rP,getCommonSourceDirectoryOfConfig:()=>fE,getCompilerOptionValue:()=>jF,getCompilerOptionsDiffValue:()=>AAe,getConditions:()=>Wk,getConfigFileParsingDiagnostics:()=>R7,getConstantValue:()=>Dfe,getContainerNode:()=>U7,getContainingClass:()=>Z_,getContainingClassStaticBlock:()=>mue,getContainingFunction:()=>Jm,getContainingFunctionDeclaration:()=>due,getContainingFunctionOrClassStaticBlock:()=>tF,getContainingNodeArray:()=>Y_e,getContainingObjectLiteralElement:()=>fO,getContextualTypeFromParent:()=>rz,getContextualTypeFromParentOrAncestorTypeNode:()=>Bj,getCurrentTime:()=>gP,getDeclarationDiagnostics:()=>J0e,getDeclarationEmitExtensionForPath:()=>eH,getDeclarationEmitOutputFilePath:()=>Vue,getDeclarationEmitOutputFilePathWorker:()=>K$,getDeclarationFromName:()=>cN,getDeclarationModifierFlagsFromSymbol:()=>c0,getDeclarationOfKind:()=>wu,getDeclarationsOfKind:()=>Lle,getDeclaredExpandoInitializer:()=>HD,getDecorators:()=>nb,getDefaultCompilerOptions:()=>aJ,getDefaultExportInfoWorker:()=>xz,getDefaultFormatCodeSettings:()=>W1e,getDefaultLibFileName:()=>pL,getDefaultLibFilePath:()=>ERe,getDefaultLikeExportInfo:()=>bz,getDiagnosticText:()=>TAe,getDiagnosticsWithinSpan:()=>Whe,getDirectoryPath:()=>ga,getDirectoryToWatchFailedLookupLocation:()=>LY,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Jge,getDocumentPositionMapper:()=>Aye,getESModuleInterop:()=>fh,getEditsForFileRename:()=>fye,getEffectiveBaseTypeNode:()=>T1,getEffectiveConstraintOfTypeParameter:()=>N5,getEffectiveContainerForJSDocTemplateTag:()=>mF,getEffectiveImplementsTypeNodes:()=>nk,getEffectiveInitializer:()=>$D,getEffectiveJSDocHost:()=>cS,getEffectiveModifierFlags:()=>Pp,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>n_e,getEffectiveModifierFlagsNoCache:()=>a_e,getEffectiveReturnTypeNode:()=>Og,getEffectiveSetAccessorTypeAnnotationNode:()=>Gue,getEffectiveTypeAnnotationNode:()=>Lf,getEffectiveTypeParameterDeclarations:()=>ab,getEffectiveTypeRoots:()=>zI,getElementOrPropertyAccessArgumentExpressionOrName:()=>pF,getElementOrPropertyAccessName:()=>Hy,getElementsOfBindingOrAssignmentPattern:()=>Bk,getEmitDeclarations:()=>ag,getEmitFlags:()=>_c,getEmitHelpers:()=>oR,getEmitModuleDetectionKind:()=>P_e,getEmitModuleKind:()=>Ff,getEmitModuleResolutionKind:()=>Ju,getEmitScriptTarget:()=>gc,getEnclosingBlockScopeContainer:()=>sh,getEncodedSemanticClassifications:()=>$K,getEncodedSyntacticClassifications:()=>HK,getEndLinePosition:()=>LD,getEntityNameFromTypeNode:()=>UD,getEntrypointsFromPackageJsonInfo:()=>mDe,getErrorCountForSummary:()=>yj,getErrorSpanForNode:()=>r3,getErrorSummaryText:()=>Hge,getEscapedTextOfIdentifierOrLiteral:()=>Zw,getEscapedTextOfJsxAttributeName:()=>C9,getEscapedTextOfJsxNamespacedName:()=>vk,getExpandoInitializer:()=>D4,getExportAssignmentExpression:()=>J$,getExportInfoMap:()=>WP,getExportNeedsImportStarHelper:()=>u0e,getExpressionAssociativity:()=>$$,getExpressionPrecedence:()=>xF,getExternalHelpersModuleName:()=>hI,getExternalModuleImportEqualsDeclarationExpression:()=>qw,getExternalModuleName:()=>Q5,getExternalModuleNameFromDeclaration:()=>Jue,getExternalModuleNameFromPath:()=>Q$,getExternalModuleNameLiteral:()=>BS,getExternalModuleRequireArgument:()=>A$,getFallbackOptions:()=>aP,getFileEmitOutput:()=>hge,getFileMatcherPatterns:()=>m9,getFileNamesFromConfigSpecs:()=>PI,getFileWatcherEventKind:()=>O_,getFilesInErrorForSummary:()=>vj,getFirstConstructorWithBody:()=>ay,getFirstIdentifier:()=>Tm,getFirstNonSpaceCharacterPosition:()=>Ohe,getFirstProjectOutput:()=>HZ,getFixableErrorSpanExpression:()=>OK,getFormatCodeSettingsForWriting:()=>mz,getFullWidth:()=>MD,getFunctionFlags:()=>vf,getHeritageClause:()=>_N,getHostSignatureFromJSDoc:()=>N4,getIdentifierAutoGenerate:()=>uEe,getIdentifierGeneratedImportReference:()=>Lfe,getIdentifierTypeArguments:()=>b7,getImmediatelyInvokedFunctionExpression:()=>c7,getImpliedNodeFormatForFile:()=>uP,getImpliedNodeFormatForFileWorker:()=>_Y,getImportNeedsImportDefaultHelper:()=>kZ,getImportNeedsImportStarHelper:()=>$B,getIndentSize:()=>ck,getIndentString:()=>TF,getInferredLibraryNameResolveFrom:()=>oj,getInitializedVariables:()=>c9,getInitializerOfBinaryExpression:()=>M$,getInitializerOfBindingOrAssignmentElement:()=>vI,getInterfaceBaseTypeNodes:()=>Xw,getInternalEmitFlags:()=>K0,getInvokedExpression:()=>iF,getIsolatedModules:()=>Fg,getJSDocAugmentsTag:()=>nle,getJSDocClassTag:()=>Dq,getJSDocCommentRanges:()=>S$,getJSDocCommentsAndTags:()=>F$,getJSDocDeprecatedTag:()=>Nq,getJSDocDeprecatedTagNoCache:()=>ule,getJSDocEnumTag:()=>Iq,getJSDocHost:()=>lS,getJSDocImplementsTags:()=>ile,getJSDocOverrideTagNoCache:()=>lle,getJSDocParameterTags:()=>D5,getJSDocParameterTagsNoCache:()=>Qce,getJSDocPrivateTag:()=>pwe,getJSDocPrivateTagNoCache:()=>sle,getJSDocProtectedTag:()=>dwe,getJSDocProtectedTagNoCache:()=>ole,getJSDocPublicTag:()=>fwe,getJSDocPublicTagNoCache:()=>ale,getJSDocReadonlyTag:()=>mwe,getJSDocReadonlyTagNoCache:()=>cle,getJSDocReturnTag:()=>_le,getJSDocReturnType:()=>kD,getJSDocRoot:()=>Hw,getJSDocSatisfiesExpressionType:()=>$H,getJSDocSatisfiesTag:()=>Pq,getJSDocTags:()=>Z6,getJSDocTagsNoCache:()=>hwe,getJSDocTemplateTag:()=>gwe,getJSDocThisTag:()=>vL,getJSDocType:()=>ib,getJSDocTypeAliasName:()=>iX,getJSDocTypeAssertionType:()=>ZR,getJSDocTypeParameterDeclarations:()=>wF,getJSDocTypeParameterTags:()=>ele,getJSDocTypeParameterTagsNoCache:()=>tle,getJSDocTypeTag:()=>X6,getJSXImplicitImportBase:()=>JF,getJSXRuntimeImport:()=>UF,getJSXTransformEnabled:()=>zF,getKeyForCompilerOptions:()=>HX,getLanguageVariant:()=>wN,getLastChild:()=>vH,getLeadingCommentRanges:()=>Yh,getLeadingCommentRangesOfNode:()=>T$,getLeftmostAccessExpression:()=>_9,getLeftmostExpression:()=>f9,getLineAndCharacterOfPosition:()=>Ql,getLineInfo:()=>r0e,getLineOfLocalPosition:()=>e9,getLineOfLocalPositionFromLineMap:()=>p7,getLineStartPositionForPosition:()=>z0,getLineStarts:()=>zy,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>y_e,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>h_e,getLinesBetweenPositions:()=>Cw,getLinesBetweenRangeEndAndRangeStart:()=>mH,getLinesBetweenRangeEndPositions:()=>m9e,getLiteralText:()=>Xle,getLocalNameForExternalImport:()=>Rk,getLocalSymbolForExportDefault:()=>uk,getLocaleSpecificMessage:()=>Vo,getLocaleTimeString:()=>dP,getMappedContextSpan:()=>The,getMappedDocumentSpan:()=>hK,getMappedLocation:()=>RP,getMatchedFileSpec:()=>zY,getMatchedIncludeSpec:()=>JY,getMeaningFromDeclaration:()=>xP,getMeaningFromLocation:()=>J7,getMembersOfDeclaration:()=>oue,getModeForFileReference:()=>oP,getModeForResolutionAtIndex:()=>sY,getModeForUsageLocation:()=>_g,getModifiedTime:()=>Xa,getModifiers:()=>Kx,getModuleInstanceState:()=>tv,getModuleNameStringLiteralAt:()=>_j,getModuleSpecifierEndingPreference:()=>OH,getModuleSpecifierResolverHost:()=>fK,getNameForExportedSymbol:()=>fz,getNameFromIndexInfo:()=>nue,getNameFromPropertyName:()=>MP,getNameOfAccessExpression:()=>x_e,getNameOfCompilerOptionValue:()=>vX,getNameOfDeclaration:()=>Es,getNameOfExpando:()=>P$,getNameOfJSDocTypedef:()=>Zce,getNameOrArgument:()=>ZD,getNameTable:()=>ste,getNamesForExportedSymbol:()=>$he,getNamespaceDeclarationNode:()=>K5,getNewLineCharacter:()=>Yv,getNewLineKind:()=>VP,getNewLineOrDefaultFromHost:()=>wb,getNewTargetContainer:()=>hue,getNextJSDocCommentLocation:()=>R$,getNodeForGeneratedName:()=>tB,getNodeId:()=>Nc,getNodeKind:()=>L3,getNodeModifiers:()=>bE,getNodeModulePathParts:()=>UH,getNonAssignedNameOfDeclaration:()=>yL,getNonAssignmentOperatorForCompoundAssignment:()=>oE,getNonAugmentationDeclaration:()=>p$,getNonDecoratorTokenPosOfNode:()=>o$,getNormalizedAbsolutePath:()=>ms,getNormalizedAbsolutePathWithoutRoot:()=>dq,getNormalizedPathComponents:()=>Jv,getObjectFlags:()=>Mi,getOperator:()=>G$,getOperatorAssociativity:()=>H$,getOperatorPrecedence:()=>dN,getOptionFromName:()=>mX,getOptionsForLibraryResolution:()=>ZX,getOptionsNameMap:()=>Uk,getOrCreateEmitNode:()=>Gp,getOrCreateExternalHelpersModuleNameIfNeeded:()=>vpe,getOrUpdate:()=>$d,getOriginalNode:()=>au,getOriginalNodeId:()=>_p,getOriginalSourceFile:()=>r9e,getOutputDeclarationFileName:()=>_E,getOutputExtension:()=>$Z,getOutputFileNames:()=>cIe,getOutputPathsFor:()=>uE,getOutputPathsForBundle:()=>lE,getOwnEmitOutputFilePath:()=>Uue,getOwnKeys:()=>eo,getOwnValues:()=>If,getPackageJsonInfo:()=>w3,getPackageJsonTypesVersionsPaths:()=>TB,getPackageJsonsVisibleToFile:()=>zhe,getPackageNameFromTypesPackageName:()=>qI,getPackageScopeForPath:()=>AB,getParameterSymbolFromJSDoc:()=>sN,getParameterTypeNode:()=>q9e,getParentNodeInSpan:()=>FP,getParseTreeNode:()=>gs,getParsedCommandLineOfConfigFile:()=>wI,getPathComponents:()=>G_,getPathComponentsRelativeTo:()=>yq,getPathFromPathComponents:()=>M_,getPathUpdater:()=>XK,getPathsBasePath:()=>kF,getPatternFromSpec:()=>DH,getPendingEmitKind:()=>Yk,getPositionOfLineAndCharacter:()=>gD,getPossibleGenericSignatures:()=>tK,getPossibleOriginalInputExtensionForExtension:()=>Wue,getPossibleTypeArgumentsInfo:()=>rK,getPreEmitDiagnostics:()=>TIe,getPrecedingNonSpaceCharacterPosition:()=>ez,getPrivateIdentifier:()=>NZ,getProperties:()=>EZ,getProperty:()=>Hd,getPropertyArrayElementValue:()=>pue,getPropertyAssignmentAliasLikeExpression:()=>Lue,getPropertyNameForPropertyNameNode:()=>P4,getPropertyNameForUniqueESSymbol:()=>e9e,getPropertyNameOfBindingOrAssignmentElement:()=>nX,getPropertySymbolFromBindingElement:()=>Qj,getPropertySymbolsFromContextualType:()=>oJ,getQuoteFromPreference:()=>dK,getQuotePreference:()=>f0,getRangesWhere:()=>ua,getRefactorContextSpan:()=>ZS,getReferencedFileLocation:()=>pE,getRegexFromPattern:()=>mb,getRegularExpressionForWildcard:()=>d9,getRegularExpressionsForWildcards:()=>VF,getRelativePathFromDirectory:()=>th,getRelativePathFromFile:()=>fD,getRelativePathToDirectoryOrUrl:()=>XT,getRenameLocation:()=>zP,getReplacementSpanForContextToken:()=>sK,getResolutionDiagnostic:()=>dY,getResolutionModeOverrideForClause:()=>WS,getResolveJsonModule:()=>g7,getResolvePackageJsonExports:()=>CH,getResolvePackageJsonImports:()=>I9e,getResolvedExternalModuleName:()=>SF,getResolvedModule:()=>j5,getResolvedTypeReferenceDirective:()=>Dwe,getRestIndicatorOfBindingOrAssignmentElement:()=>QR,getRestParameterElementType:()=>k$,getRightMostAssignedExpression:()=>GD,getRootDeclaration:()=>ch,getRootDirectoryOfResolutionCache:()=>Uge,getRootLength:()=>Pg,getRootPathSplitLength:()=>XIe,getScriptKind:()=>TK,getScriptKindFromFileName:()=>PH,getScriptTargetFeatures:()=>c$,getSelectedEffectiveModifierFlags:()=>dS,getSelectedSyntacticModifierFlags:()=>r_e,getSemanticClassifications:()=>nye,getSemanticJsxChildren:()=>Qw,getSetAccessorTypeAnnotationNode:()=>$ue,getSetAccessorValueParameter:()=>t9,getSetExternalModuleIndicator:()=>EN,getShebang:()=>_L,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>L$,getSingleVariableOfVariableStatement:()=>tk,getSnapshotText:()=>Hj,getSnippetElement:()=>xG,getSourceFileOfModule:()=>jL,getSourceFileOfNode:()=>bn,getSourceFilePathInNewDir:()=>CF,getSourceFilePathInNewDirWorker:()=>rH,getSourceFileVersionAsHashFromText:()=>xj,getSourceFilesToEmit:()=>tH,getSourceMapRange:()=>L4,getSourceMapper:()=>Eye,getSourceTextOfNodeFromSourceFile:()=>e3,getSpanOfTokenAtPosition:()=>oh,getSpellingSuggestion:()=>ds,getStartPositionOfLine:()=>_b,getStartPositionOfRange:()=>o9,getStartsOnNewLine:()=>XN,getStaticPropertiesAndClassStaticBlock:()=>GB,getStrictOptionValue:()=>R0,getStringComparer:()=>$_,getSuperCallFromStatement:()=>wZ,getSuperContainer:()=>zD,getSupportedCodeFixes:()=>d2e,getSupportedExtensions:()=>g9,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>IN,getSwitchedType:()=>AK,getSymbolId:()=>oc,getSymbolNameForPrivateIdentifier:()=>fN,getSymbolTarget:()=>Ihe,getSyntacticClassifications:()=>oye,getSyntacticModifierFlags:()=>pb,getSyntacticModifierFlagsNoCache:()=>cH,getSynthesizedDeepClone:()=>Vl,getSynthesizedDeepCloneWithReplacements:()=>jP,getSynthesizedDeepClones:()=>F3,getSynthesizedDeepClonesWithReplacements:()=>SK,getSyntheticLeadingComments:()=>Tk,getSyntheticTrailingComments:()=>YN,getTargetLabel:()=>Oj,getTargetOfBindingOrAssignmentElement:()=>bb,getTemporaryModuleResolutionState:()=>EB,getTextOfConstantValue:()=>Zle,getTextOfIdentifierOrLiteral:()=>ng,getTextOfJSDocComment:()=>CD,getTextOfJsxAttributeName:()=>jN,getTextOfJsxNamespacedName:()=>w9,getTextOfNode:()=>F_,getTextOfNodeFromSourceText:()=>jw,getTextOfPropertyName:()=>U5,getThisContainer:()=>_d,getThisParameter:()=>u3,getTokenAtPosition:()=>Za,getTokenPosOfNode:()=>s7,getTokenSourceMapRange:()=>cEe,getTouchingPropertyName:()=>qm,getTouchingToken:()=>vE,getTrailingCommentRanges:()=>S4,getTrailingSemicolonDeferringWriter:()=>Y$,getTransformFlagsSubtreeExclusions:()=>kfe,getTransformers:()=>VZ,getTsBuildInfoEmitOutputFilePath:()=>s2,getTsConfigObjectLiteralExpression:()=>Vw,getTsConfigPropArrayElementValue:()=>eF,getTypeAnnotationNode:()=>Hue,getTypeArgumentOrTypeParameterList:()=>_he,getTypeKeywordOfTypeOnlyImport:()=>mK,getTypeNode:()=>Ofe,getTypeNodeIfAccessible:()=>EE,getTypeParameterFromJsDoc:()=>Due,getTypeParameterOwner:()=>uwe,getTypesPackageName:()=>IB,getUILocale:()=>f1,getUniqueName:()=>H7,getUniqueSymbolId:()=>Phe,getUseDefineForClassFields:()=>NN,getWatchErrorSummaryDiagnosticMessage:()=>RY,getWatchFactory:()=>age,group:()=>V1,groupBy:()=>X2,guessIndentation:()=>Mle,handleNoEmitOptions:()=>fY,hasAbstractModifier:()=>p3,hasAccessorModifier:()=>lh,hasAmbientModifier:()=>sH,hasChangesInResolutions:()=>i$,hasChildOfKind:()=>EP,hasContextSensitiveParameters:()=>GF,hasDecorators:()=>o0,hasDocComment:()=>uhe,hasDynamicName:()=>Hv,hasEffectiveModifier:()=>Qd,hasEffectiveModifiers:()=>EF,hasEffectiveReadonlyModifier:()=>r9,hasExtension:()=>Gh,hasIndexSignature:()=>EK,hasInitializer:()=>lb,hasInvalidEscape:()=>X$,hasJSDocNodes:()=>vm,hasJSDocParameterTags:()=>rle,hasJSFileExtension:()=>d3,hasJsonModuleEmitEnabled:()=>FF,hasOnlyExpressionInitializer:()=>a7,hasOverrideModifier:()=>aH,hasPossibleExternalModuleReference:()=>tue,hasProperty:()=>Hs,hasPropertyAccessExpressionWithName:()=>TP,hasQuestionToken:()=>oS,hasRecordedExternalHelpers:()=>ype,hasRestParameter:()=>Yq,hasScopeMarker:()=>Ale,hasStaticModifier:()=>R_,hasSyntacticModifier:()=>Pi,hasSyntacticModifiers:()=>t_e,hasTSFileExtension:()=>h9,hasTabstop:()=>K_e,hasTrailingDirectorySeparator:()=>Xh,hasType:()=>LL,hasTypeArguments:()=>Zwe,hasZeroOrOneAsteriskCharacter:()=>wH,helperString:()=>kG,hostGetCanonicalFileName:()=>Gv,hostUsesCaseSensitiveFileNames:()=>vN,idText:()=>ri,identifierIsThisKeyword:()=>iH,identifierToKeywordKind:()=>C4,identity:()=>Jc,identitySourceMapConsumer:()=>qB,ignoreSourceNewlines:()=>SG,ignoredPaths:()=>Hh,importDefaultHelper:()=>AR,importFromModuleSpecifier:()=>tN,importNameElisionDisabled:()=>kH,importStarHelper:()=>KN,indexOfAnyCharCode:()=>Lm,indexOfNode:()=>J5,indicesOf:()=>rc,inferredTypesContainingFile:()=>fP,insertImports:()=>TE,insertLeadingStatement:()=>NEe,insertSorted:()=>qo,insertStatementAfterCustomPrologue:()=>K6,insertStatementAfterStandardPrologue:()=>Owe,insertStatementsAfterCustomPrologue:()=>a$,insertStatementsAfterStandardPrologue:()=>ah,intersperse:()=>np,intrinsicTagNameToString:()=>HH,introducesArgumentsExoticObject:()=>_ue,inverseJsxOptionMap:()=>Q9,isAbstractConstructorSymbol:()=>v_e,isAbstractModifier:()=>$fe,isAccessExpression:()=>$l,isAccessibilityModifier:()=>aK,isAccessor:()=>w4,isAccessorModifier:()=>Gfe,isAliasSymbolDeclaration:()=>Ywe,isAliasableExpression:()=>uN,isAmbientModule:()=>Np,isAmbientPropertyDeclaration:()=>m$,isAnonymousFunctionDefinition:()=>Yw,isAnyDirectorySeparator:()=>$6,isAnyImportOrBareOrAccessedRequire:()=>eue,isAnyImportOrReExport:()=>FD,isAnyImportSyntax:()=>o7,isAnySupportedFileExtension:()=>z9e,isApplicableVersionedTypesKey:()=>WI,isArgumentExpressionOfElementAccess:()=>qQ,isArray:()=>ns,isArrayBindingElement:()=>AL,isArrayBindingOrAssignmentElement:()=>ND,isArrayBindingOrAssignmentPattern:()=>Wq,isArrayBindingPattern:()=>PS,isArrayLiteralExpression:()=>Op,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>c2,isArrayTypeNode:()=>PG,isArrowFunction:()=>Fl,isAsExpression:()=>sI,isAssertClause:()=>UR,isAssertEntry:()=>rpe,isAssertionExpression:()=>i7,isAssertionKey:()=>mle,isAssertsKeyword:()=>Wfe,isAssignmentDeclaration:()=>$w,isAssignmentExpression:()=>Hp,isAssignmentOperator:()=>Xv,isAssignmentPattern:()=>Lw,isAssignmentTarget:()=>iy,isAsteriskToken:()=>rI,isAsyncFunction:()=>ak,isAsyncModifier:()=>P9,isAutoAccessorPropertyDeclaration:()=>ym,isAwaitExpression:()=>Dk,isAwaitKeyword:()=>IG,isBigIntLiteral:()=>OR,isBinaryExpression:()=>Un,isBinaryOperatorToken:()=>Ape,isBindableObjectDefinePropertyCall:()=>iS,isBindableStaticAccessExpression:()=>u7,isBindableStaticElementAccessExpression:()=>fF,isBindableStaticNameExpression:()=>aS,isBindingElement:()=>Cc,isBindingElementOfBareOrAccessedRequire:()=>bue,isBindingName:()=>Kh,isBindingOrAssignmentElement:()=>ble,isBindingOrAssignmentPattern:()=>AD,isBindingPattern:()=>_o,isBlock:()=>oo,isBlockOrCatchScoped:()=>l$,isBlockScope:()=>g$,isBlockScopedContainerTopLevel:()=>Kle,isBooleanLiteral:()=>gle,isBreakOrContinueStatement:()=>Pw,isBreakStatement:()=>vEe,isBuildInfoFile:()=>$0e,isBuilderProgram:()=>Gge,isBundle:()=>zG,isBundleFileTextLike:()=>T_e,isCallChain:()=>e7,isCallExpression:()=>go,isCallExpressionTarget:()=>zQ,isCallLikeExpression:()=>n7,isCallOrNewExpression:()=>ey,isCallOrNewExpressionTarget:()=>JQ,isCallSignatureDeclaration:()=>Ck,isCallToHelper:()=>I9,isCaseBlock:()=>U9,isCaseClause:()=>W9,isCaseKeyword:()=>Xfe,isCaseOrDefaultClause:()=>OL,isCatchClause:()=>Ik,isCatchClauseVariableDeclaration:()=>Q_e,isCatchClauseVariableDeclarationOrBindingElement:()=>u$,isCheckJsEnabledForFile:()=>LN,isChildOfNodeWithKind:()=>Jwe,isCircularBuildOrder:()=>HS,isClassDeclaration:()=>cf,isClassElement:()=>yf,isClassExpression:()=>Mp,isClassLike:()=>Yi,isClassMemberModifier:()=>Jq,isClassOrTypeElement:()=>EL,isClassStaticBlockDeclaration:()=>fu,isCollapsedRange:()=>d9e,isColonToken:()=>Jfe,isCommaExpression:()=>gI,isCommaListExpression:()=>z9,isCommaSequence:()=>G9,isCommaToken:()=>zfe,isComment:()=>Vj,isCommonJsExportPropertyAssignment:()=>QL,isCommonJsExportedExpression:()=>lue,isCompoundAssignment:()=>sE,isComputedNonLiteralName:()=>RD,isComputedPropertyName:()=>jc,isConciseBody:()=>NL,isConditionalExpression:()=>Nk,isConditionalTypeNode:()=>Ek,isConstTypeReference:()=>Vy,isConstructSignatureDeclaration:()=>iI,isConstructorDeclaration:()=>Uu,isConstructorTypeNode:()=>L9,isContextualKeyword:()=>hF,isContinueStatement:()=>yEe,isCustomPrologue:()=>GL,isDebuggerStatement:()=>bEe,isDeclaration:()=>cp,isDeclarationBindingElement:()=>ED,isDeclarationFileName:()=>md,isDeclarationName:()=>Gy,isDeclarationNameOfEnumOrNamespace:()=>gH,isDeclarationReadonly:()=>HL,isDeclarationStatement:()=>Nle,isDeclarationWithTypeParameterChildren:()=>y$,isDeclarationWithTypeParameters:()=>h$,isDecorator:()=>lp,isDecoratorTarget:()=>H1e,isDefaultClause:()=>_I,isDefaultImport:()=>sS,isDefaultModifier:()=>Vfe,isDefaultedExpandoInitializer:()=>Tue,isDeleteExpression:()=>Qfe,isDeleteTarget:()=>j$,isDeprecatedDeclaration:()=>pz,isDestructuringAssignment:()=>Zv,isDiagnosticWithLocation:()=>PK,isDiskPathRoot:()=>T5,isDoStatement:()=>gEe,isDotDotDotToken:()=>MR,isDottedName:()=>i9,isDynamicName:()=>bF,isESSymbolIdentifier:()=>t9e,isEffectiveExternalModule:()=>rS,isEffectiveModuleDeclaration:()=>Qle,isEffectiveStrictModeSourceFile:()=>d$,isElementAccessChain:()=>Mq,isElementAccessExpression:()=>Ll,isEmittedFileOfProgram:()=>ige,isEmptyArrayLiteral:()=>u_e,isEmptyBindingElement:()=>Gce,isEmptyBindingPattern:()=>Hce,isEmptyObjectLiteral:()=>fH,isEmptyStatement:()=>FG,isEmptyStringLiteral:()=>E$,isEntityName:()=>hm,isEntityNameExpression:()=>ju,isEnumConst:()=>n3,isEnumDeclaration:()=>j4,isEnumMember:()=>C3,isEqualityOperatorKind:()=>nz,isEqualsGreaterThanToken:()=>Ufe,isExclamationToken:()=>nI,isExcludedFile:()=>Lde,isExclusivelyTypeOnlyImportOrExport:()=>oY,isExportAssignment:()=>Wu,isExportDeclaration:()=>Sf,isExportModifier:()=>FR,isExportName:()=>XR,isExportNamespaceAsDefaultDeclaration:()=>VL,isExportOrDefaultModifier:()=>bI,isExportSpecifier:()=>dd,isExportsIdentifier:()=>l7,isExportsOrModuleExportsOrAlias:()=>A3,isExpression:()=>ht,isExpressionNode:()=>$y,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Y1e,isExpressionOfOptionalChainRoot:()=>TL,isExpressionStatement:()=>$f,isExpressionWithTypeArguments:()=>t2,isExpressionWithTypeArgumentsInClassExtendsClause:()=>TN,isExternalModule:()=>c_,isExternalModuleAugmentation:()=>t3,isExternalModuleImportEqualsDeclaration:()=>A4,isExternalModuleIndicator:()=>ID,isExternalModuleNameRelative:()=>hf,isExternalModuleReference:()=>yh,isExternalModuleSymbol:()=>PP,isExternalOrCommonJsModule:()=>bm,isFileLevelUniqueName:()=>JL,isFileProbablyExternalModule:()=>SI,isFirstDeclarationOfSymbolParameter:()=>yK,isFixablePromiseHandler:()=>see,isForInOrOfStatement:()=>L5,isForInStatement:()=>RG,isForInitializer:()=>i0,isForOfStatement:()=>oI,isForStatement:()=>k7,isFunctionBlock:()=>a3,isFunctionBody:()=>$q,isFunctionDeclaration:()=>B_,isFunctionExpression:()=>_l,isFunctionExpressionOrArrowFunction:()=>hk,isFunctionLike:()=>Qs,isFunctionLikeDeclaration:()=>Jl,isFunctionLikeKind:()=>KT,isFunctionLikeOrClassStaticBlockDeclaration:()=>P5,isFunctionOrConstructorTypeNode:()=>vle,isFunctionOrModuleBlock:()=>Uq,isFunctionSymbol:()=>kue,isFunctionTypeNode:()=>uy,isFutureReservedKeyword:()=>Qwe,isGeneratedIdentifier:()=>uu,isGeneratedPrivateIdentifier:()=>QT,isGetAccessor:()=>cb,isGetAccessorDeclaration:()=>sg,isGetOrSetAccessorDeclaration:()=>bL,isGlobalDeclaration:()=>hOe,isGlobalScopeAugmentation:()=>x1,isGrammarError:()=>Wle,isHeritageClause:()=>Kd,isHoistedFunction:()=>XL,isHoistedVariableStatement:()=>ZL,isIdentifier:()=>Be,isIdentifierANonContextualKeyword:()=>yF,isIdentifierName:()=>Mue,isIdentifierOrThisTypeNode:()=>kpe,isIdentifierPart:()=>k4,isIdentifierStart:()=>Qh,isIdentifierText:()=>r0,isIdentifierTypePredicate:()=>fue,isIdentifierTypeReference:()=>H_e,isIfStatement:()=>S7,isIgnoredFileFromWildCardWatching:()=>nj,isImplicitGlob:()=>AH,isImportCall:()=>xm,isImportClause:()=>hh,isImportDeclaration:()=>Tf,isImportEqualsDeclaration:()=>Hf,isImportKeyword:()=>M9,isImportMeta:()=>q5,isImportOrExportSpecifier:()=>YT,isImportOrExportSpecifierName:()=>Nhe,isImportSpecifier:()=>Ld,isImportTypeAssertionContainer:()=>tpe,isImportTypeNode:()=>Qy,isImportableFile:()=>UK,isInComment:()=>o2,isInExpressionContext:()=>sF,isInJSDoc:()=>WD,isInJSFile:()=>jn,isInJSXText:()=>che,isInJsonFile:()=>cF,isInNonReferenceComment:()=>ghe,isInReferenceComment:()=>mhe,isInRightSideOfInternalImportEqualsDeclaration:()=>Nj,isInString:()=>W7,isInTemplateString:()=>eK,isInTopLevelContext:()=>rF,isIncrementalCompilation:()=>AN,isIndexSignatureDeclaration:()=>x7,isIndexedAccessTypeNode:()=>IS,isInferTypeNode:()=>AS,isInfinityOrNaNString:()=>S9,isInitializedProperty:()=>KI,isInitializedVariable:()=>hH,isInsideJsxElement:()=>Jj,isInsideJsxElementOrAttribute:()=>ohe,isInsideNodeModules:()=>Uhe,isInsideTemplateLiteral:()=>NP,isInstantiatedModule:()=>pZ,isInterfaceDeclaration:()=>Lp,isInternalDeclaration:()=>zZ,isInternalModuleImportEqualsDeclaration:()=>Z5,isInternalName:()=>eX,isIntersectionTypeNode:()=>aI,isIntrinsicJsxName:()=>ok,isIterationStatement:()=>ob,isJSDoc:()=>cg,isJSDocAllType:()=>ope,isJSDocAugmentsTag:()=>Lk,isJSDocAuthorTag:()=>kEe,isJSDocCallbackTag:()=>UG,isJSDocClassTag:()=>lpe,isJSDocCommentContainingNode:()=>ML,isJSDocConstructSignature:()=>ek,isJSDocDeprecatedTag:()=>HG,isJSDocEnumTag:()=>fI,isJSDocFunctionType:()=>Ok,isJSDocImplementsTag:()=>GG,isJSDocIndexSignature:()=>lF,isJSDocLikeText:()=>oX,isJSDocLink:()=>ape,isJSDocLinkCode:()=>spe,isJSDocLinkLike:()=>eS,isJSDocLinkPlain:()=>TEe,isJSDocMemberName:()=>z4,isJSDocNameReference:()=>q9,isJSDocNamepathType:()=>SEe,isJSDocNamespaceBody:()=>kwe,isJSDocNode:()=>F5,isJSDocNonNullableType:()=>VR,isJSDocNullableType:()=>Pk,isJSDocOptionalParameter:()=>BN,isJSDocOptionalType:()=>JG,isJSDocOverloadTag:()=>$9,isJSDocOverrideTag:()=>qR,isJSDocParameterTag:()=>Jg,isJSDocPrivateTag:()=>WG,isJSDocPropertyLikeTag:()=>kL,isJSDocPropertyTag:()=>_pe,isJSDocProtectedTag:()=>qG,isJSDocPublicTag:()=>VG,isJSDocReadonlyTag:()=>$G,isJSDocReturnTag:()=>$R,isJSDocSatisfiesExpression:()=>qH,isJSDocSatisfiesTag:()=>HR,isJSDocSeeTag:()=>CEe,isJSDocSignature:()=>J4,isJSDocTag:()=>R5,isJSDocTemplateTag:()=>Ug,isJSDocThisTag:()=>upe,isJSDocThrowsTag:()=>EEe,isJSDocTypeAlias:()=>M0,isJSDocTypeAssertion:()=>X9,isJSDocTypeExpression:()=>E7,isJSDocTypeLiteral:()=>Mk,isJSDocTypeTag:()=>H9,isJSDocTypedefTag:()=>pI,isJSDocUnknownTag:()=>wEe,isJSDocUnknownType:()=>cpe,isJSDocVariadicType:()=>WR,isJSXTagName:()=>X5,isJsonEqual:()=>BH,isJsonSourceFile:()=>O0,isJsxAttribute:()=>E1,isJsxAttributeLike:()=>PL,isJsxAttributeName:()=>tfe,isJsxAttributes:()=>S3,isJsxChild:()=>OD,isJsxClosingElement:()=>x3,isJsxClosingFragment:()=>npe,isJsxElement:()=>fy,isJsxExpression:()=>V9,isJsxFragment:()=>T3,isJsxNamespacedName:()=>A1,isJsxOpeningElement:()=>w1,isJsxOpeningFragment:()=>FS,isJsxOpeningLikeElement:()=>$p,isJsxOpeningLikeElementTagName:()=>G1e,isJsxSelfClosingElement:()=>C7,isJsxSpreadAttribute:()=>RS,isJsxTagNameExpression:()=>Fw,isJsxText:()=>kS,isJumpStatementTarget:()=>SP,isKeyword:()=>pd,isKeywordOrPunctuation:()=>gF,isKnownSymbol:()=>pN,isLabelName:()=>VQ,isLabelOfLabeledStatement:()=>UQ,isLabeledStatement:()=>b3,isLateVisibilityPaintedStatement:()=>qL,isLeftHandSideExpression:()=>Dd,isLeftHandSideOfAssignment:()=>u9e,isLet:()=>Uw,isLineBreak:()=>Wf,isLiteralComputedPropertyDeclarationName:()=>lN,isLiteralExpression:()=>t7,isLiteralExpressionOfObject:()=>jq,isLiteralImportTypeNode:()=>E4,isLiteralKind:()=>Ow,isLiteralLikeAccess:()=>_F,isLiteralLikeElementAccess:()=>XD,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Mj,isLiteralTypeLikeExpression:()=>jEe,isLiteralTypeLiteral:()=>wle,isLiteralTypeNode:()=>R4,isLocalName:()=>n2,isLogicalOperator:()=>o_e,isLogicalOrCoalescingAssignmentExpression:()=>lH,isLogicalOrCoalescingAssignmentOperator:()=>n9,isLogicalOrCoalescingBinaryExpression:()=>xN,isLogicalOrCoalescingBinaryOperator:()=>bN,isMappedTypeNode:()=>B9,isMemberName:()=>Uy,isMetaProperty:()=>j9,isMethodDeclaration:()=>g_,isMethodOrAccessor:()=>O5,isMethodSignature:()=>ly,isMinusToken:()=>NG,isMissingDeclaration:()=>xEe,isModifier:()=>Do,isModifierKind:()=>Wv,isModifierLike:()=>Ul,isModuleAugmentationExternal:()=>f$,isModuleBlock:()=>C1,isModuleBody:()=>Dle,isModuleDeclaration:()=>Vu,isModuleExportsAccessExpression:()=>ny,isModuleIdentifier:()=>O$,isModuleName:()=>Epe,isModuleOrEnumDeclaration:()=>IL,isModuleReference:()=>Ple,isModuleSpecifierLike:()=>Yj,isModuleWithStringLiteralName:()=>WL,isNameOfFunctionDeclaration:()=>HQ,isNameOfModuleDeclaration:()=>$Q,isNamedClassElement:()=>yle,isNamedDeclaration:()=>sp,isNamedEvaluation:()=>s0,isNamedEvaluationSource:()=>V$,isNamedExportBindings:()=>Fq,isNamedExports:()=>og,isNamedImportBindings:()=>Hq,isNamedImports:()=>r2,isNamedImportsOrExports:()=>xH,isNamedTupleMember:()=>R9,isNamespaceBody:()=>Swe,isNamespaceExport:()=>_y,isNamespaceExportDeclaration:()=>uI,isNamespaceImport:()=>vb,isNamespaceReexportDeclaration:()=>vue,isNewExpression:()=>v3,isNewExpressionTarget:()=>gE,isNightly:()=>hN,isNoSubstitutionTemplateLiteral:()=>CS,isNode:()=>bwe,isNodeArray:()=>Y6,isNodeArrayMultiLine:()=>g_e,isNodeDescendantOf:()=>c3,isNodeKind:()=>wD,isNodeLikeSystem:()=>i5,isNodeModulesDirectory:()=>vq,isNodeWithPossibleHoistedDeclaration:()=>Nue,isNonContextualKeyword:()=>Fue,isNonExportDefaultModifier:()=>nAe,isNonGlobalAmbientModule:()=>_$,isNonGlobalDeclaration:()=>Zhe,isNonNullAccess:()=>efe,isNonNullChain:()=>SL,isNonNullExpression:()=>MS,isNonStaticMethodOrAccessorWithPrivateName:()=>f0e,isNotEmittedOrPartiallyEmittedNode:()=>Twe,isNotEmittedStatement:()=>jG,isNullishCoalesce:()=>Lq,isNumber:()=>Gd,isNumericLiteral:()=>Um,isNumericLiteralName:()=>cy,isObjectBindingElementWithoutPropertyName:()=>LP,isObjectBindingOrAssignmentElement:()=>DD,isObjectBindingOrAssignmentPattern:()=>Vq,isObjectBindingPattern:()=>Bg,isObjectLiteralElement:()=>Zq,isObjectLiteralElementLike:()=>qv,isObjectLiteralExpression:()=>Dc,isObjectLiteralMethod:()=>tg,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>KL,isObjectTypeDeclaration:()=>gS,isOctalDigit:()=>lL,isOmittedExpression:()=>sf,isOptionalChain:()=>op,isOptionalChainRoot:()=>Nw,isOptionalDeclaration:()=>WH,isOptionalJSDocPropertyLikeTag:()=>RN,isOptionalTypeNode:()=>OG,isOuterExpression:()=>YR,isOutermostOptionalChain:()=>Iw,isOverrideModifier:()=>Hfe,isPackedArrayLiteral:()=>zH,isParameter:()=>Cs,isParameterDeclaration:()=>f7,isParameterOrCatchClauseVariable:()=>JH,isParameterPropertyDeclaration:()=>gm,isParameterPropertyModifier:()=>Mw,isParenthesizedExpression:()=>Md,isParenthesizedTypeNode:()=>DS,isParseTreeNode:()=>Aw,isPartOfTypeNode:()=>ry,isPartOfTypeQuery:()=>oF,isPartiallyEmittedExpression:()=>JR,isPatternMatch:()=>Vh,isPinnedComment:()=>UL,isPlainJsFile:()=>zL,isPlusToken:()=>DG,isPossiblyTypeArgumentPosition:()=>DP,isPostfixUnaryExpression:()=>LG,isPrefixUnaryExpression:()=>B4,isPrivateIdentifier:()=>Ea,isPrivateIdentifierClassElementDeclaration:()=>qp,isPrivateIdentifierPropertyAccessExpression:()=>I5,isPrivateIdentifierSymbol:()=>Rue,isProgramBundleEmitBuildInfo:()=>Ege,isProgramUptoDate:()=>uY,isPrologueDirective:()=>eg,isPropertyAccessChain:()=>xL,isPropertyAccessEntityNameExpression:()=>SN,isPropertyAccessExpression:()=>mi,isPropertyAccessOrQualifiedName:()=>Tle,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>xle,isPropertyAssignment:()=>Y_,isPropertyDeclaration:()=>fo,isPropertyName:()=>_u,isPropertyNameLiteral:()=>rg,isPropertySignature:()=>Vm,isProtoSetter:()=>Bue,isPrototypeAccess:()=>O4,isPrototypePropertyAssignment:()=>QD,isPunctuation:()=>U$,isPushOrUnshiftIdentifier:()=>W$,isQualifiedName:()=>Od,isQuestionDotToken:()=>LR,isQuestionOrExclamationToken:()=>Spe,isQuestionOrPlusOrMinusToken:()=>wpe,isQuestionToken:()=>yb,isRawSourceMap:()=>i0e,isReadonlyKeyword:()=>qfe,isReadonlyKeywordOrPlusOrMinusToken:()=>Cpe,isRecognizedTripleSlashComment:()=>s$,isReferenceFileLocation:()=>Zk,isReferencedFile:()=>W4,isRegularExpressionLiteral:()=>EG,isRequireCall:()=>Nd,isRequireVariableStatement:()=>I$,isRestParameter:()=>ty,isRestTypeNode:()=>MG,isReturnStatement:()=>jg,isReturnStatementWithFixablePromiseHandler:()=>Ez,isRightSideOfAccessExpression:()=>c_e,isRightSideOfPropertyAccess:()=>eC,isRightSideOfQualifiedName:()=>Z1e,isRightSideOfQualifiedNameOrPropertyAccess:()=>a9,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>l_e,isRootedDiskPath:()=>t0,isSameEntityName:()=>Y5,isSatisfiesExpression:()=>dEe,isScopeMarker:()=>Ele,isSemicolonClassElement:()=>Kfe,isSetAccessor:()=>$v,isSetAccessorDeclaration:()=>u0,isShebangTrivia:()=>Tq,isShorthandAmbientModuleSymbol:()=>zw,isShorthandPropertyAssignment:()=>_0,isSignedNumericLiteral:()=>vF,isSimpleCopiableExpression:()=>N3,isSimpleInlineableExpression:()=>D1,isSingleOrDoubleQuote:()=>qD,isSourceFile:()=>Ja,isSourceFileFromLibrary:()=>DE,isSourceFileJS:()=>Ip,isSourceFileNotJS:()=>Wwe,isSourceFileNotJson:()=>D$,isSourceMapping:()=>a0e,isSpecialPropertyDeclaration:()=>Sue,isSpreadAssignment:()=>k3,isSpreadElement:()=>gh,isStatement:()=>us,isStatementButNotDeclaration:()=>PD,isStatementOrBlock:()=>Ile,isStatementWithLocals:()=>Vle,isStatic:()=>so,isStaticModifier:()=>wS,isString:()=>bs,isStringAKeyword:()=>Kwe,isStringANonContextualKeyword:()=>uS,isStringAndEmptyAnonymousObjectIntersection:()=>phe,isStringDoubleQuoted:()=>uF,isStringLiteral:()=>sc,isStringLiteralLike:()=>Wc,isStringLiteralOrJsxExpression:()=>Ole,isStringLiteralOrTemplate:()=>Fhe,isStringOrNumericLiteralLike:()=>a0,isStringOrRegularExpressionOrTemplateLiteral:()=>iK,isStringTextContainingNode:()=>zq,isSuperCall:()=>W5,isSuperKeyword:()=>O9,isSuperOrSuperProperty:()=>Vwe,isSuperProperty:()=>fd,isSupportedSourceFileName:()=>U_e,isSwitchStatement:()=>cI,isSyntaxList:()=>Fk,isSyntheticExpression:()=>mEe,isSyntheticReference:()=>LS,isTagName:()=>WQ,isTaggedTemplateExpression:()=>T7,isTaggedTemplateTag:()=>$1e,isTemplateExpression:()=>jR,isTemplateHead:()=>kk,isTemplateLiteral:()=>M5,isTemplateLiteralKind:()=>sb,isTemplateLiteralToken:()=>ple,isTemplateLiteralTypeNode:()=>pEe,isTemplateLiteralTypeSpan:()=>Zfe,isTemplateMiddle:()=>jfe,isTemplateMiddleOrTemplateTail:()=>CL,isTemplateSpan:()=>J9,isTemplateTail:()=>AG,isTextWhiteSpaceLike:()=>xhe,isThis:()=>tC,isThisContainerOrFunctionBlock:()=>gue,isThisIdentifier:()=>f3,isThisInTypeQuery:()=>pS,isThisInitializedDeclaration:()=>nF,isThisInitializedObjectBindingExpression:()=>yue,isThisProperty:()=>JD,isThisTypeNode:()=>BR,isThisTypeParameter:()=>k9,isThisTypePredicate:()=>Uwe,isThrowStatement:()=>BG,isToken:()=>ZT,isTokenKind:()=>Bq,isTraceEnabled:()=>ev,isTransientSymbol:()=>ih,isTrivia:()=>ik,isTryStatement:()=>lI,isTupleTypeNode:()=>wk,isTypeAlias:()=>nN,isTypeAliasDeclaration:()=>zg,isTypeAssertionExpression:()=>Yfe,isTypeDeclaration:()=>yk,isTypeElement:()=>r7,isTypeKeyword:()=>xE,isTypeKeywordToken:()=>lK,isTypeKeywordTokenOrIdentifier:()=>$j,isTypeLiteralNode:()=>Sm,isTypeNode:()=>Oa,isTypeNodeKind:()=>bH,isTypeOfExpression:()=>Ak,isTypeOnlyExportDeclaration:()=>dle,isTypeOnlyImportDeclaration:()=>wL,isTypeOnlyImportOrExportDeclaration:()=>Q6,isTypeOperatorNode:()=>NS,isTypeParameterDeclaration:()=>eu,isTypePredicateNode:()=>RR,isTypeQueryNode:()=>F9,isTypeReferenceNode:()=>Rg,isTypeReferenceType:()=>FL,isUMDExportSymbol:()=>PF,isUnaryExpression:()=>qq,isUnaryExpressionWithWrite:()=>Cle,isUnicodeIdentifierStart:()=>cL,isUnionTypeNode:()=>ES,isUnparsedNode:()=>Rq,isUnparsedPrepend:()=>ipe,isUnparsedSource:()=>w7,isUnparsedTextLike:()=>fle,isUrl:()=>vw,isValidBigIntString:()=>HF,isValidESSymbolDeclaration:()=>uue,isValidTypeOnlyAliasUseSite:()=>v7,isValueSignatureDeclaration:()=>Iue,isVarConst:()=>qy,isVariableDeclaration:()=>Fa,isVariableDeclarationInVariableStatement:()=>YL,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>o3,isVariableDeclarationInitializedToRequire:()=>N$,isVariableDeclarationList:()=>of,isVariableLike:()=>$5,isVariableLikeOrAccessor:()=>cue,isVariableStatement:()=>S_,isVoidExpression:()=>OS,isWatchSet:()=>h9e,isWhileStatement:()=>hEe,isWhiteSpaceLike:()=>Zh,isWhiteSpaceSingleLine:()=>v1,isWithStatement:()=>epe,isWriteAccess:()=>u9,isWriteOnlyAccess:()=>IF,isYieldExpression:()=>zR,jsxModeNeedsExplicitImport:()=>RK,keywordPart:()=>tm,last:()=>fi,lastOrUndefined:()=>io,length:()=>Nr,libMap:()=>fB,libs:()=>MI,lineBreakPart:()=>iC,linkNamePart:()=>Ahe,linkPart:()=>bK,linkTextPart:()=>Kj,listFiles:()=>BY,loadModuleFromGlobalCache:()=>Cme,loadWithModeAwareCache:()=>cP,makeIdentifierFromModuleName:()=>Yle,makeImport:()=>l2,makeImportIfNecessary:()=>bhe,makeStringLiteral:()=>XS,mangleScopedPackageName:()=>iE,map:()=>er,mapAllOrFail:()=>Ii,mapDefined:()=>Mr,mapDefinedEntries:()=>Fu,mapDefinedIterator:()=>Ki,mapEntries:()=>xc,mapIterator:()=>tf,mapOneOrMany:()=>qhe,mapToDisplayParts:()=>Eb,matchFiles:()=>IH,matchPatternOrExact:()=>MH,matchedText:()=>zT,matchesExclude:()=>_B,maybeBind:()=>Zs,maybeSetLocalizedDiagnosticMessages:()=>w_e,memoize:()=>q_,memoizeCached:()=>d4,memoizeOne:()=>f_,memoizeWeak:()=>Dx,metadataHelper:()=>lR,min:()=>$1,minAndMax:()=>q_e,missingFileModifiedTime:()=>Ap,modifierToFlag:()=>mS,modifiersToFlags:()=>uh,moduleOptionDeclaration:()=>NX,moduleResolutionIsEqualTo:()=>Jle,moduleResolutionNameAndModeGetter:()=>mE,moduleResolutionOptionDeclarations:()=>dB,moduleResolutionSupportsPackageJsonExportsAndImports:()=>vS,moduleResolutionUsesNodeModules:()=>Gj,moduleSpecifiers:()=>D3,moveEmitHelpers:()=>Ife,moveRangeEnd:()=>DF,moveRangePastDecorators:()=>db,moveRangePastModifiers:()=>S1,moveRangePos:()=>M4,moveSyntheticComments:()=>Afe,mutateMap:()=>fk,mutateMapSkippingNewValues:()=>Xy,needsParentheses:()=>wK,needsScopeMarker:()=>DL,newCaseClauseTracker:()=>gz,newPrivateEnvironment:()=>m0e,noEmitNotification:()=>eP,noEmitSubstitution:()=>cE,noTransformers:()=>WZ,noTruncationMaximumTruncationLength:()=>QF,nodeCanBeDecorated:()=>aF,nodeHasName:()=>SD,nodeIsDecorated:()=>G5,nodeIsMissing:()=>Eu,nodeIsPresent:()=>I0,nodeIsSynthesized:()=>Ol,nodeModuleNameResolver:()=>cme,nodeModulesPathPart:()=>i2,nodeNextJsonConfigResolver:()=>lme,nodeOrChildIsDecorated:()=>VD,nodeOverlapsWithStartEnd:()=>XQ,nodePosToString:()=>Pwe,nodeSeenTracker:()=>GS,nodeStartsNewLexicalEnvironment:()=>q$,nodeToDisplayParts:()=>uOe,noop:()=>Ho,noopFileWatcher:()=>$S,normalizePath:()=>ec,normalizeSlashes:()=>kc,not:()=>H1,notImplemented:()=>xs,notImplementedResolver:()=>tj,nullNodeConverters:()=>fG,nullParenthesizerRules:()=>_G,nullTransformationContext:()=>rv,objectAllocator:()=>bf,operatorPart:()=>SE,optionDeclarations:()=>Ky,optionMapToObject:()=>yX,optionsAffectingProgramStructure:()=>MX,optionsForBuild:()=>FX,optionsForWatch:()=>LI,optionsHaveChanges:()=>B5,optionsHaveModuleResolutionChanges:()=>Fle,or:()=>Mf,orderedRemoveItem:()=>m4,orderedRemoveItemAt:()=>Z0,outFile:()=>Ml,packageIdToPackageName:()=>BL,packageIdToString:()=>ub,padLeft:()=>od,padRight:()=>g4,paramHelper:()=>uR,parameterIsThisKeyword:()=>_3,parameterNamePart:()=>khe,parseBaseNodeFactory:()=>fX,parseBigInt:()=>$_e,parseBuildCommand:()=>xAe,parseCommandLine:()=>bAe,parseCommandLineWorker:()=>dX,parseConfigFileTextToJson:()=>hX,parseConfigFileWithSystem:()=>KIe,parseConfigHostFromCompilerHostLike:()=>uj,parseCustomTypeOption:()=>oB,parseIsolatedEntityName:()=>JS,parseIsolatedJSDocComment:()=>Zpe,parseJSDocTypeExpressionForTests:()=>dAe,parseJsonConfigFileContent:()=>IAe,parseJsonSourceFileConfigFileContent:()=>NI,parseJsonText:()=>CI,parseListTypeOption:()=>cde,parseNodeFactory:()=>vh,parseNodeModuleFromPath:()=>JI,parsePackageName:()=>tZ,parsePseudoBigInt:()=>v9,parseValidBigInt:()=>jH,patchWriteFileEnsuringDirectory:()=>T4,pathContainsNodeModules:()=>$k,pathIsAbsolute:()=>K2,pathIsBareSpecifier:()=>eb,pathIsRelative:()=>ap,patternText:()=>j6,perfLogger:()=>jm,performIncrementalCompilation:()=>tPe,performance:()=>Vx,plainJSErrors:()=>dj,positionBelongsToNode:()=>ZQ,positionIsASICandidate:()=>az,positionIsSynthesized:()=>k1,positionsAreOnSameLine:()=>F0,preProcessFile:()=>wye,probablyUsesSemicolons:()=>UP,processCommentPragmas:()=>uX,processPragmasIntoFields:()=>_X,processTaggedTemplateExpression:()=>MZ,programContainsEsModules:()=>vhe,programContainsModules:()=>yhe,projectReferenceIsEqualTo:()=>r$,propKeyHelper:()=>SR,propertyNamePart:()=>Che,pseudoBigIntToString:()=>g3,punctuationPart:()=>fp,pushIfUnique:()=>kr,quote:()=>wE,quotePreferenceFromString:()=>pK,rangeContainsPosition:()=>kP,rangeContainsPositionExclusive:()=>CP,rangeContainsRange:()=>wm,rangeContainsRangeExclusive:()=>Q1e,rangeContainsStartEnd:()=>wP,rangeEndIsOnSameLineAsRangeStart:()=>CN,rangeEndPositionsAreOnSameLine:()=>d_e,rangeEquals:()=>Sa,rangeIsOnSingleLine:()=>m7,rangeOfNode:()=>FH,rangeOfTypeParameters:()=>RH,rangeOverlapsWithStartEnd:()=>yE,rangeStartIsOnSameLineAsRangeEnd:()=>m_e,rangeStartPositionsAreOnSameLine:()=>NF,readBuilderProgram:()=>kj,readConfigFile:()=>EI,readHelper:()=>xR,readJson:()=>s9,readJsonConfigFile:()=>fde,readJsonOrUndefined:()=>pH,realizeDiagnostics:()=>fte,reduceEachLeadingCommentRange:()=>Ece,reduceEachTrailingCommentRange:()=>Ace,reduceLeft:()=>la,reduceLeftIterator:()=>V_,reducePathComponents:()=>X_,refactor:()=>UE,regExpEscape:()=>M9e,relativeComplement:()=>Ai,removeAllComments:()=>HN,removeEmitHelper:()=>lEe,removeExtension:()=>ON,removeFileExtension:()=>Pd,removeIgnoredPath:()=>OY,removeMinAndVersionNumbers:()=>Ng,removeOptionality:()=>lhe,removePrefix:()=>cu,removeSuffix:()=>Uf,removeTrailingDirectorySeparator:()=>H6,repeatString:()=>OP,replaceElement:()=>We,resolutionExtensionIsTSOrJson:()=>MN,resolveConfigFileProjectName:()=>XY,resolveJSModule:()=>ame,resolveLibrary:()=>CB,resolveModuleName:()=>rE,resolveModuleNameFromCache:()=>oDe,resolvePackageNameToPackageJson:()=>tDe,resolvePath:()=>ud,resolveProjectReferencePath:()=>dE,resolveTripleslashReference:()=>ij,resolveTypeReferenceDirective:()=>WX,resolvingEmptyArray:()=>YF,restHelper:()=>hR,returnFalse:()=>Rm,returnNoopFileWatcher:()=>mP,returnTrue:()=>Cp,returnUndefined:()=>W_,returnsPromise:()=>aee,runInitializersHelper:()=>fR,sameFlatMap:()=>pl,sameMap:()=>ll,sameMapping:()=>GDe,scanShebangTrivia:()=>Sq,scanTokenAtPosition:()=>aue,scanner:()=>pp,screenStartingMessageCodes:()=>Sj,semanticDiagnosticsOptionDeclarations:()=>IX,serializeCompilerOptions:()=>bX,server:()=>V1e,servicesVersion:()=>ote,setCommentRange:()=>xf,setConfigFileInOptions:()=>TX,setConstantValue:()=>Nfe,setEachParent:()=>gk,setEmitFlags:()=>Ln,setFunctionNameHelper:()=>kR,setGetSourceFileAsHashVersioned:()=>Tj,setIdentifierAutoGenerate:()=>QN,setIdentifierGeneratedImportReference:()=>Mfe,setIdentifierTypeArguments:()=>e2,setInternalEmitFlags:()=>GN,setLocalizedDiagnosticMessages:()=>C_e,setModuleDefaultHelper:()=>ER,setNodeFlags:()=>X_e,setObjectAllocator:()=>k_e,setOriginalNode:()=>yi,setParent:()=>fc,setParentRecursive:()=>gb,setPrivateIdentifier:()=>M7,setResolvedModule:()=>jle,setResolvedTypeReferenceDirective:()=>zle,setSnippetElement:()=>TG,setSourceMapRange:()=>Mc,setStackTraceLimit:()=>Da,setStartsOnNewLine:()=>bG,setSyntheticLeadingComments:()=>F4,setSyntheticTrailingComments:()=>xS,setSys:()=>q6,setSysLog:()=>Y0,setTextRange:()=>yt,setTextRangeEnd:()=>mk,setTextRangePos:()=>b9,setTextRangePosEnd:()=>ph,setTextRangePosWidth:()=>x9,setTokenSourceMapRange:()=>Efe,setTypeNode:()=>Pfe,setUILocale:()=>Of,setValueDeclaration:()=>KD,shouldAllowImportingTsExtension:()=>Hk,shouldPreserveConstEnums:()=>h7,shouldResolveJsRequire:()=>BF,shouldUseUriStyleNodeCoreModules:()=>dz,showModuleSpecifier:()=>b_e,signatureHasLiteralTypes:()=>dZ,signatureHasRestParameter:()=>up,signatureToDisplayParts:()=>xK,single:()=>Se,singleElementArray:()=>pa,singleIterator:()=>Km,singleOrMany:()=>Ci,singleOrUndefined:()=>de,skipAlias:()=>Id,skipAssertions:()=>LEe,skipConstraint:()=>uK,skipOuterExpressions:()=>Gf,skipParentheses:()=>kl,skipPartiallyEmittedExpressions:()=>Q0,skipTrivia:()=>tc,skipTypeChecking:()=>y9,skipTypeParentheses:()=>B$,skipWhile:()=>aw,sliceAfter:()=>LH,some:()=>bt,sort:()=>qt,sortAndDeduplicate:()=>$o,sortAndDeduplicateDiagnostics:()=>E5,sourceFileAffectingCompilerOptions:()=>mB,sourceFileMayBeEmitted:()=>fS,sourceMapCommentRegExp:()=>VB,sourceMapCommentRegExpDontCareLineStart:()=>SZ,spacePart:()=>pu,spanMap:()=>xl,spreadArrayHelper:()=>TR,stableSort:()=>mr,startEndContainsRange:()=>GQ,startEndOverlapsWithStartEnd:()=>Lj,startOnNewLine:()=>Fp,startTracing:()=>b5,startsWith:()=>Ga,startsWithDirectory:()=>hq,startsWithUnderscore:()=>FK,startsWithUseStrict:()=>gpe,stringContains:()=>Qo,stringContainsAt:()=>Xhe,stringToToken:()=>Qx,stripQuotes:()=>ig,supportedDeclarationExtensions:()=>tR,supportedJSExtensions:()=>lG,supportedJSExtensionsFlat:()=>A9,supportedLocaleDirectories:()=>Kq,supportedTSExtensions:()=>xk,supportedTSExtensionsFlat:()=>cG,supportedTSImplementationExtensions:()=>rR,suppressLeadingAndTrailingTrivia:()=>rm,suppressLeadingTrivia:()=>tz,suppressTrailingTrivia:()=>Lhe,symbolEscapedNameNoDefault:()=>Zj,symbolName:()=>Bu,symbolNameNoDefault:()=>Xj,symbolPart:()=>She,symbolToDisplayParts:()=>kE,syntaxMayBeASICandidate:()=>JK,syntaxRequiresTrailingSemicolonOrASI:()=>iz,sys:()=>Cu,sysLog:()=>ku,tagNamesAreEquivalent:()=>U4,takeWhile:()=>i_,targetOptionDeclaration:()=>RI,templateObjectHelper:()=>bR,testFormatSettings:()=>q1e,textChangeRangeIsUnchanged:()=>$ce,textChangeRangeNewSpan:()=>Ew,textChanges:()=>Vn,textOrKeywordPart:()=>vK,textPart:()=>$m,textRangeContainsPositionInclusive:()=>dL,textSpanContainsPosition:()=>Cq,textSpanContainsTextSpan:()=>Uce,textSpanEnd:()=>qf,textSpanIntersection:()=>qce,textSpanIntersectsWith:()=>mL,textSpanIntersectsWithPosition:()=>Wce,textSpanIntersectsWithTextSpan:()=>cwe,textSpanIsEmpty:()=>Jce,textSpanOverlap:()=>Vce,textSpanOverlapsWith:()=>owe,textSpansEqual:()=>nC,textToKeywordObj:()=>bD,timestamp:()=>Tl,toArray:()=>pm,toBuilderFileEmit:()=>Pge,toBuilderStateFileInfoForMultiEmit:()=>Ige,toEditorSettings:()=>_O,toFileNameLowerCase:()=>Cd,toLowerCase:()=>jT,toPath:()=>Sl,toProgramEmitPending:()=>Oge,tokenIsIdentifierOrKeyword:()=>Wp,tokenIsIdentifierOrKeywordOrGreaterThan:()=>kce,tokenToString:()=>Uo,trace:()=>es,tracing:()=>Hi,tracingEnabled:()=>U6,transform:()=>DRe,transformClassFields:()=>b0e,transformDeclarations:()=>JZ,transformECMAScriptModule:()=>jZ,transformES2015:()=>M0e,transformES2016:()=>P0e,transformES2017:()=>k0e,transformES2018:()=>C0e,transformES2019:()=>w0e,transformES2020:()=>E0e,transformES2021:()=>A0e,transformES5:()=>L0e,transformESDecorators:()=>S0e,transformESNext:()=>D0e,transformGenerators:()=>F0e,transformJsx:()=>N0e,transformLegacyDecorators:()=>T0e,transformModule:()=>BZ,transformNodeModule:()=>j0e,transformNodes:()=>tP,transformSystemModule:()=>B0e,transformTypeScript:()=>y0e,transpile:()=>uMe,transpileModule:()=>Fye,transpileOptionValueCompilerOptions:()=>LX,trimString:()=>g1,trimStringEnd:()=>X1,trimStringStart:()=>y4,tryAddToSet:()=>bu,tryAndIgnoreErrors:()=>lz,tryCast:()=>di,tryDirectoryExists:()=>cz,tryExtractTSExtension:()=>AF,tryFileExists:()=>oz,tryGetClassExtendingExpressionWithTypeArguments:()=>uH,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>_H,tryGetDirectories:()=>sz,tryGetExtensionFromPath:()=>oy,tryGetImportFromModuleSpecifier:()=>rN,tryGetJSDocSatisfiesTypeNode:()=>ZF,tryGetModuleNameFromFile:()=>yI,tryGetModuleSpecifierFromDeclaration:()=>eN,tryGetNativePerformanceHooks:()=>J6,tryGetPropertyAccessOrIdentifierToString:()=>kN,tryGetPropertyNameOfBindingOrAssignmentElement:()=>KR,tryGetSourceMappingURL:()=>n0e,tryGetTextOfPropertyName:()=>Jw,tryIOAndConsumeErrors:()=>uz,tryParsePattern:()=>dk,tryParsePatterns:()=>qF,tryParseRawSourceMap:()=>xZ,tryReadDirectory:()=>NK,tryReadFile:()=>AI,tryRemoveDirectoryPrefix:()=>EH,tryRemoveExtension:()=>W_e,tryRemovePrefix:()=>z6,tryRemoveSuffix:()=>rf,typeAcquisitionDeclarations:()=>hB,typeAliasNamePart:()=>whe,typeDirectiveIsEqualTo:()=>Ule,typeKeywords:()=>hz,typeParameterNamePart:()=>Ehe,typeReferenceResolutionNameAndModeGetter:()=>_P,typeToDisplayParts:()=>BP,unchangedPollThresholds:()=>y1,unchangedTextChangeRange:()=>Qq,unescapeLeadingUnderscores:()=>Ba,unmangleScopedPackageName:()=>PB,unorderedRemoveItem:()=>Px,unorderedRemoveItemAt:()=>t5,unreachableCodeIsError:()=>O_e,unusedLabelIsError:()=>M_e,unwrapInnermostStatementOfLabel:()=>C$,updateErrorForNoInputFiles:()=>SX,updateLanguageServiceSourceFile:()=>ate,updateMissingFilePathsWatch:()=>nge,updatePackageJsonWatch:()=>vIe,updateResolutionField:()=>Vk,updateSharedExtendedConfigFileWatcher:()=>YZ,updateSourceFile:()=>lX,updateWatchingWildcardDirectories:()=>rj,usesExtensionsOnImports:()=>J_e,usingSingleLineStringWriter:()=>Rw,utf16EncodeAsString:()=>w5,validateLocaleAndSetLanguage:()=>_we,valuesHelper:()=>CR,version:()=>Zu,versionMajorMinor:()=>kp,visitArray:()=>bZ,visitCommaListElements:()=>QI,visitEachChild:()=>nn,visitFunctionBody:()=>Wm,visitIterationBody:()=>Xp,visitLexicalEnvironment:()=>UB,visitNode:()=>Ye,visitNodes:()=>dn,visitParameterList:()=>t_,walkUpBindingElementsAndPatterns:()=>A5,walkUpLexicalEnvironments:()=>d0e,walkUpOuterExpressions:()=>hpe,walkUpParenthesizedExpressions:()=>fb,walkUpParenthesizedTypes:()=>oN,walkUpParenthesizedTypesAndGetParentAndChild:()=>Oue,whitespaceOrMapCommentRegExp:()=>WB,writeCommentRange:()=>lk,writeFile:()=>Kw,writeFileEnsuringDirectories:()=>nH,zipToModeAwareCache:()=>XX,zipWith:()=>Bl});var U7e=or({"src/typescript/_namespaces/ts.ts"(){"use strict";ho(),Dj(),Ri(),SV()}}),FHe=S0({"src/typescript/typescript.ts"(e,t){U7e(),U7e(),typeof console!="undefined"&&(D.loggingHost={log(n,i){switch(n){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=J7e}});return FHe()})();Nf.exports&&(Nf.exports=Bc)},52300:function(Nf,D_,Ta){"use strict";Ta.d(D_,{DS:function(){return pl}});var bl=Ta(48764).lW;const Yc="3.7.5",ci=Yc,Bc=typeof atob=="function",U_=typeof btoa=="function",Bf=typeof bl=="function",or=typeof TextDecoder=="function"?new TextDecoder:void 0,S0=typeof TextEncoder=="function"?new TextEncoder:void 0,Dl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",kp=Array.prototype.slice.call(Dl),Zu=(Ii=>{let Mr={};return Ii.forEach((Ki,Fu)=>Mr[Ki]=Fu),Mr})(kp),rr=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Co=String.fromCharCode.bind(String),Nr=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):Ii=>new Uint8Array(Array.prototype.slice.call(Ii,0)),Vt=Ii=>Ii.replace(/=/g,"").replace(/[+\/]/g,Mr=>Mr=="+"?"-":"_"),Gl=Ii=>Ii.replace(/[^A-Za-z0-9\+\/]/g,""),bo=Ii=>{let Mr,Ki,Fu,$d,bu="";const Km=Ii.length%3;for(let xl=0;xl255||(Fu=Ii.charCodeAt(xl++))>255||($d=Ii.charCodeAt(xl++))>255)throw new TypeError("invalid character found");Mr=Ki<<16|Fu<<8|$d,bu+=kp[Mr>>18&63]+kp[Mr>>12&63]+kp[Mr>>6&63]+kp[Mr&63]}return Km?bu.slice(0,Km-3)+"===".substring(Km):bu},Lu=U_?Ii=>btoa(Ii):Bf?Ii=>bl.from(Ii,"binary").toString("base64"):bo,V_=Bf?Ii=>bl.from(Ii).toString("base64"):Ii=>{let Ki=[];for(let Fu=0,$d=Ii.length;Fu<$d;Fu+=4096)Ki.push(Co.apply(null,Ii.subarray(Fu,Fu+4096)));return Lu(Ki.join(""))},Bl=(Ii,Mr=!1)=>Mr?Vt(V_(Ii)):V_(Ii),np=Ii=>{if(Ii.length<2){var Mr=Ii.charCodeAt(0);return Mr<128?Ii:Mr<2048?Co(192|Mr>>>6)+Co(128|Mr&63):Co(224|Mr>>>12&15)+Co(128|Mr>>>6&63)+Co(128|Mr&63)}else{var Mr=65536+(Ii.charCodeAt(0)-55296)*1024+(Ii.charCodeAt(1)-56320);return Co(240|Mr>>>18&7)+Co(128|Mr>>>12&63)+Co(128|Mr>>>6&63)+Co(128|Mr&63)}},yn=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,on=Ii=>Ii.replace(yn,np),rl=Bf?Ii=>bl.from(Ii,"utf8").toString("base64"):S0?Ii=>V_(S0.encode(Ii)):Ii=>Lu(on(Ii)),zi=(Ii,Mr=!1)=>Mr?Vt(rl(Ii)):rl(Ii),xo=Ii=>zi(Ii,!0),hs=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Zn=Ii=>{switch(Ii.length){case 4:var Mr=(7&Ii.charCodeAt(0))<<18|(63&Ii.charCodeAt(1))<<12|(63&Ii.charCodeAt(2))<<6|63&Ii.charCodeAt(3),Ki=Mr-65536;return Co((Ki>>>10)+55296)+Co((Ki&1023)+56320);case 3:return Co((15&Ii.charCodeAt(0))<<12|(63&Ii.charCodeAt(1))<<6|63&Ii.charCodeAt(2));default:return Co((31&Ii.charCodeAt(0))<<6|63&Ii.charCodeAt(1))}},cl=Ii=>Ii.replace(hs,Zn),Lm=Ii=>{if(Ii=Ii.replace(/\s+/g,""),!rr.test(Ii))throw new TypeError("malformed base64.");Ii+="==".slice(2-(Ii.length&3));let Mr,Ki="",Fu,$d;for(let bu=0;bu>16&255):$d===64?Co(Mr>>16&255,Mr>>8&255):Co(Mr>>16&255,Mr>>8&255,Mr&255);return Ki},ef=Bc?Ii=>atob(Gl(Ii)):Bf?Ii=>bl.from(Ii,"base64").toString("binary"):Lm,Mn=Bf?Ii=>Nr(bl.from(Ii,"base64")):Ii=>Nr(ef(Ii).split("").map(Mr=>Mr.charCodeAt(0))),kd=Ii=>Mn(er(Ii)),vu=Bf?Ii=>bl.from(Ii,"base64").toString("utf8"):or?Ii=>or.decode(Mn(Ii)):Ii=>cl(ef(Ii)),er=Ii=>Gl(Ii.replace(/[-_]/g,Mr=>Mr=="-"?"+":"/")),tf=Ii=>vu(er(Ii)),ll=Ii=>{if(typeof Ii!="string")return!1;const Mr=Ii.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(Mr)||!/[^\s0-9a-zA-Z\-_]/.test(Mr)},x_=Ii=>({value:Ii,enumerable:!1,writable:!0,configurable:!0}),lo=function(){const Ii=(Mr,Ki)=>Object.defineProperty(String.prototype,Mr,x_(Ki));Ii("fromBase64",function(){return tf(this)}),Ii("toBase64",function(Mr){return zi(this,Mr)}),Ii("toBase64URI",function(){return zi(this,!0)}),Ii("toBase64URL",function(){return zi(this,!0)}),Ii("toUint8Array",function(){return kd(this)})},jf=function(){const Ii=(Mr,Ki)=>Object.defineProperty(Uint8Array.prototype,Mr,x_(Ki));Ii("toBase64",function(Mr){return Bl(this,Mr)}),Ii("toBase64URI",function(){return Bl(this,!0)}),Ii("toBase64URL",function(){return Bl(this,!0)})},pl={version:Yc,VERSION:ci,atob:ef,atobPolyfill:Lm,btoa:Lu,btoaPolyfill:bo,fromBase64:tf,toBase64:zi,encode:zi,encodeURI:xo,encodeURL:xo,utob:on,btou:cl,decode:tf,isValid:ll,fromUint8Array:Bl,toUint8Array:kd,extendString:lo,extendUint8Array:jf,extendBuiltins:()=>{lo(),jf()}}},41008:function(Nf,D_,Ta){"use strict";Ta.d(D_,{Z:function(){return K1}});class bl{constructor(C,I,W){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=C,this.start=I,this.end=W}static range(C,I){return I?!C||!C.loc||!I.loc||C.loc.lexer!==I.loc.lexer?null:new bl(C.loc.lexer,C.loc.start,I.loc.end):C&&C.loc}}class Yc{constructor(C,I){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=C,this.loc=I}range(C,I){return new Yc(I,bl.range(this,C))}}class ci{constructor(C,I){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var W="KaTeX parse error: "+C,oe,xe,et=I&&I.loc;if(et&&et.start<=et.end){var vt=et.lexer.input;oe=et.start,xe=et.end,oe===vt.length?W+=" at end of input: ":W+=" at position "+(oe+1)+": ";var At=vt.slice(oe,xe).replace(/[^]/g,"$&\u0332"),Dr;oe>15?Dr="\u2026"+vt.slice(oe-15,oe):Dr=vt.slice(0,oe);var Zr;xe+15":">","<":"<",'"':""","'":"'"},Dl=/[&><"']/g;function kp(j){return String(j).replace(Dl,C=>S0[C])}var Zu=function j(C){return C.type==="ordgroup"||C.type==="color"?C.body.length===1?j(C.body[0]):C:C.type==="font"?j(C.body):C},rr=function(C){var I=Zu(C);return I.type==="mathord"||I.type==="textord"||I.type==="atom"},Co=function(C){if(!C)throw new Error("Expected non-null, but got "+String(C));return C},Nr=function(C){var I=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(C);return I!=null?I[1]:"_relative"},Vt={contains:Bc,deflt:U_,escape:kp,hyphenate:or,getBaseElem:Zu,isCharacterBox:rr,protocolFromUrl:Nr},Gl={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:j=>"#"+j},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(j,C)=>(C.push(j),C)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:j=>Math.max(0,j),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:j=>Math.max(0,j),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:j=>Math.max(0,j),cli:"-e, --max-expand ",cliProcessor:j=>j==="Infinity"?1/0:parseInt(j)},globalGroup:{type:"boolean",cli:!1}};function bo(j){if(j.default)return j.default;var C=j.type,I=Array.isArray(C)?C[0]:C;if(typeof I!="string")return I.enum[0];switch(I){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Lu{constructor(C){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,C=C||{};for(var I in Gl)if(Gl.hasOwnProperty(I)){var W=Gl[I];this[I]=C[I]!==void 0?W.processor?W.processor(C[I]):C[I]:bo(W)}}reportNonstrict(C,I,W){var oe=this.strict;if(typeof oe=="function"&&(oe=oe(C,I,W)),!(!oe||oe==="ignore")){if(oe===!0||oe==="error")throw new ci("LaTeX-incompatible input and strict mode is set to 'error': "+(I+" ["+C+"]"),W);oe==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(I+" ["+C+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+oe+"': "+I+" ["+C+"]"))}}useStrictBehavior(C,I,W){var oe=this.strict;if(typeof oe=="function")try{oe=oe(C,I,W)}catch(xe){oe="error"}return!oe||oe==="ignore"?!1:oe===!0||oe==="error"?!0:oe==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(I+" ["+C+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+oe+"': "+I+" ["+C+"]")),!1)}isTrusted(C){C.url&&!C.protocol&&(C.protocol=Vt.protocolFromUrl(C.url));var I=typeof this.trust=="function"?this.trust(C):this.trust;return!!I}}class V_{constructor(C,I,W){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=C,this.size=I,this.cramped=W}sup(){return Zn[cl[this.id]]}sub(){return Zn[Lm[this.id]]}fracNum(){return Zn[ef[this.id]]}fracDen(){return Zn[Mn[this.id]]}cramp(){return Zn[kd[this.id]]}text(){return Zn[vu[this.id]]}isTight(){return this.size>=2}}var Bl=0,np=1,yn=2,on=3,rl=4,zi=5,xo=6,hs=7,Zn=[new V_(Bl,0,!1),new V_(np,0,!0),new V_(yn,1,!1),new V_(on,1,!0),new V_(rl,2,!1),new V_(zi,2,!0),new V_(xo,3,!1),new V_(hs,3,!0)],cl=[rl,zi,rl,zi,xo,hs,xo,hs],Lm=[zi,zi,zi,zi,hs,hs,hs,hs],ef=[yn,on,rl,zi,xo,hs,xo,hs],Mn=[on,on,zi,zi,hs,hs,hs,hs],kd=[np,np,on,on,zi,zi,hs,hs],vu=[Bl,np,yn,on,yn,on,yn,on],er={DISPLAY:Zn[Bl],TEXT:Zn[yn],SCRIPT:Zn[rl],SCRIPTSCRIPT:Zn[xo]},tf=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function ll(j){for(var C=0;C=oe[0]&&j<=oe[1])return I.name}return null}var x_=[];tf.forEach(j=>j.blocks.forEach(C=>x_.push(...C)));function lo(j){for(var C=0;C=x_[C]&&j<=x_[C+1])return!0;return!1}var jf=80,zf=function(C,I){return"M95,"+(622+C+I)+` -c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 -c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 -c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 -s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 -c69,-144,104.5,-217.7,106.5,-221 -l`+C/2.075+" -"+C+` -c5.3,-9.3,12,-14,20,-14 -H400000v`+(40+C)+`H845.2724 -s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 -c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+C)+" "+I+"h400000v"+(40+C)+"h-400000z"},pl=function(C,I){return"M263,"+(601+C+I)+`c0.7,0,18,39.7,52,119 -c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 -c340,-704.7,510.7,-1060.3,512,-1067 -l`+C/2.084+" -"+C+` -c4.7,-7.3,11,-11,19,-11 -H40000v`+(40+C)+`H1012.3 -s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 -c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 -s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 -c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+C)+" "+I+"h400000v"+(40+C)+"h-400000z"},Ii=function(C,I){return"M983 "+(10+C+I)+` -l`+C/3.13+" -"+C+` -c4,-6.7,10,-10,18,-10 H400000v`+(40+C)+` -H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 -s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 -c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 -c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 -c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 -c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+C)+" "+I+"h400000v"+(40+C)+"h-400000z"},Mr=function(C,I){return"M424,"+(2398+C+I)+` -c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 -c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 -s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 -s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 -l`+C/4.223+" -"+C+`c4,-6.7,10,-10,18,-10 H400000 -v`+(40+C)+`H1014.6 -s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 -c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2z M`+(1001+C)+" "+I+` -h400000v`+(40+C)+"h-400000z"},Ki=function(C,I){return"M473,"+(2713+C+I)+` -c339.3,-1799.3,509.3,-2700,510,-2702 l`+C/5.298+" -"+C+` -c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+C)+`H1017.7 -s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 -c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 -s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+C)+" "+I+"h400000v"+(40+C)+"H1017.7z"},Fu=function(C){var I=C/2;return"M400000 "+C+" H0 L"+I+" 0 l65 45 L145 "+(C-80)+" H400000z"},$d=function(C,I,W){var oe=W-54-I-C;return"M702 "+(C+I)+"H400000"+(40+C)+` -H742v`+oe+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 -h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 -c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+I+"H400000v"+(40+C)+"H742z"},bu=function(C,I,W){I=1e3*I;var oe="";switch(C){case"sqrtMain":oe=zf(I,jf);break;case"sqrtSize1":oe=pl(I,jf);break;case"sqrtSize2":oe=Ii(I,jf);break;case"sqrtSize3":oe=Mr(I,jf);break;case"sqrtSize4":oe=Ki(I,jf);break;case"sqrtTall":oe=$d(I,jf,W)}return oe},Km=function(C,I){switch(C){case"\u239C":return"M291 0 H417 V"+I+" H291z M291 0 H417 V"+I+" H291z";case"\u2223":return"M145 0 H188 V"+I+" H145z M145 0 H188 V"+I+" H145z";case"\u2225":return"M145 0 H188 V"+I+" H145z M145 0 H188 V"+I+" H145z"+("M367 0 H410 V"+I+" H367z M367 0 H410 V"+I+" H367z");case"\u239F":return"M457 0 H583 V"+I+" H457z M457 0 H583 V"+I+" H457z";case"\u23A2":return"M319 0 H403 V"+I+" H319z M319 0 H403 V"+I+" H319z";case"\u23A5":return"M263 0 H347 V"+I+" H263z M263 0 H347 V"+I+" H263z";case"\u23AA":return"M384 0 H504 V"+I+" H384z M384 0 H504 V"+I+" H384z";case"\u23D0":return"M312 0 H355 V"+I+" H312z M312 0 H355 V"+I+" H312z";case"\u2016":return"M257 0 H300 V"+I+" H257z M257 0 H300 V"+I+" H257z"+("M478 0 H521 V"+I+" H478z M478 0 H521 V"+I+" H478z");default:return""}},xl={doubleleftarrow:`M262 157 -l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 - 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 - 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 -c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 - 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 --86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 --2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z -m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l --10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 - 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 --33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 --17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 --13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 -c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 --107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 - 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 --5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 -c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 - 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 - 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 - l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 --45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 - 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 - 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 - 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 --331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 -H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 - 435 0h399565z`,leftgroupunder:`M400000 262 -H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 - 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 --3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 --18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 --196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 - 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 --4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 --10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z -m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 - 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 - 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 --152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 - 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 --2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 -v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 --83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 --68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 - 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z -M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z -M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 --.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 -c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 - 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z -M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 -c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 --53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 - 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 - 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 -c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 - 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 - 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 --5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 --320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z -m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 -60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 --451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z -m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 -c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 --480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z -m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 -85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 --707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z -m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 -c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 --16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 - 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 - 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 --40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 - 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l --6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 -s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 -c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 - 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 --174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 - 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 - 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 --3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 --10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 - 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 --18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 - 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z -m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 - 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 --7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 --27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 - 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 - 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 --64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z -m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 - 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 --13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 - 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z -M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 - 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 --52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 --167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 - 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 --70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 --40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 --37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 - 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 -c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 - 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 - 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 --19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 - 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 --2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 - 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 - 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 --68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 --8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 - 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 -c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 - 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 --11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 - 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 - 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 - -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 --11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 - 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 - 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 - -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 -3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 -10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 --1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 --7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 -H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 -c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 -c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, --5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 -c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 -c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 -s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 -121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 -s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 -c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z -M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 --27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 -13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 --84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 --119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 -151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 -c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 -c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 -c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z -M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, -1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, --152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z -M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},xc=function(C,I){switch(C){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+I+` v1759 h347 v-84 -H403z M403 1759 V0 H319 V1759 v`+I+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+I+` v1759 H0 v84 H347z -M347 1759 V0 H263 V1759 v`+I+" v1759 h84z";case"vert":return"M145 15 v585 v"+I+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-I+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+I+" v585 h43z";case"doublevert":return"M145 15 v585 v"+I+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-I+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+I+` v585 h43z -M367 15 v585 v`+I+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-I+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+I+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+I+` v1715 h263 v84 H319z -MM319 602 V0 H403 V602 v`+I+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+I+` v1799 H0 v-84 H319z -MM319 602 V0 H403 V602 v`+I+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+I+` v602 h84z -M403 1759 V0 H319 V1759 v`+I+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+I+` v602 h84z -M347 1759 V0 h-84 V1759 v`+I+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 -c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, --36,557 l0,`+(I+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, -949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 -c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, --544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 -l0,-`+(I+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, --210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, -63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 -c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(I+9)+` -c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 -c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 -c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 -c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 -l0,-`+(I+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class bt{constructor(C){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=C,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(C){return Vt.contains(this.classes,C)}toNode(){for(var C=document.createDocumentFragment(),I=0;II.toText();return this.children.map(C).join("")}}var ua={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Nn={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Jo={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function rc(j,C){ua[j]=C}function nl(j,C,I){if(!ua[C])throw new Error("Font metrics not found for font: "+C+".");var W=j.charCodeAt(0),oe=ua[C][W];if(!oe&&j[0]in Jo&&(W=Jo[j[0]].charCodeAt(0),oe=ua[C][W]),!oe&&I==="text"&&lo(W)&&(oe=ua[C][77]),oe)return{depth:oe[0],height:oe[1],italic:oe[2],skew:oe[3],width:oe[4]}}var wc={};function No(j){var C;if(j>=5?C=0:j>=3?C=1:C=2,!wc[C]){var I=wc[C]={cssEmPerMu:Nn.quad[C]/18};for(var W in Nn)Nn.hasOwnProperty(W)&&(I[W]=Nn[W][C])}return wc[C]}var Yu=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],dl=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],qo=function(C,I){return I.size<2?C:Yu[C-1][I.size-1]};class $o{constructor(C){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=C.style,this.color=C.color,this.size=C.size||$o.BASESIZE,this.textSize=C.textSize||this.size,this.phantom=!!C.phantom,this.font=C.font||"",this.fontFamily=C.fontFamily||"",this.fontWeight=C.fontWeight||"",this.fontShape=C.fontShape||"",this.sizeMultiplier=dl[this.size-1],this.maxSize=C.maxSize,this.minRuleThickness=C.minRuleThickness,this._fontMetrics=void 0}extend(C){var I={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var W in C)C.hasOwnProperty(W)&&(I[W]=C[W]);return new $o(I)}havingStyle(C){return this.style===C?this:this.extend({style:C,size:qo(this.textSize,C)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(C){return this.size===C&&this.textSize===C?this:this.extend({style:this.style.text(),size:C,textSize:C,sizeMultiplier:dl[C-1]})}havingBaseStyle(C){C=C||this.style.text();var I=qo($o.BASESIZE,C);return this.size===I&&this.textSize===$o.BASESIZE&&this.style===C?this:this.extend({style:C,size:I})}havingBaseSizing(){var C;switch(this.style.id){case 4:case 5:C=3;break;case 6:case 7:C=1;break;default:C=6}return this.extend({style:this.style.text(),size:C})}withColor(C){return this.extend({color:C})}withPhantom(){return this.extend({phantom:!0})}withFont(C){return this.extend({font:C})}withTextFontFamily(C){return this.extend({fontFamily:C,font:""})}withTextFontWeight(C){return this.extend({fontWeight:C,font:""})}withTextFontShape(C){return this.extend({fontShape:C,font:""})}sizingClasses(C){return C.size!==this.size?["sizing","reset-size"+C.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==$o.BASESIZE?["sizing","reset-size"+this.size,"size"+$o.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=No(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}$o.BASESIZE=6;var xu={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},jl={ex:!0,em:!0,mu:!0},Lo=function(C){return typeof C!="string"&&(C=C.unit),C in xu||C in jl||C==="ex"},Ma=function(C,I){var W;if(C.unit in xu)W=xu[C.unit]/I.fontMetrics().ptPerEm/I.sizeMultiplier;else if(C.unit==="mu")W=I.fontMetrics().cssEmPerMu;else{var oe;if(I.style.isTight()?oe=I.havingStyle(I.style.text()):oe=I,C.unit==="ex")W=oe.fontMetrics().xHeight;else if(C.unit==="em")W=oe.fontMetrics().quad;else throw new ci("Invalid unit: '"+C.unit+"'");oe!==I&&(W*=oe.sizeMultiplier/I.sizeMultiplier)}return Math.min(C.number*W,I.maxSize)},Ai=function(C){return+C.toFixed(4)+"em"},Ht=function(C){return C.filter(I=>I).join(" ")},Ss=function(C,I,W){if(this.classes=C||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=W||{},I){I.style.isTight()&&this.classes.push("mtight");var oe=I.getColor();oe&&(this.style.color=oe)}},Ir=function(C){var I=document.createElement(C);I.className=Ht(this.classes);for(var W in this.style)this.style.hasOwnProperty(W)&&(I.style[W]=this.style[W]);for(var oe in this.attributes)this.attributes.hasOwnProperty(oe)&&I.setAttribute(oe,this.attributes[oe]);for(var xe=0;xe",I};class kr{constructor(C,I,W,oe){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Ss.call(this,C,W,oe),this.children=I||[]}setAttribute(C,I){this.attributes[C]=I}hasClass(C){return Vt.contains(this.classes,C)}toNode(){return Ir.call(this,"span")}toMarkup(){return Et.call(this,"span")}}class ct{constructor(C,I,W,oe){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Ss.call(this,I,oe),this.children=W||[],this.setAttribute("href",C)}setAttribute(C,I){this.attributes[C]=I}hasClass(C){return Vt.contains(this.classes,C)}toNode(){return Ir.call(this,"a")}toMarkup(){return Et.call(this,"a")}}class Ot{constructor(C,I,W){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=I,this.src=C,this.classes=["mord"],this.style=W}hasClass(C){return Vt.contains(this.classes,C)}toNode(){var C=document.createElement("img");C.src=this.src,C.alt=this.alt,C.className="mord";for(var I in this.style)this.style.hasOwnProperty(I)&&(C.style[I]=this.style[I]);return C}toMarkup(){var C=""+this.alt+"0&&(I=document.createElement("span"),I.style.marginRight=Ai(this.italic)),this.classes.length>0&&(I=I||document.createElement("span"),I.className=Ht(this.classes));for(var W in this.style)this.style.hasOwnProperty(W)&&(I=I||document.createElement("span"),I.style[W]=this.style[W]);return I?(I.appendChild(C),I):C}toMarkup(){var C=!1,I="0&&(W+="margin-right:"+this.italic+"em;");for(var oe in this.style)this.style.hasOwnProperty(oe)&&(W+=Vt.hyphenate(oe)+":"+this.style[oe]+";");W&&(C=!0,I+=' style="'+Vt.escape(W)+'"');var xe=Vt.escape(this.text);return C?(I+=">",I+=xe,I+="",I):xe}}class mr{constructor(C,I){this.children=void 0,this.attributes=void 0,this.children=C||[],this.attributes=I||{}}toNode(){var C="http://www.w3.org/2000/svg",I=document.createElementNS(C,"svg");for(var W in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,W)&&I.setAttribute(W,this.attributes[W]);for(var oe=0;oe":""}}class Ji{constructor(C){this.attributes=void 0,this.attributes=C||{}}toNode(){var C="http://www.w3.org/2000/svg",I=document.createElementNS(C,"line");for(var W in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,W)&&I.setAttribute(W,this.attributes[W]);return I}toMarkup(){var C=" but got "+String(j)+".")}var Nl={bin:1,close:1,inner:1,open:1,punct:1,rel:1},io={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},fi={math:{},text:{}};function de(j,C,I,W,oe,xe){fi[j][oe]={font:C,group:I,replace:W},xe&&W&&(fi[j][W]=fi[j][oe])}var Se="math",Ci="text",We="main",tr="ams",Io="accent-token",la="bin",Hs="close",Hd="inner",eo="mathord",__="op-token",If="open",H2="punct",zt="rel",_m="spacing",jr="textord";de(Se,We,zt,"\u2261","\\equiv",!0),de(Se,We,zt,"\u227A","\\prec",!0),de(Se,We,zt,"\u227B","\\succ",!0),de(Se,We,zt,"\u223C","\\sim",!0),de(Se,We,zt,"\u22A5","\\perp"),de(Se,We,zt,"\u2AAF","\\preceq",!0),de(Se,We,zt,"\u2AB0","\\succeq",!0),de(Se,We,zt,"\u2243","\\simeq",!0),de(Se,We,zt,"\u2223","\\mid",!0),de(Se,We,zt,"\u226A","\\ll",!0),de(Se,We,zt,"\u226B","\\gg",!0),de(Se,We,zt,"\u224D","\\asymp",!0),de(Se,We,zt,"\u2225","\\parallel"),de(Se,We,zt,"\u22C8","\\bowtie",!0),de(Se,We,zt,"\u2323","\\smile",!0),de(Se,We,zt,"\u2291","\\sqsubseteq",!0),de(Se,We,zt,"\u2292","\\sqsupseteq",!0),de(Se,We,zt,"\u2250","\\doteq",!0),de(Se,We,zt,"\u2322","\\frown",!0),de(Se,We,zt,"\u220B","\\ni",!0),de(Se,We,zt,"\u221D","\\propto",!0),de(Se,We,zt,"\u22A2","\\vdash",!0),de(Se,We,zt,"\u22A3","\\dashv",!0),de(Se,We,zt,"\u220B","\\owns"),de(Se,We,H2,".","\\ldotp"),de(Se,We,H2,"\u22C5","\\cdotp"),de(Se,We,jr,"#","\\#"),de(Ci,We,jr,"#","\\#"),de(Se,We,jr,"&","\\&"),de(Ci,We,jr,"&","\\&"),de(Se,We,jr,"\u2135","\\aleph",!0),de(Se,We,jr,"\u2200","\\forall",!0),de(Se,We,jr,"\u210F","\\hbar",!0),de(Se,We,jr,"\u2203","\\exists",!0),de(Se,We,jr,"\u2207","\\nabla",!0),de(Se,We,jr,"\u266D","\\flat",!0),de(Se,We,jr,"\u2113","\\ell",!0),de(Se,We,jr,"\u266E","\\natural",!0),de(Se,We,jr,"\u2663","\\clubsuit",!0),de(Se,We,jr,"\u2118","\\wp",!0),de(Se,We,jr,"\u266F","\\sharp",!0),de(Se,We,jr,"\u2662","\\diamondsuit",!0),de(Se,We,jr,"\u211C","\\Re",!0),de(Se,We,jr,"\u2661","\\heartsuit",!0),de(Se,We,jr,"\u2111","\\Im",!0),de(Se,We,jr,"\u2660","\\spadesuit",!0),de(Se,We,jr,"\xA7","\\S",!0),de(Ci,We,jr,"\xA7","\\S"),de(Se,We,jr,"\xB6","\\P",!0),de(Ci,We,jr,"\xB6","\\P"),de(Se,We,jr,"\u2020","\\dag"),de(Ci,We,jr,"\u2020","\\dag"),de(Ci,We,jr,"\u2020","\\textdagger"),de(Se,We,jr,"\u2021","\\ddag"),de(Ci,We,jr,"\u2021","\\ddag"),de(Ci,We,jr,"\u2021","\\textdaggerdbl"),de(Se,We,Hs,"\u23B1","\\rmoustache",!0),de(Se,We,If,"\u23B0","\\lmoustache",!0),de(Se,We,Hs,"\u27EF","\\rgroup",!0),de(Se,We,If,"\u27EE","\\lgroup",!0),de(Se,We,la,"\u2213","\\mp",!0),de(Se,We,la,"\u2296","\\ominus",!0),de(Se,We,la,"\u228E","\\uplus",!0),de(Se,We,la,"\u2293","\\sqcap",!0),de(Se,We,la,"\u2217","\\ast"),de(Se,We,la,"\u2294","\\sqcup",!0),de(Se,We,la,"\u25EF","\\bigcirc",!0),de(Se,We,la,"\u2219","\\bullet",!0),de(Se,We,la,"\u2021","\\ddagger"),de(Se,We,la,"\u2240","\\wr",!0),de(Se,We,la,"\u2A3F","\\amalg"),de(Se,We,la,"&","\\And"),de(Se,We,zt,"\u27F5","\\longleftarrow",!0),de(Se,We,zt,"\u21D0","\\Leftarrow",!0),de(Se,We,zt,"\u27F8","\\Longleftarrow",!0),de(Se,We,zt,"\u27F6","\\longrightarrow",!0),de(Se,We,zt,"\u21D2","\\Rightarrow",!0),de(Se,We,zt,"\u27F9","\\Longrightarrow",!0),de(Se,We,zt,"\u2194","\\leftrightarrow",!0),de(Se,We,zt,"\u27F7","\\longleftrightarrow",!0),de(Se,We,zt,"\u21D4","\\Leftrightarrow",!0),de(Se,We,zt,"\u27FA","\\Longleftrightarrow",!0),de(Se,We,zt,"\u21A6","\\mapsto",!0),de(Se,We,zt,"\u27FC","\\longmapsto",!0),de(Se,We,zt,"\u2197","\\nearrow",!0),de(Se,We,zt,"\u21A9","\\hookleftarrow",!0),de(Se,We,zt,"\u21AA","\\hookrightarrow",!0),de(Se,We,zt,"\u2198","\\searrow",!0),de(Se,We,zt,"\u21BC","\\leftharpoonup",!0),de(Se,We,zt,"\u21C0","\\rightharpoonup",!0),de(Se,We,zt,"\u2199","\\swarrow",!0),de(Se,We,zt,"\u21BD","\\leftharpoondown",!0),de(Se,We,zt,"\u21C1","\\rightharpoondown",!0),de(Se,We,zt,"\u2196","\\nwarrow",!0),de(Se,We,zt,"\u21CC","\\rightleftharpoons",!0),de(Se,tr,zt,"\u226E","\\nless",!0),de(Se,tr,zt,"\uE010","\\@nleqslant"),de(Se,tr,zt,"\uE011","\\@nleqq"),de(Se,tr,zt,"\u2A87","\\lneq",!0),de(Se,tr,zt,"\u2268","\\lneqq",!0),de(Se,tr,zt,"\uE00C","\\@lvertneqq"),de(Se,tr,zt,"\u22E6","\\lnsim",!0),de(Se,tr,zt,"\u2A89","\\lnapprox",!0),de(Se,tr,zt,"\u2280","\\nprec",!0),de(Se,tr,zt,"\u22E0","\\npreceq",!0),de(Se,tr,zt,"\u22E8","\\precnsim",!0),de(Se,tr,zt,"\u2AB9","\\precnapprox",!0),de(Se,tr,zt,"\u2241","\\nsim",!0),de(Se,tr,zt,"\uE006","\\@nshortmid"),de(Se,tr,zt,"\u2224","\\nmid",!0),de(Se,tr,zt,"\u22AC","\\nvdash",!0),de(Se,tr,zt,"\u22AD","\\nvDash",!0),de(Se,tr,zt,"\u22EA","\\ntriangleleft"),de(Se,tr,zt,"\u22EC","\\ntrianglelefteq",!0),de(Se,tr,zt,"\u228A","\\subsetneq",!0),de(Se,tr,zt,"\uE01A","\\@varsubsetneq"),de(Se,tr,zt,"\u2ACB","\\subsetneqq",!0),de(Se,tr,zt,"\uE017","\\@varsubsetneqq"),de(Se,tr,zt,"\u226F","\\ngtr",!0),de(Se,tr,zt,"\uE00F","\\@ngeqslant"),de(Se,tr,zt,"\uE00E","\\@ngeqq"),de(Se,tr,zt,"\u2A88","\\gneq",!0),de(Se,tr,zt,"\u2269","\\gneqq",!0),de(Se,tr,zt,"\uE00D","\\@gvertneqq"),de(Se,tr,zt,"\u22E7","\\gnsim",!0),de(Se,tr,zt,"\u2A8A","\\gnapprox",!0),de(Se,tr,zt,"\u2281","\\nsucc",!0),de(Se,tr,zt,"\u22E1","\\nsucceq",!0),de(Se,tr,zt,"\u22E9","\\succnsim",!0),de(Se,tr,zt,"\u2ABA","\\succnapprox",!0),de(Se,tr,zt,"\u2246","\\ncong",!0),de(Se,tr,zt,"\uE007","\\@nshortparallel"),de(Se,tr,zt,"\u2226","\\nparallel",!0),de(Se,tr,zt,"\u22AF","\\nVDash",!0),de(Se,tr,zt,"\u22EB","\\ntriangleright"),de(Se,tr,zt,"\u22ED","\\ntrianglerighteq",!0),de(Se,tr,zt,"\uE018","\\@nsupseteqq"),de(Se,tr,zt,"\u228B","\\supsetneq",!0),de(Se,tr,zt,"\uE01B","\\@varsupsetneq"),de(Se,tr,zt,"\u2ACC","\\supsetneqq",!0),de(Se,tr,zt,"\uE019","\\@varsupsetneqq"),de(Se,tr,zt,"\u22AE","\\nVdash",!0),de(Se,tr,zt,"\u2AB5","\\precneqq",!0),de(Se,tr,zt,"\u2AB6","\\succneqq",!0),de(Se,tr,zt,"\uE016","\\@nsubseteqq"),de(Se,tr,la,"\u22B4","\\unlhd"),de(Se,tr,la,"\u22B5","\\unrhd"),de(Se,tr,zt,"\u219A","\\nleftarrow",!0),de(Se,tr,zt,"\u219B","\\nrightarrow",!0),de(Se,tr,zt,"\u21CD","\\nLeftarrow",!0),de(Se,tr,zt,"\u21CF","\\nRightarrow",!0),de(Se,tr,zt,"\u21AE","\\nleftrightarrow",!0),de(Se,tr,zt,"\u21CE","\\nLeftrightarrow",!0),de(Se,tr,zt,"\u25B3","\\vartriangle"),de(Se,tr,jr,"\u210F","\\hslash"),de(Se,tr,jr,"\u25BD","\\triangledown"),de(Se,tr,jr,"\u25CA","\\lozenge"),de(Se,tr,jr,"\u24C8","\\circledS"),de(Se,tr,jr,"\xAE","\\circledR"),de(Ci,tr,jr,"\xAE","\\circledR"),de(Se,tr,jr,"\u2221","\\measuredangle",!0),de(Se,tr,jr,"\u2204","\\nexists"),de(Se,tr,jr,"\u2127","\\mho"),de(Se,tr,jr,"\u2132","\\Finv",!0),de(Se,tr,jr,"\u2141","\\Game",!0),de(Se,tr,jr,"\u2035","\\backprime"),de(Se,tr,jr,"\u25B2","\\blacktriangle"),de(Se,tr,jr,"\u25BC","\\blacktriangledown"),de(Se,tr,jr,"\u25A0","\\blacksquare"),de(Se,tr,jr,"\u29EB","\\blacklozenge"),de(Se,tr,jr,"\u2605","\\bigstar"),de(Se,tr,jr,"\u2222","\\sphericalangle",!0),de(Se,tr,jr,"\u2201","\\complement",!0),de(Se,tr,jr,"\xF0","\\eth",!0),de(Ci,We,jr,"\xF0","\xF0"),de(Se,tr,jr,"\u2571","\\diagup"),de(Se,tr,jr,"\u2572","\\diagdown"),de(Se,tr,jr,"\u25A1","\\square"),de(Se,tr,jr,"\u25A1","\\Box"),de(Se,tr,jr,"\u25CA","\\Diamond"),de(Se,tr,jr,"\xA5","\\yen",!0),de(Ci,tr,jr,"\xA5","\\yen",!0),de(Se,tr,jr,"\u2713","\\checkmark",!0),de(Ci,tr,jr,"\u2713","\\checkmark"),de(Se,tr,jr,"\u2136","\\beth",!0),de(Se,tr,jr,"\u2138","\\daleth",!0),de(Se,tr,jr,"\u2137","\\gimel",!0),de(Se,tr,jr,"\u03DD","\\digamma",!0),de(Se,tr,jr,"\u03F0","\\varkappa"),de(Se,tr,If,"\u250C","\\@ulcorner",!0),de(Se,tr,Hs,"\u2510","\\@urcorner",!0),de(Se,tr,If,"\u2514","\\@llcorner",!0),de(Se,tr,Hs,"\u2518","\\@lrcorner",!0),de(Se,tr,zt,"\u2266","\\leqq",!0),de(Se,tr,zt,"\u2A7D","\\leqslant",!0),de(Se,tr,zt,"\u2A95","\\eqslantless",!0),de(Se,tr,zt,"\u2272","\\lesssim",!0),de(Se,tr,zt,"\u2A85","\\lessapprox",!0),de(Se,tr,zt,"\u224A","\\approxeq",!0),de(Se,tr,la,"\u22D6","\\lessdot"),de(Se,tr,zt,"\u22D8","\\lll",!0),de(Se,tr,zt,"\u2276","\\lessgtr",!0),de(Se,tr,zt,"\u22DA","\\lesseqgtr",!0),de(Se,tr,zt,"\u2A8B","\\lesseqqgtr",!0),de(Se,tr,zt,"\u2251","\\doteqdot"),de(Se,tr,zt,"\u2253","\\risingdotseq",!0),de(Se,tr,zt,"\u2252","\\fallingdotseq",!0),de(Se,tr,zt,"\u223D","\\backsim",!0),de(Se,tr,zt,"\u22CD","\\backsimeq",!0),de(Se,tr,zt,"\u2AC5","\\subseteqq",!0),de(Se,tr,zt,"\u22D0","\\Subset",!0),de(Se,tr,zt,"\u228F","\\sqsubset",!0),de(Se,tr,zt,"\u227C","\\preccurlyeq",!0),de(Se,tr,zt,"\u22DE","\\curlyeqprec",!0),de(Se,tr,zt,"\u227E","\\precsim",!0),de(Se,tr,zt,"\u2AB7","\\precapprox",!0),de(Se,tr,zt,"\u22B2","\\vartriangleleft"),de(Se,tr,zt,"\u22B4","\\trianglelefteq"),de(Se,tr,zt,"\u22A8","\\vDash",!0),de(Se,tr,zt,"\u22AA","\\Vvdash",!0),de(Se,tr,zt,"\u2323","\\smallsmile"),de(Se,tr,zt,"\u2322","\\smallfrown"),de(Se,tr,zt,"\u224F","\\bumpeq",!0),de(Se,tr,zt,"\u224E","\\Bumpeq",!0),de(Se,tr,zt,"\u2267","\\geqq",!0),de(Se,tr,zt,"\u2A7E","\\geqslant",!0),de(Se,tr,zt,"\u2A96","\\eqslantgtr",!0),de(Se,tr,zt,"\u2273","\\gtrsim",!0),de(Se,tr,zt,"\u2A86","\\gtrapprox",!0),de(Se,tr,la,"\u22D7","\\gtrdot"),de(Se,tr,zt,"\u22D9","\\ggg",!0),de(Se,tr,zt,"\u2277","\\gtrless",!0),de(Se,tr,zt,"\u22DB","\\gtreqless",!0),de(Se,tr,zt,"\u2A8C","\\gtreqqless",!0),de(Se,tr,zt,"\u2256","\\eqcirc",!0),de(Se,tr,zt,"\u2257","\\circeq",!0),de(Se,tr,zt,"\u225C","\\triangleq",!0),de(Se,tr,zt,"\u223C","\\thicksim"),de(Se,tr,zt,"\u2248","\\thickapprox"),de(Se,tr,zt,"\u2AC6","\\supseteqq",!0),de(Se,tr,zt,"\u22D1","\\Supset",!0),de(Se,tr,zt,"\u2290","\\sqsupset",!0),de(Se,tr,zt,"\u227D","\\succcurlyeq",!0),de(Se,tr,zt,"\u22DF","\\curlyeqsucc",!0),de(Se,tr,zt,"\u227F","\\succsim",!0),de(Se,tr,zt,"\u2AB8","\\succapprox",!0),de(Se,tr,zt,"\u22B3","\\vartriangleright"),de(Se,tr,zt,"\u22B5","\\trianglerighteq"),de(Se,tr,zt,"\u22A9","\\Vdash",!0),de(Se,tr,zt,"\u2223","\\shortmid"),de(Se,tr,zt,"\u2225","\\shortparallel"),de(Se,tr,zt,"\u226C","\\between",!0),de(Se,tr,zt,"\u22D4","\\pitchfork",!0),de(Se,tr,zt,"\u221D","\\varpropto"),de(Se,tr,zt,"\u25C0","\\blacktriangleleft"),de(Se,tr,zt,"\u2234","\\therefore",!0),de(Se,tr,zt,"\u220D","\\backepsilon"),de(Se,tr,zt,"\u25B6","\\blacktriangleright"),de(Se,tr,zt,"\u2235","\\because",!0),de(Se,tr,zt,"\u22D8","\\llless"),de(Se,tr,zt,"\u22D9","\\gggtr"),de(Se,tr,la,"\u22B2","\\lhd"),de(Se,tr,la,"\u22B3","\\rhd"),de(Se,tr,zt,"\u2242","\\eqsim",!0),de(Se,We,zt,"\u22C8","\\Join"),de(Se,tr,zt,"\u2251","\\Doteq",!0),de(Se,tr,la,"\u2214","\\dotplus",!0),de(Se,tr,la,"\u2216","\\smallsetminus"),de(Se,tr,la,"\u22D2","\\Cap",!0),de(Se,tr,la,"\u22D3","\\Cup",!0),de(Se,tr,la,"\u2A5E","\\doublebarwedge",!0),de(Se,tr,la,"\u229F","\\boxminus",!0),de(Se,tr,la,"\u229E","\\boxplus",!0),de(Se,tr,la,"\u22C7","\\divideontimes",!0),de(Se,tr,la,"\u22C9","\\ltimes",!0),de(Se,tr,la,"\u22CA","\\rtimes",!0),de(Se,tr,la,"\u22CB","\\leftthreetimes",!0),de(Se,tr,la,"\u22CC","\\rightthreetimes",!0),de(Se,tr,la,"\u22CF","\\curlywedge",!0),de(Se,tr,la,"\u22CE","\\curlyvee",!0),de(Se,tr,la,"\u229D","\\circleddash",!0),de(Se,tr,la,"\u229B","\\circledast",!0),de(Se,tr,la,"\u22C5","\\centerdot"),de(Se,tr,la,"\u22BA","\\intercal",!0),de(Se,tr,la,"\u22D2","\\doublecap"),de(Se,tr,la,"\u22D3","\\doublecup"),de(Se,tr,la,"\u22A0","\\boxtimes",!0),de(Se,tr,zt,"\u21E2","\\dashrightarrow",!0),de(Se,tr,zt,"\u21E0","\\dashleftarrow",!0),de(Se,tr,zt,"\u21C7","\\leftleftarrows",!0),de(Se,tr,zt,"\u21C6","\\leftrightarrows",!0),de(Se,tr,zt,"\u21DA","\\Lleftarrow",!0),de(Se,tr,zt,"\u219E","\\twoheadleftarrow",!0),de(Se,tr,zt,"\u21A2","\\leftarrowtail",!0),de(Se,tr,zt,"\u21AB","\\looparrowleft",!0),de(Se,tr,zt,"\u21CB","\\leftrightharpoons",!0),de(Se,tr,zt,"\u21B6","\\curvearrowleft",!0),de(Se,tr,zt,"\u21BA","\\circlearrowleft",!0),de(Se,tr,zt,"\u21B0","\\Lsh",!0),de(Se,tr,zt,"\u21C8","\\upuparrows",!0),de(Se,tr,zt,"\u21BF","\\upharpoonleft",!0),de(Se,tr,zt,"\u21C3","\\downharpoonleft",!0),de(Se,We,zt,"\u22B6","\\origof",!0),de(Se,We,zt,"\u22B7","\\imageof",!0),de(Se,tr,zt,"\u22B8","\\multimap",!0),de(Se,tr,zt,"\u21AD","\\leftrightsquigarrow",!0),de(Se,tr,zt,"\u21C9","\\rightrightarrows",!0),de(Se,tr,zt,"\u21C4","\\rightleftarrows",!0),de(Se,tr,zt,"\u21A0","\\twoheadrightarrow",!0),de(Se,tr,zt,"\u21A3","\\rightarrowtail",!0),de(Se,tr,zt,"\u21AC","\\looparrowright",!0),de(Se,tr,zt,"\u21B7","\\curvearrowright",!0),de(Se,tr,zt,"\u21BB","\\circlearrowright",!0),de(Se,tr,zt,"\u21B1","\\Rsh",!0),de(Se,tr,zt,"\u21CA","\\downdownarrows",!0),de(Se,tr,zt,"\u21BE","\\upharpoonright",!0),de(Se,tr,zt,"\u21C2","\\downharpoonright",!0),de(Se,tr,zt,"\u21DD","\\rightsquigarrow",!0),de(Se,tr,zt,"\u21DD","\\leadsto"),de(Se,tr,zt,"\u21DB","\\Rrightarrow",!0),de(Se,tr,zt,"\u21BE","\\restriction"),de(Se,We,jr,"\u2018","`"),de(Se,We,jr,"$","\\$"),de(Ci,We,jr,"$","\\$"),de(Ci,We,jr,"$","\\textdollar"),de(Se,We,jr,"%","\\%"),de(Ci,We,jr,"%","\\%"),de(Se,We,jr,"_","\\_"),de(Ci,We,jr,"_","\\_"),de(Ci,We,jr,"_","\\textunderscore"),de(Se,We,jr,"\u2220","\\angle",!0),de(Se,We,jr,"\u221E","\\infty",!0),de(Se,We,jr,"\u2032","\\prime"),de(Se,We,jr,"\u25B3","\\triangle"),de(Se,We,jr,"\u0393","\\Gamma",!0),de(Se,We,jr,"\u0394","\\Delta",!0),de(Se,We,jr,"\u0398","\\Theta",!0),de(Se,We,jr,"\u039B","\\Lambda",!0),de(Se,We,jr,"\u039E","\\Xi",!0),de(Se,We,jr,"\u03A0","\\Pi",!0),de(Se,We,jr,"\u03A3","\\Sigma",!0),de(Se,We,jr,"\u03A5","\\Upsilon",!0),de(Se,We,jr,"\u03A6","\\Phi",!0),de(Se,We,jr,"\u03A8","\\Psi",!0),de(Se,We,jr,"\u03A9","\\Omega",!0),de(Se,We,jr,"A","\u0391"),de(Se,We,jr,"B","\u0392"),de(Se,We,jr,"E","\u0395"),de(Se,We,jr,"Z","\u0396"),de(Se,We,jr,"H","\u0397"),de(Se,We,jr,"I","\u0399"),de(Se,We,jr,"K","\u039A"),de(Se,We,jr,"M","\u039C"),de(Se,We,jr,"N","\u039D"),de(Se,We,jr,"O","\u039F"),de(Se,We,jr,"P","\u03A1"),de(Se,We,jr,"T","\u03A4"),de(Se,We,jr,"X","\u03A7"),de(Se,We,jr,"\xAC","\\neg",!0),de(Se,We,jr,"\xAC","\\lnot"),de(Se,We,jr,"\u22A4","\\top"),de(Se,We,jr,"\u22A5","\\bot"),de(Se,We,jr,"\u2205","\\emptyset"),de(Se,tr,jr,"\u2205","\\varnothing"),de(Se,We,eo,"\u03B1","\\alpha",!0),de(Se,We,eo,"\u03B2","\\beta",!0),de(Se,We,eo,"\u03B3","\\gamma",!0),de(Se,We,eo,"\u03B4","\\delta",!0),de(Se,We,eo,"\u03F5","\\epsilon",!0),de(Se,We,eo,"\u03B6","\\zeta",!0),de(Se,We,eo,"\u03B7","\\eta",!0),de(Se,We,eo,"\u03B8","\\theta",!0),de(Se,We,eo,"\u03B9","\\iota",!0),de(Se,We,eo,"\u03BA","\\kappa",!0),de(Se,We,eo,"\u03BB","\\lambda",!0),de(Se,We,eo,"\u03BC","\\mu",!0),de(Se,We,eo,"\u03BD","\\nu",!0),de(Se,We,eo,"\u03BE","\\xi",!0),de(Se,We,eo,"\u03BF","\\omicron",!0),de(Se,We,eo,"\u03C0","\\pi",!0),de(Se,We,eo,"\u03C1","\\rho",!0),de(Se,We,eo,"\u03C3","\\sigma",!0),de(Se,We,eo,"\u03C4","\\tau",!0),de(Se,We,eo,"\u03C5","\\upsilon",!0),de(Se,We,eo,"\u03D5","\\phi",!0),de(Se,We,eo,"\u03C7","\\chi",!0),de(Se,We,eo,"\u03C8","\\psi",!0),de(Se,We,eo,"\u03C9","\\omega",!0),de(Se,We,eo,"\u03B5","\\varepsilon",!0),de(Se,We,eo,"\u03D1","\\vartheta",!0),de(Se,We,eo,"\u03D6","\\varpi",!0),de(Se,We,eo,"\u03F1","\\varrho",!0),de(Se,We,eo,"\u03C2","\\varsigma",!0),de(Se,We,eo,"\u03C6","\\varphi",!0),de(Se,We,la,"\u2217","*",!0),de(Se,We,la,"+","+"),de(Se,We,la,"\u2212","-",!0),de(Se,We,la,"\u22C5","\\cdot",!0),de(Se,We,la,"\u2218","\\circ",!0),de(Se,We,la,"\xF7","\\div",!0),de(Se,We,la,"\xB1","\\pm",!0),de(Se,We,la,"\xD7","\\times",!0),de(Se,We,la,"\u2229","\\cap",!0),de(Se,We,la,"\u222A","\\cup",!0),de(Se,We,la,"\u2216","\\setminus",!0),de(Se,We,la,"\u2227","\\land"),de(Se,We,la,"\u2228","\\lor"),de(Se,We,la,"\u2227","\\wedge",!0),de(Se,We,la,"\u2228","\\vee",!0),de(Se,We,jr,"\u221A","\\surd"),de(Se,We,If,"\u27E8","\\langle",!0),de(Se,We,If,"\u2223","\\lvert"),de(Se,We,If,"\u2225","\\lVert"),de(Se,We,Hs,"?","?"),de(Se,We,Hs,"!","!"),de(Se,We,Hs,"\u27E9","\\rangle",!0),de(Se,We,Hs,"\u2223","\\rvert"),de(Se,We,Hs,"\u2225","\\rVert"),de(Se,We,zt,"=","="),de(Se,We,zt,":",":"),de(Se,We,zt,"\u2248","\\approx",!0),de(Se,We,zt,"\u2245","\\cong",!0),de(Se,We,zt,"\u2265","\\ge"),de(Se,We,zt,"\u2265","\\geq",!0),de(Se,We,zt,"\u2190","\\gets"),de(Se,We,zt,">","\\gt",!0),de(Se,We,zt,"\u2208","\\in",!0),de(Se,We,zt,"\uE020","\\@not"),de(Se,We,zt,"\u2282","\\subset",!0),de(Se,We,zt,"\u2283","\\supset",!0),de(Se,We,zt,"\u2286","\\subseteq",!0),de(Se,We,zt,"\u2287","\\supseteq",!0),de(Se,tr,zt,"\u2288","\\nsubseteq",!0),de(Se,tr,zt,"\u2289","\\nsupseteq",!0),de(Se,We,zt,"\u22A8","\\models"),de(Se,We,zt,"\u2190","\\leftarrow",!0),de(Se,We,zt,"\u2264","\\le"),de(Se,We,zt,"\u2264","\\leq",!0),de(Se,We,zt,"<","\\lt",!0),de(Se,We,zt,"\u2192","\\rightarrow",!0),de(Se,We,zt,"\u2192","\\to"),de(Se,tr,zt,"\u2271","\\ngeq",!0),de(Se,tr,zt,"\u2270","\\nleq",!0),de(Se,We,_m,"\xA0","\\ "),de(Se,We,_m,"\xA0","\\space"),de(Se,We,_m,"\xA0","\\nobreakspace"),de(Ci,We,_m,"\xA0","\\ "),de(Ci,We,_m,"\xA0"," "),de(Ci,We,_m,"\xA0","\\space"),de(Ci,We,_m,"\xA0","\\nobreakspace"),de(Se,We,_m,null,"\\nobreak"),de(Se,We,_m,null,"\\allowbreak"),de(Se,We,H2,",",","),de(Se,We,H2,";",";"),de(Se,tr,la,"\u22BC","\\barwedge",!0),de(Se,tr,la,"\u22BB","\\veebar",!0),de(Se,We,la,"\u2299","\\odot",!0),de(Se,We,la,"\u2295","\\oplus",!0),de(Se,We,la,"\u2297","\\otimes",!0),de(Se,We,jr,"\u2202","\\partial",!0),de(Se,We,la,"\u2298","\\oslash",!0),de(Se,tr,la,"\u229A","\\circledcirc",!0),de(Se,tr,la,"\u22A1","\\boxdot",!0),de(Se,We,la,"\u25B3","\\bigtriangleup"),de(Se,We,la,"\u25BD","\\bigtriangledown"),de(Se,We,la,"\u2020","\\dagger"),de(Se,We,la,"\u22C4","\\diamond"),de(Se,We,la,"\u22C6","\\star"),de(Se,We,la,"\u25C3","\\triangleleft"),de(Se,We,la,"\u25B9","\\triangleright"),de(Se,We,If,"{","\\{"),de(Ci,We,jr,"{","\\{"),de(Ci,We,jr,"{","\\textbraceleft"),de(Se,We,Hs,"}","\\}"),de(Ci,We,jr,"}","\\}"),de(Ci,We,jr,"}","\\textbraceright"),de(Se,We,If,"{","\\lbrace"),de(Se,We,Hs,"}","\\rbrace"),de(Se,We,If,"[","\\lbrack",!0),de(Ci,We,jr,"[","\\lbrack",!0),de(Se,We,Hs,"]","\\rbrack",!0),de(Ci,We,jr,"]","\\rbrack",!0),de(Se,We,If,"(","\\lparen",!0),de(Se,We,Hs,")","\\rparen",!0),de(Ci,We,jr,"<","\\textless",!0),de(Ci,We,jr,">","\\textgreater",!0),de(Se,We,If,"\u230A","\\lfloor",!0),de(Se,We,Hs,"\u230B","\\rfloor",!0),de(Se,We,If,"\u2308","\\lceil",!0),de(Se,We,Hs,"\u2309","\\rceil",!0),de(Se,We,jr,"\\","\\backslash"),de(Se,We,jr,"\u2223","|"),de(Se,We,jr,"\u2223","\\vert"),de(Ci,We,jr,"|","\\textbar",!0),de(Se,We,jr,"\u2225","\\|"),de(Se,We,jr,"\u2225","\\Vert"),de(Ci,We,jr,"\u2225","\\textbardbl"),de(Ci,We,jr,"~","\\textasciitilde"),de(Ci,We,jr,"\\","\\textbackslash"),de(Ci,We,jr,"^","\\textasciicircum"),de(Se,We,zt,"\u2191","\\uparrow",!0),de(Se,We,zt,"\u21D1","\\Uparrow",!0),de(Se,We,zt,"\u2193","\\downarrow",!0),de(Se,We,zt,"\u21D3","\\Downarrow",!0),de(Se,We,zt,"\u2195","\\updownarrow",!0),de(Se,We,zt,"\u21D5","\\Updownarrow",!0),de(Se,We,__,"\u2210","\\coprod"),de(Se,We,__,"\u22C1","\\bigvee"),de(Se,We,__,"\u22C0","\\bigwedge"),de(Se,We,__,"\u2A04","\\biguplus"),de(Se,We,__,"\u22C2","\\bigcap"),de(Se,We,__,"\u22C3","\\bigcup"),de(Se,We,__,"\u222B","\\int"),de(Se,We,__,"\u222B","\\intop"),de(Se,We,__,"\u222C","\\iint"),de(Se,We,__,"\u222D","\\iiint"),de(Se,We,__,"\u220F","\\prod"),de(Se,We,__,"\u2211","\\sum"),de(Se,We,__,"\u2A02","\\bigotimes"),de(Se,We,__,"\u2A01","\\bigoplus"),de(Se,We,__,"\u2A00","\\bigodot"),de(Se,We,__,"\u222E","\\oint"),de(Se,We,__,"\u222F","\\oiint"),de(Se,We,__,"\u2230","\\oiiint"),de(Se,We,__,"\u2A06","\\bigsqcup"),de(Se,We,__,"\u222B","\\smallint"),de(Ci,We,Hd,"\u2026","\\textellipsis"),de(Se,We,Hd,"\u2026","\\mathellipsis"),de(Ci,We,Hd,"\u2026","\\ldots",!0),de(Se,We,Hd,"\u2026","\\ldots",!0),de(Se,We,Hd,"\u22EF","\\@cdots",!0),de(Se,We,Hd,"\u22F1","\\ddots",!0),de(Se,We,jr,"\u22EE","\\varvdots"),de(Se,We,Io,"\u02CA","\\acute"),de(Se,We,Io,"\u02CB","\\grave"),de(Se,We,Io,"\xA8","\\ddot"),de(Se,We,Io,"~","\\tilde"),de(Se,We,Io,"\u02C9","\\bar"),de(Se,We,Io,"\u02D8","\\breve"),de(Se,We,Io,"\u02C7","\\check"),de(Se,We,Io,"^","\\hat"),de(Se,We,Io,"\u20D7","\\vec"),de(Se,We,Io,"\u02D9","\\dot"),de(Se,We,Io,"\u02DA","\\mathring"),de(Se,We,eo,"\uE131","\\@imath"),de(Se,We,eo,"\uE237","\\@jmath"),de(Se,We,jr,"\u0131","\u0131"),de(Se,We,jr,"\u0237","\u0237"),de(Ci,We,jr,"\u0131","\\i",!0),de(Ci,We,jr,"\u0237","\\j",!0),de(Ci,We,jr,"\xDF","\\ss",!0),de(Ci,We,jr,"\xE6","\\ae",!0),de(Ci,We,jr,"\u0153","\\oe",!0),de(Ci,We,jr,"\xF8","\\o",!0),de(Ci,We,jr,"\xC6","\\AE",!0),de(Ci,We,jr,"\u0152","\\OE",!0),de(Ci,We,jr,"\xD8","\\O",!0),de(Ci,We,Io,"\u02CA","\\'"),de(Ci,We,Io,"\u02CB","\\`"),de(Ci,We,Io,"\u02C6","\\^"),de(Ci,We,Io,"\u02DC","\\~"),de(Ci,We,Io,"\u02C9","\\="),de(Ci,We,Io,"\u02D8","\\u"),de(Ci,We,Io,"\u02D9","\\."),de(Ci,We,Io,"\xB8","\\c"),de(Ci,We,Io,"\u02DA","\\r"),de(Ci,We,Io,"\u02C7","\\v"),de(Ci,We,Io,"\xA8",'\\"'),de(Ci,We,Io,"\u02DD","\\H"),de(Ci,We,Io,"\u25EF","\\textcircled");var Fm={"--":!0,"---":!0,"``":!0,"''":!0};de(Ci,We,jr,"\u2013","--",!0),de(Ci,We,jr,"\u2013","\\textendash"),de(Ci,We,jr,"\u2014","---",!0),de(Ci,We,jr,"\u2014","\\textemdash"),de(Ci,We,jr,"\u2018","`",!0),de(Ci,We,jr,"\u2018","\\textquoteleft"),de(Ci,We,jr,"\u2019","'",!0),de(Ci,We,jr,"\u2019","\\textquoteright"),de(Ci,We,jr,"\u201C","``",!0),de(Ci,We,jr,"\u201C","\\textquotedblleft"),de(Ci,We,jr,"\u201D","''",!0),de(Ci,We,jr,"\u201D","\\textquotedblright"),de(Se,We,jr,"\xB0","\\degree",!0),de(Ci,We,jr,"\xB0","\\degree"),de(Ci,We,jr,"\xB0","\\textdegree",!0),de(Se,We,jr,"\xA3","\\pounds"),de(Se,We,jr,"\xA3","\\mathsterling",!0),de(Ci,We,jr,"\xA3","\\pounds"),de(Ci,We,jr,"\xA3","\\textsterling",!0),de(Se,tr,jr,"\u2720","\\maltese"),de(Ci,tr,jr,"\u2720","\\maltese");for(var G2='0123456789/@."',_1=0;_1{if(Ht(j.classes)!==Ht(C.classes)||j.skew!==C.skew||j.maxFontSize!==C.maxFontSize)return!1;if(j.classes.length===1){var I=j.classes[0];if(I==="mbin"||I==="mord")return!1}for(var W in j.style)if(j.style.hasOwnProperty(W)&&j.style[W]!==C.style[W])return!1;for(var oe in C.style)if(C.style.hasOwnProperty(oe)&&j.style[oe]!==C.style[oe])return!1;return!0},xs=j=>{for(var C=0;CI&&(I=et.height),et.depth>W&&(W=et.depth),et.maxFontSize>oe&&(oe=et.maxFontSize)}C.height=I,C.depth=W,C.maxFontSize=oe},f_=function(C,I,W,oe){var xe=new kr(C,I,W,oe);return q_(xe),xe},Dx=(j,C,I,W)=>new kr(j,C,I,W),d4=function(C,I,W){var oe=f_([C],[],I);return oe.height=Math.max(W||I.fontMetrics().defaultRuleThickness,I.minRuleThickness),oe.style.borderBottomWidth=Ai(oe.height),oe.maxFontSize=1,oe},Z2=function(C,I,W,oe){var xe=new ct(C,I,W,oe);return q_(xe),xe},Dg=function(C){var I=new bt(C);return q_(I),I},C0=function(C,I){return C instanceof bt?f_([],[C],I):C},q1=function(C){if(C.positionType==="individualShift"){for(var I=C.children,W=[I[0]],oe=-I[0].shift-I[0].elem.depth,xe=oe,et=1;et{var I=f_(["mspace"],[],C),W=Ma(j,C);return I.style.marginRight=Ai(W),I},Lv=function(C,I,W){var oe="";switch(C){case"amsrm":oe="AMS";break;case"textrm":oe="Main";break;case"textsf":oe="SansSerif";break;case"texttt":oe="Typewriter";break;default:oe=C}var xe;return I==="textbf"&&W==="textit"?xe="BoldItalic":I==="textbf"?xe="Bold":I==="textit"?xe="Italic":xe="Regular",oe+"-"+xe},$1={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},X0={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ix=function(C,I){var[W,oe,xe]=X0[C],et=new Sa(W),vt=new mr([et],{width:Ai(oe),height:Ai(xe),style:"width:"+Ai(oe),viewBox:"0 0 "+1e3*oe+" "+1e3*xe,preserveAspectRatio:"xMinYMin"}),At=Dx(["overlay"],[vt],I);return At.height=xe,At.style.height=Ai(xe),At.style.width=Ai(oe),At},tn={fontMap:$1,makeSymbol:Cp,mathsym:W_,makeSpan:f_,makeSvgSpan:Dx,makeLineSpan:d4,makeAnchor:Z2,makeFragment:Dg,wrapFragment:C0,makeVList:Nx,makeOrd:jT,makeGlue:Uc,staticSvg:Ix,svgData:X0,tryCombineChars:xs},$_={number:3,unit:"mu"},f1={number:4,unit:"mu"},Of={number:5,unit:"mu"},Go={mord:{mop:$_,mbin:f1,mrel:Of,minner:$_},mop:{mord:$_,mop:$_,mrel:Of,minner:$_},mbin:{mord:f1,mop:f1,mopen:f1,minner:f1},mrel:{mord:Of,mop:Of,mopen:Of,minner:Of},mopen:{},mclose:{mop:$_,mbin:f1,mrel:Of,minner:$_},mpunct:{mord:$_,mop:$_,mrel:Of,mopen:$_,mclose:$_,mpunct:$_,minner:$_},minner:{mord:$_,mop:$_,mbin:f1,mrel:Of,mopen:$_,mpunct:$_,minner:$_}},cn={mord:{mop:$_},mop:{mord:$_,mop:$_},mbin:{},mrel:{},mopen:{},mclose:{mop:$_},mpunct:{},minner:{mop:$_}},ka={},ds={},p_={};function gi(j){for(var{type:C,names:I,props:W,handler:oe,htmlBuilder:xe,mathmlBuilder:et}=j,vt={type:C,numArgs:W.numArgs,argTypes:W.argTypes,allowedInArgument:!!W.allowedInArgument,allowedInText:!!W.allowedInText,allowedInMath:W.allowedInMath===void 0?!0:W.allowedInMath,numOptionalArgs:W.numOptionalArgs||0,infix:!!W.infix,primitive:!!W.primitive,handler:oe},At=0;At{var Ts=Xa.classes[0],Ls=Da.classes[0];Ts==="mbin"&&Vt.contains(Z0,Ls)?Xa.classes[0]="mord":Ls==="mbin"&&Vt.contains(m4,Ts)&&(Da.classes[0]="mord")},{node:gn},hi,_i),N_(xe,(Da,Xa)=>{var Ts=Ox(Xa),Ls=Ox(Da),Vc=Ts&&Ls?Da.hasClass("mtight")?cn[Ts][Ls]:Go[Ts][Ls]:null;if(Vc)return tn.makeGlue(Vc,Dr)},{node:gn},hi,_i),xe},N_=function j(C,I,W,oe,xe){oe&&C.push(oe);for(var et=0;ethi=>{C.splice(gn+1,0,hi),et++})(et)}oe&&C.pop()},j6=function(C){return C instanceof bt||C instanceof ct||C instanceof kr&&C.hasClass("enclosing")?C:null},zT=function j(C,I){var W=j6(C);if(W){var oe=W.children;if(oe.length){if(I==="right")return j(oe[oe.length-1],"right");if(I==="left")return j(oe[0],"left")}}return C},Ox=function(C,I){return C?(I&&(C=zT(C,I)),Px[C.classes[0]]||null):null},Ga=function(C,I){var W=["nulldelimiter"].concat(C.baseSizingClasses());return Ng(I.concat(W))},cu=function(C,I,W){if(!C)return Ng();if(ds[C.type]){var oe=ds[C.type](C,I);if(W&&I.size!==W.size){oe=Ng(I.sizingClasses(W),[oe],I);var xe=I.sizeMultiplier/W.sizeMultiplier;oe.height*=xe,oe.depth*=xe}return oe}else throw new ci("Got group of unknown type: '"+C.type+"'")};function z6(j,C){var I=Ng(["base"],j,C),W=Ng(["strut"]);return W.style.height=Ai(I.height+I.depth),I.depth&&(W.style.verticalAlign=Ai(-I.depth)),I.children.unshift(W),I}function Vh(j,C){var I=null;j.length===1&&j[0].type==="tag"&&(I=j[0].tag,j=j[0].body);var W=dm(j,C,"root"),oe;W.length===2&&W[1].hasClass("tag")&&(oe=W.pop());for(var xe=[],et=[],vt=0;vt0&&(xe.push(z6(et,C)),et=[]),xe.push(W[vt]));et.length>0&&xe.push(z6(et,C));var Dr;I?(Dr=z6(dm(I,C,!0)),Dr.classes=["tag"],xe.push(Dr)):oe&&xe.push(oe);var Zr=Ng(["katex-html"],xe);if(Zr.setAttribute("aria-hidden","true"),Dr){var gn=Dr.children[0];gn.style.height=Ai(Zr.height+Zr.depth),Zr.depth&&(gn.style.verticalAlign=Ai(-Zr.depth))}return Zr}function Mx(j){return new bt(j)}class Mf{constructor(C,I,W){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=C,this.attributes={},this.children=I||[],this.classes=W||[]}setAttribute(C,I){this.attributes[C]=I}getAttribute(C){return this.attributes[C]}toNode(){var C=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var I in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,I)&&C.setAttribute(I,this.attributes[I]);this.classes.length>0&&(C.className=Ht(this.classes));for(var W=0;W0&&(C+=' class ="'+Vt.escape(Ht(this.classes))+'"'),C+=">";for(var W=0;W",C}toText(){return this.children.map(C=>C.toText()).join("")}}class H1{constructor(C){this.text=void 0,this.text=C}toNode(){return document.createTextNode(this.text)}toMarkup(){return Vt.escape(this.toText())}toText(){return this.text}}class sD{constructor(C){this.width=void 0,this.character=void 0,this.width=C,C>=.05555&&C<=.05556?this.character="\u200A":C>=.1666&&C<=.1667?this.character="\u2009":C>=.2222&&C<=.2223?this.character="\u2005":C>=.2777&&C<=.2778?this.character="\u2005\u200A":C>=-.05556&&C<=-.05555?this.character="\u200A\u2063":C>=-.1667&&C<=-.1666?this.character="\u2009\u2063":C>=-.2223&&C<=-.2222?this.character="\u205F\u2063":C>=-.2778&&C<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var C=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return C.setAttribute("width",Ai(this.width)),C}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var pa={MathNode:Mf,TextNode:H1,SpaceNode:sD,newDocumentFragment:Mx},p1=function(C,I,W){return fi[I][C]&&fi[I][C].replace&&C.charCodeAt(0)!==55349&&!(Fm.hasOwnProperty(C)&&W&&(W.fontFamily&&W.fontFamily.slice(4,6)==="tt"||W.font&&W.font.slice(4,6)==="tt"))&&(C=fi[I][C].replace),new pa.TextNode(C)},r5=function(C){return C.length===1?C[0]:new pa.MathNode("mrow",C)},Lx=function(C,I){if(I.fontFamily==="texttt")return"monospace";if(I.fontFamily==="textsf")return I.fontShape==="textit"&&I.fontWeight==="textbf"?"sans-serif-bold-italic":I.fontShape==="textit"?"sans-serif-italic":I.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(I.fontShape==="textit"&&I.fontWeight==="textbf")return"bold-italic";if(I.fontShape==="textit")return"italic";if(I.fontWeight==="textbf")return"bold";var W=I.font;if(!W||W==="mathnormal")return null;var oe=C.mode;if(W==="mathit")return"italic";if(W==="boldsymbol")return C.type==="textord"?"bold":"bold-italic";if(W==="mathbf")return"bold";if(W==="mathbb")return"double-struck";if(W==="mathfrak")return"fraktur";if(W==="mathscr"||W==="mathcal")return"script";if(W==="mathsf")return"sans-serif";if(W==="mathtt")return"monospace";var xe=C.text;if(Vt.contains(["\\imath","\\jmath"],xe))return null;fi[oe][xe]&&fi[oe][xe].replace&&(xe=fi[oe][xe].replace);var et=tn.fontMap[W].fontName;return nl(xe,et,oe)?tn.fontMap[W].variant:null},od=function(C,I,W){if(C.length===1){var oe=i_(C[0],I);return W&&oe instanceof Mf&&oe.type==="mo"&&(oe.setAttribute("lspace","0em"),oe.setAttribute("rspace","0em")),[oe]}for(var xe=[],et,vt=0;vt0&&(gn.text=gn.text.slice(0,1)+"\u0338"+gn.text.slice(1),xe.pop())}}}xe.push(At),et=At}return xe},g4=function(C,I,W){return r5(od(C,I,W))},i_=function(C,I){if(!C)return new pa.MathNode("mrow");if(p_[C.type]){var W=p_[C.type](C,I);return W}else throw new ci("Got group of unknown type: '"+C.type+"'")};function aw(j,C,I,W,oe){var xe=od(j,I),et;xe.length===1&&xe[0]instanceof Mf&&Vt.contains(["mrow","mtable"],xe[0].type)?et=xe[0]:et=new pa.MathNode("mrow",xe);var vt=new pa.MathNode("annotation",[new pa.TextNode(C)]);vt.setAttribute("encoding","application/x-tex");var At=new pa.MathNode("semantics",[et,vt]),Dr=new pa.MathNode("math",[At]);Dr.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),W&&Dr.setAttribute("display","block");var Zr=oe?"katex":"katex-mathml";return tn.makeSpan([Zr],[Dr])}var n5=function(C){return new $o({style:C.displayMode?er.DISPLAY:er.TEXT,maxSize:C.maxSize,minRuleThickness:C.minRuleThickness})},i5=function(C,I){if(I.displayMode){var W=["katex-display"];I.leqno&&W.push("leqno"),I.fleqn&&W.push("fleqn"),C=tn.makeSpan(W,[C])}return C},tt=function(C,I,W){var oe=n5(W),xe;if(W.output==="mathml")return aw(C,I,oe,W.displayMode,!0);if(W.output==="html"){var et=Vh(C,oe);xe=tn.makeSpan(["katex"],[et])}else{var vt=aw(C,I,oe,W.displayMode,!1),At=Vh(C,oe);xe=tn.makeSpan(["katex"],[vt,At])}return i5(xe,W)},JT=function(C,I,W){var oe=n5(W),xe=Vh(C,oe),et=tn.makeSpan(["katex"],[xe]);return i5(et,W)},sw={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},a5=function(C){var I=new pa.MathNode("mo",[new pa.TextNode(sw[C.replace(/^\\/,"")])]);return I.setAttribute("stretchy","true"),I},d1={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},m1=function(C){return C.type==="ordgroup"?C.body.length:1},s5=function(C,I){function W(){var vt=4e5,At=C.label.slice(1);if(Vt.contains(["widehat","widecheck","widetilde","utilde"],At)){var Dr=C,Zr=m1(Dr.base),gn,hi,_i;if(Zr>5)At==="widehat"||At==="widecheck"?(gn=420,vt=2364,_i=.42,hi=At+"4"):(gn=312,vt=2340,_i=.34,hi="tilde4");else{var Da=[1,1,2,2,3,3][Zr];At==="widehat"||At==="widecheck"?(vt=[0,1062,2364,2364,2364][Da],gn=[0,239,300,360,420][Da],_i=[0,.24,.3,.3,.36,.42][Da],hi=At+Da):(vt=[0,600,1033,2339,2340][Da],gn=[0,260,286,306,312][Da],_i=[0,.26,.286,.3,.306,.34][Da],hi="tilde"+Da)}var Xa=new Sa(hi),Ts=new mr([Xa],{width:"100%",height:Ai(_i),viewBox:"0 0 "+vt+" "+gn,preserveAspectRatio:"none"});return{span:tn.makeSvgSpan([],[Ts],I),minWidth:0,height:_i}}else{var Ls=[],Vc=d1[At],[ul,s_,zl]=Vc,Su=zl/1e3,e_=ul.length,O_,ku;if(e_===1){var Y0=Vc[3];O_=["hide-tail"],ku=[Y0]}else if(e_===2)O_=["halfarrow-left","halfarrow-right"],ku=["xMinYMin","xMaxYMin"];else if(e_===3)O_=["brace-left","brace-center","brace-right"],ku=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+e_+" children.");for(var mm=0;mm0&&(oe.style.minWidth=Ai(xe)),oe},o5=function(C,I,W,oe,xe){var et,vt=C.height+C.depth+W+oe;if(/fbox|color|angl/.test(I)){if(et=tn.makeSpan(["stretchy",I],[],xe),I==="fbox"){var At=xe.color&&xe.getColor();At&&(et.style.borderColor=At)}}else{var Dr=[];/^[bx]cancel$/.test(I)&&Dr.push(new Ji({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(I)&&Dr.push(new Ji({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Zr=new mr(Dr,{width:"100%",height:Ai(vt)});et=tn.makeSvgSpan([],[Zr],xe)}return et.height=vt,et.style.height=Ai(vt),et},G1={encloseSpan:o5,mathMLnode:a5,svgSpan:s5};function Il(j,C){if(!j||j.type!==C)throw new Error("Expected node of type "+C+", but got "+(j?"node of type "+j.type:String(j)));return j}function h4(j){var C=g1(j);if(!C)throw new Error("Expected node of symbol group type, but got "+(j?"node of type "+j.type:String(j)));return C}function g1(j){return j&&(j.type==="atom"||io.hasOwnProperty(j.type))?j:null}var X1=(j,C)=>{var I,W,oe;j&&j.type==="supsub"?(W=Il(j.base,"accent"),I=W.base,j.base=I,oe=Fi(cu(j,C)),j.base=W):(W=Il(j,"accent"),I=W.base);var xe=cu(I,C.havingCrampedStyle()),et=W.isShifty&&Vt.isCharacterBox(I),vt=0;if(et){var At=Vt.getBaseElem(I),Dr=cu(At,C.havingCrampedStyle());vt=nc(Dr).skew}var Zr=W.label==="\\c",gn=Zr?xe.height+xe.depth:Math.min(xe.height,C.fontMetrics().xHeight),hi;if(W.isStretchy)hi=G1.svgSpan(W,C),hi=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xe},{type:"elem",elem:hi,wrapperClasses:["svg-align"],wrapperStyle:vt>0?{width:"calc(100% - "+Ai(2*vt)+")",marginLeft:Ai(2*vt)}:void 0}]},C);else{var _i,Da;W.label==="\\vec"?(_i=tn.staticSvg("vec",C),Da=tn.svgData.vec[1]):(_i=tn.makeOrd({mode:W.mode,text:W.label},C,"textord"),_i=nc(_i),_i.italic=0,Da=_i.width,Zr&&(gn+=_i.depth)),hi=tn.makeSpan(["accent-body"],[_i]);var Xa=W.label==="\\textcircled";Xa&&(hi.classes.push("accent-full"),gn=xe.height);var Ts=vt;Xa||(Ts-=Da/2),hi.style.left=Ai(Ts),W.label==="\\textcircled"&&(hi.style.top=".2em"),hi=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xe},{type:"kern",size:-gn},{type:"elem",elem:hi}]},C)}var Ls=tn.makeSpan(["mord","accent"],[hi],C);return oe?(oe.children[0]=Ls,oe.height=Math.max(Ls.height,oe.height),oe.classes[0]="mord",oe):Ls},y4=(j,C)=>{var I=j.isStretchy?G1.mathMLnode(j.label):new pa.MathNode("mo",[p1(j.label,j.mode)]),W=new pa.MathNode("mover",[i_(j.base,C),I]);return W.setAttribute("accent","true"),W},ow=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(j=>"\\"+j).join("|"));gi({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(j,C)=>{var I=rf(C[0]),W=!ow.test(j.funcName),oe=!W||j.funcName==="\\widehat"||j.funcName==="\\widetilde"||j.funcName==="\\widecheck";return{type:"accent",mode:j.parser.mode,label:j.funcName,isStretchy:W,isShifty:oe,base:I}},htmlBuilder:X1,mathmlBuilder:y4}),gi({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(j,C)=>{var I=C[0],W=j.parser.mode;return W==="math"&&(j.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+j.funcName+" works only in text mode"),W="text"),{type:"accent",mode:W,label:j.funcName,isStretchy:!1,isShifty:!0,base:I}},htmlBuilder:X1,mathmlBuilder:y4}),gi({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(j,C)=>{var{parser:I,funcName:W}=j,oe=C[0];return{type:"accentUnder",mode:I.mode,label:W,base:oe}},htmlBuilder:(j,C)=>{var I=cu(j.base,C),W=G1.svgSpan(j,C),oe=j.label==="\\utilde"?.12:0,xe=tn.makeVList({positionType:"top",positionData:I.height,children:[{type:"elem",elem:W,wrapperClasses:["svg-align"]},{type:"kern",size:oe},{type:"elem",elem:I}]},C);return tn.makeSpan(["mord","accentunder"],[xe],C)},mathmlBuilder:(j,C)=>{var I=G1.mathMLnode(j.label),W=new pa.MathNode("munder",[i_(j.base,C),I]);return W.setAttribute("accentunder","true"),W}});var w0=j=>{var C=new pa.MathNode("mpadded",j?[j]:[]);return C.setAttribute("width","+0.6em"),C.setAttribute("lspace","0.3em"),C};gi({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(j,C,I){var{parser:W,funcName:oe}=j;return{type:"xArrow",mode:W.mode,label:oe,body:C[0],below:I[0]}},htmlBuilder(j,C){var I=C.style,W=C.havingStyle(I.sup()),oe=tn.wrapFragment(cu(j.body,W,C),C),xe=j.label.slice(0,2)==="\\x"?"x":"cd";oe.classes.push(xe+"-arrow-pad");var et;j.below&&(W=C.havingStyle(I.sub()),et=tn.wrapFragment(cu(j.below,W,C),C),et.classes.push(xe+"-arrow-pad"));var vt=G1.svgSpan(j,C),At=-C.fontMetrics().axisHeight+.5*vt.height,Dr=-C.fontMetrics().axisHeight-.5*vt.height-.111;(oe.depth>.25||j.label==="\\xleftequilibrium")&&(Dr-=oe.depth);var Zr;if(et){var gn=-C.fontMetrics().axisHeight+et.height+.5*vt.height+.111;Zr=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:oe,shift:Dr},{type:"elem",elem:vt,shift:At},{type:"elem",elem:et,shift:gn}]},C)}else Zr=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:oe,shift:Dr},{type:"elem",elem:vt,shift:At}]},C);return Zr.children[0].children[0].children[1].classes.push("svg-align"),tn.makeSpan(["mrel","x-arrow"],[Zr],C)},mathmlBuilder(j,C){var I=G1.mathMLnode(j.label);I.setAttribute("minsize",j.label.charAt(0)==="x"?"1.75em":"3.0em");var W;if(j.body){var oe=w0(i_(j.body,C));if(j.below){var xe=w0(i_(j.below,C));W=new pa.MathNode("munderover",[I,xe,oe])}else W=new pa.MathNode("mover",[I,oe])}else if(j.below){var et=w0(i_(j.below,C));W=new pa.MathNode("munder",[I,et])}else W=w0(),W=new pa.MathNode("mover",[I,W]);return W}});var D=tn.makeSpan;function cw(j,C){var I=dm(j.body,C,!0);return D([j.mclass],I,C)}function Bm(j,C){var I,W=od(j.body,C);return j.mclass==="minner"?I=new pa.MathNode("mpadded",W):j.mclass==="mord"?j.isCharacterBox?(I=W[0],I.type="mi"):I=new pa.MathNode("mi",W):(j.isCharacterBox?(I=W[0],I.type="mo"):I=new pa.MathNode("mo",W),j.mclass==="mbin"?(I.attributes.lspace="0.22em",I.attributes.rspace="0.22em"):j.mclass==="mpunct"?(I.attributes.lspace="0em",I.attributes.rspace="0.17em"):j.mclass==="mopen"||j.mclass==="mclose"?(I.attributes.lspace="0em",I.attributes.rspace="0em"):j.mclass==="minner"&&(I.attributes.lspace="0.0556em",I.attributes.width="+0.1111em")),I}gi({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(j,C){var{parser:I,funcName:W}=j,oe=C[0];return{type:"mclass",mode:I.mode,mclass:"m"+W.slice(5),body:Qo(oe),isCharacterBox:Vt.isCharacterBox(oe)}},htmlBuilder:cw,mathmlBuilder:Bm});var Fx=j=>{var C=j.type==="ordgroup"&&j.body.length?j.body[0]:j;return C.type==="atom"&&(C.family==="bin"||C.family==="rel")?"m"+C.family:"mord"};gi({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(j,C){var{parser:I}=j;return{type:"mclass",mode:I.mode,mclass:Fx(C[0]),body:Qo(C[1]),isCharacterBox:Vt.isCharacterBox(C[1])}}}),gi({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(j,C){var{parser:I,funcName:W}=j,oe=C[1],xe=C[0],et;W!=="\\stackrel"?et=Fx(oe):et="mrel";var vt={type:"op",mode:oe.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:W!=="\\stackrel",body:Qo(oe)},At={type:"supsub",mode:xe.mode,base:vt,sup:W==="\\underset"?null:xe,sub:W==="\\underset"?xe:null};return{type:"mclass",mode:I.mode,mclass:et,body:[At],isCharacterBox:Vt.isCharacterBox(At)}},htmlBuilder:cw,mathmlBuilder:Bm}),gi({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(j,C){var{parser:I}=j;return{type:"pmb",mode:I.mode,mclass:Fx(C[0]),body:Qo(C[0])}},htmlBuilder(j,C){var I=dm(j.body,C,!0),W=tn.makeSpan([j.mclass],I,C);return W.style.textShadow="0.02em 0.01em 0.04px",W},mathmlBuilder(j,C){var I=od(j.body,C),W=new pa.MathNode("mstyle",I);return W.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),W}});var c5={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Rx=()=>({type:"styling",body:[],mode:"math",style:"display"}),l5=j=>j.type==="textord"&&j.text==="@",lw=(j,C)=>(j.type==="mathord"||j.type==="atom")&&j.text===C;function wd(j,C,I){var W=c5[j];switch(W){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return I.callFunction(W,[C[0]],[C[1]]);case"\\uparrow":case"\\downarrow":{var oe=I.callFunction("\\\\cdleft",[C[0]],[]),xe={type:"atom",text:W,mode:"math",family:"rel"},et=I.callFunction("\\Big",[xe],[]),vt=I.callFunction("\\\\cdright",[C[1]],[]),At={type:"ordgroup",mode:"math",body:[oe,et,vt]};return I.callFunction("\\\\cdparent",[At],[])}case"\\\\cdlongequal":return I.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var Dr={type:"textord",text:"\\Vert",mode:"math"};return I.callFunction("\\Big",[Dr],[])}default:return{type:"textord",text:" ",mode:"math"}}}function e0(j){var C=[];for(j.gullet.beginGroup(),j.gullet.macros.set("\\cr","\\\\\\relax"),j.gullet.beginGroup();;){C.push(j.parseExpression(!1,"\\\\")),j.gullet.endGroup(),j.gullet.beginGroup();var I=j.fetch().text;if(I==="&"||I==="\\\\")j.consume();else if(I==="\\end"){C[C.length-1].length===0&&C.pop();break}else throw new ci("Expected \\\\ or \\cr or \\end",j.nextToken)}for(var W=[],oe=[W],xe=0;xe-1))if("<>AV".indexOf(Dr)>-1)for(var gn=0;gn<2;gn++){for(var hi=!0,_i=At+1;_iAV=|." after @',et[At]);var Da=wd(Dr,Zr,j),Xa={type:"styling",body:[Da],mode:"math",style:"display"};W.push(Xa),vt=Rx()}xe%2===0?W.push(vt):W.shift(),W=[],oe.push(W)}j.gullet.endGroup(),j.gullet.endGroup();var Ts=new Array(oe[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:oe,arraystretch:1,addJot:!0,rowGaps:[null],cols:Ts,colSeparationType:"CD",hLinesBeforeRow:new Array(oe.length+1).fill([])}}gi({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(j,C){var{parser:I,funcName:W}=j;return{type:"cdlabel",mode:I.mode,side:W.slice(4),label:C[0]}},htmlBuilder(j,C){var I=C.havingStyle(C.style.sup()),W=tn.wrapFragment(cu(j.label,I,C),C);return W.classes.push("cd-label-"+j.side),W.style.bottom=Ai(.8-W.depth),W.height=0,W.depth=0,W},mathmlBuilder(j,C){var I=new pa.MathNode("mrow",[i_(j.label,C)]);return I=new pa.MathNode("mpadded",[I]),I.setAttribute("width","0"),j.side==="left"&&I.setAttribute("lspace","-1width"),I.setAttribute("voffset","0.7em"),I=new pa.MathNode("mstyle",[I]),I.setAttribute("displaystyle","false"),I.setAttribute("scriptlevel","1"),I}}),gi({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(j,C){var{parser:I}=j;return{type:"cdlabelparent",mode:I.mode,fragment:C[0]}},htmlBuilder(j,C){var I=tn.wrapFragment(cu(j.fragment,C),C);return I.classes.push("cd-vert-arrow"),I},mathmlBuilder(j,C){return new pa.MathNode("mrow",[i_(j.fragment,C)])}}),gi({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(j,C){for(var{parser:I}=j,W=Il(C[0],"ordgroup"),oe=W.body,xe="",et=0;et=1114111)throw new ci("\\@char with invalid code point "+xe);return At<=65535?Dr=String.fromCharCode(At):(At-=65536,Dr=String.fromCharCode((At>>10)+55296,(At&1023)+56320)),{type:"textord",mode:I.mode,text:Dr}}});var uw=(j,C)=>{var I=dm(j.body,C.withColor(j.color),!1);return tn.makeFragment(I)},_w=(j,C)=>{var I=od(j.body,C.withColor(j.color)),W=new pa.MathNode("mstyle",I);return W.setAttribute("mathcolor",j.color),W};gi({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(j,C){var{parser:I}=j,W=Il(C[0],"color-token").color,oe=C[1];return{type:"color",mode:I.mode,color:W,body:Qo(oe)}},htmlBuilder:uw,mathmlBuilder:_w}),gi({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(j,C){var{parser:I,breakOnTokenText:W}=j,oe=Il(C[0],"color-token").color;I.gullet.macros.set("\\current@color",oe);var xe=I.parseExpression(!0,W);return{type:"color",mode:I.mode,color:oe,body:xe}},htmlBuilder:uw,mathmlBuilder:_w}),gi({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(j,C,I){var{parser:W}=j,oe=W.gullet.future().text==="["?W.parseSizeGroup(!0):null,xe=!W.settings.displayMode||!W.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:W.mode,newLine:xe,size:oe&&Il(oe,"size").value}},htmlBuilder(j,C){var I=tn.makeSpan(["mspace"],[],C);return j.newLine&&(I.classes.push("newline"),j.size&&(I.style.marginTop=Ai(Ma(j.size,C)))),I},mathmlBuilder(j,C){var I=new pa.MathNode("mspace");return j.newLine&&(I.setAttribute("linebreak","newline"),j.size&&I.setAttribute("height",Ai(Ma(j.size,C)))),I}});var u5={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Bx=j=>{var C=j.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(C))throw new ci("Expected a control sequence",j);return C},fw=j=>{var C=j.gullet.popToken();return C.text==="="&&(C=j.gullet.popToken(),C.text===" "&&(C=j.gullet.popToken())),C},UT=(j,C,I,W)=>{var oe=j.gullet.macros.get(I.text);oe==null&&(I.noexpand=!0,oe={tokens:[I],numArgs:0,unexpandable:!j.gullet.isExpandable(I.text)}),j.gullet.macros.set(C,oe,W)};gi({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(j){var{parser:C,funcName:I}=j;C.consumeSpaces();var W=C.fetch();if(u5[W.text])return(I==="\\global"||I==="\\\\globallong")&&(W.text=u5[W.text]),Il(C.parseFunction(),"internal");throw new ci("Invalid token after macro prefix",W)}}),gi({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(j){var{parser:C,funcName:I}=j,W=C.gullet.popToken(),oe=W.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(oe))throw new ci("Expected a control sequence",W);for(var xe=0,et,vt=[[]];C.gullet.future().text!=="{";)if(W=C.gullet.popToken(),W.text==="#"){if(C.gullet.future().text==="{"){et=C.gullet.future(),vt[xe].push("{");break}if(W=C.gullet.popToken(),!/^[1-9]$/.test(W.text))throw new ci('Invalid argument number "'+W.text+'"');if(parseInt(W.text)!==xe+1)throw new ci('Argument number "'+W.text+'" out of order');xe++,vt.push([])}else{if(W.text==="EOF")throw new ci("Expected a macro definition");vt[xe].push(W.text)}var{tokens:At}=C.gullet.consumeArg();return et&&At.unshift(et),(I==="\\edef"||I==="\\xdef")&&(At=C.gullet.expandTokens(At),At.reverse()),C.gullet.macros.set(oe,{tokens:At,numArgs:xe,delimiters:vt},I===u5[I]),{type:"internal",mode:C.mode}}}),gi({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(j){var{parser:C,funcName:I}=j,W=Bx(C.gullet.popToken());C.gullet.consumeSpaces();var oe=fw(C);return UT(C,W,oe,I==="\\\\globallet"),{type:"internal",mode:C.mode}}}),gi({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(j){var{parser:C,funcName:I}=j,W=Bx(C.gullet.popToken()),oe=C.gullet.popToken(),xe=C.gullet.popToken();return UT(C,W,xe,I==="\\\\globalfuture"),C.gullet.pushToken(xe),C.gullet.pushToken(oe),{type:"internal",mode:C.mode}}});var Fv=function(C,I,W){var oe=fi.math[C]&&fi.math[C].replace,xe=nl(oe||C,I,W);if(!xe)throw new Error("Unsupported symbol "+C+" and font size "+I+".");return xe},_5=function(C,I,W,oe){var xe=W.havingBaseStyle(I),et=tn.makeSpan(oe.concat(xe.sizingClasses(W)),[C],W),vt=xe.sizeMultiplier/W.sizeMultiplier;return et.height*=vt,et.depth*=vt,et.maxFontSize=xe.sizeMultiplier,et},f5=function(C,I,W){var oe=I.havingBaseStyle(W),xe=(1-I.sizeMultiplier/oe.sizeMultiplier)*I.fontMetrics().axisHeight;C.classes.push("delimcenter"),C.style.top=Ai(xe),C.height-=xe,C.depth+=xe},oD=function(C,I,W,oe,xe,et){var vt=tn.makeSymbol(C,"Main-Regular",xe,oe),At=_5(vt,I,oe,et);return W&&f5(At,oe,I),At},pw=function(C,I,W,oe){return tn.makeSymbol(C,"Size"+I+"-Regular",W,oe)},jx=function(C,I,W,oe,xe,et){var vt=pw(C,I,xe,oe),At=_5(tn.makeSpan(["delimsizing","size"+I],[vt],oe),er.TEXT,oe,et);return W&&f5(At,oe,er.TEXT),At},Rv=function(C,I,W){var oe;I==="Size1-Regular"?oe="delim-size1":oe="delim-size4";var xe=tn.makeSpan(["delimsizinginner",oe],[tn.makeSpan([],[tn.makeSymbol(C,I,W)])]);return{type:"elem",elem:xe}},Ed=function(C,I,W){var oe=ua["Size4-Regular"][C.charCodeAt(0)]?ua["Size4-Regular"][C.charCodeAt(0)][4]:ua["Size1-Regular"][C.charCodeAt(0)][4],xe=new Sa("inner",Km(C,Math.round(1e3*I))),et=new mr([xe],{width:Ai(oe),height:Ai(I),style:"width:"+Ai(oe),viewBox:"0 0 "+1e3*oe+" "+Math.round(1e3*I),preserveAspectRatio:"xMinYMin"}),vt=tn.makeSvgSpan([],[et],W);return vt.height=I,vt.style.height=Ai(I),vt.style.width=Ai(oe),{type:"elem",elem:vt}},Bv=.008,VT={type:"kern",size:-1*Bv},dw=["|","\\lvert","\\rvert","\\vert"],p5=["\\|","\\lVert","\\rVert","\\Vert"],WT=function(C,I,W,oe,xe,et){var vt,At,Dr,Zr,gn="",hi=0;vt=Dr=Zr=C,At=null;var _i="Size1-Regular";C==="\\uparrow"?Dr=Zr="\u23D0":C==="\\Uparrow"?Dr=Zr="\u2016":C==="\\downarrow"?vt=Dr="\u23D0":C==="\\Downarrow"?vt=Dr="\u2016":C==="\\updownarrow"?(vt="\\uparrow",Dr="\u23D0",Zr="\\downarrow"):C==="\\Updownarrow"?(vt="\\Uparrow",Dr="\u2016",Zr="\\Downarrow"):Vt.contains(dw,C)?(Dr="\u2223",gn="vert",hi=333):Vt.contains(p5,C)?(Dr="\u2225",gn="doublevert",hi=556):C==="["||C==="\\lbrack"?(vt="\u23A1",Dr="\u23A2",Zr="\u23A3",_i="Size4-Regular",gn="lbrack",hi=667):C==="]"||C==="\\rbrack"?(vt="\u23A4",Dr="\u23A5",Zr="\u23A6",_i="Size4-Regular",gn="rbrack",hi=667):C==="\\lfloor"||C==="\u230A"?(Dr=vt="\u23A2",Zr="\u23A3",_i="Size4-Regular",gn="lfloor",hi=667):C==="\\lceil"||C==="\u2308"?(vt="\u23A1",Dr=Zr="\u23A2",_i="Size4-Regular",gn="lceil",hi=667):C==="\\rfloor"||C==="\u230B"?(Dr=vt="\u23A5",Zr="\u23A6",_i="Size4-Regular",gn="rfloor",hi=667):C==="\\rceil"||C==="\u2309"?(vt="\u23A4",Dr=Zr="\u23A5",_i="Size4-Regular",gn="rceil",hi=667):C==="("||C==="\\lparen"?(vt="\u239B",Dr="\u239C",Zr="\u239D",_i="Size4-Regular",gn="lparen",hi=875):C===")"||C==="\\rparen"?(vt="\u239E",Dr="\u239F",Zr="\u23A0",_i="Size4-Regular",gn="rparen",hi=875):C==="\\{"||C==="\\lbrace"?(vt="\u23A7",At="\u23A8",Zr="\u23A9",Dr="\u23AA",_i="Size4-Regular"):C==="\\}"||C==="\\rbrace"?(vt="\u23AB",At="\u23AC",Zr="\u23AD",Dr="\u23AA",_i="Size4-Regular"):C==="\\lgroup"||C==="\u27EE"?(vt="\u23A7",Zr="\u23A9",Dr="\u23AA",_i="Size4-Regular"):C==="\\rgroup"||C==="\u27EF"?(vt="\u23AB",Zr="\u23AD",Dr="\u23AA",_i="Size4-Regular"):C==="\\lmoustache"||C==="\u23B0"?(vt="\u23A7",Zr="\u23AD",Dr="\u23AA",_i="Size4-Regular"):(C==="\\rmoustache"||C==="\u23B1")&&(vt="\u23AB",Zr="\u23A9",Dr="\u23AA",_i="Size4-Regular");var Da=Fv(vt,_i,xe),Xa=Da.height+Da.depth,Ts=Fv(Dr,_i,xe),Ls=Ts.height+Ts.depth,Vc=Fv(Zr,_i,xe),ul=Vc.height+Vc.depth,s_=0,zl=1;if(At!==null){var Su=Fv(At,_i,xe);s_=Su.height+Su.depth,zl=2}var e_=Xa+ul+s_,O_=Math.max(0,Math.ceil((I-e_)/(zl*Ls))),ku=e_+O_*zl*Ls,Y0=oe.fontMetrics().axisHeight;W&&(Y0*=oe.sizeMultiplier);var mm=ku/2-Y0,uc=[];if(gn.length>0){var Pl=ku-Xa-ul,o_=Math.round(ku*1e3),Vp=xc(gn,Math.round(Pl*1e3)),D0=new Sa(gn,Vp),T4=(hi/1e3).toFixed(3)+"em",q6=(o_/1e3).toFixed(3)+"em",Xx=new mr([D0],{width:T4,height:q6,viewBox:"0 0 "+hi+" "+o_}),eh=tn.makeSvgSpan([],[Xx],oe);eh.height=o_/1e3,eh.style.width=T4,eh.style.height=q6,uc.push({type:"elem",elem:eh})}else{if(uc.push(Rv(Zr,_i,xe)),uc.push(VT),At===null){var Ap=ku-Xa-ul+2*Bv;uc.push(Ed(Dr,Ap,oe))}else{var N0=(ku-Xa-ul-s_)/2+2*Bv;uc.push(Ed(Dr,N0,oe)),uc.push(VT),uc.push(Rv(At,_i,xe)),uc.push(VT),uc.push(Ed(Dr,N0,oe))}uc.push(VT),uc.push(Rv(vt,_i,xe))}var $h=oe.havingBaseStyle(er.TEXT),y1=tn.makeVList({positionType:"bottom",positionData:mm,children:uc},$h);return _5(tn.makeSpan(["delimsizing","mult"],[y1],$h),er.TEXT,oe,et)},qT=80,d5=.08,$T=function(C,I,W,oe,xe){var et=bu(C,oe,W),vt=new Sa(C,et),At=new mr([vt],{width:"400em",height:Ai(I),viewBox:"0 0 400000 "+W,preserveAspectRatio:"xMinYMin slice"});return tn.makeSvgSpan(["hide-tail"],[At],xe)},sL=function(C,I){var W=I.havingBaseSizing(),oe=m5("\\surd",C*W.sizeMultiplier,jm,W),xe=W.sizeMultiplier,et=Math.max(0,I.minRuleThickness-I.fontMetrics().sqrtRuleThickness),vt,At=0,Dr=0,Zr=0,gn;return oe.type==="small"?(Zr=1e3+1e3*et+qT,C<1?xe=1:C<1.4&&(xe=.7),At=(1+et+d5)/xe,Dr=(1+et)/xe,vt=$T("sqrtMain",At,Zr,et,I),vt.style.minWidth="0.853em",gn=.833/xe):oe.type==="large"?(Zr=(1e3+qT)*v4[oe.size],Dr=(v4[oe.size]+et)/xe,At=(v4[oe.size]+et+d5)/xe,vt=$T("sqrtSize"+oe.size,At,Zr,et,I),vt.style.minWidth="1.02em",gn=1/xe):(At=C+et+d5,Dr=C+et,Zr=Math.floor(1e3*C+et)+qT,vt=$T("sqrtTall",At,Zr,et,I),vt.style.minWidth="0.742em",gn=1.056),vt.height=Dr,vt.style.height=Ai(At),{span:vt,advanceWidth:gn,ruleWidth:(I.fontMetrics().sqrtRuleThickness+et)*xe}},mw=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],J6=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],zx=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],v4=[0,1.2,1.8,2.4,3],Tl=function(C,I,W,oe,xe){if(C==="<"||C==="\\lt"||C==="\u27E8"?C="\\langle":(C===">"||C==="\\gt"||C==="\u27E9")&&(C="\\rangle"),Vt.contains(mw,C)||Vt.contains(zx,C))return jx(C,I,!1,W,oe,xe);if(Vt.contains(J6,C))return WT(C,v4[I],!1,W,oe,xe);throw new ci("Illegal delimiter: '"+C+"'")},cD=[{type:"small",style:er.SCRIPTSCRIPT},{type:"small",style:er.SCRIPT},{type:"small",style:er.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Jx=[{type:"small",style:er.SCRIPTSCRIPT},{type:"small",style:er.SCRIPT},{type:"small",style:er.TEXT},{type:"stack"}],jm=[{type:"small",style:er.SCRIPTSCRIPT},{type:"small",style:er.SCRIPT},{type:"small",style:er.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],lD=function(C){if(C.type==="small")return"Main-Regular";if(C.type==="large")return"Size"+C.size+"-Regular";if(C.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+C.type+"' here.")},m5=function(C,I,W,oe){for(var xe=Math.min(2,3-oe.style.size),et=xe;etI)return W[et]}return W[W.length-1]},Ux=function(C,I,W,oe,xe,et){C==="<"||C==="\\lt"||C==="\u27E8"?C="\\langle":(C===">"||C==="\\gt"||C==="\u27E9")&&(C="\\rangle");var vt;Vt.contains(zx,C)?vt=cD:Vt.contains(mw,C)?vt=jm:vt=Jx;var At=m5(C,I,vt,oe);return At.type==="small"?oD(C,At.style,W,oe,xe,et):At.type==="large"?jx(C,At.size,W,oe,xe,et):WT(C,I,W,oe,xe,et)},Kc=function(C,I,W,oe,xe,et){var vt=oe.fontMetrics().axisHeight*oe.sizeMultiplier,At=901,Dr=5/oe.fontMetrics().ptPerEm,Zr=Math.max(I-vt,W+vt),gn=Math.max(Zr/500*At,2*Zr-Dr);return Ux(C,gn,!0,oe,xe,et)},I_={sqrtImage:sL,sizedDelim:Tl,sizeToMaxHeight:v4,customSizedDelim:Ux,leftRightDelim:Kc},g5={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},gw=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function h5(j,C){var I=g1(j);if(I&&Vt.contains(gw,I.text))return I;throw I?new ci("Invalid delimiter '"+I.text+"' after '"+C.funcName+"'",j):new ci("Invalid delimiter type '"+j.type+"'",j)}gi({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(j,C)=>{var I=h5(C[0],j);return{type:"delimsizing",mode:j.parser.mode,size:g5[j.funcName].size,mclass:g5[j.funcName].mclass,delim:I.text}},htmlBuilder:(j,C)=>j.delim==="."?tn.makeSpan([j.mclass]):I_.sizedDelim(j.delim,j.size,C,j.mode,[j.mclass]),mathmlBuilder:j=>{var C=[];j.delim!=="."&&C.push(p1(j.delim,j.mode));var I=new pa.MathNode("mo",C);j.mclass==="mopen"||j.mclass==="mclose"?I.setAttribute("fence","true"):I.setAttribute("fence","false"),I.setAttribute("stretchy","true");var W=Ai(I_.sizeToMaxHeight[j.size]);return I.setAttribute("minsize",W),I.setAttribute("maxsize",W),I}});function hw(j){if(!j.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}gi({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(j,C)=>{var I=j.parser.gullet.macros.get("\\current@color");if(I&&typeof I!="string")throw new ci("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:j.parser.mode,delim:h5(C[0],j).text,color:I}}}),gi({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(j,C)=>{var I=h5(C[0],j),W=j.parser;++W.leftrightDepth;var oe=W.parseExpression(!1);--W.leftrightDepth,W.expect("\\right",!1);var xe=Il(W.parseFunction(),"leftright-right");return{type:"leftright",mode:W.mode,body:oe,left:I.text,right:xe.delim,rightColor:xe.color}},htmlBuilder:(j,C)=>{hw(j);for(var I=dm(j.body,C,!0,["mopen","mclose"]),W=0,oe=0,xe=!1,et=0;et{hw(j);var I=od(j.body,C);if(j.left!=="."){var W=new pa.MathNode("mo",[p1(j.left,j.mode)]);W.setAttribute("fence","true"),I.unshift(W)}if(j.right!=="."){var oe=new pa.MathNode("mo",[p1(j.right,j.mode)]);oe.setAttribute("fence","true"),j.rightColor&&oe.setAttribute("mathcolor",j.rightColor),I.push(oe)}return r5(I)}}),gi({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(j,C)=>{var I=h5(C[0],j);if(!j.parser.leftrightDepth)throw new ci("\\middle without preceding \\left",I);return{type:"middle",mode:j.parser.mode,delim:I.text}},htmlBuilder:(j,C)=>{var I;if(j.delim===".")I=Ga(C,[]);else{I=I_.sizedDelim(j.delim,1,C,j.mode,[]);var W={delim:j.delim,options:C};I.isMiddle=W}return I},mathmlBuilder:(j,C)=>{var I=j.delim==="\\vert"||j.delim==="|"?p1("|","text"):p1(j.delim,j.mode),W=new pa.MathNode("mo",[I]);return W.setAttribute("fence","true"),W.setAttribute("lspace","0.05em"),W.setAttribute("rspace","0.05em"),W}});var y5=(j,C)=>{var I=tn.wrapFragment(cu(j.body,C),C),W=j.label.slice(1),oe=C.sizeMultiplier,xe,et=0,vt=Vt.isCharacterBox(j.body);if(W==="sout")xe=tn.makeSpan(["stretchy","sout"]),xe.height=C.fontMetrics().defaultRuleThickness/oe,et=-.5*C.fontMetrics().xHeight;else if(W==="phase"){var At=Ma({number:.6,unit:"pt"},C),Dr=Ma({number:.35,unit:"ex"},C),Zr=C.havingBaseSizing();oe=oe/Zr.sizeMultiplier;var gn=I.height+I.depth+At+Dr;I.style.paddingLeft=Ai(gn/2+At);var hi=Math.floor(1e3*gn*oe),_i=Fu(hi),Da=new mr([new Sa("phase",_i)],{width:"400em",height:Ai(hi/1e3),viewBox:"0 0 400000 "+hi,preserveAspectRatio:"xMinYMin slice"});xe=tn.makeSvgSpan(["hide-tail"],[Da],C),xe.style.height=Ai(gn),et=I.depth+At+Dr}else{/cancel/.test(W)?vt||I.classes.push("cancel-pad"):W==="angl"?I.classes.push("anglpad"):I.classes.push("boxpad");var Xa=0,Ts=0,Ls=0;/box/.test(W)?(Ls=Math.max(C.fontMetrics().fboxrule,C.minRuleThickness),Xa=C.fontMetrics().fboxsep+(W==="colorbox"?0:Ls),Ts=Xa):W==="angl"?(Ls=Math.max(C.fontMetrics().defaultRuleThickness,C.minRuleThickness),Xa=4*Ls,Ts=Math.max(0,.25-I.depth)):(Xa=vt?.2:0,Ts=Xa),xe=G1.encloseSpan(I,W,Xa,Ts,C),/fbox|boxed|fcolorbox/.test(W)?(xe.style.borderStyle="solid",xe.style.borderWidth=Ai(Ls)):W==="angl"&&Ls!==.049&&(xe.style.borderTopWidth=Ai(Ls),xe.style.borderRightWidth=Ai(Ls)),et=I.depth+Ts,j.backgroundColor&&(xe.style.backgroundColor=j.backgroundColor,j.borderColor&&(xe.style.borderColor=j.borderColor))}var Vc;if(j.backgroundColor)Vc=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:xe,shift:et},{type:"elem",elem:I,shift:0}]},C);else{var ul=/cancel|phase/.test(W)?["svg-align"]:[];Vc=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:I,shift:0},{type:"elem",elem:xe,shift:et,wrapperClasses:ul}]},C)}return/cancel/.test(W)&&(Vc.height=I.height,Vc.depth=I.depth),/cancel/.test(W)&&!vt?tn.makeSpan(["mord","cancel-lap"],[Vc],C):tn.makeSpan(["mord"],[Vc],C)},v5=(j,C)=>{var I=0,W=new pa.MathNode(j.label.indexOf("colorbox")>-1?"mpadded":"menclose",[i_(j.body,C)]);switch(j.label){case"\\cancel":W.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":W.setAttribute("notation","downdiagonalstrike");break;case"\\phase":W.setAttribute("notation","phasorangle");break;case"\\sout":W.setAttribute("notation","horizontalstrike");break;case"\\fbox":W.setAttribute("notation","box");break;case"\\angl":W.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(I=C.fontMetrics().fboxsep*C.fontMetrics().ptPerEm,W.setAttribute("width","+"+2*I+"pt"),W.setAttribute("height","+"+2*I+"pt"),W.setAttribute("lspace",I+"pt"),W.setAttribute("voffset",I+"pt"),j.label==="\\fcolorbox"){var oe=Math.max(C.fontMetrics().fboxrule,C.minRuleThickness);W.setAttribute("style","border: "+oe+"em solid "+String(j.borderColor))}break;case"\\xcancel":W.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return j.backgroundColor&&W.setAttribute("mathbackground",j.backgroundColor),W};gi({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(j,C,I){var{parser:W,funcName:oe}=j,xe=Il(C[0],"color-token").color,et=C[1];return{type:"enclose",mode:W.mode,label:oe,backgroundColor:xe,body:et}},htmlBuilder:y5,mathmlBuilder:v5}),gi({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(j,C,I){var{parser:W,funcName:oe}=j,xe=Il(C[0],"color-token").color,et=Il(C[1],"color-token").color,vt=C[2];return{type:"enclose",mode:W.mode,label:oe,backgroundColor:et,borderColor:xe,body:vt}},htmlBuilder:y5,mathmlBuilder:v5}),gi({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(j,C){var{parser:I}=j;return{type:"enclose",mode:I.mode,label:"\\fbox",body:C[0]}}}),gi({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(j,C){var{parser:I,funcName:W}=j,oe=C[0];return{type:"enclose",mode:I.mode,label:W,body:oe}},htmlBuilder:y5,mathmlBuilder:v5}),gi({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(j,C){var{parser:I}=j;return{type:"enclose",mode:I.mode,label:"\\angl",body:C[0]}}});var uD={};function Z1(j){for(var{type:C,names:I,props:W,handler:oe,htmlBuilder:xe,mathmlBuilder:et}=j,vt={type:C,numArgs:W.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:oe},At=0;At{var C=j.parser.settings;if(!C.displayMode)throw new ci("{"+j.envName+"} can be used only in display mode.")};function qh(j){if(j.indexOf("ed")===-1)return j.indexOf("*")===-1}function Y1(j,C,I){var{hskipBeforeAndAfter:W,addJot:oe,cols:xe,arraystretch:et,colSeparationType:vt,autoTag:At,singleRow:Dr,emptySingleRow:Zr,maxNumCols:gn,leqno:hi}=C;if(j.gullet.beginGroup(),Dr||j.gullet.macros.set("\\cr","\\\\\\relax"),!et){var _i=j.gullet.expandMacroAsText("\\arraystretch");if(_i==null)et=1;else if(et=parseFloat(_i),!et||et<0)throw new ci("Invalid \\arraystretch: "+_i)}j.gullet.beginGroup();var Da=[],Xa=[Da],Ts=[],Ls=[],Vc=At!=null?[]:void 0;function ul(){At&&j.gullet.macros.set("\\@eqnsw","1",!0)}function s_(){Vc&&(j.gullet.macros.get("\\df@tag")?(Vc.push(j.subparse([new Yc("\\df@tag")])),j.gullet.macros.set("\\df@tag",void 0,!0)):Vc.push(!!At&&j.gullet.macros.get("\\@eqnsw")==="1"))}for(ul(),Ls.push(Wh(j));;){var zl=j.parseExpression(!1,Dr?"\\end":"\\\\");j.gullet.endGroup(),j.gullet.beginGroup(),zl={type:"ordgroup",mode:j.mode,body:zl},I&&(zl={type:"styling",mode:j.mode,style:I,body:[zl]}),Da.push(zl);var Su=j.fetch().text;if(Su==="&"){if(gn&&Da.length===gn){if(Dr||vt)throw new ci("Too many tab characters: &",j.nextToken);j.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}j.consume()}else if(Su==="\\end"){s_(),Da.length===1&&zl.type==="styling"&&zl.body[0].body.length===0&&(Xa.length>1||!Zr)&&Xa.pop(),Ls.length0&&(ul+=.25),Dr.push({pos:ul,isDashed:Xl[Zl]})}for(s_(et[0]),W=0;W0&&(mm+=Vc,e_Xl))for(W=0;W=vt)){var Q2=void 0;(oe>0||C.hskipBeforeAndAfter)&&(Q2=Vt.deflt(N0.pregap,hi),Q2!==0&&(Vp=tn.makeSpan(["arraycolsep"],[]),Vp.style.width=Ai(Q2),o_.push(Vp)));var Cu=[];for(W=0;W0){for(var t0=tn.makeLineSpan("hline",I,Zr),T5=tn.makeLineSpan("hdashline",I,Zr),K2=[{type:"elem",elem:At,shift:0}];Dr.length>0;){var ap=Dr.pop(),eb=ap.pos-uc;ap.isDashed?K2.push({type:"elem",elem:T5,shift:eb}):K2.push({type:"elem",elem:t0,shift:eb})}At=tn.makeVList({positionType:"individualShift",children:K2},I)}if(T4.length===0)return tn.makeSpan(["mord"],[At],I);var Gh=tn.makeVList({positionType:"individualShift",children:T4},I);return Gh=tn.makeSpan(["tag"],[Gh],I),tn.makeFragment([At,Gh])},jv={c:"center ",l:"left ",r:"right "},By=function(C,I){for(var W=[],oe=new pa.MathNode("mtd",[],["mtr-glue"]),xe=new pa.MathNode("mtd",[],["mml-eqn-num"]),et=0;et0){var Da=C.cols,Xa="",Ts=!1,Ls=0,Vc=Da.length;Da[0].type==="separator"&&(hi+="top ",Ls=1),Da[Da.length-1].type==="separator"&&(hi+="bottom ",Vc-=1);for(var ul=Ls;ul0?"left ":"",hi+=O_[O_.length-1].length>0?"right ":"";for(var ku=1;ku-1?"alignat":"align",xe=C.envName==="split",et=Y1(C.parser,{cols:W,addJot:!0,autoTag:xe?void 0:qh(C.envName),emptySingleRow:!0,colSeparationType:oe,maxNumCols:xe?2:void 0,leqno:C.parser.settings.leqno},"display"),vt,At=0,Dr={type:"ordgroup",mode:C.mode,body:[]};if(I[0]&&I[0].type==="ordgroup"){for(var Zr="",gn=0;gn0&&_i&&(Ts=1),W[Da]={type:"align",align:Xa,pregap:Ts,postgap:0}}return et.colSeparationType=_i?"align":"alignat",et};Z1({type:"array",names:["array","darray"],props:{numArgs:1},handler(j,C){var I=g1(C[0]),W=I?[C[0]]:Il(C[0],"ordgroup").body,oe=W.map(function(et){var vt=h4(et),At=vt.text;if("lcr".indexOf(At)!==-1)return{type:"align",align:At};if(At==="|")return{type:"separator",separator:"|"};if(At===":")return{type:"separator",separator:":"};throw new ci("Unknown column alignment: "+At,et)}),xe={cols:oe,hskipBeforeAndAfter:!0,maxNumCols:oe.length};return Y1(j.parser,xe,Ry(j.envName))},htmlBuilder:E0,mathmlBuilder:By}),Z1({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(j){var C={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[j.envName.replace("*","")],I="c",W={hskipBeforeAndAfter:!1,cols:[{type:"align",align:I}]};if(j.envName.charAt(j.envName.length-1)==="*"){var oe=j.parser;if(oe.consumeSpaces(),oe.fetch().text==="["){if(oe.consume(),oe.consumeSpaces(),I=oe.fetch().text,"lcr".indexOf(I)===-1)throw new ci("Expected l or c or r",oe.nextToken);oe.consume(),oe.consumeSpaces(),oe.expect("]"),oe.consume(),W.cols=[{type:"align",align:I}]}}var xe=Y1(j.parser,W,Ry(j.envName)),et=Math.max(0,...xe.body.map(vt=>vt.length));return xe.cols=new Array(et).fill({type:"align",align:I}),C?{type:"leftright",mode:j.mode,body:[xe],left:C[0],right:C[1],rightColor:void 0}:xe},htmlBuilder:E0,mathmlBuilder:By}),Z1({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(j){var C={arraystretch:.5},I=Y1(j.parser,C,"script");return I.colSeparationType="small",I},htmlBuilder:E0,mathmlBuilder:By}),Z1({type:"array",names:["subarray"],props:{numArgs:1},handler(j,C){var I=g1(C[0]),W=I?[C[0]]:Il(C[0],"ordgroup").body,oe=W.map(function(et){var vt=h4(et),At=vt.text;if("lc".indexOf(At)!==-1)return{type:"align",align:At};throw new ci("Unknown column alignment: "+At,et)});if(oe.length>1)throw new ci("{subarray} can contain only one column");var xe={cols:oe,hskipBeforeAndAfter:!1,arraystretch:.5};if(xe=Y1(j.parser,xe,"script"),xe.body.length>0&&xe.body[0].length>1)throw new ci("{subarray} can contain only one column");return xe},htmlBuilder:E0,mathmlBuilder:By}),Z1({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(j){var C={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},I=Y1(j.parser,C,Ry(j.envName));return{type:"leftright",mode:j.mode,body:[I],left:j.envName.indexOf("r")>-1?".":"\\{",right:j.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:E0,mathmlBuilder:By}),Z1({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Vx,htmlBuilder:E0,mathmlBuilder:By}),Z1({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(j){Vt.contains(["gather","gather*"],j.envName)&&b4(j);var C={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:qh(j.envName),emptySingleRow:!0,leqno:j.parser.settings.leqno};return Y1(j.parser,C,"display")},htmlBuilder:E0,mathmlBuilder:By}),Z1({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Vx,htmlBuilder:E0,mathmlBuilder:By}),Z1({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(j){b4(j);var C={autoTag:qh(j.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:j.parser.settings.leqno};return Y1(j.parser,C,"display")},htmlBuilder:E0,mathmlBuilder:By}),Z1({type:"array",names:["CD"],props:{numArgs:0},handler(j){return b4(j),e0(j.parser)},htmlBuilder:E0,mathmlBuilder:By}),kt("\\nonumber","\\gdef\\@eqnsw{0}"),kt("\\notag","\\nonumber"),gi({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(j,C){throw new ci(j.funcName+" valid only within array environment")}});var Q1=uD;gi({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(j,C){var{parser:I,funcName:W}=j,oe=C[0];if(oe.type!=="ordgroup")throw new ci("Invalid environment name",oe);for(var xe="",et=0;et{var I=j.font,W=C.withFont(I);return cu(j.body,W)},U6=(j,C)=>{var I=j.font,W=C.withFont(I);return i_(j.body,W)},b5={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};gi({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(j,C)=>{var{parser:I,funcName:W}=j,oe=rf(C[0]),xe=W;return xe in b5&&(xe=b5[xe]),{type:"font",mode:I.mode,font:xe.slice(1),body:oe}},htmlBuilder:Hi,mathmlBuilder:U6}),gi({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(j,C)=>{var{parser:I}=j,W=C[0],oe=Vt.isCharacterBox(W);return{type:"mclass",mode:I.mode,mclass:Fx(W),body:[{type:"font",mode:I.mode,font:"boldsymbol",body:W}],isCharacterBox:oe}}}),gi({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(j,C)=>{var{parser:I,funcName:W,breakOnTokenText:oe}=j,{mode:xe}=I,et=I.parseExpression(!0,oe),vt="math"+W.slice(1);return{type:"font",mode:xe,font:vt,body:{type:"ordgroup",mode:I.mode,body:et}}},htmlBuilder:Hi,mathmlBuilder:U6});var x5=(j,C)=>{var I=C;return j==="display"?I=I.id>=er.SCRIPT.id?I.text():er.DISPLAY:j==="text"&&I.size===er.DISPLAY.size?I=er.TEXT:j==="script"?I=er.SCRIPT:j==="scriptscript"&&(I=er.SCRIPTSCRIPT),I},HT=(j,C)=>{var I=x5(j.size,C.style),W=I.fracNum(),oe=I.fracDen(),xe;xe=C.havingStyle(W);var et=cu(j.numer,xe,C);if(j.continued){var vt=8.5/C.fontMetrics().ptPerEm,At=3.5/C.fontMetrics().ptPerEm;et.height=et.height0?Da=3*hi:Da=7*hi,Xa=C.fontMetrics().denom1):(gn>0?(_i=C.fontMetrics().num2,Da=hi):(_i=C.fontMetrics().num3,Da=3*hi),Xa=C.fontMetrics().denom2);var Ts;if(Zr){var Vc=C.fontMetrics().axisHeight;_i-et.depth-(Vc+.5*gn){var I=new pa.MathNode("mfrac",[i_(j.numer,C),i_(j.denom,C)]);if(!j.hasBarLine)I.setAttribute("linethickness","0px");else if(j.barSize){var W=Ma(j.barSize,C);I.setAttribute("linethickness",Ai(W))}var oe=x5(j.size,C.style);if(oe.size!==C.style.size){I=new pa.MathNode("mstyle",[I]);var xe=oe.size===er.DISPLAY.size?"true":"false";I.setAttribute("displaystyle",xe),I.setAttribute("scriptlevel","0")}if(j.leftDelim!=null||j.rightDelim!=null){var et=[];if(j.leftDelim!=null){var vt=new pa.MathNode("mo",[new pa.TextNode(j.leftDelim.replace("\\",""))]);vt.setAttribute("fence","true"),et.push(vt)}if(et.push(I),j.rightDelim!=null){var At=new pa.MathNode("mo",[new pa.TextNode(j.rightDelim.replace("\\",""))]);At.setAttribute("fence","true"),et.push(At)}return r5(et)}return I};gi({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(j,C)=>{var{parser:I,funcName:W}=j,oe=C[0],xe=C[1],et,vt=null,At=null,Dr="auto";switch(W){case"\\dfrac":case"\\frac":case"\\tfrac":et=!0;break;case"\\\\atopfrac":et=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":et=!1,vt="(",At=")";break;case"\\\\bracefrac":et=!1,vt="\\{",At="\\}";break;case"\\\\brackfrac":et=!1,vt="[",At="]";break;default:throw new Error("Unrecognized genfrac command")}switch(W){case"\\dfrac":case"\\dbinom":Dr="display";break;case"\\tfrac":case"\\tbinom":Dr="text";break}return{type:"genfrac",mode:I.mode,continued:!1,numer:oe,denom:xe,hasBarLine:et,leftDelim:vt,rightDelim:At,size:Dr,barSize:null}},htmlBuilder:HT,mathmlBuilder:V6}),gi({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(j,C)=>{var{parser:I,funcName:W}=j,oe=C[0],xe=C[1];return{type:"genfrac",mode:I.mode,continued:!0,numer:oe,denom:xe,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),gi({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(j){var{parser:C,funcName:I,token:W}=j,oe;switch(I){case"\\over":oe="\\frac";break;case"\\choose":oe="\\binom";break;case"\\atop":oe="\\\\atopfrac";break;case"\\brace":oe="\\\\bracefrac";break;case"\\brack":oe="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:C.mode,replaceWith:oe,token:W}}});var Wx=["display","text","script","scriptscript"],qx=function(C){var I=null;return C.length>0&&(I=C,I=I==="."?null:I),I};gi({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(j,C){var{parser:I}=j,W=C[4],oe=C[5],xe=rf(C[0]),et=xe.type==="atom"&&xe.family==="open"?qx(xe.text):null,vt=rf(C[1]),At=vt.type==="atom"&&vt.family==="close"?qx(vt.text):null,Dr=Il(C[2],"size"),Zr,gn=null;Dr.isBlank?Zr=!0:(gn=Dr.value,Zr=gn.number>0);var hi="auto",_i=C[3];if(_i.type==="ordgroup"){if(_i.body.length>0){var Da=Il(_i.body[0],"textord");hi=Wx[Number(Da.text)]}}else _i=Il(_i,"textord"),hi=Wx[Number(_i.text)];return{type:"genfrac",mode:I.mode,numer:W,denom:oe,continued:!1,hasBarLine:Zr,barSize:gn,leftDelim:et,rightDelim:At,size:hi}},htmlBuilder:HT,mathmlBuilder:V6}),gi({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(j,C){var{parser:I,funcName:W,token:oe}=j;return{type:"infix",mode:I.mode,replaceWith:"\\\\abovefrac",size:Il(C[0],"size").value,token:oe}}}),gi({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(j,C)=>{var{parser:I,funcName:W}=j,oe=C[0],xe=Co(Il(C[1],"infix").size),et=C[2],vt=xe.number>0;return{type:"genfrac",mode:I.mode,numer:oe,denom:et,continued:!1,hasBarLine:vt,barSize:xe,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:HT,mathmlBuilder:V6});var $x=(j,C)=>{var I=C.style,W,oe;j.type==="supsub"?(W=j.sup?cu(j.sup,C.havingStyle(I.sup()),C):cu(j.sub,C.havingStyle(I.sub()),C),oe=Il(j.base,"horizBrace")):oe=Il(j,"horizBrace");var xe=cu(oe.base,C.havingBaseStyle(er.DISPLAY)),et=G1.svgSpan(oe,C),vt;if(oe.isOver?(vt=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xe},{type:"kern",size:.1},{type:"elem",elem:et}]},C),vt.children[0].children[0].children[1].classes.push("svg-align")):(vt=tn.makeVList({positionType:"bottom",positionData:xe.depth+.1+et.height,children:[{type:"elem",elem:et},{type:"kern",size:.1},{type:"elem",elem:xe}]},C),vt.children[0].children[0].children[0].classes.push("svg-align")),W){var At=tn.makeSpan(["mord",oe.isOver?"mover":"munder"],[vt],C);oe.isOver?vt=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:At},{type:"kern",size:.2},{type:"elem",elem:W}]},C):vt=tn.makeVList({positionType:"bottom",positionData:At.depth+.2+W.height+W.depth,children:[{type:"elem",elem:W},{type:"kern",size:.2},{type:"elem",elem:At}]},C)}return tn.makeSpan(["mord",oe.isOver?"mover":"munder"],[vt],C)},Hx=(j,C)=>{var I=G1.mathMLnode(j.label);return new pa.MathNode(j.isOver?"mover":"munder",[i_(j.base,C),I])};gi({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(j,C){var{parser:I,funcName:W}=j;return{type:"horizBrace",mode:I.mode,label:W,isOver:/^\\over/.test(W),base:C[0]}},htmlBuilder:$x,mathmlBuilder:Hx}),gi({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(j,C)=>{var{parser:I}=j,W=C[1],oe=Il(C[0],"url").url;return I.settings.isTrusted({command:"\\href",url:oe})?{type:"href",mode:I.mode,href:oe,body:Qo(W)}:I.formatUnsupportedCmd("\\href")},htmlBuilder:(j,C)=>{var I=dm(j.body,C,!1);return tn.makeAnchor(j.href,[],I,C)},mathmlBuilder:(j,C)=>{var I=g4(j.body,C);return I instanceof Mf||(I=new Mf("mrow",[I])),I.setAttribute("href",j.href),I}}),gi({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(j,C)=>{var{parser:I}=j,W=Il(C[0],"url").url;if(!I.settings.isTrusted({command:"\\url",url:W}))return I.formatUnsupportedCmd("\\url");for(var oe=[],xe=0;xe{var{parser:I,funcName:W,token:oe}=j,xe=Il(C[0],"raw").string,et=C[1];I.settings.strict&&I.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var vt,At={};switch(W){case"\\htmlClass":At.class=xe,vt={command:"\\htmlClass",class:xe};break;case"\\htmlId":At.id=xe,vt={command:"\\htmlId",id:xe};break;case"\\htmlStyle":At.style=xe,vt={command:"\\htmlStyle",style:xe};break;case"\\htmlData":{for(var Dr=xe.split(","),Zr=0;Zr{var I=dm(j.body,C,!1),W=["enclosing"];j.attributes.class&&W.push(...j.attributes.class.trim().split(/\s+/));var oe=tn.makeSpan(W,I,C);for(var xe in j.attributes)xe!=="class"&&j.attributes.hasOwnProperty(xe)&&oe.setAttribute(xe,j.attributes[xe]);return oe},mathmlBuilder:(j,C)=>g4(j.body,C)}),gi({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(j,C)=>{var{parser:I}=j;return{type:"htmlmathml",mode:I.mode,html:Qo(C[0]),mathml:Qo(C[1])}},htmlBuilder:(j,C)=>{var I=dm(j.html,C,!1);return tn.makeFragment(I)},mathmlBuilder:(j,C)=>g4(j.mathml,C)});var W6=function(C){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(C))return{number:+C,unit:"bp"};var I=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(C);if(!I)throw new ci("Invalid size: '"+C+"' in \\includegraphics");var W={number:+(I[1]+I[2]),unit:I[3]};if(!Lo(W))throw new ci("Invalid unit: '"+W.unit+"' in \\includegraphics.");return W};gi({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(j,C,I)=>{var{parser:W}=j,oe={number:0,unit:"em"},xe={number:.9,unit:"em"},et={number:0,unit:"em"},vt="";if(I[0])for(var At=Il(I[0],"raw").string,Dr=At.split(","),Zr=0;Zr{var I=Ma(j.height,C),W=0;j.totalheight.number>0&&(W=Ma(j.totalheight,C)-I);var oe=0;j.width.number>0&&(oe=Ma(j.width,C));var xe={height:Ai(I+W)};oe>0&&(xe.width=Ai(oe)),W>0&&(xe.verticalAlign=Ai(-W));var et=new Ot(j.src,j.alt,xe);return et.height=I,et.depth=W,et},mathmlBuilder:(j,C)=>{var I=new pa.MathNode("mglyph",[]);I.setAttribute("alt",j.alt);var W=Ma(j.height,C),oe=0;if(j.totalheight.number>0&&(oe=Ma(j.totalheight,C)-W,I.setAttribute("valign",Ai(-oe))),I.setAttribute("height",Ai(W+oe)),j.width.number>0){var xe=Ma(j.width,C);I.setAttribute("width",Ai(xe))}return I.setAttribute("src",j.src),I}}),gi({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(j,C){var{parser:I,funcName:W}=j,oe=Il(C[0],"size");if(I.settings.strict){var xe=W[1]==="m",et=oe.value.unit==="mu";xe?(et||I.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+W+" supports only mu units, "+("not "+oe.value.unit+" units")),I.mode!=="math"&&I.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+W+" works only in math mode")):et&&I.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+W+" doesn't support mu units")}return{type:"kern",mode:I.mode,dimension:oe.value}},htmlBuilder(j,C){return tn.makeGlue(j.dimension,C)},mathmlBuilder(j,C){var I=Ma(j.dimension,C);return new pa.SpaceNode(I)}}),gi({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(j,C)=>{var{parser:I,funcName:W}=j,oe=C[0];return{type:"lap",mode:I.mode,alignment:W.slice(5),body:oe}},htmlBuilder:(j,C)=>{var I;j.alignment==="clap"?(I=tn.makeSpan([],[cu(j.body,C)]),I=tn.makeSpan(["inner"],[I],C)):I=tn.makeSpan(["inner"],[cu(j.body,C)]);var W=tn.makeSpan(["fix"],[]),oe=tn.makeSpan([j.alignment],[I,W],C),xe=tn.makeSpan(["strut"]);return xe.style.height=Ai(oe.height+oe.depth),oe.depth&&(xe.style.verticalAlign=Ai(-oe.depth)),oe.children.unshift(xe),oe=tn.makeSpan(["thinbox"],[oe],C),tn.makeSpan(["mord","vbox"],[oe],C)},mathmlBuilder:(j,C)=>{var I=new pa.MathNode("mpadded",[i_(j.body,C)]);if(j.alignment!=="rlap"){var W=j.alignment==="llap"?"-1":"-0.5";I.setAttribute("lspace",W+"width")}return I.setAttribute("width","0px"),I}}),gi({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(j,C){var{funcName:I,parser:W}=j,oe=W.mode;W.switchMode("math");var xe=I==="\\("?"\\)":"$",et=W.parseExpression(!1,xe);return W.expect(xe),W.switchMode(oe),{type:"styling",mode:W.mode,style:"text",body:et}}}),gi({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(j,C){throw new ci("Mismatched "+j.funcName)}});var Gx=(j,C)=>{switch(C.style.size){case er.DISPLAY.size:return j.display;case er.TEXT.size:return j.text;case er.SCRIPT.size:return j.script;case er.SCRIPTSCRIPT.size:return j.scriptscript;default:return j.text}};gi({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(j,C)=>{var{parser:I}=j;return{type:"mathchoice",mode:I.mode,display:Qo(C[0]),text:Qo(C[1]),script:Qo(C[2]),scriptscript:Qo(C[3])}},htmlBuilder:(j,C)=>{var I=Gx(j,C),W=dm(I,C,!1);return tn.makeFragment(W)},mathmlBuilder:(j,C)=>{var I=Gx(j,C);return g4(I,C)}});var Oe=(j,C,I,W,oe,xe,et)=>{j=tn.makeSpan([],[j]);var vt=I&&Vt.isCharacterBox(I),At,Dr;if(C){var Zr=cu(C,W.havingStyle(oe.sup()),W);Dr={elem:Zr,kern:Math.max(W.fontMetrics().bigOpSpacing1,W.fontMetrics().bigOpSpacing3-Zr.depth)}}if(I){var gn=cu(I,W.havingStyle(oe.sub()),W);At={elem:gn,kern:Math.max(W.fontMetrics().bigOpSpacing2,W.fontMetrics().bigOpSpacing4-gn.height)}}var hi;if(Dr&&At){var _i=W.fontMetrics().bigOpSpacing5+At.elem.height+At.elem.depth+At.kern+j.depth+et;hi=tn.makeVList({positionType:"bottom",positionData:_i,children:[{type:"kern",size:W.fontMetrics().bigOpSpacing5},{type:"elem",elem:At.elem,marginLeft:Ai(-xe)},{type:"kern",size:At.kern},{type:"elem",elem:j},{type:"kern",size:Dr.kern},{type:"elem",elem:Dr.elem,marginLeft:Ai(xe)},{type:"kern",size:W.fontMetrics().bigOpSpacing5}]},W)}else if(At){var Da=j.height-et;hi=tn.makeVList({positionType:"top",positionData:Da,children:[{type:"kern",size:W.fontMetrics().bigOpSpacing5},{type:"elem",elem:At.elem,marginLeft:Ai(-xe)},{type:"kern",size:At.kern},{type:"elem",elem:j}]},W)}else if(Dr){var Xa=j.depth+et;hi=tn.makeVList({positionType:"bottom",positionData:Xa,children:[{type:"elem",elem:j},{type:"kern",size:Dr.kern},{type:"elem",elem:Dr.elem,marginLeft:Ai(xe)},{type:"kern",size:W.fontMetrics().bigOpSpacing5}]},W)}else return j;var Ts=[hi];if(At&&xe!==0&&!vt){var Ls=tn.makeSpan(["mspace"],[],W);Ls.style.marginRight=Ai(xe),Ts.unshift(Ls)}return tn.makeSpan(["mop","op-limits"],Ts,W)},lt=["\\smallint"],mt=(j,C)=>{var I,W,oe=!1,xe;j.type==="supsub"?(I=j.sup,W=j.sub,xe=Il(j.base,"op"),oe=!0):xe=Il(j,"op");var et=C.style,vt=!1;et.size===er.DISPLAY.size&&xe.symbol&&!Vt.contains(lt,xe.name)&&(vt=!0);var At;if(xe.symbol){var Dr=vt?"Size2-Regular":"Size1-Regular",Zr="";if((xe.name==="\\oiint"||xe.name==="\\oiiint")&&(Zr=xe.name.slice(1),xe.name=Zr==="oiint"?"\\iint":"\\iiint"),At=tn.makeSymbol(xe.name,Dr,"math",C,["mop","op-symbol",vt?"large-op":"small-op"]),Zr.length>0){var gn=At.italic,hi=tn.staticSvg(Zr+"Size"+(vt?"2":"1"),C);At=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:At,shift:0},{type:"elem",elem:hi,shift:vt?.08:0}]},C),xe.name="\\"+Zr,At.classes.unshift("mop"),At.italic=gn}}else if(xe.body){var _i=dm(xe.body,C,!0);_i.length===1&&_i[0]instanceof ur?(At=_i[0],At.classes[0]="mop"):At=tn.makeSpan(["mop"],_i,C)}else{for(var Da=[],Xa=1;Xa{var I;if(j.symbol)I=new Mf("mo",[p1(j.name,j.mode)]),Vt.contains(lt,j.name)&&I.setAttribute("largeop","false");else if(j.body)I=new Mf("mo",od(j.body,C));else{I=new Mf("mi",[new H1(j.name.slice(1))]);var W=new Mf("mo",[p1("\u2061","text")]);j.parentIsSupSub?I=new Mf("mrow",[I,W]):I=Mx([I,W])}return I},Bt={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};gi({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(j,C)=>{var{parser:I,funcName:W}=j,oe=W;return oe.length===1&&(oe=Bt[oe]),{type:"op",mode:I.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:oe}},htmlBuilder:mt,mathmlBuilder:It}),gi({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(j,C)=>{var{parser:I}=j,W=C[0];return{type:"op",mode:I.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Qo(W)}},htmlBuilder:mt,mathmlBuilder:It});var Ur={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};gi({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(j){var{parser:C,funcName:I}=j;return{type:"op",mode:C.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:I}},htmlBuilder:mt,mathmlBuilder:It}),gi({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(j){var{parser:C,funcName:I}=j;return{type:"op",mode:C.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:I}},htmlBuilder:mt,mathmlBuilder:It}),gi({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(j){var{parser:C,funcName:I}=j,W=I;return W.length===1&&(W=Ur[W]),{type:"op",mode:C.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:W}},htmlBuilder:mt,mathmlBuilder:It});var Er=(j,C)=>{var I,W,oe=!1,xe;j.type==="supsub"?(I=j.sup,W=j.sub,xe=Il(j.base,"operatorname"),oe=!0):xe=Il(j,"operatorname");var et;if(xe.body.length>0){for(var vt=xe.body.map(gn=>{var hi=gn.text;return typeof hi=="string"?{type:"textord",mode:gn.mode,text:hi}:gn}),At=dm(vt,C.withFont("mathrm"),!0),Dr=0;Dr{for(var I=od(j.body,C.withFont("mathrm")),W=!0,oe=0;oeZr.toText()).join("");I=[new pa.TextNode(vt)]}var At=new pa.MathNode("mi",I);At.setAttribute("mathvariant","normal");var Dr=new pa.MathNode("mo",[p1("\u2061","text")]);return j.parentIsSupSub?new pa.MathNode("mrow",[At,Dr]):pa.newDocumentFragment([At,Dr])};gi({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(j,C)=>{var{parser:I,funcName:W}=j,oe=C[0];return{type:"operatorname",mode:I.mode,body:Qo(oe),alwaysHandleSupSub:W==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Er,mathmlBuilder:ui}),kt("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Uf({type:"ordgroup",htmlBuilder(j,C){return j.semisimple?tn.makeFragment(dm(j.body,C,!1)):tn.makeSpan(["mord"],dm(j.body,C,!0),C)},mathmlBuilder(j,C){return g4(j.body,C,!0)}}),gi({type:"overline",names:["\\overline"],props:{numArgs:1},handler(j,C){var{parser:I}=j,W=C[0];return{type:"overline",mode:I.mode,body:W}},htmlBuilder(j,C){var I=cu(j.body,C.havingCrampedStyle()),W=tn.makeLineSpan("overline-line",C),oe=C.fontMetrics().defaultRuleThickness,xe=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:I},{type:"kern",size:3*oe},{type:"elem",elem:W},{type:"kern",size:oe}]},C);return tn.makeSpan(["mord","overline"],[xe],C)},mathmlBuilder(j,C){var I=new pa.MathNode("mo",[new pa.TextNode("\u203E")]);I.setAttribute("stretchy","true");var W=new pa.MathNode("mover",[i_(j.body,C),I]);return W.setAttribute("accent","true"),W}}),gi({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(j,C)=>{var{parser:I}=j,W=C[0];return{type:"phantom",mode:I.mode,body:Qo(W)}},htmlBuilder:(j,C)=>{var I=dm(j.body,C.withPhantom(),!1);return tn.makeFragment(I)},mathmlBuilder:(j,C)=>{var I=od(j.body,C);return new pa.MathNode("mphantom",I)}}),gi({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(j,C)=>{var{parser:I}=j,W=C[0];return{type:"hphantom",mode:I.mode,body:W}},htmlBuilder:(j,C)=>{var I=tn.makeSpan([],[cu(j.body,C.withPhantom())]);if(I.height=0,I.depth=0,I.children)for(var W=0;W{var I=od(Qo(j.body),C),W=new pa.MathNode("mphantom",I),oe=new pa.MathNode("mpadded",[W]);return oe.setAttribute("height","0px"),oe.setAttribute("depth","0px"),oe}}),gi({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(j,C)=>{var{parser:I}=j,W=C[0];return{type:"vphantom",mode:I.mode,body:W}},htmlBuilder:(j,C)=>{var I=tn.makeSpan(["inner"],[cu(j.body,C.withPhantom())]),W=tn.makeSpan(["fix"],[]);return tn.makeSpan(["mord","rlap"],[I,W],C)},mathmlBuilder:(j,C)=>{var I=od(Qo(j.body),C),W=new pa.MathNode("mphantom",I),oe=new pa.MathNode("mpadded",[W]);return oe.setAttribute("width","0px"),oe}}),gi({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(j,C){var{parser:I}=j,W=Il(C[0],"size").value,oe=C[1];return{type:"raisebox",mode:I.mode,dy:W,body:oe}},htmlBuilder(j,C){var I=cu(j.body,C),W=Ma(j.dy,C);return tn.makeVList({positionType:"shift",positionData:-W,children:[{type:"elem",elem:I}]},C)},mathmlBuilder(j,C){var I=new pa.MathNode("mpadded",[i_(j.body,C)]),W=j.dy.number+j.dy.unit;return I.setAttribute("voffset",W),I}}),gi({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(j){var{parser:C}=j;return{type:"internal",mode:C.mode}}}),gi({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(j,C,I){var{parser:W}=j,oe=I[0],xe=Il(C[0],"size"),et=Il(C[1],"size");return{type:"rule",mode:W.mode,shift:oe&&Il(oe,"size").value,width:xe.value,height:et.value}},htmlBuilder(j,C){var I=tn.makeSpan(["mord","rule"],[],C),W=Ma(j.width,C),oe=Ma(j.height,C),xe=j.shift?Ma(j.shift,C):0;return I.style.borderRightWidth=Ai(W),I.style.borderTopWidth=Ai(oe),I.style.bottom=Ai(xe),I.width=W,I.height=oe+xe,I.depth=-xe,I.maxFontSize=oe*1.125*C.sizeMultiplier,I},mathmlBuilder(j,C){var I=Ma(j.width,C),W=Ma(j.height,C),oe=j.shift?Ma(j.shift,C):0,xe=C.color&&C.getColor()||"black",et=new pa.MathNode("mspace");et.setAttribute("mathbackground",xe),et.setAttribute("width",Ai(I)),et.setAttribute("height",Ai(W));var vt=new pa.MathNode("mpadded",[et]);return oe>=0?vt.setAttribute("height",Ai(oe)):(vt.setAttribute("height",Ai(oe)),vt.setAttribute("depth",Ai(-oe))),vt.setAttribute("voffset",Ai(oe)),vt}});function na(j,C,I){for(var W=dm(j,C,!1),oe=C.sizeMultiplier/I.sizeMultiplier,xe=0;xe{var I=C.havingSize(j.size);return na(j.body,I,C)};gi({type:"sizing",names:wa,props:{numArgs:0,allowedInText:!0},handler:(j,C)=>{var{breakOnTokenText:I,funcName:W,parser:oe}=j,xe=oe.parseExpression(!1,I);return{type:"sizing",mode:oe.mode,size:wa.indexOf(W)+1,body:xe}},htmlBuilder:is,mathmlBuilder:(j,C)=>{var I=C.havingSize(j.size),W=od(j.body,I),oe=new pa.MathNode("mstyle",W);return oe.setAttribute("mathsize",Ai(I.sizeMultiplier)),oe}}),gi({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(j,C,I)=>{var{parser:W}=j,oe=!1,xe=!1,et=I[0]&&Il(I[0],"ordgroup");if(et)for(var vt="",At=0;At{var I=tn.makeSpan([],[cu(j.body,C)]);if(!j.smashHeight&&!j.smashDepth)return I;if(j.smashHeight&&(I.height=0,I.children))for(var W=0;W{var I=new pa.MathNode("mpadded",[i_(j.body,C)]);return j.smashHeight&&I.setAttribute("height","0px"),j.smashDepth&&I.setAttribute("depth","0px"),I}}),gi({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(j,C,I){var{parser:W}=j,oe=I[0],xe=C[0];return{type:"sqrt",mode:W.mode,body:xe,index:oe}},htmlBuilder(j,C){var I=cu(j.body,C.havingCrampedStyle());I.height===0&&(I.height=C.fontMetrics().xHeight),I=tn.wrapFragment(I,C);var W=C.fontMetrics(),oe=W.defaultRuleThickness,xe=oe;C.style.idI.height+I.depth+et&&(et=(et+gn-I.height-I.depth)/2);var hi=At.height-I.height-et-Dr;I.style.paddingLeft=Ai(Zr);var _i=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:I,wrapperClasses:["svg-align"]},{type:"kern",size:-(I.height+hi)},{type:"elem",elem:At},{type:"kern",size:Dr}]},C);if(j.index){var Da=C.havingStyle(er.SCRIPTSCRIPT),Xa=cu(j.index,Da,C),Ts=.6*(_i.height-_i.depth),Ls=tn.makeVList({positionType:"shift",positionData:-Ts,children:[{type:"elem",elem:Xa}]},C),Vc=tn.makeSpan(["root"],[Ls]);return tn.makeSpan(["mord","sqrt"],[Vc,_i],C)}else return tn.makeSpan(["mord","sqrt"],[_i],C)},mathmlBuilder(j,C){var{body:I,index:W}=j;return W?new pa.MathNode("mroot",[i_(I,C),i_(W,C)]):new pa.MathNode("msqrt",[i_(I,C)])}});var cs={display:er.DISPLAY,text:er.TEXT,script:er.SCRIPT,scriptscript:er.SCRIPTSCRIPT};gi({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(j,C){var{breakOnTokenText:I,funcName:W,parser:oe}=j,xe=oe.parseExpression(!0,I),et=W.slice(1,W.length-5);return{type:"styling",mode:oe.mode,style:et,body:xe}},htmlBuilder(j,C){var I=cs[j.style],W=C.havingStyle(I).withFont("");return na(j.body,W,C)},mathmlBuilder(j,C){var I=cs[j.style],W=C.havingStyle(I),oe=od(j.body,W),xe=new pa.MathNode("mstyle",oe),et={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},vt=et[j.style];return xe.setAttribute("scriptlevel",vt[0]),xe.setAttribute("displaystyle",vt[1]),xe}});var Is=function(C,I){var W=C.base;if(W)if(W.type==="op"){var oe=W.limits&&(I.style.size===er.DISPLAY.size||W.alwaysHandleSupSub);return oe?mt:null}else if(W.type==="operatorname"){var xe=W.alwaysHandleSupSub&&(I.style.size===er.DISPLAY.size||W.limits);return xe?Er:null}else{if(W.type==="accent")return Vt.isCharacterBox(W.base)?X1:null;if(W.type==="horizBrace"){var et=!C.sub;return et===W.isOver?$x:null}else return null}else return null};Uf({type:"supsub",htmlBuilder(j,C){var I=Is(j,C);if(I)return I(j,C);var{base:W,sup:oe,sub:xe}=j,et=cu(W,C),vt,At,Dr=C.fontMetrics(),Zr=0,gn=0,hi=W&&Vt.isCharacterBox(W);if(oe){var _i=C.havingStyle(C.style.sup());vt=cu(oe,_i,C),hi||(Zr=et.height-_i.fontMetrics().supDrop*_i.sizeMultiplier/C.sizeMultiplier)}if(xe){var Da=C.havingStyle(C.style.sub());At=cu(xe,Da,C),hi||(gn=et.depth+Da.fontMetrics().subDrop*Da.sizeMultiplier/C.sizeMultiplier)}var Xa;C.style===er.DISPLAY?Xa=Dr.sup1:C.style.cramped?Xa=Dr.sup3:Xa=Dr.sup2;var Ts=C.sizeMultiplier,Ls=Ai(.5/Dr.ptPerEm/Ts),Vc=null;if(At){var ul=j.base&&j.base.type==="op"&&j.base.name&&(j.base.name==="\\oiint"||j.base.name==="\\oiiint");(et instanceof ur||ul)&&(Vc=Ai(-et.italic))}var s_;if(vt&&At){Zr=Math.max(Zr,Xa,vt.depth+.25*Dr.xHeight),gn=Math.max(gn,Dr.sub2);var zl=Dr.defaultRuleThickness,Su=4*zl;if(Zr-vt.depth-(At.height-gn)0&&(Zr+=e_,gn-=e_)}var O_=[{type:"elem",elem:At,shift:gn,marginRight:Ls,marginLeft:Vc},{type:"elem",elem:vt,shift:-Zr,marginRight:Ls}];s_=tn.makeVList({positionType:"individualShift",children:O_},C)}else if(At){gn=Math.max(gn,Dr.sub1,At.height-.8*Dr.xHeight);var ku=[{type:"elem",elem:At,marginLeft:Vc,marginRight:Ls}];s_=tn.makeVList({positionType:"shift",positionData:gn,children:ku},C)}else if(vt)Zr=Math.max(Zr,Xa,vt.depth+.25*Dr.xHeight),s_=tn.makeVList({positionType:"shift",positionData:-Zr,children:[{type:"elem",elem:vt,marginRight:Ls}]},C);else throw new Error("supsub must have either sup or sub.");var Y0=Ox(et,"right")||"mord";return tn.makeSpan([Y0],[et,tn.makeSpan(["msupsub"],[s_])],C)},mathmlBuilder(j,C){var I=!1,W,oe;j.base&&j.base.type==="horizBrace"&&(oe=!!j.sup,oe===j.base.isOver&&(I=!0,W=j.base.isOver)),j.base&&(j.base.type==="op"||j.base.type==="operatorname")&&(j.base.parentIsSupSub=!0);var xe=[i_(j.base,C)];j.sub&&xe.push(i_(j.sub,C)),j.sup&&xe.push(i_(j.sup,C));var et;if(I)et=W?"mover":"munder";else if(j.sub)if(j.sup){var Dr=j.base;Dr&&Dr.type==="op"&&Dr.limits&&C.style===er.DISPLAY||Dr&&Dr.type==="operatorname"&&Dr.alwaysHandleSupSub&&(C.style===er.DISPLAY||Dr.limits)?et="munderover":et="msubsup"}else{var At=j.base;At&&At.type==="op"&&At.limits&&(C.style===er.DISPLAY||At.alwaysHandleSupSub)||At&&At.type==="operatorname"&&At.alwaysHandleSupSub&&(At.limits||C.style===er.DISPLAY)?et="munder":et="msub"}else{var vt=j.base;vt&&vt.type==="op"&&vt.limits&&(C.style===er.DISPLAY||vt.alwaysHandleSupSub)||vt&&vt.type==="operatorname"&&vt.alwaysHandleSupSub&&(vt.limits||C.style===er.DISPLAY)?et="mover":et="msup"}return new pa.MathNode(et,xe)}}),Uf({type:"atom",htmlBuilder(j,C){return tn.mathsym(j.text,j.mode,C,["m"+j.family])},mathmlBuilder(j,C){var I=new pa.MathNode("mo",[p1(j.text,j.mode)]);if(j.family==="bin"){var W=Lx(j,C);W==="bold-italic"&&I.setAttribute("mathvariant",W)}else j.family==="punct"?I.setAttribute("separator","true"):(j.family==="open"||j.family==="close")&&I.setAttribute("stretchy","false");return I}});var ao={mi:"italic",mn:"normal",mtext:"normal"};Uf({type:"mathord",htmlBuilder(j,C){return tn.makeOrd(j,C,"mathord")},mathmlBuilder(j,C){var I=new pa.MathNode("mi",[p1(j.text,j.mode,C)]),W=Lx(j,C)||"italic";return W!==ao[I.type]&&I.setAttribute("mathvariant",W),I}}),Uf({type:"textord",htmlBuilder(j,C){return tn.makeOrd(j,C,"textord")},mathmlBuilder(j,C){var I=p1(j.text,j.mode,C),W=Lx(j,C)||"normal",oe;return j.mode==="text"?oe=new pa.MathNode("mtext",[I]):/[0-9]/.test(j.text)?oe=new pa.MathNode("mn",[I]):j.text==="\\prime"?oe=new pa.MathNode("mo",[I]):oe=new pa.MathNode("mi",[I]),W!==ao[oe.type]&&oe.setAttribute("mathvariant",W),oe}});var ls={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ks={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Uf({type:"spacing",htmlBuilder(j,C){if(ks.hasOwnProperty(j.text)){var I=ks[j.text].className||"";if(j.mode==="text"){var W=tn.makeOrd(j,C,"textord");return W.classes.push(I),W}else return tn.makeSpan(["mspace",I],[tn.mathsym(j.text,j.mode,C)],C)}else{if(ls.hasOwnProperty(j.text))return tn.makeSpan(["mspace",ls[j.text]],[],C);throw new ci('Unknown type of space "'+j.text+'"')}},mathmlBuilder(j,C){var I;if(ks.hasOwnProperty(j.text))I=new pa.MathNode("mtext",[new pa.TextNode("\xA0")]);else{if(ls.hasOwnProperty(j.text))return new pa.MathNode("mspace");throw new ci('Unknown type of space "'+j.text+'"')}return I}});var wo=()=>{var j=new pa.MathNode("mtd",[]);return j.setAttribute("width","50%"),j};Uf({type:"tag",mathmlBuilder(j,C){var I=new pa.MathNode("mtable",[new pa.MathNode("mtr",[wo(),new pa.MathNode("mtd",[g4(j.body,C)]),wo(),new pa.MathNode("mtd",[g4(j.tag,C)])])]);return I.setAttribute("width","100%"),I}});var Eo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ys={"\\textbf":"textbf","\\textmd":"textmd"},Ao={"\\textit":"textit","\\textup":"textup"},uo=(j,C)=>{var I=j.font;return I?Eo[I]?C.withTextFontFamily(Eo[I]):Ys[I]?C.withTextFontWeight(Ys[I]):C.withTextFontShape(Ao[I]):C};gi({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(j,C){var{parser:I,funcName:W}=j,oe=C[0];return{type:"text",mode:I.mode,body:Qo(oe),font:W}},htmlBuilder(j,C){var I=uo(j,C),W=dm(j.body,I,!0);return tn.makeSpan(["mord","text"],W,I)},mathmlBuilder(j,C){var I=uo(j,C);return g4(j.body,I)}}),gi({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(j,C){var{parser:I}=j;return{type:"underline",mode:I.mode,body:C[0]}},htmlBuilder(j,C){var I=cu(j.body,C),W=tn.makeLineSpan("underline-line",C),oe=C.fontMetrics().defaultRuleThickness,xe=tn.makeVList({positionType:"top",positionData:I.height,children:[{type:"kern",size:oe},{type:"elem",elem:W},{type:"kern",size:3*oe},{type:"elem",elem:I}]},C);return tn.makeSpan(["mord","underline"],[xe],C)},mathmlBuilder(j,C){var I=new pa.MathNode("mo",[new pa.TextNode("\u203E")]);I.setAttribute("stretchy","true");var W=new pa.MathNode("munder",[i_(j.body,C),I]);return W.setAttribute("accentunder","true"),W}}),gi({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(j,C){var{parser:I}=j;return{type:"vcenter",mode:I.mode,body:C[0]}},htmlBuilder(j,C){var I=cu(j.body,C),W=C.fontMetrics().axisHeight,oe=.5*(I.height-W-(I.depth+W));return tn.makeVList({positionType:"shift",positionData:oe,children:[{type:"elem",elem:I}]},C)},mathmlBuilder(j,C){return new pa.MathNode("mpadded",[i_(j.body,C)],["vcenter"])}}),gi({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(j,C,I){throw new ci("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(j,C){for(var I=lc(j),W=[],oe=C.havingStyle(C.style.text()),xe=0;xej.body.replace(/ /g,j.star?"\u2423":"\xA0"),to=ka,Ko=`[ \r - ]`,Tc="\\\\[a-zA-Z@]+",Sc="\\\\[^\uD800-\uDFFF]",ql="("+Tc+")"+Ko+"*",d_=`\\\\( -|[ \r ]+ -?)[ \r ]*`,Tu="[\u0300-\u036F]",Qu=new RegExp(Tu+"+$"),T_="("+Ko+"+)|"+(d_+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Tu+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Tu+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+ql)+("|"+Sc+")");class Ku{constructor(C,I){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=C,this.settings=I,this.tokenRegex=new RegExp(T_,"g"),this.catcodes={"%":14,"~":13}}setCatcode(C,I){this.catcodes[C]=I}lex(){var C=this.input,I=this.tokenRegex.lastIndex;if(I===C.length)return new Yc("EOF",new bl(this,I,I));var W=this.tokenRegex.exec(C);if(W===null||W.index!==I)throw new ci("Unexpected character: '"+C[I]+"'",new Yc(C[I],new bl(this,I,I+1)));var oe=W[6]||W[3]||(W[2]?"\\ ":" ");if(this.catcodes[oe]===14){var xe=C.indexOf(` -`,this.tokenRegex.lastIndex);return xe===-1?(this.tokenRegex.lastIndex=C.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=xe+1,this.lex()}return new Yc(oe,new bl(this,I,this.tokenRegex.lastIndex))}}class Ru{constructor(C,I){C===void 0&&(C={}),I===void 0&&(I={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=I,this.builtins=C,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ci("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var C=this.undefStack.pop();for(var I in C)C.hasOwnProperty(I)&&(C[I]==null?delete this.current[I]:this.current[I]=C[I])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(C){return this.current.hasOwnProperty(C)||this.builtins.hasOwnProperty(C)}get(C){return this.current.hasOwnProperty(C)?this.current[C]:this.builtins[C]}set(C,I,W){if(W===void 0&&(W=!1),W){for(var oe=0;oe0&&(this.undefStack[this.undefStack.length-1][C]=I)}else{var xe=this.undefStack[this.undefStack.length-1];xe&&!xe.hasOwnProperty(C)&&(xe[C]=this.current[C])}I==null?delete this.current[C]:this.current[C]=I}}var m_=yw;kt("\\noexpand",function(j){var C=j.popToken();return j.isExpandable(C.text)&&(C.noexpand=!0,C.treatAsRelax=!0),{tokens:[C],numArgs:0}}),kt("\\expandafter",function(j){var C=j.popToken();return j.expandOnce(!0),{tokens:[C],numArgs:0}}),kt("\\@firstoftwo",function(j){var C=j.consumeArgs(2);return{tokens:C[0],numArgs:0}}),kt("\\@secondoftwo",function(j){var C=j.consumeArgs(2);return{tokens:C[1],numArgs:0}}),kt("\\@ifnextchar",function(j){var C=j.consumeArgs(3);j.consumeSpaces();var I=j.future();return C[0].length===1&&C[0][0].text===I.text?{tokens:C[1],numArgs:0}:{tokens:C[2],numArgs:0}}),kt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),kt("\\TextOrMath",function(j){var C=j.consumeArgs(2);return j.mode==="text"?{tokens:C[0],numArgs:0}:{tokens:C[1],numArgs:0}});var P_={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};kt("\\char",function(j){var C=j.popToken(),I,W="";if(C.text==="'")I=8,C=j.popToken();else if(C.text==='"')I=16,C=j.popToken();else if(C.text==="`")if(C=j.popToken(),C.text[0]==="\\")W=C.text.charCodeAt(1);else{if(C.text==="EOF")throw new ci("\\char` missing argument");W=C.text.charCodeAt(0)}else I=10;if(I){if(W=P_[C.text],W==null||W>=I)throw new ci("Invalid base-"+I+" digit "+C.text);for(var oe;(oe=P_[j.future().text])!=null&&oe{var W=j.consumeArg().tokens;if(W.length!==1)throw new ci("\\newcommand's first argument must be a macro name");var oe=W[0].text,xe=j.isDefined(oe);if(xe&&!C)throw new ci("\\newcommand{"+oe+"} attempting to redefine "+(oe+"; use \\renewcommand"));if(!xe&&!I)throw new ci("\\renewcommand{"+oe+"} when command "+oe+" does not yet exist; use \\newcommand");var et=0;if(W=j.consumeArg().tokens,W.length===1&&W[0].text==="["){for(var vt="",At=j.expandNextToken();At.text!=="]"&&At.text!=="EOF";)vt+=At.text,At=j.expandNextToken();if(!vt.match(/^\s*[0-9]+\s*$/))throw new ci("Invalid number of arguments: "+vt);et=parseInt(vt),W=j.consumeArg().tokens}return j.macros.set(oe,{tokens:W,numArgs:et}),""};kt("\\newcommand",j=>cd(j,!1,!0)),kt("\\renewcommand",j=>cd(j,!0,!1)),kt("\\providecommand",j=>cd(j,!0,!0)),kt("\\message",j=>{var C=j.consumeArgs(1)[0];return console.log(C.reverse().map(I=>I.text).join("")),""}),kt("\\errmessage",j=>{var C=j.consumeArgs(1)[0];return console.error(C.reverse().map(I=>I.text).join("")),""}),kt("\\show",j=>{var C=j.popToken(),I=C.text;return console.log(C,j.macros.get(I),to[I],fi.math[I],fi.text[I]),""}),kt("\\bgroup","{"),kt("\\egroup","}"),kt("~","\\nobreakspace"),kt("\\lq","`"),kt("\\rq","'"),kt("\\aa","\\r a"),kt("\\AA","\\r A"),kt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),kt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),kt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),kt("\u212C","\\mathscr{B}"),kt("\u2130","\\mathscr{E}"),kt("\u2131","\\mathscr{F}"),kt("\u210B","\\mathscr{H}"),kt("\u2110","\\mathscr{I}"),kt("\u2112","\\mathscr{L}"),kt("\u2133","\\mathscr{M}"),kt("\u211B","\\mathscr{R}"),kt("\u212D","\\mathfrak{C}"),kt("\u210C","\\mathfrak{H}"),kt("\u2128","\\mathfrak{Z}"),kt("\\Bbbk","\\Bbb{k}"),kt("\xB7","\\cdotp"),kt("\\llap","\\mathllap{\\textrm{#1}}"),kt("\\rlap","\\mathrlap{\\textrm{#1}}"),kt("\\clap","\\mathclap{\\textrm{#1}}"),kt("\\mathstrut","\\vphantom{(}"),kt("\\underbar","\\underline{\\text{#1}}"),kt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),kt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),kt("\\ne","\\neq"),kt("\u2260","\\neq"),kt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),kt("\u2209","\\notin"),kt("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),kt("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),kt("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),kt("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),kt("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),kt("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),kt("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),kt("\u27C2","\\perp"),kt("\u203C","\\mathclose{!\\mkern-0.8mu!}"),kt("\u220C","\\notni"),kt("\u231C","\\ulcorner"),kt("\u231D","\\urcorner"),kt("\u231E","\\llcorner"),kt("\u231F","\\lrcorner"),kt("\xA9","\\copyright"),kt("\xAE","\\textregistered"),kt("\uFE0F","\\textregistered"),kt("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),kt("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),kt("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),kt("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),kt("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),kt("\u22EE","\\vdots"),kt("\\varGamma","\\mathit{\\Gamma}"),kt("\\varDelta","\\mathit{\\Delta}"),kt("\\varTheta","\\mathit{\\Theta}"),kt("\\varLambda","\\mathit{\\Lambda}"),kt("\\varXi","\\mathit{\\Xi}"),kt("\\varPi","\\mathit{\\Pi}"),kt("\\varSigma","\\mathit{\\Sigma}"),kt("\\varUpsilon","\\mathit{\\Upsilon}"),kt("\\varPhi","\\mathit{\\Phi}"),kt("\\varPsi","\\mathit{\\Psi}"),kt("\\varOmega","\\mathit{\\Omega}"),kt("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),kt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),kt("\\boxed","\\fbox{$\\displaystyle{#1}$}"),kt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),kt("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),kt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Jp={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};kt("\\dots",function(j){var C="\\dotso",I=j.expandAfterFuture().text;return I in Jp?C=Jp[I]:(I.slice(0,4)==="\\not"||I in fi.math&&Vt.contains(["bin","rel"],fi.math[I].group))&&(C="\\dotsb"),C});var wp={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};kt("\\dotso",function(j){var C=j.future().text;return C in wp?"\\ldots\\,":"\\ldots"}),kt("\\dotsc",function(j){var C=j.future().text;return C in wp&&C!==","?"\\ldots\\,":"\\ldots"}),kt("\\cdots",function(j){var C=j.future().text;return C in wp?"\\@cdots\\,":"\\@cdots"}),kt("\\dotsb","\\cdots"),kt("\\dotsm","\\cdots"),kt("\\dotsi","\\!\\cdots"),kt("\\dotsx","\\ldots\\,"),kt("\\DOTSI","\\relax"),kt("\\DOTSB","\\relax"),kt("\\DOTSX","\\relax"),kt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),kt("\\,","\\tmspace+{3mu}{.1667em}"),kt("\\thinspace","\\,"),kt("\\>","\\mskip{4mu}"),kt("\\:","\\tmspace+{4mu}{.2222em}"),kt("\\medspace","\\:"),kt("\\;","\\tmspace+{5mu}{.2777em}"),kt("\\thickspace","\\;"),kt("\\!","\\tmspace-{3mu}{.1667em}"),kt("\\negthinspace","\\!"),kt("\\negmedspace","\\tmspace-{4mu}{.2222em}"),kt("\\negthickspace","\\tmspace-{5mu}{.277em}"),kt("\\enspace","\\kern.5em "),kt("\\enskip","\\hskip.5em\\relax"),kt("\\quad","\\hskip1em\\relax"),kt("\\qquad","\\hskip2em\\relax"),kt("\\tag","\\@ifstar\\tag@literal\\tag@paren"),kt("\\tag@paren","\\tag@literal{({#1})}"),kt("\\tag@literal",j=>{if(j.macros.get("\\df@tag"))throw new ci("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),kt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),kt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),kt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),kt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),kt("\\newline","\\\\\\relax"),kt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Up=Ai(ua["Main-Regular"]["T".charCodeAt(0)][1]-.7*ua["Main-Regular"]["A".charCodeAt(0)][1]);kt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Up+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),kt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Up+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),kt("\\hspace","\\@ifstar\\@hspacer\\@hspace"),kt("\\@hspace","\\hskip #1\\relax"),kt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),kt("\\ordinarycolon",":"),kt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),kt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),kt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),kt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),kt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),kt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),kt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),kt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),kt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),kt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),kt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),kt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),kt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),kt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),kt("\u2237","\\dblcolon"),kt("\u2239","\\eqcolon"),kt("\u2254","\\coloneqq"),kt("\u2255","\\eqqcolon"),kt("\u2A74","\\Coloneqq"),kt("\\ratio","\\vcentcolon"),kt("\\coloncolon","\\dblcolon"),kt("\\colonequals","\\coloneqq"),kt("\\coloncolonequals","\\Coloneqq"),kt("\\equalscolon","\\eqqcolon"),kt("\\equalscoloncolon","\\Eqqcolon"),kt("\\colonminus","\\coloneq"),kt("\\coloncolonminus","\\Coloneq"),kt("\\minuscolon","\\eqcolon"),kt("\\minuscoloncolon","\\Eqcolon"),kt("\\coloncolonapprox","\\Colonapprox"),kt("\\coloncolonsim","\\Colonsim"),kt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),kt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),kt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),kt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),kt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),kt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),kt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),kt("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),kt("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),kt("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),kt("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),kt("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),kt("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),kt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),kt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),kt("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),kt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),kt("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),kt("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),kt("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),kt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),kt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),kt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),kt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),kt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),kt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),kt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),kt("\\imath","\\html@mathml{\\@imath}{\u0131}"),kt("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),kt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),kt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),kt("\u27E6","\\llbracket"),kt("\u27E7","\\rrbracket"),kt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),kt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),kt("\u2983","\\lBrace"),kt("\u2984","\\rBrace"),kt("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}"),kt("\u29B5","\\minuso"),kt("\\darr","\\downarrow"),kt("\\dArr","\\Downarrow"),kt("\\Darr","\\Downarrow"),kt("\\lang","\\langle"),kt("\\rang","\\rangle"),kt("\\uarr","\\uparrow"),kt("\\uArr","\\Uparrow"),kt("\\Uarr","\\Uparrow"),kt("\\N","\\mathbb{N}"),kt("\\R","\\mathbb{R}"),kt("\\Z","\\mathbb{Z}"),kt("\\alef","\\aleph"),kt("\\alefsym","\\aleph"),kt("\\Alpha","\\mathrm{A}"),kt("\\Beta","\\mathrm{B}"),kt("\\bull","\\bullet"),kt("\\Chi","\\mathrm{X}"),kt("\\clubs","\\clubsuit"),kt("\\cnums","\\mathbb{C}"),kt("\\Complex","\\mathbb{C}"),kt("\\Dagger","\\ddagger"),kt("\\diamonds","\\diamondsuit"),kt("\\empty","\\emptyset"),kt("\\Epsilon","\\mathrm{E}"),kt("\\Eta","\\mathrm{H}"),kt("\\exist","\\exists"),kt("\\harr","\\leftrightarrow"),kt("\\hArr","\\Leftrightarrow"),kt("\\Harr","\\Leftrightarrow"),kt("\\hearts","\\heartsuit"),kt("\\image","\\Im"),kt("\\infin","\\infty"),kt("\\Iota","\\mathrm{I}"),kt("\\isin","\\in"),kt("\\Kappa","\\mathrm{K}"),kt("\\larr","\\leftarrow"),kt("\\lArr","\\Leftarrow"),kt("\\Larr","\\Leftarrow"),kt("\\lrarr","\\leftrightarrow"),kt("\\lrArr","\\Leftrightarrow"),kt("\\Lrarr","\\Leftrightarrow"),kt("\\Mu","\\mathrm{M}"),kt("\\natnums","\\mathbb{N}"),kt("\\Nu","\\mathrm{N}"),kt("\\Omicron","\\mathrm{O}"),kt("\\plusmn","\\pm"),kt("\\rarr","\\rightarrow"),kt("\\rArr","\\Rightarrow"),kt("\\Rarr","\\Rightarrow"),kt("\\real","\\Re"),kt("\\reals","\\mathbb{R}"),kt("\\Reals","\\mathbb{R}"),kt("\\Rho","\\mathrm{P}"),kt("\\sdot","\\cdot"),kt("\\sect","\\S"),kt("\\spades","\\spadesuit"),kt("\\sub","\\subset"),kt("\\sube","\\subseteq"),kt("\\supe","\\supseteq"),kt("\\Tau","\\mathrm{T}"),kt("\\thetasym","\\vartheta"),kt("\\weierp","\\wp"),kt("\\Zeta","\\mathrm{Z}"),kt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),kt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),kt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),kt("\\bra","\\mathinner{\\langle{#1}|}"),kt("\\ket","\\mathinner{|{#1}\\rangle}"),kt("\\braket","\\mathinner{\\langle{#1}\\rangle}"),kt("\\Bra","\\left\\langle#1\\right|"),kt("\\Ket","\\left|#1\\right\\rangle");var Vf=j=>C=>{var I=C.consumeArg().tokens,W=C.consumeArg().tokens,oe=C.consumeArg().tokens,xe=C.consumeArg().tokens,et=C.macros.get("|"),vt=C.macros.get("\\|");C.macros.beginGroup();var At=gn=>hi=>{j&&(hi.macros.set("|",et),oe.length&&hi.macros.set("\\|",vt));var _i=gn;if(!gn&&oe.length){var Da=hi.future();Da.text==="|"&&(hi.popToken(),_i=!0)}return{tokens:_i?oe:W,numArgs:0}};C.macros.set("|",At(!1)),oe.length&&C.macros.set("\\|",At(!0));var Dr=C.consumeArg().tokens,Zr=C.expandTokens([...xe,...Dr,...I]);return C.macros.endGroup(),{tokens:Zr.reverse(),numArgs:0}};kt("\\bra@ket",Vf(!1)),kt("\\bra@set",Vf(!0)),kt("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),kt("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),kt("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),kt("\\angln","{\\angl n}"),kt("\\blue","\\textcolor{##6495ed}{#1}"),kt("\\orange","\\textcolor{##ffa500}{#1}"),kt("\\pink","\\textcolor{##ff00af}{#1}"),kt("\\red","\\textcolor{##df0030}{#1}"),kt("\\green","\\textcolor{##28ae7b}{#1}"),kt("\\gray","\\textcolor{gray}{#1}"),kt("\\purple","\\textcolor{##9d38bd}{#1}"),kt("\\blueA","\\textcolor{##ccfaff}{#1}"),kt("\\blueB","\\textcolor{##80f6ff}{#1}"),kt("\\blueC","\\textcolor{##63d9ea}{#1}"),kt("\\blueD","\\textcolor{##11accd}{#1}"),kt("\\blueE","\\textcolor{##0c7f99}{#1}"),kt("\\tealA","\\textcolor{##94fff5}{#1}"),kt("\\tealB","\\textcolor{##26edd5}{#1}"),kt("\\tealC","\\textcolor{##01d1c1}{#1}"),kt("\\tealD","\\textcolor{##01a995}{#1}"),kt("\\tealE","\\textcolor{##208170}{#1}"),kt("\\greenA","\\textcolor{##b6ffb0}{#1}"),kt("\\greenB","\\textcolor{##8af281}{#1}"),kt("\\greenC","\\textcolor{##74cf70}{#1}"),kt("\\greenD","\\textcolor{##1fab54}{#1}"),kt("\\greenE","\\textcolor{##0d923f}{#1}"),kt("\\goldA","\\textcolor{##ffd0a9}{#1}"),kt("\\goldB","\\textcolor{##ffbb71}{#1}"),kt("\\goldC","\\textcolor{##ff9c39}{#1}"),kt("\\goldD","\\textcolor{##e07d10}{#1}"),kt("\\goldE","\\textcolor{##a75a05}{#1}"),kt("\\redA","\\textcolor{##fca9a9}{#1}"),kt("\\redB","\\textcolor{##ff8482}{#1}"),kt("\\redC","\\textcolor{##f9685d}{#1}"),kt("\\redD","\\textcolor{##e84d39}{#1}"),kt("\\redE","\\textcolor{##bc2612}{#1}"),kt("\\maroonA","\\textcolor{##ffbde0}{#1}"),kt("\\maroonB","\\textcolor{##ff92c6}{#1}"),kt("\\maroonC","\\textcolor{##ed5fa6}{#1}"),kt("\\maroonD","\\textcolor{##ca337c}{#1}"),kt("\\maroonE","\\textcolor{##9e034e}{#1}"),kt("\\purpleA","\\textcolor{##ddd7ff}{#1}"),kt("\\purpleB","\\textcolor{##c6b9fc}{#1}"),kt("\\purpleC","\\textcolor{##aa87ff}{#1}"),kt("\\purpleD","\\textcolor{##7854ab}{#1}"),kt("\\purpleE","\\textcolor{##543b78}{#1}"),kt("\\mintA","\\textcolor{##f5f9e8}{#1}"),kt("\\mintB","\\textcolor{##edf2df}{#1}"),kt("\\mintC","\\textcolor{##e0e5cc}{#1}"),kt("\\grayA","\\textcolor{##f6f7f7}{#1}"),kt("\\grayB","\\textcolor{##f0f1f2}{#1}"),kt("\\grayC","\\textcolor{##e3e5e6}{#1}"),kt("\\grayD","\\textcolor{##d6d8da}{#1}"),kt("\\grayE","\\textcolor{##babec2}{#1}"),kt("\\grayF","\\textcolor{##888d93}{#1}"),kt("\\grayG","\\textcolor{##626569}{#1}"),kt("\\grayH","\\textcolor{##3b3e40}{#1}"),kt("\\grayI","\\textcolor{##21242c}{#1}"),kt("\\kaBlue","\\textcolor{##314453}{#1}"),kt("\\kaGreen","\\textcolor{##71B307}{#1}");var a_={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class lu{constructor(C,I,W){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=I,this.expansionCount=0,this.feed(C),this.macros=new Ru(m_,I.macros),this.mode=W,this.stack=[]}feed(C){this.lexer=new Ku(C,this.settings)}switchMode(C){this.mode=C}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(C){this.stack.push(C)}pushTokens(C){this.stack.push(...C)}scanArgument(C){var I,W,oe;if(C){if(this.consumeSpaces(),this.future().text!=="[")return null;I=this.popToken(),{tokens:oe,end:W}=this.consumeArg(["]"])}else({tokens:oe,start:I,end:W}=this.consumeArg());return this.pushToken(new Yc("EOF",W.loc)),this.pushTokens(oe),I.range(W,"")}consumeSpaces(){for(;;){var C=this.future();if(C.text===" ")this.stack.pop();else break}}consumeArg(C){var I=[],W=C&&C.length>0;W||this.consumeSpaces();var oe=this.future(),xe,et=0,vt=0;do{if(xe=this.popToken(),I.push(xe),xe.text==="{")++et;else if(xe.text==="}"){if(--et,et===-1)throw new ci("Extra }",xe)}else if(xe.text==="EOF")throw new ci("Unexpected end of input in a macro argument, expected '"+(C&&W?C[vt]:"}")+"'",xe);if(C&&W)if((et===0||et===1&&C[vt]==="{")&&xe.text===C[vt]){if(++vt,vt===C.length){I.splice(-vt,vt);break}}else vt=0}while(et!==0||W);return oe.text==="{"&&I[I.length-1].text==="}"&&(I.pop(),I.shift()),I.reverse(),{tokens:I,start:oe,end:xe}}consumeArgs(C,I){if(I){if(I.length!==C+1)throw new ci("The length of delimiters doesn't match the number of args!");for(var W=I[0],oe=0;oethis.settings.maxExpand)throw new ci("Too many expansions: infinite loop or need to increase maxExpand setting");var xe=oe.tokens,et=this.consumeArgs(oe.numArgs,oe.delimiters);if(oe.numArgs){xe=xe.slice();for(var vt=xe.length-1;vt>=0;--vt){var At=xe[vt];if(At.text==="#"){if(vt===0)throw new ci("Incomplete placeholder at end of macro body",At);if(At=xe[--vt],At.text==="#")xe.splice(vt+1,1);else if(/^[1-9]$/.test(At.text))xe.splice(vt,2,...et[+At.text-1]);else throw new ci("Not a valid argument number",At)}}}return this.pushTokens(xe),xe.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var C=this.stack.pop();return C.treatAsRelax&&(C.text="\\relax"),C}throw new Error}expandMacro(C){return this.macros.has(C)?this.expandTokens([new Yc(C)]):void 0}expandTokens(C){var I=[],W=this.stack.length;for(this.pushTokens(C);this.stack.length>W;)if(this.expandOnce(!0)===!1){var oe=this.stack.pop();oe.treatAsRelax&&(oe.noexpand=!1,oe.treatAsRelax=!1),I.push(oe)}return I}expandMacroAsText(C){var I=this.expandMacro(C);return I&&I.map(W=>W.text).join("")}_getExpansion(C){var I=this.macros.get(C);if(I==null)return I;if(C.length===1){var W=this.lexer.catcodes[C];if(W!=null&&W!==13)return}var oe=typeof I=="function"?I(this):I;if(typeof oe=="string"){var xe=0;if(oe.indexOf("#")!==-1)for(var et=oe.replace(/##/g,"");et.indexOf("#"+(xe+1))!==-1;)++xe;for(var vt=new Ku(oe,this.settings),At=[],Dr=vt.lex();Dr.text!=="EOF";)At.push(Dr),Dr=vt.lex();At.reverse();var Zr={tokens:At,numArgs:xe};return Zr}return oe}isDefined(C){return this.macros.has(C)||to.hasOwnProperty(C)||fi.math.hasOwnProperty(C)||fi.text.hasOwnProperty(C)||a_.hasOwnProperty(C)}isExpandable(C){var I=this.macros.get(C);return I!=null?typeof I=="string"||typeof I=="function"||!I.unexpandable:to.hasOwnProperty(C)&&!to[C].primitive}}var Ep=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Xd=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),ip={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},zm={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"};class A0{constructor(C,I){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new lu(C,I,this.mode),this.settings=I,this.leftrightDepth=0}expect(C,I){if(I===void 0&&(I=!0),this.fetch().text!==C)throw new ci("Expected '"+C+"', got '"+this.fetch().text+"'",this.fetch());I&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(C){this.mode=C,this.gullet.switchMode(C)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var C=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),C}finally{this.gullet.endGroups()}}subparse(C){var I=this.nextToken;this.consume(),this.gullet.pushToken(new Yc("}")),this.gullet.pushTokens(C);var W=this.parseExpression(!1);return this.expect("}"),this.nextToken=I,W}parseExpression(C,I){for(var W=[];;){this.mode==="math"&&this.consumeSpaces();var oe=this.fetch();if(A0.endOfExpression.indexOf(oe.text)!==-1||I&&oe.text===I||C&&to[oe.text]&&to[oe.text].infix)break;var xe=this.parseAtom(I);if(xe){if(xe.type==="internal")continue}else break;W.push(xe)}return this.mode==="text"&&this.formLigatures(W),this.handleInfixNodes(W)}handleInfixNodes(C){for(var I=-1,W,oe=0;oe=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+I[0]+'" used in math mode',C);var vt=fi[this.mode][I].group,At=bl.range(C),Dr;if(Nl.hasOwnProperty(vt)){var Zr=vt;Dr={type:"atom",mode:this.mode,family:Zr,loc:At,text:I}}else Dr={type:vt,mode:this.mode,loc:At,text:I};et=Dr}else if(I.charCodeAt(0)>=128)this.settings.strict&&(lo(I.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+I[0]+'" used in math mode',C):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+I[0]+'"'+(" ("+I.charCodeAt(0)+")"),C)),et={type:"textord",mode:"text",loc:bl.range(C),text:I};else return null;if(this.consume(),xe)for(var gn=0;gn(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ue="rc-util-locker-".concat(Date.now()),et=0;function tt(e){var o=!!e,t=r.useState(function(){return et+=1,"".concat(Ue,"_").concat(et)}),a=(0,s.Z)(t,1),l=a[0];(0,x.Z)(function(){if(o){var f=je(document.body).width,b=ze();(0,U.hq)(` -html body { - overflow-y: hidden; - `.concat(b?"width: calc(100% - ".concat(f,"px);"):"",` -}`),l)}else(0,U.jL)(l);return function(){(0,U.jL)(l)}},[o,l])}var $=!1;function y(e){return typeof e=="boolean"&&($=e),$}var V=function(o){return o===!1?!1:!(0,v.Z)()||!o?null:typeof o=="string"?document.querySelector(o):typeof o=="function"?o():o},L=r.forwardRef(function(e,o){var t=e.open,a=e.autoLock,l=e.getContainer,f=e.debug,b=e.autoDestroy,M=b===void 0?!0:b,P=e.children,N=r.useState(t),T=(0,s.Z)(N,2),A=T[0],ie=T[1],w=A||t;r.useEffect(function(){(M||t)&&ie(t)},[t,M]);var E=r.useState(function(){return V(l)}),G=(0,s.Z)(E,2),X=G[0],se=G[1];r.useEffect(function(){var W=V(l);se(W!=null?W:null)});var p=$e(w&&!X,f),K=(0,s.Z)(p,2),Y=K[0],Oe=K[1],De=X!=null?X:Y;tt(a&&t&&(0,v.Z)()&&(De===Y||De===document.body));var oe=null;if(P&&(0,d.Yr)(P)&&o){var be=P;oe=be.ref}var le=(0,d.x1)(oe,o);if(!w||!(0,v.Z)()||X===void 0)return null;var I=De===!1||y(),Te=P;return o&&(Te=r.cloneElement(P,{ref:le})),r.createElement(D.Provider,{value:Oe},I?Te:(0,H.createPortal)(Te,De))}),Ee=L,R=Ee,ce=n(94184),B=n.n(ce),ee=n(48555),te=n(34203),xe=n(27571),Pe=n(66680);function st(){var e=(0,h.Z)({},Ce);return e.useId}var Ke=0;function Qe(){}function ht(e){var o=r.useState("ssr-id"),t=(0,s.Z)(o,2),a=t[0],l=t[1],f=st(),b=f==null?void 0:f();return r.useEffect(function(){if(!f){var M=Ke;Ke+=1,l("rc_unique_".concat(M))}},[]),e||b||a}var Qt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))},cr=r.createContext(null),Zt=cr;function Rt(e){return e?Array.isArray(e)?e:[e]:[]}function Et(e,o,t,a){return r.useMemo(function(){var l=Rt(t!=null?t:o),f=Rt(a!=null?a:o),b=new Set(l),M=new Set(f);return e&&(b.has("hover")&&(b.delete("hover"),b.add("click")),M.has("hover")&&(M.delete("hover"),M.add("click"))),[b,M]},[e,o,t,a])}var Be=n(5110);function i(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===o[0]:e[0]===o[0]&&e[1]===o[1]}function c(e,o,t,a){for(var l=t.points,f=Object.keys(e),b=0;b1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?o:e}function Q(e){return k(parseFloat(e),0)}function re(e,o){var t=(0,h.Z)({},e);return(o||[]).forEach(function(a){if(!(a instanceof HTMLBodyElement)){var l=g(a).getComputedStyle(a),f=l.overflow,b=l.overflowClipMargin,M=l.borderTopWidth,P=l.borderBottomWidth,N=l.borderLeftWidth,T=l.borderRightWidth,A=a.getBoundingClientRect(),ie=a.offsetHeight,w=a.clientHeight,E=a.offsetWidth,G=a.clientWidth,X=Q(M),se=Q(P),p=Q(N),K=Q(T),Y=k(Math.round(A.width/E*1e3)/1e3),Oe=k(Math.round(A.height/ie*1e3)/1e3),De=(E-G-p-K)*Y,oe=(ie-w-X-se)*Oe,be=X*Oe,le=se*Oe,I=p*Y,Te=K*Y,W=0,Je=0;if(f==="clip"){var Le=Q(b);W=Le*Y,Je=Le*Oe}var Ze=A.x+I-W,fe=A.y+be-Je,_e=Ze+A.width+2*W-I-Te-De,Dt=fe+A.height+2*Je-be-le-oe;t.left=Math.max(t.left,Ze),t.top=Math.max(t.top,fe),t.right=Math.min(t.right,_e),t.bottom=Math.min(t.bottom,Dt)}}),t}function ae(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(o),a=t.match(/^(.*)\%$/);return a?e*(parseFloat(a[1])/100):parseFloat(t)}function We(e,o){var t=o||[],a=(0,s.Z)(t,2),l=a[0],f=a[1];return[ae(e.width,l),ae(e.height,f)]}function Me(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ue(e,o){var t=o[0],a=o[1],l,f;return t==="t"?f=e.y:t==="b"?f=e.y+e.height:f=e.y+e.height/2,a==="l"?l=e.x:a==="r"?l=e.x+e.width:l=e.x+e.width/2,{x:l,y:f}}function ye(e,o){var t={t:"b",b:"t",l:"r",r:"l"};return e.map(function(a,l){return l===o?t[a]||"c":a}).join("")}function Ge(e,o,t,a,l,f,b){var M=r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:l[a]||{}}),P=(0,s.Z)(M,2),N=P[0],T=P[1],A=r.useRef(0),ie=r.useMemo(function(){return o?S(o):[]},[o]),w=r.useRef({}),E=function(){w.current={}};e||E();var G=(0,Pe.Z)(function(){if(o&&t&&e){let Ae=function(sr,Kt){var lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ft,wr=W.x+sr,Sr=W.y+Kt,$r=wr+qe,Vr=Sr+Ye,co=Math.max(wr,lr.left),uo=Math.max(Sr,lr.top),fo=Math.min($r,lr.right),vo=Math.min(Vr,lr.bottom);return Math.max(0,(fo-co)*(vo-uo))},Cr=function(){St=W.y+de,ar=St+Ye,$t=W.x+me,Pt=$t+qe};var p=o,K=p.style.left,Y=p.style.top,Oe=p.style.right,De=p.style.bottom,oe=p.ownerDocument,be=g(p),le=(0,h.Z)((0,h.Z)({},l[a]),f);p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto";var I;if(Array.isArray(t))I={x:t[0],y:t[1],width:0,height:0};else{var Te=t.getBoundingClientRect();I={x:Te.x,y:Te.y,width:Te.width,height:Te.height}}var W=p.getBoundingClientRect(),Je=be.getComputedStyle(p),Le=Je.width,Ze=Je.height,fe=oe.documentElement,_e=fe.clientWidth,Dt=fe.clientHeight,qt=fe.scrollWidth,rt=fe.scrollHeight,ut=fe.scrollTop,Lt=fe.scrollLeft,Ye=W.height,qe=W.width,ke=I.height,Re=I.width,_t={left:0,top:0,right:_e,bottom:Dt},Nt={left:-Lt,top:-ut,right:qt-Lt,bottom:rt-ut},ot=le.htmlRegion,er="visible",At="visibleFirst";ot!=="scroll"&&ot!==At&&(ot=er);var Ie=ot===At,jt=re(Nt,ie),F=re(_t,ie),ft=ot===er?F:jt,He=Ie?F:ft;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var tr=p.getBoundingClientRect();p.style.left=K,p.style.top=Y,p.style.right=Oe,p.style.bottom=De;var dt=k(Math.round(qe/parseFloat(Le)*1e3)/1e3),pt=k(Math.round(Ye/parseFloat(Ze)*1e3)/1e3);if(dt===0||pt===0||(0,te.S)(t)&&!(0,Be.Z)(t))return;var vt=le.offset,Kr=le.targetOffset,Qr=We(W,vt),Mr=(0,s.Z)(Qr,2),rr=Mr[0],Ve=Mr[1],Gr=We(I,Kr),Or=(0,s.Z)(Gr,2),Xr=Or[0],Zr=Or[1];I.x-=Xr,I.y-=Zr;var Ct=le.points||[],Rr=(0,s.Z)(Ct,2),Jr=Rr[0],or=Rr[1],we=Me(or),Se=Me(Jr),Er=ue(I,we),xr=ue(W,Se),wt=(0,h.Z)({},le),me=Er.x-xr.x+rr,de=Er.y-xr.y+Ve,nt=Ae(me,de),Bt=Ae(me,de,F),Ne=ue(I,["t","l"]),Tr=ue(W,["t","l"]),kt=ue(I,["b","r"]),mr=ue(W,["b","r"]),It=le.overflow||{},zr=It.adjustX,at=It.adjustY,Dr=It.shiftX,gr=It.shiftY,nr=function(Kt){return typeof Kt=="boolean"?Kt:Kt>=0},St,ar,$t,Pt;Cr();var hr=nr(at),Lr=Se[0]===we[0];if(hr&&Se[0]==="t"&&(ar>He.bottom||w.current.bt)){var Mt=de;Lr?Mt-=Ye-ke:Mt=Ne.y-mr.y-Ve;var yr=Ae(me,Mt),Yr=Ae(me,Mt,F);yr>nt||yr===nt&&(!Ie||Yr>=Bt)?(w.current.bt=!0,de=Mt,wt.points=[ye(Se,0),ye(we,0)]):w.current.bt=!1}if(hr&&Se[0]==="b"&&(Stnt||Nr===nt&&(!Ie||Fe>=Bt)?(w.current.tb=!0,de=mt,wt.points=[ye(Se,0),ye(we,0)]):w.current.tb=!1}var Ar=nr(zr),jr=Se[1]===we[1];if(Ar&&Se[1]==="l"&&(Pt>He.right||w.current.rl)){var Wt=me;jr?Wt-=qe-Re:Wt=Ne.x-mr.x-rr;var Br=Ae(Wt,de),qr=Ae(Wt,de,F);Br>nt||Br===nt&&(!Ie||qr>=Bt)?(w.current.rl=!0,me=Wt,wt.points=[ye(Se,1),ye(we,1)]):w.current.rl=!1}if(Ar&&Se[1]==="r"&&($tnt||kr===nt&&(!Ie||_r>=Bt)?(w.current.lr=!0,me=Ht,wt.points=[ye(Se,1),ye(we,1)]):w.current.lr=!1}Cr();var Vt=Dr===!0?0:Dr;typeof Vt=="number"&&($tF.right&&(me-=Pt-F.right,I.x>F.right-Vt&&(me+=I.x-F.right+Vt)));var it=gr===!0?0:gr;typeof it=="number"&&(StF.bottom&&(de-=ar-F.bottom,I.y>F.bottom-it&&(de+=I.y-F.bottom+it)));var Ft=W.x+me,Ot=Ft+qe,br=W.y+de,eo=br+Ye,Ir=I.x,to=Ir+Re,pr=I.y,ro=pr+ke,oo=Math.max(Ft,Ir),no=Math.min(Ot,to),Wr=(oo+no)/2,ao=Wr-Ft,io=Math.max(br,pr),so=Math.min(eo,ro),lo=(io+so)/2,Hr=lo-br;b==null||b(o,wt);var ir=tr.right-W.x-(me+W.width),Ut=tr.bottom-W.y-(de+W.height);T({ready:!0,offsetX:me/dt,offsetY:de/pt,offsetR:ir/dt,offsetB:Ut/pt,arrowX:ao/dt,arrowY:Hr/pt,scaleX:dt,scaleY:pt,align:wt})}}),X=function(){A.current+=1;var K=A.current;Promise.resolve().then(function(){A.current===K&&G()})},se=function(){T(function(K){return(0,h.Z)((0,h.Z)({},K),{},{ready:!1})})};return(0,x.Z)(se,[a]),(0,x.Z)(function(){e||se()},[e]),[N.ready,N.offsetX,N.offsetY,N.offsetR,N.offsetB,N.arrowX,N.arrowY,N.scaleX,N.scaleY,N.align,X]}function Xe(e,o,t,a){(0,x.Z)(function(){if(e&&o&&t){let T=function(){a()};var l=o,f=t,b=S(l),M=S(f),P=g(f),N=new Set([P].concat((0,he.Z)(b),(0,he.Z)(M)));return N.forEach(function(A){A.addEventListener("scroll",T,{passive:!0})}),P.addEventListener("resize",T,{passive:!0}),a(),function(){N.forEach(function(A){A.removeEventListener("scroll",T),P.removeEventListener("resize",T)})}}},[e,o,t])}var lt=n(56790),yt=n(75164);function Gt(e,o,t,a,l,f,b,M){var P=r.useRef(e),N=r.useRef(!1);P.current!==e&&(N.current=!0,P.current=e),r.useEffect(function(){var T=(0,yt.Z)(function(){N.current=!1});return function(){yt.Z.cancel(T)}},[e]),r.useEffect(function(){if(o&&a&&(!l||f)){var T=function(){var I=!1,Te=function(Le){var Ze=Le.target;I=b(Ze)},W=function(Le){var Ze=Le.target;!N.current&&P.current&&!I&&!b(Ze)&&M(!1)};return[Te,W]},A=T(),ie=(0,s.Z)(A,2),w=ie[0],E=ie[1],G=T(),X=(0,s.Z)(G,2),se=X[0],p=X[1],K=g(a);K.addEventListener("mousedown",w,!0),K.addEventListener("click",E,!0),K.addEventListener("contextmenu",E,!0);var Y=(0,xe.A)(t);if(Y&&(Y.addEventListener("mousedown",se,!0),Y.addEventListener("click",p,!0),Y.addEventListener("contextmenu",p,!0)),!1)var Oe,De,oe,be;return function(){K.removeEventListener("mousedown",w,!0),K.removeEventListener("click",E,!0),K.removeEventListener("contextmenu",E,!0),Y&&(Y.removeEventListener("mousedown",se,!0),Y.removeEventListener("click",p,!0),Y.removeEventListener("contextmenu",p,!0))}}},[o,t,a,l,f])}var bt=n(87462),xt=n(82225);function Xt(e){var o=e.prefixCls,t=e.align,a=e.arrow,l=e.arrowPos,f=a||{},b=f.className,M=f.content,P=l.x,N=P===void 0?0:P,T=l.y,A=T===void 0?0:T,ie=r.useRef();if(!t||!t.points)return null;var w={position:"absolute"};if(t.autoArrow!==!1){var E=t.points[0],G=t.points[1],X=E[0],se=E[1],p=G[0],K=G[1];X===p||!["t","b"].includes(X)?w.top=A:X==="t"?w.top=0:w.bottom=0,se===K||!["l","r"].includes(se)?w.left=N:se==="l"?w.left=0:w.right=0}return r.createElement("div",{ref:ie,className:B()("".concat(o,"-arrow"),b),style:w},M)}function ct(e){var o=e.prefixCls,t=e.open,a=e.zIndex,l=e.mask,f=e.motion;return l?r.createElement(xt.ZP,(0,bt.Z)({},f,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(b){var M=b.className;return r.createElement("div",{style:{zIndex:a},className:B()("".concat(o,"-mask"),M)})}):null}var ur=r.memo(function(e){var o=e.children;return o},function(e,o){return o.cache}),Tt=ur,fr=r.forwardRef(function(e,o){var t=e.popup,a=e.className,l=e.prefixCls,f=e.style,b=e.target,M=e.onVisibleChanged,P=e.open,N=e.keepDom,T=e.onClick,A=e.mask,ie=e.arrow,w=e.arrowPos,E=e.align,G=e.motion,X=e.maskMotion,se=e.forceRender,p=e.getPopupContainer,K=e.autoDestroy,Y=e.portal,Oe=e.zIndex,De=e.onMouseEnter,oe=e.onMouseLeave,be=e.ready,le=e.offsetX,I=e.offsetY,Te=e.offsetR,W=e.offsetB,Je=e.onAlign,Le=e.onPrepare,Ze=e.stretch,fe=e.targetWidth,_e=e.targetHeight,Dt=typeof t=="function"?t():t,qt=P||N,rt=(p==null?void 0:p.length)>0,ut=r.useState(!p||!rt),Lt=(0,s.Z)(ut,2),Ye=Lt[0],qe=Lt[1];if((0,x.Z)(function(){!Ye&&rt&&b&&qe(!0)},[Ye,rt,b]),!Ye)return null;var ke="auto",Re={left:"-1000vw",top:"-1000vh",right:ke,bottom:ke};if(be||!P){var _t=E.points,Nt=E._experimental,ot=Nt==null?void 0:Nt.dynamicInset,er=ot&&_t[0][1]==="r",At=ot&&_t[0][0]==="b";er?(Re.right=Te,Re.left=ke):(Re.left=le,Re.right=ke),At?(Re.bottom=W,Re.top=ke):(Re.top=I,Re.bottom=ke)}var Ie={};return Ze&&(Ze.includes("height")&&_e?Ie.height=_e:Ze.includes("minHeight")&&_e&&(Ie.minHeight=_e),Ze.includes("width")&&fe?Ie.width=fe:Ze.includes("minWidth")&&fe&&(Ie.minWidth=fe)),P||(Ie.pointerEvents="none"),r.createElement(Y,{open:se||qt,getContainer:p&&function(){return p(b)},autoDestroy:K},r.createElement(ct,{prefixCls:l,open:P,zIndex:Oe,mask:A,motion:X}),r.createElement(ee.Z,{onResize:Je,disabled:!P},function(jt){return r.createElement(xt.ZP,(0,bt.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:se,leavedClassName:"".concat(l,"-hidden")},G,{onAppearPrepare:Le,onEnterPrepare:Le,visible:P,onVisibleChanged:function(ft){var He;G==null||(He=G.onVisibleChanged)===null||He===void 0||He.call(G,ft),M(ft)}}),function(F,ft){var He=F.className,tr=F.style,dt=B()(l,He,a);return r.createElement("div",{ref:(0,d.sQ)(jt,o,ft),className:dt,style:(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({"--arrow-x":"".concat(w.x||0,"px"),"--arrow-y":"".concat(w.y||0,"px")},Re),Ie),tr),{},{boxSizing:"border-box",zIndex:Oe},f),onMouseEnter:De,onMouseLeave:oe,onClick:T},ie&&r.createElement(Xt,{prefixCls:l,arrow:ie,arrowPos:w,align:E}),r.createElement(Tt,{cache:!P},Dt))})}))}),Jt=fr,Yt=r.forwardRef(function(e,o){var t=e.children,a=e.getTriggerDOMNode,l=(0,d.Yr)(t),f=r.useCallback(function(M){(0,d.mH)(o,a?a(M):M)},[a]),b=(0,d.x1)(f,t.ref);return l?r.cloneElement(t,{ref:b}):t}),dr=Yt,Pr=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function zt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R,o=r.forwardRef(function(t,a){var l=t.prefixCls,f=l===void 0?"rc-trigger-popup":l,b=t.children,M=t.action,P=M===void 0?"hover":M,N=t.showAction,T=t.hideAction,A=t.popupVisible,ie=t.defaultPopupVisible,w=t.onPopupVisibleChange,E=t.afterPopupVisibleChange,G=t.mouseEnterDelay,X=t.mouseLeaveDelay,se=X===void 0?.1:X,p=t.focusDelay,K=t.blurDelay,Y=t.mask,Oe=t.maskClosable,De=Oe===void 0?!0:Oe,oe=t.getPopupContainer,be=t.forceRender,le=t.autoDestroy,I=t.destroyPopupOnHide,Te=t.popup,W=t.popupClassName,Je=t.popupStyle,Le=t.popupPlacement,Ze=t.builtinPlacements,fe=Ze===void 0?{}:Ze,_e=t.popupAlign,Dt=t.zIndex,qt=t.stretch,rt=t.getPopupClassNameFromAlign,ut=t.alignPoint,Lt=t.onPopupClick,Ye=t.onPopupAlign,qe=t.arrow,ke=t.popupMotion,Re=t.maskMotion,_t=t.popupTransitionName,Nt=t.popupAnimation,ot=t.maskTransitionName,er=t.maskAnimation,At=t.className,Ie=t.getTriggerDOMNode,jt=(0,ve.Z)(t,Pr),F=le||I||!1,ft=r.useState(!1),He=(0,s.Z)(ft,2),tr=He[0],dt=He[1];(0,x.Z)(function(){dt(Qt())},[]);var pt=r.useRef({}),vt=r.useContext(Zt),Kr=r.useMemo(function(){return{registerSubPopup:function(O,q){pt.current[O]=q,vt==null||vt.registerSubPopup(O,q)}}},[vt]),Qr=ht(),Mr=r.useState(null),rr=(0,s.Z)(Mr,2),Ve=rr[0],Gr=rr[1],Or=(0,Pe.Z)(function(m){(0,te.S)(m)&&Ve!==m&&Gr(m),vt==null||vt.registerSubPopup(Qr,m)}),Xr=r.useState(null),Zr=(0,s.Z)(Xr,2),Ct=Zr[0],Rr=Zr[1],Jr=(0,Pe.Z)(function(m){(0,te.S)(m)&&Ct!==m&&Rr(m)}),or=r.Children.only(b),we=(or==null?void 0:or.props)||{},Se={},Er=(0,Pe.Z)(function(m){var O,q,ge=Ct;return(ge==null?void 0:ge.contains(m))||((O=(0,xe.A)(ge))===null||O===void 0?void 0:O.host)===m||m===ge||(Ve==null?void 0:Ve.contains(m))||((q=(0,xe.A)(Ve))===null||q===void 0?void 0:q.host)===m||m===Ve||Object.values(pt.current).some(function(ne){return(ne==null?void 0:ne.contains(m))||m===ne})}),xr=z(f,ke,Nt,_t),wt=z(f,Re,er,ot),me=r.useState(ie||!1),de=(0,s.Z)(me,2),nt=de[0],Bt=de[1],Ne=A!=null?A:nt,Tr=(0,Pe.Z)(function(m){A===void 0&&Bt(m)});(0,x.Z)(function(){Bt(A||!1)},[A]);var kt=r.useRef(Ne);kt.current=Ne;var mr=(0,Pe.Z)(function(m){Ne!==m&&(Tr(m),w==null||w(m))}),It=r.useRef(),zr=function(){clearTimeout(It.current)},at=function(O){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;zr(),q===0?mr(O):It.current=setTimeout(function(){mr(O)},q*1e3)};r.useEffect(function(){return zr},[]);var Dr=r.useState(!1),gr=(0,s.Z)(Dr,2),nr=gr[0],St=gr[1];(0,x.Z)(function(m){(!m||Ne)&&St(!0)},[Ne]);var ar=r.useState(null),$t=(0,s.Z)(ar,2),Pt=$t[0],hr=$t[1],Lr=r.useState([0,0]),Mt=(0,s.Z)(Lr,2),yr=Mt[0],Yr=Mt[1],mt=function(O){Yr([O.clientX,O.clientY])},Nr=Ge(Ne,Ve,ut?yr:Ct,Le,fe,_e,Ye),Fe=(0,s.Z)(Nr,11),Ar=Fe[0],jr=Fe[1],Wt=Fe[2],Br=Fe[3],qr=Fe[4],Ht=Fe[5],kr=Fe[6],_r=Fe[7],Vt=Fe[8],it=Fe[9],Ft=Fe[10],Ot=(0,Pe.Z)(function(){nr||Ft()});Xe(Ne,Ct,Ve,Ot),(0,x.Z)(function(){Ot()},[yr,Le]),(0,x.Z)(function(){Ne&&!(fe!=null&&fe[Le])&&Ot()},[JSON.stringify(_e)]);var br=r.useMemo(function(){var m=c(fe,f,it,ut);return B()(m,rt==null?void 0:rt(it))},[it,rt,fe,f,ut]);r.useImperativeHandle(a,function(){return{forceAlign:Ot}});var eo=function(O){St(!1),Ft(),E==null||E(O)},Ir=function(){return new Promise(function(O){hr(function(){return O})})};(0,x.Z)(function(){Pt&&(Ft(),Pt(),hr(null))},[Pt]);var to=r.useState(0),pr=(0,s.Z)(to,2),ro=pr[0],oo=pr[1],no=r.useState(0),Wr=(0,s.Z)(no,2),ao=Wr[0],io=Wr[1],so=function(O,q){if(Ot(),qt){var ge=q.getBoundingClientRect();oo(ge.width),io(ge.height)}},lo=Et(tr,P,N,T),Hr=(0,s.Z)(lo,2),ir=Hr[0],Ut=Hr[1],Ae=function(O,q,ge,ne){Se[O]=function(go){var Fr;ne==null||ne(go),at(q,ge);for(var mo=arguments.length,ho=new Array(mo>1?mo-1:0),Ur=1;Ur1?q-1:0),ne=1;ne1?q-1:0),ne=1;ne({height:0,opacity:0}),s=d=>{const{scrollHeight:C}=d;return{height:C,opacity:1}},ve=d=>({height:d?d.offsetHeight:0}),r=(d,C)=>(C==null?void 0:C.deadline)===!0||C.propertyName==="height",Ce=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:h,onEnterStart:h,onAppearActive:s,onEnterActive:s,onLeaveStart:ve,onLeaveActive:h,onAppearEnd:r,onEnterEnd:r,onLeaveEnd:r,motionDeadline:500}},H=null,v=d=>d!==void 0&&(d==="topLeft"||d==="topRight")?"slide-down":"slide-up",u=(d,C,D)=>D!==void 0?D:`${d}-${C}`;pe.ZP=Ce},80636:function(gt,pe,n){n.d(pe,{Z:function(){return H}});var h=n(77786);function s(v,u,d,C){if(C===!1)return{adjustX:!1,adjustY:!1};const D=C&&typeof C=="object"?C:{},he={};switch(v){case"top":case"bottom":he.shiftX=u.dropdownArrowOffset*2+d;break;case"left":case"right":he.shiftY=u.dropdownArrowOffsetVertical*2+d;break}const x=Object.assign(Object.assign({},he),D);return x.shiftX||(x.adjustX=!0),x.shiftY||(x.adjustY=!0),x}const ve={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},r={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Ce=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function H(v){const{arrowWidth:u,autoAdjustOverflow:d,arrowPointAtCenter:C,offset:D,borderRadius:he,visibleFirst:x}=v,J=u/2,$e={};return Object.keys(ve).forEach(U=>{const j=C&&r[U]||ve[U],Z=Object.assign(Object.assign({},j),{offset:[0,0]});switch($e[U]=Z,Ce.has(U)&&(Z.autoArrow=!1),U){case"top":case"topLeft":case"topRight":Z.offset[1]=-J-D;break;case"bottom":case"bottomLeft":case"bottomRight":Z.offset[1]=J+D;break;case"left":case"leftTop":case"leftBottom":Z.offset[0]=-J-D;break;case"right":case"rightTop":case"rightBottom":Z.offset[0]=J+D;break}const _=(0,h.fS)({contentRadius:he,limitVerticalRadius:!0});if(C)switch(U){case"topLeft":case"bottomLeft":Z.offset[0]=-_.dropdownArrowOffset-J;break;case"topRight":case"bottomRight":Z.offset[0]=_.dropdownArrowOffset+J;break;case"leftTop":case"rightTop":Z.offset[1]=-_.dropdownArrowOffset-J;break;case"leftBottom":case"rightBottom":Z.offset[1]=_.dropdownArrowOffset+J;break}Z.overflow=s(U,_,u,d),x&&(Z.htmlRegion="visibleFirst")}),$e}},93590:function(gt,pe,n){n.d(pe,{R:function(){return ve}});const h=r=>({animationDuration:r,animationFillMode:"both"}),s=r=>({animationDuration:r,animationFillMode:"both"}),ve=function(r,Ce,H,v){const d=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${d}${r}-enter, - ${d}${r}-appear - `]:Object.assign(Object.assign({},h(v)),{animationPlayState:"paused"}),[`${d}${r}-leave`]:Object.assign(Object.assign({},s(v)),{animationPlayState:"paused"}),[` - ${d}${r}-enter${r}-enter-active, - ${d}${r}-appear${r}-appear-active - `]:{animationName:Ce,animationPlayState:"running"},[`${d}${r}-leave${r}-leave-active`]:{animationName:H,animationPlayState:"running",pointerEvents:"none"}}}},50438:function(gt,pe,n){n.d(pe,{_y:function(){return U}});var h=n(43579),s=n(93590);const ve=new h.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),r=new h.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ce=new h.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),H=new h.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),v=new h.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new h.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d=new h.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),C=new h.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),D=new h.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),he=new h.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),x=new h.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),J=new h.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),$e={zoom:{inKeyframes:ve,outKeyframes:r},"zoom-big":{inKeyframes:Ce,outKeyframes:H},"zoom-big-fast":{inKeyframes:Ce,outKeyframes:H},"zoom-left":{inKeyframes:d,outKeyframes:C},"zoom-right":{inKeyframes:D,outKeyframes:he},"zoom-up":{inKeyframes:v,outKeyframes:u},"zoom-down":{inKeyframes:x,outKeyframes:J}},U=(j,Z)=>{const{antCls:_}=j,je=`${_}-${Z}`,{inKeyframes:ze,outKeyframes:Ue}=$e[Z];return[(0,s.R)(je,ze,Ue,Z==="zoom-big-fast"?j.motionDurationFast:j.motionDurationMid),{[` - ${je}-enter, - ${je}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:j.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${je}-leave`]:{animationTimingFunction:j.motionEaseInOutCirc}}]}},77786:function(gt,pe,n){n.d(pe,{qN:function(){return s},ZP:function(){return Ce},fS:function(){return ve}});const h=(H,v,u,d,C)=>{const D=H/2,he=0,x=D,J=u*1/Math.sqrt(2),$e=D-u*(1-1/Math.sqrt(2)),U=D-v*(1/Math.sqrt(2)),j=u*(Math.sqrt(2)-1)+v*(1/Math.sqrt(2)),Z=2*D-U,_=j,je=2*D-J,ze=$e,Ue=2*D-he,et=x,tt=D*Math.sqrt(2)+u*(Math.sqrt(2)-2),$=u*(Math.sqrt(2)-1);return{pointerEvents:"none",width:H,height:H,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:H,height:H/2,background:d,clipPath:{_multi_value_:!0,value:[`polygon(${$}px 100%, 50% ${$}px, ${2*D-$}px 100%, ${$}px 100%)`,`path('M ${he} ${x} A ${u} ${u} 0 0 0 ${J} ${$e} L ${U} ${j} A ${v} ${v} 0 0 1 ${Z} ${_} L ${je} ${ze} A ${u} ${u} 0 0 0 ${Ue} ${et} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:tt,height:tt,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${v}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:C,zIndex:0,background:"transparent"}}},s=8;function ve(H){const v=s,{contentRadius:u,limitVerticalRadius:d}=H,C=u>12?u+2:12;return{dropdownArrowOffset:C,dropdownArrowOffsetVertical:d?v:C}}function r(H,v){return H?v:{}}function Ce(H,v){const{componentCls:u,sizePopupArrow:d,borderRadiusXS:C,borderRadiusOuter:D,boxShadowPopoverArrow:he}=H,{colorBg:x,contentRadius:J=H.borderRadiusLG,limitVerticalRadius:$e,arrowDistance:U=0,arrowPlacement:j={left:!0,right:!0,top:!0,bottom:!0}}=v,{dropdownArrowOffsetVertical:Z,dropdownArrowOffset:_}=ve({contentRadius:J,limitVerticalRadius:$e});return{[u]:Object.assign(Object.assign(Object.assign(Object.assign({[`${u}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},h(d,C,D,x,he)),{"&:before":{background:x}})]},r(!!j.top,{[[`&-placement-top ${u}-arrow`,`&-placement-topLeft ${u}-arrow`,`&-placement-topRight ${u}-arrow`].join(",")]:{bottom:U,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${u}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${u}-arrow`]:{left:{_skip_check_:!0,value:_}},[`&-placement-topRight ${u}-arrow`]:{right:{_skip_check_:!0,value:_}}})),r(!!j.bottom,{[[`&-placement-bottom ${u}-arrow`,`&-placement-bottomLeft ${u}-arrow`,`&-placement-bottomRight ${u}-arrow`].join(",")]:{top:U,transform:"translateY(-100%)"},[`&-placement-bottom ${u}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${u}-arrow`]:{left:{_skip_check_:!0,value:_}},[`&-placement-bottomRight ${u}-arrow`]:{right:{_skip_check_:!0,value:_}}})),r(!!j.left,{[[`&-placement-left ${u}-arrow`,`&-placement-leftTop ${u}-arrow`,`&-placement-leftBottom ${u}-arrow`].join(",")]:{right:{_skip_check_:!0,value:U},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${u}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${u}-arrow`]:{top:Z},[`&-placement-leftBottom ${u}-arrow`]:{bottom:Z}})),r(!!j.right,{[[`&-placement-right ${u}-arrow`,`&-placement-rightTop ${u}-arrow`,`&-placement-rightBottom ${u}-arrow`].join(",")]:{left:{_skip_check_:!0,value:U},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${u}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${u}-arrow`]:{top:Z},[`&-placement-rightBottom ${u}-arrow`]:{bottom:Z}}))}}},9361:function(gt,pe,n){n.d(pe,{Z:function(){return tt}});var h=n(43579),s=n(67164),ve=n(2790),r=n(1393),H=$=>{const y=$!=null&&$.algorithm?(0,h.jG)($.algorithm):(0,h.jG)(s.Z),V=Object.assign(Object.assign({},ve.Z),$==null?void 0:$.token);return(0,h.t2)(V,{override:$==null?void 0:$.token},y,r.Z)},v=n(25976),u=n(33083),d=n(372);function C($){const{sizeUnit:y,sizeStep:V}=$,L=V-2;return{sizeXXL:y*(L+10),sizeXL:y*(L+6),sizeLG:y*(L+2),sizeMD:y*(L+2),sizeMS:y*(L+1),size:y*L,sizeSM:y*L,sizeXS:y*(L-1),sizeXXS:y*(L-1)}}var D=n(98378),x=($,y)=>{const V=y!=null?y:(0,s.Z)($),L=V.fontSizeSM,Ee=V.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},V),C(y!=null?y:$)),(0,D.Z)(L)),{controlHeight:Ee}),(0,d.Z)(Object.assign(Object.assign({},V),{controlHeight:Ee})))},J=n(16397),$e=n(57),U=n(10274);const j=($,y)=>new U.C($).setAlpha(y).toRgbString(),Z=($,y)=>new U.C($).lighten(y).toHexString(),_=$=>{const y=(0,J.R_)($,{theme:"dark"});return{1:y[0],2:y[1],3:y[2],4:y[3],5:y[6],6:y[5],7:y[4],8:y[6],9:y[5],10:y[4]}},je=($,y)=>{const V=$||"#000",L=y||"#fff";return{colorBgBase:V,colorTextBase:L,colorText:j(L,.85),colorTextSecondary:j(L,.65),colorTextTertiary:j(L,.45),colorTextQuaternary:j(L,.25),colorFill:j(L,.18),colorFillSecondary:j(L,.12),colorFillTertiary:j(L,.08),colorFillQuaternary:j(L,.04),colorBgElevated:Z(V,12),colorBgContainer:Z(V,8),colorBgLayout:Z(V,0),colorBgSpotlight:Z(V,26),colorBorder:Z(V,26),colorBorderSecondary:Z(V,19)}};var Ue=($,y)=>{const V=Object.keys(ve.M).map(Ee=>{const R=(0,J.R_)($[Ee],{theme:"dark"});return new Array(10).fill(1).reduce((ce,B,ee)=>(ce[`${Ee}-${ee+1}`]=R[ee],ce[`${Ee}${ee+1}`]=R[ee],ce),{})}).reduce((Ee,R)=>(Ee=Object.assign(Object.assign({},Ee),R),Ee),{}),L=y!=null?y:(0,s.Z)($);return Object.assign(Object.assign(Object.assign({},L),V),(0,$e.Z)($,{generateColorPalettes:_,generateNeutralColorPalettes:je}))};function et(){const[$,y,V]=(0,v.Z)();return{theme:$,token:y,hashId:V}}var tt={defaultConfig:u.u_,defaultSeed:u.u_.token,useToken:et,defaultAlgorithm:s.Z,darkAlgorithm:Ue,compactAlgorithm:x,getDesignToken:H}},5529:function(gt,pe,n){n.d(pe,{Z:function(){return Be}});var h=n(94184),s=n.n(h),ve=n(87462),r=n(1413),Ce=n(91),H=n(89185),v=n(62435),u={shiftX:64,adjustY:1},d={adjustX:1,shiftY:!0},C=[0,0],D={left:{points:["cr","cl"],overflow:d,offset:[-4,0],targetOffset:C},right:{points:["cl","cr"],overflow:d,offset:[4,0],targetOffset:C},top:{points:["bc","tc"],overflow:u,offset:[0,-4],targetOffset:C},bottom:{points:["tc","bc"],overflow:u,offset:[0,4],targetOffset:C},topLeft:{points:["bl","tl"],overflow:u,offset:[0,-4],targetOffset:C},leftTop:{points:["tr","tl"],overflow:d,offset:[-4,0],targetOffset:C},topRight:{points:["br","tr"],overflow:u,offset:[0,-4],targetOffset:C},rightTop:{points:["tl","tr"],overflow:d,offset:[4,0],targetOffset:C},bottomRight:{points:["tr","br"],overflow:u,offset:[0,4],targetOffset:C},rightBottom:{points:["bl","br"],overflow:d,offset:[4,0],targetOffset:C},bottomLeft:{points:["tl","bl"],overflow:u,offset:[0,4],targetOffset:C},leftBottom:{points:["br","bl"],overflow:d,offset:[-4,0],targetOffset:C}},he=null;function x(i){var c=i.children,z=i.prefixCls,g=i.id,S=i.overlayInnerStyle,k=i.className,Q=i.style;return v.createElement("div",{className:s()("".concat(z,"-content"),k),style:Q},v.createElement("div",{className:"".concat(z,"-inner"),id:g,role:"tooltip",style:S},typeof c=="function"?c():c))}var J=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],$e=function(c,z){var g=c.overlayClassName,S=c.trigger,k=S===void 0?["hover"]:S,Q=c.mouseEnterDelay,re=Q===void 0?0:Q,ae=c.mouseLeaveDelay,We=ae===void 0?.1:ae,Me=c.overlayStyle,ue=c.prefixCls,ye=ue===void 0?"rc-tooltip":ue,Ge=c.children,Xe=c.onVisibleChange,lt=c.afterVisibleChange,yt=c.transitionName,Gt=c.animation,bt=c.motion,xt=c.placement,Xt=xt===void 0?"right":xt,ct=c.align,ur=ct===void 0?{}:ct,Tt=c.destroyTooltipOnHide,fr=Tt===void 0?!1:Tt,Jt=c.defaultVisible,Yt=c.getTooltipContainer,dr=c.overlayInnerStyle,Pr=c.arrowContent,zt=c.overlay,vr=c.id,e=c.showArrow,o=e===void 0?!0:e,t=(0,Ce.Z)(c,J),a=(0,v.useRef)(null);(0,v.useImperativeHandle)(z,function(){return a.current});var l=(0,r.Z)({},t);"visible"in c&&(l.popupVisible=c.visible);var f=function(){return v.createElement(x,{key:"content",prefixCls:ye,id:vr,overlayInnerStyle:dr},zt)};return v.createElement(H.Z,(0,ve.Z)({popupClassName:g,prefixCls:ye,popup:f,action:k,builtinPlacements:D,popupPlacement:Xt,ref:a,popupAlign:ur,getPopupContainer:Yt,onPopupVisibleChange:Xe,afterPopupVisibleChange:lt,popupTransitionName:yt,popupAnimation:Gt,popupMotion:bt,defaultPopupVisible:Jt,autoDestroy:fr,mouseLeaveDelay:We,popupStyle:Me,mouseEnterDelay:re,arrow:o},l),Ge)},U=(0,v.forwardRef)($e),j=U,Z=n(21770),_=n(33603),je=n(80636),ze=n(96159),Ue=n(53124),et=n(4173),tt=n(9361),$=n(14747),y=n(50438),V=n(77786);const L=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Ee(i,c){return L.reduce((z,g)=>{const S=i[`${g}1`],k=i[`${g}3`],Q=i[`${g}6`],re=i[`${g}7`];return Object.assign(Object.assign({},z),c(g,{lightColor:S,lightBorderColor:k,darkColor:Q,textColor:re}))},{})}var R=n(45503),ce=n(67968);const B=i=>{const{componentCls:c,tooltipMaxWidth:z,tooltipColor:g,tooltipBg:S,tooltipBorderRadius:k,zIndexPopup:Q,controlHeight:re,boxShadowSecondary:ae,paddingSM:We,paddingXS:Me,tooltipRadiusOuter:ue}=i;return[{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,$.Wf)(i)),{position:"absolute",zIndex:Q,display:"block",width:"max-content",maxWidth:z,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":S,[`${c}-inner`]:{minWidth:re,minHeight:re,padding:`${We/2}px ${Me}px`,color:g,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:S,borderRadius:k,boxShadow:ae,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${c}-inner`]:{borderRadius:Math.min(k,V.qN)}},[`${c}-content`]:{position:"relative"}}),Ee(i,(ye,Ge)=>{let{darkColor:Xe}=Ge;return{[`&${c}-${ye}`]:{[`${c}-inner`]:{backgroundColor:Xe},[`${c}-arrow`]:{"--antd-arrow-background-color":Xe}}}})),{"&-rtl":{direction:"rtl"}})},(0,V.ZP)((0,R.TS)(i,{borderRadiusOuter:ue}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:k,limitVerticalRadius:!0}),{[`${c}-pure`]:{position:"relative",maxWidth:"none",margin:i.sizePopupArrow}}]};var ee=(i,c)=>(0,ce.Z)("Tooltip",g=>{if(c===!1)return[];const{borderRadius:S,colorTextLightSolid:k,colorBgDefault:Q,borderRadiusOuter:re}=g,ae=(0,R.TS)(g,{tooltipMaxWidth:250,tooltipColor:k,tooltipBorderRadius:S,tooltipBg:Q,tooltipRadiusOuter:re>4?4:re});return[B(ae),(0,y._y)(g,"zoom-big-fast")]},g=>{let{zIndexPopupBase:S,colorBgSpotlight:k}=g;return{zIndexPopup:S+70,colorBgDefault:k}},{resetStyle:!1})(i),te=n(74902);const xe=L.map(i=>`${i}-inverse`),Pe=null;function st(i){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,te.Z)(xe),(0,te.Z)(L)).includes(i):L.includes(i)}function Ke(i){return Pe.includes(i)}function Qe(i,c){const z=st(c),g=s()({[`${i}-${c}`]:c&&z}),S={},k={};return c&&!z&&(S.background=c,k["--antd-arrow-background-color"]=c),{className:g,overlayStyle:S,arrowStyle:k}}function ht(i){const{prefixCls:c,className:z,placement:g="top",title:S,color:k,overlayInnerStyle:Q}=i,{getPrefixCls:re}=v.useContext(Ue.E_),ae=re("tooltip",c),[We,Me]=ee(ae,!0),ue=Qe(ae,k),ye=Object.assign(Object.assign({},Q),ue.overlayStyle),Ge=ue.arrowStyle;return We(v.createElement("div",{className:s()(Me,ae,`${ae}-pure`,`${ae}-placement-${g}`,z,ue.className),style:Ge},v.createElement("div",{className:`${ae}-arrow`}),v.createElement(x,Object.assign({},i,{className:Me,prefixCls:ae,overlayInnerStyle:ye}),S)))}var Qt=function(i,c){var z={};for(var g in i)Object.prototype.hasOwnProperty.call(i,g)&&c.indexOf(g)<0&&(z[g]=i[g]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,g=Object.getOwnPropertySymbols(i);S{const z={},g=Object.assign({},i);return c.forEach(S=>{i&&S in i&&(z[S]=i[S],delete g[S])}),{picked:z,omitted:g}};function Rt(i,c){const z=i.type;if((z.__ANT_BUTTON===!0||i.type==="button")&&i.props.disabled||z.__ANT_SWITCH===!0&&(i.props.disabled||i.props.loading)||z.__ANT_RADIO===!0&&i.props.disabled){const{picked:g,omitted:S}=Zt(i.props.style,["position","left","right","top","bottom","float","display","zIndex"]),k=Object.assign(Object.assign({display:"inline-block"},g),{cursor:"not-allowed",width:i.props.block?"100%":void 0}),Q=Object.assign(Object.assign({},S),{pointerEvents:"none"}),re=(0,ze.Tm)(i,{style:Q,className:null});return v.createElement("span",{style:k,className:s()(i.props.className,`${c}-disabled-compatible-wrapper`)},re)}return i}const Et=v.forwardRef((i,c)=>{var z,g;const{prefixCls:S,openClassName:k,getTooltipContainer:Q,overlayClassName:re,color:ae,overlayInnerStyle:We,children:Me,afterOpenChange:ue,afterVisibleChange:ye,destroyTooltipOnHide:Ge,arrow:Xe=!0,title:lt,overlay:yt,builtinPlacements:Gt,arrowPointAtCenter:bt=!1,autoAdjustOverflow:xt=!0}=i,Xt=!!Xe,{token:ct}=cr(),{getPopupContainer:ur,getPrefixCls:Tt,direction:fr}=v.useContext(Ue.E_),Jt=v.useRef(null),Yt=()=>{var oe;(oe=Jt.current)===null||oe===void 0||oe.forceAlign()};v.useImperativeHandle(c,()=>({forceAlign:Yt,forcePopupAlign:()=>{Yt()}}));const[dr,Pr]=(0,Z.Z)(!1,{value:(z=i.open)!==null&&z!==void 0?z:i.visible,defaultValue:(g=i.defaultOpen)!==null&&g!==void 0?g:i.defaultVisible}),zt=!lt&&!yt&<!==0,vr=oe=>{var be,le;Pr(zt?!1:oe),zt||((be=i.onOpenChange)===null||be===void 0||be.call(i,oe),(le=i.onVisibleChange)===null||le===void 0||le.call(i,oe))},e=v.useMemo(()=>{var oe,be;let le=bt;return typeof Xe=="object"&&(le=(be=(oe=Xe.pointAtCenter)!==null&&oe!==void 0?oe:Xe.arrowPointAtCenter)!==null&&be!==void 0?be:bt),Gt||(0,je.Z)({arrowPointAtCenter:le,autoAdjustOverflow:xt,arrowWidth:Xt?ct.sizePopupArrow:0,borderRadius:ct.borderRadius,offset:ct.marginXXS,visibleFirst:!0})},[bt,Xe,Gt,ct]),o=v.useMemo(()=>lt===0?lt:yt||lt||"",[yt,lt]),t=v.createElement(et.BR,null,typeof o=="function"?o():o),{getPopupContainer:a,placement:l="top",mouseEnterDelay:f=.1,mouseLeaveDelay:b=.1,overlayStyle:M,rootClassName:P}=i,N=Qt(i,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),T=Tt("tooltip",S),A=Tt(),ie=i["data-popover-inject"];let w=dr;!("open"in i)&&!("visible"in i)&&zt&&(w=!1);const E=Rt((0,ze.l$)(Me)&&!(0,ze.M2)(Me)?Me:v.createElement("span",null,Me),T),G=E.props,X=!G.className||typeof G.className=="string"?s()(G.className,{[k||`${T}-open`]:!0}):G.className,[se,p]=ee(T,!ie),K=Qe(T,ae),Y=Object.assign(Object.assign({},We),K.overlayStyle),Oe=K.arrowStyle,De=s()(re,{[`${T}-rtl`]:fr==="rtl"},K.className,P,p);return se(v.createElement(j,Object.assign({},N,{showArrow:Xt,placement:l,mouseEnterDelay:f,mouseLeaveDelay:b,prefixCls:T,overlayClassName:De,overlayStyle:Object.assign(Object.assign({},Oe),M),getTooltipContainer:a||Q||ur,ref:Jt,builtinPlacements:e,overlay:t,visible:w,onVisibleChange:vr,afterVisibleChange:ue!=null?ue:ye,overlayInnerStyle:Y,arrowContent:v.createElement("span",{className:`${T}-arrow-content`}),motion:{motionName:(0,_.mL)(A,"zoom-big-fast",i.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Ge}),w?(0,ze.Tm)(E,{className:X}):E))});Et._InternalPanelDoNotUseOrYouWillBeFired=ht;var Be=Et},48555:function(gt,pe,n){n.d(pe,{Z:function(){return Ee}});var h=n(87462),s=n(62435),ve=n(50344),r=n(80334),Ce=n(1413),H=n(42550),v=n(34203),u=n(91033),d=new Map;function C(R){R.forEach(function(ce){var B,ee=ce.target;(B=d.get(ee))===null||B===void 0||B.forEach(function(te){return te(ee)})})}var D=new u.default(C),he=null,x=null;function J(R,ce){d.has(R)||(d.set(R,new Set),D.observe(R)),d.get(R).add(ce)}function $e(R,ce){d.has(R)&&(d.get(R).delete(ce),d.get(R).size||(D.unobserve(R),d.delete(R)))}var U=n(15671),j=n(43144),Z=n(32531),_=n(73568),je=function(R){(0,Z.Z)(B,R);var ce=(0,_.Z)(B);function B(){return(0,U.Z)(this,B),ce.apply(this,arguments)}return(0,j.Z)(B,[{key:"render",value:function(){return this.props.children}}]),B}(s.Component),ze=s.createContext(null);function Ue(R){var ce=R.children,B=R.onBatchResize,ee=s.useRef(0),te=s.useRef([]),xe=s.useContext(ze),Pe=s.useCallback(function(st,Ke,Qe){ee.current+=1;var ht=ee.current;te.current.push({size:st,element:Ke,data:Qe}),Promise.resolve().then(function(){ht===ee.current&&(B==null||B(te.current),te.current=[])}),xe==null||xe(st,Ke,Qe)},[B,xe]);return s.createElement(ze.Provider,{value:Pe},ce)}function et(R,ce){var B=R.children,ee=R.disabled,te=s.useRef(null),xe=s.useRef(null),Pe=s.useContext(ze),st=typeof B=="function",Ke=st?B(te):B,Qe=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ht=!st&&s.isValidElement(Ke)&&(0,H.Yr)(Ke),Qt=ht?Ke.ref:null,cr=s.useMemo(function(){return(0,H.sQ)(Qt,te)},[Qt,te]),Zt=function(){return(0,v.Z)(te.current)||(0,v.Z)(xe.current)};s.useImperativeHandle(ce,function(){return Zt()});var Rt=s.useRef(R);Rt.current=R;var Et=s.useCallback(function(Be){var i=Rt.current,c=i.onResize,z=i.data,g=Be.getBoundingClientRect(),S=g.width,k=g.height,Q=Be.offsetWidth,re=Be.offsetHeight,ae=Math.floor(S),We=Math.floor(k);if(Qe.current.width!==ae||Qe.current.height!==We||Qe.current.offsetWidth!==Q||Qe.current.offsetHeight!==re){var Me={width:ae,height:We,offsetWidth:Q,offsetHeight:re};Qe.current=Me;var ue=Q===Math.round(S)?S:Q,ye=re===Math.round(k)?k:re,Ge=(0,Ce.Z)((0,Ce.Z)({},Me),{},{offsetWidth:ue,offsetHeight:ye});Pe==null||Pe(Ge,Be,z),c&&Promise.resolve().then(function(){c(Ge,Be)})}},[]);return s.useEffect(function(){var Be=Zt();return Be&&!ee&&J(Be,Et),function(){return $e(Be,Et)}},[te.current,ee]),s.createElement(je,{ref:xe},ht?s.cloneElement(Ke,{ref:cr}):Ke)}var tt=s.forwardRef(et),$=tt,y="rc-observer-key";function V(R,ce){var B=R.children,ee=typeof B=="function"?[B]:(0,ve.Z)(B);return ee.map(function(te,xe){var Pe=(te==null?void 0:te.key)||"".concat(y,"-").concat(xe);return s.createElement($,(0,h.Z)({},R,{key:Pe,ref:xe===0?ce:void 0}),te)})}var L=s.forwardRef(V);L.Collection=Ue;var Ee=L}}]); diff --git a/830.7bd1d874.chunk.css b/830.7bd1d874.chunk.css deleted file mode 100644 index e8cb4d85f..000000000 --- a/830.7bd1d874.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.banner{height:100vh;width:100%;position:relative}.banner img{width:100%;height:100%}.meetingTwentyFour{width:100%;background:#F2F5FF}.meetingTwentyFour .titles{display:flex;align-items:center;justify-content:center;flex-direction:column;font-family:Alibaba PuHuiTi;padding:38px 0 20px}.meetingTwentyFour .titles.left{align-items:flex-start;padding-top:20px}.meetingTwentyFour .titles.left .subName{font-weight:400;font-size:23px;color:#0e1015;letter-spacing:2px}.meetingTwentyFour .titles.left .name{font-weight:500;font-size:24px;color:#0e1015}.meetingTwentyFour .titles.left .name:after{width:45px;top:20px;height:45px}.meetingTwentyFour .titles.left .name:before{left:0px}.meetingTwentyFour .titles .name{position:relative;font-weight:500;font-size:32px;color:#0e1015;letter-spacing:3px;padding:15px 30px 15px 40px}.meetingTwentyFour .titles .name:before{position:absolute;content:"";width:15px;height:15px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAspJREFUOE89k8lrFFEQxr96r/eedqaTiRk1ieIaxT/ABVei4FFlEA+SiyKIiMvFg4eYkwclggiCggcvKoILePDmUcSDehFRUIxGs8wkmUxv092vpBPxg6pDwe+rgqoi/FP9Mcv6ftS6RL5PR35A02jQsHSLCRMEvEEnfeE4+pctQEBEXGBUpDqz3PUVmxxKz6sYBwVLX9Ng2C6T5VJmmAgtVl/LGt1rpuHzIc9rgogJIyPi1ODJ9atW915rz2Nv0MjLHLMwdYZXBpZVCW5VcsmXWc3G9/nJyet/ZoKH57ZtaNGOEx+WV/rl5Wqtf3huQfrzDSaRMTxHoVRilCoEt1fC69NQLue5bM58ao9PnM4+J29p+77pPU6V7yoX66JUiDACSDEsneHagLsMcLoJbg2wqjFstdBKvk3cj+JslNaveXfV7e45Kz29K5MKCilYMZBJ6CThOIDj57B6EljdEXQnyMLfv94nYbtOAwNPHtnm5kPScj1lhoBMwLwEIzGhQcLyO7CrIQw/guYGnLSmf8z+aR6jvrW3npq0dUgIr8R6CJYJUMC5BFITpAxII4fpRzAqEaQdcBxO/2zPNI5T78DomKVtGCbYPlMKFh0ADFIaiE0QDIAJwkxheBHIaqtO3PgUJgtHaXnflSO60TNGbPYzZ8QUFSwINgTZAOkoNspgSDOBMKOwk84/S5P8AnWtPNNvyNJNoXUdYs4shWDxcAgOBBwQdIDEoiFEpiCDb3E8c6kxPvuKgLpRqa3Yadn+TSAbZO7oS5cnABRjFyGKihICk3HUfJC0Fm6023emFrug50yp2yoNSYmLBNoCwGNW+pKBVASZEHgSQjyJ4+D23O8b4wDUElyo74JdYdpoSO0wEXYzsAYECeY5QHxUaf4ySul1MO1OASPq/2P8N0BdViqrPOEIj4RYmSOxZC6n4pybwZRoAWPx4ir+6S+4gC1wEAF32wAAAABJRU5ErkJggg==);left:-5px;top:10px}.meetingTwentyFour .titles .name:after{position:absolute;content:"";width:67px;height:67px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAABDCAYAAADHyrhzAAAAAXNSR0IArs4c6QAAD9hJREFUeF7tm2uMXdV1x/9r733Oua+ZufPyjMc2jgsuIalKm34gdVsFk1JBoEipatSkISFqQhKapogEqhAEQ2liFJpYwgEUK0DVlC9QSITIhz5x00aQEhEoQuAaHLDNYHveM/d5HntVa+9zx9eDefQD12jiY585M5qZe+/5zX/911p7r0tYw8d3p7g0mMVnDgT2ssBge6Ecnqk0ga19WWXZXgV6pFZf2L99dLQOIqa1ymLyidn+0fUDf6Ab/Oe2rd7HGVeigIPSAKFQoSQKqV7U2F+i5O7Xjkw9+tEtWxbWJIzzJx8rvPf95/7+4HjfbbXpbGt9jgOVMJWKjMoA0DeqUBnV3Dek0/VR9tLhnz9786EXph5dgzCYLvnCwS2V8eh7XCz/zuIih7UFIACjv2xR6WOUqwrlcY2+DRqDlTipHzr81NEDr3x2zcEYG3umPLax8LHBLX232oIZa8aK2m0LxYxCAJRLQKmfUB4mFMdSFEbaXEyWZxeee373moMxPv7UaH9Z314cHPxjKutyqlIwUnAGUKoRKI1iBSgNCYgmoqEWgqjRWDrw0hNrDsbmzd9fT2rw3kJw1nZVCKIsrAMqASwDiQHiCIFRiAZbKAw3EQ40oAu1eGl66sU1B2Nk8671RVW5L1K/ej6pKLKBwEgBBpBqII0ANjCFFGG1ibC/ASrU48b8sZfWHIzK+FdHK1H5W5He+keAKTO1AUpcBUE2BKEAwLivdRQjqDShonqjvjz932sOBsa+Uh4x5ooo2nALWI8yt4nRBMFAoQSiIkAaYAUgg44SprA+V194+c61BwOg0dHrztLl4j1Klc6zthUKDECBUIZCEUQGcPUmg3SaZtR6utmc/cxahAHgykJ1feHiQnH8b5jjrWBxThCgQYggVQegWSmkQHag2Zy/df61Yz9cozDEEXYMjExs+EhQLH/RZunZAMrMNhAmikwC6AZzesAivbs9P/fDpaV75tcwDFHCFaXqe8a36owvUaQ+SMBmZ6TEh5jpySzOfkTp/AszM/fWJGbWMoy8B92hBwcHK1qXSu2Q+4EIUdxYTlPTWFh4ugbsTTvN6i8BjBP68s79StXxuuOXDcabrlichtGF5zSM0zBOHi2nlXFaGaeV8ZZr36fD5HSYnA6Tdz5MHmM2ERAMAaYGqEEA0wAvHj2abRwbSx685ZZ0cnLSvuUreRf8wP/bM5iZDgOFKaAUtFBRBptsEm9SyoxbQoWgFCvbSuJ4hpkOoU2HESWzfeVy/TmgeTlR9i6475O+hLcNQyA8sm+mUh2vjBQi9duKzDZF9JsMbGRZMSEYy1CwIBCsImTEiNnyHCl+1hj9eNxM/ott61Cjr29xO9FKt/hugfM2YDA9cAiFgBcntOLLSpW+S2HVe4m4jxQVCDCkmJSWdQI5CcyyhMJCRT5YYrQ1UCebTRHbf8pU9oOoWHzhN4BFIjppB3kqAL0pjMnJSTX2iS+PDBb1BVGh+EmO7QfSlAdtKrt1TMrdPKAUYAJypw4Arf0im1ued2AA2fwOFGVGoaaBg8pm98ft9IFWtXD43aKSN4QxyayG9y1uNuBPFwrlP+VMT2SxjbLEkhWB5zfpYRC0AQJDMCEgjipX2f4nBdEHZC1aExAo4lCrLNJ2xibtf4fFHRv7i/+ziUhWbU/pcVIYOx54QH9o22Vnhmyuj9u4NGna0aRplZWNKQGRAZznB3kARQRjRB0MHRCCEAgigikAOgS0EVv1QIwAIUJkyJZCqkfAMyOGdv5i3/SPt79/nSy/nbLjdTBEEXpfe2sUBTdRjIuai1k1bliVtRlZDLBsTuUwiJ0vQEuY5DBcuIg6HBDZqBEo5K+Bh2EEBgHFgLgv0vF6bZ//3xdfufn55478y7WXbztlCjkRxuSkunH7X20OquHNScte1m5m1aTFlLaArCUwGKIOzgicsgsVTYTAsFOF942uqwCQkMmBmJJynwcaCBVQ0IRyoLjIWdJaWH6mVWt+aWhu/8+2b99+SjLNCTA+9t2lkeEh/cWgEHw+iZPRJGGVZoQkBgRIGgNW1CHKSCWPAoFmBPIXd8roVoioQ2D4cHFnUcGUNEwRCANCQQGhzWDSlItQzWJo/vnIwYNfuXLbWQdkCbvX8bIC4+K/2B/1r++7sFwtfpuBMzNmlVmCg5EASUJI2uRCxaYMSRhGsT8Ne/MUz+hAkVAROKE6DqNAcOqoKARlhUBZhEkCE8cIs4wDxszh557fvTxV+85tX710/hTBYDr/8y9vHhos3xkW9AWWUJAd/AwKaQYkqQAhxLFXifhGoARADkOLIjwU46B4EGKeog53FRByFgUEwcgZZjA2gUnaMO0YJrUZmu39R1859JnHZ4Of7p3sbbg4ZUz84c9KW4rDO4ZGy9+AxnpWICZCBoKoowMjiQlZynlR5YEYLQB8uHgYcBnFhY1kkvw0kSjEwzAlhi5kMFEGbTwQ3WpBtdvQsa3NTy/8w9xy/ab7bvjIdC/V4WCce8G+DZVC4e5CNbiQDAowCpbIVdYCI5NQSQmp2JpIhuCBOAP1qnAwcjA+VEQRYqYCRFQgyhAQkmEsdJhCRxmUANEpdNKGaraBZmzTevOlpYX5T7y095mn9u6d7JmZEvCYed+56z5YGRj4vinzZl2QokFBlCFAMvYwMjFNIeDKSn9xtYYUVPIrEio5DIHjKtE8ZDrh4uqOgs1hyDhAChVmUEEGRTFUS2C0YGuN+aVjM3+b1Gt3Prjnc4u9UgcNDT3RP1QNv1DuH7o+qNCQLhJIlCH1s4OhYK2AkDu3YPfPq8KX2wRYqTaU9Ks+PDrhsqIQX5U6RYgSIuv8QlShwhQqSGU0AJR6GFxvthvTi3uby8mfPfr3n3q1ZzDWrfvXsUq57zvFcPgSXTJFSXsUKLARGAqWJVwY0mR6ZchXeTnuPpHGjIBMjEZBGjavEMks3kzFQ7wiUuhQQkSA+FNgkMkgG+OEGGi3YZeb3Jpbfnlpbv7yvQ/9+OfAgz1p+2ls8yNbKqb/IUOjv66DgtYFBRXKKINyfTiLBNwSRAaG9ZLIaXg20psqPwmTiZmIQnzYaFGIyybsQQgAUYTAECgCI/DKgE79IFrahq010Z5fPjp/ZPraqaWpHxx+fFdPqlKaOOOB342CgfsNDW7S1EcqiDwM5xsMluEw5UEQCQzrzNOJYwWGB8JWgIhCtARNDsN6k3QhIsoQGLmB5n5BRtSRgGX2ysawzSZa87W52rHFnYv15T0v/nRyqRehQhPvue9PQj2wS9PQuEY/lKpAuZJS/siJm5RjUYZAyGF0asMODJdeBIRVUFaBMw3KtGvOfChkUJJKcwgCw6tDVJE5v4DMj1AM5gQct9BerC/OHzq2p96s7zz47G09KcBo/Rl3fDY0I7cqGhoz1A9FFShVlCkfsI69MsQvBITyBtqRhZ/D9wbqjVSBnDq0h+M8hHNl5DfvQsMrw2URgSGeoT0MixictBAvN5bnDs/e32o2b3z1hZ2zPVHG+jO+8bnAjP21wvA6rfqhqeLHA+X+dJKHiQARZXRSSN6/C4DO2fEO60F4UNK9EEiABF11hQuPLhiSSUQdDkYCmwqMem3xyML9SdL+Ws9gDJ9x0xUlPfZNRcPjigagqZwPgMmqjV1RhqzjejM9sdZwqnDkfJiIX/iBIJmu89+TcHIKETXkBZdXRQrlVCG+5A3UcgybtRHXm0vL00e/t7gUf33p8K65nihjeMMNHy6Ew/dpjG5U1E9K5iRdG+aGn8CUwi1od8yzq5n0XPLU6hSiPQyHQdYERRnHp6WUsT40upXRUUWeTRyMtI242Zqrzc7f3pqp3TU3t7s3Btq/8bqtJV19OFDrzlFU0UQyQevl7Q+fQfwpUPIs0vkJB0T8wa105oroArLyODlfAWJyIEaUkYeIGLVKwBwjS2IkrcaxxuLydUea8/+IqT2NnihjdPS6cVUu7wnU8IUKlYKfk+yGIZbZpYyOga6G4WYsT4ThVotzGB6tXyUmLQo5nklWh0mWJJw066+0agsfP/bK0092D6G9k1CoWr2maiqVa6Kg+peEcpVkYFQmaLuXt7lTcOXVpy/I3XaAKMJD0CAZQ+587sLkOAz/83l/IzsIOvMKMb7gIknjJJ6RwmZJ3KzN/yRuLH9qbuquQ+8kgO7HJmBHODQx8aEoWnePQnmjX6HswPBh4ipPV4FKJdpZgJKrmKRb5nVAXgcjN9A8QHK8AtAbsRRbAsTBkIJLsgknsDZbaC0v7I4XZ769sPB3Cz2EAQxOfOmMwBTvDfTw7/kCWm4wNz9XWQiM/E0secPm/tIkoSHgchi5KvxYcpeBdoWIN1T5zyAlNYZ4hoShTP7HsDaxNktfjpvxldOHZp8A9vi3BPTg8KE8enWlGhU/XQyrN4KDUWnKu2H4Xl2UIUDktYlC5HblLQvGhZXyC4E+XFZgHncKv8fWOXx6lkJOMpWvMaSwEwPletaafThrtK+fnr7rSA8YrDxFJ2VQ/+jVZxaK5Xu1qZ4Hi7BjfL7i9O17Rx0ehhwBxGO8Z3h1eO/oKKvjGat3JDrdr1wz0Er/k1lrswNxc/rqualj/wE8GJ8KGMDEVaURVf1oEPR9HZxtkt1DB0SatdwzPITubtqn0+5QcT7ijLSTkbpN9ERleD/yj0nKMsgupO34nkay9M3akd09XfLr5LrOK6TSyFXj5WJ0Q2BGPm5tJqMWDoWrMdyLfqMxi05aXRUmedHl84g/fKjkVeyK/0iooJ1ljZ9kMV89M1XaD/R+pmO1ftXIhmvPMmH/7UTphzmzJbfi6WB0leErN9e9teF2U7sKLx8qsivvj66n4o7a8hAkm4F4X6NZ+/LSa+ljwO52L8NjRQ2vf9JJM7yx8QFj1E4idR6zLb35uw+6gXSas04F+kahcrzhY2n4NQ60mu2dc63mQ+hR6X0y2CfdeAYujoYmzvmtIAy/BqJtYNvflWtP8jjdQDoqyJXhskgnTXc04mDIh8Sy/QUp/lYzaT20dHiXrFusfrCeieQNYMjz7wgHN2482+jwGkV0ETPWUacLe8OXt1ol3WC6w8Qtmy0x0mfTVuuOrNn+t8XFu6W4OmUgVhvoSW5xhx6c+JUNGsnlKjSfBJnNsFmFOr35SaGc7H46rTxJw98C4ZjN8KMka9+zMFXbB/SmEXsrib2JMlZ+VfqXASrZXzPG7CBlLiKmURCKzBzRcYdc9Vx53nClprwxjppgnmfGE4B9mBvpf87MvHqsVyvfbwXibSij+yGuCipjajDQfVuN5vOhaBuBziFyq0FGNtfylOH6MZICwkHglmUcBOPJhNPHlE2emnvVzAK7Wqc6LFYDejvKWPU7k2ZwcKpMpWqfInsWlD2byG5iCkfBKMuADgMtspi3SGUD6MUkVs9ykC0uHU7rpyptvh1l/B8MHREgUWTCsgAAAABJRU5ErkJggg==);left:100%;top:0px;background-size:100%}.meetingTwentyFour .titles .subName{font-weight:400;font-size:34px;color:#0e1015;letter-spacing:8px;opacity:.1}.meetingTwentyFour .contents{width:1200px;margin:0 auto;padding-bottom:32px}.meetingTwentyFour .contents .intro-content{font-family:PingFang SC;font-weight:400;font-size:15px;color:#0d1346;line-height:34px;text-align:left;white-space:break-spaces;margin-bottom:28px;text-indent:2em}.meetingTwentyFour .contents .countdown{background-image:url(./static/countdown.f5d622c9.png);height:200px;background-size:100% 100%;display:flex;padding-top:28px;box-sizing:border-box;justify-content:flex-start;flex-direction:column;align-items:center}.meetingTwentyFour .contents .countdown .countdownTitle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALMAAAAeCAYAAABnli/DAAAAAXNSR0IArs4c6QAABfRJREFUeF7tm19sU1Ucx3+/c09ve0v3p93arqUwBlTZJgwJwRdNNBojJriZMKMvJBoTiSY+KGCYxBaFqBFBYwwBNRF8IMz4Bx5gLwR9kCy6OB8EEniBEhUlhqiQMXrvPfacczu6spWHps2S/m6yndt7z/mde77n019+53duEe5wZNcea77qy1sfHu3/c7aqp05dsqIBHkqvSly5kz26TwrUSgGsZPjV/pEhH+M7ARFsO//WrqOPvVFe/+JPf6y3hfOckJaYMbxk1b6DiFm3Vg9MdkmB2RSYEeYtA8cGXAGHEZgpQHhtZVUhXBDP7D7y+OFLY5fvc1x7swDwCSGEy5iqKQAY87E9S1cmTpLspEA9FZgG89DgNytdlw8bzEi7rq3gVAh7peMKiESC0LemXSxOt/xghcy/HCEMed9lsh5TDRxUJ/8yE3betTx5tp4Dor4aVwEF89bB4ajJ2X7OrYG8faMMYaFoNv0G9C6PQXx+CGxHAGMMDJNdaU+EfmYmn0Bw0UGmlHTkPwPABfQBGr/65gV3pdNNFE83Lmd1GTnu2HDoScvf9PXE5H8exLf32x4Nweo1C+Cm7eqgAyXfqErGDAiGA780hwMXZaAskGkvjQpmZcw1wAIB++/pS35Vl1FRJw2pAL77/IEMAmbLQ4rSz6lUGyxNdyhA5WJQlRJSD2x/0MxFOprHNcxGCcxyUajrOwCjK1Yk32lIlWnQdVEA97z4WabgbrOVeps/vx0WLUlqkKc8swbbRQC/ZebC0ZZx7ZGVu9ahhvTOBHNdJpI6AcCPX96bKUBXEeZEIgaLulIKVOllp4D24PYFzFxrLDwuwVbhh1oQMh1qSJg12KO95JmJuRoqgJ9s+igDKDTMxdii2KH3OR6Pw8LOThAoE3Ue0IpZfc79gVxLNDyuMhmqLU6DWV6xkcKMGs4jmZbUHRh6P1OguKJnjkY7ILWwS+eRPW+sPDTTXtgXCORCkbZx5ZE976xTdfIzK8bN5JkJuZoqgIe2v50RArKl+eTyxWBbexISycVTWYypcMMLORTM4ei4hleHGkWYddwsQw4kmGs6lWQcv9y5PVMAuaJnjkRSEE+koQC98rIqi2HI/UDtqbnfys1rLYVZ19OLQC9VJ3C0dyVlMwi52imAR97bliks0bLT9/qm++bW1gUQi92tvW4xPadCDg2zYVq5YEtceWYVN6u9E53p0LuDDFDgaDfBXLuZJMuAx/dsyRTC2qzyuuWxhidQS2sntLV36zWiioV1hkKl4WQmzhfMBZo7ZocZGCASzMRbbRXAk9kHuYjfOwYC+oQi+vYDkUFH8gHg/maV8tCLQG/zBPn1YGvnCRdRZeVuvadxyzODwf6+tjy5cTVivrbDIeuNrMDUi0YnPn2p0xR4FkBYs4UcnAchmnzEe6EIXV8odZL5rGsKYBVZaI+tF38SduY2Bdgrie7EhUYWmcZeHwWmvTUnAPDHgxsfNTmO3MzrjHH5YfoMMJv6hsKxtfc74OaVLy/Z8dMQI+eW+cHC7tgJlB6bDlKgDgrM+D7z8PCgsTQ/b8gK8DdvTNrqMSTEk3ln9z/nLrz2UPY7W2QFu7zut/V5J/8sIJvUMTRw4Gyk81xqLz6FM38b6jAo6qIxFaj4S5OxfeuCVqTpWwHY7Eywh/s2fHG9XKbzx877g/HAVgdEmxNZsLmrC+U7pHSQAnVXoCLMdX8a6pAUqEIBgrkK8ajp3FKAYJ5b80FPU4UCBHMV4lHTuaUAwTy35oOepgoFCOYqxKOmc0sBgnluzQc9TRUKKJg3DxzfVtiM3l60g8wFbjhgeH+cy3NbX+MOcMPW90rOi3Xk9fJ6xXs+w/Xa6fa6ng3cZN8ve+Lzp6sYBzUlBfQP9jb1j+zwc+v1WzAL4LwInA0SRgWwLCV8CnJ9XcFYhFICWvq5tN3Ul6HMnmHDDdsZW9Z/YB3NBylQjQIK5uHBYeNMb69RNNQDAGcK12UJcHpm+8VKJXd7e3TtXjgDp6FHldqKLGc/Jq7+Lla/sJ/eqKtmJqkt/A848/tWJjR0mgAAAABJRU5ErkJggg==);background-size:100% 100%;width:179px;height:30px;line-height:20px;font-weight:700;font-size:16px;color:#fff;letter-spacing:4px;text-align:right}.meetingTwentyFour .contents .countdown .countdownTime{display:flex;align-items:center;justify-content:center;width:100%;margin-top:38px}.meetingTwentyFour .contents .countdown .countdownTime span{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOoAAACKCAYAAACkYNYUAAAABHNCSVQICAgIfAhkiAAADsNJREFUeF7tnVtuHDcWhnnIqr7oLsey4iAYBEHgB+dpYGCe5sEbmEdnEbMJ25uYRcSLiBcQY55szCRB4CDB+CpLstTu7rqQ8x+22rFsKzeznCrUX4B0irdT5MfzF5uq7paYXzhCCILiIX5G+HEnP5r3+iET5KBA9p4+lfHKiplNp9HuT5/JeDw2hwdzK2Mj89lcKlvaYi4iI5FyXkhdWltKIaOhyOFkaocylEpK8WLtfDqzg8FAinpmNV1XIs5aW9RzO8gHUsJa5Jfe2zzLpSqKmPZwn4l1pS+tk9wG8TG/ripnXWYxNps7sSXSmSAtwVrnbPDBuhBcELEZ6vmqdjisR55aE2pnxTkxqP+KhT/nMpTXalEUjIOLWE8tGqHX1pkgWqz5GEbmBO00H+xivpajAdrCOQ4DP+gmHBv0G6eaxoUloNPI0XwX+2EyFMDq6GAD0vGyaIf2dfBVMKaq6rr2an1dhwCLfIwNCZQjXWLAmMaq9qHyBpXqgAxY7ytMcI2CGmwq7736QX4V0yivgxGUVzW6Bz91HevjgugtfgeU4yJob0T0HJcI3uPSmkbrWqygvEZ70c7VGKMvcXkrGerWXox4ZMZ87R7AoRmy1JbBY8C+KEs/zHNtr+GC/NLnyEf/fD4c+mJahsHQecGlB26E9nPvQgbv3g/Hmbdz70crYz8rirCa52E2n4Wt1VVcz4R8OAhhNkP7AcIkwA5DmE7DxtamD1MTNM6DeQHMK2aE8hORhPMrK2EymZjV1dVlnhbpeX1wcFBvbW3NcK6KeLX8lMbeJjqjQYxaq/gZL/T3ywc6IeiEefHihbw4qS8ylak2noqoFwjUzkF6jv5Uz0urIi0KCFVnqTzG3GC28VOXtVWRCsTqq6mdVwj6QYXpUer4lQtmy0NYyNeRIa9AGnNhPXypHhBFNssy+Kqi4BC1Wjm2wYyrGhHKFkYgvOAMyqP8tZ4Ri0lWscQ2GD2CP56reFBftL5qAg4CyqAVpKOwUA9dUGFBH1p/Ua7W2Qx5MaH+kEa3Fo2juGJay7VnL23sVCyPHTwRsLbBj94Ookhj2UlaRRmFjfvUos3Cr4oTwRUFVRtEuWpP0zEPcWpUcZqvylmIVsWMAF2IUDQd4z2ea70oZI9bE/whZrSdyhCKQhpC1DJ154NUuBGq2D14axriCpA0cnCuecZCnNriRKSAE8uxVkDIJ6KG0DVfBY55QFuk0Q4n3jgVPWYUYYDZhJhxjiwMX8UcxSqopx2wHkLVNNrY4NCuCMNspC0ROA7W+2ywEGOud+A883lAGuJCdvCzhUhxGo8N3ABG4zE0OzVqIYSFxbGCNgFC1XMI6kwhnghXJTNBLOFSp483RIjr6gq6+VsE+msCZjkJkMDvI3B8fBzW1tYOIdb5qy1PCfXx48drOzs7upLyIAES+HMJHEOsuqOMx0uhYiXVfaiupDxIgATaQeA5xKovhxdC1X0xzHY7+sZekAAJvEJgH2ItlkLdQoHuTXmQAAm0i4D+NfgAfxyLf+HdaVff2BsSIIFXCDxRoeojmI2zsJw8/zmTGsvj8zHyOYMA4yNJfDxXoereVPeoPEiABFpI4PDwsJCjo6MLeG7zq29qaGH/2SUS6AsBvF8khAsYLYXalynnOLtIIAp1t4s9Z59JoE8EKNQ+zTbH2lkCFGpnp44d7xMBCrVPs82xdpaA4N36u3wOyOegZ0Uwn4MmeQ76zs/ZuaJ29h7LjveJAIXap9nmWDtLgELt7NSx430i8IZQuSdpx56Ee8a3E+hrfHJF7dNtmWPtLAEKtbNTx473iQCF2qfZ5lg7S4DPURfft/rOz7m4p+Se8m0EUu2puaJ29h7LjveJAIXap9nmWDtLgELt7NSx430i8MYe9fXX1Eyf3sOSB3m8+jeN9xUPXFH7dFvmWDtLgELt7NSx430iQKH2abY51s4S4HNUPkflc+QOPEfnitrZeyw73icCFGqfZptj7SwBCrWzU8eO94kAn6O+tkd9X8/FlkHG6/G57G95LssVtU+3ZY61swQo1M5OHTveJwIUap9mm2PtLAHuUblHPfUclXvmdu6ZuaJ29h7LjveJAIXap9nmWDtLgELt7NSx430iwD0q96jco77yXt+27tG5ovbptsyxdpYAhdrZqWPH+0SAQu3TbHOsnSXAPSr3qNyjco/a2RsYO04CrSLw8qVvqm/0Pmt09M9v5Od/JPjj/5GBe9RW3TfZGRJ4OwHuUblH5R6Ve1TeH0mABFIQOPOlL/eU3FNyT/nH95Sp9XNKqG19+9TyjsT+tfMjWJyfBYEm41OFeiHF0kwfJEACzRGgUJtjS88kkIyAHB0dXVhbWzPHx8eGlhwYB+3Uga6oO8lkT0ckQAKNEKBQG8FKpySQlkAU6vLlztI104uXP+SxIMB4+PPjQYV6Pq326Y0ESCA1AQo1NVH6I4EGCMjz58/Pr6+vG/z119CSA+OgnTrQFfWDBm4AdEkCJJCQAIWaECZdkUBTBCjUpsjSLwkkJKBCPZfQH12RAAk0QIBCbQAqXZJAagJyeHh4bmNjw+Cvv4aWHBgH7dRBXFE5Oe2cHM4L52W5eKpQt1Mv0/RHAiSQlgCFmpYnvZFAIwTk4OBge3Nz02CvamjJgXHQTh3oirrVyC2ATkmABJIRkP39/S0cLx1ihTVMk8cyIBgP7dBDXFGXk0G7mBRyIIe2xYEKdTPZ+kxHJEACjRCgUBvBSqckkJaAPHv2bHN7e9tgr2poyYFx0E4d6Iq6kVb79EYCJJCagOzt7W2cO3fOYGU1apfHMv26ZfmCAPks4oXxcZpDU/qIK+pZQcf8twcjuZDL225STcaFCnU99TJNfyRAAmkJUKhpedIbCTRCQJ48ebJ+/vx58/TpU0NLDoyDdupAV9SfvxK+kXsBnZIACbwrAXn8+PHazs7P/ycKK6xhmjyWgcV4aIce4orKyWjHZFAcCwKMxzfjUYW6+q7LMtuTAAk0S4BCbZYvvZNAEgLy8OHD1d3dXfPo0SNDSw6Mg3bqQFfUlSSSpxMSIIHGCFCojaGlYxJIR+AXhfrgwQNz8eLFM6/GcvJhfLwffahQx+l0T08kQAJNEKBQm6BKnySQmID8+OOP448//tj89NNPhpYcGAft1IGuqKPE4qc7EiCBxAQo1MRA6Y4EmiDwVqHev3/ffPLJJ2dej+Xkw/h4v/pQoQ6buAPQJwmQQDoCFGo6lvREAo0RkG+//Xb42Wefme+++87QkgPjoJ060BV10NhtgI5JgASSEKBQk2CkExJolgCF2ixfeieBJATk7t27g8uXL5t79+4ZWnJgHLRTB7qi5kkkTyckQAKNEZCvv/46v3Llirlz546hJQfGQTt1EFdUTk47J4fzwnlZLp4q1Kyx9ZqOSYAEkhCgUJNgpBMSaJaAfPXVV9nVq1fN7du3DS05MA7aqQNdUV2z9wJ6JwESeFcC8uWXX7pr16699HPr1i3DNHksA4Lx0A49xBWVk9GOyaA4FgQYj2/GowrVvuuyzPYkQALNEqBQm+VL7ySQhIDcuHHDXr9+3dy8edPQkgPjoJ060BVVkkieTkiABBojQKE2hpaOSSAdgVNCFRGDFfald6bJg/HQDj3wZW+6mx49kUBjBCjUxtDSMQmkI0ChpmNJTyTQGAEKtTG0dEwC6QhQqOlY0hMJNEaAQm0MLR2TQDoCFGo6lvREAo0RoFAbQ0vHJJCOAIWajiU9kUBjBCjUxtDSMQmkI0ChpmNJTyTQGAEKtTG0dEwC6QgkEap+VE5u3pQb+Fzr3VtfiH7n0r9u35NL6xfF3DHmo79vy94PDyXb+tBO9vYlW9u2s+dH8pfdi3L/wX/th+cvyNG8siOXy6Q4tOfcppRuLpKP7LSs7Uo2sFJNrIE1E2+zrbGYytuhy2wxndl8lNmy9jZH2uGTBJldpFHuSu/twBkXamuzgbN1WbphPrDeGzfIrS3KCja3vgwuhzXi4cO5gHbO4jQYeHHIN85J5kyonVUrqC/iMHKbnaS1HT7VgF4IuuHQXmJaj+DF5chCOoNxAO+yDH68h/ssph1cGSNoH6+rl13koz7yUQlORd1KdpKf4XMUaKeXxMUxRHxdh9bPtD0c4HrwA3+195U3oVJbG1PVdV3h7eZV5Wvka3pRXgWkA9Kohw9AViXqoc/IR9pIpQ0xZm1Xow9VAWuCwGeoEAdojHpq0Uat1yxA80h7kRrVcS5wgiZIn/hDvle/dYkrYCx1gbbRogdq4bc21nrtkFrMD6z387LExGd1XRSY6Lyu1EpeY949QNWT2czn46FHnMCOYKd+kI39rJr4YbYKe4QZWPOhKv04z/wx/K0MMr93eBhWPjjnZ/vPwmB1JUyfPgnrF3f95FEZRhvzcFTMwrjYDsXaU78+3Q0Pj4/D9qefBv3S9H9cuhTuPnkS9KvIvrh5L9yAXvG5b313/8/v8P+dGk4iVFxTP4Au5rqBUC9Hn5/v7Mj/vvlGzBVj9r9/IB/+9W+S/fs/dvLpqmTfV3bto5FMs6G4aWnn2UDsiVClqKyKdACxgrc1Ok86dypSiM84CNVahCdEhbTGqNpcYxRlKtSAc0jPYrZVulGUbqBRjKnz+NZFCweaB2uQVotWavQk1s8z+IPIVKjQCfLxW7+xMQoFdWERaFCElqGOihT5AqHZAFFClSpOFRC6BA9qUS8KLl5yUVfvKypapBGoWWaQj3PkQXx6LU2j3lKoKFPxYSwogwi1HGWaBng1qmptG8W7ELW4hUghFgimhui88ZDEMg1RIa3lWhbrxTTqQbQLkeLWCIuTeqFHowqFhcRQJ4j6VxFC3CpeiBmaVFFGUWsa11bBqnhV7bAQG9Lq0Asq4S5hIK4oSs2HxRoQ0wvxQpSwyIRbteiFKhLnAoNCretrpHED1EawtfYUM2r9XG3m4r0Ds4582MphlKUPWeZDDmdl5n0xV1EHX8wg5JUwqPbCFGJdh+AnVRmOynkYFZsQ6n0I9ZJ/NJ2GtROh4n/DmG8g1H9evRr0u58+vwah3oRCr19HlxFNf/D4P+Ki+ESVDltyAAAAAElFTkSuQmCC);background-size:100% 100%;width:117px;height:69px;line-height:69px;font-weight:400;font-size:52px;color:#ffd532;letter-spacing:5px;text-align:center;font-family:Alibaba PuHuiTi}.meetingTwentyFour .contents .countdown .countdownTime font{margin:0 28px;font-size:18px;color:#fff}.schedule-content{display:flex;align-items:flex-start}.schedule-content .schedule-date{width:80px;height:80px;border-radius:50%;background:linear-gradient(125deg,#7012B7 0%,#3368C4 100%);color:#fff;font-size:25px;line-height:28px;padding:15px 10px;text-align:center;font-family:YouSheBiaoTiHei}.schedule-content .agenda-detail{border-top:1px solid rgba(49,91,205,.41);position:relative;width:100%;margin:40px 0}.schedule-content .agenda-detail .top-dot{position:absolute;width:12px;height:12px;background:#0116D4;border-radius:50%;right:0;top:0;transform:translate(50%,-50%)}.schedule-content .agenda-detail .dashed-line{width:85px;border-bottom:1px dashed #0d41c5;position:absolute;top:22px;left:-8px;transform:rotate(34deg)}.schedule-content .agenda-detail .agenda-list{margin-left:71px;padding-left:33px;margin-top:46px;position:relative}.schedule-content .agenda-detail .agenda-list:before{content:"";left:-1px;height:calc(100% - 26px);border-left:1px dashed #0d41c5;top:0px;position:absolute}.schedule-content .agenda-detail .agenda-list .agenda-item{position:relative;height:43px;border-bottom:1px solid #aaafbe3a;margin-bottom:24px;line-height:18px;font-size:15px}.schedule-content .agenda-detail .agenda-list .agenda-item span{white-space:pre}.schedule-content .agenda-detail .agenda-list .agenda-item:before{left:-43px;position:absolute;content:"";width:18.4px;height:18.4px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAAXNSR0IArs4c6QAAAlRJREFUOE+VlM9LFGEYx7/Pu7+saGGXcrZCTToEgbRirKAlygaVhLcCb1kdlMBDf0HnLh2iOnmKTkFEIGLtYlSSQoS7qazCekmPmblt6zqz88TMzu/9YQ0M7/DO837mfb7f77yEA67JyJt2gUC6QtzzeHt4t1k5NXt5PzrbpkLNATgM8Fa5onY9+3X9Z6M1DWGTkXftgpRvAMIggAEwYbMSCsSfbF3+UQ9YF3bvxHSHT/ZlmTjMQoeAifQRRN/3ieNTm1e3vcAa2Hhs5rRPUEYlhKsQgAVB351xQyDPIU5MrbiBLtidznSHn5UsO0ENgCwoX+JK4qUDaMHGzsy2kaBlaCCrtepuQARVGz3zLER+TxEXXi8N7Wgt67Bb56ZjjMAKC0RNbayWrPYI3o9otRDY+KOUu2cWh3dprPvD8TLv50Ac1bQxXDN2ZGtm6adraO9YfwbWCirF6WYitQGgs9Y1W3D9I04DDFNccwJpGh2cO7ZX4XUmjlj2e7UxY1GjmekyrSs76nlds5FkSlKFWGXyaObImBUNUVXa1pbWgi2lnrfPrxQtN5MjKcnHfi0WrY48WYF15szOH3Iyir2LL6r/rCtnydEFSVXKGSZImhFaFFR9dGtW1ZcyLBcGTFANTJsYvDEXk0P+JSaW7NY8BghkRNENqgvTJnvvLkgM2WjZENmuzrSEcWn+4cXCgf+mWdA3Pt+6B/5KwCnHomxJyP2rT4d+//OpYRZ2TXyMBJmWAZwk0JfAIRr4/Kiv9N/nmbng7O1PR48E8Soc67/2/gEpzQ7Tv0poH79nYoU5AAAAAElFTkSuQmCC) no-repeat;background-size:100% 100%}.schedule-content .agenda-detail .agenda-list2{margin-left:71px;margin-top:46px;border-left:1px dashed #0d41c5;display:flex;flex-wrap:wrap}.schedule-content .agenda-detail .agenda-list2 .agenda-item2{position:relative;width:330px;padding:26px 14px;background:url(./static/item-bg.e1131428.png) no-repeat;background-size:100% 100%;margin-left:18px;margin-top:26px}.schedule-content .agenda-detail .agenda-list2 .agenda-item2 p{margin-bottom:12px;color:#4c5876;font-size:14px;line-height:24px}.schedule-content .agenda-detail .agenda-list2 .agenda-item2 p a{margin-right:35px}.schedule-content .agenda-detail .agenda-list2 .agenda-item2 .item-title{width:300px;margin-bottom:19px;color:#1f2329;font-size:16px;display:flex;align-items:center}.schedule-content .agenda-detail .agenda-list2 .agenda-item2 .item-title img{width:20px;height:20px;margin-right:8px}.schedule-content .agenda-detail .agenda-list2 .agenda-item2:nth-child(3n + 1):before{left:-27px;position:absolute;top:50%;transform:translateY(-50%);content:"";width:18.4px;height:18.4px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAA21BMVEUAAAAFP8c1gqc3gaU1f6cma7AFP8cEP8gTU70kabEEPscEPMYJRcQ2gKYPTMADPcUJRcQXVrsSUr4eYLYlarIbXLgqca4xeqkye6kfY7UjZ7MnbLA2gKYudaw2gKYudasGQcYDPcglabEIRMQaW7gcXrcjZ7Iobq8NSsEqcK4KRsMGQcUVVLwye6gmbLA1fqYeYbUscq0tdKwLSMITUr0WVrsudasxeakZWbkzfacSUb4dYLYOTMAgY7Uvd6oRT74hZbMPTb8YWLohZLQWV7o2gaUweKoQTr8EPseqVcrDAAAAInRSTlMA/hbYHyfzPDAw90gx4O5U7u7u5+fs7Ojf7u7u6N/B7uNUJB/NHAAAAjFJREFUSMed02tX2kAQBmDAgklLqdiivdpWuYhELpFAjAgRL/j/f5Ezu6Oz2V3Zw85XznNeMjtv6f2pnFRLPlPZe/xd9XOPI5BebnR9XPVzl5cgvdz86Tj0csvl7G+4m7sWectZHB+FPnmzyaRP0u2IzYHF8aTf7/0i6cxjN0HXG7J05z0pbnj6M9zBxey6XZAOh+ucvzrJwOX3P8KtbgR5ECcdxvWky2/HJO0OmTXvdjy+aYXbHOXR5wEDdy9cp9MKrO7DnrlOYDLvBly73Qxs7rPuhpiHDB2wdrom6XZdxaXpOklY2hyyguuIvIckiaLDQHPy+ZbWdaJL18JNM5aG67/rptMs2zQC082cbrW5W6AkR21AVnBjxUXgVujOzxt1dubz5ZAHDFxKLstWd+iurg7q7IzrhDzNrchdXJyhPOE2qM+X0+cV3ILc2eAfJH63toHXgm4qHDLpavsllI5niGidFEdOSFsb6DqTB3CZ6aT8E8fs8hyvjPM0NyBHEq/MbANdWbbR81geFdtA6ySnrkU6nuo33al5mtOktQ1inezK6AxZ/J+vbSCHjPJMKa7TaAO78kdyuvwKbegU20DXSe6TJliKvFRxC85jZ5NGG5A5HUq86uTtqp2OZQvaEHEbnI5lU18nPh861wRN9apl3jM6tzzEvIXyDOxcEttgOvfUG7xOcGV2binzBsJ9cQNFijxgmnPLA2AeDqV0/3dBJD3ypKyh85n9GjivqWz78QV44xcxvuqWHgAAAABJRU5ErkJggg==) no-repeat;background-size:100% 100%}.schedule-content .agenda-detail .agenda-list2 .agenda-item2 .meeting-card{background:unset;max-height:300px;overflow:hidden}.guestContent div[class~=slick-track]{display:flex}.guestContent div[class~=slick-track] div[class~=slick-slide]{width:1200px!important}.guestContent ul[class~=slick-dots]>li{width:33px;height:6px;background:rgba(0,0,0,.11);border-radius:4px}.guestContent ul[class~=slick-dots]>li>button:before{content:"";width:100%;padding:0;height:100%}.guestContent ul[class~=slick-dots]>li.slick-active{width:70px;background:linear-gradient(90deg,#12B759 0%,#533BBD 48%,#3368C4 100%)}.guestContent .guestlist{display:flex!important;width:1200px!important;flex-wrap:wrap;justify-content:center}.guestContent .guestlist .guestInfo{width:200px;margin:22px 32px 22px 0;text-align:center}.guestContent .guestlist .guestInfo .guestName{font-weight:700;font-size:17px;color:#191919;margin:20px 0 10px}.guestContent .guestlist .guestInfo .guestDesc{font-weight:400;font-size:15px;color:#191919;line-height:24px;word-break:break-all}.guestContent .guestlist li{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADcCAYAAAA1H+4TAAAAAXNSR0IArs4c6QAAFZ5JREFUeF7tnX2QJGV9x7+/mb077oCD29lejEKEgJHb6d7jjBFyRC3lIkFSAnISqgSFgIkgEWIiBFQqRt7UkhdJYqyAnEpSHhwaUuFEhFQCEQwhgdvpAawDxIDRm95ZLhzc2+7Ok9qeubvpg93p7nmefmZ6v/MXVXQ/L5/f872nn9n9bAv66nNHEY57PKRxAoBjoNThgBwCwTIBFvbVVDjYnieggHHp+VHODNCpvgFKfQyCPxTBoX0xZg6y7wkopR7u7YAMPf1GyNS1EJzJHaLv11vfTUAprO3dgDiV8wC5QQQHtpNVwGY05IdQ6hFIo4qGPIeJrePAqu19VwEOuPcIDPvXC/AnMwNTCn/egwGZOWeM3CiCiyLBaMj9ULgW9ZF/BaTRe2Q5olwQcKr/LKJODgMyrU7vsYD87xI49TtF5P27YSvITzGlLsCE+4NcFICT6G0Cjr9JBEeFAZmc9nooIJsWYXjnBgHeuyccSn0Hhcb52Lzi1d6mytHlg8BjC+Dst00EA0qhgWDRkt4JyFD1dimoD+8Nh1yNoPzZfIDnLPqCQGnsaCkWngp3D+B51NwjeiMgpcrZUpRvte0c1yDwPtMXUDnI/BAYqn5ACuru1gH9Bwjc37UfkAM2DmNx8WkRLGsOTK1D4J2ZH+qcSd8QGKp8WgrypeY6lJsQlC+xHxCn8g0RObe1rf0MjQEP40dv7RuoHGh+CDj+34ng/GZAGn+MYPSv7AbkoKePwMLJTSJSbKX2JATle/NDnDPpKwJO9d9E1LvCtTilTsSEd5/dgDjVm0TUJ5u7hzyAWnl1XwHlYPNFwPF/KYJDwvW4q3A4toz8zGJANi2Cs/MXe88ejZMRjG7IF3HOpm8IDD19oBSmXm496u9ArbwEEGUvIE71JBEVBkIptRmB+0b+hLxvllP+Blryf1OKeLT1qF9BUB6d+W+LAfGvE8Fl4YAa8nWMlz+eP+qcUd8QGKp+WArq9mZAsB6B+yG7ARn27xdgxuuY2UHOROCt6xuYHGj+CAxVPy8FdWUrINchcC+3GxDHf2G32zHzOy94aYWfP+qcUd8QcKrfEVG/3wrIOQjcb9oNyLC/c7fjoWpyIFB+pW9gcqD5I+D4/y2ClWFAphqrMDH6iN2AOH5DpHkGUrVykQf0/K25vpqR478igv3D9bi9OISty+v2ArK0Oij7qXAACmo7at6SvoLJweaLQOknb5Li5IvN9Yg6au7Q7gna+RZrcOy3ZKDwcOt5byMC95h8Eeds+opAqfpeKaoHWuvxYQTu8XYD4vgfFcHa1oDuROCe0VdAOdh8ERiqflwK6mut9bgWgRv+bqC9RyynerWIuqI5IHof+VptfTibYf8rAnyquR7VFQi8ay0HxF8vgtPDAU2rj6DufbsPsXLIeSHgVO7ZrXmrKazBhHuX5YBUx0SU1wyIHId6+T/ywprz6EMCEQ+94OGlkT0/k7NwSFeC4eo2AfYLA7Jrchm2rNzSh1g55FwQqC6Eo17d66EH+wPv2WFvBzn4yTfLwsbzYTigAtS84Vxw5iT6k0DpJ0dLcTLiobdPJPsdZLDyPhmQ8E/4KIV/R+C+sz/JctS5IFAaO0WKhX9sHdDvQ+CdaDcgTvUiEXVza0DfQOCdlwvQnER/Eoh66DcjKIcCn71HLKd6o4i6uHlAx2Wou6Ekzw8JWCEQ8dDVxQi8r1oOiH+vCMJtTE0XTkN9JNze+CEBKwQc/0ERhI/5uz10uwEZ9n8qwOHNAUkZE+UnrYBhpyQwQ+B1PHSLAQk99Jk/7Vho/mlHWQyUd7FSJGCFwOCPl8rAAf8X/mMN7PHQ7QVk2ZOuLGhUwgEp9RwC70grYNgpCcwQmMVDtxeQQf90GcD6ZkDwfQTunr/izoqRQOYESpWzpCjhrzkphbsQuGv2HUO2PwdxKpeLyDWtAd2IwA1fVMIPCVghMOz/pQCfa65HuQZB+TV/DzrjgPi3ieCc1jPfJ1Bz/8YKGHZKAuEB/fU9dHuPWI7/IxGsCgMy3fgd1EfvZ6VIwBoBx39cBKGs1+6h2wvIsD/zWt1Sc0DqVzHhvWANDjsmgVk8dDsBOWhsmSwqTDSf99Q2BF4oyPNDAlYIDG48VAaK4T/QCphAzQ3/4d73k90ZJOKhq40IPHroVlYGOw0JzOGh29lBIh663IGgHP6RLn5IwAqBUuUCKUr4JdHM+9DbPXRLAaGHbmUhsNPXJzCHh24pIPTQuVZ7iMAcHrqlgLR76NPHob6CHnoPrZd5N5Q5PHQLAaGHPu8WYE9PeG4PPfuARDx01FBzw9dc8UMCVgiUKsulKKFmsft96LONI5uveemhW1kH7HQWAqXqKVJUs3ro2e8g9NC5VnuJQAcP3UZA6KH30gKZ72Pp4KFbCEi7h944DfVReujzfZHanH8HDz37gNBDt7kc2Pe+BDp46BkHhB46V2gPEYjhoWcbkIiHjmcRuEf1EC4OZb4RKFXfIUUV/pBaKdnzPnR7X/PSQ59vS7C35xvDQ892B6GH3tsLZr6NLoaHnnFA2jz0aXwCdXro821N9tR8Y3joWQekzUOX1aiXw5cl8kMCVgjE8NCzDQg9dCvrgJ3OQiCGh55dQOihc532EoGYHnp2AaGH3kvLg2OJ6aFnFxB66FyUvUQgpoeeYUDooffS+pj3Y4npoWcYEHro835R9hIAp3qPiAr/YPq+70OfbZhmhSkn8j70Y1EvP9pLvDiWeUbAqTwjIuErN9Rk9H3oFgJCD32eLb8en258Dz2bR6x2D12hhoAeeo+voHwPL4GHnk1A6KHne8H12+wSeOjZBCTiocutCMrn9xtTjjdHBBJ46FkFhB56jtZX30/FqdwiIueFB3T12vehZ39Id+ih9/2iytMEEnjo2ewg9NDztLz6fy4JPPQMAkIPvf9XVI5mMLhpqQzsnPN96Nk+YtFDz9HqysFUEnro5ncQeug5WFU5mkJCD918QOih52h15WAqCT30DAJCDz0Hyyo/U3Aq60TkjOZXvDgHgfvNuJMz88uKkfeh00OPWwxeZ4hAQg/d/A5CD91QpdlsKgIJPXSzAaGHnqqGvMkQgRQeutmARDx0PIHAXWlo6myWBDoTKG08QYrF+1vnj4cRuMd3vmnvFfrPIBEPXd2BwOP70JNUhNfqJZDCQze7gzj00PVWmK11RcDxbxDBJc0dRF2BwLs2SXsmdpD1Ijg9HNC0+gjq3reTDIjXkoBWAik8dMM7SGVMRLxmQIQeutZqs7HEBFJ46AYDQg89cQF5g0ECoYe+XQQFpdBAEOwPvGdHkg71PmJFPHRVQ+DxfehJqsFr9RJI6aGb20HooestMFvrjkBp7FQpFr7XOqDfh8A7MWmDencQeuhJ+fN6kwRSeujmdhCnSg/dZMHZdjICTvUWEZXYQzcYEHroySrIq40SSOmhmwtIu4c+rUZQ954yCoCNk8BcBJzKZhEZDs8guyaPwJaVzycFpvEMQg89KXxeb5DAsmcPkgXbt4ThAHagVl4CiErao76A0ENPyp7XmyTQhYdu5hGrVPmgFOWu5ldq+D4CN/wz8/yQgBUCpepZUlThrzkphbsQuGvSjEPfDkIPPQ1/3mOKgFO5SkQ+0wyIXIOgHP530o/GgLR76OpC1L2vJR0MrycBbQQiHnrjXASja9O0rTMgfB96mgrwHjMEuvDQzZxBIh76osMw8ZYXzcycrZJADAJO5VURWRI+Ym0vDmHr8nqMu15ziZ4dhB56Gva8xxSBwU2HysDOF8JwABOouaW0XekJCD30tPx5nwkCpeoJUlSpPXT9j1j00E2UmW2mJdClh24gIPTQ09aS9xkg0KWHbiAg7e9Dl7NRL99uYNpskgTiEXD8DSI4KTyDTGENJtzwB9hpPnrOIA499DTweY8hAo7/jAgSvQ99tpFoCMg+Hvrk4oPx0pHhy0r4IYHsCXTvoet9xKKHnv0aYI+zE9DgoesNSMRDl4cQlN/F+pGANQIaPHS9AaGHbm0tsOPXIVDyL5Uivhge0JXcjKD8yW44dX8GaffQG+pSjHtf7mZAvJcEuiKgwUPXvIPQQ++qoLxZLwGn+qCIeme4g0ypEzHh3ddNB93vIPTQu+HPe3UT0OCha9xB6KHrri/b64KAJg9dX0DooXdRTd6qnYAmD11fQCIeumxAUD5Z+6TZIAnEJVCqnC1F+VbzG6z0Hrq+gNBDj1s6XpcFAad6lYjq2kPXGBB66FnUnX3EJKDJQ9cZkDYPfXo16iseiDkVXkYC+glo8tD1BSTioU8fhokV9ND1l50txiWgyUPXE5CIh45XEbgHxJ0HryMB7QQGK4fJgPxPeEDv0kPXExB66NprzAa7IKDRQ9cTEHroXVSTt2onoNFD1xSQdg9dXY3A+6z2SbNBEohLQKOHrikg7R66Oht1jx563GLyOv0ENHromgJCD11/ldliagIaPXQNAaGHnrqQvNEAAb0eevcBoYduoMhsMjWBweqIDKhq6yve51Fzj0jd1j43pvNBou9DfwiBSw9dV0XYTnICmj307neQiIeubkXgnZ98VryDBDQR0Oyh6wjI3veh00PXVGU2k5qAZg9dQ0DaPXQ5FfXy3aknxxtJoFsCjv+QCH47PINo8NC7Dwg99G5Lyvt1EnD8zSLo6n3osw0nxSE94qFPIZD9gfIunfNlWyQQm8DBjx8sCxe81PoGK/X70PUFJOKhq2cReEfFngwvJAHdBAx46N09YtFD111ittcNAQMeencBaffQIdejVv7TbubHe0mgKwIGPPQuA0IPvauC8ma9BJzqOhF1RngGUenfh67vDOL47e9DPwH18r/onTFbI4EEBJzKEyKyIgzIVGMVJkYfSXB3x0uTf4tFD70jVF6QIQEDHnr6Ryx66BlWnl11JGDIQ08fEHroHWvGCzIkYMhDTx+QiIcu6xCUz8wQB7sigSiBkn+hFPHXzQM61iJwz9WNKNkZxGnz0IEvoOZeqXtAbI8EYhMw5KF3s4OsF8HpYWKn6aHHLiQvNEOg3UMH1qCW/n3osw0w4Q5CD91MpdlqKgKGPPSUO8g+HvrUKwdh4riXU02MN5FA1wTMeejpAhLx0LEZgfuGrufIBkggLQGDHnq6gNBDT1tK3meCgEEPPV1AnLGLRAo3t75SuwWB+zET82abJBCLgEEPPWVAqvTQY1WOF2VCwKCHnjIg9NAzKTw7iUfAoIeeLiD00OMVjldlQ8Cgh54iIPTQs6k6e4lFwLCHnjwgyza6sqBYaR3Qn0HgviXWRHgRCZggUNp4rBSLPw7XI6SCWnnURDczbcb7STo9dFP82W4aAoY99OQ7SMRDx/WoufTQ0xSW9+ghYNhDTxEQeuh6KstWtBAw7KGnCQg9dC2VZSNaCBj20JMHZNgPBBgKD0VTfB+6liKzkfQEDHvoyQJCDz19IXmnfgIZeOjJAkIPXX+R2WJ6AhEPXT2CwFuVvrHOd3b+mpceemeKvCI7AsP+hQKzHnqyHYQeenbFZ0+dCWTgoScMiH+nCNaEB3R66J0LyCvMEsjAQ08YkHYPHe9A3f1PswTYOgnMQcCpPCsivxb+gz1Z8PDSiG+SV4czCD10k/DZdlIC2Xjo8XcQeuhJK8jrTRLIyEOPHxB66CbLzbaTEig9eaoUG98LH6+Uug+Bd2LSJpJeP/cjFj30pDx5vUkCGXno8XcQhx66yXqz7YQEnMqtIvIHrR3kYgTeVxO2kPjyDjtIu4feOBX1Ub4PPTFi3qCNQEYeevwdhB66ttqyIQ0Ehv3NAjPvQ59tdHPsIPTQNZSUTegikKGHHm8HoYeuq7RsRweBDD30eAGJeOhqAwLvZB3zZBskkIpAhh56vIDQQ09VR95kiECGHnrMgNBDN1RqNpuGgOPfIYIPNb/i1f8+9OSHdL4PPU0ZeY8pAo7/hAiMvQ89eUDooZsqNdtNQyBDD73zIxY99DQl5D2mCGTsoXcOSNRDfxyB+zZTc2e7JNCRQGlstRQLP2yeP8x76J0DQg+9Y814QYYEMvbQYwSE70PPsPzsqhOBjD30GAGhh96pZvz/GRJwqhtE1EnhI5ah96En+xbLoYeeYfnZVScCGXvoHXYQeuid6sX/nyWB7D30uQNCDz3L6rOvTgQseOhzByTiocuDCMrv7jQH/n8SMEagVDlNivLd1le8mXjocweEHrqxWrPhFAQseOgdAkIPPUUZeYspAhY89A4BoYduqtZsNwUBCx763AGJeOgLlqP+1qdTTIu3kIAeAsOVmkCc8Ayya/IIbFn5vJ6G47Wyj5NODz0eNl6VCQFLHvrsOwg99Ezqzk5iEihVj5WiyuR96LONKLqD0EOPWTlelgkBSx767DsIPfRM6s5OYhKw5KHPEZA2D70hF2C8/Lcxp8LLSEA/AUse+lwB4fvQ9ZeZLaYlYMlDnz0g7R769IJDUX/rz9POjfeRQNcEhivbBLI4/Ip3e3EIW5fXu24zYQN7D+n00BOi4+VmCVQXyrDaGYYD2Imau5/Z/l6/9b0BoYdugz/7nI3AgU+VZPH0eDMgKkDNG7YBa29AIh66WofAO9PGgNgnCYQEhsZ+QwqFx8KAKDyBwF1pg0xbQCpXi8gVrS3tC6i5V9oYEPskgZBAyf+oFLG2GRBZh6Bs5R/s9h1k7/vQG3IWxst/z1KRgDUCTuUWETkvDEhDXYpx78s2xtK+g4yJiBcOaJrvQ7dRDPa5m4Aqwqn+XASHNNfj1LGoH/OoDT6tgOzjoTcGlmL86K02BsQ+SQBRi/AFBO6bAVE2yDQDEvXQf4nA/RUbg2GfJBASGK48IpDjmudh+Txq5b+wRaYZkIiHrh5E4NFDt1WR+d5v+y/MAtuwbdfheOVtgS0szYDQQ7fFn/22E1haHcQiNSaCN7UO51/BuPdnNiG1AkIP3WYR2HeLwLB/twAfCMOh8CIgyxGUX7HJpxWQNg+9IadgvPxPNgfFvuchgaHKl6Qgn26FQwHyfgTle22TaAYk4qE3lqM+Sg/ddmXmU/9DY1+UQuHS3VNWSm5CUL6kFxAIsK+HvmMJ8PbJXhgcx5BzAoOblqK48zYRfHBvOPBdBE+eAZwx3QuzF0Q99E0I3F/vhYFxDDknUKqegoK6WQSH7QkH8A+o7Tinl/6BFkQ8dLkHQfn3cl4aTs8agTuKGBxZjaJcLqIiP0pQClchcD9nbWizdCxw/MtEcF14OAJuQM39VK8NkuPpRwKPLcGyxUMoqiMhGIHgeADvE6DUPhsFTGBK/ggT5fW9OMuZgMw8A57Ti4PjmPJLQAE70FC3YefOK7H17aH30YsfgVP5kYis6sXBcUz5I6CgngPk69ght+Dl8kSvz1DQ5qH3+mA5vv4hoIBdUJgJwC8ANfPnQv8L08UHMDES/iG4fvn8P6AYZxQDkCwNAAAAAElFTkSuQmCC);background-size:100% 100%;background-repeat:no-repeat;height:220px;position:relative}.guestContent .guestlist li .trans{transform:skew(-8deg);height:220px;width:170px;position:absolute;left:25px;bottom:10px;overflow:hidden;border-radius:20px 0}.guestContent .guestlist li img{object-fit:cover;transform:skew(8deg);width:202px;height:220px;margin-left:-16px}.trackImgs{display:flex;padding-top:37px}.trackImgs li{position:relative;width:159px;margin-right:37px;height:282px;transition:.5s}.trackImgs li .trackInfos{position:absolute;z-index:2;padding:74px 35px 26px;background-color:#fff;box-shadow:0 0 12px 1px #3f31cd12;border-radius:18px;right:0px;width:340px;top:0px;opacity:0;height:100%;transition:.5s;display:none;background-image:url(./static/tracklogo.0637d73f.png)}.trackImgs li .trackInfos>p{margin-bottom:18px;font-weight:400;font-size:15px;color:#3d3d3d;line-height:28px;font-family:Alibaba PuHuiTi,Alibaba PuHuiTi;word-break:break-all;white-space:pre-wrap}.trackImgs li .trackInfos button{background:linear-gradient(#2AAC62 0%,#3B80BD 48%,#5E33C4 100%);color:#fff!important;font-weight:400;font-size:15px;height:36px}.trackImgs li .trackInfos button img{width:28px;height:8px;margin-left:5px}.trackImgs li .trackTitle{position:absolute;left:20px;top:74px;writing-mode:vertical-rl;letter-spacing:4px;font-weight:600;font-size:18px;color:#191919;line-height:26px;z-index:3}.trackImgs li:before{position:absolute;z-index:3;left:1px;top:80px;width:11px;height:39px;content:"";background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAnCAYAAADZwrJrAAAAAXNSR0IArs4c6QAAAZZJREFUOE+VlMsrRHEUx8/XxsKf4jUYzxl5ZvJovBqZNLGwEGXKSFIUQhnJI8WkiSaahZKNjTzGrVkoYYEFG7bKgoVmJn76zXWb0sydc8/md0/n8/v+zv3e3z1wmRVBAJEQlFgzPojE3Q8hkPWTueO7NseIiNBTpgj5kDKAWwG07YctL3BaFQEikjtSrUTiEQQLuqsVoUtqCiRG0FV3qd9Gor8rOGxcGFF0NoWSuPHfHTVHuz3EbYPQ2hGKu6GF5kqyHHaHVNZD5Da1jhbnBb+NZpcBuLHvXF4K9SjtjqTIYeuXMC/QMGAArh8yANe6z/ht1HgMwFVjpwk3Ut5o1S1UTkiYF7BOGYArpk/4yuWzxwbguSM5BNK8mlpH2cIB/08pXQzy2yhZCvDh4mU/HzavbvG/YNH6Bl+5cGOFDxdsevmwyTcvQCA5HdOupu0ZnjLoA/n+SSmpP6DjdYSRtzvOUgZoFLkBz5/POtMOdP/1Hi1Czp5bVxmgm++YaHvoXXtFdnAwGfwJQU+CcBh5y/A+D69H5Lm/d4zS1UrQAxcAAAAASUVORK5CYII=)}.trackImgs li:last-child{margin-right:0}.trackImgs li.active{width:610px}.trackImgs li.active .trackTitle{top:25px;left:307px;writing-mode:unset}.trackImgs li.active:before{left:270px;top:21px}.trackImgs li.active .trackInfos{opacity:1;display:block}.trackImgs li img{width:100%;height:100%;max-width:307px}.trendsContent{display:flex;align-items:flex-start}.trendsContent>img{border-radius:27px;margin-left:14px}.trendsList{display:flex;flex-wrap:wrap;flex:1 1}.trendsList li{width:calc(50% - 30px);display:flex;padding-bottom:16px;border-bottom:1px solid rgba(101,99,120,.21);margin:16px 30px 16px 0;position:relative}.trendsList li:last-child,.trendsList li:nth-child(5){border-bottom:none}.trendsList li .leftDate{display:flex;flex-direction:column;align-items:center;margin-right:12px;font-weight:400;font-size:14px;color:#696874;padding:0 18px;border-right:1px solid rgba(101,99,120,.21)}.trendsList li .leftDate span:first-child{font-weight:800;font-size:22px;color:#0116d4;margin-bottom:8px}.trendsList li .rightInfos{flex:1 1}.trendsList li .rightInfos .rightTitle{font-weight:700;font-size:16px;color:#191919;margin-bottom:14px;cursor:pointer;max-width:270px}.trendsList li .rightInfos .rightSubTitle{font-weight:400;font-size:14px;color:#696874;max-width:270px}.trendsList li .rightInfos .rightSubTitle.hide{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.trendsList li .rightInfos .rightSubTitle.hide-2{line-height:26px;height:52px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.trendsList li:hover .rightInfos .rightTitle{color:#0116d4}.trendsList li:after{content:"";position:absolute;left:0px;bottom:-1px;width:0px;background-color:#0116d4;height:1px;transition:.6s}.trendsList li:hover:after{width:100%}.fourPart .type-title{position:relative;font-family:YouSheBiaoTiHei,YouSheBiaoTiHei;font-weight:400;font-size:24px;color:#151313;margin:35px 0}.fourPart .type-title:after{content:"";position:absolute;width:32px;left:0px;bottom:-12px;height:2px;background:linear-gradient(90deg,#5374B4 0%,#853CB8 100%);border-radius:0;border:1px solid rgba(0,0,0,0)}.fourPart .type-content{display:flex;flex-wrap:wrap}.fourPart .type-content div{margin-right:25px;padding:6px;background-color:#fff;border-radius:4px;box-shadow:0 0 6px #1c30af08;height:60px;width:170px;line-height:1;display:flex;align-items:center;justify-content:center;margin-bottom:20px}.fourPart .type-content img{max-height:45px;max-width:148px}.anchorHeader{padding:45px 0;margin:0 auto;display:flex;justify-content:center;font-family:Alibaba PuHuiTi,Alibaba PuHuiTi;font-weight:400;font-size:22px;color:#0e1015;letter-spacing:3px}.anchorHeader .tab-item{padding:0 40px;cursor:pointer}.anchorHeader .tab-item.active{color:#0116d4}.anchorHeader span{color:#0116d45e}.pubBox .topBanner{width:100%;height:360px;background:url(./static/topbanner.47d3982f.png) center}.pubBox .contentBox{width:1200px;margin:-110px auto 50px;background:#F8F9FF;border-radius:18px;border:3px solid #FFFFFF}@media screen and (max-width: 1920px){.banner img{object-fit:cover}} diff --git a/908.cced280d.async.js b/908.cced280d.async.js deleted file mode 100644 index b5879c128..000000000 --- a/908.cced280d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[908],{18073:function(_,R,i){i.d(R,{Z:function(){return P}});var N=i(87462),n=i(62435),H={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},L=H,u=i(42135),b=function(k,j){return n.createElement(u.Z,(0,N.Z)({},k,{ref:j,icon:L}))},P=n.forwardRef(b)},25908:function(_,R,i){i.d(R,{D:function(){return G},Z:function(){return r}});var N=i(87462),n=i(62435),H={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},L=H,u=i(42135),b=function(t,c){return n.createElement(u.Z,(0,N.Z)({},t,{ref:c,icon:L}))},P=n.forwardRef(b),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},k=W,j=function(t,c){return n.createElement(u.Z,(0,N.Z)({},t,{ref:c,icon:k}))},A=n.forwardRef(j),T=i(18073),F=i(94184),I=i.n(F),w=i(98423),Y=e=>!isNaN(parseFloat(e))&&isFinite(e),J=i(53124),K=i(84321),Q=function(e,t){var c={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(c[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,l=Object.getOwnPropertySymbols(e);d{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})();var r=n.forwardRef((e,t)=>{const{prefixCls:c,className:l,trigger:d,children:m,defaultCollapsed:y=!1,theme:O="dark",style:$={},collapsible:C=!1,reverseArrow:x=!1,width:z=200,collapsedWidth:f=80,zeroWidthTriggerStyle:S,breakpoint:h,onCollapse:Z,onBreakpoint:M}=e,U=Q(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:B}=(0,n.useContext)(K.Gs),[v,X]=(0,n.useState)("collapsed"in e?e.collapsed:y),[ee,oe]=(0,n.useState)(!1);(0,n.useEffect)(()=>{"collapsed"in e&&X(e.collapsed)},[e.collapsed]);const te=(a,g)=>{"collapsed"in e||X(a),Z==null||Z(a,g)},ne=(0,n.useRef)();ne.current=a=>{oe(a.matches),M==null||M(a.matches),v!==a.matches&&te(a.matches,"responsive")},(0,n.useEffect)(()=>{function a(p){return ne.current(p)}let g;if(typeof window!="undefined"){const{matchMedia:p}=window;if(p&&h&&h in V){g=p(`(max-width: ${V[h]})`);try{g.addEventListener("change",a)}catch(E){g.addListener(a)}a(g)}}return()=>{try{g==null||g.removeEventListener("change",a)}catch(p){g==null||g.removeListener(a)}}},[h]),(0,n.useEffect)(()=>{const a=o("ant-sider-");return B.addSider(a),()=>B.removeSider(a)},[]);const re=()=>{te(!v,"clickTrigger")},{getPrefixCls:ae}=(0,n.useContext)(J.E_),ie=()=>{const a=ae("layout-sider",c),g=(0,w.Z)(U,["collapsed"]),p=v?f:z,E=Y(p)?`${p}px`:String(p),q=parseFloat(String(f||0))===0?n.createElement("span",{onClick:re,className:I()(`${a}-zero-width-trigger`,`${a}-zero-width-trigger-${x?"right":"left"}`),style:S},d||n.createElement(P,null)):null,se={expanded:x?n.createElement(T.Z,null):n.createElement(A,null),collapsed:x?n.createElement(A,null):n.createElement(T.Z,null)}[v?"collapsed":"expanded"],de=d!==null?q||n.createElement("div",{className:`${a}-trigger`,onClick:re,style:{width:E}},d||se):null,ce=Object.assign(Object.assign({},$),{flex:`0 0 ${E}`,maxWidth:E,minWidth:E,width:E}),ue=I()(a,`${a}-${O}`,{[`${a}-collapsed`]:!!v,[`${a}-has-trigger`]:C&&d!==null&&!q,[`${a}-below`]:!!ee,[`${a}-zero-width`]:parseFloat(E)===0},l);return n.createElement("aside",Object.assign({className:ue},g,{style:ce,ref:t}),n.createElement("div",{className:`${a}-children`},m),C||ee&&q?de:null)},le=n.useMemo(()=>({siderCollapsed:v}),[v]);return n.createElement(G.Provider,{value:le},ie())})},84321:function(_,R,i){i.d(R,{VY:function(){return V},$_:function(){return Q},h4:function(){return K},Gs:function(){return I},ZP:function(){return G}});var N=i(74902),n=i(94184),H=i.n(n),L=i(98423),u=i(62435),b=i(53124),P=i(67968),W=i(45503),j=o=>{const{componentCls:s,colorBgContainer:r,colorBgBody:e,colorText:t}=o;return{[`${s}-sider-light`]:{background:r,[`${s}-sider-trigger`]:{color:t,background:r},[`${s}-sider-zero-width-trigger`]:{color:t,background:r,border:`1px solid ${e}`,borderInlineStart:0}}}};const A=o=>{const{antCls:s,componentCls:r,colorText:e,colorTextLightSolid:t,colorBgHeader:c,colorBgBody:l,colorBgTrigger:d,layoutHeaderHeight:m,layoutHeaderPaddingInline:y,layoutHeaderColor:O,layoutFooterPadding:$,layoutTriggerHeight:C,layoutZeroTriggerSize:x,motionDurationMid:z,motionDurationSlow:f,fontSize:S,borderRadius:h}=o;return{[r]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:l,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},[`${r}-sider`]:{position:"relative",minWidth:0,background:c,transition:`all ${z}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${s}-menu${s}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:C},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:C,color:t,lineHeight:`${C}px`,textAlign:"center",background:d,cursor:"pointer",transition:`all ${z}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:m,insetInlineEnd:-x,zIndex:1,width:x,height:x,color:t,fontSize:o.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:c,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${f} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${f}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-x,borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}}}},j(o)),{"&-rtl":{direction:"rtl"}}),[`${r}-header`]:{height:m,paddingInline:y,color:O,lineHeight:`${m}px`,background:c,[`${s}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:$,color:e,fontSize:S,background:l},[`${r}-content`]:{flex:"auto",minHeight:0}}};var T=(0,P.Z)("Layout",o=>{const{colorText:s,controlHeightSM:r,controlHeight:e,controlHeightLG:t,marginXXS:c}=o,l=t*1.25,d=(0,W.TS)(o,{layoutHeaderHeight:e*2,layoutHeaderPaddingInline:l,layoutHeaderColor:s,layoutFooterPadding:`${r}px ${l}px`,layoutTriggerHeight:t+c*2,layoutZeroTriggerSize:t});return[A(d)]},o=>{const{colorBgLayout:s}=o;return{colorBgHeader:"#001529",colorBgBody:s,colorBgTrigger:"#002140"}}),F=function(o,s){var r={};for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&s.indexOf(e)<0&&(r[e]=o[e]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,e=Object.getOwnPropertySymbols(o);tnull,removeSider:()=>null}});function w(o){let{suffixCls:s,tagName:r,displayName:e}=o;return t=>u.forwardRef((l,d)=>u.createElement(t,Object.assign({ref:d,suffixCls:s,tagName:r},l)))}const D=u.forwardRef((o,s)=>{const{prefixCls:r,suffixCls:e,className:t,tagName:c}=o,l=F(o,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:d}=u.useContext(b.E_),m=d("layout",r),[y,O]=T(m),$=e?`${m}-${e}`:m;return y(u.createElement(c,Object.assign({className:H()(r||$,t,O),ref:s},l)))}),Y=u.forwardRef((o,s)=>{const{direction:r}=u.useContext(b.E_),[e,t]=u.useState([]),{prefixCls:c,className:l,rootClassName:d,children:m,hasSider:y,tagName:O,style:$}=o,C=F(o,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),x=(0,L.Z)(C,["suffixCls"]),{getPrefixCls:z,layout:f}=u.useContext(b.E_),S=z("layout",c),[h,Z]=T(S),M=H()(S,{[`${S}-has-sider`]:typeof y=="boolean"?y:e.length>0,[`${S}-rtl`]:r==="rtl"},f==null?void 0:f.className,l,d,Z),U=u.useMemo(()=>({siderHook:{addSider:B=>{t(v=>[].concat((0,N.Z)(v),[B]))},removeSider:B=>{t(v=>v.filter(X=>X!==B))}}}),[]);return h(u.createElement(I.Provider,{value:U},u.createElement(O,Object.assign({ref:s,className:M,style:Object.assign(Object.assign({},f==null?void 0:f.style),$)},x),m)))}),J=w({tagName:"section",displayName:"Layout"})(Y),K=w({suffixCls:"header",tagName:"header",displayName:"Header"})(D),Q=w({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(D),V=w({suffixCls:"content",tagName:"main",displayName:"Content"})(D);var G=J}}]); diff --git a/asset-manifest.json b/asset-manifest.json new file mode 100644 index 000000000..f2a6a31f4 --- /dev/null +++ b/asset-manifest.json @@ -0,0 +1,600 @@ +{ + "./static/js/0.b26c77b7.chunk.js": "/build/./static/js/0.b26c77b7.chunk.js", + "./static/js/1.4a924e00.chunk.js": "/build/./static/js/1.4a924e00.chunk.js", + "./static/js/2.25240ef8.chunk.js": "/build/./static/js/2.25240ef8.chunk.js", + "./static/js/3.aff98d9d.chunk.js": "/build/./static/js/3.aff98d9d.chunk.js", + "./static/js/4.2f13b054.chunk.js": "/build/./static/js/4.2f13b054.chunk.js", + "./static/js/5.baf226cf.chunk.js": "/build/./static/js/5.baf226cf.chunk.js", + "./static/js/6.9bf7dd91.chunk.js": "/build/./static/js/6.9bf7dd91.chunk.js", + "./static/js/7.b3a58fcc.chunk.js": "/build/./static/js/7.b3a58fcc.chunk.js", + "static/css/8.8bdeed6f.chunk.css": "/build/static/css/8.8bdeed6f.chunk.css", + "./static/js/8.411c88ff.chunk.js": "/build/./static/js/8.411c88ff.chunk.js", + "static/css/9.c0e03858.chunk.css": "/build/static/css/9.c0e03858.chunk.css", + "./static/js/9.10a727a3.chunk.js": "/build/./static/js/9.10a727a3.chunk.js", + "static/css/10.f7228588.chunk.css": "/build/static/css/10.f7228588.chunk.css", + "./static/js/10.99988b84.chunk.js": "/build/./static/js/10.99988b84.chunk.js", + "static/css/11.1c5f3a58.chunk.css": "/build/static/css/11.1c5f3a58.chunk.css", + "./static/js/11.e74abe4f.chunk.js": "/build/./static/js/11.e74abe4f.chunk.js", + "static/css/12.a2914384.chunk.css": "/build/static/css/12.a2914384.chunk.css", + "./static/js/12.49fbdd73.chunk.js": "/build/./static/js/12.49fbdd73.chunk.js", + "./static/js/13.2d48a370.chunk.js": "/build/./static/js/13.2d48a370.chunk.js", + "./static/js/14.8e87787f.chunk.js": "/build/./static/js/14.8e87787f.chunk.js", + "./static/js/15.986b6025.chunk.js": "/build/./static/js/15.986b6025.chunk.js", + "./static/js/16.489cb93e.chunk.js": "/build/./static/js/16.489cb93e.chunk.js", + "./static/js/17.250784aa.chunk.js": "/build/./static/js/17.250784aa.chunk.js", + "./static/js/18.a1ce0247.chunk.js": "/build/./static/js/18.a1ce0247.chunk.js", + "./static/js/19.0f4190f5.chunk.js": "/build/./static/js/19.0f4190f5.chunk.js", + "./static/js/20.1ac253a3.chunk.js": "/build/./static/js/20.1ac253a3.chunk.js", + "./static/js/21.fe7031fa.chunk.js": "/build/./static/js/21.fe7031fa.chunk.js", + "static/css/22.c232713f.chunk.css": "/build/static/css/22.c232713f.chunk.css", + "./static/js/22.5a90402c.chunk.js": "/build/./static/js/22.5a90402c.chunk.js", + "./static/js/23.0dceea05.chunk.js": "/build/./static/js/23.0dceea05.chunk.js", + "static/css/24.d2ddda53.chunk.css": "/build/static/css/24.d2ddda53.chunk.css", + "./static/js/24.95c9e4d0.chunk.js": "/build/./static/js/24.95c9e4d0.chunk.js", + "./static/js/25.232bade1.chunk.js": "/build/./static/js/25.232bade1.chunk.js", + "static/css/26.9f579fa1.chunk.css": "/build/static/css/26.9f579fa1.chunk.css", + "./static/js/26.c27513ac.chunk.js": "/build/./static/js/26.c27513ac.chunk.js", + "./static/js/27.f2a5f30d.chunk.js": "/build/./static/js/27.f2a5f30d.chunk.js", + "./static/js/28.3b2f8715.chunk.js": "/build/./static/js/28.3b2f8715.chunk.js", + "./static/js/29.af6dddc8.chunk.js": "/build/./static/js/29.af6dddc8.chunk.js", + "./static/js/30.144d0aff.chunk.js": "/build/./static/js/30.144d0aff.chunk.js", + "./static/js/31.74318f67.chunk.js": "/build/./static/js/31.74318f67.chunk.js", + "./static/js/32.b600b9e3.chunk.js": "/build/./static/js/32.b600b9e3.chunk.js", + "static/css/33.557eaa2f.chunk.css": "/build/static/css/33.557eaa2f.chunk.css", + "./static/js/33.7fde5fc0.chunk.js": "/build/./static/js/33.7fde5fc0.chunk.js", + "static/css/34.551e5fab.chunk.css": "/build/static/css/34.551e5fab.chunk.css", + "./static/js/34.dbeb4770.chunk.js": "/build/./static/js/34.dbeb4770.chunk.js", + "static/css/35.be4e1d7d.chunk.css": "/build/static/css/35.be4e1d7d.chunk.css", + "./static/js/35.46695d2e.chunk.js": "/build/./static/js/35.46695d2e.chunk.js", + "./static/js/36.b9db1aac.chunk.js": "/build/./static/js/36.b9db1aac.chunk.js", + "static/css/37.8531cf67.chunk.css": "/build/static/css/37.8531cf67.chunk.css", + "./static/js/37.69e6f062.chunk.js": "/build/./static/js/37.69e6f062.chunk.js", + "./static/js/38.34fc6343.chunk.js": "/build/./static/js/38.34fc6343.chunk.js", + "static/css/39.e0764343.chunk.css": "/build/static/css/39.e0764343.chunk.css", + "./static/js/39.496b9c8d.chunk.js": "/build/./static/js/39.496b9c8d.chunk.js", + "static/css/40.6417fb3d.chunk.css": "/build/static/css/40.6417fb3d.chunk.css", + "./static/js/40.0b491691.chunk.js": "/build/./static/js/40.0b491691.chunk.js", + "static/css/41.6f3ab3c8.chunk.css": "/build/static/css/41.6f3ab3c8.chunk.css", + "./static/js/41.47dca887.chunk.js": "/build/./static/js/41.47dca887.chunk.js", + "static/css/42.8bdeed6f.chunk.css": "/build/static/css/42.8bdeed6f.chunk.css", + "./static/js/42.ccd08181.chunk.js": "/build/./static/js/42.ccd08181.chunk.js", + "static/css/43.3262fb19.chunk.css": "/build/static/css/43.3262fb19.chunk.css", + "./static/js/43.1ca32157.chunk.js": "/build/./static/js/43.1ca32157.chunk.js", + "static/css/44.5fc996d6.chunk.css": "/build/static/css/44.5fc996d6.chunk.css", + "./static/js/44.eb2c6b47.chunk.js": "/build/./static/js/44.eb2c6b47.chunk.js", + "static/css/45.abf6bb9b.chunk.css": "/build/static/css/45.abf6bb9b.chunk.css", + "./static/js/45.61c26e0d.chunk.js": "/build/./static/js/45.61c26e0d.chunk.js", + "./static/js/46.18bbd415.chunk.js": "/build/./static/js/46.18bbd415.chunk.js", + "static/css/47.20969d43.chunk.css": "/build/static/css/47.20969d43.chunk.css", + "./static/js/47.f9bec50b.chunk.js": "/build/./static/js/47.f9bec50b.chunk.js", + "./static/js/48.5d67a7ec.chunk.js": "/build/./static/js/48.5d67a7ec.chunk.js", + "./static/js/49.fa20e1ec.chunk.js": "/build/./static/js/49.fa20e1ec.chunk.js", + "static/css/50.acffe7d4.chunk.css": "/build/static/css/50.acffe7d4.chunk.css", + "./static/js/50.19fa6a67.chunk.js": "/build/./static/js/50.19fa6a67.chunk.js", + "static/css/51.4323f278.chunk.css": "/build/static/css/51.4323f278.chunk.css", + "./static/js/51.001ff30b.chunk.js": "/build/./static/js/51.001ff30b.chunk.js", + "static/css/52.8897a42f.chunk.css": "/build/static/css/52.8897a42f.chunk.css", + "./static/js/52.6833c261.chunk.js": "/build/./static/js/52.6833c261.chunk.js", + "static/css/53.ec1571c8.chunk.css": "/build/static/css/53.ec1571c8.chunk.css", + "./static/js/53.34c607c1.chunk.js": "/build/./static/js/53.34c607c1.chunk.js", + "static/css/54.a8e7b652.chunk.css": "/build/static/css/54.a8e7b652.chunk.css", + "./static/js/54.9e6251ef.chunk.js": "/build/./static/js/54.9e6251ef.chunk.js", + "static/css/55.458347c6.chunk.css": "/build/static/css/55.458347c6.chunk.css", + "./static/js/55.11ee5370.chunk.js": "/build/./static/js/55.11ee5370.chunk.js", + "./static/js/56.74cced0f.chunk.js": "/build/./static/js/56.74cced0f.chunk.js", + "./static/js/57.080d0056.chunk.js": "/build/./static/js/57.080d0056.chunk.js", + "static/css/58.b1c46d31.chunk.css": "/build/static/css/58.b1c46d31.chunk.css", + "./static/js/58.56e6009b.chunk.js": "/build/./static/js/58.56e6009b.chunk.js", + "static/css/59.db767247.chunk.css": "/build/static/css/59.db767247.chunk.css", + "./static/js/59.900f52e1.chunk.js": "/build/./static/js/59.900f52e1.chunk.js", + "static/css/60.95c8fd70.chunk.css": "/build/static/css/60.95c8fd70.chunk.css", + "./static/js/60.c22d0927.chunk.js": "/build/./static/js/60.c22d0927.chunk.js", + "static/css/61.3144ed07.chunk.css": "/build/static/css/61.3144ed07.chunk.css", + "./static/js/61.a53804aa.chunk.js": "/build/./static/js/61.a53804aa.chunk.js", + "./static/js/62.fabeb5f2.chunk.js": "/build/./static/js/62.fabeb5f2.chunk.js", + "static/css/63.9cb5574e.chunk.css": "/build/static/css/63.9cb5574e.chunk.css", + "./static/js/63.1514d0a5.chunk.js": "/build/./static/js/63.1514d0a5.chunk.js", + "static/css/64.909d3daf.chunk.css": "/build/static/css/64.909d3daf.chunk.css", + "./static/js/64.26904b69.chunk.js": "/build/./static/js/64.26904b69.chunk.js", + "static/css/65.306147eb.chunk.css": "/build/static/css/65.306147eb.chunk.css", + "./static/js/65.2f51c43c.chunk.js": "/build/./static/js/65.2f51c43c.chunk.js", + "./static/js/66.a9a60764.chunk.js": "/build/./static/js/66.a9a60764.chunk.js", + "static/css/67.f4704690.chunk.css": "/build/static/css/67.f4704690.chunk.css", + "./static/js/67.ba5721fa.chunk.js": "/build/./static/js/67.ba5721fa.chunk.js", + "static/css/68.3dea4405.chunk.css": "/build/static/css/68.3dea4405.chunk.css", + "./static/js/68.99b49880.chunk.js": "/build/./static/js/68.99b49880.chunk.js", + "static/css/69.2317255e.chunk.css": "/build/static/css/69.2317255e.chunk.css", + "./static/js/69.0d062c15.chunk.js": "/build/./static/js/69.0d062c15.chunk.js", + "./static/js/70.1a1b9fb1.chunk.js": "/build/./static/js/70.1a1b9fb1.chunk.js", + "./static/js/71.ccef6f3c.chunk.js": "/build/./static/js/71.ccef6f3c.chunk.js", + "static/css/72.bfe97be1.chunk.css": "/build/static/css/72.bfe97be1.chunk.css", + "./static/js/72.b2199a90.chunk.js": "/build/./static/js/72.b2199a90.chunk.js", + "./static/js/73.b335ce14.chunk.js": "/build/./static/js/73.b335ce14.chunk.js", + "static/css/74.6a13e222.chunk.css": "/build/static/css/74.6a13e222.chunk.css", + "./static/js/74.fd963c32.chunk.js": "/build/./static/js/74.fd963c32.chunk.js", + "static/css/75.0c76283e.chunk.css": "/build/static/css/75.0c76283e.chunk.css", + "./static/js/75.6376f871.chunk.js": "/build/./static/js/75.6376f871.chunk.js", + "static/css/76.746d3b5f.chunk.css": "/build/static/css/76.746d3b5f.chunk.css", + "./static/js/76.04279520.chunk.js": "/build/./static/js/76.04279520.chunk.js", + "static/css/77.a65c9d2d.chunk.css": "/build/static/css/77.a65c9d2d.chunk.css", + "./static/js/77.4dfd49d3.chunk.js": "/build/./static/js/77.4dfd49d3.chunk.js", + "./static/js/78.bb7a4b5f.chunk.js": "/build/./static/js/78.bb7a4b5f.chunk.js", + "static/css/79.a8369a12.chunk.css": "/build/static/css/79.a8369a12.chunk.css", + "./static/js/79.14d639b1.chunk.js": "/build/./static/js/79.14d639b1.chunk.js", + "static/css/80.1587d9f3.chunk.css": "/build/static/css/80.1587d9f3.chunk.css", + "./static/js/80.de51e78b.chunk.js": "/build/./static/js/80.de51e78b.chunk.js", + "./static/js/81.4f0af52e.chunk.js": "/build/./static/js/81.4f0af52e.chunk.js", + "./static/js/82.0b8f0dcf.chunk.js": "/build/./static/js/82.0b8f0dcf.chunk.js", + "static/css/83.16f611d2.chunk.css": "/build/static/css/83.16f611d2.chunk.css", + "./static/js/83.9d32d150.chunk.js": "/build/./static/js/83.9d32d150.chunk.js", + "static/css/84.285c512b.chunk.css": "/build/static/css/84.285c512b.chunk.css", + "./static/js/84.d2326074.chunk.js": "/build/./static/js/84.d2326074.chunk.js", + "static/css/85.bcb1f451.chunk.css": "/build/static/css/85.bcb1f451.chunk.css", + "./static/js/85.cd887c24.chunk.js": "/build/./static/js/85.cd887c24.chunk.js", + "static/css/86.17d1bb70.chunk.css": "/build/static/css/86.17d1bb70.chunk.css", + "./static/js/86.655f4d6c.chunk.js": "/build/./static/js/86.655f4d6c.chunk.js", + "static/css/87.c713331c.chunk.css": "/build/static/css/87.c713331c.chunk.css", + "./static/js/87.5f5e124e.chunk.js": "/build/./static/js/87.5f5e124e.chunk.js", + "static/css/88.fff00769.chunk.css": "/build/static/css/88.fff00769.chunk.css", + "./static/js/88.4db267f0.chunk.js": "/build/./static/js/88.4db267f0.chunk.js", + "static/css/89.0a9590f5.chunk.css": "/build/static/css/89.0a9590f5.chunk.css", + "./static/js/89.9991edcc.chunk.js": "/build/./static/js/89.9991edcc.chunk.js", + "static/css/90.d077de88.chunk.css": "/build/static/css/90.d077de88.chunk.css", + "./static/js/90.861874e9.chunk.js": "/build/./static/js/90.861874e9.chunk.js", + "static/css/91.834ebd5d.chunk.css": "/build/static/css/91.834ebd5d.chunk.css", + "./static/js/91.b8d44d1c.chunk.js": "/build/./static/js/91.b8d44d1c.chunk.js", + "static/css/92.72bd9d4a.chunk.css": "/build/static/css/92.72bd9d4a.chunk.css", + "./static/js/92.d7f18353.chunk.js": "/build/./static/js/92.d7f18353.chunk.js", + "./static/js/93.1d6fcf7b.chunk.js": "/build/./static/js/93.1d6fcf7b.chunk.js", + "static/css/94.7cc79b14.chunk.css": "/build/static/css/94.7cc79b14.chunk.css", + "./static/js/94.25615e79.chunk.js": "/build/./static/js/94.25615e79.chunk.js", + "static/css/95.0cea9315.chunk.css": "/build/static/css/95.0cea9315.chunk.css", + "./static/js/95.1aef208d.chunk.js": "/build/./static/js/95.1aef208d.chunk.js", + "static/css/96.89efd2d4.chunk.css": "/build/static/css/96.89efd2d4.chunk.css", + "./static/js/96.aab77732.chunk.js": "/build/./static/js/96.aab77732.chunk.js", + "static/css/97.b374ea9c.chunk.css": "/build/static/css/97.b374ea9c.chunk.css", + "./static/js/97.335799a0.chunk.js": "/build/./static/js/97.335799a0.chunk.js", + "./static/js/98.ba4f9a9d.chunk.js": "/build/./static/js/98.ba4f9a9d.chunk.js", + "static/css/99.ade1d045.chunk.css": "/build/static/css/99.ade1d045.chunk.css", + "./static/js/99.26338c37.chunk.js": "/build/./static/js/99.26338c37.chunk.js", + "static/css/100.db767247.chunk.css": "/build/static/css/100.db767247.chunk.css", + "./static/js/100.e0bb646f.chunk.js": "/build/./static/js/100.e0bb646f.chunk.js", + "static/css/101.02c763e8.chunk.css": "/build/static/css/101.02c763e8.chunk.css", + "./static/js/101.5a4f72ae.chunk.js": "/build/./static/js/101.5a4f72ae.chunk.js", + "./static/js/102.fa2370be.chunk.js": "/build/./static/js/102.fa2370be.chunk.js", + "./static/js/103.fab7d6e6.chunk.js": "/build/./static/js/103.fab7d6e6.chunk.js", + "static/css/104.4c8c6a11.chunk.css": "/build/static/css/104.4c8c6a11.chunk.css", + "./static/js/104.503e393e.chunk.js": "/build/./static/js/104.503e393e.chunk.js", + "static/css/105.d4e40697.chunk.css": "/build/static/css/105.d4e40697.chunk.css", + "./static/js/105.c1bc4d4a.chunk.js": "/build/./static/js/105.c1bc4d4a.chunk.js", + "static/css/106.89bc1500.chunk.css": "/build/static/css/106.89bc1500.chunk.css", + "./static/js/106.10233678.chunk.js": "/build/./static/js/106.10233678.chunk.js", + "static/css/107.f392094f.chunk.css": "/build/static/css/107.f392094f.chunk.css", + "./static/js/107.2ce9ab05.chunk.js": "/build/./static/js/107.2ce9ab05.chunk.js", + "./static/js/108.6bc045f6.chunk.js": "/build/./static/js/108.6bc045f6.chunk.js", + "./static/js/109.c9b42c0b.chunk.js": "/build/./static/js/109.c9b42c0b.chunk.js", + "./static/js/110.89a79b3a.chunk.js": "/build/./static/js/110.89a79b3a.chunk.js", + "static/css/111.4054f41b.chunk.css": "/build/static/css/111.4054f41b.chunk.css", + "./static/js/111.2d55c1b9.chunk.js": "/build/./static/js/111.2d55c1b9.chunk.js", + "static/css/112.6cf7864c.chunk.css": "/build/static/css/112.6cf7864c.chunk.css", + "./static/js/112.1f78fee1.chunk.js": "/build/./static/js/112.1f78fee1.chunk.js", + "./static/js/113.e7de6572.chunk.js": "/build/./static/js/113.e7de6572.chunk.js", + "./static/js/114.c3bfba52.chunk.js": "/build/./static/js/114.c3bfba52.chunk.js", + "./static/js/115.3252add0.chunk.js": "/build/./static/js/115.3252add0.chunk.js", + "static/css/116.4e686135.chunk.css": "/build/static/css/116.4e686135.chunk.css", + "./static/js/116.e47abfb6.chunk.js": "/build/./static/js/116.e47abfb6.chunk.js", + "./static/js/117.25f1c1b4.chunk.js": "/build/./static/js/117.25f1c1b4.chunk.js", + "./static/js/118.503770a9.chunk.js": "/build/./static/js/118.503770a9.chunk.js", + "static/css/119.41b8aabd.chunk.css": "/build/static/css/119.41b8aabd.chunk.css", + "./static/js/119.69413fb9.chunk.js": "/build/./static/js/119.69413fb9.chunk.js", + "static/css/120.b7b78777.chunk.css": "/build/static/css/120.b7b78777.chunk.css", + "./static/js/120.1861529e.chunk.js": "/build/./static/js/120.1861529e.chunk.js", + "static/css/121.177bb0f3.chunk.css": "/build/static/css/121.177bb0f3.chunk.css", + "./static/js/121.f4490ade.chunk.js": "/build/./static/js/121.f4490ade.chunk.js", + "./static/js/122.01941469.chunk.js": "/build/./static/js/122.01941469.chunk.js", + "static/css/123.2411548c.chunk.css": "/build/static/css/123.2411548c.chunk.css", + "./static/js/123.a2542ea9.chunk.js": "/build/./static/js/123.a2542ea9.chunk.js", + "./static/js/124.c7a5f92c.chunk.js": "/build/./static/js/124.c7a5f92c.chunk.js", + "./static/js/125.dccaaa6b.chunk.js": "/build/./static/js/125.dccaaa6b.chunk.js", + "./static/js/126.44695327.chunk.js": "/build/./static/js/126.44695327.chunk.js", + "static/css/127.54bd5dfb.chunk.css": "/build/static/css/127.54bd5dfb.chunk.css", + "./static/js/127.6e6e726e.chunk.js": "/build/./static/js/127.6e6e726e.chunk.js", + "static/css/128.41b8aabd.chunk.css": "/build/static/css/128.41b8aabd.chunk.css", + "./static/js/128.ac7ce709.chunk.js": "/build/./static/js/128.ac7ce709.chunk.js", + "static/css/129.95547330.chunk.css": "/build/static/css/129.95547330.chunk.css", + "./static/js/129.f3d7ba5c.chunk.js": "/build/./static/js/129.f3d7ba5c.chunk.js", + "static/css/130.41b8aabd.chunk.css": "/build/static/css/130.41b8aabd.chunk.css", + "./static/js/130.5a946590.chunk.js": "/build/./static/js/130.5a946590.chunk.js", + "static/css/131.41b8aabd.chunk.css": "/build/static/css/131.41b8aabd.chunk.css", + "./static/js/131.ba4f798b.chunk.js": "/build/./static/js/131.ba4f798b.chunk.js", + "static/css/132.ea81d4f1.chunk.css": "/build/static/css/132.ea81d4f1.chunk.css", + "./static/js/132.6b3df827.chunk.js": "/build/./static/js/132.6b3df827.chunk.js", + "static/css/133.56776e6e.chunk.css": "/build/static/css/133.56776e6e.chunk.css", + "./static/js/133.a61fec97.chunk.js": "/build/./static/js/133.a61fec97.chunk.js", + "./static/js/134.faf46f99.chunk.js": "/build/./static/js/134.faf46f99.chunk.js", + "./static/js/135.3a42ba90.chunk.js": "/build/./static/js/135.3a42ba90.chunk.js", + "./static/js/136.ee5c0e4b.chunk.js": "/build/./static/js/136.ee5c0e4b.chunk.js", + "./static/js/137.ab2546f8.chunk.js": "/build/./static/js/137.ab2546f8.chunk.js", + "./static/js/138.e4a82cf9.chunk.js": "/build/./static/js/138.e4a82cf9.chunk.js", + "static/css/139.de5ed58f.chunk.css": "/build/static/css/139.de5ed58f.chunk.css", + "./static/js/139.bc094754.chunk.js": "/build/./static/js/139.bc094754.chunk.js", + "static/css/140.c041974c.chunk.css": "/build/static/css/140.c041974c.chunk.css", + "./static/js/140.df17eb58.chunk.js": "/build/./static/js/140.df17eb58.chunk.js", + "./static/js/141.1be727bd.chunk.js": "/build/./static/js/141.1be727bd.chunk.js", + "./static/js/142.f3bc4dd0.chunk.js": "/build/./static/js/142.f3bc4dd0.chunk.js", + "static/css/143.83a06073.chunk.css": "/build/static/css/143.83a06073.chunk.css", + "./static/js/143.da8821d3.chunk.js": "/build/./static/js/143.da8821d3.chunk.js", + "./static/js/144.9e9eff23.chunk.js": "/build/./static/js/144.9e9eff23.chunk.js", + "./static/js/145.99cbe99b.chunk.js": "/build/./static/js/145.99cbe99b.chunk.js", + "static/css/146.fdd673d6.chunk.css": "/build/static/css/146.fdd673d6.chunk.css", + "./static/js/146.868a0a70.chunk.js": "/build/./static/js/146.868a0a70.chunk.js", + "static/css/147.e59d7372.chunk.css": "/build/static/css/147.e59d7372.chunk.css", + "./static/js/147.f0ca2a27.chunk.js": "/build/./static/js/147.f0ca2a27.chunk.js", + "static/css/148.72319a07.chunk.css": "/build/static/css/148.72319a07.chunk.css", + "./static/js/148.ba37e18d.chunk.js": "/build/./static/js/148.ba37e18d.chunk.js", + "static/css/149.8841b1b9.chunk.css": "/build/static/css/149.8841b1b9.chunk.css", + "./static/js/149.d2cbb4bd.chunk.js": "/build/./static/js/149.d2cbb4bd.chunk.js", + "static/css/150.1b154d7a.chunk.css": "/build/static/css/150.1b154d7a.chunk.css", + "./static/js/150.ae158621.chunk.js": "/build/./static/js/150.ae158621.chunk.js", + "static/css/151.65678519.chunk.css": "/build/static/css/151.65678519.chunk.css", + "./static/js/151.267f4478.chunk.js": "/build/./static/js/151.267f4478.chunk.js", + "static/css/152.ba8f71f0.chunk.css": "/build/static/css/152.ba8f71f0.chunk.css", + "./static/js/152.6852d544.chunk.js": "/build/./static/js/152.6852d544.chunk.js", + "static/css/153.ba8f71f0.chunk.css": "/build/static/css/153.ba8f71f0.chunk.css", + "./static/js/153.9840ba0c.chunk.js": "/build/./static/js/153.9840ba0c.chunk.js", + "./static/js/154.f3ceab4a.chunk.js": "/build/./static/js/154.f3ceab4a.chunk.js", + "static/css/155.83a06073.chunk.css": "/build/static/css/155.83a06073.chunk.css", + "./static/js/155.9d2a74cd.chunk.js": "/build/./static/js/155.9d2a74cd.chunk.js", + "./static/js/156.5614d6ee.chunk.js": "/build/./static/js/156.5614d6ee.chunk.js", + "./static/js/157.1108fd3f.chunk.js": "/build/./static/js/157.1108fd3f.chunk.js", + "static/css/158.4188cd3d.chunk.css": "/build/static/css/158.4188cd3d.chunk.css", + "./static/js/158.95d6f950.chunk.js": "/build/./static/js/158.95d6f950.chunk.js", + "static/css/159.c232713f.chunk.css": "/build/static/css/159.c232713f.chunk.css", + "./static/js/159.fc4d8667.chunk.js": "/build/./static/js/159.fc4d8667.chunk.js", + "static/css/160.1b154d7a.chunk.css": "/build/static/css/160.1b154d7a.chunk.css", + "./static/js/160.2d1c312f.chunk.js": "/build/./static/js/160.2d1c312f.chunk.js", + "static/css/161.b92181f7.chunk.css": "/build/static/css/161.b92181f7.chunk.css", + "./static/js/161.9dc81fa5.chunk.js": "/build/./static/js/161.9dc81fa5.chunk.js", + "static/css/162.1b154d7a.chunk.css": "/build/static/css/162.1b154d7a.chunk.css", + "./static/js/162.4d1de144.chunk.js": "/build/./static/js/162.4d1de144.chunk.js", + "static/css/163.4cedb0b7.chunk.css": "/build/static/css/163.4cedb0b7.chunk.css", + "./static/js/163.a7178a03.chunk.js": "/build/./static/js/163.a7178a03.chunk.js", + "./static/js/164.d8cb2a98.chunk.js": "/build/./static/js/164.d8cb2a98.chunk.js", + "./static/js/165.aa5bdbde.chunk.js": "/build/./static/js/165.aa5bdbde.chunk.js", + "./static/js/166.38613a2f.chunk.js": "/build/./static/js/166.38613a2f.chunk.js", + "static/css/167.0a2b06f0.chunk.css": "/build/static/css/167.0a2b06f0.chunk.css", + "./static/js/167.8d1fbbe0.chunk.js": "/build/./static/js/167.8d1fbbe0.chunk.js", + "./static/js/168.f2635dbf.chunk.js": "/build/./static/js/168.f2635dbf.chunk.js", + "./static/js/169.80945d2f.chunk.js": "/build/./static/js/169.80945d2f.chunk.js", + "./static/js/170.3554c095.chunk.js": "/build/./static/js/170.3554c095.chunk.js", + "static/css/171.5a0bfe2e.chunk.css": "/build/static/css/171.5a0bfe2e.chunk.css", + "./static/js/171.8f107773.chunk.js": "/build/./static/js/171.8f107773.chunk.js", + "static/css/172.5a0bfe2e.chunk.css": "/build/static/css/172.5a0bfe2e.chunk.css", + "./static/js/172.da3cca4a.chunk.js": "/build/./static/js/172.da3cca4a.chunk.js", + "static/css/173.8ddbb070.chunk.css": "/build/static/css/173.8ddbb070.chunk.css", + "./static/js/173.4463b409.chunk.js": "/build/./static/js/173.4463b409.chunk.js", + "static/css/174.e6754f94.chunk.css": "/build/static/css/174.e6754f94.chunk.css", + "./static/js/174.f36c8264.chunk.js": "/build/./static/js/174.f36c8264.chunk.js", + "static/css/175.a8369a12.chunk.css": "/build/static/css/175.a8369a12.chunk.css", + "./static/js/175.3712bfba.chunk.js": "/build/./static/js/175.3712bfba.chunk.js", + "static/css/176.d34dec6c.chunk.css": "/build/static/css/176.d34dec6c.chunk.css", + "./static/js/176.6bf10460.chunk.js": "/build/./static/js/176.6bf10460.chunk.js", + "static/css/177.53604072.chunk.css": "/build/static/css/177.53604072.chunk.css", + "./static/js/177.3ed0cb97.chunk.js": "/build/./static/js/177.3ed0cb97.chunk.js", + "static/css/178.c041974c.chunk.css": "/build/static/css/178.c041974c.chunk.css", + "./static/js/178.683215f4.chunk.js": "/build/./static/js/178.683215f4.chunk.js", + "static/css/179.c041974c.chunk.css": "/build/static/css/179.c041974c.chunk.css", + "./static/js/179.eba55c8f.chunk.js": "/build/./static/js/179.eba55c8f.chunk.js", + "static/css/180.e4e6348b.chunk.css": "/build/static/css/180.e4e6348b.chunk.css", + "./static/js/180.dd74ce86.chunk.js": "/build/./static/js/180.dd74ce86.chunk.js", + "static/css/181.0235d756.chunk.css": "/build/static/css/181.0235d756.chunk.css", + "./static/js/181.de985d7d.chunk.js": "/build/./static/js/181.de985d7d.chunk.js", + "static/css/182.46fb7389.chunk.css": "/build/static/css/182.46fb7389.chunk.css", + "./static/js/182.e29fb64c.chunk.js": "/build/./static/js/182.e29fb64c.chunk.js", + "static/css/183.ae767d6d.chunk.css": "/build/static/css/183.ae767d6d.chunk.css", + "./static/js/183.e8d87699.chunk.js": "/build/./static/js/183.e8d87699.chunk.js", + "./static/js/184.1093278d.chunk.js": "/build/./static/js/184.1093278d.chunk.js", + "static/css/185.d4ed71fa.chunk.css": "/build/static/css/185.d4ed71fa.chunk.css", + "./static/js/185.ce36a111.chunk.js": "/build/./static/js/185.ce36a111.chunk.js", + "static/css/186.4ad9941b.chunk.css": "/build/static/css/186.4ad9941b.chunk.css", + "./static/js/186.9076df83.chunk.js": "/build/./static/js/186.9076df83.chunk.js", + "static/css/187.bb3f7513.chunk.css": "/build/static/css/187.bb3f7513.chunk.css", + "./static/js/187.d4d58b02.chunk.js": "/build/./static/js/187.d4d58b02.chunk.js", + "static/css/188.95547330.chunk.css": "/build/static/css/188.95547330.chunk.css", + "./static/js/188.ccce7cb1.chunk.js": "/build/./static/js/188.ccce7cb1.chunk.js", + "static/css/189.41b8aabd.chunk.css": "/build/static/css/189.41b8aabd.chunk.css", + "./static/js/189.15b14820.chunk.js": "/build/./static/js/189.15b14820.chunk.js", + "./static/js/190.06ee4343.chunk.js": "/build/./static/js/190.06ee4343.chunk.js", + "./static/js/191.4a7c5dd1.chunk.js": "/build/./static/js/191.4a7c5dd1.chunk.js", + "static/css/192.a4e6c551.chunk.css": "/build/static/css/192.a4e6c551.chunk.css", + "./static/js/192.faad7840.chunk.js": "/build/./static/js/192.faad7840.chunk.js", + "./static/js/193.80b4acdb.chunk.js": "/build/./static/js/193.80b4acdb.chunk.js", + "static/css/194.87b2f83c.chunk.css": "/build/static/css/194.87b2f83c.chunk.css", + "./static/js/194.1180e40d.chunk.js": "/build/./static/js/194.1180e40d.chunk.js", + "static/css/195.6d12ef9c.chunk.css": "/build/static/css/195.6d12ef9c.chunk.css", + "./static/js/195.a4f2059a.chunk.js": "/build/./static/js/195.a4f2059a.chunk.js", + "./static/js/196.f83c2513.chunk.js": "/build/./static/js/196.f83c2513.chunk.js", + "./static/js/197.bc4b64b0.chunk.js": "/build/./static/js/197.bc4b64b0.chunk.js", + "./static/js/198.eb51f5f6.chunk.js": "/build/./static/js/198.eb51f5f6.chunk.js", + "./static/js/199.34ee37ad.chunk.js": "/build/./static/js/199.34ee37ad.chunk.js", + "./static/js/200.43bc2631.chunk.js": "/build/./static/js/200.43bc2631.chunk.js", + "./static/js/201.e0f642c5.chunk.js": "/build/./static/js/201.e0f642c5.chunk.js", + "./static/js/202.667a7de6.chunk.js": "/build/./static/js/202.667a7de6.chunk.js", + "./static/js/203.b15cb798.chunk.js": "/build/./static/js/203.b15cb798.chunk.js", + "./static/js/204.8eaa10b2.chunk.js": "/build/./static/js/204.8eaa10b2.chunk.js", + "./static/js/205.3461238d.chunk.js": "/build/./static/js/205.3461238d.chunk.js", + "./static/js/206.be1878e8.chunk.js": "/build/./static/js/206.be1878e8.chunk.js", + "./static/js/207.d113dd91.chunk.js": "/build/./static/js/207.d113dd91.chunk.js", + "./static/js/208.f1e0da34.chunk.js": "/build/./static/js/208.f1e0da34.chunk.js", + "./static/js/209.8cb83987.chunk.js": "/build/./static/js/209.8cb83987.chunk.js", + "./static/js/210.f84ede04.chunk.js": "/build/./static/js/210.f84ede04.chunk.js", + "./static/js/211.2f1393c9.chunk.js": "/build/./static/js/211.2f1393c9.chunk.js", + "./static/js/212.8bdeef11.chunk.js": "/build/./static/js/212.8bdeef11.chunk.js", + "./static/js/213.f1622259.chunk.js": "/build/./static/js/213.f1622259.chunk.js", + "./static/js/214.8e7dbb29.chunk.js": "/build/./static/js/214.8e7dbb29.chunk.js", + "./static/js/215.789f7bf0.chunk.js": "/build/./static/js/215.789f7bf0.chunk.js", + "./static/js/216.4281d5ce.chunk.js": "/build/./static/js/216.4281d5ce.chunk.js", + "./static/js/217.ca24093e.chunk.js": "/build/./static/js/217.ca24093e.chunk.js", + "./static/js/218.5a45951e.chunk.js": "/build/./static/js/218.5a45951e.chunk.js", + "./static/js/219.27cc1ecb.chunk.js": "/build/./static/js/219.27cc1ecb.chunk.js", + "./static/js/220.acb7ab55.chunk.js": "/build/./static/js/220.acb7ab55.chunk.js", + "./static/js/221.d8294163.chunk.js": "/build/./static/js/221.d8294163.chunk.js", + "./static/js/222.9088cfd4.chunk.js": "/build/./static/js/222.9088cfd4.chunk.js", + "./static/js/223.ed691371.chunk.js": "/build/./static/js/223.ed691371.chunk.js", + "./static/js/224.9f6b6a4a.chunk.js": "/build/./static/js/224.9f6b6a4a.chunk.js", + "./static/js/225.943befca.chunk.js": "/build/./static/js/225.943befca.chunk.js", + "./static/js/226.43408ecc.chunk.js": "/build/./static/js/226.43408ecc.chunk.js", + "./static/js/227.2963daae.chunk.js": "/build/./static/js/227.2963daae.chunk.js", + "./static/js/228.9738bc6d.chunk.js": "/build/./static/js/228.9738bc6d.chunk.js", + "./static/js/229.f3398f7e.chunk.js": "/build/./static/js/229.f3398f7e.chunk.js", + "./static/js/230.8296374b.chunk.js": "/build/./static/js/230.8296374b.chunk.js", + "./static/js/231.a2ac319b.chunk.js": "/build/./static/js/231.a2ac319b.chunk.js", + "./static/js/232.96480116.chunk.js": "/build/./static/js/232.96480116.chunk.js", + "./static/js/233.e02130a2.chunk.js": "/build/./static/js/233.e02130a2.chunk.js", + "./static/js/234.4db5c335.chunk.js": "/build/./static/js/234.4db5c335.chunk.js", + "./static/js/235.d84f75f2.chunk.js": "/build/./static/js/235.d84f75f2.chunk.js", + "./static/js/236.35cfb0f0.chunk.js": "/build/./static/js/236.35cfb0f0.chunk.js", + "./static/js/237.33fdaf9a.chunk.js": "/build/./static/js/237.33fdaf9a.chunk.js", + "./static/js/238.9ab0eae7.chunk.js": "/build/./static/js/238.9ab0eae7.chunk.js", + "./static/js/239.8f07290e.chunk.js": "/build/./static/js/239.8f07290e.chunk.js", + "./static/js/240.53956ffc.chunk.js": "/build/./static/js/240.53956ffc.chunk.js", + "./static/js/241.1213bfc2.chunk.js": "/build/./static/js/241.1213bfc2.chunk.js", + "./static/js/242.3947fffa.chunk.js": "/build/./static/js/242.3947fffa.chunk.js", + "./static/js/243.fb9f1b03.chunk.js": "/build/./static/js/243.fb9f1b03.chunk.js", + "./static/js/244.eac3e57c.chunk.js": "/build/./static/js/244.eac3e57c.chunk.js", + "./static/js/245.4280d2cd.chunk.js": "/build/./static/js/245.4280d2cd.chunk.js", + "./static/js/246.a1741b45.chunk.js": "/build/./static/js/246.a1741b45.chunk.js", + "./static/js/247.c8b111dc.chunk.js": "/build/./static/js/247.c8b111dc.chunk.js", + "./static/js/248.74044371.chunk.js": "/build/./static/js/248.74044371.chunk.js", + "./static/js/249.a58b8848.chunk.js": "/build/./static/js/249.a58b8848.chunk.js", + "./static/js/250.a9a6a15e.chunk.js": "/build/./static/js/250.a9a6a15e.chunk.js", + "./static/js/251.a5ebfdaf.chunk.js": "/build/./static/js/251.a5ebfdaf.chunk.js", + "./static/js/252.a423ddb9.chunk.js": "/build/./static/js/252.a423ddb9.chunk.js", + "./static/js/253.feb737b5.chunk.js": "/build/./static/js/253.feb737b5.chunk.js", + "./static/js/254.6596f120.chunk.js": "/build/./static/js/254.6596f120.chunk.js", + "./static/js/255.b1c9e338.chunk.js": "/build/./static/js/255.b1c9e338.chunk.js", + "./static/js/256.7a24c82f.chunk.js": "/build/./static/js/256.7a24c82f.chunk.js", + "./static/js/257.8bd67482.chunk.js": "/build/./static/js/257.8bd67482.chunk.js", + "./static/js/258.b7fc7746.chunk.js": "/build/./static/js/258.b7fc7746.chunk.js", + "./static/js/259.fce0a7e2.chunk.js": "/build/./static/js/259.fce0a7e2.chunk.js", + "./static/js/260.b3b15045.chunk.js": "/build/./static/js/260.b3b15045.chunk.js", + "./static/js/261.5bf52151.chunk.js": "/build/./static/js/261.5bf52151.chunk.js", + "./static/js/262.eb68764c.chunk.js": "/build/./static/js/262.eb68764c.chunk.js", + "./static/js/263.87e3c9ab.chunk.js": "/build/./static/js/263.87e3c9ab.chunk.js", + "./static/js/264.708414cd.chunk.js": "/build/./static/js/264.708414cd.chunk.js", + "./static/js/265.c8b44404.chunk.js": "/build/./static/js/265.c8b44404.chunk.js", + "./static/js/266.fec9786e.chunk.js": "/build/./static/js/266.fec9786e.chunk.js", + "./static/js/267.8f65000c.chunk.js": "/build/./static/js/267.8f65000c.chunk.js", + "./static/js/268.1623f7d1.chunk.js": "/build/./static/js/268.1623f7d1.chunk.js", + "./static/js/269.414e56f3.chunk.js": "/build/./static/js/269.414e56f3.chunk.js", + "./static/js/270.efe20e74.chunk.js": "/build/./static/js/270.efe20e74.chunk.js", + "./static/js/271.3ab3a289.chunk.js": "/build/./static/js/271.3ab3a289.chunk.js", + "./static/js/272.c0102a51.chunk.js": "/build/./static/js/272.c0102a51.chunk.js", + "./static/js/273.31be1441.chunk.js": "/build/./static/js/273.31be1441.chunk.js", + "./static/js/274.56798539.chunk.js": "/build/./static/js/274.56798539.chunk.js", + "main.css": "/build/static/css/main.34f8b4f8.chunk.css", + "main.js": "/build/./static/js/main.32a56dba.chunk.js", + "runtime~main.js": "/build/./static/js/runtime~main.7eb5721b.js", + "./static/js/10.99988b84.chunk.js.LICENSE.txt": "/build/./static/js/10.99988b84.chunk.js.LICENSE.txt", + "./static/js/269.414e56f3.chunk.js.LICENSE.txt": "/build/./static/js/269.414e56f3.chunk.js.LICENSE.txt", + "./static/js/36.b9db1aac.chunk.js.LICENSE.txt": "/build/./static/js/36.b9db1aac.chunk.js.LICENSE.txt", + "./static/js/39.496b9c8d.chunk.js.LICENSE.txt": "/build/./static/js/39.496b9c8d.chunk.js.LICENSE.txt", + "./static/js/93.1d6fcf7b.chunk.js.LICENSE.txt": "/build/./static/js/93.1d6fcf7b.chunk.js.LICENSE.txt", + "./static/js/main.32a56dba.chunk.js.LICENSE.txt": "/build/./static/js/main.32a56dba.chunk.js.LICENSE.txt", + "css.worker.js": "/build/css.worker.js", + "editor.worker.js": "/build/editor.worker.js", + "html.worker.js": "/build/html.worker.js", + "index.html": "/build/index.html", + "json.worker.js": "/build/json.worker.js", + "static/media/Index.scss": "/build/static/media/typebg.b2b0ea32.png", + "static/media/2-2-1.afd0f2f5.png": "/build/static/media/2-2-1.afd0f2f5.png", + "static/media/2-2-2.26bc3301.png": "/build/static/media/2-2-2.26bc3301.png", + "static/media/2-2-3.6d6ce99c.png": "/build/static/media/2-2-3.6d6ce99c.png", + "static/media/2-2-head.5e69dbb2.png": "/build/static/media/2-2-head.5e69dbb2.png", + "static/media/2-3-1.bcb33d47.png": "/build/static/media/2-3-1.bcb33d47.png", + "static/media/2-3-2.57ef08ae.png": "/build/static/media/2-3-2.57ef08ae.png", + "static/media/2-3-3.52733627.png": "/build/static/media/2-3-3.52733627.png", + "static/media/2-3-4.339b2f1c.png": "/build/static/media/2-3-4.339b2f1c.png", + "static/media/2-6-1.302b729e.png": "/build/static/media/2-6-1.302b729e.png", + "static/media/2-6-2.b262b91e.png": "/build/static/media/2-6-2.b262b91e.png", + "static/media/3-1.9fdda521.png": "/build/static/media/3-1.9fdda521.png", + "static/media/3-2.47050941.png": "/build/static/media/3-2.47050941.png", + "static/media/3-3.c767aae7.png": "/build/static/media/3-3.c767aae7.png", + "static/media/3-4.92820cbc.png": "/build/static/media/3-4.92820cbc.png", + "static/media/34@2x.ed8e5910.png": "/build/static/media/34@2x.ed8e5910.png", + "static/media/35@2x.33462edc.png": "/build/static/media/35@2x.33462edc.png", + "static/media/36@2x.8f54f5ba.png": "/build/static/media/36@2x.8f54f5ba.png", + "static/media/37@2x.97a40a2a.png": "/build/static/media/37@2x.97a40a2a.png", + "static/media/38@2x.f072fe68.png": "/build/static/media/38@2x.f072fe68.png", + "static/media/39@2x.ee1af05a.png": "/build/static/media/39@2x.ee1af05a.png", + "static/media/4-1.79fa159d.png": "/build/static/media/4-1.79fa159d.png", + "static/media/4-2.9c066e75.png": "/build/static/media/4-2.9c066e75.png", + "static/media/4-3.a1487a5b.png": "/build/static/media/4-3.a1487a5b.png", + "static/media/4-4.5eb40734.png": "/build/static/media/4-4.5eb40734.png", + "static/media/40@2x.f10a55e2.png": "/build/static/media/40@2x.f10a55e2.png", + "static/media/42@2x.25d6b5fd.png": "/build/static/media/42@2x.25d6b5fd.png", + "static/media/44@2x.1374baf9.png": "/build/static/media/44@2x.1374baf9.png", + "static/media/46@2x.e272d43e.png": "/build/static/media/46@2x.e272d43e.png", + "static/media/48@2x.3bde4de9.png": "/build/static/media/48@2x.3bde4de9.png", + "static/media/49.b03e6efe.png": "/build/static/media/49.b03e6efe.png", + "static/media/50@2x.69b76634.png": "/build/static/media/50@2x.69b76634.png", + "static/media/52@2x.41805cbb.png": "/build/static/media/52@2x.41805cbb.png", + "static/media/55@2x.83486b73.png": "/build/static/media/55@2x.83486b73.png", + "static/media/57@2x.8dc6b0b8.png": "/build/static/media/57@2x.8dc6b0b8.png", + "static/media/59@2x.b0884ef0.png": "/build/static/media/59@2x.b0884ef0.png", + "static/media/61@2x.99d3cc3e.png": "/build/static/media/61@2x.99d3cc3e.png", + "static/media/63@2x.49f389b9.png": "/build/static/media/63@2x.49f389b9.png", + "static/media/65@2x.ef33e2f9.png": "/build/static/media/65@2x.ef33e2f9.png", + "static/media/67@2x.4a4f4b6c.png": "/build/static/media/67@2x.4a4f4b6c.png", + "static/media/69@2x.379c6a82.png": "/build/static/media/69@2x.379c6a82.png", + "static/media/70.df160b27.png": "/build/static/media/70.df160b27.png", + "static/media/BJHKHT.f065403a.png": "/build/static/media/BJHKHT.f065403a.png", + "static/media/CEC.3b748059.png": "/build/static/media/CEC.3b748059.png", + "static/media/GFKJ.eb30c414.png": "/build/static/media/GFKJ.eb30c414.png", + "static/media/HSKY.2e76ba44.png": "/build/static/media/HSKY.2e76ba44.png", + "static/media/ISCAS.851fcfda.png": "/build/static/media/ISCAS.851fcfda.png", + "static/media/KYRJLM.2d659e5c.png": "/build/static/media/KYRJLM.2d659e5c.png", + "static/media/katex.css": "/build/static/media/KaTeX_Typewriter-Regular.d3c8e68f.woff", + "static/media/LC.f247fdb8.png": "/build/static/media/LC.f247fdb8.png", + "static/media/LSLM.99387946.png": "/build/static/media/LSLM.99387946.png", + "static/media/ML.08d278e2.png": "/build/static/media/ML.08d278e2.png", + "static/media/NJDX.bb34b326.png": "/build/static/media/NJDX.bb34b326.png", + "static/media/QH.b57a0131.png": "/build/static/media/QH.b57a0131.png", + "static/media/SHJT.426bf0c7.png": "/build/static/media/SHJT.426bf0c7.png", + "static/media/TX.b703476c.png": "/build/static/media/TX.b703476c.png", + "static/media/WXYJY.21e40191.png": "/build/static/media/WXYJY.21e40191.png", + "static/media/XH.a0a88f17.png": "/build/static/media/XH.a0a88f17.png", + "static/media/XJY.b4c57bf1.png": "/build/static/media/XJY.b4c57bf1.png", + "static/media/YKD.4f7e2766.png": "/build/static/media/YKD.4f7e2766.png", + "static/media/ZC.ad056aa5.png": "/build/static/media/ZC.ad056aa5.png", + "static/media/achievements.f20b7e39.png": "/build/static/media/achievements.f20b7e39.png", + "static/media/index.scss": "/build/static/media/visionBackActive.14814f28.png", + "static/media/back1.png": "/build/static/media/back1.1f20bd0a.png", + "static/media/back2.png": "/build/static/media/back2.0041bb9e.png", + "static/media/back3.png": "/build/static/media/back3.16134f64.png", + "static/media/ball.24214b6e.png": "/build/static/media/ball.24214b6e.png", + "static/media/banner-interim.c50ff667.png": "/build/static/media/banner-interim.c50ff667.png", + "static/media/banner-interim1.bc583d0a.png": "/build/static/media/banner-interim1.bc583d0a.png", + "static/media/AboutUs.scss": "/build/static/media/teambanner.fad350dd.png", + "static/media/banner.png": "/build/static/media/banner.84187e6e.png", + "static/media/banner.f7da2db1.png": "/build/static/media/banner.f7da2db1.png", + "static/media/banner2024.65b24d59.jpg": "/build/static/media/banner2024.65b24d59.jpg", + "static/media/banner_list.e02c5e16.jpg": "/build/static/media/banner_list.e02c5e16.jpg", + "static/media/beijing.bfcd5b0e.png": "/build/static/media/beijing.bfcd5b0e.png", + "static/media/LoginRegisterPage.scss": "/build/static/media/rightBg.55f14f0c.png", + "static/media/bgPng.png": "/build/static/media/bgPng.ed010245.png", + "static/media/ccf_logo.a54fdc70.png": "/build/static/media/ccf_logo.a54fdc70.png", + "static/media/ccf_logo1.be10ead7.png": "/build/static/media/ccf_logo1.be10ead7.png", + "static/media/codeafter.c3088c74.png": "/build/static/media/codeafter.c3088c74.png", + "static/media/color1.png": "/build/static/media/color1.5ec57881.png", + "static/media/color2.png": "/build/static/media/color2.a71ab734.png", + "static/media/color3.png": "/build/static/media/color3.76d404ab.png", + "static/media/color4.png": "/build/static/media/color4.e0954f96.png", + "static/media/indexZone1.scss": "/build/static/media/vipTitleBg.64d456e6.png", + "static/media/computer.4fe86b12.png": "/build/static/media/computer.4fe86b12.png", + "static/media/devops.39983f5b.png": "/build/static/media/devops.39983f5b.png", + "static/media/earth.050b1435.png": "/build/static/media/earth.050b1435.png", + "static/media/educoder.png": "/build/static/media/educoder.c918f385.png", + "static/media/emp.png": "/build/static/media/emp.35f6c709.png", + "static/media/freeBanner.292dbf56.png": "/build/static/media/freeBanner.292dbf56.png", + "static/media/fun1.c99ffa49.png": "/build/static/media/fun1.c99ffa49.png", + "static/media/fun2.12f22bca.png": "/build/static/media/fun2.12f22bca.png", + "static/media/fun3.75c280e6.png": "/build/static/media/fun3.75c280e6.png", + "static/media/fun4.f499794e.png": "/build/static/media/fun4.f499794e.png", + "static/media/fun5.96b44942.png": "/build/static/media/fun5.96b44942.png", + "static/media/gitlink-gz.d351910b.png": "/build/static/media/gitlink-gz.d351910b.png", + "static/media/gitlink-qq.90d5ac1b.png": "/build/static/media/gitlink-qq.90d5ac1b.png", + "static/media/gitlink1.4bf0ed96.png": "/build/static/media/gitlink1.4bf0ed96.png", + "static/media/gitlink2.0ec0ec22.png": "/build/static/media/gitlink2.0ec0ec22.png", + "static/media/green_nodata.be7b538b.png": "/build/static/media/green_nodata.be7b538b.png", + "static/media/head.52aa3fc8.png": "/build/static/media/head.52aa3fc8.png", + "static/media/help.0bfb2587.png": "/build/static/media/help.0bfb2587.png", + "static/media/help_bg.d2bb4c18.png": "/build/static/media/help_bg.d2bb4c18.png", + "static/media/huake.63b6a34d.png": "/build/static/media/huake.63b6a34d.png", + "static/media/huawei.73ec7c22.png": "/build/static/media/huawei.73ec7c22.png", + "static/media/icon.1322725f.svg": "/build/static/media/icon.1322725f.svg", + "static/media/ideLogo.svg": "/build/static/media/ideLogo.0dca8d76.svg", + "static/media/Teaching.scss": "/build/static/media/image22.6ff2b063.svg", + "static/media/img1.png": "/build/static/media/img1.676de78a.png", + "static/media/img1.8560258f.png": "/build/static/media/img1.8560258f.png", + "static/media/img1.e0beda57.png": "/build/static/media/img1.e0beda57.png", + "static/media/img1.fc155528.png": "/build/static/media/img1.fc155528.png", + "static/media/img10.64149a3d.png": "/build/static/media/img10.64149a3d.png", + "static/media/img15.87a3556c.png": "/build/static/media/img15.87a3556c.png", + "static/media/img16.32badab9.png": "/build/static/media/img16.32badab9.png", + "static/media/img17.c25d5edc.png": "/build/static/media/img17.c25d5edc.png", + "static/media/img18.4963efc1.png": "/build/static/media/img18.4963efc1.png", + "static/media/img2.789fbbfe.png": "/build/static/media/img2.789fbbfe.png", + "static/media/img2.9e713c6e.png": "/build/static/media/img2.9e713c6e.png", + "static/media/img2.ae303051.png": "/build/static/media/img2.ae303051.png", + "static/media/img3.cee3ac5b.png": "/build/static/media/img3.cee3ac5b.png", + "static/media/img4.53c937cb.png": "/build/static/media/img4.53c937cb.png", + "static/media/img5.ca3a2287.png": "/build/static/media/img5.ca3a2287.png", + "static/media/img6.8f81bf78.png": "/build/static/media/img6.8f81bf78.png", + "static/media/img7.e4a68e6e.png": "/build/static/media/img7.e4a68e6e.png", + "static/media/img8.10500e00.png": "/build/static/media/img8.10500e00.png", + "static/media/img9.d25372ba.png": "/build/static/media/img9.d25372ba.png", + "static/media/importNone.5bada960.png": "/build/static/media/importNone.5bada960.png", + "static/media/introduce.30b50cda.png": "/build/static/media/introduce.30b50cda.png", + "static/media/jijinhui.041fb524.png": "/build/static/media/jijinhui.041fb524.png", + "static/media/lightspot1.9214f0ae.png": "/build/static/media/lightspot1.9214f0ae.png", + "static/media/lightspot2.b7053786.png": "/build/static/media/lightspot2.b7053786.png", + "static/media/lightspot3.2f8af8da.png": "/build/static/media/lightspot3.2f8af8da.png", + "static/media/lightspot4.93769763.png": "/build/static/media/lightspot4.93769763.png", + "static/media/logo.png": "/build/static/media/logo.62af9fee.png", + "static/media/logo.f0d4927b.svg": "/build/static/media/logo.f0d4927b.svg", + "static/media/logo1.77949f0b.png": "/build/static/media/logo1.77949f0b.png", + "static/media/logo1.ec3c2e67.png": "/build/static/media/logo1.ec3c2e67.png", + "static/media/logo2.b04c07f2.png": "/build/static/media/logo2.b04c07f2.png", + "static/media/mainbanner.659efd27.png": "/build/static/media/mainbanner.659efd27.png", + "static/media/mulan.690d2289.png": "/build/static/media/mulan.690d2289.png", + "static/media/newsBg.66918645.png": "/build/static/media/newsBg.66918645.png", + "static/media/nodata.png": "/build/static/media/nodata.e34b5912.png", + "static/media/TPMIndex.css": "/build/static/media/nps2.d5d0b666.png", + "static/media/phone.14961064.svg": "/build/static/media/phone.14961064.svg", + "static/media/qqChat.9e56cc22.png": "/build/static/media/qqChat.9e56cc22.png", + "static/media/resultBanner2.c3095c5d.png": "/build/static/media/resultBanner2.c3095c5d.png", + "static/media/resultBanner3.e11193de.png": "/build/static/media/resultBanner3.e11193de.png", + "static/media/resultBanner4.6eda6ee5.png": "/build/static/media/resultBanner4.6eda6ee5.png", + "static/media/slick-theme.css": "/build/static/media/slick.c94f7671.ttf", + "static/media/sponsor11.5e9da48d.png": "/build/static/media/sponsor11.5e9da48d.png", + "static/media/sponsor21.8a655acc.png": "/build/static/media/sponsor21.8a655acc.png", + "static/media/sponsor22.96e2b643.png": "/build/static/media/sponsor22.96e2b643.png", + "static/media/sponsor31.0fd95bcb.png": "/build/static/media/sponsor31.0fd95bcb.png", + "static/media/sponsor33.27be3b2d.png": "/build/static/media/sponsor33.27be3b2d.png", + "static/media/sponsor42.cac8770a.png": "/build/static/media/sponsor42.cac8770a.png", + "static/media/sponsor43.9e4a3afb.png": "/build/static/media/sponsor43.9e4a3afb.png", + "static/media/studentProject.f5bd2481.png": "/build/static/media/studentProject.f5bd2481.png", + "static/media/studentProject2.78fd5476.png": "/build/static/media/studentProject2.78fd5476.png", + "static/media/subtitle.5019e086.png": "/build/static/media/subtitle.5019e086.png", + "static/media/teacher1.ee492a9b.png": "/build/static/media/teacher1.ee492a9b.png", + "static/media/teacher10.9298db29.png": "/build/static/media/teacher10.9298db29.png", + "static/media/teacher11.8a0d8669.png": "/build/static/media/teacher11.8a0d8669.png", + "static/media/teacher12.47e02224.png": "/build/static/media/teacher12.47e02224.png", + "static/media/teacher13.f7886e36.png": "/build/static/media/teacher13.f7886e36.png", + "static/media/teacher14.83b48396.png": "/build/static/media/teacher14.83b48396.png", + "static/media/teacher15.5d777604.png": "/build/static/media/teacher15.5d777604.png", + "static/media/teacher2.b2b9919d.png": "/build/static/media/teacher2.b2b9919d.png", + "static/media/teacher3.20cb800b.png": "/build/static/media/teacher3.20cb800b.png", + "static/media/teacher4.c15a0bda.png": "/build/static/media/teacher4.c15a0bda.png", + "static/media/teacher5.9397d078.png": "/build/static/media/teacher5.9397d078.png", + "static/media/teacher6.06b6f465.png": "/build/static/media/teacher6.06b6f465.png", + "static/media/teacher7.4102dcc1.png": "/build/static/media/teacher7.4102dcc1.png", + "static/media/teacher8.5d3f117e.png": "/build/static/media/teacher8.5d3f117e.png", + "static/media/teacher9.69b0adae.png": "/build/static/media/teacher9.69b0adae.png", + "static/media/title.132e93bf.png": "/build/static/media/title.132e93bf.png", + "static/media/vision-fw.feb9fd4c.png": "/build/static/media/vision-fw.feb9fd4c.png", + "static/media/vision-jz.a991d471.png": "/build/static/media/vision-jz.a991d471.png", + "static/media/vision-yj.8ca7b113.png": "/build/static/media/vision-yj.8ca7b113.png", + "static/media/vision-zy.e4ac356e.png": "/build/static/media/vision-zy.e4ac356e.png", + "static/media/vision0.c7dbea1d.png": "/build/static/media/vision0.c7dbea1d.png", + "static/media/vision1.072e7be4.png": "/build/static/media/vision1.072e7be4.png", + "static/media/vision2.024daa92.png": "/build/static/media/vision2.024daa92.png", + "static/media/vision3.fee43e80.png": "/build/static/media/vision3.fee43e80.png", + "static/media/xigongye.d51231d3.png": "/build/static/media/xigongye.d51231d3.png", + "static/media/xiuos.67682257.png": "/build/static/media/xiuos.67682257.png", + "static/media/xjy.6e62f4d6.png": "/build/static/media/xjy.6e62f4d6.png", + "static/media/浙江大学.3c545e69.png": "/build/static/media/浙江大学.3c545e69.png", + "ts.worker.js": "/build/ts.worker.js", + "ts.worker.js.LICENSE.txt": "/build/ts.worker.js.LICENSE.txt" +} \ No newline at end of file diff --git a/assets/kindeditor/kindeditor.js b/assets/kindeditor/kindeditor.js new file mode 100644 index 000000000..9e72f7c33 --- /dev/null +++ b/assets/kindeditor/kindeditor.js @@ -0,0 +1,6272 @@ +//function dump_obj(myObject) { +// var s = ""; +// for (var property in myObject) { +// s = s + "\n "+property +": " + myObject[property] ; +// } +// alert(s) +/******************************************************************************* +* KindEditor - WYSIWYG HTML Editor for Internet +* Copyright (C) 2006-2013 kindsoft.net +* +* @author Roddy +* @website http://www.kindsoft.net/ +* @licence http://www.kindsoft.net/license.php +* @version 4.1.10 (2013-11-23) +*******************************************************************************/ +(function (window, undefined) { + if (window.KindEditor) { + return; + } +if (!window.console) { + window.console = {}; +} +if (!console.log) { + console.log = function () {}; +} +var _VERSION = '4.1.10 (2013-11-23)', + _ua = navigator.userAgent.toLowerCase(), + _IE = _ua.indexOf('msie') > -1 && _ua.indexOf('opera') == -1, + _NEWIE = _ua.indexOf('msie') == -1 && _ua.indexOf('trident') > -1, + _GECKO = _ua.indexOf('gecko') > -1 && _ua.indexOf('khtml') == -1, + _WEBKIT = _ua.indexOf('applewebkit') > -1, + _OPERA = _ua.indexOf('opera') > -1, + _MOBILE = _ua.indexOf('mobile') > -1, + _IOS = /ipad|iphone|ipod/.test(_ua), + _QUIRKS = document.compatMode != 'CSS1Compat', + _IERANGE = !window.getSelection, + _matches = /(?:msie|firefox|webkit|opera)[\/:\s](\d+)/.exec(_ua), + _V = _matches ? _matches[1] : '0', + _TIME = new Date().getTime(); +function _isArray(val) { + if (!val) { + return false; + } + return Object.prototype.toString.call(val) === '[object Array]'; +} +function _isFunction(val) { + if (!val) { + return false; + } + return Object.prototype.toString.call(val) === '[object Function]'; +} +function _inArray(val, arr) { + for (var i = 0, len = arr.length; i < len; i++) { + if (val === arr[i]) { + return i; + } + } + return -1; +} +function _each(obj, fn) { + if (_isArray(obj)) { + for (var i = 0, len = obj.length; i < len; i++) { + if (fn.call(obj[i], i, obj[i]) === false) { + break; + } + } + } else { + for (var key in obj) { + if (obj.hasOwnProperty(key)) { + if (fn.call(obj[key], key, obj[key]) === false) { + break; + } + } + } + } +} +function _trim(str) { + return str.replace(/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g, ''); +} +function _inString(val, str, delimiter) { + delimiter = delimiter === undefined ? ',' : delimiter; + return (delimiter + str + delimiter).indexOf(delimiter + val + delimiter) >= 0; +} +function _addUnit(val, unit) { + unit = unit || 'px'; + //return val && /^\d+$/.test(val) ? val + unit : val; + return val && /^-?\d+(?:\.\d+)?$/.test(val) ? val + unit : val; +} +function _removeUnit(val) { + var match; + return val && (match = /(\d+)/.exec(val)) ? parseInt(match[1], 10) : 0; +} +function _escape(val) { + return val.replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); +} +function _unescape(val) { + return val.replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/&/g, '&'); +} +function _toCamel(str) { + var arr = str.split('-'); + str = ''; + _each(arr, function(key, val) { + str += (key > 0) ? val.charAt(0).toUpperCase() + val.substr(1) : val; + }); + return str; +} +function _toHex(val) { + function hex(d) { + var s = parseInt(d, 10).toString(16).toUpperCase(); + return s.length > 1 ? s : '0' + s; + } + return val.replace(/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/ig, + function($0, $1, $2, $3) { + return '#' + hex($1) + hex($2) + hex($3); + } + ); +} +function _toMap(val, delimiter) { + delimiter = delimiter === undefined ? ',' : delimiter; + var map = {}, arr = _isArray(val) ? val : val.split(delimiter), match; + _each(arr, function(key, val) { + if ((match = /^(\d+)\.\.(\d+)$/.exec(val))) { + for (var i = parseInt(match[1], 10); i <= parseInt(match[2], 10); i++) { + map[i.toString()] = true; + } + } else { + map[val] = true; + } + }); + return map; +} +function _toArray(obj, offset) { + return Array.prototype.slice.call(obj, offset || 0); +} +function _undef(val, defaultVal) { + return val === undefined ? defaultVal : val; +} +function _invalidUrl(url) { + return !url || /[<>"]/.test(url); +} +function _addParam(url, param) { + return url.indexOf('?') >= 0 ? url + '&' + param : url + '?' + param; +} +function _extend(child, parent, proto) { + if (!proto) { + proto = parent; + parent = null; + } + var childProto; + if (parent) { + var fn = function () {}; + fn.prototype = parent.prototype; + childProto = new fn(); + _each(proto, function(key, val) { + childProto[key] = val; + }); + } else { + childProto = proto; + } + childProto.constructor = child; + child.prototype = childProto; + child.parent = parent ? parent.prototype : null; +} +function _json(text) { + var match; + if ((match = /\{[\s\S]*\}|\[[\s\S]*\]/.exec(text))) { + text = match[0]; + } + var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; + cx.lastIndex = 0; + if (cx.test(text)) { + text = text.replace(cx, function (a) { + return '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }); + } + if (/^[\],:{}\s]*$/. + test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@'). + replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']'). + replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { + return eval('(' + text + ')'); + } + throw 'JSON parse error'; +} +var _round = Math.round; +var K = { + DEBUG : false, + VERSION : _VERSION, + IE : _IE, + GECKO : _GECKO, + WEBKIT : _WEBKIT, + OPERA : _OPERA, + V : _V, + TIME : _TIME, + each : _each, + isArray : _isArray, + isFunction : _isFunction, + inArray : _inArray, + inString : _inString, + trim : _trim, + addUnit : _addUnit, + removeUnit : _removeUnit, + escape : _escape, + unescape : _unescape, + toCamel : _toCamel, + toHex : _toHex, + toMap : _toMap, + toArray : _toArray, + undef : _undef, + invalidUrl : _invalidUrl, + addParam : _addParam, + extend : _extend, + json : _json +}; +var _INLINE_TAG_MAP = _toMap('a,abbr,acronym,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,img,input,ins,kbd,label,map,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var'), + _BLOCK_TAG_MAP = _toMap('address,applet,blockquote,body,center,dd,dir,div,dl,dt,fieldset,form,frameset,h1,h2,h3,h4,h5,h6,head,hr,html,iframe,ins,isindex,li,map,menu,meta,noframes,noscript,object,ol,p,pre,script,style,table,tbody,td,tfoot,th,thead,title,tr,ul'), + _SINGLE_TAG_MAP = _toMap('area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed'), + _STYLE_TAG_MAP = _toMap('b,basefont,big,del,em,font,i,s,small,span,strike,strong,sub,sup,u'), + _CONTROL_TAG_MAP = _toMap('img,table,input,textarea,button'), + _PRE_TAG_MAP = _toMap('pre,style,script'), + _NOSPLIT_TAG_MAP = _toMap('html,head,body,td,tr,table,ol,ul,li'), + _AUTOCLOSE_TAG_MAP = _toMap('colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr'), + _FILL_ATTR_MAP = _toMap('checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected'), + _VALUE_TAG_MAP = _toMap('input,button,textarea,select'); +// Begining of modification by Macrow +function _getBasePath() { + var refPath = '/assets/kindeditor/'; + var els = document.getElementsByTagName('script'), src; + for (var i = 0, len = els.length; i < len; i++) { + src = els[i].src || ''; + if (/(kindeditor|application)[\w\-\.]*\.js/.test(src)) { + return src.substring(0, src.indexOf('assets')) + refPath; + } + } + return refPath; +} +// End of modification by Macrow +K.basePath = _getBasePath(); +K.options = { + placeholder : '', + local_storage_mdu : '', + local_storage_id : '', + designMode : true, + fullscreenMode : false, + filterMode : true, + wellFormatMode : true, + shadowMode : true, + loadStyleMode : true, + basePath : K.basePath, + emotionsBasePath: '', //TODO http://forge.trustie.net + themesPath : K.basePath + 'themes/', + langPath : K.basePath + 'lang/', + pluginsPath : K.basePath + 'plugins/', + themeType : 'default', + langType : 'zh_CN', + urlType : '', + newlineTag : 'p', + resizeType : 1, + syncType : 'form', + pasteType : 2, + dialogAlignType : 'page', + useContextmenu : true, + fullscreenShortcut : false, + bodyClass : 'ke-content', + indentChar : '\t', + cssPath : K.basePath +'plugins/code/previewcode.css', + cssData : 'font{color:black;}', + minWidth : 650, + minHeight : 100, + minChangeSize : 1, + zIndex : 811213, + items : ['code','emoticons','fontname', + 'forecolor', 'hilitecolor', 'bold', '|', 'justifyleft', 'justifycenter', 'insertorderedlist','insertunorderedlist', '|', + 'formatblock', 'fontsize', '|','indent', 'outdent', + '|','imagedirectupload','table', 'media', 'preview',"more" + ], + noDisableItems : ['source', 'fullscreen'], + colorTable : [ + ['#E53333', '#E56600', '#FF9900', '#64451D', '#DFC5A4', '#FFE500'], + ['#009900', '#006600', '#99BB00', '#B8D100', '#60D978', '#00D5FF'], + ['#337FE5', '#003399', '#4C33E5', '#9933E5', '#CC33E5', '#EE33EE'], + ['#FFFFFF', '#CCCCCC', '#999999', '#666666', '#333333', '#000000'] + ], + fontSizeTable : ['选中的字体大小:','9px', '10px', '12px', '14px', '16px', '18px', '24px', '32px'], + htmlTags : { + font : ['id', 'class', 'color', 'size', 'face', '.background-color'], + span : [ + 'id', 'class', '.color', '.background-color', '.font-size', '.font-family', '.background', + '.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.line-height', 'data-user-id' + ], + div : [ + 'id', 'class', 'align', '.border', '.margin', '.padding', '.text-align', '.color', + '.background-color', '.font-size', '.font-family', '.font-weight', '.background', + '.font-style', '.text-decoration', '.vertical-align', '.margin-left' + ], + table: [ + 'id', 'class', 'border', 'cellspacing', 'cellpadding', 'width', 'height', 'align', 'bordercolor', + '.padding', '.margin', '.border','.border-color', 'bgcolor', '.text-align', '.color', '.background-color', + '.font-size', '.font-family', '.font-weight', '.font-style', '.text-decoration', '.background', + '.width', '.height', '.border-collapse','.table-layout' + ], + 'td,th': [ + 'id', 'class', 'align', 'valign', 'width', 'height', 'colspan', 'rowspan', 'bgcolor', + '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.font-weight', + '.font-style', '.text-decoration', '.vertical-align', '.background', '.border','.border-color', '.text-overflow','.overflow','.white-space' + ], + a : ['id', 'class', 'href', 'target', 'name','data-method','data-remote','rel'], + embed : ['id', 'class', 'src', 'width', 'height', 'type', 'loop', 'autostart', 'quality', '.width', '.height', 'align', 'allowscriptaccess'], + img : ['id', 'class', 'src', 'width', 'height', 'border', 'alt', 'title', 'align', '.width', '.height', '.border'], + 'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : [ + 'id', 'class', 'align', '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.background', + '.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.text-indent', '.margin-left', '.margin', '.border', '.padding' + ], + pre : ['id', 'class'], + hr : ['id', 'class', '.page-break-after'], + 'br,tbody,tr,strong,b,sub,sup,em,i,u,strike,s,del' : ['id', 'class'], + iframe : ['id', 'class', 'src', 'frameborder', 'width', 'height', '.width', '.height'] + }, + layout : '
    ' +}; +var _useCapture = false; +var _INPUT_KEY_MAP = _toMap('8,9,13,32,46,48..57,59,61,65..90,106,109..111,188,190..192,219..222'); +var _CURSORMOVE_KEY_MAP = _toMap('33..40'); +var _CHANGE_KEY_MAP = {}; +_each(_INPUT_KEY_MAP, function(key, val) { + _CHANGE_KEY_MAP[key] = val; +}); +_each(_CURSORMOVE_KEY_MAP, function(key, val) { + _CHANGE_KEY_MAP[key] = val; +}); +function _bindEvent(el, type, fn) { + if (el.addEventListener){ + el.addEventListener(type, fn, _useCapture); + } else if (el.attachEvent){ + el.attachEvent('on' + type, fn); + } +} +function _unbindEvent(el, type, fn) { + if (el.removeEventListener){ + el.removeEventListener(type, fn, _useCapture); + } else if (el.detachEvent){ + el.detachEvent('on' + type, fn); + } +} +var _EVENT_PROPS = ('altKey,attrChange,attrName,bubbles,button,cancelable,charCode,clientX,clientY,ctrlKey,currentTarget,' + + 'data,detail,eventPhase,fromElement,handler,keyCode,metaKey,newValue,offsetX,offsetY,originalTarget,pageX,' + + 'pageY,prevValue,relatedNode,relatedTarget,screenX,screenY,shiftKey,srcElement,target,toElement,view,wheelDelta,which').split(','); +function KEvent(el, event) { + this.init(el, event); +} +_extend(KEvent, { + init : function(el, event) { + var self = this, doc = el.ownerDocument || el.document || el; + self.event = event; + _each(_EVENT_PROPS, function(key, val) { + self[val] = event[val]; + }); + if (!self.target) { + self.target = self.srcElement || doc; + } + if (self.target.nodeType === 3) { + self.target = self.target.parentNode; + } + if (!self.relatedTarget && self.fromElement) { + self.relatedTarget = self.fromElement === self.target ? self.toElement : self.fromElement; + } + if (self.pageX == null && self.clientX != null) { + var d = doc.documentElement, body = doc.body; + self.pageX = self.clientX + (d && d.scrollLeft || body && body.scrollLeft || 0) - (d && d.clientLeft || body && body.clientLeft || 0); + self.pageY = self.clientY + (d && d.scrollTop || body && body.scrollTop || 0) - (d && d.clientTop || body && body.clientTop || 0); + } + if (!self.which && ((self.charCode || self.charCode === 0) ? self.charCode : self.keyCode)) { + self.which = self.charCode || self.keyCode; + } + if (!self.metaKey && self.ctrlKey) { + self.metaKey = self.ctrlKey; + } + if (!self.which && self.button !== undefined) { + self.which = (self.button & 1 ? 1 : (self.button & 2 ? 3 : (self.button & 4 ? 2 : 0))); + } + switch (self.which) { + case 186 : + self.which = 59; + break; + case 187 : + case 107 : + case 43 : + self.which = 61; + break; + case 189 : + case 45 : + self.which = 109; + break; + case 42 : + self.which = 106; + break; + case 47 : + self.which = 111; + break; + case 78 : + self.which = 110; + break; + } + if (self.which >= 96 && self.which <= 105) { + self.which -= 48; + } + }, + preventDefault : function() { + var ev = this.event; + if (ev.preventDefault) { + ev.preventDefault(); + } else { + ev.returnValue = false; + } + }, + stopPropagation : function() { + var ev = this.event; + if (ev.stopPropagation) { + ev.stopPropagation(); + } else { + ev.cancelBubble = true; + } + }, + stop : function() { + this.preventDefault(); + this.stopPropagation(); + } +}); +var _eventExpendo = 'kindeditor_' + _TIME, _eventId = 0, _eventData = {}; +function _getId(el) { + return el[_eventExpendo] || null; +} +function _setId(el) { + el[_eventExpendo] = ++_eventId; + return _eventId; +} +function _removeId(el) { + try { + delete el[_eventExpendo]; + } catch(e) { + if (el.removeAttribute) { + el.removeAttribute(_eventExpendo); + } + } +} +function _bind(el, type, fn) { + if (type.indexOf(',') >= 0) { + _each(type.split(','), function() { + _bind(el, this, fn); + }); + return; + } + var id = _getId(el); + if (!id) { + id = _setId(el); + } + if (_eventData[id] === undefined) { + _eventData[id] = {}; + } + var events = _eventData[id][type]; + if (events && events.length > 0) { + _unbindEvent(el, type, events[0]); + } else { + _eventData[id][type] = []; + _eventData[id].el = el; + } + events = _eventData[id][type]; + if (events.length === 0) { + events[0] = function(e) { + var kevent = e ? new KEvent(el, e) : undefined; + _each(events, function(i, event) { + if (i > 0 && event) { + event.call(el, kevent); + } + }); + }; + } + if (_inArray(fn, events) < 0) { + events.push(fn); + } + _bindEvent(el, type, events[0]); +} +function _unbind(el, type, fn) { + if (type && type.indexOf(',') >= 0) { + _each(type.split(','), function() { + _unbind(el, this, fn); + }); + return; + } + var id = _getId(el); + if (!id) { + return; + } + if (type === undefined) { + if (id in _eventData) { + _each(_eventData[id], function(key, events) { + if (key != 'el' && events.length > 0) { + _unbindEvent(el, key, events[0]); + } + }); + delete _eventData[id]; + _removeId(el); + } + return; + } + if (!_eventData[id]) { + return; + } + var events = _eventData[id][type]; + if (events && events.length > 0) { + if (fn === undefined) { + _unbindEvent(el, type, events[0]); + delete _eventData[id][type]; + } else { + _each(events, function(i, event) { + if (i > 0 && event === fn) { + events.splice(i, 1); + } + }); + if (events.length == 1) { + _unbindEvent(el, type, events[0]); + delete _eventData[id][type]; + } + } + var count = 0; + _each(_eventData[id], function() { + count++; + }); + if (count < 2) { + delete _eventData[id]; + _removeId(el); + } + } +} +function _fire(el, type) { + if (type.indexOf(',') >= 0) { + _each(type.split(','), function() { + _fire(el, this); + }); + return; + } + var id = _getId(el); + if (!id) { + return; + } + var events = _eventData[id][type]; + if (_eventData[id] && events && events.length > 0) { + events[0](); + } +} +function _ctrl(el, key, fn) { + var self = this; + key = /^\d{2,}$/.test(key) ? key : key.toUpperCase().charCodeAt(0); + _bind(el, 'keydown', function(e) { + if (e.ctrlKey && e.which == key && !e.shiftKey && !e.altKey) { + fn.call(el); + e.stop(); + } + }); +} +var _readyFinished = false; +function _ready(fn) { + if (_readyFinished) { + fn(KindEditor); + return; + } + var loaded = false; + function readyFunc() { + if (!loaded) { + loaded = true; + fn(KindEditor); + _readyFinished = true; + } + } + function ieReadyFunc() { + if (!loaded) { + try { + document.documentElement.doScroll('left'); + } catch(e) { + setTimeout(ieReadyFunc, 100); + return; + } + readyFunc(); + } + } + function ieReadyStateFunc() { + if (document.readyState === 'complete') { + readyFunc(); + } + } + if (document.addEventListener) { + _bind(document, 'DOMContentLoaded', readyFunc); + } else if (document.attachEvent) { + _bind(document, 'readystatechange', ieReadyStateFunc); + var toplevel = false; + try { + toplevel = window.frameElement == null; + } catch(e) {} + if (document.documentElement.doScroll && toplevel) { + ieReadyFunc(); + } + } + _bind(window, 'load', readyFunc); +} +if (window.attachEvent) { + window.attachEvent('onunload', function() { + _each(_eventData, function(key, events) { + if (events.el) { + _unbind(events.el); + } + }); + }); +} +K.ctrl = _ctrl; +K.ready = _ready; +function _getCssList(css) { + var list = {}, + reg = /\s*([\w\-]+)\s*:([^;]*)(;|$)/g, + match; + while ((match = reg.exec(css))) { + var key = _trim(match[1].toLowerCase()), + val = _trim(_toHex(match[2])); + list[key] = val; + } + return list; +} +function _getAttrList(tag) { + var list = {}, + reg = /\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([^\s"'<>]+))|(?:([\w\-:"]+)="([^"]*)")|(?:([\w\-:"]+)='([^']*)'))(?=(?:\s|\/|>)+)/g, + match; + while ((match = reg.exec(tag))) { + var key = (match[1] || match[2] || match[4] || match[6]).toLowerCase(), + val = (match[2] ? match[3] : (match[4] ? match[5] : match[7])) || ''; + list[key] = val; + } + return list; +} +function _addClassToTag(tag, className) { + if (/\s+class\s*=/.test(tag)) { + tag = tag.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/, function($0, $1, $2, $3) { + if ((' ' + $2 + ' ').indexOf(' ' + className + ' ') < 0) { + return $2 === '' ? $1 + className + $3 : $1 + $2 + ' ' + className + $3; + } else { + return $0; + } + }); + } else { + tag = tag.substr(0, tag.length - 1) + ' class="' + className + '">'; + } + return tag; +} +function _formatCss(css) { + var str = ''; + _each(_getCssList(css), function(key, val) { + str += key + ':' + val + ';'; + }); + return str; +} +function _formatUrl(url, mode, host, pathname) { + mode = _undef(mode, '').toLowerCase(); + if (url.substr(0, 5) != 'data:') { + url = url.replace(/([^:])\/\//g, '$1/'); + } + if (_inArray(mode, ['absolute', 'relative', 'domain']) < 0) { + return url; + } + host = host || location.protocol + '//' + location.host; + if (pathname === undefined) { + var m = location.pathname.match(/^(\/.*)\//); + pathname = m ? m[1] : ''; + } + var match; + if ((match = /^(\w+:\/\/[^\/]*)/.exec(url))) { + if (match[1] !== host) { + return url; + } + } else if (/^\w+:/.test(url)) { + return url; + } + function getRealPath(path) { + var parts = path.split('/'), paths = []; + for (var i = 0, len = parts.length; i < len; i++) { + var part = parts[i]; + if (part == '..') { + if (paths.length > 0) { + paths.pop(); + } + } else if (part !== '' && part != '.') { + paths.push(part); + } + } + return '/' + paths.join('/'); + } + if (/^\//.test(url)) { + url = host + getRealPath(url.substr(1)); + } else if (!/^\w+:\/\//.test(url)) { + url = host + getRealPath(pathname + '/' + url); + } + function getRelativePath(path, depth) { + if (url.substr(0, path.length) === path) { + var arr = []; + for (var i = 0; i < depth; i++) { + arr.push('..'); + } + var prefix = '.'; + if (arr.length > 0) { + prefix += '/' + arr.join('/'); + } + if (pathname == '/') { + prefix += '/'; + } + return prefix + url.substr(path.length); + } else { + if ((match = /^(.*)\//.exec(path))) { + return getRelativePath(match[1], ++depth); + } + } + } + if (mode === 'relative') { + url = getRelativePath(host + pathname, 0).substr(2); + } else if (mode === 'absolute') { + if (url.substr(0, host.length) === host) { + url = url.substr(host.length); + } + } + return url; +} +function _formatHtml(html, htmlTags, urlType, wellFormatted, indentChar) { + if (html == null) { + html = ''; + } + urlType = urlType || ''; + wellFormatted = _undef(wellFormatted, false); + indentChar = _undef(indentChar, '\t'); + var fontSizeList = 'xx-small,x-small,small,medium,large,x-large,xx-large'.split(','); + html = html.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/ig, function($0, $1, $2, $3) { + return $1 + $2.replace(/<(?:br|br\s[^>]*)>/ig, '\n') + $3; + }); + html = html.replace(/<(?:br|br\s[^>]*)\s*\/?>\s*<\/p>/ig, '

    '); + html = html.replace(/(<(?:p|p\s[^>]*)>)\s*(<\/p>)/ig, '$1
    $2'); + html = html.replace(/\u200B/g, ''); + html = html.replace(/\u00A9/g, '©'); + html = html.replace(/\u00AE/g, '®'); + html = html.replace(/\u2003/g, ' '); + html = html.replace(/\u3000/g, ' '); + html = html.replace(/<[^>]+/g, function($0) { + return $0.replace(/\s+/g, ' '); + }); + var htmlTagMap = {}; + if (htmlTags) { + _each(htmlTags, function(key, val) { + var arr = key.split(','); + for (var i = 0, len = arr.length; i < len; i++) { + htmlTagMap[arr[i]] = _toMap(val); + } + }); + if (!htmlTagMap.script) { + html = html.replace(/(<(?:script|script\s[^>]*)>)([\s\S]*?)(<\/script>)/ig, ''); + } + if (!htmlTagMap.style) { + html = html.replace(/(<(?:style|style\s[^>]*)>)([\s\S]*?)(<\/style>)/ig, ''); + } + } + var re = /(\s*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"'<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+='[^']*'))*)(\/)?>(\s*)/g; + var tagStack = []; + html = html.replace(re, function($0, $1, $2, $3, $4, $5, $6) { + var full = $0, + startNewline = $1 || '', + startSlash = $2 || '', + tagName = $3.toLowerCase(), + attr = $4 || '', + endSlash = $5 ? ' ' + $5 : '', + endNewline = $6 || ''; + if (htmlTags && !htmlTagMap[tagName]) { + return ''; + } + if (endSlash === '' && _SINGLE_TAG_MAP[tagName]) { + endSlash = ' /'; + } + if (_INLINE_TAG_MAP[tagName]) { + if (startNewline) { + startNewline = ' '; + } + if (endNewline) { + endNewline = ' '; + } + } + if (_PRE_TAG_MAP[tagName]) { + if (startSlash) { + endNewline = '\n'; + } else { + startNewline = '\n'; + } + } + if (wellFormatted && tagName == 'br') { + endNewline = '\n'; + } + if (_BLOCK_TAG_MAP[tagName] && !_PRE_TAG_MAP[tagName]) { + if (wellFormatted) { + if (startSlash && tagStack.length > 0 && tagStack[tagStack.length - 1] === tagName) { + tagStack.pop(); + } else { + tagStack.push(tagName); + } + startNewline = '\n'; + endNewline = '\n'; + for (var i = 0, len = startSlash ? tagStack.length : tagStack.length - 1; i < len; i++) { + startNewline += indentChar; + if (!startSlash) { + endNewline += indentChar; + } + } + if (endSlash) { + tagStack.pop(); + } else if (!startSlash) { + endNewline += indentChar; + } + } else { + startNewline = endNewline = ''; + } + } + //blockquote 单独加上style 之后再改成接口 给别的加上默认的 + if (attr !== '' || (tagName === 'blockquote')) { + var attrMap = _getAttrList(full); + if (tagName === 'font') { + var fontStyleMap = {}, fontStyle = ''; + _each(attrMap, function(key, val) { + if (key === 'color') { + fontStyleMap.color = val; + delete attrMap[key]; + } + if (key === 'size') { + fontStyleMap['font-size'] = fontSizeList[parseInt(val, 10) - 1] || ''; + delete attrMap[key]; + } + if (key === 'face') { + fontStyleMap['font-family'] = val; + delete attrMap[key]; + } + if (key === 'style') { + fontStyle = val; + } + }); + if (fontStyle && !/;$/.test(fontStyle)) { + fontStyle += ';'; + } + _each(fontStyleMap, function(key, val) { + if (val === '') { + return; + } + if (/\s/.test(val)) { + val = "'" + val + "'"; + } + fontStyle += key + ':' + val + ';'; + }); + attrMap.style = fontStyle; + } + _each(attrMap, function(key, val) { + if (_FILL_ATTR_MAP[key]) { + attrMap[key] = key; + } + if (_inArray(key, ['src', 'href']) >= 0) { + attrMap[key] = _formatUrl(val, urlType); + } + if (htmlTags && key !== 'style' && !htmlTagMap[tagName]['*'] && !htmlTagMap[tagName][key] || + tagName === 'body' && key === 'contenteditable' || + /^kindeditor_\d+$/.test(key)) { + delete attrMap[key]; + } + if (key === 'style' && val !== '') { + var styleMap = _getCssList(val); + _each(styleMap, function(k, v) { + if (htmlTags && !htmlTagMap[tagName].style && !htmlTagMap[tagName]['.' + k]) { + delete styleMap[k]; + } + }); + var style = ''; + _each(styleMap, function(k, v) { + style += k + ':' + v + ';'; + }); + attrMap.style = style; + } + }); + attr = ''; + if (tagName === 'blockquote') { + attrMap['style'] = "margin: 0 0 0 40px; border: none; padding: 0px;background: none;background-color: ;"; + } + _each(attrMap, function(key, val) { + if (key === 'style' && val === '') { + return; + } + val = val.replace(/"/g, '"'); + attr += ' ' + key + '="' + val + '"'; + }); + } + if (tagName === 'font') { + tagName = 'span'; + } + return startNewline + '<' + startSlash + tagName + attr + endSlash + '>' + endNewline; + }); + html = html.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/ig, function($0, $1, $2, $3) { + return $1 + $2.replace(/\n/g, '\n') + $3; + }); + html = html.replace(/\n\s*\n/g, '\n'); + html = html.replace(/\n/g, '\n'); + return _trim(html); +} +function _clearMsWord(html, htmlTags) { + html = html.replace(//ig, '') + .replace(//ig, '') + .replace(/]*>[\s\S]*?<\/style>/ig, '') + .replace(/]*>[\s\S]*?<\/script>/ig, '') + .replace(/]+>[\s\S]*?<\/w:[^>]+>/ig, '') + .replace(/]+>[\s\S]*?<\/o:[^>]+>/ig, '') + .replace(/[\s\S]*?<\/xml>/ig, '') + .replace(/<(?:table|td)[^>]*>/ig, function(full) { + return full.replace(/border-bottom:([#\w\s]+)/ig, 'border:$1'); + }); + return _formatHtml(html, htmlTags); +} +function _mediaType(src) { + if (/\.(rm|rmvb)(\?|$)/i.test(src)) { + return 'audio/x-pn-realaudio-plugin'; + } + if (/\.(swf|flv)(\?|$)/i.test(src)) { + return 'application/x-shockwave-flash'; + } + return 'video/x-ms-asf-plugin'; +} +function _mediaClass(type) { + if (/realaudio/i.test(type)) { + return 'ke-rm'; + } + if (/flash/i.test(type)) { + return 'ke-flash'; + } + return 'ke-media'; +} +function _mediaAttrs(srcTag) { + return _getAttrList(unescape(srcTag)); +} +function _mediaEmbed(attrs,target) { + if(target && target === "media"){ + var html = [[],""); + html[0] = html[0].join(""); + html.push("/>
    "); + return html.join(""); + }else{ + var html = ' 0) { + style += 'width:' + width + 'px;'; + } + if (/\D/.test(height)) { + style += 'height:' + height + ';'; + } else if (height > 0) { + style += 'height:' + height + 'px;'; + } + var html = ''; + return html; +} +function _tmpl(str, data) { + var fn = new Function("obj", + "var p=[],print=function(){p.push.apply(p,arguments);};" + + "with(obj){p.push('" + + str.replace(/[\r\t\n]/g, " ") + .split("<%").join("\t") + .replace(/((^|%>)[^\t]*)'/g, "$1\r") + .replace(/\t=(.*?)%>/g, "',$1,'") + .split("\t").join("');") + .split("%>").join("p.push('") + .split("\r").join("\\'") + "');}return p.join('');"); + return data ? fn(data) : fn; +} +K.formatUrl = _formatUrl; +K.formatHtml = _formatHtml; +K.getCssList = _getCssList; +K.getAttrList = _getAttrList; +K.mediaType = _mediaType; +K.mediaAttrs = _mediaAttrs; +K.mediaEmbed = _mediaEmbed; +K.mediaImg = _mediaImg; +K.clearMsWord = _clearMsWord; +K.tmpl = _tmpl; +function _contains(nodeA, nodeB) { + if (nodeA.nodeType == 9 && nodeB.nodeType != 9) { + return true; + } + while ((nodeB = nodeB.parentNode)) { + if (nodeB == nodeA) { + return true; + } + } + return false; +} +var _getSetAttrDiv = document.createElement('div'); +_getSetAttrDiv.setAttribute('className', 't'); +var _GET_SET_ATTRIBUTE = _getSetAttrDiv.className !== 't'; +function _getAttr(el, key) { + key = key.toLowerCase(); + var val = null; + if (!_GET_SET_ATTRIBUTE && el.nodeName.toLowerCase() != 'script') { + var div = el.ownerDocument.createElement('div'); + div.appendChild(el.cloneNode(false)); + var list = _getAttrList(_unescape(div.innerHTML)); + if (key in list) { + val = list[key]; + } + } else { + try { + val = el.getAttribute(key, 2); + } catch(e) { + val = el.getAttribute(key, 1); + } + } + if (key === 'style' && val !== null) { + val = _formatCss(val); + } + return val; +} +function _queryAll(expr, root) { + var exprList = expr.split(','); + if (exprList.length > 1) { + var mergedResults = []; + _each(exprList, function() { + _each(_queryAll(this, root), function() { + if (_inArray(this, mergedResults) < 0) { + mergedResults.push(this); + } + }); + }); + return mergedResults; + } + root = root || document; + function escape(str) { + if (typeof str != 'string') { + return str; + } + return str.replace(/([^\w\-])/g, '\\$1'); + } + function stripslashes(str) { + return str.replace(/\\/g, ''); + } + function cmpTag(tagA, tagB) { + return tagA === '*' || tagA.toLowerCase() === escape(tagB.toLowerCase()); + } + function byId(id, tag, root) { + var arr = [], + doc = root.ownerDocument || root, + el = doc.getElementById(stripslashes(id)); + if (el) { + if (cmpTag(tag, el.nodeName) && _contains(root, el)) { + arr.push(el); + } + } + return arr; + } + function byClass(className, tag, root) { + var doc = root.ownerDocument || root, arr = [], els, i, len, el; + if (root.getElementsByClassName) { + els = root.getElementsByClassName(stripslashes(className)); + for (i = 0, len = els.length; i < len; i++) { + el = els[i]; + if (cmpTag(tag, el.nodeName)) { + arr.push(el); + } + } + } else if (doc.querySelectorAll) { + els = doc.querySelectorAll((root.nodeName !== '#document' ? root.nodeName + ' ' : '') + tag + '.' + className); + for (i = 0, len = els.length; i < len; i++) { + el = els[i]; + if (_contains(root, el)) { + arr.push(el); + } + } + } else { + els = root.getElementsByTagName(tag); + className = ' ' + className + ' '; + for (i = 0, len = els.length; i < len; i++) { + el = els[i]; + if (el.nodeType == 1) { + var cls = el.className; + if (cls && (' ' + cls + ' ').indexOf(className) > -1) { + arr.push(el); + } + } + } + } + return arr; + } + function byName(name, tag, root) { + var arr = [], doc = root.ownerDocument || root, + els = doc.getElementsByName(stripslashes(name)), el; + for (var i = 0, len = els.length; i < len; i++) { + el = els[i]; + if (cmpTag(tag, el.nodeName) && _contains(root, el)) { + if (el.getAttribute('name') !== null) { + arr.push(el); + } + } + } + return arr; + } + function byAttr(key, val, tag, root) { + var arr = [], els = root.getElementsByTagName(tag), el; + for (var i = 0, len = els.length; i < len; i++) { + el = els[i]; + if (el.nodeType == 1) { + if (val === null) { + if (_getAttr(el, key) !== null) { + arr.push(el); + } + } else { + if (val === escape(_getAttr(el, key))) { + arr.push(el); + } + } + } + } + return arr; + } + function select(expr, root) { + var arr = [], matches; + matches = /^((?:\\.|[^.#\s\[<>])+)/.exec(expr); + var tag = matches ? matches[1] : '*'; + if ((matches = /#((?:[\w\-]|\\.)+)$/.exec(expr))) { + arr = byId(matches[1], tag, root); + } else if ((matches = /\.((?:[\w\-]|\\.)+)$/.exec(expr))) { + arr = byClass(matches[1], tag, root); + } else if ((matches = /\[((?:[\w\-]|\\.)+)\]/.exec(expr))) { + arr = byAttr(matches[1].toLowerCase(), null, tag, root); + } else if ((matches = /\[((?:[\w\-]|\\.)+)\s*=\s*['"]?((?:\\.|[^'"]+)+)['"]?\]/.exec(expr))) { + var key = matches[1].toLowerCase(), val = matches[2]; + if (key === 'id') { + arr = byId(val, tag, root); + } else if (key === 'class') { + arr = byClass(val, tag, root); + } else if (key === 'name') { + arr = byName(val, tag, root); + } else { + arr = byAttr(key, val, tag, root); + } + } else { + var els = root.getElementsByTagName(tag), el; + for (var i = 0, len = els.length; i < len; i++) { + el = els[i]; + if (el.nodeType == 1) { + arr.push(el); + } + } + } + return arr; + } + var parts = [], arr, re = /((?:\\.|[^\s>])+|[\s>])/g; + while ((arr = re.exec(expr))) { + if (arr[1] !== ' ') { + parts.push(arr[1]); + } + } + var results = []; + if (parts.length == 1) { + return select(parts[0], root); + } + var isChild = false, part, els, subResults, val, v, i, j, k, length, len, l; + for (i = 0, lenth = parts.length; i < lenth; i++) { + part = parts[i]; + if (part === '>') { + isChild = true; + continue; + } + if (i > 0) { + els = []; + for (j = 0, len = results.length; j < len; j++) { + val = results[j]; + subResults = select(part, val); + for (k = 0, l = subResults.length; k < l; k++) { + v = subResults[k]; + if (isChild) { + if (val === v.parentNode) { + els.push(v); + } + } else { + els.push(v); + } + } + } + results = els; + } else { + results = select(part, root); + } + if (results.length === 0) { + return []; + } + } + return results; +} +function _query(expr, root) { + var arr = _queryAll(expr, root); + return arr.length > 0 ? arr[0] : null; +} +K.query = _query; +K.queryAll = _queryAll; +function _get(val) { + return K(val)[0]; +} +function _getDoc(node) { + if (!node) { + return document; + } + return node.ownerDocument || node.document || node; +} +function _getWin(node) { + if (!node) { + return window; + } + var doc = _getDoc(node); + return doc.parentWindow || doc.defaultView; +} +function _setHtml(el, html) { + if (el.nodeType != 1) { + return; + } + var doc = _getDoc(el); + try { + el.innerHTML = '' + html; + var temp = doc.getElementById('__kindeditor_temp_tag__'); + temp.parentNode.removeChild(temp); + } catch(e) { + K(el).empty(); + K('@' + html, doc).each(function() { + el.appendChild(this); + }); + } +} +function _hasClass(el, cls) { + return _inString(cls, el.className, ' '); +} +function _setAttr(el, key, val) { + if (_IE && _V < 8 && key.toLowerCase() == 'class') { + key = 'className'; + } + el.setAttribute(key, '' + val); +} +function _removeAttr(el, key) { + if (_IE && _V < 8 && key.toLowerCase() == 'class') { + key = 'className'; + } + _setAttr(el, key, ''); + el.removeAttribute(key); +} +function _getNodeName(node) { + if (!node || !node.nodeName) { + return ''; + } + return node.nodeName.toLowerCase(); +} +function _computedCss(el, key) { + var self = this, win = _getWin(el), camelKey = _toCamel(key), val = ''; + if (win.getComputedStyle) { + var style = win.getComputedStyle(el, null); + val = style[camelKey] || style.getPropertyValue(key) || el.style[camelKey]; + } else if (el.currentStyle) { + val = el.currentStyle[camelKey] || el.style[camelKey]; + } + return val; +} +function _hasVal(node) { + return !!_VALUE_TAG_MAP[_getNodeName(node)]; +} +function _docElement(doc) { + doc = doc || document; + return _QUIRKS ? doc.body : doc.documentElement; +} +function _docHeight(doc) { + var el = _docElement(doc); + return Math.max(el.scrollHeight, el.clientHeight); +} +function _docWidth(doc) { + var el = _docElement(doc); + return Math.max(el.scrollWidth, el.clientWidth); +} +function _getScrollPos(doc) { + doc = doc || document; + var x, y; + if (_IE || _NEWIE || _OPERA) { + x = _docElement(doc).scrollLeft; + y = _docElement(doc).scrollTop; + } else { + x = _getWin(doc).scrollX; + y = _getWin(doc).scrollY; + } + return {x : x, y : y}; +} +function KNode(node) { + this.init(node); +} +_extend(KNode, { + init : function(node) { + var self = this; + node = _isArray(node) ? node : [node]; + var length = 0; + for (var i = 0, len = node.length; i < len; i++) { + if (node[i]) { + self[i] = node[i].constructor === KNode ? node[i][0] : node[i]; + length++; + } + } + self.length = length; + self.doc = _getDoc(self[0]); + self.name = _getNodeName(self[0]); + self.type = self.length > 0 ? self[0].nodeType : null; + self.win = _getWin(self[0]); + }, + each : function(fn) { + var self = this; + for (var i = 0; i < self.length; i++) { + if (fn.call(self[i], i, self[i]) === false) { + return self; + } + } + return self; + }, + bind : function(type, fn) { + this.each(function() { + _bind(this, type, fn); + }); + return this; + }, + unbind : function(type, fn) { + this.each(function() { + _unbind(this, type, fn); + }); + return this; + }, + fire : function(type) { + if (this.length < 1) { + return this; + } + _fire(this[0], type); + return this; + }, + hasAttr : function(key) { + if (this.length < 1) { + return false; + } + return !!_getAttr(this[0], key); + }, + attr : function(key, val) { + var self = this; + if (key === undefined) { + return _getAttrList(self.outer()); + } + if (typeof key === 'object') { + _each(key, function(k, v) { + self.attr(k, v); + }); + return self; + } + if (val === undefined) { + val = self.length < 1 ? null : _getAttr(self[0], key); + return val === null ? '' : val; + } + self.each(function() { + _setAttr(this, key, val); + }); + return self; + }, + removeAttr : function(key) { + this.each(function() { + _removeAttr(this, key); + }); + return this; + }, + get : function(i) { + if (this.length < 1) { + return null; + } + return this[i || 0]; + }, + eq : function(i) { + if (this.length < 1) { + return null; + } + return this[i] ? new KNode(this[i]) : null; + }, + hasClass : function(cls) { + if (this.length < 1) { + return false; + } + return _hasClass(this[0], cls); + }, + addClass : function(cls) { + this.each(function() { + if (!_hasClass(this, cls)) { + this.className = _trim(this.className + ' ' + cls); + } + }); + return this; + }, + removeClass : function(cls) { + this.each(function() { + if (_hasClass(this, cls)) { + this.className = _trim(this.className.replace(new RegExp('(^|\\s)' + cls + '(\\s|$)'), ' ')); + } + }); + return this; + }, + html : function(val) { + var self = this; + if (val === undefined) { + if (self.length < 1 || self.type != 1) { + return ''; + } + return _formatHtml(self[0].innerHTML); + } + self.each(function() { + _setHtml(this, val); + }); + return self; + }, + text : function() { + var self = this; + if (self.length < 1) { + return ''; + } + return _IE ? self[0].innerText : self[0].textContent; + }, + hasVal : function() { + if (this.length < 1) { + return false; + } + return _hasVal(this[0]); + }, + val : function(val) { + var self = this; + if (val === undefined) { + if (self.length < 1) { + return ''; + } + return self.hasVal() ? self[0].value : self.attr('value'); + } else { + self.each(function() { + if (_hasVal(this)) { + this.value = val; + } else { + _setAttr(this, 'value' , val); + } + }); + return self; + } + }, + css : function(key, val) { + var self = this; + if (key === undefined) { + return _getCssList(self.attr('style')); + } + if (typeof key === 'object') { + _each(key, function(k, v) { + self.css(k, v); + }); + return self; + } + if (val === undefined) { + if (self.length < 1) { + return ''; + } + return self[0].style[_toCamel(key)] || _computedCss(self[0], key) || ''; + } + self.each(function() { + this.style[_toCamel(key)] = val; + }); + return self; + }, + width : function(val) { + var self = this; + if (val === undefined) { + if (self.length < 1) { + return 0; + } + return self[0].offsetWidth; + } + return self.css('width', _addUnit(val)); + }, + height : function(val) { + var self = this; + if (val === undefined) { + if (self.length < 1) { + return 0; + } + return self[0].offsetHeight; + } + return self.css('height', _addUnit(val)); + }, + opacity : function(val) { + this.each(function() { + if (this.style.opacity === undefined) { + this.style.filter = val == 1 ? '' : 'alpha(opacity=' + (val * 100) + ')'; + } else { + this.style.opacity = val == 1 ? '' : val; + } + }); + return this; + }, + data : function(key, val) { + var self = this; + key = 'kindeditor_data_' + key; + if (val === undefined) { + if (self.length < 1) { + return null; + } + return self[0][key]; + } + this.each(function() { + this[key] = val; + }); + return self; + }, + pos : function() { + var self = this, node = self[0], x = 0, y = 0; + if (node) { + if (node.getBoundingClientRect) { + var box = node.getBoundingClientRect(), + pos = _getScrollPos(self.doc); + x = box.left + pos.x; + y = box.top + pos.y; + } else { + while (node) { + x += node.offsetLeft; + y += node.offsetTop; + node = node.offsetParent; + } + } + } + return {x : _round(x), y : _round(y)}; + }, + clone : function(bool) { + if (this.length < 1) { + return new KNode([]); + } + return new KNode(this[0].cloneNode(bool)); + }, + append : function(expr) { + this.each(function() { + if (this.appendChild) { + this.appendChild(_get(expr)); + } + }); + return this; + }, + appendTo : function(expr) { + this.each(function() { + _get(expr).appendChild(this); + }); + return this; + }, + before : function(expr) { + this.each(function() { + this.parentNode.insertBefore(_get(expr), this); + }); + return this; + }, + after : function(expr) { + this.each(function() { + if (this.nextSibling) { + this.parentNode.insertBefore(_get(expr), this.nextSibling); + } else { + this.parentNode.appendChild(_get(expr)); + } + }); + return this; + }, + replaceWith : function(expr) { + var nodes = []; + this.each(function(i, node) { + _unbind(node); + var newNode = _get(expr); + node.parentNode.replaceChild(newNode, node); + nodes.push(newNode); + }); + return K(nodes); + }, + empty : function() { + var self = this; + self.each(function(i, node) { + var child = node.firstChild; + while (child) { + if (!node.parentNode) { + return; + } + var next = child.nextSibling; + child.parentNode.removeChild(child); + child = next; + } + }); + return self; + }, + remove : function(keepChilds) { + var self = this; + self.each(function(i, node) { + if (!node.parentNode) { + return; + } + _unbind(node); + if (keepChilds) { + var child = node.firstChild; + while (child) { + var next = child.nextSibling; + node.parentNode.insertBefore(child, node); + child = next; + } + } + node.parentNode.removeChild(node); + delete self[i]; + }); + self.length = 0; + return self; + }, + show : function(val) { + var self = this; + if (val === undefined) { + val = self._originDisplay || ''; + } + if (self.css('display') != 'none') { + return self; + } + return self.css('display', val); + }, + hide : function() { + var self = this; + if (self.length < 1) { + return self; + } + self._originDisplay = self[0].style.display; + return self.css('display', 'none'); + }, + outer : function() { + var self = this; + if (self.length < 1) { + return ''; + } + var div = self.doc.createElement('div'), html; + div.appendChild(self[0].cloneNode(true)); + html = _formatHtml(div.innerHTML); + div = null; + return html; + }, + isSingle : function() { + return !!_SINGLE_TAG_MAP[this.name]; + }, + isInline : function() { + return !!_INLINE_TAG_MAP[this.name]; + }, + isBlock : function() { + return !!_BLOCK_TAG_MAP[this.name]; + }, + isStyle : function() { + return !!_STYLE_TAG_MAP[this.name]; + }, + isControl : function() { + return !!_CONTROL_TAG_MAP[this.name]; + }, + contains : function(otherNode) { + if (this.length < 1) { + return false; + } + return _contains(this[0], _get(otherNode)); + }, + parent : function() { + if (this.length < 1) { + return null; + } + var node = this[0].parentNode; + return node ? new KNode(node) : null; + }, + children : function() { + if (this.length < 1) { + return new KNode([]); + } + var list = [], child = this[0].firstChild; + while (child) { + if (child.nodeType != 3 || _trim(child.nodeValue) !== '') { + list.push(child); + } + child = child.nextSibling; + } + return new KNode(list); + }, + first : function() { + var list = this.children(); + return list.length > 0 ? list.eq(0) : null; + }, + last : function() { + var list = this.children(); + return list.length > 0 ? list.eq(list.length - 1) : null; + }, + index : function() { + if (this.length < 1) { + return -1; + } + var i = -1, sibling = this[0]; + while (sibling) { + i++; + sibling = sibling.previousSibling; + } + return i; + }, + prev : function() { + if (this.length < 1) { + return null; + } + var node = this[0].previousSibling; + return node ? new KNode(node) : null; + }, + next : function() { + if (this.length < 1) { + return null; + } + var node = this[0].nextSibling; + return node ? new KNode(node) : null; + }, + scan : function(fn, order) { + if (this.length < 1) { + return; + } + order = (order === undefined) ? true : order; + function walk(node) { + var n = order ? node.firstChild : node.lastChild; + while (n) { + var next = order ? n.nextSibling : n.previousSibling; + if (fn(n) === false) { + return false; + } + if (walk(n) === false) { + return false; + } + n = next; + } + } + walk(this[0]); + return this; + } +}); +_each(('blur,focus,focusin,focusout,load,resize,scroll,unload,click,dblclick,' + + 'mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,' + + 'change,select,submit,keydown,keypress,keyup,error,contextmenu').split(','), function(i, type) { + KNode.prototype[type] = function(fn) { + return fn ? this.bind(type, fn) : this.fire(type); + }; +}); +var _K = K; +K = function(expr, root) { + if (expr === undefined || expr === null) { + return; + } + function newNode(node) { + if (!node[0]) { + node = []; + } + return new KNode(node); + } + if (typeof expr === 'string') { + if (root) { + root = _get(root); + } + var length = expr.length; + if (expr.charAt(0) === '@') { + expr = expr.substr(1); + } + if (expr.length !== length || /<.+>/.test(expr)) { + var doc = root ? root.ownerDocument || root : document, + div = doc.createElement('div'), list = []; + div.innerHTML = '' + expr; + for (var i = 0, len = div.childNodes.length; i < len; i++) { + var child = div.childNodes[i]; + if (child.id == '__kindeditor_temp_tag__') { + continue; + } + list.push(child); + } + return newNode(list); + } + return newNode(_queryAll(expr, root)); + } + if (expr && expr.constructor === KNode) { + return expr; + } + if (expr.toArray) { + expr = expr.toArray(); + } + if (_isArray(expr)) { + return newNode(expr); + } + return newNode(_toArray(arguments)); +}; +_each(_K, function(key, val) { + K[key] = val; +}); +K.NodeClass = KNode; +window.KindEditor = K; +var _START_TO_START = 0, + _START_TO_END = 1, + _END_TO_END = 2, + _END_TO_START = 3, + _BOOKMARK_ID = 0; +function _updateCollapsed(range) { + range.collapsed = (range.startContainer === range.endContainer && range.startOffset === range.endOffset); + return range; +} +function _copyAndDelete(range, isCopy, isDelete) { + var doc = range.doc, nodeList = []; + function splitTextNode(node, startOffset, endOffset) { + var length = node.nodeValue.length, centerNode; + if (isCopy) { + var cloneNode = node.cloneNode(true); + if (startOffset > 0) { + centerNode = cloneNode.splitText(startOffset); + } else { + centerNode = cloneNode; + } + if (endOffset < length) { + centerNode.splitText(endOffset - startOffset); + } + } + if (isDelete) { + var center = node; + if (startOffset > 0) { + center = node.splitText(startOffset); + range.setStart(node, startOffset); + } + if (endOffset < length) { + var right = center.splitText(endOffset - startOffset); + range.setEnd(right, 0); + } + nodeList.push(center); + } + return centerNode; + } + function removeNodes() { + if (isDelete) { + range.up().collapse(true); + } + for (var i = 0, len = nodeList.length; i < len; i++) { + var node = nodeList[i]; + if (node.parentNode) { + node.parentNode.removeChild(node); + } + } + } + var copyRange = range.cloneRange().down(); + var start = -1, incStart = -1, incEnd = -1, end = -1, + ancestor = range.commonAncestor(), frag = doc.createDocumentFragment(); + if (ancestor.nodeType == 3) { + var textNode = splitTextNode(ancestor, range.startOffset, range.endOffset); + if (isCopy) { + frag.appendChild(textNode); + } + removeNodes(); + return isCopy ? frag : range; + } + function extractNodes(parent, frag) { + var node = parent.firstChild, nextNode; + while (node) { + var testRange = new KRange(doc).selectNode(node); + start = testRange.compareBoundaryPoints(_START_TO_END, range); + if (start >= 0 && incStart <= 0) { + incStart = testRange.compareBoundaryPoints(_START_TO_START, range); + } + if (incStart >= 0 && incEnd <= 0) { + incEnd = testRange.compareBoundaryPoints(_END_TO_END, range); + } + if (incEnd >= 0 && end <= 0) { + end = testRange.compareBoundaryPoints(_END_TO_START, range); + } + if (end >= 0) { + return false; + } + nextNode = node.nextSibling; + if (start > 0) { + if (node.nodeType == 1) { + if (incStart >= 0 && incEnd <= 0) { + if (isCopy) { + frag.appendChild(node.cloneNode(true)); + } + if (isDelete) { + nodeList.push(node); + } + } else { + var childFlag; + if (isCopy) { + childFlag = node.cloneNode(false); + frag.appendChild(childFlag); + } + if (extractNodes(node, childFlag) === false) { + return false; + } + } + } else if (node.nodeType == 3) { + var textNode; + if (node == copyRange.startContainer) { + textNode = splitTextNode(node, copyRange.startOffset, node.nodeValue.length); + } else if (node == copyRange.endContainer) { + textNode = splitTextNode(node, 0, copyRange.endOffset); + } else { + textNode = splitTextNode(node, 0, node.nodeValue.length); + } + if (isCopy) { + try { + frag.appendChild(textNode); + } catch(e) {} + } + } + } + node = nextNode; + } + } + extractNodes(ancestor, frag); + if (isDelete) { + range.up().collapse(true); + } + for (var i = 0, len = nodeList.length; i < len; i++) { + var node = nodeList[i]; + if (node.parentNode) { + node.parentNode.removeChild(node); + } + } + return isCopy ? frag : range; +} +function _moveToElementText(range, el) { + var node = el; + while (node) { + var knode = K(node); + if (knode.name == 'marquee' || knode.name == 'select') { + return; + } + node = node.parentNode; + } + try { + range.moveToElementText(el); + } catch(e) {} +} +function _getStartEnd(rng, isStart) { + var doc = rng.parentElement().ownerDocument, + pointRange = rng.duplicate(); + pointRange.collapse(isStart); + var parent = pointRange.parentElement(), + nodes = parent.childNodes; + if (nodes.length === 0) { + return {node: parent.parentNode, offset: K(parent).index()}; + } + var startNode = doc, startPos = 0, cmp = -1; + var testRange = rng.duplicate(); + _moveToElementText(testRange, parent); + for (var i = 0, len = nodes.length; i < len; i++) { + var node = nodes[i]; + cmp = testRange.compareEndPoints('StartToStart', pointRange); + if (cmp === 0) { + return {node: node.parentNode, offset: i}; + } + if (node.nodeType == 1) { + var nodeRange = rng.duplicate(), dummy, knode = K(node), newNode = node; + if (knode.isControl()) { + dummy = doc.createElement('span'); + knode.after(dummy); + newNode = dummy; + startPos += knode.text().replace(/\r\n|\n|\r/g, '').length; + } + _moveToElementText(nodeRange, newNode); + testRange.setEndPoint('StartToEnd', nodeRange); + if (cmp > 0) { + startPos += nodeRange.text.replace(/\r\n|\n|\r/g, '').length; + } else { + startPos = 0; + } + if (dummy) { + K(dummy).remove(); + } + } else if (node.nodeType == 3) { + testRange.moveStart('character', node.nodeValue.length); + startPos += node.nodeValue.length; + } + if (cmp < 0) { + startNode = node; + } + } + if (cmp < 0 && startNode.nodeType == 1) { + return {node: parent, offset: K(parent.lastChild).index() + 1}; + } + if (cmp > 0) { + while (startNode.nextSibling && startNode.nodeType == 1) { + startNode = startNode.nextSibling; + } + } + testRange = rng.duplicate(); + _moveToElementText(testRange, parent); + testRange.setEndPoint('StartToEnd', pointRange); + startPos -= testRange.text.replace(/\r\n|\n|\r/g, '').length; + if (cmp > 0 && startNode.nodeType == 3) { + var prevNode = startNode.previousSibling; + while (prevNode && prevNode.nodeType == 3) { + startPos -= prevNode.nodeValue.length; + prevNode = prevNode.previousSibling; + } + } + return {node: startNode, offset: startPos}; +} +function _getEndRange(node, offset) { + var doc = node.ownerDocument || node, + range = doc.body.createTextRange(); + if (doc == node) { + range.collapse(true); + return range; + } + if (node.nodeType == 1 && node.childNodes.length > 0) { + var children = node.childNodes, isStart, child; + if (offset === 0) { + child = children[0]; + isStart = true; + } else { + child = children[offset - 1]; + isStart = false; + } + if (!child) { + return range; + } + if (K(child).name === 'head') { + if (offset === 1) { + isStart = true; + } + if (offset === 2) { + isStart = false; + } + range.collapse(isStart); + return range; + } + if (child.nodeType == 1) { + var kchild = K(child), span; + if (kchild.isControl()) { + span = doc.createElement('span'); + if (isStart) { + kchild.before(span); + } else { + kchild.after(span); + } + child = span; + } + _moveToElementText(range, child); + range.collapse(isStart); + if (span) { + K(span).remove(); + } + return range; + } + node = child; + offset = isStart ? 0 : child.nodeValue.length; + } + var dummy = doc.createElement('span'); + K(node).before(dummy); + _moveToElementText(range, dummy); + range.moveStart('character', offset); + K(dummy).remove(); + return range; +} +function _toRange(rng) { + var doc, range; + function tr2td(start) { + if (K(start.node).name == 'tr') { + start.node = start.node.cells[start.offset]; + start.offset = 0; + } + } + if (_IERANGE) { + if (rng.item) { + doc = _getDoc(rng.item(0)); + range = new KRange(doc); + range.selectNode(rng.item(0)); + return range; + } + doc = rng.parentElement().ownerDocument; + var start = _getStartEnd(rng, true), + end = _getStartEnd(rng, false); + tr2td(start); + tr2td(end); + range = new KRange(doc); + range.setStart(start.node, start.offset); + range.setEnd(end.node, end.offset); + return range; + } + var startContainer = rng.startContainer; + doc = startContainer.ownerDocument || startContainer; + range = new KRange(doc); + range.setStart(startContainer, rng.startOffset); + range.setEnd(rng.endContainer, rng.endOffset); + return range; +} +function KRange(doc) { + this.init(doc); +} +_extend(KRange, { + init : function(doc) { + var self = this; + self.startContainer = doc; + self.startOffset = 0; + self.endContainer = doc; + self.endOffset = 0; + self.collapsed = true; + self.doc = doc; + }, + commonAncestor : function() { + function getParents(node) { + var parents = []; + while (node) { + parents.push(node); + node = node.parentNode; + } + return parents; + } + var parentsA = getParents(this.startContainer), + parentsB = getParents(this.endContainer), + i = 0, lenA = parentsA.length, lenB = parentsB.length, parentA, parentB; + while (++i) { + parentA = parentsA[lenA - i]; + parentB = parentsB[lenB - i]; + if (!parentA || !parentB || parentA !== parentB) { + break; + } + } + return parentsA[lenA - i + 1]; + }, + setStart : function(node, offset) { + var self = this, doc = self.doc; + self.startContainer = node; + self.startOffset = offset; + if (self.endContainer === doc) { + self.endContainer = node; + self.endOffset = offset; + } + return _updateCollapsed(this); + }, + setEnd : function(node, offset) { + var self = this, doc = self.doc; + self.endContainer = node; + self.endOffset = offset; + if (self.startContainer === doc) { + self.startContainer = node; + self.startOffset = offset; + } + return _updateCollapsed(this); + }, + setStartBefore : function(node) { + return this.setStart(node.parentNode || this.doc, K(node).index()); + }, + setStartAfter : function(node) { + return this.setStart(node.parentNode || this.doc, K(node).index() + 1); + }, + setEndBefore : function(node) { + return this.setEnd(node.parentNode || this.doc, K(node).index()); + }, + setEndAfter : function(node) { + return this.setEnd(node.parentNode || this.doc, K(node).index() + 1); + }, + selectNode : function(node) { + return this.setStartBefore(node).setEndAfter(node); + }, + selectNodeContents : function(node) { + var knode = K(node); + if (knode.type == 3 || knode.isSingle()) { + return this.selectNode(node); + } + var children = knode.children(); + if (children.length > 0) { + return this.setStartBefore(children[0]).setEndAfter(children[children.length - 1]); + } + return this.setStart(node, 0).setEnd(node, 0); + }, + collapse : function(toStart) { + if (toStart) { + return this.setEnd(this.startContainer, this.startOffset); + } + return this.setStart(this.endContainer, this.endOffset); + }, + compareBoundaryPoints : function(how, range) { + var rangeA = this.get(), rangeB = range.get(); + if (_IERANGE) { + var arr = {}; + arr[_START_TO_START] = 'StartToStart'; + arr[_START_TO_END] = 'EndToStart'; + arr[_END_TO_END] = 'EndToEnd'; + arr[_END_TO_START] = 'StartToEnd'; + var cmp = rangeA.compareEndPoints(arr[how], rangeB); + if (cmp !== 0) { + return cmp; + } + var nodeA, nodeB, nodeC, posA, posB; + if (how === _START_TO_START || how === _END_TO_START) { + nodeA = this.startContainer; + posA = this.startOffset; + } + if (how === _START_TO_END || how === _END_TO_END) { + nodeA = this.endContainer; + posA = this.endOffset; + } + if (how === _START_TO_START || how === _START_TO_END) { + nodeB = range.startContainer; + posB = range.startOffset; + } + if (how === _END_TO_END || how === _END_TO_START) { + nodeB = range.endContainer; + posB = range.endOffset; + } + if (nodeA === nodeB) { + var diff = posA - posB; + return diff > 0 ? 1 : (diff < 0 ? -1 : 0); + } + nodeC = nodeB; + while (nodeC && nodeC.parentNode !== nodeA) { + nodeC = nodeC.parentNode; + } + if (nodeC) { + return K(nodeC).index() >= posA ? -1 : 1; + } + nodeC = nodeA; + while (nodeC && nodeC.parentNode !== nodeB) { + nodeC = nodeC.parentNode; + } + if (nodeC) { + return K(nodeC).index() >= posB ? 1 : -1; + } + nodeC = K(nodeB).next(); + if (nodeC && nodeC.contains(nodeA)) { + return 1; + } + nodeC = K(nodeA).next(); + if (nodeC && nodeC.contains(nodeB)) { + return -1; + } + } else { + return rangeA.compareBoundaryPoints(how, rangeB); + } + }, + cloneRange : function() { + return new KRange(this.doc).setStart(this.startContainer, this.startOffset).setEnd(this.endContainer, this.endOffset); + }, + toString : function() { + var rng = this.get(), str = _IERANGE ? rng.text : rng.toString(); + return str.replace(/\r\n|\n|\r/g, ''); + }, + cloneContents : function() { + return _copyAndDelete(this, true, false); + }, + deleteContents : function() { + return _copyAndDelete(this, false, true); + }, + extractContents : function() { + return _copyAndDelete(this, true, true); + }, + insertNode : function(node) { + var self = this, + sc = self.startContainer, so = self.startOffset, + ec = self.endContainer, eo = self.endOffset, + firstChild, lastChild, c, nodeCount = 1; + if (node.nodeName.toLowerCase() === '#document-fragment') { + firstChild = node.firstChild; + lastChild = node.lastChild; + nodeCount = node.childNodes.length; + } + if (sc.nodeType == 1) { + c = sc.childNodes[so]; + if (c) { + sc.insertBefore(node, c); + if (sc === ec) { + eo += nodeCount; + } + } else { + sc.appendChild(node); + } + } else if (sc.nodeType == 3) { + if (so === 0) { + sc.parentNode.insertBefore(node, sc); + if (sc.parentNode === ec) { + eo += nodeCount; + } + } else if (so >= sc.nodeValue.length) { + if (sc.nextSibling) { + sc.parentNode.insertBefore(node, sc.nextSibling); + } else { + sc.parentNode.appendChild(node); + } + } else { + if (so > 0) { + c = sc.splitText(so); + } else { + c = sc; + } + sc.parentNode.insertBefore(node, c); + if (sc === ec) { + ec = c; + eo -= so; + } + } + } + if (firstChild) { + self.setStartBefore(firstChild).setEndAfter(lastChild); + } else { + self.selectNode(node); + } + if (self.compareBoundaryPoints(_END_TO_END, self.cloneRange().setEnd(ec, eo)) >= 1) { + return self; + } + return self.setEnd(ec, eo); + }, + surroundContents : function(node) { + node.appendChild(this.extractContents()); + return this.insertNode(node).selectNode(node); + }, + isControl : function() { + var self = this, + sc = self.startContainer, so = self.startOffset, + ec = self.endContainer, eo = self.endOffset, rng; + return sc.nodeType == 1 && sc === ec && so + 1 === eo && K(sc.childNodes[so]).isControl(); + }, + get : function(hasControlRange) { + var self = this, doc = self.doc, node, rng; + if (!_IERANGE) { + rng = doc.createRange(); + try { + rng.setStart(self.startContainer, self.startOffset); + rng.setEnd(self.endContainer, self.endOffset); + } catch (e) {} + return rng; + } + if (hasControlRange && self.isControl()) { + rng = doc.body.createControlRange(); + rng.addElement(self.startContainer.childNodes[self.startOffset]); + return rng; + } + var range = self.cloneRange().down(); + rng = doc.body.createTextRange(); + rng.setEndPoint('StartToStart', _getEndRange(range.startContainer, range.startOffset)); + rng.setEndPoint('EndToStart', _getEndRange(range.endContainer, range.endOffset)); + return rng; + }, + html : function() { + return K(this.cloneContents()).outer(); + }, + down : function() { + var self = this; + function downPos(node, pos, isStart) { + if (node.nodeType != 1) { + return; + } + var children = K(node).children(); + if (children.length === 0) { + return; + } + var left, right, child, offset; + if (pos > 0) { + left = children.eq(pos - 1); + } + if (pos < children.length) { + right = children.eq(pos); + } + if (left && left.type == 3) { + child = left[0]; + offset = child.nodeValue.length; + } + if (right && right.type == 3) { + child = right[0]; + offset = 0; + } + if (!child) { + return; + } + if (isStart) { + self.setStart(child, offset); + } else { + self.setEnd(child, offset); + } + } + downPos(self.startContainer, self.startOffset, true); + downPos(self.endContainer, self.endOffset, false); + return self; + }, + up : function() { + var self = this; + function upPos(node, pos, isStart) { + if (node.nodeType != 3) { + return; + } + if (pos === 0) { + if (isStart) { + self.setStartBefore(node); + } else { + self.setEndBefore(node); + } + } else if (pos == node.nodeValue.length) { + if (isStart) { + self.setStartAfter(node); + } else { + self.setEndAfter(node); + } + } + } + upPos(self.startContainer, self.startOffset, true); + upPos(self.endContainer, self.endOffset, false); + return self; + }, + enlarge : function(toBlock) { + var self = this; + self.up(); + function enlargePos(node, pos, isStart) { + var knode = K(node), parent; + if (knode.type == 3 || _NOSPLIT_TAG_MAP[knode.name] || !toBlock && knode.isBlock()) { + return; + } + if (pos === 0) { + while (!knode.prev()) { + parent = knode.parent(); + if (!parent || _NOSPLIT_TAG_MAP[parent.name] || !toBlock && parent.isBlock()) { + break; + } + knode = parent; + } + if (isStart) { + self.setStartBefore(knode[0]); + } else { + self.setEndBefore(knode[0]); + } + } else if (pos == knode.children().length) { + while (!knode.next()) { + parent = knode.parent(); + if (!parent || _NOSPLIT_TAG_MAP[parent.name] || !toBlock && parent.isBlock()) { + break; + } + knode = parent; + } + if (isStart) { + self.setStartAfter(knode[0]); + } else { + self.setEndAfter(knode[0]); + } + } + } + enlargePos(self.startContainer, self.startOffset, true); + enlargePos(self.endContainer, self.endOffset, false); + return self; + }, + shrink : function() { + var self = this, child, collapsed = self.collapsed; + while (self.startContainer.nodeType == 1 && (child = self.startContainer.childNodes[self.startOffset]) && child.nodeType == 1 && !K(child).isSingle()) { + self.setStart(child, 0); + } + if (collapsed) { + return self.collapse(collapsed); + } + while (self.endContainer.nodeType == 1 && self.endOffset > 0 && (child = self.endContainer.childNodes[self.endOffset - 1]) && child.nodeType == 1 && !K(child).isSingle()) { + self.setEnd(child, child.childNodes.length); + } + return self; + }, + createBookmark : function(serialize) { + var self = this, doc = self.doc, endNode, + startNode = K('', doc)[0]; + startNode.id = '__kindeditor_bookmark_start_' + (_BOOKMARK_ID++) + '__'; + if (!self.collapsed) { + endNode = startNode.cloneNode(true); + endNode.id = '__kindeditor_bookmark_end_' + (_BOOKMARK_ID++) + '__'; + } + if (endNode) { + self.cloneRange().collapse(false).insertNode(endNode).setEndBefore(endNode); + } + self.insertNode(startNode).setStartAfter(startNode); + return { + start : serialize ? '#' + startNode.id : startNode, + end : endNode ? (serialize ? '#' + endNode.id : endNode) : null + }; + }, + moveToBookmark : function(bookmark) { + var self = this, doc = self.doc, + start = K(bookmark.start, doc), end = bookmark.end ? K(bookmark.end, doc) : null; + if (!start || start.length < 1) { + return self; + } + self.setStartBefore(start[0]); + start.remove(); + if (end && end.length > 0) { + self.setEndBefore(end[0]); + end.remove(); + } else { + self.collapse(true); + } + return self; + }, + dump : function() { + console.log('--------------------'); + console.log(this.startContainer.nodeType == 3 ? this.startContainer.nodeValue : this.startContainer, this.startOffset); + console.log(this.endContainer.nodeType == 3 ? this.endContainer.nodeValue : this.endContainer, this.endOffset); + } +}); +function _range(mixed) { + if (!mixed.nodeName) { + return mixed.constructor === KRange ? mixed : _toRange(mixed); + } + return new KRange(mixed); +} +K.RangeClass = KRange; +K.range = _range; +K.START_TO_START = _START_TO_START; +K.START_TO_END = _START_TO_END; +K.END_TO_END = _END_TO_END; +K.END_TO_START = _END_TO_START; + +function _nativeCommand(doc, key, val) { + try { + doc.execCommand(key, false, val); + } catch(e) {} +} +function _nativeCommandValue(doc, key) { + var val = ''; + try { +// val = doc.query_nativeCommand(self.doc, name, val);Value(key); + val = doc.queryCommandValue(key); + } catch (e) {} + if (typeof val !== 'string') { + val = ''; + } + return val; +} +function _getSel(doc) { + var win = _getWin(doc); + return _IERANGE ? doc.selection : win.getSelection(); +} +function _getRng(doc) { + var sel = _getSel(doc), rng; + try { + if (sel.rangeCount > 0) { + rng = sel.getRangeAt(0); + } else { + rng = sel.createRange(); + } + } catch(e) {} + if (_IERANGE && (!rng || (!rng.item && rng.parentElement().ownerDocument !== doc))) { + return null; + } + return rng; +} +function _singleKeyMap(map) { + var newMap = {}, arr, v; + _each(map, function(key, val) { + arr = key.split(','); + for (var i = 0, len = arr.length; i < len; i++) { + v = arr[i]; + newMap[v] = val; + } + }); + return newMap; +} +function _hasAttrOrCss(knode, map) { + return _hasAttrOrCssByKey(knode, map, '*') || _hasAttrOrCssByKey(knode, map); +} +function _hasAttrOrCssByKey(knode, map, mapKey) { + mapKey = mapKey || knode.name; + if (knode.type !== 1) { + return false; + } + var newMap = _singleKeyMap(map); + if (!newMap[mapKey]) { + return false; + } + var arr = newMap[mapKey].split(','); + for (var i = 0, len = arr.length; i < len; i++) { + var key = arr[i]; + if (key === '*') { + return true; + } + var match = /^(\.?)([^=]+)(?:=([^=]*))?$/.exec(key); + var method = match[1] ? 'css' : 'attr'; + key = match[2]; + var val = match[3] || ''; + if (val === '' && knode[method](key) !== '') { + return true; + } + if (val !== '' && knode[method](key) === val) { + return true; + } + } + return false; +} +function _removeAttrOrCss(knode, map) { + if (knode.type != 1) { + return; + } + _removeAttrOrCssByKey(knode, map, '*'); + _removeAttrOrCssByKey(knode, map); +} +function _removeAttrOrCssByKey(knode, map, mapKey) { + mapKey = mapKey || knode.name; + if (knode.type !== 1) { + return; + } + var newMap = _singleKeyMap(map); + if (!newMap[mapKey]) { + return; + } + var arr = newMap[mapKey].split(','), allFlag = false; + for (var i = 0, len = arr.length; i < len; i++) { + var key = arr[i]; + if (key === '*') { + allFlag = true; + break; + } + var match = /^(\.?)([^=]+)(?:=([^=]*))?$/.exec(key); + key = match[2]; + if (match[1]) { + key = _toCamel(key); + if (knode[0].style[key]) { + knode[0].style[key] = ''; + } + } else { + knode.removeAttr(key); + } + } + if (allFlag) { + knode.remove(true); + } +} +function _getInnerNode(knode) { + var inner = knode; + while (inner.first()) { + inner = inner.first(); + } + return inner; +} +function _isEmptyNode(knode) { + if (knode.type != 1 || knode.isSingle()) { + return false; + } + return knode.html().replace(/<[^>]+>/g, '') === ''; +} +function _mergeWrapper(a, b) { + a = a.clone(true); + var lastA = _getInnerNode(a), childA = a, merged = false; + while (b) { + while (childA) { + if (childA.name === b.name) { + _mergeAttrs(childA, b.attr(), b.css()); + merged = true; + } + childA = childA.first(); + } + if (!merged) { + lastA.append(b.clone(false)); + } + merged = false; + b = b.first(); + } + return a; +} +function _wrapNode(knode, wrapper) { + wrapper = wrapper.clone(true); + if (knode.type == 3) { + _getInnerNode(wrapper).append(knode.clone(false)); + knode.replaceWith(wrapper); + return wrapper; + } + var nodeWrapper = knode, child; + while ((child = knode.first()) && child.children().length == 1) { + knode = child; + } + child = knode.first(); + var frag = knode.doc.createDocumentFragment(); + while (child) { + frag.appendChild(child[0]); + child = child.next(); + } + wrapper = _mergeWrapper(nodeWrapper, wrapper); + if (frag.firstChild) { + _getInnerNode(wrapper).append(frag); + } + nodeWrapper.replaceWith(wrapper); + return wrapper; +} +function _mergeAttrs(knode, attrs, styles) { + _each(attrs, function(key, val) { + if (key !== 'style') { + knode.attr(key, val); + } + }); + _each(styles, function(key, val) { + knode.css(key, val); + }); +} +function _inPreElement(knode) { + while (knode && knode.name != 'body') { + if (_PRE_TAG_MAP[knode.name] || knode.name == 'div' && knode.hasClass('ke-script')) { + return true; + } + knode = knode.parent(); + } + return false; +} +function KCmd(range) { + this.init(range); +} +_extend(KCmd, { + init : function(range) { + var self = this, doc = range.doc; + self.doc = doc; + self.win = _getWin(doc); + self.sel = _getSel(doc); + self.range = range; + }, + selection : function(forceReset) { + var self = this, doc = self.doc, rng = _getRng(doc); + self.sel = _getSel(doc); + if (rng) { + self.range = _range(rng); + if (K(self.range.startContainer).name == 'html') { + self.range.selectNodeContents(doc.body).collapse(false); + } + return self; + } + if (forceReset) { + self.range.selectNodeContents(doc.body).collapse(false); + } + return self; + }, + select : function(hasDummy) { + hasDummy = _undef(hasDummy, true); + var self = this, sel = self.sel, range = self.range.cloneRange().shrink(), + sc = range.startContainer, so = range.startOffset, + ec = range.endContainer, eo = range.endOffset, + doc = _getDoc(sc), win = self.win, rng, hasU200b = false; + if (hasDummy && sc.nodeType == 1 && range.collapsed) { + if (_IERANGE) { + var dummy = K(' ', doc); + range.insertNode(dummy[0]); + rng = doc.body.createTextRange(); + try { + rng.moveToElementText(dummy[0]); + } catch(ex) {} + rng.collapse(false); + rng.select(); + dummy.remove(); + win.focus(); + return self; + } + if (_WEBKIT) { + var children = sc.childNodes; + if (K(sc).isInline() || so > 0 && K(children[so - 1]).isInline() || children[so] && K(children[so]).isInline()) { + range.insertNode(doc.createTextNode('\u200B')); + hasU200b = true; + } + } + } + if (_IERANGE) { + try { + rng = range.get(true); + rng.select(); + } catch(e) {} + } else { + if (hasU200b) { + range.collapse(false); + } + rng = range.get(true); + sel.removeAllRanges(); + sel.addRange(rng); + if (doc !== document) { + var pos = K(rng.endContainer).pos(); + //win.scrollTo(pos.x, pos.y); + } + } + win.focus(); + return self; + }, + wrap : function(val) { + var self = this, doc = self.doc, range = self.range, wrapper; + wrapper = K(val, doc); + if (range.collapsed) { + range.shrink(); + range.insertNode(wrapper[0]).selectNodeContents(wrapper[0]); + return self; + } + if (wrapper.isBlock()) { + var copyWrapper = wrapper.clone(true), child = copyWrapper; + while (child.first()) { + child = child.first(); + } + child.append(range.extractContents()); + range.insertNode(copyWrapper[0]).selectNode(copyWrapper[0]); + return self; + } + range.enlarge(); + var bookmark = range.createBookmark(), ancestor = range.commonAncestor(), isStart = false; + K(ancestor).scan(function(node) { + if (!isStart && node == bookmark.start) { + isStart = true; + return; + } + if (isStart) { + if (node == bookmark.end) { + return false; + } + var knode = K(node); + if (_inPreElement(knode)) { + return; + } + if (knode.type == 3 && _trim(node.nodeValue).length > 0) { + var parent; + while ((parent = knode.parent()) && parent.isStyle() && parent.children().length == 1) { + knode = parent; + } + _wrapNode(knode, wrapper); + } + } + }); + range.moveToBookmark(bookmark); + return self; + }, + split : function(isStart, map) { + var range = this.range, doc = range.doc; + var tempRange = range.cloneRange().collapse(isStart); + var node = tempRange.startContainer, pos = tempRange.startOffset, + parent = node.nodeType == 3 ? node.parentNode : node, + needSplit = false, knode; + while (parent && parent.parentNode) { + knode = K(parent); + if (map) { + if (!knode.isStyle()) { + break; + } + if (!_hasAttrOrCss(knode, map)) { + break; + } + } else { + if (_NOSPLIT_TAG_MAP[knode.name]) { + break; + } + } + needSplit = true; + parent = parent.parentNode; + } + if (needSplit) { + var dummy = doc.createElement('span'); + range.cloneRange().collapse(!isStart).insertNode(dummy); + if (isStart) { + tempRange.setStartBefore(parent.firstChild).setEnd(node, pos); + } else { + tempRange.setStart(node, pos).setEndAfter(parent.lastChild); + } + var frag = tempRange.extractContents(), + first = frag.firstChild, last = frag.lastChild; + if (isStart) { + tempRange.insertNode(frag); + range.setStartAfter(last).setEndBefore(dummy); + } else { + parent.appendChild(frag); + range.setStartBefore(dummy).setEndBefore(first); + } + var dummyParent = dummy.parentNode; + if (dummyParent == range.endContainer) { + var prev = K(dummy).prev(), next = K(dummy).next(); + if (prev && next && prev.type == 3 && next.type == 3) { + range.setEnd(prev[0], prev[0].nodeValue.length); + } else if (!isStart) { + range.setEnd(range.endContainer, range.endOffset - 1); + } + } + dummyParent.removeChild(dummy); + } + return this; + }, + remove : function(map) { + var self = this, doc = self.doc, range = self.range; + range.enlarge(); + if (range.startOffset === 0) { + var ksc = K(range.startContainer), parent; + while ((parent = ksc.parent()) && parent.isStyle() && parent.children().length == 1) { + ksc = parent; + } + range.setStart(ksc[0], 0); + ksc = K(range.startContainer); + if (ksc.isBlock()) { + _removeAttrOrCss(ksc, map); + } + var kscp = ksc.parent(); + if (kscp && kscp.isBlock()) { + _removeAttrOrCss(kscp, map); + } + } + var sc, so; + if (range.collapsed) { + self.split(true, map); + sc = range.startContainer; + so = range.startOffset; + if (so > 0) { + var sb = K(sc.childNodes[so - 1]); + if (sb && _isEmptyNode(sb)) { + sb.remove(); + range.setStart(sc, so - 1); + } + } + var sa = K(sc.childNodes[so]); + if (sa && _isEmptyNode(sa)) { + sa.remove(); + } + if (_isEmptyNode(sc)) { + range.startBefore(sc); + sc.remove(); + } + range.collapse(true); + return self; + } + self.split(true, map); + self.split(false, map); + var startDummy = doc.createElement('span'), endDummy = doc.createElement('span'); + range.cloneRange().collapse(false).insertNode(endDummy); + range.cloneRange().collapse(true).insertNode(startDummy); + var nodeList = [], cmpStart = false; + K(range.commonAncestor()).scan(function(node) { + if (!cmpStart && node == startDummy) { + cmpStart = true; + return; + } + if (node == endDummy) { + return false; + } + if (cmpStart) { + nodeList.push(node); + } + }); + K(startDummy).remove(); + K(endDummy).remove(); + sc = range.startContainer; + so = range.startOffset; + var ec = range.endContainer, eo = range.endOffset; + if (so > 0) { + var startBefore = K(sc.childNodes[so - 1]); + if (startBefore && _isEmptyNode(startBefore)) { + startBefore.remove(); + range.setStart(sc, so - 1); + if (sc == ec) { + range.setEnd(ec, eo - 1); + } + } + var startAfter = K(sc.childNodes[so]); + if (startAfter && _isEmptyNode(startAfter)) { + startAfter.remove(); + if (sc == ec) { + range.setEnd(ec, eo - 1); + } + } + } + var endAfter = K(ec.childNodes[range.endOffset]); + if (endAfter && _isEmptyNode(endAfter)) { + endAfter.remove(); + } + var bookmark = range.createBookmark(true); + _each(nodeList, function(i, node) { + _removeAttrOrCss(K(node), map); + }); + range.moveToBookmark(bookmark); + return self; + }, + commonNode : function(map) { + var range = this.range; + var ec = range.endContainer, eo = range.endOffset, + node = (ec.nodeType == 3 || eo === 0) ? ec : ec.childNodes[eo - 1]; + function find(node) { + var child = node, parent = node; + while (parent) { + if (_hasAttrOrCss(K(parent), map)) { + return K(parent); + } + parent = parent.parentNode; + } + while (child && (child = child.lastChild)) { + if (_hasAttrOrCss(K(child), map)) { + return K(child); + } + } + return null; + } + var cNode = find(node); + if (cNode) { + return cNode; + } + if (node.nodeType == 1 || (ec.nodeType == 3 && eo === 0)) { + var prev = K(node).prev(); + if (prev) { + return find(prev); + } + } + return null; + }, + commonAncestor : function(tagName) { + var range = this.range, + sc = range.startContainer, so = range.startOffset, + ec = range.endContainer, eo = range.endOffset, + startNode = (sc.nodeType == 3 || so === 0) ? sc : sc.childNodes[so - 1], + endNode = (ec.nodeType == 3 || eo === 0) ? ec : ec.childNodes[eo - 1]; + function find(node) { + while (node) { + if (node.nodeType == 1) { + if (node.tagName.toLowerCase() === tagName) { + return node; + } + } + node = node.parentNode; + } + return null; + } + var start = find(startNode), end = find(endNode); + if (start && end && start === end) { + return K(start); + } + return null; + }, + state : function(key) { + var self = this, doc = self.doc, bool = false; + try { + bool = doc.queryCommandState(key); + } catch (e) {} + return bool; + }, + val : function(key) { + var self = this, doc = self.doc, range = self.range; + function lc(val) { + return val.toLowerCase(); + } + key = lc(key); + var val = '', knode; + if (key === 'fontfamily' || key === 'fontname') { + val = _nativeCommandValue(doc, 'fontname'); + val = val.replace(/['"]/g, ''); + return lc(val); + } + if (key === 'formatblock') { + val = _nativeCommandValue(doc, key); + if (val === '') { + knode = self.commonNode({'h1,h2,h3,h4,h5,h6,p,div,pre,address' : '*'}); + if (knode) { + val = knode.name; + } + } + if (val === 'Normal') { + val = 'p'; + } + return lc(val); + } + if (key === 'fontsize') { + knode = self.commonNode({'*' : '.font-size'}); + if (knode) { + val = knode.css('font-size'); + } + return lc(val); + } + if (key === 'forecolor') { + knode = self.commonNode({'*' : '.color'}); + if (knode) { + val = knode.css('color'); + } + val = _toHex(val); + if (val === '') { + val = 'default'; + } + return lc(val); + } + if (key === 'hilitecolor') { + knode = self.commonNode({'*' : '.background-color'}); + if (knode) { + val = knode.css('background-color'); + } + val = _toHex(val); + if (val === '') { + val = 'default'; + } + return lc(val); + } + return val; + }, + toggle : function(wrapper, map) { + var self = this; + if (self.commonNode(map)) { + self.remove(map); + } else { + self.wrap(wrapper); + } + return self.select(); + }, + bold : function() { + return this.toggle('', { + span : '.font-weight=bold', + strong : '*', + b : '*' + }); + }, + italic : function() { + return this.toggle('', { + span : '.font-style=italic', + em : '*', + i : '*' + }); + }, + underline : function() { + return this.toggle('', { + span : '.text-decoration=underline', + u : '*' + }); + }, + strikethrough : function() { + return this.toggle('', { + span : '.text-decoration=line-through', + s : '*' + }); + }, + forecolor : function(val) { + return this.wrap('').select(); + }, + hilitecolor : function(val) { + return this.wrap('').select(); + }, + fontsize : function(val) { + return this.wrap('').select(); + }, + fontname : function(val) { + return this.fontfamily(val); + }, + fontfamily : function(val) { + return this.wrap('').select(); + }, + removeformat : function() { + var map = { + '*' : '.font-weight,.font-style,.text-decoration,.color,.background-color,.font-size,.font-family,.text-indent' + }, + tags = _STYLE_TAG_MAP; + _each(tags, function(key, val) { + map[key] = '*'; + }); + this.remove(map); + return this.select(); + }, + inserthtml : function(val, quickMode) { + var self = this, range = self.range; + if (val === '') { + return self; + } + function pasteHtml(range, val) { + val = '' + val; + var rng = range.get(); + if (rng.item) { + rng.item(0).outerHTML = val; + } else { + rng.pasteHTML(val); + } + var temp = range.doc.getElementById('__kindeditor_temp_tag__'); + temp.parentNode.removeChild(temp); + var newRange = _toRange(rng); + range.setEnd(newRange.endContainer, newRange.endOffset); + range.collapse(false); + self.select(false); + } + function insertHtml(range, val) { + var doc = range.doc, + frag = doc.createDocumentFragment(); + K('@' + val, doc).each(function() { + frag.appendChild(this); + }); + range.deleteContents(); + range.insertNode(frag); + range.collapse(false); + self.select(false); + } + if (_IERANGE && quickMode) { + try { + pasteHtml(range, val); + } catch(e) { + insertHtml(range, val); + } + return self; + } + insertHtml(range, val); + return self; + }, + hr : function() { + return this.inserthtml('
    '); + }, + print : function() { + this.win.print(); + return this; + }, + insertimage : function(url, title, width, height, border, align) { + title = _undef(title, ''); + border = _undef(border, 0); + var html = ''; + return self.inserthtml(html); + } + if (range.isControl()) { + var node = K(range.startContainer.childNodes[range.startOffset]); + html += '>'; + node.after(K(html, doc)); + node.next().append(node); + range.selectNode(node[0]); + return self.select(); + } + function setAttr(node, url, type) { + K(node).attr('href', url).attr('data-ke-src', url); + if (type) { + K(node).attr('target', type); + } else { + K(node).removeAttr('target'); + } + } + var sc = range.startContainer, so = range.startOffset, + ec = range.endContainer, eo = range.endOffset; + if (sc.nodeType == 1 && sc === ec && so + 1 === eo) { + var child = sc.childNodes[so]; + if (child.nodeName.toLowerCase() == 'a') { + setAttr(child, url, type); + return self; + } + } + _nativeCommand(doc, 'createlink', '__kindeditor_temp_url__'); + K('a[href="__kindeditor_temp_url__"]', doc).each(function() { + setAttr(this, url, type); + }); + return self; + }, + unlink : function() { + var self = this, doc = self.doc, range = self.range; + self.select(); + if (range.collapsed) { + var a = self.commonNode({ a : '*' }); + if (a) { + range.selectNode(a.get()); + self.select(); + } + _nativeCommand(doc, 'unlink', null); + if (_WEBKIT && K(range.startContainer).name === 'img') { + var parent = K(range.startContainer).parent(); + if (parent.name === 'a') { + parent.remove(true); + } + } + } else { + _nativeCommand(doc, 'unlink', null); + } + return self; + } +}); +_each(('formatblock,selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,' + + 'insertunorderedlist,indent,outdent,subscript,superscript').split(','), function(i, name) { + KCmd.prototype[name] = function(val) { + var self = this; + self.select(); + _nativeCommand(self.doc, name, val); + if (_IERANGE && _inArray(name, 'justifyleft,justifycenter,justifyright,justifyfull'.split(',')) >= 0) { + self.selection(); + } + if (!_IERANGE || _inArray(name, 'formatblock,selectall,insertorderedlist,insertunorderedlist'.split(',')) >= 0) { + self.selection(); + } + + return self; + }; +}); +_each('cut,copy,paste'.split(','), function(i, name) { + KCmd.prototype[name] = function() { + var self = this; + if (!self.doc.queryCommandSupported(name)) { + throw 'not supported'; + } + self.select(); + _nativeCommand(self.doc, name, null); + return self; + }; +}); +function _cmd(mixed) { + if (mixed.nodeName) { + var doc = _getDoc(mixed); + mixed = _range(doc).selectNodeContents(doc.body).collapse(false); + } + return new KCmd(mixed); +} +K.CmdClass = KCmd; +K.cmd = _cmd; +function _drag(options) { + var moveEl = options.moveEl, + moveFn = options.moveFn, + clickEl = options.clickEl || moveEl, + beforeDrag = options.beforeDrag, + iframeFix = options.iframeFix === undefined ? true : options.iframeFix; + var docs = [document]; + if (iframeFix) { + K('iframe').each(function() { + var src = _formatUrl(this.src || '', 'absolute'); + if (/^https?:\/\//.test(src)) { + return; + } + var doc; + try { + doc = _iframeDoc(this); + } catch(e) {} + if (doc) { + var pos = K(this).pos(); + K(doc).data('pos-x', pos.x); + K(doc).data('pos-y', pos.y); + docs.push(doc); + } + }); + } + clickEl.mousedown(function(e) { + //新加的 + if(e.button !== 0 && e.button !== 1) { + return; + } + e.stopPropagation(); + var self = clickEl.get(), + x = _removeUnit(moveEl.css('left')), + y = _removeUnit(moveEl.css('top')), + width = moveEl.width(), + height = moveEl.height(), + pageX = e.pageX, + pageY = e.pageY; + if (beforeDrag) { + beforeDrag(); + } + function moveListener(e) { + e.preventDefault(); + var kdoc = K(_getDoc(e.target)); + var diffX = _round((kdoc.data('pos-x') || 0) + e.pageX - pageX); + var diffY = _round((kdoc.data('pos-y') || 0) + e.pageY - pageY); + moveFn.call(clickEl, x, y, width, height, diffX, diffY); + } + function selectListener(e) { + e.preventDefault(); + } + function upListener(e) { + e.preventDefault(); + K(docs).unbind('mousemove', moveListener) + .unbind('mouseup', upListener) + .unbind('selectstart', selectListener); + if (self.releaseCapture) { + self.releaseCapture(); + } + } + K(docs).mousemove(moveListener) + .mouseup(upListener) + .bind('selectstart', selectListener); + if (self.setCapture) { + self.setCapture(); + } + }); +} +function KWidget(options) { + this.init(options); +} +_extend(KWidget, { + init : function(options) { + var self = this; + self.name = options.name || ''; + self.doc = options.doc || document; + self.win = _getWin(self.doc); + self.x = _addUnit(options.x); + self.y = _addUnit(options.y); + self.z = options.z; + self.width = _addUnit(options.width); + self.height = _addUnit(options.height); + self.div = K('
    '); + self.options = options; + self._alignEl = options.alignEl; + if (self.width) { + self.div.css('width', self.width); + } + if (self.height) { + self.div.css('height', self.height); + } + if (self.z) { + self.div.css({ + position : 'absolute', + left : self.x, + top : self.y, + 'z-index' : self.z + }); + } + if (self.z && (self.x === undefined || self.y === undefined)) { + self.autoPos(self.width, self.height); + } + if (options.cls) { + self.div.addClass(options.cls); + } + if (options.shadowMode) { + self.div.addClass('ke-shadow'); + } + if (options.css) { + self.div.css(options.css); + } + if (options.src) { + K(options.src).replaceWith(self.div); + } else { + K(self.doc.body).append(self.div); + } + if (options.html) { + self.div.html(options.html); + } + if (options.autoScroll) { + if (_IE && _V < 7 || _QUIRKS) { + var scrollPos = _getScrollPos(); + K(self.win).bind('scroll', function(e) { + var pos = _getScrollPos(), + diffX = pos.x - scrollPos.x, + diffY = pos.y - scrollPos.y; + self.pos(_removeUnit(self.x) + diffX, _removeUnit(self.y) + diffY, false); + }); + } else { + self.div.css('position', 'fixed'); + } + } + }, + pos : function(x, y, updateProp) { + var self = this; + updateProp = _undef(updateProp, true); + if (x !== null) { + x = x < 0 ? 0 : _addUnit(x); + self.div.css('left', x); + if (updateProp) { + self.x = x; + } + } + if (y !== null) { + y = y < 0 ? 0 : _addUnit(y); + self.div.css('top', y); + if (updateProp) { + self.y = y; + } + } + return self; + }, + autoPos : function(width, height) { + var self = this, + w = _removeUnit(width) || 0, + h = _removeUnit(height) || 0, + scrollPos = _getScrollPos(); + if (self._alignEl) { + var knode = K(self._alignEl), + pos = knode.pos(), + diffX = _round(knode[0].clientWidth / 2 - w / 2), + diffY = _round(knode[0].clientHeight / 2 - h / 2); + x = diffX < 0 ? pos.x : pos.x + diffX; + y = diffY < 0 ? pos.y : pos.y + diffY; + } else { + var docEl = _docElement(self.doc); + x = _round(scrollPos.x + (docEl.clientWidth - w) / 2); + y = _round(scrollPos.y + (docEl.clientHeight - h) / 2); + } + if (!(_IE && _V < 7 || _QUIRKS)) { + x -= scrollPos.x; + y -= scrollPos.y; + } + return self.pos(x, y); + }, + remove : function() { + var self = this; + if (_IE && _V < 7 || _QUIRKS) { + K(self.win).unbind('scroll'); + } + self.div.remove(); + _each(self, function(i) { + self[i] = null; + }); + return this; + }, + show : function() { + this.div.show(); + return this; + }, + hide : function() { + this.div.hide(); + return this; + }, + draggable : function(options) { + var self = this; + options = options || {}; + options.moveEl = self.div; + options.moveFn = function(x, y, width, height, diffX, diffY) { + if ((x = x + diffX) < 0) { + x = 0; + } + if ((y = y + diffY) < 0) { + y = 0; + } + self.pos(x, y); + }; + _drag(options); + return self; + } +}); +function _widget(options) { + return new KWidget(options); +} +K.WidgetClass = KWidget; +K.widget = _widget; +function _iframeDoc(iframe) { + iframe = _get(iframe); + return iframe.contentDocument || iframe.contentWindow.document; +} +var html, _direction = ''; +if ((html = document.getElementsByTagName('html'))) { + _direction = html[0].dir; +} + +function _getInitHtml(themesPath, bodyClass, cssPath, cssData) { + var arr = [ + (_direction === '' ? '' : ''), + '', + '' + ]; + if (!_isArray(cssPath)) { + cssPath = [cssPath]; + } + _each(cssPath, function(i, path) { + if (path) { + arr.push(''); + } + }); + if (cssData) { + arr.push(''); + } + arr.push(''); + return arr.join('\n'); +} +function _elementVal(knode, val) { + if (knode.hasVal()) { + if (val === undefined) { + var html = knode.val(); + html = html.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/ig, ''); + return html; + } + if(self.placeholder != ""){ + if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*[\,]*[\(]*[\u4e00-\u9fa5]*[\:]*[\u4e00-\u9fa5]*[\。]*[\)]*<\/\w*\>\s*$/.test(val)){ + return knode.val(""); + } + } + return knode.val(val); + } + if(self.placeholder != ""){ + if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*[\,]*[\(]*[\u4e00-\u9fa5]*[\:]*[\u4e00-\u9fa5]*[\。]*[\)]*<\/\w*\>\s*$/.test(val)){ + return knode.html(""); + } + } else{ + return knode.html(val); + } +} +function KEdit(options) { + this.init(options); +} +_extend(KEdit, KWidget, { + init : function(options) { + var self = this; + KEdit.parent.init.call(self, options); + self.srcElement = K(options.srcElement); + self.div.addClass('ke-edit'); + self.designMode = _undef(options.designMode, true); + self.beforeGetHtml = options.beforeGetHtml; + self.beforeSetHtml = options.beforeSetHtml; + self.afterSetHtml = options.afterSetHtml; + var themesPath = _undef(options.themesPath, ''), + bodyClass = options.bodyClass, + cssPath = options.cssPath, + cssData = options.cssData, + isDocumentDomain = location.protocol != 'res:' && location.host.replace(/:\d+/, '') !== document.domain, + srcScript = ('document.open();' + + (isDocumentDomain ? 'document.domain="' + document.domain + '";' : '') + + 'document.close();'), + iframeSrc = _IE ? ' src="javascript:void(function(){' + encodeURIComponent(srcScript) + '}())"' : ''; + self.iframe = K('').css('width', '100%'); + self.textarea = K('').css('width', '100%'); + self.tabIndex = isNaN(parseInt(options.tabIndex, 10)) ? self.srcElement.attr('tabindex') : parseInt(options.tabIndex, 10); + self.iframe.attr('tabindex', self.tabIndex); + self.textarea.attr('tabindex', self.tabIndex); + if (self.width) { + self.setWidth(self.width); + } + if (self.height) { + self.setHeight(self.height); + } + if (self.designMode) { + self.textarea.hide(); + } else { + self.iframe.hide(); + } + function ready() { + var doc = _iframeDoc(self.iframe); + doc.open(); + if (isDocumentDomain) { + doc.domain = document.domain; + } + + doc.write(_getInitHtml(themesPath, bodyClass, cssPath, cssData)); + doc.close(); + self.win = self.iframe[0].contentWindow; + self.doc = doc; + var cmd = _cmd(doc); + self.afterChange(function(e) { +// if (e.which == 8) { +// var range = cmd.range +// var bookmark = range.createBookmark(); +// cmd.doc.body.innerHTML = cmd.doc.body.innerHTML.replace(/

    \s*<\/p>/g,""); +// range.moveToBookmark(bookmark); +// } + cmd.selection(); + }); + if (_WEBKIT) { + K(doc).click(function(e) { + if (K(e.target).name === 'img') { + cmd.selection(true); + cmd.range.selectNode(e.target); + cmd.select(); + } + }); + } + if (_IE) { + self._mousedownHandler = function() { + var newRange = cmd.range.cloneRange(); + newRange.shrink(); + if (newRange.isControl()) { + self.blur(); + } + }; + K(document).mousedown(self._mousedownHandler); + K(doc).keydown(function(e) { + if (e.which == 8) { + cmd.selection(); + var rng = cmd.range; + if (rng.isControl()) { + rng.collapse(true); + K(rng.startContainer.childNodes[rng.startOffset]).remove(); + e.preventDefault(); + } + } + }); + } + self.cmd = cmd; + self.html(_elementVal(self.srcElement)); + if (_IE) { + doc.body.disabled = true; + doc.body.contentEditable = true; + doc.body.removeAttribute('disabled'); + } else { + doc.designMode = 'on'; + } + if (options.afterCreate) { + options.afterCreate.call(self); + } + } + if (isDocumentDomain) { + self.iframe.bind('load', function(e) { + self.iframe.unbind('load'); + if (_IE) { + ready(); + } else { + setTimeout(ready, 0); + } + }); + } + self.div.append(self.iframe); + self.div.append(self.textarea); + self.srcElement.hide(); + !isDocumentDomain && ready(); + }, + setWidth : function(val) { + var self = this; + val = _addUnit(val); + self.width = val; + self.div.css('width', val); + return self; + }, + setHeight : function(val) { + var self = this; + val = _addUnit(val); + self.height = val; + self.div.css('height', val); + self.iframe.css('height', val); + if ((_IE && _V < 8) || _QUIRKS) { + val = _addUnit(_removeUnit(val) - 2); + } + self.textarea.css('height', val); + return self; + }, + remove : function() { + var self = this, doc = self.doc; + K(doc.body).unbind(); + K(doc).unbind(); + K(self.win).unbind(); + if (self._mousedownHandler) { + K(document).unbind('mousedown', self._mousedownHandler); + } + _elementVal(self.srcElement, self.html()); + self.srcElement.show(); + doc.write(''); + self.iframe.unbind(); + self.textarea.unbind(); + KEdit.parent.remove.call(self); + }, + html : function(val, isFull) { + var self = this, doc = self.doc; + if (self.designMode) { + var body = doc.body; + if (val === undefined) { + if (isFull) { + val = '' + body.parentNode.innerHTML + ''; + } else { + val = body.innerHTML; + } + //yk + if (self.beforeGetHtml) { + val = self.beforeGetHtml(val); + } + if (_GECKO && val == '
    ') { + val = ''; + } + return val; + } + if (self.beforeSetHtml) { + val = self.beforeSetHtml(val); + } + if (_IE && _V >= 9) { + val = val.replace(/(<.*?checked=")checked(".*>)/ig, '$1$2'); + } + K(body).html(val); + if (self.afterSetHtml) { + self.afterSetHtml(); + } + return self; + } + if (val === undefined) { + return self.textarea.val(); + } + self.textarea.val(val); + return self; + }, + design : function(bool) { + var self = this, val; + if (bool === undefined ? !self.designMode : bool) { + if (!self.designMode) { + val = self.html(); + self.designMode = true; + + //self.html(val); + //self.textarea.hide(); + //self.iframe.show(); + //新加 + self.textarea.hide(); + self.html(val); + var iframe = self.iframe; + var height = _removeUnit(self.height); + iframe.height(height - 2); + iframe.show(); + setTimeout(function() { + iframe.height(height); + }, 0); + } + } else { + if (self.designMode) { + val = self.html(); + self.designMode = false; + self.html(val); + self.iframe.hide(); + self.textarea.show(); + } + } + return self.focus(); + }, + focus : function() { + var self = this; + self.designMode ? self.win.focus() : self.textarea[0].focus(); + return self; + }, + blur : function() { + var self = this; + if (_IE) { + var input = K('', self.div); + self.div.append(input); + input[0].focus(); + input.remove(); + } else { + self.designMode ? self.win.blur() : self.textarea[0].blur(); + } + return self; + }, + afterChange : function(fn) { + var self = this, doc = self.doc, body = doc.body; + K(doc).keyup(function(e) { + if (!e.ctrlKey && !e.altKey && _CHANGE_KEY_MAP[e.which]) { + fn(e); + } + }); + K(doc).mouseup(fn).contextmenu(fn); + K(self.win).blur(fn); + function timeoutHandler(e) { + setTimeout(function() { + fn(e); + }, 1); + } + K(body).bind('paste', timeoutHandler); + K(body).bind('cut', timeoutHandler); + return self; + } +}); +function _edit(options) { + return new KEdit(options); +} +K.EditClass = KEdit; +K.edit = _edit; +K.iframeDoc = _iframeDoc; +function _selectToolbar(name, fn) { + var self = this, + knode = self.get(name); + if (knode) { + if (knode.hasClass('ke-disabled')) { + return; + } + fn(knode); + } +} +function KToolbar(options) { + this.init(options); +} +_extend(KToolbar, KWidget, { + init : function(options) { + var self = this; + KToolbar.parent.init.call(self, options); + self.disableMode = _undef(options.disableMode, false); + self.noDisableItemMap = _toMap(_undef(options.noDisableItems, [])); + self._itemMap = {}; + self.div.addClass('ke-toolbar').bind('contextmenu,mousedown,mousemove', function(e) { + e.preventDefault(); + }).attr('unselectable', 'on'); + function find(target) { + var knode = K(target); + if (knode.hasClass('ke-outline')) { + return knode; + } + if (knode.hasClass('ke-toolbar-icon')) { + return knode.parent(); + } + } + function hover(e, method) { + var knode = find(e.target); + if (knode) { + if (knode.hasClass('ke-disabled')) { + return; + } + if (knode.hasClass('ke-selected')) { + return; + } + knode[method]('ke-on'); + } + } + self.div.mouseover(function(e) { + hover(e, 'addClass'); + }) + .mouseout(function(e) { + hover(e, 'removeClass'); + }) + .click(function(e) { + var knode = find(e.target); + if (knode) { + if (knode.hasClass('ke-disabled')) { + return; + } + self.options.click.call(this, e, knode.attr('data-name')); + } + }); + }, + get : function(name) { + //if(this._itemMap[name])return this._itemMap[name]; + //return this._itemMap[name]=K("span.ke-icon-"+name,this.div).parent() +// if (this._itemMap[name]) { +// return this._itemMap[name]; +// } +// if($("#define").css('display') == 'block'){ +// pdiv = $("#define") +// }else if($("#full").css('display') == 'block'){ +// pdiv = $("#full") +// } + var container = this.div; + if(!$("#define",container).is(':hidden')){ + pdiv = $("#define",container); + }else if(!$("#full",container).is(':hidden')){ + pdiv = $("#full",container); + } + return (this._itemMap[name] = K('span.ke-icon-' + name, this.div).parent()); + }, + select : function(name) { + _selectToolbar.call(this, name, function(knode) { + knode.addClass('ke-selected'); + }); + return self; + }, + unselect : function(name) { + _selectToolbar.call(this, name, function(knode) { + knode.removeClass('ke-selected').removeClass('ke-on'); + }); + return self; + }, + enable : function(name) { + var self = this, + knode = name.get ? name : self.get(name); + if (knode) { + knode.removeClass('ke-disabled'); + knode.opacity(1); + } + return self; + }, + disable : function(name) { + var self = this, + knode = name.get ? name : self.get(name); + if (knode) { + knode.removeClass('ke-selected').addClass('ke-disabled'); + knode.opacity(0.5); + } + return self; + }, + disableAll : function(bool, noDisableItems) { + var self = this, map = self.noDisableItemMap, item; + if (noDisableItems) { + map = _toMap(noDisableItems); + } + if (bool === undefined ? !self.disableMode : bool) { + K('span.ke-outline', self.div).each(function() { + var knode = K(this), + name = knode[0].getAttribute('data-name', 2); + if (!map[name]) { + self.disable(knode); + } + }); + self.disableMode = true; + } else { + K('span.ke-outline', self.div).each(function() { + var knode = K(this), + name = knode[0].getAttribute('data-name', 2); + if (!map[name]) { + self.enable(knode); + } + }); + self.disableMode = false; + } + return self; + } +}); +function _toolbar(options) { + return new KToolbar(options); +} +K.ToolbarClass = KToolbar; +K.toolbar = _toolbar; +function KMenu(options) { + this.init(options); +} +_extend(KMenu, KWidget, { + init : function(options) { + var self = this; + options.z = options.z || 811213; + KMenu.parent.init.call(self, options); + self.centerLineMode = _undef(options.centerLineMode, true); + self.div.addClass('ke-menu').bind('click,mousedown', function(e){ + e.stopPropagation(); + }).attr('unselectable', 'on'); + }, + addItem : function(item) { + var self = this; + if (item.title === '-') { + self.div.append(K('

    ')); + return; + } + var itemDiv = K('
    '), + leftDiv = K('
    '), + rightDiv = K('
    '), + height = _addUnit(item.height), + iconClass = _undef(item.iconClass, ''); + self.div.append(itemDiv); + if (height) { + itemDiv.css('height', height); + rightDiv.css('line-height', height); + } + var centerDiv; + if (self.centerLineMode) { + centerDiv = K('
    '); + if (height) { + centerDiv.css('height', height); + } + } + itemDiv.mouseover(function(e) { + K(this).addClass('ke-menu-item-on'); + if (centerDiv) { + centerDiv.addClass('ke-menu-item-center-on'); + } + }) + .mouseout(function(e) { + K(this).removeClass('ke-menu-item-on'); + if (centerDiv) { + centerDiv.removeClass('ke-menu-item-center-on'); + } + }) + .click(function(e) { + item.click.call(K(this)); + e.stopPropagation(); + }) + .append(leftDiv); + if (centerDiv) { + itemDiv.append(centerDiv); + } + itemDiv.append(rightDiv); + if (item.checked) { + iconClass = 'ke-icon-checked'; + } + if (iconClass !== '') { + leftDiv.html(''); + } + rightDiv.html(item.title); + return self; + }, + remove : function() { + var self = this; + if (self.options.beforeRemove) { + self.options.beforeRemove.call(self); + } + K('.ke-menu-item', self.div[0]).unbind(); + KMenu.parent.remove.call(self); + return self; + } +}); +function _menu(options) { + return new KMenu(options); +} +K.MenuClass = KMenu; +K.menu = _menu; +function KColorPicker(options) { + this.init(options); +} +_extend(KColorPicker, KWidget, { + init : function(options) { + var self = this; + options.z = options.z || 811213; + KColorPicker.parent.init.call(self, options); + var colors = options.colors || [ + ['#E53333', '#E56600', '#FF9900', '#64451D', '#DFC5A4', '#FFE500'], + ['#009900', '#006600', '#99BB00', '#B8D100', '#60D978', '#00D5FF'], + ['#337FE5', '#003399', '#4C33E5', '#9933E5', '#CC33E5', '#EE33EE'], + ['#FFFFFF', '#CCCCCC', '#999999', '#666666', '#333333', '#000000'] + ]; + self.selectedColor = (options.selectedColor || '').toLowerCase(); + self._cells = []; + self.div.addClass('ke-colorpicker').bind('click,mousedown', function(e){ + e.stopPropagation(); + }).attr('unselectable', 'on'); + var table = self.doc.createElement('table'); + self.div.append(table); + table.className = 'ke-colorpicker-table'; + table.cellPadding = 0; + table.cellSpacing = 0; + table.border = 0; + var row = table.insertRow(0), cell = row.insertCell(0); + cell.colSpan = colors[0].length; + self._addAttr(cell, '', 'ke-colorpicker-cell-top'); + for (var i = 0; i < colors.length; i++) { + row = table.insertRow(i + 1); + for (var j = 0; j < colors[i].length; j++) { + cell = row.insertCell(j); + self._addAttr(cell, colors[i][j], 'ke-colorpicker-cell'); + } + } + }, + _addAttr : function(cell, color, cls) { + var self = this; + cell = K(cell).addClass(cls); + if (self.selectedColor === color.toLowerCase()) { + cell.addClass('ke-colorpicker-cell-selected'); + } + cell.attr('title', color || self.options.noColor); + cell.mouseover(function(e) { + K(this).addClass('ke-colorpicker-cell-on'); + }); + cell.mouseout(function(e) { + K(this).removeClass('ke-colorpicker-cell-on'); + }); + cell.click(function(e) { + e.stop(); + self.options.click.call(K(this), color); + }); + if (color) { + cell.append(K('
    ').css('background-color', color)); + } else { + cell.html(self.options.noColor); + } + K(cell).attr('unselectable', 'on'); + self._cells.push(cell); + }, + remove : function() { + var self = this; + _each(self._cells, function() { + this.unbind(); + }); + KColorPicker.parent.remove.call(self); + return self; + } +}); +function _colorpicker(options) { + return new KColorPicker(options); +} +K.ColorPickerClass = KColorPicker; +K.colorpicker = _colorpicker; +function KUploadButton(options) { + this.init(options); +} +_extend(KUploadButton, { + init : function(options) { + //dump_obj(options); + var self = this, + button = K(options.button), + fieldName = options.fieldName || 'file', + url = options.url || '', + title = button.val(), + extraParams = options.extraParams || {}, + cls = button[0].className || '', + target = options.target || 'kindeditor_upload_iframe_' + new Date().getTime(); + options.afterError = options.afterError || function(str) { + alert(str); + }; + var hiddenElements = []; + for(var k in extraParams){ + hiddenElements.push(''); + } + var html = [ + '
    ', + (options.target ? '' : ''), + (options.form ? '
    ' : '
    '), + '', + hiddenElements.join(''), + '', + '', + '', + (options.form ? '
    ' : ''), + '
    '].join(''); + var div = K(html, button.doc); + $(div).hide()// 如果 以后要用根据 http://kindeditor.net/docs/uploadbutton.html#k-uploadbutton-options来使用uploadButton,那么这里的button会 是隐藏的 + button.hide(); + button.before(div); + self.div = div; + if(options.ops!=undefined)options.ops.up_file_div = div;//options.ops是KindEditor.create()的options参数 + self.button = button; + self.iframe = options.target ? K('iframe[name="' + target + '"]') : K('iframe', div); + self.form = options.form ? K(options.form) : K('form', div); + self.fileBox = K('.ke-upload-file', div); + var width = options.width || K('.ke-button-common', div).width(); + K('.ke-upload-area', div).width(width); + self.options = options; + }, + submit : function() { + var self = this, + iframe = self.iframe; + iframe.bind('load', function() { + iframe.unbind(); + var tempForm = document.createElement('form'); + self.fileBox.before(tempForm); + K(tempForm).append(self.fileBox); + tempForm.reset(); + K(tempForm).remove(true); + var doc = K.iframeDoc(iframe), + pre = doc.getElementsByTagName('pre')[0], + str = '', data; + if (pre) { + str = pre.innerHTML; + } else { + str = doc.body.innerHTML; + } + str = _unescape(str); + iframe[0].src = 'javascript:false'; + try { + data = K.json(str); + } catch (e) { + self.options.afterError.call(self, '' + doc.body.parentNode.innerHTML + ''); + } + if (data) { + self.options.afterUpload.call(self, data); + } + }); + self.form[0].submit(); + return self; + }, + remove : function() { + var self = this; + if (self.fileBox) { + self.fileBox.unbind(); + } + self.iframe.remove(); + self.div.remove(); + self.button.show(); + return self; + } +}); +function _uploadbutton(options) { + return new KUploadButton(options); +} +K.UploadButtonClass = KUploadButton; +K.uploadbutton = _uploadbutton; +function _createButton(arg) { + arg = arg || {}; + var name = arg.name || '', + span = K(''), + btn = K(''); + if (arg.click) { + btn.click(arg.click); + } + span.append(btn); + return span; +} +function KDialog(options) { + this.init(options); +} +_extend(KDialog, KWidget, { + init : function(options) { + var self = this; + var shadowMode = _undef(options.shadowMode, true); + options.z = options.z || 811213; + options.shadowMode = false; + options.autoScroll = _undef(options.autoScroll, true); + KDialog.parent.init.call(self, options); + var title = options.title, + body = K(options.body, self.doc), + previewBtn = options.previewBtn, + yesBtn = options.yesBtn, + noBtn = options.noBtn, + closeBtn = options.closeBtn, + showMask = _undef(options.showMask, true); + self.div.addClass('ke-dialog').bind('click,mousedown', function(e){ + e.stopPropagation(); + }); + var contentDiv = K('
    ').appendTo(self.div); + if (_IE && _V < 7) { + self.iframeMask = K('').appendTo(self.div); + } else if (shadowMode) { + K('
    ').appendTo(self.div); + } + var headerDiv = K('
    '); + contentDiv.append(headerDiv); + headerDiv.html(title); + self.closeIcon = K('').click(closeBtn.click); + headerDiv.append(self.closeIcon); + self.draggable({ + clickEl : headerDiv, + beforeDrag : options.beforeDrag + }); + var bodyDiv = K('
    '); + contentDiv.append(bodyDiv); + bodyDiv.append(body); + var footerDiv = K(''); + if (previewBtn || yesBtn || noBtn) { + contentDiv.append(footerDiv); + } + _each([ + { btn : previewBtn, name : 'preview' }, + { btn : yesBtn, name : 'yes' }, + { btn : noBtn, name : 'no' } + ], function() { + if (this.btn) { + var button = _createButton(this.btn); + button.addClass('ke-dialog-' + this.name); + footerDiv.append(button); + } + }); + if (self.height) { + bodyDiv.height(_removeUnit(self.height) - headerDiv.height() - footerDiv.height()); + } + self.div.width(self.div.width()); + self.div.height(self.div.height()); + self.mask = null; + if (showMask) { + var docEl = _docElement(self.doc), + docWidth = Math.max(docEl.scrollWidth, docEl.clientWidth), + docHeight = Math.max(docEl.scrollHeight, docEl.clientHeight); + self.mask = _widget({ + x : 0, + y : 0, + z : self.z - 1, + cls : 'ke-dialog-mask', + width : docWidth, + height : docHeight + }); + } + self.autoPos(self.div.width(), self.div.height()); + self.footerDiv = footerDiv; + self.bodyDiv = bodyDiv; + self.headerDiv = headerDiv; + self.isLoading = false; + }, + setMaskIndex : function(z) { + var self = this; + self.mask.div.css('z-index', z); + }, + showLoading : function(msg) { + msg = _undef(msg, ''); + var self = this, body = self.bodyDiv; + self.loading = K('
    ' + msg + '
    ') + .width(body.width()).height(body.height()) + .css('top', self.headerDiv.height() + 'px'); + body.css('visibility', 'hidden').after(self.loading); + self.isLoading = true; + return self; + }, + hideLoading : function() { + this.loading && this.loading.remove(); + this.bodyDiv.css('visibility', 'visible'); + this.isLoading = false; + return this; + }, + remove : function() { + var self = this; + if (self.options.beforeRemove) { + self.options.beforeRemove.call(self); + } + self.mask && self.mask.remove(); + self.iframeMask && self.iframeMask.remove(); + self.closeIcon.unbind(); + K('input', self.div).unbind(); + K('button', self.div).unbind(); + self.footerDiv.unbind(); + self.bodyDiv.unbind(); + self.headerDiv.unbind(); + K('iframe', self.div).each(function() { + K(this).remove(); + }); + KDialog.parent.remove.call(self); + return self; + } +}); +function _dialog(options) { + return new KDialog(options); +} +K.DialogClass = KDialog; +K.dialog = _dialog; +function _tabs(options) { + var self = _widget(options), + remove = self.remove, + afterSelect = options.afterSelect, + div = self.div, + liList = []; + div.addClass('ke-tabs') + .bind('contextmenu,mousedown,mousemove', function(e) { + e.preventDefault(); + }); + var ul = K('
      '); + div.append(ul); + self.add = function(tab) { + var li = K('
    • ' + tab.title + '
    • '); + li.data('tab', tab); + liList.push(li); + ul.append(li); + }; + self.selectedIndex = 0; + self.select = function(index) { + self.selectedIndex = index; + _each(liList, function(i, li) { + li.unbind(); + if (i === index) { + li.addClass('ke-tabs-li-selected'); + K(li.data('tab').panel).show(''); + } else { + li.removeClass('ke-tabs-li-selected').removeClass('ke-tabs-li-on') + .mouseover(function() { + K(this).addClass('ke-tabs-li-on'); + }) + .mouseout(function() { + K(this).removeClass('ke-tabs-li-on'); + }) + .click(function() { + self.select(i); + }); + K(li.data('tab').panel).hide(); + } + }); + if (afterSelect) { + afterSelect.call(self, index); + } + }; + self.remove = function() { + _each(liList, function() { + this.remove(); + }); + ul.remove(); + remove.call(self); + }; + return self; +} +K.tabs = _tabs; +function _loadScript(url, fn) { + var head = document.getElementsByTagName('head')[0] || (_QUIRKS ? document.body : document.documentElement), + script = document.createElement('script'); + head.appendChild(script); + script.src = url; + script.charset = 'utf-8'; + script.onload = script.onreadystatechange = function() { + if (!this.readyState || this.readyState === 'loaded') { + if (fn) { + fn(); + } + script.onload = script.onreadystatechange = null; + head.removeChild(script); + } + }; +} +function _chopQuery(url) { + var index = url.indexOf('?'); + return index > 0 ? url.substr(0, index) : url; +} +function _loadStyle(url) { + var head = document.getElementsByTagName('head')[0] || (_QUIRKS ? document.body : document.documentElement), + link = document.createElement('link'), + absoluteUrl = _chopQuery(_formatUrl(url, 'absolute')); + var links = K('link[rel="stylesheet"]', head); + for (var i = 0, len = links.length; i < len; i++) { + if (_chopQuery(_formatUrl(links[i].href, 'absolute')) === absoluteUrl) { + return; + } + } + head.appendChild(link); + link.href = url; + link.rel = 'stylesheet'; +} +function _ajax(url, fn, method, param, dataType) { + method = method || 'GET'; + dataType = dataType || 'json'; + var xhr = window.XMLHttpRequest ? new window.XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP'); + xhr.open(method, url, true); + xhr.onreadystatechange = function () { + if (xhr.readyState == 4 && xhr.status == 200) { + if (fn) { + var data = _trim(xhr.responseText); + if (dataType == 'json') { + data = _json(data); + } + fn(data); + } + } + }; + if (method == 'POST') { + var params = []; + _each(param, function(key, val) { + params.push(encodeURIComponent(key) + '=' + encodeURIComponent(val)); + }); + try { + xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); + } catch (e) {} + xhr.send(params.join('&')); + } else { + xhr.send(null); + } +} +K.loadScript = _loadScript; +K.loadStyle = _loadStyle; +K.ajax = _ajax; +var _plugins = {}; +function _plugin(name, fn) { + if (name === undefined) { + return _plugins; + } + if (!fn) { + return _plugins[name]; + } + _plugins[name] = fn; +} +var _language = {}; +function _parseLangKey(key) { + var match, ns = 'core'; + if ((match = /^(\w+)\.(\w+)$/.exec(key))) { + ns = match[1]; + key = match[2]; + } + return { ns : ns, key : key }; +} +function _lang(mixed, langType) { + langType = langType === undefined ? K.options.langType : langType; + if (typeof mixed === 'string') { + if (!_language[langType]) { + return 'no language'; + } + var pos = mixed.length - 1; + if (mixed.substr(pos) === '.') { + return _language[langType][mixed.substr(0, pos)]; + } + var obj = _parseLangKey(mixed); + return _language[langType][obj.ns][obj.key]; + } + _each(mixed, function(key, val) { + var obj = _parseLangKey(key); + if (!_language[langType]) { + _language[langType] = {}; + } + if (!_language[langType][obj.ns]) { + _language[langType][obj.ns] = {}; + } + _language[langType][obj.ns][obj.key] = val; + }); +} +function _getImageFromRange(range, fn) { + if (range.collapsed) { + return; + } + range = range.cloneRange().up(); + var sc = range.startContainer, so = range.startOffset; + if (!_WEBKIT && !range.isControl()) { + return; + } + var img = K(sc.childNodes[so]); + if (!img || img.name != 'img') { + return; + } + if (fn(img)) { + return img; + } +} +function _bindContextmenuEvent() { + var self = this, doc = self.edit.doc; + K(doc).contextmenu(function(e) { + if (self.menu) { + self.hideMenu(); + } + if (!self.useContextmenu) { + e.preventDefault(); + return; + } + if (self._contextmenus.length === 0) { + return; + } + var maxWidth = 0, items = []; + _each(self._contextmenus, function() { + if (this.title == '-') { + items.push(this); + return; + } + if (this.cond && this.cond()) { + items.push(this); + if (this.width && this.width > maxWidth) { + maxWidth = this.width; + } + } + }); + while (items.length > 0 && items[0].title == '-') { + items.shift(); + } + while (items.length > 0 && items[items.length - 1].title == '-') { + items.pop(); + } + var prevItem = null; + _each(items, function(i) { + if (this.title == '-' && prevItem.title == '-') { + delete items[i]; + } + prevItem = this; + }); + if (items.length > 0) { + e.preventDefault(); + var pos = K(self.edit.iframe).pos(), + menu = _menu({ + x : pos.x + e.clientX, + y : pos.y + e.clientY, + width : maxWidth, + css : { visibility: 'hidden' }, + shadowMode : self.shadowMode + }); + _each(items, function() { + if (this.title) { + menu.addItem(this); + } + }); + var docEl = _docElement(menu.doc), + menuHeight = menu.div.height(); + if (e.clientY + menuHeight >= docEl.clientHeight - 100) { + menu.pos(menu.x, _removeUnit(menu.y) - menuHeight); + } + menu.div.css('visibility', 'visible'); + self.menu = menu; + } + }); +} +function _bindNewlineEvent() { + var self = this, doc = self.edit.doc, newlineTag = self.newlineTag; + if (_IE && newlineTag !== 'br') { + return; + } + if (_GECKO && _V < 3 && newlineTag !== 'p') { + return; + } + if (_OPERA && _V < 9) { + return; + } + var brSkipTagMap = _toMap('h1,h2,h3,h4,h5,h6,pre,li'), + pSkipTagMap = _toMap('p,h1,h2,h3,h4,h5,h6,pre,li,blockquote'); + function getAncestorTagName(range) { + var ancestor = K(range.commonAncestor()); + while (ancestor) { + if (ancestor.type == 1 && !ancestor.isStyle()) { + break; + } + ancestor = ancestor.parent(); + } + return ancestor.name; + } + K(doc).keydown(function(e) { + if (e.which != 13 || e.shiftKey || e.ctrlKey || e.altKey) { + return; + } + self.cmd.selection(); + var tagName = getAncestorTagName(self.cmd.range); + if (tagName == 'marquee' || tagName == 'select') { + return; + } + if (newlineTag === 'br' && !brSkipTagMap[tagName]) { + e.preventDefault(); + self.insertHtml('
      ' + (_IE && _V < 9 ? '' : '\u200B')); + return; + } + if (!pSkipTagMap[tagName]) { + _nativeCommand(doc, 'formatblock', '

      '); + } + }); + K(doc).keyup(function(e) { + if (e.which != 13 || e.shiftKey || e.ctrlKey || e.altKey) { + return; + } + if (newlineTag == 'br') { + return; + } + if (_GECKO) { + var root = self.cmd.commonAncestor('p'); + var a = self.cmd.commonAncestor('a'); + if (a && a.text() == '') { + a.remove(true); + self.cmd.range.selectNodeContents(root[0]).collapse(true); + self.cmd.select(); + } + return; + } + self.cmd.selection(); + var tagName = getAncestorTagName(self.cmd.range); + if (tagName == 'marquee' || tagName == 'select') { + return; + } + if (!pSkipTagMap[tagName]) { + _nativeCommand(doc, 'formatblock', '

      '); + } + var div = self.cmd.commonAncestor('div'); + if (div) { + var p = K('

      '), + child = div[0].firstChild; + while (child) { + var next = child.nextSibling; + p.append(child); + child = next; + } + div.before(p); + div.remove(); + self.cmd.range.selectNodeContents(p[0]); + self.cmd.select(); + } + }); +} +function _bindTabEvent() { + var self = this, doc = self.edit.doc; + K(doc).keydown(function(e) { + if (e.which == 9) { + e.preventDefault(); + if (self.afterTab) { + self.afterTab.call(self, e); + return; + } + var cmd = self.cmd, range = cmd.range; + range.shrink(); + if (range.collapsed && range.startContainer.nodeType == 1) { + range.insertNode(K('@ ', doc)[0]); + cmd.select(); + } + self.insertHtml('    '); + } + }); +} +function _bindFocusEvent() { + var self = this; + K(self.edit.textarea[0], self.edit.win).focus(function(e) { + if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*[\,]*[\u4e00-\u9fa5]*[\。]*<\/\w*\>\s*$/.test(self.edit.html())){ + self.edit.html(''); + } + if(typeof self.options.enable_at === 'function'){ + self.options.enable_at(); + } + if (self.afterFocus) { + self.afterFocus.call(self, e); + } + }).blur(function(e) { + if(self.isEmpty()) { + if (self.placeholder != "") { + self.edit.html("" + self.placeholder + ""); + } + // self.edit.html(self.placeholder); + // self.edit.html("" + self.placeholder + ""); + } + if (self.afterBlur) { + self.afterBlur.call(self, e); + } + }); +} +function _removeBookmarkTag(html) { + return _trim(html.replace(/]*id="?__kindeditor_bookmark_\w+_\d+__"?[^>]*><\/span>/ig, '')); +} +function _removeTempTag(html) { + return html.replace(/]+class="?__kindeditor_paste__"?[^>]*>[\s\S]*?<\/div>/ig, ''); +} +function _addBookmarkToStack(stack, bookmark) { + if (stack.length === 0) { + stack.push(bookmark); + return; + } + var prev = stack[stack.length - 1]; + if (_removeBookmarkTag(bookmark.html) !== _removeBookmarkTag(prev.html)) { + stack.push(bookmark); + } +} +function _undoToRedo(fromStack, toStack) { + var self = this, edit = self.edit, + body = edit.doc.body, + range, bookmark; + if (fromStack.length === 0) { + return self; + } + if (edit.designMode) { + range = self.cmd.range; + bookmark = range.createBookmark(true); + bookmark.html = body.innerHTML; + } else { + bookmark = { + html : body.innerHTML + }; + } + _addBookmarkToStack(toStack, bookmark); + var prev = fromStack.pop(); + if (_removeBookmarkTag(bookmark.html) === _removeBookmarkTag(prev.html) && fromStack.length > 0) { + prev = fromStack.pop(); + } + if (edit.designMode) { + edit.html(prev.html); + if (prev.start) { + range.moveToBookmark(prev); + self.select(); + } + } else { + K(body).html(_removeBookmarkTag(prev.html)); + } + return self; +} +function KEditor(options) { + var self = this; + self.options = {}; + function setOption(key, val) { + if (KEditor.prototype[key] === undefined) { + self[key] = val; + } + self.options[key] = val; + } + _each(options, function(key, val) { + setOption(key, options[key]); + }); + _each(K.options, function(key, val) { + if (self[key] === undefined) { + setOption(key, val); + } + }); + var se = K(self.srcElement || '"; + support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; + } )(); + + + var + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)/; + + function returnTrue() { + return true; + } + + function returnFalse() { + return false; + } + +// Support: IE <=9 - 11+ +// focus() and blur() are asynchronous, except when they are no-op. +// So expect focus to be synchronous when the element is already active, +// and blur to be synchronous when the element is not already active. +// (focus and blur are always synchronous in other supported browsers, +// this just defines when we can count on it). + function expectSync( elem, type ) { + return ( elem === safeActiveElement() ) === ( type === "focus" ); + } + +// Support: IE <=9 only +// Accessing document.activeElement can throw unexpectedly +// https://bugs.jquery.com/ticket/13393 + function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } + } + + function on( elem, types, selector, data, fn, one ) { + var origFn, type; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + on( elem, type, selector, data, types[ type ], one ); + } + return elem; + } + + if ( data == null && fn == null ) { + + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return elem; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return elem.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + } ); + } + + /* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ + jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + + var handleObjIn, eventHandle, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.get( elem ); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if ( !elemData ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Ensure that invalid selectors throw exceptions at attach time + // Evaluate against documentElement in case elem is a non-element node (e.g., document) + if ( selector ) { + jQuery.find.matchesSelector( documentElement, selector ); + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !( events = elemData.events ) ) { + events = elemData.events = {}; + } + if ( !( eventHandle = elemData.handle ) ) { + eventHandle = elemData.handle = function( e ) { + + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? + jQuery.event.dispatch.apply( elem, arguments ) : undefined; + }; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend( { + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join( "." ) + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !( handlers = events[ type ] ) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener if the special events handler returns false + if ( !special.setup || + special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + + var j, origCount, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); + + if ( !elemData || !( events = elemData.events ) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[ 2 ] && + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || + selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || + special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove data and the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + dataPriv.remove( elem, "handle events" ); + } + }, + + dispatch: function( nativeEvent ) { + + // Make a writable jQuery.Event from the native event object + var event = jQuery.event.fix( nativeEvent ); + + var i, j, ret, matched, handleObj, handlerQueue, + args = new Array( arguments.length ), + handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[ 0 ] = event; + + for ( i = 1; i < arguments.length; i++ ) { + args[ i ] = arguments[ i ]; + } + + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( ( handleObj = matched.handlers[ j++ ] ) && + !event.isImmediatePropagationStopped() ) { + + // If the event is namespaced, then each handler is only invoked if it is + // specially universal or its namespaces are a superset of the event's. + if ( !event.rnamespace || handleObj.namespace === false || + event.rnamespace.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || + handleObj.handler ).apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( ( event.result = ret ) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var i, handleObj, sel, matchedHandlers, matchedSelectors, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Find delegate handlers + if ( delegateCount && + + // Support: IE <=9 + // Black-hole SVG instance trees (trac-13180) + cur.nodeType && + + // Support: Firefox <=42 + // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) + // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click + // Support: IE 11 only + // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) + !( event.type === "click" && event.button >= 1 ) ) { + + for ( ; cur !== this; cur = cur.parentNode || this ) { + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { + matchedHandlers = []; + matchedSelectors = {}; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matchedSelectors[ sel ] === undefined ) { + matchedSelectors[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) > -1 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matchedSelectors[ sel ] ) { + matchedHandlers.push( handleObj ); + } + } + if ( matchedHandlers.length ) { + handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); + } + } + } + } + + // Add the remaining (directly-bound) handlers + cur = this; + if ( delegateCount < handlers.length ) { + handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); + } + + return handlerQueue; + }, + + addProp: function( name, hook ) { + Object.defineProperty( jQuery.Event.prototype, name, { + enumerable: true, + configurable: true, + + get: isFunction( hook ) ? + function() { + if ( this.originalEvent ) { + return hook( this.originalEvent ); + } + } : + function() { + if ( this.originalEvent ) { + return this.originalEvent[ name ]; + } + }, + + set: function( value ) { + Object.defineProperty( this, name, { + enumerable: true, + configurable: true, + writable: true, + value: value + } ); + } + } ); + }, + + fix: function( originalEvent ) { + return originalEvent[ jQuery.expando ] ? + originalEvent : + new jQuery.Event( originalEvent ); + }, + + special: { + load: { + + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + click: { + + // Utilize native event to ensure correct state for checkable inputs + setup: function( data ) { + + // For mutual compressibility with _default, replace `this` access with a local var. + // `|| data` is dead code meant only to preserve the variable through minification. + var el = this || data; + + // Claim the first handler + if ( rcheckableType.test( el.type ) && + el.click && nodeName( el, "input" ) ) { + + // dataPriv.set( el, "click", ... ) + leverageNative( el, "click", returnTrue ); + } + + // Return false to allow normal processing in the caller + return false; + }, + trigger: function( data ) { + + // For mutual compressibility with _default, replace `this` access with a local var. + // `|| data` is dead code meant only to preserve the variable through minification. + var el = this || data; + + // Force setup before triggering a click + if ( rcheckableType.test( el.type ) && + el.click && nodeName( el, "input" ) ) { + + leverageNative( el, "click" ); + } + + // Return non-false to allow normal event-path propagation + return true; + }, + + // For cross-browser consistency, suppress native .click() on links + // Also prevent it if we're currently inside a leveraged native-event stack + _default: function( event ) { + var target = event.target; + return rcheckableType.test( target.type ) && + target.click && nodeName( target, "input" ) && + dataPriv.get( target, "click" ) || + nodeName( target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Support: Firefox 20+ + // Firefox doesn't alert if the returnValue field is not set. + if ( event.result !== undefined && event.originalEvent ) { + event.originalEvent.returnValue = event.result; + } + } + } + } + }; + +// Ensure the presence of an event listener that handles manually-triggered +// synthetic events by interrupting progress until reinvoked in response to +// *native* events that it fires directly, ensuring that state changes have +// already occurred before other listeners are invoked. + function leverageNative( el, type, expectSync ) { + + // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add + if ( !expectSync ) { + if ( dataPriv.get( el, type ) === undefined ) { + jQuery.event.add( el, type, returnTrue ); + } + return; + } + + // Register the controller as a special universal handler for all event namespaces + dataPriv.set( el, type, false ); + jQuery.event.add( el, type, { + namespace: false, + handler: function( event ) { + var notAsync, result, + saved = dataPriv.get( this, type ); + + if ( ( event.isTrigger & 1 ) && this[ type ] ) { + + // Interrupt processing of the outer synthetic .trigger()ed event + // Saved data should be false in such cases, but might be a leftover capture object + // from an async native handler (gh-4350) + if ( !saved.length ) { + + // Store arguments for use when handling the inner native event + // There will always be at least one argument (an event object), so this array + // will not be confused with a leftover capture object. + saved = slice.call( arguments ); + dataPriv.set( this, type, saved ); + + // Trigger the native event and capture its result + // Support: IE <=9 - 11+ + // focus() and blur() are asynchronous + notAsync = expectSync( this, type ); + this[ type ](); + result = dataPriv.get( this, type ); + if ( saved !== result || notAsync ) { + dataPriv.set( this, type, false ); + } else { + result = {}; + } + if ( saved !== result ) { + + // Cancel the outer synthetic event + event.stopImmediatePropagation(); + event.preventDefault(); + return result.value; + } + + // If this is an inner synthetic event for an event with a bubbling surrogate + // (focus or blur), assume that the surrogate already propagated from triggering the + // native event and prevent that from happening again here. + // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the + // bubbling surrogate propagates *after* the non-bubbling base), but that seems + // less bad than duplication. + } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { + event.stopPropagation(); + } + + // If this is a native event triggered above, everything is now in order + // Fire an inner synthetic event with the original arguments + } else if ( saved.length ) { + + // ...and capture the result + dataPriv.set( this, type, { + value: jQuery.event.trigger( + + // Support: IE <=9 - 11+ + // Extend with the prototype to reset the above stopImmediatePropagation() + jQuery.extend( saved[ 0 ], jQuery.Event.prototype ), + saved.slice( 1 ), + this + ) + } ); + + // Abort handling of the native event + event.stopImmediatePropagation(); + } + } + } ); + } + + jQuery.removeEvent = function( elem, type, handle ) { + + // This "if" is needed for plain objects + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle ); + } + }; + + jQuery.Event = function( src, props ) { + + // Allow instantiation without the 'new' keyword + if ( !( this instanceof jQuery.Event ) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = src.defaultPrevented || + src.defaultPrevented === undefined && + + // Support: Android <=2.3 only + src.returnValue === false ? + returnTrue : + returnFalse; + + // Create target properties + // Support: Safari <=6 - 7 only + // Target should not be a text node (#504, #13143) + this.target = ( src.target && src.target.nodeType === 3 ) ? + src.target.parentNode : + src.target; + + this.currentTarget = src.currentTarget; + this.relatedTarget = src.relatedTarget; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || Date.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; + }; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html + jQuery.Event.prototype = { + constructor: jQuery.Event, + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + isSimulated: false, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + + if ( e && !this.isSimulated ) { + e.preventDefault(); + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + + if ( e && !this.isSimulated ) { + e.stopPropagation(); + } + }, + stopImmediatePropagation: function() { + var e = this.originalEvent; + + this.isImmediatePropagationStopped = returnTrue; + + if ( e && !this.isSimulated ) { + e.stopImmediatePropagation(); + } + + this.stopPropagation(); + } + }; + +// Includes all common event props including KeyEvent and MouseEvent specific props + jQuery.each( { + altKey: true, + bubbles: true, + cancelable: true, + changedTouches: true, + ctrlKey: true, + detail: true, + eventPhase: true, + metaKey: true, + pageX: true, + pageY: true, + shiftKey: true, + view: true, + "char": true, + code: true, + charCode: true, + key: true, + keyCode: true, + button: true, + buttons: true, + clientX: true, + clientY: true, + offsetX: true, + offsetY: true, + pointerId: true, + pointerType: true, + screenX: true, + screenY: true, + targetTouches: true, + toElement: true, + touches: true, + + which: function( event ) { + var button = event.button; + + // Add which for key events + if ( event.which == null && rkeyEvent.test( event.type ) ) { + return event.charCode != null ? event.charCode : event.keyCode; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { + if ( button & 1 ) { + return 1; + } + + if ( button & 2 ) { + return 3; + } + + if ( button & 4 ) { + return 2; + } + + return 0; + } + + return event.which; + } + }, jQuery.event.addProp ); + + jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { + jQuery.event.special[ type ] = { + + // Utilize native event if possible so blur/focus sequence is correct + setup: function() { + + // Claim the first handler + // dataPriv.set( this, "focus", ... ) + // dataPriv.set( this, "blur", ... ) + leverageNative( this, type, expectSync ); + + // Return false to allow normal processing in the caller + return false; + }, + trigger: function() { + + // Force setup before trigger + leverageNative( this, type ); + + // Return non-false to allow normal event-path propagation + return true; + }, + + delegateType: delegateType + }; + } ); + +// Create mouseenter/leave events using mouseover/out and event-time checks +// so that event delegation works in jQuery. +// Do the same for pointerenter/pointerleave and pointerover/pointerout +// +// Support: Safari 7 only +// Safari sends mouseenter too often; see: +// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 +// for the description of the bug (it existed in older Chrome versions as well). + jQuery.each( { + mouseenter: "mouseover", + mouseleave: "mouseout", + pointerenter: "pointerover", + pointerleave: "pointerout" + }, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mouseenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; + } ); + + jQuery.fn.extend( { + + on: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn ); + }, + one: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? + handleObj.origType + "." + handleObj.namespace : + handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each( function() { + jQuery.event.remove( this, types, fn, selector ); + } ); + } + } ); + + + var + + /* eslint-disable max-len */ + + // See https://github.com/eslint/eslint/issues/3229 + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, + + /* eslint-enable */ + + // Support: IE <=10 - 11, Edge 12 - 13 only + // In IE/Edge using regex groups here causes severe slowdowns. + // See https://connect.microsoft.com/IE/feedback/details/1736512/ + rnoInnerhtml = /\s*$/g; + +// Prefer a tbody over its parent table for containing new rows + function manipulationTarget( elem, content ) { + if ( nodeName( elem, "table" ) && + nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { + + return jQuery( elem ).children( "tbody" )[ 0 ] || elem; + } + + return elem; + } + +// Replace/restore the type attribute of script elements for safe DOM manipulation + function disableScript( elem ) { + elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; + return elem; + } + function restoreScript( elem ) { + if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { + elem.type = elem.type.slice( 5 ); + } else { + elem.removeAttribute( "type" ); + } + + return elem; + } + + function cloneCopyEvent( src, dest ) { + var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; + + if ( dest.nodeType !== 1 ) { + return; + } + + // 1. Copy private data: events, handlers, etc. + if ( dataPriv.hasData( src ) ) { + pdataOld = dataPriv.access( src ); + pdataCur = dataPriv.set( dest, pdataOld ); + events = pdataOld.events; + + if ( events ) { + delete pdataCur.handle; + pdataCur.events = {}; + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + } + + // 2. Copy user data + if ( dataUser.hasData( src ) ) { + udataOld = dataUser.access( src ); + udataCur = jQuery.extend( {}, udataOld ); + + dataUser.set( dest, udataCur ); + } + } + +// Fix IE bugs, see support tests + function fixInput( src, dest ) { + var nodeName = dest.nodeName.toLowerCase(); + + // Fails to persist the checked state of a cloned checkbox or radio button. + if ( nodeName === "input" && rcheckableType.test( src.type ) ) { + dest.checked = src.checked; + + // Fails to return the selected option to the default selected state when cloning options + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } + } + + function domManip( collection, args, callback, ignored ) { + + // Flatten any nested arrays + args = concat.apply( [], args ); + + var fragment, first, scripts, hasScripts, node, doc, + i = 0, + l = collection.length, + iNoClone = l - 1, + value = args[ 0 ], + valueIsFunction = isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( valueIsFunction || + ( l > 1 && typeof value === "string" && + !support.checkClone && rchecked.test( value ) ) ) { + return collection.each( function( index ) { + var self = collection.eq( index ); + if ( valueIsFunction ) { + args[ 0 ] = value.call( this, index, self.html() ); + } + domManip( self, args, callback, ignored ); + } ); + } + + if ( l ) { + fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + // Require either new content or an interest in ignored elements to invoke the callback + if ( first || ignored ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item + // instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( collection[ i ], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !dataPriv.access( node, "globalEval" ) && + jQuery.contains( doc, node ) ) { + + if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { + + // Optional AJAX dependency, but won't run scripts if not present + if ( jQuery._evalUrl && !node.noModule ) { + jQuery._evalUrl( node.src, { + nonce: node.nonce || node.getAttribute( "nonce" ) + } ); + } + } else { + DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); + } + } + } + } + } + } + + return collection; + } + + function remove( elem, selector, keepData ) { + var node, + nodes = selector ? jQuery.filter( selector, elem ) : elem, + i = 0; + + for ( ; ( node = nodes[ i ] ) != null; i++ ) { + if ( !keepData && node.nodeType === 1 ) { + jQuery.cleanData( getAll( node ) ); + } + + if ( node.parentNode ) { + if ( keepData && isAttached( node ) ) { + setGlobalEval( getAll( node, "script" ) ); + } + node.parentNode.removeChild( node ); + } + } + + return elem; + } + + jQuery.extend( { + htmlPrefilter: function( html ) { + return html.replace( rxhtmlTag, "<$1>" ); + }, + + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var i, l, srcElements, destElements, + clone = elem.cloneNode( true ), + inPage = isAttached( elem ); + + // Fix IE cloning issues + if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && + !jQuery.isXMLDoc( elem ) ) { + + // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + fixInput( srcElements[ i ], destElements[ i ] ); + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + cloneCopyEvent( srcElements[ i ], destElements[ i ] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + // Return the cloned set + return clone; + }, + + cleanData: function( elems ) { + var data, elem, type, + special = jQuery.event.special, + i = 0; + + for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { + if ( acceptData( elem ) ) { + if ( ( data = elem[ dataPriv.expando ] ) ) { + if ( data.events ) { + for ( type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataPriv.expando ] = undefined; + } + if ( elem[ dataUser.expando ] ) { + + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataUser.expando ] = undefined; + } + } + } + } + } ); + + jQuery.fn.extend( { + detach: function( selector ) { + return remove( this, selector, true ); + }, + + remove: function( selector ) { + return remove( this, selector ); + }, + + text: function( value ) { + return access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().each( function() { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + this.textContent = value; + } + } ); + }, null, value, arguments.length ); + }, + + append: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + } ); + }, + + prepend: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + } ); + }, + + before: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + } ); + }, + + after: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + } ); + }, + + empty: function() { + var elem, + i = 0; + + for ( ; ( elem = this[ i ] ) != null; i++ ) { + if ( elem.nodeType === 1 ) { + + // Prevent memory leaks + jQuery.cleanData( getAll( elem, false ) ); + + // Remove any remaining nodes + elem.textContent = ""; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map( function() { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + } ); + }, + + html: function( value ) { + return access( this, function( value ) { + var elem = this[ 0 ] || {}, + i = 0, + l = this.length; + + if ( value === undefined && elem.nodeType === 1 ) { + return elem.innerHTML; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { + + value = jQuery.htmlPrefilter( value ); + + try { + for ( ; i < l; i++ ) { + elem = this[ i ] || {}; + + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch ( e ) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var ignored = []; + + // Make the changes, replacing each non-ignored context element with the new content + return domManip( this, arguments, function( elem ) { + var parent = this.parentNode; + + if ( jQuery.inArray( this, ignored ) < 0 ) { + jQuery.cleanData( getAll( this ) ); + if ( parent ) { + parent.replaceChild( elem, this ); + } + } + + // Force callback invocation + }, ignored ); + } + } ); + + jQuery.each( { + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" + }, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1, + i = 0; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone( true ); + jQuery( insert[ i ] )[ original ]( elems ); + + // Support: Android <=4.0 only, PhantomJS 1 only + // .get() because push.apply(_, arraylike) throws on ancient WebKit + push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; + } ); + var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); + + var getStyles = function( elem ) { + + // Support: IE <=11 only, Firefox <=30 (#15098, #14150) + // IE throws on elements created in popups + // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" + var view = elem.ownerDocument.defaultView; + + if ( !view || !view.opener ) { + view = window; + } + + return view.getComputedStyle( elem ); + }; + + var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); + + + + ( function() { + + // Executing both pixelPosition & boxSizingReliable tests require only one layout + // so they're executed at the same time to save the second computation. + function computeStyleTests() { + + // This is a singleton, we need to execute it only once + if ( !div ) { + return; + } + + container.style.cssText = "position:absolute;left:-11111px;width:60px;" + + "margin-top:1px;padding:0;border:0"; + div.style.cssText = + "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + + "margin:auto;border:1px;padding:1px;" + + "width:60%;top:1%"; + documentElement.appendChild( container ).appendChild( div ); + + var divStyle = window.getComputedStyle( div ); + pixelPositionVal = divStyle.top !== "1%"; + + // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 + reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; + + // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 + // Some styles come back with percentage values, even though they shouldn't + div.style.right = "60%"; + pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; + + // Support: IE 9 - 11 only + // Detect misreporting of content dimensions for box-sizing:border-box elements + boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; + + // Support: IE 9 only + // Detect overflow:scroll screwiness (gh-3699) + // Support: Chrome <=64 + // Don't get tricked when zoom affects offsetWidth (gh-4029) + div.style.position = "absolute"; + scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12; + + documentElement.removeChild( container ); + + // Nullify the div so it wouldn't be stored in the memory and + // it will also be a sign that checks already performed + div = null; + } + + function roundPixelMeasures( measure ) { + return Math.round( parseFloat( measure ) ); + } + + var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, + reliableMarginLeftVal, + container = document.createElement( "div" ), + div = document.createElement( "div" ); + + // Finish early in limited (non-browser) environments + if ( !div.style ) { + return; + } + + // Support: IE <=9 - 11 only + // Style of cloned element affects source element cloned (#8908) + div.style.backgroundClip = "content-box"; + div.cloneNode( true ).style.backgroundClip = ""; + support.clearCloneStyle = div.style.backgroundClip === "content-box"; + + jQuery.extend( support, { + boxSizingReliable: function() { + computeStyleTests(); + return boxSizingReliableVal; + }, + pixelBoxStyles: function() { + computeStyleTests(); + return pixelBoxStylesVal; + }, + pixelPosition: function() { + computeStyleTests(); + return pixelPositionVal; + }, + reliableMarginLeft: function() { + computeStyleTests(); + return reliableMarginLeftVal; + }, + scrollboxSize: function() { + computeStyleTests(); + return scrollboxSizeVal; + } + } ); + } )(); + + + function curCSS( elem, name, computed ) { + var width, minWidth, maxWidth, ret, + + // Support: Firefox 51+ + // Retrieving style before computed somehow + // fixes an issue with getting wrong values + // on detached elements + style = elem.style; + + computed = computed || getStyles( elem ); + + // getPropertyValue is needed for: + // .css('filter') (IE 9 only, #12537) + // .css('--customProperty) (#3144) + if ( computed ) { + ret = computed.getPropertyValue( name ) || computed[ name ]; + + if ( ret === "" && !isAttached( elem ) ) { + ret = jQuery.style( elem, name ); + } + + // A tribute to the "awesome hack by Dean Edwards" + // Android Browser returns percentage for some values, + // but width seems to be reliably pixels. + // This is against the CSSOM draft spec: + // https://drafts.csswg.org/cssom/#resolved-values + if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { + + // Remember the original values + width = style.width; + minWidth = style.minWidth; + maxWidth = style.maxWidth; + + // Put in the new values to get a computed value out + style.minWidth = style.maxWidth = style.width = ret; + ret = computed.width; + + // Revert the changed values + style.width = width; + style.minWidth = minWidth; + style.maxWidth = maxWidth; + } + } + + return ret !== undefined ? + + // Support: IE <=9 - 11 only + // IE returns zIndex value as an integer. + ret + "" : + ret; + } + + + function addGetHookIf( conditionFn, hookFn ) { + + // Define the hook, we'll check on the first run if it's really needed. + return { + get: function() { + if ( conditionFn() ) { + + // Hook not needed (or it's not possible to use it due + // to missing dependency), remove it. + delete this.get; + return; + } + + // Hook needed; redefine it so that the support test is not executed again. + return ( this.get = hookFn ).apply( this, arguments ); + } + }; + } + + + var cssPrefixes = [ "Webkit", "Moz", "ms" ], + emptyStyle = document.createElement( "div" ).style, + vendorProps = {}; + +// Return a vendor-prefixed property or undefined + function vendorPropName( name ) { + + // Check for vendor prefixed names + var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), + i = cssPrefixes.length; + + while ( i-- ) { + name = cssPrefixes[ i ] + capName; + if ( name in emptyStyle ) { + return name; + } + } + } + +// Return a potentially-mapped jQuery.cssProps or vendor prefixed property + function finalPropName( name ) { + var final = jQuery.cssProps[ name ] || vendorProps[ name ]; + + if ( final ) { + return final; + } + if ( name in emptyStyle ) { + return name; + } + return vendorProps[ name ] = vendorPropName( name ) || name; + } + + + var + + // Swappable if display is none or starts with table + // except "table", "table-cell", or "table-caption" + // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display + rdisplayswap = /^(none|table(?!-c[ea]).+)/, + rcustomProp = /^--/, + cssShow = { position: "absolute", visibility: "hidden", display: "block" }, + cssNormalTransform = { + letterSpacing: "0", + fontWeight: "400" + }; + + function setPositiveNumber( elem, value, subtract ) { + + // Any relative (+/-) values have already been + // normalized at this point + var matches = rcssNum.exec( value ); + return matches ? + + // Guard against undefined "subtract", e.g., when used as in cssHooks + Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : + value; + } + + function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { + var i = dimension === "width" ? 1 : 0, + extra = 0, + delta = 0; + + // Adjustment may not be necessary + if ( box === ( isBorderBox ? "border" : "content" ) ) { + return 0; + } + + for ( ; i < 4; i += 2 ) { + + // Both box models exclude margin + if ( box === "margin" ) { + delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); + } + + // If we get here with a content-box, we're seeking "padding" or "border" or "margin" + if ( !isBorderBox ) { + + // Add padding + delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + + // For "border" or "margin", add border + if ( box !== "padding" ) { + delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + + // But still keep track of it otherwise + } else { + extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + + // If we get here with a border-box (content + padding + border), we're seeking "content" or + // "padding" or "margin" + } else { + + // For "content", subtract padding + if ( box === "content" ) { + delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + } + + // For "content" or "padding", subtract border + if ( box !== "margin" ) { + delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + } + } + + // Account for positive content-box scroll gutter when requested by providing computedVal + if ( !isBorderBox && computedVal >= 0 ) { + + // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border + // Assuming integer scroll gutter, subtract the rest and round down + delta += Math.max( 0, Math.ceil( + elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - + computedVal - + delta - + extra - + 0.5 + + // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter + // Use an explicit zero to avoid NaN (gh-3964) + ) ) || 0; + } + + return delta; + } + + function getWidthOrHeight( elem, dimension, extra ) { + + // Start with computed style + var styles = getStyles( elem ), + + // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322). + // Fake content-box until we know it's needed to know the true value. + boxSizingNeeded = !support.boxSizingReliable() || extra, + isBorderBox = boxSizingNeeded && + jQuery.css( elem, "boxSizing", false, styles ) === "border-box", + valueIsBorderBox = isBorderBox, + + val = curCSS( elem, dimension, styles ), + offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ); + + // Support: Firefox <=54 + // Return a confounding non-pixel value or feign ignorance, as appropriate. + if ( rnumnonpx.test( val ) ) { + if ( !extra ) { + return val; + } + val = "auto"; + } + + + // Fall back to offsetWidth/offsetHeight when value is "auto" + // This happens for inline elements with no explicit setting (gh-3571) + // Support: Android <=4.1 - 4.3 only + // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) + // Support: IE 9-11 only + // Also use offsetWidth/offsetHeight for when box sizing is unreliable + // We use getClientRects() to check for hidden/disconnected. + // In those cases, the computed value can be trusted to be border-box + if ( ( !support.boxSizingReliable() && isBorderBox || + val === "auto" || + !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) && + elem.getClientRects().length ) { + + isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; + + // Where available, offsetWidth/offsetHeight approximate border box dimensions. + // Where not available (e.g., SVG), assume unreliable box-sizing and interpret the + // retrieved value as a content box dimension. + valueIsBorderBox = offsetProp in elem; + if ( valueIsBorderBox ) { + val = elem[ offsetProp ]; + } + } + + // Normalize "" and auto + val = parseFloat( val ) || 0; + + // Adjust for the element's box model + return ( val + + boxModelAdjustment( + elem, + dimension, + extra || ( isBorderBox ? "border" : "content" ), + valueIsBorderBox, + styles, + + // Provide the current computed size to request scroll gutter calculation (gh-3589) + val + ) + ) + "px"; + } + + jQuery.extend( { + + // Add in style property hooks for overriding the default + // behavior of getting and setting a style property + cssHooks: { + opacity: { + get: function( elem, computed ) { + if ( computed ) { + + // We should always get a number back from opacity + var ret = curCSS( elem, "opacity" ); + return ret === "" ? "1" : ret; + } + } + } + }, + + // Don't automatically add "px" to these possibly-unitless properties + cssNumber: { + "animationIterationCount": true, + "columnCount": true, + "fillOpacity": true, + "flexGrow": true, + "flexShrink": true, + "fontWeight": true, + "gridArea": true, + "gridColumn": true, + "gridColumnEnd": true, + "gridColumnStart": true, + "gridRow": true, + "gridRowEnd": true, + "gridRowStart": true, + "lineHeight": true, + "opacity": true, + "order": true, + "orphans": true, + "widows": true, + "zIndex": true, + "zoom": true + }, + + // Add in properties whose names you wish to fix before + // setting or getting the value + cssProps: {}, + + // Get and set the style property on a DOM Node + style: function( elem, name, value, extra ) { + + // Don't set styles on text and comment nodes + if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { + return; + } + + // Make sure that we're working with the right name + var ret, type, hooks, + origName = camelCase( name ), + isCustomProp = rcustomProp.test( name ), + style = elem.style; + + // Make sure that we're working with the right name. We don't + // want to query the value if it is a CSS custom property + // since they are user-defined. + if ( !isCustomProp ) { + name = finalPropName( origName ); + } + + // Gets hook for the prefixed version, then unprefixed version + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // Check if we're setting a value + if ( value !== undefined ) { + type = typeof value; + + // Convert "+=" or "-=" to relative numbers (#7345) + if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { + value = adjustCSS( elem, name, ret ); + + // Fixes bug #9237 + type = "number"; + } + + // Make sure that null and NaN values aren't set (#7116) + if ( value == null || value !== value ) { + return; + } + + // If a number was passed in, add the unit (except for certain CSS properties) + // The isCustomProp check can be removed in jQuery 4.0 when we only auto-append + // "px" to a few hardcoded values. + if ( type === "number" && !isCustomProp ) { + value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); + } + + // background-* props affect original clone's values + if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { + style[ name ] = "inherit"; + } + + // If a hook was provided, use that value, otherwise just set the specified value + if ( !hooks || !( "set" in hooks ) || + ( value = hooks.set( elem, value, extra ) ) !== undefined ) { + + if ( isCustomProp ) { + style.setProperty( name, value ); + } else { + style[ name ] = value; + } + } + + } else { + + // If a hook was provided get the non-computed value from there + if ( hooks && "get" in hooks && + ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { + + return ret; + } + + // Otherwise just get the value from the style object + return style[ name ]; + } + }, + + css: function( elem, name, extra, styles ) { + var val, num, hooks, + origName = camelCase( name ), + isCustomProp = rcustomProp.test( name ); + + // Make sure that we're working with the right name. We don't + // want to modify the value if it is a CSS custom property + // since they are user-defined. + if ( !isCustomProp ) { + name = finalPropName( origName ); + } + + // Try prefixed name followed by the unprefixed name + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // If a hook was provided get the computed value from there + if ( hooks && "get" in hooks ) { + val = hooks.get( elem, true, extra ); + } + + // Otherwise, if a way to get the computed value exists, use that + if ( val === undefined ) { + val = curCSS( elem, name, styles ); + } + + // Convert "normal" to computed value + if ( val === "normal" && name in cssNormalTransform ) { + val = cssNormalTransform[ name ]; + } + + // Make numeric if forced or a qualifier was provided and val looks numeric + if ( extra === "" || extra ) { + num = parseFloat( val ); + return extra === true || isFinite( num ) ? num || 0 : val; + } + + return val; + } + } ); + + jQuery.each( [ "height", "width" ], function( i, dimension ) { + jQuery.cssHooks[ dimension ] = { + get: function( elem, computed, extra ) { + if ( computed ) { + + // Certain elements can have dimension info if we invisibly show them + // but it must have a current display style that would benefit + return rdisplayswap.test( jQuery.css( elem, "display" ) ) && + + // Support: Safari 8+ + // Table columns in Safari have non-zero offsetWidth & zero + // getBoundingClientRect().width unless display is changed. + // Support: IE <=11 only + // Running getBoundingClientRect on a disconnected node + // in IE throws an error. + ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? + swap( elem, cssShow, function() { + return getWidthOrHeight( elem, dimension, extra ); + } ) : + getWidthOrHeight( elem, dimension, extra ); + } + }, + + set: function( elem, value, extra ) { + var matches, + styles = getStyles( elem ), + + // Only read styles.position if the test has a chance to fail + // to avoid forcing a reflow. + scrollboxSizeBuggy = !support.scrollboxSize() && + styles.position === "absolute", + + // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991) + boxSizingNeeded = scrollboxSizeBuggy || extra, + isBorderBox = boxSizingNeeded && + jQuery.css( elem, "boxSizing", false, styles ) === "border-box", + subtract = extra ? + boxModelAdjustment( + elem, + dimension, + extra, + isBorderBox, + styles + ) : + 0; + + // Account for unreliable border-box dimensions by comparing offset* to computed and + // faking a content-box to get border and padding (gh-3699) + if ( isBorderBox && scrollboxSizeBuggy ) { + subtract -= Math.ceil( + elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - + parseFloat( styles[ dimension ] ) - + boxModelAdjustment( elem, dimension, "border", false, styles ) - + 0.5 + ); + } + + // Convert to pixels if value adjustment is needed + if ( subtract && ( matches = rcssNum.exec( value ) ) && + ( matches[ 3 ] || "px" ) !== "px" ) { + + elem.style[ dimension ] = value; + value = jQuery.css( elem, dimension ); + } + + return setPositiveNumber( elem, value, subtract ); + } + }; + } ); + + jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, + function( elem, computed ) { + if ( computed ) { + return ( parseFloat( curCSS( elem, "marginLeft" ) ) || + elem.getBoundingClientRect().left - + swap( elem, { marginLeft: 0 }, function() { + return elem.getBoundingClientRect().left; + } ) + ) + "px"; + } + } + ); + +// These hooks are used by animate to expand properties + jQuery.each( { + margin: "", + padding: "", + border: "Width" + }, function( prefix, suffix ) { + jQuery.cssHooks[ prefix + suffix ] = { + expand: function( value ) { + var i = 0, + expanded = {}, + + // Assumes a single number if not a string + parts = typeof value === "string" ? value.split( " " ) : [ value ]; + + for ( ; i < 4; i++ ) { + expanded[ prefix + cssExpand[ i ] + suffix ] = + parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; + } + + return expanded; + } + }; + + if ( prefix !== "margin" ) { + jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; + } + } ); + + jQuery.fn.extend( { + css: function( name, value ) { + return access( this, function( elem, name, value ) { + var styles, len, + map = {}, + i = 0; + + if ( Array.isArray( name ) ) { + styles = getStyles( elem ); + len = name.length; + + for ( ; i < len; i++ ) { + map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); + } + + return map; + } + + return value !== undefined ? + jQuery.style( elem, name, value ) : + jQuery.css( elem, name ); + }, name, value, arguments.length > 1 ); + } + } ); + + + function Tween( elem, options, prop, end, easing ) { + return new Tween.prototype.init( elem, options, prop, end, easing ); + } + jQuery.Tween = Tween; + + Tween.prototype = { + constructor: Tween, + init: function( elem, options, prop, end, easing, unit ) { + this.elem = elem; + this.prop = prop; + this.easing = easing || jQuery.easing._default; + this.options = options; + this.start = this.now = this.cur(); + this.end = end; + this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); + }, + cur: function() { + var hooks = Tween.propHooks[ this.prop ]; + + return hooks && hooks.get ? + hooks.get( this ) : + Tween.propHooks._default.get( this ); + }, + run: function( percent ) { + var eased, + hooks = Tween.propHooks[ this.prop ]; + + if ( this.options.duration ) { + this.pos = eased = jQuery.easing[ this.easing ]( + percent, this.options.duration * percent, 0, 1, this.options.duration + ); + } else { + this.pos = eased = percent; + } + this.now = ( this.end - this.start ) * eased + this.start; + + if ( this.options.step ) { + this.options.step.call( this.elem, this.now, this ); + } + + if ( hooks && hooks.set ) { + hooks.set( this ); + } else { + Tween.propHooks._default.set( this ); + } + return this; + } + }; + + Tween.prototype.init.prototype = Tween.prototype; + + Tween.propHooks = { + _default: { + get: function( tween ) { + var result; + + // Use a property on the element directly when it is not a DOM element, + // or when there is no matching style property that exists. + if ( tween.elem.nodeType !== 1 || + tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { + return tween.elem[ tween.prop ]; + } + + // Passing an empty string as a 3rd parameter to .css will automatically + // attempt a parseFloat and fallback to a string if the parse fails. + // Simple values such as "10px" are parsed to Float; + // complex values such as "rotate(1rad)" are returned as-is. + result = jQuery.css( tween.elem, tween.prop, "" ); + + // Empty strings, null, undefined and "auto" are converted to 0. + return !result || result === "auto" ? 0 : result; + }, + set: function( tween ) { + + // Use step hook for back compat. + // Use cssHook if its there. + // Use .style if available and use plain properties where available. + if ( jQuery.fx.step[ tween.prop ] ) { + jQuery.fx.step[ tween.prop ]( tween ); + } else if ( tween.elem.nodeType === 1 && ( + jQuery.cssHooks[ tween.prop ] || + tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) { + jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); + } else { + tween.elem[ tween.prop ] = tween.now; + } + } + } + }; + +// Support: IE <=9 only +// Panic based approach to setting things on disconnected nodes + Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { + set: function( tween ) { + if ( tween.elem.nodeType && tween.elem.parentNode ) { + tween.elem[ tween.prop ] = tween.now; + } + } + }; + + jQuery.easing = { + linear: function( p ) { + return p; + }, + swing: function( p ) { + return 0.5 - Math.cos( p * Math.PI ) / 2; + }, + _default: "swing" + }; + + jQuery.fx = Tween.prototype.init; + +// Back compat <1.8 extension point + jQuery.fx.step = {}; + + + + + var + fxNow, inProgress, + rfxtypes = /^(?:toggle|show|hide)$/, + rrun = /queueHooks$/; + + function schedule() { + if ( inProgress ) { + if ( document.hidden === false && window.requestAnimationFrame ) { + window.requestAnimationFrame( schedule ); + } else { + window.setTimeout( schedule, jQuery.fx.interval ); + } + + jQuery.fx.tick(); + } + } + +// Animations created synchronously will run synchronously + function createFxNow() { + window.setTimeout( function() { + fxNow = undefined; + } ); + return ( fxNow = Date.now() ); + } + +// Generate parameters to create a standard animation + function genFx( type, includeWidth ) { + var which, + i = 0, + attrs = { height: type }; + + // If we include width, step value is 1 to do all cssExpand values, + // otherwise step value is 2 to skip over Left and Right + includeWidth = includeWidth ? 1 : 0; + for ( ; i < 4; i += 2 - includeWidth ) { + which = cssExpand[ i ]; + attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; + } + + if ( includeWidth ) { + attrs.opacity = attrs.width = type; + } + + return attrs; + } + + function createTween( value, prop, animation ) { + var tween, + collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), + index = 0, + length = collection.length; + for ( ; index < length; index++ ) { + if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { + + // We're done with this property + return tween; + } + } + } + + function defaultPrefilter( elem, props, opts ) { + var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, + isBox = "width" in props || "height" in props, + anim = this, + orig = {}, + style = elem.style, + hidden = elem.nodeType && isHiddenWithinTree( elem ), + dataShow = dataPriv.get( elem, "fxshow" ); + + // Queue-skipping animations hijack the fx hooks + if ( !opts.queue ) { + hooks = jQuery._queueHooks( elem, "fx" ); + if ( hooks.unqueued == null ) { + hooks.unqueued = 0; + oldfire = hooks.empty.fire; + hooks.empty.fire = function() { + if ( !hooks.unqueued ) { + oldfire(); + } + }; + } + hooks.unqueued++; + + anim.always( function() { + + // Ensure the complete handler is called before this completes + anim.always( function() { + hooks.unqueued--; + if ( !jQuery.queue( elem, "fx" ).length ) { + hooks.empty.fire(); + } + } ); + } ); + } + + // Detect show/hide animations + for ( prop in props ) { + value = props[ prop ]; + if ( rfxtypes.test( value ) ) { + delete props[ prop ]; + toggle = toggle || value === "toggle"; + if ( value === ( hidden ? "hide" : "show" ) ) { + + // Pretend to be hidden if this is a "show" and + // there is still data from a stopped show/hide + if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { + hidden = true; + + // Ignore all other no-op show/hide data + } else { + continue; + } + } + orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); + } + } + + // Bail out if this is a no-op like .hide().hide() + propTween = !jQuery.isEmptyObject( props ); + if ( !propTween && jQuery.isEmptyObject( orig ) ) { + return; + } + + // Restrict "overflow" and "display" styles during box animations + if ( isBox && elem.nodeType === 1 ) { + + // Support: IE <=9 - 11, Edge 12 - 15 + // Record all 3 overflow attributes because IE does not infer the shorthand + // from identically-valued overflowX and overflowY and Edge just mirrors + // the overflowX value there. + opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; + + // Identify a display type, preferring old show/hide data over the CSS cascade + restoreDisplay = dataShow && dataShow.display; + if ( restoreDisplay == null ) { + restoreDisplay = dataPriv.get( elem, "display" ); + } + display = jQuery.css( elem, "display" ); + if ( display === "none" ) { + if ( restoreDisplay ) { + display = restoreDisplay; + } else { + + // Get nonempty value(s) by temporarily forcing visibility + showHide( [ elem ], true ); + restoreDisplay = elem.style.display || restoreDisplay; + display = jQuery.css( elem, "display" ); + showHide( [ elem ] ); + } + } + + // Animate inline elements as inline-block + if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { + if ( jQuery.css( elem, "float" ) === "none" ) { + + // Restore the original display value at the end of pure show/hide animations + if ( !propTween ) { + anim.done( function() { + style.display = restoreDisplay; + } ); + if ( restoreDisplay == null ) { + display = style.display; + restoreDisplay = display === "none" ? "" : display; + } + } + style.display = "inline-block"; + } + } + } + + if ( opts.overflow ) { + style.overflow = "hidden"; + anim.always( function() { + style.overflow = opts.overflow[ 0 ]; + style.overflowX = opts.overflow[ 1 ]; + style.overflowY = opts.overflow[ 2 ]; + } ); + } + + // Implement show/hide animations + propTween = false; + for ( prop in orig ) { + + // General show/hide setup for this element animation + if ( !propTween ) { + if ( dataShow ) { + if ( "hidden" in dataShow ) { + hidden = dataShow.hidden; + } + } else { + dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); + } + + // Store hidden/visible for toggle so `.stop().toggle()` "reverses" + if ( toggle ) { + dataShow.hidden = !hidden; + } + + // Show elements before animating them + if ( hidden ) { + showHide( [ elem ], true ); + } + + /* eslint-disable no-loop-func */ + + anim.done( function() { + + /* eslint-enable no-loop-func */ + + // The final step of a "hide" animation is actually hiding the element + if ( !hidden ) { + showHide( [ elem ] ); + } + dataPriv.remove( elem, "fxshow" ); + for ( prop in orig ) { + jQuery.style( elem, prop, orig[ prop ] ); + } + } ); + } + + // Per-property setup + propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); + if ( !( prop in dataShow ) ) { + dataShow[ prop ] = propTween.start; + if ( hidden ) { + propTween.end = propTween.start; + propTween.start = 0; + } + } + } + } + + function propFilter( props, specialEasing ) { + var index, name, easing, value, hooks; + + // camelCase, specialEasing and expand cssHook pass + for ( index in props ) { + name = camelCase( index ); + easing = specialEasing[ name ]; + value = props[ index ]; + if ( Array.isArray( value ) ) { + easing = value[ 1 ]; + value = props[ index ] = value[ 0 ]; + } + + if ( index !== name ) { + props[ name ] = value; + delete props[ index ]; + } + + hooks = jQuery.cssHooks[ name ]; + if ( hooks && "expand" in hooks ) { + value = hooks.expand( value ); + delete props[ name ]; + + // Not quite $.extend, this won't overwrite existing keys. + // Reusing 'index' because we have the correct "name" + for ( index in value ) { + if ( !( index in props ) ) { + props[ index ] = value[ index ]; + specialEasing[ index ] = easing; + } + } + } else { + specialEasing[ name ] = easing; + } + } + } + + function Animation( elem, properties, options ) { + var result, + stopped, + index = 0, + length = Animation.prefilters.length, + deferred = jQuery.Deferred().always( function() { + + // Don't match elem in the :animated selector + delete tick.elem; + } ), + tick = function() { + if ( stopped ) { + return false; + } + var currentTime = fxNow || createFxNow(), + remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), + + // Support: Android 2.3 only + // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) + temp = remaining / animation.duration || 0, + percent = 1 - temp, + index = 0, + length = animation.tweens.length; + + for ( ; index < length; index++ ) { + animation.tweens[ index ].run( percent ); + } + + deferred.notifyWith( elem, [ animation, percent, remaining ] ); + + // If there's more to do, yield + if ( percent < 1 && length ) { + return remaining; + } + + // If this was an empty animation, synthesize a final progress notification + if ( !length ) { + deferred.notifyWith( elem, [ animation, 1, 0 ] ); + } + + // Resolve the animation and report its conclusion + deferred.resolveWith( elem, [ animation ] ); + return false; + }, + animation = deferred.promise( { + elem: elem, + props: jQuery.extend( {}, properties ), + opts: jQuery.extend( true, { + specialEasing: {}, + easing: jQuery.easing._default + }, options ), + originalProperties: properties, + originalOptions: options, + startTime: fxNow || createFxNow(), + duration: options.duration, + tweens: [], + createTween: function( prop, end ) { + var tween = jQuery.Tween( elem, animation.opts, prop, end, + animation.opts.specialEasing[ prop ] || animation.opts.easing ); + animation.tweens.push( tween ); + return tween; + }, + stop: function( gotoEnd ) { + var index = 0, + + // If we are going to the end, we want to run all the tweens + // otherwise we skip this part + length = gotoEnd ? animation.tweens.length : 0; + if ( stopped ) { + return this; + } + stopped = true; + for ( ; index < length; index++ ) { + animation.tweens[ index ].run( 1 ); + } + + // Resolve when we played the last frame; otherwise, reject + if ( gotoEnd ) { + deferred.notifyWith( elem, [ animation, 1, 0 ] ); + deferred.resolveWith( elem, [ animation, gotoEnd ] ); + } else { + deferred.rejectWith( elem, [ animation, gotoEnd ] ); + } + return this; + } + } ), + props = animation.props; + + propFilter( props, animation.opts.specialEasing ); + + for ( ; index < length; index++ ) { + result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); + if ( result ) { + if ( isFunction( result.stop ) ) { + jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = + result.stop.bind( result ); + } + return result; + } + } + + jQuery.map( props, createTween, animation ); + + if ( isFunction( animation.opts.start ) ) { + animation.opts.start.call( elem, animation ); + } + + // Attach callbacks from options + animation + .progress( animation.opts.progress ) + .done( animation.opts.done, animation.opts.complete ) + .fail( animation.opts.fail ) + .always( animation.opts.always ); + + jQuery.fx.timer( + jQuery.extend( tick, { + elem: elem, + anim: animation, + queue: animation.opts.queue + } ) + ); + + return animation; + } + + jQuery.Animation = jQuery.extend( Animation, { + + tweeners: { + "*": [ function( prop, value ) { + var tween = this.createTween( prop, value ); + adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); + return tween; + } ] + }, + + tweener: function( props, callback ) { + if ( isFunction( props ) ) { + callback = props; + props = [ "*" ]; + } else { + props = props.match( rnothtmlwhite ); + } + + var prop, + index = 0, + length = props.length; + + for ( ; index < length; index++ ) { + prop = props[ index ]; + Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; + Animation.tweeners[ prop ].unshift( callback ); + } + }, + + prefilters: [ defaultPrefilter ], + + prefilter: function( callback, prepend ) { + if ( prepend ) { + Animation.prefilters.unshift( callback ); + } else { + Animation.prefilters.push( callback ); + } + } + } ); + + jQuery.speed = function( speed, easing, fn ) { + var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { + complete: fn || !fn && easing || + isFunction( speed ) && speed, + duration: speed, + easing: fn && easing || easing && !isFunction( easing ) && easing + }; + + // Go to the end state if fx are off + if ( jQuery.fx.off ) { + opt.duration = 0; + + } else { + if ( typeof opt.duration !== "number" ) { + if ( opt.duration in jQuery.fx.speeds ) { + opt.duration = jQuery.fx.speeds[ opt.duration ]; + + } else { + opt.duration = jQuery.fx.speeds._default; + } + } + } + + // Normalize opt.queue - true/undefined/null -> "fx" + if ( opt.queue == null || opt.queue === true ) { + opt.queue = "fx"; + } + + // Queueing + opt.old = opt.complete; + + opt.complete = function() { + if ( isFunction( opt.old ) ) { + opt.old.call( this ); + } + + if ( opt.queue ) { + jQuery.dequeue( this, opt.queue ); + } + }; + + return opt; + }; + + jQuery.fn.extend( { + fadeTo: function( speed, to, easing, callback ) { + + // Show any hidden elements after setting opacity to 0 + return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() + + // Animate to the value specified + .end().animate( { opacity: to }, speed, easing, callback ); + }, + animate: function( prop, speed, easing, callback ) { + var empty = jQuery.isEmptyObject( prop ), + optall = jQuery.speed( speed, easing, callback ), + doAnimation = function() { + + // Operate on a copy of prop so per-property easing won't be lost + var anim = Animation( this, jQuery.extend( {}, prop ), optall ); + + // Empty animations, or finishing resolves immediately + if ( empty || dataPriv.get( this, "finish" ) ) { + anim.stop( true ); + } + }; + doAnimation.finish = doAnimation; + + return empty || optall.queue === false ? + this.each( doAnimation ) : + this.queue( optall.queue, doAnimation ); + }, + stop: function( type, clearQueue, gotoEnd ) { + var stopQueue = function( hooks ) { + var stop = hooks.stop; + delete hooks.stop; + stop( gotoEnd ); + }; + + if ( typeof type !== "string" ) { + gotoEnd = clearQueue; + clearQueue = type; + type = undefined; + } + if ( clearQueue && type !== false ) { + this.queue( type || "fx", [] ); + } + + return this.each( function() { + var dequeue = true, + index = type != null && type + "queueHooks", + timers = jQuery.timers, + data = dataPriv.get( this ); + + if ( index ) { + if ( data[ index ] && data[ index ].stop ) { + stopQueue( data[ index ] ); + } + } else { + for ( index in data ) { + if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { + stopQueue( data[ index ] ); + } + } + } + + for ( index = timers.length; index--; ) { + if ( timers[ index ].elem === this && + ( type == null || timers[ index ].queue === type ) ) { + + timers[ index ].anim.stop( gotoEnd ); + dequeue = false; + timers.splice( index, 1 ); + } + } + + // Start the next in the queue if the last step wasn't forced. + // Timers currently will call their complete callbacks, which + // will dequeue but only if they were gotoEnd. + if ( dequeue || !gotoEnd ) { + jQuery.dequeue( this, type ); + } + } ); + }, + finish: function( type ) { + if ( type !== false ) { + type = type || "fx"; + } + return this.each( function() { + var index, + data = dataPriv.get( this ), + queue = data[ type + "queue" ], + hooks = data[ type + "queueHooks" ], + timers = jQuery.timers, + length = queue ? queue.length : 0; + + // Enable finishing flag on private data + data.finish = true; + + // Empty the queue first + jQuery.queue( this, type, [] ); + + if ( hooks && hooks.stop ) { + hooks.stop.call( this, true ); + } + + // Look for any active animations, and finish them + for ( index = timers.length; index--; ) { + if ( timers[ index ].elem === this && timers[ index ].queue === type ) { + timers[ index ].anim.stop( true ); + timers.splice( index, 1 ); + } + } + + // Look for any animations in the old queue and finish them + for ( index = 0; index < length; index++ ) { + if ( queue[ index ] && queue[ index ].finish ) { + queue[ index ].finish.call( this ); + } + } + + // Turn off finishing flag + delete data.finish; + } ); + } + } ); + + jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) { + var cssFn = jQuery.fn[ name ]; + jQuery.fn[ name ] = function( speed, easing, callback ) { + return speed == null || typeof speed === "boolean" ? + cssFn.apply( this, arguments ) : + this.animate( genFx( name, true ), speed, easing, callback ); + }; + } ); + +// Generate shortcuts for custom animations + jQuery.each( { + slideDown: genFx( "show" ), + slideUp: genFx( "hide" ), + slideToggle: genFx( "toggle" ), + fadeIn: { opacity: "show" }, + fadeOut: { opacity: "hide" }, + fadeToggle: { opacity: "toggle" } + }, function( name, props ) { + jQuery.fn[ name ] = function( speed, easing, callback ) { + return this.animate( props, speed, easing, callback ); + }; + } ); + + jQuery.timers = []; + jQuery.fx.tick = function() { + var timer, + i = 0, + timers = jQuery.timers; + + fxNow = Date.now(); + + for ( ; i < timers.length; i++ ) { + timer = timers[ i ]; + + // Run the timer and safely remove it when done (allowing for external removal) + if ( !timer() && timers[ i ] === timer ) { + timers.splice( i--, 1 ); + } + } + + if ( !timers.length ) { + jQuery.fx.stop(); + } + fxNow = undefined; + }; + + jQuery.fx.timer = function( timer ) { + jQuery.timers.push( timer ); + jQuery.fx.start(); + }; + + jQuery.fx.interval = 13; + jQuery.fx.start = function() { + if ( inProgress ) { + return; + } + + inProgress = true; + schedule(); + }; + + jQuery.fx.stop = function() { + inProgress = null; + }; + + jQuery.fx.speeds = { + slow: 600, + fast: 200, + + // Default speed + _default: 400 + }; + + +// Based off of the plugin by Clint Helfers, with permission. +// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ + jQuery.fn.delay = function( time, type ) { + time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; + type = type || "fx"; + + return this.queue( type, function( next, hooks ) { + var timeout = window.setTimeout( next, time ); + hooks.stop = function() { + window.clearTimeout( timeout ); + }; + } ); + }; + + + ( function() { + var input = document.createElement( "input" ), + select = document.createElement( "select" ), + opt = select.appendChild( document.createElement( "option" ) ); + + input.type = "checkbox"; + + // Support: Android <=4.3 only + // Default value for a checkbox should be "on" + support.checkOn = input.value !== ""; + + // Support: IE <=11 only + // Must access selectedIndex to make default options select + support.optSelected = opt.selected; + + // Support: IE <=11 only + // An input loses its value after becoming a radio + input = document.createElement( "input" ); + input.value = "t"; + input.type = "radio"; + support.radioValue = input.value === "t"; + } )(); + + + var boolHook, + attrHandle = jQuery.expr.attrHandle; + + jQuery.fn.extend( { + attr: function( name, value ) { + return access( this, jQuery.attr, name, value, arguments.length > 1 ); + }, + + removeAttr: function( name ) { + return this.each( function() { + jQuery.removeAttr( this, name ); + } ); + } + } ); + + jQuery.extend( { + attr: function( elem, name, value ) { + var ret, hooks, + nType = elem.nodeType; + + // Don't get/set attributes on text, comment and attribute nodes + if ( nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + // Fallback to prop when attributes are not supported + if ( typeof elem.getAttribute === "undefined" ) { + return jQuery.prop( elem, name, value ); + } + + // Attribute hooks are determined by the lowercase version + // Grab necessary hook if one is defined + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + hooks = jQuery.attrHooks[ name.toLowerCase() ] || + ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); + } + + if ( value !== undefined ) { + if ( value === null ) { + jQuery.removeAttr( elem, name ); + return; + } + + if ( hooks && "set" in hooks && + ( ret = hooks.set( elem, value, name ) ) !== undefined ) { + return ret; + } + + elem.setAttribute( name, value + "" ); + return value; + } + + if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { + return ret; + } + + ret = jQuery.find.attr( elem, name ); + + // Non-existent attributes return null, we normalize to undefined + return ret == null ? undefined : ret; + }, + + attrHooks: { + type: { + set: function( elem, value ) { + if ( !support.radioValue && value === "radio" && + nodeName( elem, "input" ) ) { + var val = elem.value; + elem.setAttribute( "type", value ); + if ( val ) { + elem.value = val; + } + return value; + } + } + } + }, + + removeAttr: function( elem, value ) { + var name, + i = 0, + + // Attribute names can contain non-HTML whitespace characters + // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 + attrNames = value && value.match( rnothtmlwhite ); + + if ( attrNames && elem.nodeType === 1 ) { + while ( ( name = attrNames[ i++ ] ) ) { + elem.removeAttribute( name ); + } + } + } + } ); + +// Hooks for boolean attributes + boolHook = { + set: function( elem, value, name ) { + if ( value === false ) { + + // Remove boolean attributes when set to false + jQuery.removeAttr( elem, name ); + } else { + elem.setAttribute( name, name ); + } + return name; + } + }; + + jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { + var getter = attrHandle[ name ] || jQuery.find.attr; + + attrHandle[ name ] = function( elem, name, isXML ) { + var ret, handle, + lowercaseName = name.toLowerCase(); + + if ( !isXML ) { + + // Avoid an infinite loop by temporarily removing this function from the getter + handle = attrHandle[ lowercaseName ]; + attrHandle[ lowercaseName ] = ret; + ret = getter( elem, name, isXML ) != null ? + lowercaseName : + null; + attrHandle[ lowercaseName ] = handle; + } + return ret; + }; + } ); + + + + + var rfocusable = /^(?:input|select|textarea|button)$/i, + rclickable = /^(?:a|area)$/i; + + jQuery.fn.extend( { + prop: function( name, value ) { + return access( this, jQuery.prop, name, value, arguments.length > 1 ); + }, + + removeProp: function( name ) { + return this.each( function() { + delete this[ jQuery.propFix[ name ] || name ]; + } ); + } + } ); + + jQuery.extend( { + prop: function( elem, name, value ) { + var ret, hooks, + nType = elem.nodeType; + + // Don't get/set properties on text, comment and attribute nodes + if ( nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + if ( hooks && "set" in hooks && + ( ret = hooks.set( elem, value, name ) ) !== undefined ) { + return ret; + } + + return ( elem[ name ] = value ); + } + + if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { + return ret; + } + + return elem[ name ]; + }, + + propHooks: { + tabIndex: { + get: function( elem ) { + + // Support: IE <=9 - 11 only + // elem.tabIndex doesn't always return the + // correct value when it hasn't been explicitly set + // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ + // Use proper attribute retrieval(#12072) + var tabindex = jQuery.find.attr( elem, "tabindex" ); + + if ( tabindex ) { + return parseInt( tabindex, 10 ); + } + + if ( + rfocusable.test( elem.nodeName ) || + rclickable.test( elem.nodeName ) && + elem.href + ) { + return 0; + } + + return -1; + } + } + }, + + propFix: { + "for": "htmlFor", + "class": "className" + } + } ); + +// Support: IE <=11 only +// Accessing the selectedIndex property +// forces the browser to respect setting selected +// on the option +// The getter ensures a default option is selected +// when in an optgroup +// eslint rule "no-unused-expressions" is disabled for this code +// since it considers such accessions noop + if ( !support.optSelected ) { + jQuery.propHooks.selected = { + get: function( elem ) { + + /* eslint no-unused-expressions: "off" */ + + var parent = elem.parentNode; + if ( parent && parent.parentNode ) { + parent.parentNode.selectedIndex; + } + return null; + }, + set: function( elem ) { + + /* eslint no-unused-expressions: "off" */ + + var parent = elem.parentNode; + if ( parent ) { + parent.selectedIndex; + + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } + } + }; + } + + jQuery.each( [ + "tabIndex", + "readOnly", + "maxLength", + "cellSpacing", + "cellPadding", + "rowSpan", + "colSpan", + "useMap", + "frameBorder", + "contentEditable" + ], function() { + jQuery.propFix[ this.toLowerCase() ] = this; + } ); + + + + + // Strip and collapse whitespace according to HTML spec + // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace + function stripAndCollapse( value ) { + var tokens = value.match( rnothtmlwhite ) || []; + return tokens.join( " " ); + } + + + function getClass( elem ) { + return elem.getAttribute && elem.getAttribute( "class" ) || ""; + } + + function classesToArray( value ) { + if ( Array.isArray( value ) ) { + return value; + } + if ( typeof value === "string" ) { + return value.match( rnothtmlwhite ) || []; + } + return []; + } + + jQuery.fn.extend( { + addClass: function( value ) { + var classes, elem, cur, curValue, clazz, j, finalValue, + i = 0; + + if ( isFunction( value ) ) { + return this.each( function( j ) { + jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); + } ); + } + + classes = classesToArray( value ); + + if ( classes.length ) { + while ( ( elem = this[ i++ ] ) ) { + curValue = getClass( elem ); + cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); + + if ( cur ) { + j = 0; + while ( ( clazz = classes[ j++ ] ) ) { + if ( cur.indexOf( " " + clazz + " " ) < 0 ) { + cur += clazz + " "; + } + } + + // Only assign if different to avoid unneeded rendering. + finalValue = stripAndCollapse( cur ); + if ( curValue !== finalValue ) { + elem.setAttribute( "class", finalValue ); + } + } + } + } + + return this; + }, + + removeClass: function( value ) { + var classes, elem, cur, curValue, clazz, j, finalValue, + i = 0; + + if ( isFunction( value ) ) { + return this.each( function( j ) { + jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); + } ); + } + + if ( !arguments.length ) { + return this.attr( "class", "" ); + } + + classes = classesToArray( value ); + + if ( classes.length ) { + while ( ( elem = this[ i++ ] ) ) { + curValue = getClass( elem ); + + // This expression is here for better compressibility (see addClass) + cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); + + if ( cur ) { + j = 0; + while ( ( clazz = classes[ j++ ] ) ) { + + // Remove *all* instances + while ( cur.indexOf( " " + clazz + " " ) > -1 ) { + cur = cur.replace( " " + clazz + " ", " " ); + } + } + + // Only assign if different to avoid unneeded rendering. + finalValue = stripAndCollapse( cur ); + if ( curValue !== finalValue ) { + elem.setAttribute( "class", finalValue ); + } + } + } + } + + return this; + }, + + toggleClass: function( value, stateVal ) { + var type = typeof value, + isValidValue = type === "string" || Array.isArray( value ); + + if ( typeof stateVal === "boolean" && isValidValue ) { + return stateVal ? this.addClass( value ) : this.removeClass( value ); + } + + if ( isFunction( value ) ) { + return this.each( function( i ) { + jQuery( this ).toggleClass( + value.call( this, i, getClass( this ), stateVal ), + stateVal + ); + } ); + } + + return this.each( function() { + var className, i, self, classNames; + + if ( isValidValue ) { + + // Toggle individual class names + i = 0; + self = jQuery( this ); + classNames = classesToArray( value ); + + while ( ( className = classNames[ i++ ] ) ) { + + // Check each className given, space separated list + if ( self.hasClass( className ) ) { + self.removeClass( className ); + } else { + self.addClass( className ); + } + } + + // Toggle whole class name + } else if ( value === undefined || type === "boolean" ) { + className = getClass( this ); + if ( className ) { + + // Store className if set + dataPriv.set( this, "__className__", className ); + } + + // If the element has a class name or if we're passed `false`, + // then remove the whole classname (if there was one, the above saved it). + // Otherwise bring back whatever was previously saved (if anything), + // falling back to the empty string if nothing was stored. + if ( this.setAttribute ) { + this.setAttribute( "class", + className || value === false ? + "" : + dataPriv.get( this, "__className__" ) || "" + ); + } + } + } ); + }, + + hasClass: function( selector ) { + var className, elem, + i = 0; + + className = " " + selector + " "; + while ( ( elem = this[ i++ ] ) ) { + if ( elem.nodeType === 1 && + ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { + return true; + } + } + + return false; + } + } ); + + + + + var rreturn = /\r/g; + + jQuery.fn.extend( { + val: function( value ) { + var hooks, ret, valueIsFunction, + elem = this[ 0 ]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.type ] || + jQuery.valHooks[ elem.nodeName.toLowerCase() ]; + + if ( hooks && + "get" in hooks && + ( ret = hooks.get( elem, "value" ) ) !== undefined + ) { + return ret; + } + + ret = elem.value; + + // Handle most common string cases + if ( typeof ret === "string" ) { + return ret.replace( rreturn, "" ); + } + + // Handle cases where value is null/undef or number + return ret == null ? "" : ret; + } + + return; + } + + valueIsFunction = isFunction( value ); + + return this.each( function( i ) { + var val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( valueIsFunction ) { + val = value.call( this, i, jQuery( this ).val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + + } else if ( typeof val === "number" ) { + val += ""; + + } else if ( Array.isArray( val ) ) { + val = jQuery.map( val, function( value ) { + return value == null ? "" : value + ""; + } ); + } + + hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + } ); + } + } ); + + jQuery.extend( { + valHooks: { + option: { + get: function( elem ) { + + var val = jQuery.find.attr( elem, "value" ); + return val != null ? + val : + + // Support: IE <=10 - 11 only + // option.text throws exceptions (#14686, #14858) + // Strip and collapse whitespace + // https://html.spec.whatwg.org/#strip-and-collapse-whitespace + stripAndCollapse( jQuery.text( elem ) ); + } + }, + select: { + get: function( elem ) { + var value, option, i, + options = elem.options, + index = elem.selectedIndex, + one = elem.type === "select-one", + values = one ? null : [], + max = one ? index + 1 : options.length; + + if ( index < 0 ) { + i = max; + + } else { + i = one ? index : 0; + } + + // Loop through all the selected options + for ( ; i < max; i++ ) { + option = options[ i ]; + + // Support: IE <=9 only + // IE8-9 doesn't update selected after form reset (#2551) + if ( ( option.selected || i === index ) && + + // Don't return options that are disabled or in a disabled optgroup + !option.disabled && + ( !option.parentNode.disabled || + !nodeName( option.parentNode, "optgroup" ) ) ) { + + // Get the specific value for the option + value = jQuery( option ).val(); + + // We don't need an array for one selects + if ( one ) { + return value; + } + + // Multi-Selects return an array + values.push( value ); + } + } + + return values; + }, + + set: function( elem, value ) { + var optionSet, option, + options = elem.options, + values = jQuery.makeArray( value ), + i = options.length; + + while ( i-- ) { + option = options[ i ]; + + /* eslint-disable no-cond-assign */ + + if ( option.selected = + jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 + ) { + optionSet = true; + } + + /* eslint-enable no-cond-assign */ + } + + // Force browsers to behave consistently when non-matching value is set + if ( !optionSet ) { + elem.selectedIndex = -1; + } + return values; + } + } + } + } ); + +// Radios and checkboxes getter/setter + jQuery.each( [ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = { + set: function( elem, value ) { + if ( Array.isArray( value ) ) { + return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); + } + } + }; + if ( !support.checkOn ) { + jQuery.valHooks[ this ].get = function( elem ) { + return elem.getAttribute( "value" ) === null ? "on" : elem.value; + }; + } + } ); + + + + +// Return jQuery for attributes-only inclusion + + + support.focusin = "onfocusin" in window; + + + var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + stopPropagationCallback = function( e ) { + e.stopPropagation(); + }; + + jQuery.extend( jQuery.event, { + + trigger: function( event, data, elem, onlyHandlers ) { + + var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, + eventPath = [ elem || document ], + type = hasOwn.call( event, "type" ) ? event.type : event, + namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; + + cur = lastElement = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf( "." ) > -1 ) { + + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split( "." ); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf( ":" ) < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[ jQuery.expando ] ? + event : + new jQuery.Event( type, typeof event === "object" && event ); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join( "." ); + event.rnamespace = event.namespace ? + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : + null; + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? + [ event ] : + jQuery.makeArray( data, [ event ] ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + if ( !rfocusMorph.test( bubbleType + type ) ) { + cur = cur.parentNode; + } + for ( ; cur; cur = cur.parentNode ) { + eventPath.push( cur ); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( tmp === ( elem.ownerDocument || document ) ) { + eventPath.push( tmp.defaultView || tmp.parentWindow || window ); + } + } + + // Fire handlers on the event path + i = 0; + while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { + lastElement = cur; + event.type = i > 1 ? + bubbleType : + special.bindType || type; + + // jQuery handler + handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] && + dataPriv.get( cur, "handle" ); + if ( handle ) { + handle.apply( cur, data ); + } + + // Native handler + handle = ontype && cur[ ontype ]; + if ( handle && handle.apply && acceptData( cur ) ) { + event.result = handle.apply( cur, data ); + if ( event.result === false ) { + event.preventDefault(); + } + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( ( !special._default || + special._default.apply( eventPath.pop(), data ) === false ) && + acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name as the event. + // Don't do default actions on window, that's where global variables be (#6170) + if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ ontype ]; + + if ( tmp ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + + if ( event.isPropagationStopped() ) { + lastElement.addEventListener( type, stopPropagationCallback ); + } + + elem[ type ](); + + if ( event.isPropagationStopped() ) { + lastElement.removeEventListener( type, stopPropagationCallback ); + } + + jQuery.event.triggered = undefined; + + if ( tmp ) { + elem[ ontype ] = tmp; + } + } + } + } + + return event.result; + }, + + // Piggyback on a donor event to simulate a different one + // Used only for `focus(in | out)` events + simulate: function( type, elem, event ) { + var e = jQuery.extend( + new jQuery.Event(), + event, + { + type: type, + isSimulated: true + } + ); + + jQuery.event.trigger( e, null, elem ); + } + + } ); + + jQuery.fn.extend( { + + trigger: function( type, data ) { + return this.each( function() { + jQuery.event.trigger( type, data, this ); + } ); + }, + triggerHandler: function( type, data ) { + var elem = this[ 0 ]; + if ( elem ) { + return jQuery.event.trigger( type, data, elem, true ); + } + } + } ); + + +// Support: Firefox <=44 +// Firefox doesn't have focus(in | out) events +// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 +// +// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 +// focus(in | out) events fire after focus & blur events, +// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order +// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 + if ( !support.focusin ) { + jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler on the document while someone wants focusin/focusout + var handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + var doc = this.ownerDocument || this, + attaches = dataPriv.access( doc, fix ); + + if ( !attaches ) { + doc.addEventListener( orig, handler, true ); + } + dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); + }, + teardown: function() { + var doc = this.ownerDocument || this, + attaches = dataPriv.access( doc, fix ) - 1; + + if ( !attaches ) { + doc.removeEventListener( orig, handler, true ); + dataPriv.remove( doc, fix ); + + } else { + dataPriv.access( doc, fix, attaches ); + } + } + }; + } ); + } + var location = window.location; + + var nonce = Date.now(); + + var rquery = ( /\?/ ); + + + +// Cross-browser xml parsing + jQuery.parseXML = function( data ) { + var xml; + if ( !data || typeof data !== "string" ) { + return null; + } + + // Support: IE 9 - 11 only + // IE throws on parseFromString with invalid input. + try { + xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); + } catch ( e ) { + xml = undefined; + } + + if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; + }; + + + var + rbracket = /\[\]$/, + rCRLF = /\r?\n/g, + rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, + rsubmittable = /^(?:input|select|textarea|keygen)/i; + + function buildParams( prefix, obj, traditional, add ) { + var name; + + if ( Array.isArray( obj ) ) { + + // Serialize array item. + jQuery.each( obj, function( i, v ) { + if ( traditional || rbracket.test( prefix ) ) { + + // Treat each array item as a scalar. + add( prefix, v ); + + } else { + + // Item is non-scalar (array or object), encode its numeric index. + buildParams( + prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", + v, + traditional, + add + ); + } + } ); + + } else if ( !traditional && toType( obj ) === "object" ) { + + // Serialize object item. + for ( name in obj ) { + buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); + } + + } else { + + // Serialize scalar item. + add( prefix, obj ); + } + } + +// Serialize an array of form elements or a set of +// key/values into a query string + jQuery.param = function( a, traditional ) { + var prefix, + s = [], + add = function( key, valueOrFunction ) { + + // If value is a function, invoke it and use its return value + var value = isFunction( valueOrFunction ) ? + valueOrFunction() : + valueOrFunction; + + s[ s.length ] = encodeURIComponent( key ) + "=" + + encodeURIComponent( value == null ? "" : value ); + }; + + if ( a == null ) { + return ""; + } + + // If an array was passed in, assume that it is an array of form elements. + if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { + + // Serialize the form elements + jQuery.each( a, function() { + add( this.name, this.value ); + } ); + + } else { + + // If traditional, encode the "old" way (the way 1.3.2 or older + // did it), otherwise encode params recursively. + for ( prefix in a ) { + buildParams( prefix, a[ prefix ], traditional, add ); + } + } + + // Return the resulting serialization + return s.join( "&" ); + }; + + jQuery.fn.extend( { + serialize: function() { + return jQuery.param( this.serializeArray() ); + }, + serializeArray: function() { + return this.map( function() { + + // Can add propHook for "elements" to filter or add form elements + var elements = jQuery.prop( this, "elements" ); + return elements ? jQuery.makeArray( elements ) : this; + } ) + .filter( function() { + var type = this.type; + + // Use .is( ":disabled" ) so that fieldset[disabled] works + return this.name && !jQuery( this ).is( ":disabled" ) && + rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && + ( this.checked || !rcheckableType.test( type ) ); + } ) + .map( function( i, elem ) { + var val = jQuery( this ).val(); + + if ( val == null ) { + return null; + } + + if ( Array.isArray( val ) ) { + return jQuery.map( val, function( val ) { + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + } ); + } + + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + } ).get(); + } + } ); + + + var + r20 = /%20/g, + rhash = /#.*$/, + rantiCache = /([?&])_=[^&]*/, + rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, + + // #7653, #8125, #8152: local protocol detection + rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, + rnoContent = /^(?:GET|HEAD)$/, + rprotocol = /^\/\//, + + /* Prefilters + * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) + * 2) These are called: + * - BEFORE asking for a transport + * - AFTER param serialization (s.data is a string if s.processData is true) + * 3) key is the dataType + * 4) the catchall symbol "*" can be used + * 5) execution will start with transport dataType and THEN continue down to "*" if needed + */ + prefilters = {}, + + /* Transports bindings + * 1) key is the dataType + * 2) the catchall symbol "*" can be used + * 3) selection will start with transport dataType and THEN go to "*" if needed + */ + transports = {}, + + // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression + allTypes = "*/".concat( "*" ), + + // Anchor tag for parsing the document origin + originAnchor = document.createElement( "a" ); + originAnchor.href = location.href; + +// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport + function addToPrefiltersOrTransports( structure ) { + + // dataTypeExpression is optional and defaults to "*" + return function( dataTypeExpression, func ) { + + if ( typeof dataTypeExpression !== "string" ) { + func = dataTypeExpression; + dataTypeExpression = "*"; + } + + var dataType, + i = 0, + dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; + + if ( isFunction( func ) ) { + + // For each dataType in the dataTypeExpression + while ( ( dataType = dataTypes[ i++ ] ) ) { + + // Prepend if requested + if ( dataType[ 0 ] === "+" ) { + dataType = dataType.slice( 1 ) || "*"; + ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); + + // Otherwise append + } else { + ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); + } + } + } + }; + } + +// Base inspection function for prefilters and transports + function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { + + var inspected = {}, + seekingTransport = ( structure === transports ); + + function inspect( dataType ) { + var selected; + inspected[ dataType ] = true; + jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { + var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); + if ( typeof dataTypeOrTransport === "string" && + !seekingTransport && !inspected[ dataTypeOrTransport ] ) { + + options.dataTypes.unshift( dataTypeOrTransport ); + inspect( dataTypeOrTransport ); + return false; + } else if ( seekingTransport ) { + return !( selected = dataTypeOrTransport ); + } + } ); + return selected; + } + + return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); + } + +// A special extend for ajax options +// that takes "flat" options (not to be deep extended) +// Fixes #9887 + function ajaxExtend( target, src ) { + var key, deep, + flatOptions = jQuery.ajaxSettings.flatOptions || {}; + + for ( key in src ) { + if ( src[ key ] !== undefined ) { + ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; + } + } + if ( deep ) { + jQuery.extend( true, target, deep ); + } + + return target; + } + + /* Handles responses to an ajax request: + * - finds the right dataType (mediates between content-type and expected dataType) + * - returns the corresponding response + */ + function ajaxHandleResponses( s, jqXHR, responses ) { + + var ct, type, finalDataType, firstDataType, + contents = s.contents, + dataTypes = s.dataTypes; + + // Remove auto dataType and get content-type in the process + while ( dataTypes[ 0 ] === "*" ) { + dataTypes.shift(); + if ( ct === undefined ) { + ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); + } + } + + // Check if we're dealing with a known content-type + if ( ct ) { + for ( type in contents ) { + if ( contents[ type ] && contents[ type ].test( ct ) ) { + dataTypes.unshift( type ); + break; + } + } + } + + // Check to see if we have a response for the expected dataType + if ( dataTypes[ 0 ] in responses ) { + finalDataType = dataTypes[ 0 ]; + } else { + + // Try convertible dataTypes + for ( type in responses ) { + if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { + finalDataType = type; + break; + } + if ( !firstDataType ) { + firstDataType = type; + } + } + + // Or just use first one + finalDataType = finalDataType || firstDataType; + } + + // If we found a dataType + // We add the dataType to the list if needed + // and return the corresponding response + if ( finalDataType ) { + if ( finalDataType !== dataTypes[ 0 ] ) { + dataTypes.unshift( finalDataType ); + } + return responses[ finalDataType ]; + } + } + + /* Chain conversions given the request and the original response + * Also sets the responseXXX fields on the jqXHR instance + */ + function ajaxConvert( s, response, jqXHR, isSuccess ) { + var conv2, current, conv, tmp, prev, + converters = {}, + + // Work with a copy of dataTypes in case we need to modify it for conversion + dataTypes = s.dataTypes.slice(); + + // Create converters map with lowercased keys + if ( dataTypes[ 1 ] ) { + for ( conv in s.converters ) { + converters[ conv.toLowerCase() ] = s.converters[ conv ]; + } + } + + current = dataTypes.shift(); + + // Convert to each sequential dataType + while ( current ) { + + if ( s.responseFields[ current ] ) { + jqXHR[ s.responseFields[ current ] ] = response; + } + + // Apply the dataFilter if provided + if ( !prev && isSuccess && s.dataFilter ) { + response = s.dataFilter( response, s.dataType ); + } + + prev = current; + current = dataTypes.shift(); + + if ( current ) { + + // There's only work to do if current dataType is non-auto + if ( current === "*" ) { + + current = prev; + + // Convert response if prev dataType is non-auto and differs from current + } else if ( prev !== "*" && prev !== current ) { + + // Seek a direct converter + conv = converters[ prev + " " + current ] || converters[ "* " + current ]; + + // If none found, seek a pair + if ( !conv ) { + for ( conv2 in converters ) { + + // If conv2 outputs current + tmp = conv2.split( " " ); + if ( tmp[ 1 ] === current ) { + + // If prev can be converted to accepted input + conv = converters[ prev + " " + tmp[ 0 ] ] || + converters[ "* " + tmp[ 0 ] ]; + if ( conv ) { + + // Condense equivalence converters + if ( conv === true ) { + conv = converters[ conv2 ]; + + // Otherwise, insert the intermediate dataType + } else if ( converters[ conv2 ] !== true ) { + current = tmp[ 0 ]; + dataTypes.unshift( tmp[ 1 ] ); + } + break; + } + } + } + } + + // Apply converter (if not an equivalence) + if ( conv !== true ) { + + // Unless errors are allowed to bubble, catch and return them + if ( conv && s.throws ) { + response = conv( response ); + } else { + try { + response = conv( response ); + } catch ( e ) { + return { + state: "parsererror", + error: conv ? e : "No conversion from " + prev + " to " + current + }; + } + } + } + } + } + } + + return { state: "success", data: response }; + } + + jQuery.extend( { + + // Counter for holding the number of active queries + active: 0, + + // Last-Modified header cache for next request + lastModified: {}, + etag: {}, + + ajaxSettings: { + url: location.href, + type: "GET", + isLocal: rlocalProtocol.test( location.protocol ), + global: true, + processData: true, + async: true, + contentType: "application/x-www-form-urlencoded; charset=UTF-8", + + /* + timeout: 0, + data: null, + dataType: null, + username: null, + password: null, + cache: null, + throws: false, + traditional: false, + headers: {}, + */ + + accepts: { + "*": allTypes, + text: "text/plain", + html: "text/html", + xml: "application/xml, text/xml", + json: "application/json, text/javascript" + }, + + contents: { + xml: /\bxml\b/, + html: /\bhtml/, + json: /\bjson\b/ + }, + + responseFields: { + xml: "responseXML", + text: "responseText", + json: "responseJSON" + }, + + // Data converters + // Keys separate source (or catchall "*") and destination types with a single space + converters: { + + // Convert anything to text + "* text": String, + + // Text to html (true = no transformation) + "text html": true, + + // Evaluate text as a json expression + "text json": JSON.parse, + + // Parse text as xml + "text xml": jQuery.parseXML + }, + + // For options that shouldn't be deep extended: + // you can add your own custom options here if + // and when you create one that shouldn't be + // deep extended (see ajaxExtend) + flatOptions: { + url: true, + context: true + } + }, + + // Creates a full fledged settings object into target + // with both ajaxSettings and settings fields. + // If target is omitted, writes into ajaxSettings. + ajaxSetup: function( target, settings ) { + return settings ? + + // Building a settings object + ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : + + // Extending ajaxSettings + ajaxExtend( jQuery.ajaxSettings, target ); + }, + + ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), + ajaxTransport: addToPrefiltersOrTransports( transports ), + + // Main method + ajax: function( url, options ) { + + // If url is an object, simulate pre-1.5 signature + if ( typeof url === "object" ) { + options = url; + url = undefined; + } + + // Force options to be an object + options = options || {}; + + var transport, + + // URL without anti-cache param + cacheURL, + + // Response headers + responseHeadersString, + responseHeaders, + + // timeout handle + timeoutTimer, + + // Url cleanup var + urlAnchor, + + // Request state (becomes false upon send and true upon completion) + completed, + + // To know if global events are to be dispatched + fireGlobals, + + // Loop variable + i, + + // uncached part of the url + uncached, + + // Create the final options object + s = jQuery.ajaxSetup( {}, options ), + + // Callbacks context + callbackContext = s.context || s, + + // Context for global events is callbackContext if it is a DOM node or jQuery collection + globalEventContext = s.context && + ( callbackContext.nodeType || callbackContext.jquery ) ? + jQuery( callbackContext ) : + jQuery.event, + + // Deferreds + deferred = jQuery.Deferred(), + completeDeferred = jQuery.Callbacks( "once memory" ), + + // Status-dependent callbacks + statusCode = s.statusCode || {}, + + // Headers (they are sent all at once) + requestHeaders = {}, + requestHeadersNames = {}, + + // Default abort message + strAbort = "canceled", + + // Fake xhr + jqXHR = { + readyState: 0, + + // Builds headers hashtable if needed + getResponseHeader: function( key ) { + var match; + if ( completed ) { + if ( !responseHeaders ) { + responseHeaders = {}; + while ( ( match = rheaders.exec( responseHeadersString ) ) ) { + responseHeaders[ match[ 1 ].toLowerCase() + " " ] = + ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] ) + .concat( match[ 2 ] ); + } + } + match = responseHeaders[ key.toLowerCase() + " " ]; + } + return match == null ? null : match.join( ", " ); + }, + + // Raw string + getAllResponseHeaders: function() { + return completed ? responseHeadersString : null; + }, + + // Caches the header + setRequestHeader: function( name, value ) { + if ( completed == null ) { + name = requestHeadersNames[ name.toLowerCase() ] = + requestHeadersNames[ name.toLowerCase() ] || name; + requestHeaders[ name ] = value; + } + return this; + }, + + // Overrides response content-type header + overrideMimeType: function( type ) { + if ( completed == null ) { + s.mimeType = type; + } + return this; + }, + + // Status-dependent callbacks + statusCode: function( map ) { + var code; + if ( map ) { + if ( completed ) { + + // Execute the appropriate callbacks + jqXHR.always( map[ jqXHR.status ] ); + } else { + + // Lazy-add the new callbacks in a way that preserves old ones + for ( code in map ) { + statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; + } + } + } + return this; + }, + + // Cancel the request + abort: function( statusText ) { + var finalText = statusText || strAbort; + if ( transport ) { + transport.abort( finalText ); + } + done( 0, finalText ); + return this; + } + }; + + // Attach deferreds + deferred.promise( jqXHR ); + + // Add protocol if not provided (prefilters might expect it) + // Handle falsy url in the settings object (#10093: consistency with old signature) + // We also use the url parameter if available + s.url = ( ( url || s.url || location.href ) + "" ) + .replace( rprotocol, location.protocol + "//" ); + + // Alias method option to type as per ticket #12004 + s.type = options.method || options.type || s.method || s.type; + + // Extract dataTypes list + s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; + + // A cross-domain request is in order when the origin doesn't match the current origin. + if ( s.crossDomain == null ) { + urlAnchor = document.createElement( "a" ); + + // Support: IE <=8 - 11, Edge 12 - 15 + // IE throws exception on accessing the href property if url is malformed, + // e.g. http://example.com:80x/ + try { + urlAnchor.href = s.url; + + // Support: IE <=8 - 11 only + // Anchor's host property isn't correctly set when s.url is relative + urlAnchor.href = urlAnchor.href; + s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== + urlAnchor.protocol + "//" + urlAnchor.host; + } catch ( e ) { + + // If there is an error parsing the URL, assume it is crossDomain, + // it can be rejected by the transport if it is invalid + s.crossDomain = true; + } + } + + // Convert data if not already a string + if ( s.data && s.processData && typeof s.data !== "string" ) { + s.data = jQuery.param( s.data, s.traditional ); + } + + // Apply prefilters + inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); + + // If request was aborted inside a prefilter, stop there + if ( completed ) { + return jqXHR; + } + + // We can fire global events as of now if asked to + // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) + fireGlobals = jQuery.event && s.global; + + // Watch for a new set of requests + if ( fireGlobals && jQuery.active++ === 0 ) { + jQuery.event.trigger( "ajaxStart" ); + } + + // Uppercase the type + s.type = s.type.toUpperCase(); + + // Determine if request has content + s.hasContent = !rnoContent.test( s.type ); + + // Save the URL in case we're toying with the If-Modified-Since + // and/or If-None-Match header later on + // Remove hash to simplify url manipulation + cacheURL = s.url.replace( rhash, "" ); + + // More options handling for requests with no content + if ( !s.hasContent ) { + + // Remember the hash so we can put it back + uncached = s.url.slice( cacheURL.length ); + + // If data is available and should be processed, append data to url + if ( s.data && ( s.processData || typeof s.data === "string" ) ) { + cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; + + // #9682: remove data so that it's not used in an eventual retry + delete s.data; + } + + // Add or update anti-cache param if needed + if ( s.cache === false ) { + cacheURL = cacheURL.replace( rantiCache, "$1" ); + uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; + } + + // Put hash and anti-cache on the URL that will be requested (gh-1732) + s.url = cacheURL + uncached; + + // Change '%20' to '+' if this is encoded form body content (gh-2658) + } else if ( s.data && s.processData && + ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { + s.data = s.data.replace( r20, "+" ); + } + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + if ( jQuery.lastModified[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); + } + if ( jQuery.etag[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); + } + } + + // Set the correct header, if data is being sent + if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { + jqXHR.setRequestHeader( "Content-Type", s.contentType ); + } + + // Set the Accepts header for the server, depending on the dataType + jqXHR.setRequestHeader( + "Accept", + s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? + s.accepts[ s.dataTypes[ 0 ] ] + + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : + s.accepts[ "*" ] + ); + + // Check for headers option + for ( i in s.headers ) { + jqXHR.setRequestHeader( i, s.headers[ i ] ); + } + + // Allow custom headers/mimetypes and early abort + if ( s.beforeSend && + ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { + + // Abort if not done already and return + return jqXHR.abort(); + } + + // Aborting is no longer a cancellation + strAbort = "abort"; + + // Install callbacks on deferreds + completeDeferred.add( s.complete ); + jqXHR.done( s.success ); + jqXHR.fail( s.error ); + + // Get transport + transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); + + // If no transport, we auto-abort + if ( !transport ) { + done( -1, "No Transport" ); + } else { + jqXHR.readyState = 1; + + // Send global event + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); + } + + // If request was aborted inside ajaxSend, stop there + if ( completed ) { + return jqXHR; + } + + // Timeout + if ( s.async && s.timeout > 0 ) { + timeoutTimer = window.setTimeout( function() { + jqXHR.abort( "timeout" ); + }, s.timeout ); + } + + try { + completed = false; + transport.send( requestHeaders, done ); + } catch ( e ) { + + // Rethrow post-completion exceptions + if ( completed ) { + throw e; + } + + // Propagate others as results + done( -1, e ); + } + } + + // Callback for when everything is done + function done( status, nativeStatusText, responses, headers ) { + var isSuccess, success, error, response, modified, + statusText = nativeStatusText; + + // Ignore repeat invocations + if ( completed ) { + return; + } + + completed = true; + + // Clear timeout if it exists + if ( timeoutTimer ) { + window.clearTimeout( timeoutTimer ); + } + + // Dereference transport for early garbage collection + // (no matter how long the jqXHR object will be used) + transport = undefined; + + // Cache response headers + responseHeadersString = headers || ""; + + // Set readyState + jqXHR.readyState = status > 0 ? 4 : 0; + + // Determine if successful + isSuccess = status >= 200 && status < 300 || status === 304; + + // Get response data + if ( responses ) { + response = ajaxHandleResponses( s, jqXHR, responses ); + } + + // Convert no matter what (that way responseXXX fields are always set) + response = ajaxConvert( s, response, jqXHR, isSuccess ); + + // If successful, handle type chaining + if ( isSuccess ) { + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + modified = jqXHR.getResponseHeader( "Last-Modified" ); + if ( modified ) { + jQuery.lastModified[ cacheURL ] = modified; + } + modified = jqXHR.getResponseHeader( "etag" ); + if ( modified ) { + jQuery.etag[ cacheURL ] = modified; + } + } + + // if no content + if ( status === 204 || s.type === "HEAD" ) { + statusText = "nocontent"; + + // if not modified + } else if ( status === 304 ) { + statusText = "notmodified"; + + // If we have data, let's convert it + } else { + statusText = response.state; + success = response.data; + error = response.error; + isSuccess = !error; + } + } else { + + // Extract error from statusText and normalize for non-aborts + error = statusText; + if ( status || !statusText ) { + statusText = "error"; + if ( status < 0 ) { + status = 0; + } + } + } + + // Set data for the fake xhr object + jqXHR.status = status; + jqXHR.statusText = ( nativeStatusText || statusText ) + ""; + + // Success/Error + if ( isSuccess ) { + deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); + } else { + deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); + } + + // Status-dependent callbacks + jqXHR.statusCode( statusCode ); + statusCode = undefined; + + if ( fireGlobals ) { + globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", + [ jqXHR, s, isSuccess ? success : error ] ); + } + + // Complete + completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); + + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); + + // Handle the global AJAX counter + if ( !( --jQuery.active ) ) { + jQuery.event.trigger( "ajaxStop" ); + } + } + } + + return jqXHR; + }, + + getJSON: function( url, data, callback ) { + return jQuery.get( url, data, callback, "json" ); + }, + + getScript: function( url, callback ) { + return jQuery.get( url, undefined, callback, "script" ); + } + } ); + + jQuery.each( [ "get", "post" ], function( i, method ) { + jQuery[ method ] = function( url, data, callback, type ) { + + // Shift arguments if data argument was omitted + if ( isFunction( data ) ) { + type = type || callback; + callback = data; + data = undefined; + } + + // The url can be an options object (which then must have .url) + return jQuery.ajax( jQuery.extend( { + url: url, + type: method, + dataType: type, + data: data, + success: callback + }, jQuery.isPlainObject( url ) && url ) ); + }; + } ); + + + jQuery._evalUrl = function( url, options ) { + return jQuery.ajax( { + url: url, + + // Make this explicit, since user can override this through ajaxSetup (#11264) + type: "GET", + dataType: "script", + cache: true, + async: true, + global: false, + + // Only evaluate the response if it is successful (gh-4126) + // dataFilter is not invoked for failure responses, so using it instead + // of the default converter is kludgy but it works. + converters: { + "text script": function() {} + }, + dataFilter: function( response ) { + jQuery.globalEval( response, options ); + } + } ); + }; + + + jQuery.fn.extend( { + wrapAll: function( html ) { + var wrap; + + if ( this[ 0 ] ) { + if ( isFunction( html ) ) { + html = html.call( this[ 0 ] ); + } + + // The elements to wrap the target around + wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); + + if ( this[ 0 ].parentNode ) { + wrap.insertBefore( this[ 0 ] ); + } + + wrap.map( function() { + var elem = this; + + while ( elem.firstElementChild ) { + elem = elem.firstElementChild; + } + + return elem; + } ).append( this ); + } + + return this; + }, + + wrapInner: function( html ) { + if ( isFunction( html ) ) { + return this.each( function( i ) { + jQuery( this ).wrapInner( html.call( this, i ) ); + } ); + } + + return this.each( function() { + var self = jQuery( this ), + contents = self.contents(); + + if ( contents.length ) { + contents.wrapAll( html ); + + } else { + self.append( html ); + } + } ); + }, + + wrap: function( html ) { + var htmlIsFunction = isFunction( html ); + + return this.each( function( i ) { + jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); + } ); + }, + + unwrap: function( selector ) { + this.parent( selector ).not( "body" ).each( function() { + jQuery( this ).replaceWith( this.childNodes ); + } ); + return this; + } + } ); + + + jQuery.expr.pseudos.hidden = function( elem ) { + return !jQuery.expr.pseudos.visible( elem ); + }; + jQuery.expr.pseudos.visible = function( elem ) { + return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); + }; + + + + + jQuery.ajaxSettings.xhr = function() { + try { + return new window.XMLHttpRequest(); + } catch ( e ) {} + }; + + var xhrSuccessStatus = { + + // File protocol always yields status code 0, assume 200 + 0: 200, + + // Support: IE <=9 only + // #1450: sometimes IE returns 1223 when it should be 204 + 1223: 204 + }, + xhrSupported = jQuery.ajaxSettings.xhr(); + + support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); + support.ajax = xhrSupported = !!xhrSupported; + + jQuery.ajaxTransport( function( options ) { + var callback, errorCallback; + + // Cross domain only allowed if supported through XMLHttpRequest + if ( support.cors || xhrSupported && !options.crossDomain ) { + return { + send: function( headers, complete ) { + var i, + xhr = options.xhr(); + + xhr.open( + options.type, + options.url, + options.async, + options.username, + options.password + ); + + // Apply custom fields if provided + if ( options.xhrFields ) { + for ( i in options.xhrFields ) { + xhr[ i ] = options.xhrFields[ i ]; + } + } + + // Override mime type if needed + if ( options.mimeType && xhr.overrideMimeType ) { + xhr.overrideMimeType( options.mimeType ); + } + + // X-Requested-With header + // For cross-domain requests, seeing as conditions for a preflight are + // akin to a jigsaw puzzle, we simply never set it to be sure. + // (it can always be set on a per-request basis or even using ajaxSetup) + // For same-domain requests, won't change header if already provided. + if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { + headers[ "X-Requested-With" ] = "XMLHttpRequest"; + } + + // Set headers + for ( i in headers ) { + xhr.setRequestHeader( i, headers[ i ] ); + } + + // Callback + callback = function( type ) { + return function() { + if ( callback ) { + callback = errorCallback = xhr.onload = + xhr.onerror = xhr.onabort = xhr.ontimeout = + xhr.onreadystatechange = null; + + if ( type === "abort" ) { + xhr.abort(); + } else if ( type === "error" ) { + + // Support: IE <=9 only + // On a manual native abort, IE9 throws + // errors on any property access that is not readyState + if ( typeof xhr.status !== "number" ) { + complete( 0, "error" ); + } else { + complete( + + // File: protocol always yields status 0; see #8605, #14207 + xhr.status, + xhr.statusText + ); + } + } else { + complete( + xhrSuccessStatus[ xhr.status ] || xhr.status, + xhr.statusText, + + // Support: IE <=9 only + // IE9 has no XHR2 but throws on binary (trac-11426) + // For XHR2 non-text, let the caller handle it (gh-2498) + ( xhr.responseType || "text" ) !== "text" || + typeof xhr.responseText !== "string" ? + { binary: xhr.response } : + { text: xhr.responseText }, + xhr.getAllResponseHeaders() + ); + } + } + }; + }; + + // Listen to events + xhr.onload = callback(); + errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); + + // Support: IE 9 only + // Use onreadystatechange to replace onabort + // to handle uncaught aborts + if ( xhr.onabort !== undefined ) { + xhr.onabort = errorCallback; + } else { + xhr.onreadystatechange = function() { + + // Check readyState before timeout as it changes + if ( xhr.readyState === 4 ) { + + // Allow onerror to be called first, + // but that will not handle a native abort + // Also, save errorCallback to a variable + // as xhr.onerror cannot be accessed + window.setTimeout( function() { + if ( callback ) { + errorCallback(); + } + } ); + } + }; + } + + // Create the abort callback + callback = callback( "abort" ); + + try { + + // Do send the request (this may raise an exception) + xhr.send( options.hasContent && options.data || null ); + } catch ( e ) { + + // #14683: Only rethrow if this hasn't been notified as an error yet + if ( callback ) { + throw e; + } + } + }, + + abort: function() { + if ( callback ) { + callback(); + } + } + }; + } + } ); + + + + +// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) + jQuery.ajaxPrefilter( function( s ) { + if ( s.crossDomain ) { + s.contents.script = false; + } + } ); + +// Install script dataType + jQuery.ajaxSetup( { + accepts: { + script: "text/javascript, application/javascript, " + + "application/ecmascript, application/x-ecmascript" + }, + contents: { + script: /\b(?:java|ecma)script\b/ + }, + converters: { + "text script": function( text ) { + jQuery.globalEval( text ); + return text; + } + } + } ); + +// Handle cache's special case and crossDomain + jQuery.ajaxPrefilter( "script", function( s ) { + if ( s.cache === undefined ) { + s.cache = false; + } + if ( s.crossDomain ) { + s.type = "GET"; + } + } ); + +// Bind script tag hack transport + jQuery.ajaxTransport( "script", function( s ) { + + // This transport only deals with cross domain or forced-by-attrs requests + if ( s.crossDomain || s.scriptAttrs ) { + var script, callback; + return { + send: function( _, complete ) { + script = jQuery( ""); + output = output.replace(/\\r\\n/g, "\r\n").replace(/\\r/g, "\r").replace(/\\n/g, "\n").replace(/\\t/g,"\t"); + if(true){ + var nTest = $("#test_case_"+id).parent().prev(".-task-ces-top").children("i:first-child"); //图标节点 + if (nTest.hasClass("fa-caret-down")){ + nTest.addClass("fa-caret-right"); + nTest.removeClass("fa-caret-down"); + $("#result_different_show_"+ id).siblings(".-task-ces-info").attr("style","display:none"); + $("#result_different_show_"+ id).hide(); + $("#test_case_"+id).hide(); + }else if( nTest.hasClass("fa-caret-right") ){ + nTest.addClass("fa-caret-down"); + nTest.removeClass("fa-caret-right"); + $("#result_different_show_"+ id).show(); + $("#test_case_"+id).show(); + $("#result_different_show_"+ id).siblings(".-task-ces-info").attr("style","display:block"); + if(open == 1 || power){ + var id = "result_different_show_" + id; + //var oldData = "摄氏温度\t\t华氏温度\n********************\n\n-40 \t\t -40.0\n-35 \t\t -31.0\n-30 \t\t -22.0\n-25 \t\t -13.0\n-20 \t\t -4.0\n-15 \t\t 5.0\n-10 \t\t 14.0\n-5 \t\t 23.0\n0 \t\t 32.0\n5 \t\t 41.0\n10 \t\t 50.0\n15 \t\t 59.0\n20 \t\t 68.0\n25 \t\t 77.0\n30 \t\t 86.0\n35 \t\t 95.0\n40 \t\t 104.0\n45 \t\t 113.0\n50 \t\t 122.0\n\n***********************\n\n[0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300]\n\n***********************\n5050 \t\t 5050\n\n***********************\n\n265252859812191058636308480000000\n\n***********************\n\nFalse\nFalse\nFalse\nFalse\nTrue\nTrue\nFalse\nFalse\nFalse\nTrue\n\n***********************\n\n3339 \t\t 333.9\n"; + var oldData = output; + var orig1 = ''; + var newData = actual_output == "null" ? "" : actual_output; + //var newData = "摄氏温度\t\t华氏温度\n********************\n-40 \t\t -40.0\n-35 \t\t -31.0\n-30 \t\t -22.0\n-25 \t\t -13.0\n-20 \t\t -4.0\n-15 \t\t 5.0\n-10 \t\t 14.0\n-5 \t\t 23.0\n0 \t\t 32.0\n5 \t\t 41.0\n10 \t\t 50.0\n15 \t\t 59.0\n20 \t\t 68.0\n25 \t\t 77.0\n30 \t\t 86.0\n35 \t\t 95.0\n40 \t\t 104.0\n45 \t\t 113.0\n50 \t\t 122.0\n\n***********************\n\n[0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300]\n\n***********************\n\n5050 \t\t 5050\n\n***********************\n\n265252859812191058636308480000000\n\n***********************\n\nFalse\nFalse\nFalse\nFalse\nTrue\nTrue\nFalse\nFalse\nFalse\nTrue\n\n***********************\n\n3339333.9\n"; + var mv = CodeMirror.k_init(id, newData, oldData); + if (newData == ""){ + $(".CodeMirror-merge-r-chunk").css("background", "none"); + $(".CodeMirror-merge-r-inserted").css("background-image", "none"); + //$(".CodeMirror-merge-copy").find('i').remove(); + } + var height=0; + if($("#"+id).find(".CodeMirror-merge-pane").eq(0).height()>$("#"+id).find(".CodeMirror-merge-pane").eq(1).height()){ + height = parseInt($("#"+id).find(".CodeMirror-merge-pane").eq(0).height()); + }else{ + height = parseInt($("#"+id).find(".CodeMirror-merge-pane").eq(1).height()); + } + + $("#"+id).find(".CodeMirror").height(height); + $(".CodeMirror-merge-gap").css("height", height); + $(".CodeMirror-merge-gap").find("svg").css("height", height); + } + + } + } +} +// end + +// codemirror渲染textarea +function CodeMirror_fromTextArea(id){ + var Code = CodeMirror.fromTextArea(document.getElementById(id), { + /* mode: {name: "text/x-c++src", + // version: 2, + singleLineStringErrors: false},*/ // 目前补全js是引入的javascript-hint,因此目前不能指定语言 + lineNumbers: true, + theme: "railscasts", + // extraKeys: {"Ctrl-Q": "autocomplete"}, // 快捷键 + indentUnit: 4, //代码缩进为一个tab的距离 + matchBrackets: true, + autoRefresh: true, + smartIndent: true,//智能换行 + extraKeys: {"Ctrl-Q": "autocomplete"}, + autofocus: true, + styleActiveLine: true, + lint: true, + gutters: ["CodeMirror-linenumbers", "breakpoints"] + }); + return Code; +} +// end + +var control = 0; // 版本库控制 0表示点击放大 1表示点击缩小 +var control_1 = 0; // 测评控制 0表示点击放大 1表示点击缩小 +// 版本库的放大与缩小 +function repository_extend_and_zoom(){ + var nGameRes = $("#games_repository_contents"); // 版本库区域 + var nGameEva = $("#games_valuation_contents"); // 评测区域 + var nRIcon = $("#extend_and_zoom").children("i"); // 版本库放大缩小按钮 + var nCode = $("#file_entry_content").find(".CodeMirror-scroll"); // 版本库代码区域 + var nMove = $(".h-center"); + if(control == 0){ + nGameRes.addClass("-flex-basic100"); + nGameEva.addClass("-flex-basic0"); + nRIcon.addClass("fa-compress"); + nRIcon.removeClass("fa-expand"); + $("#extend_and_zoom").attr("data-tip-left","收起"); + nMove.hide(); + control = 1; + }else if(control == 1){ + nGameRes.removeClass("-flex-basic100"); + nGameEva.removeClass("-flex-basic0"); + nRIcon.removeClass("fa-compress"); + nRIcon.addClass("fa-expand"); + $("#extend_and_zoom").attr("data-tip-left","展开"); + nMove.show(); + control = 0; + } + // react环境下没有window['editor_CodeMirror'] + window['editor_CodeMirror'] && editor_CodeMirror.setSize("auto", "auto"); + // react add + $('.CodeMirror.cm-s-railscasts').css("height", $("#games_repository_contents").height() - repositoryTabHeight); + + var h = nGameRes.height() - $("#top_repository").height() - 50; + nCode.css("min-height", h); + +} +// end + +/*CodeMirror addon hint -----------------------------------------------Start*/ +/* https://github.com/farzher/fuzzysort */ +!function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof module&&module.exports?module.exports=r():e.fuzzysort=r()}(this,function(){var e="undefined"!=typeof require&&"undefined"==typeof window,r=new Map,n=new Map,o=[];o.total=0;var t=[],i=[];function a(){r.clear(),n.clear(),t=[],i=[]}function l(e){for(var r=-9007199254740991,n=e.length-1;n>=0;--n){var o=e[n];if(null!==o){var t=o.score;t>r&&(r=t)}}return-9007199254740991===r?null:r}function f(e,r){var n=e[r];if(void 0!==n)return n;var o=r;Array.isArray(r)||(o=r.split("."));for(var t=o.length,i=-1;e&&++i>1]=e[n],t=1+(n<<1)}for(var a=n-1>>1;n>0&&o.score>1)e[n]=e[a];e[n]=o}return n.add=function(n){var o=r;e[r++]=n;for(var t=o-1>>1;o>0&&n.score>1)e[o]=e[t];e[o]=n},n.poll=function(){if(0!==r){var n=e[0];return e[0]=e[--r],o(),n}},n.peek=function(n){if(0!==r)return e[0]},n.replaceTop=function(r){e[0]=r,o()},n},p=s();return function d(c){var g={single:function(e,r,n){return e?(u(e)||(e=g.getPreparedSearch(e)),r?(u(r)||(r=g.getPrepared(r)),((n&&void 0!==n.allowTypo?n.allowTypo:!c||void 0===c.allowTypo||c.allowTypo)?g.algorithm:g.algorithmNoTypo)(e,r,e[0])):null):null},go:function(e,r,n){if(!e)return o;var t=(e=g.prepareSearch(e))[0],i=n&&n.threshold||c&&c.threshold||-9007199254740991,a=n&&n.limit||c&&c.limit||9007199254740991,s=(n&&void 0!==n.allowTypo?n.allowTypo:!c||void 0===c.allowTypo||c.allowTypo)?g.algorithm:g.algorithmNoTypo,d=0,v=0,h=r.length;if(n&&n.keys)for(var w=n.scoreFn||l,x=n.keys,y=x.length,m=h-1;m>=0;--m){for(var T=r[m],k=new Array(y),b=y-1;b>=0;--b)(_=f(T,B=x[b]))?(u(_)||(_=g.getPrepared(_)),k[b]=s(e,_,t)):k[b]=null;k.obj=T;var I=w(k);null!==I&&(Ip.peek().score&&p.replaceTop(k))))}else if(n&&n.key){var B=n.key;for(m=h-1;m>=0;--m)(_=f(T=r[m],B))&&(u(_)||(_=g.getPrepared(_)),null!==(C=s(e,_,t))&&(C.scorep.peek().score&&p.replaceTop(C)))))}else for(m=h-1;m>=0;--m){var _,C;(_=r[m])&&(u(_)||(_=g.getPrepared(_)),null!==(C=s(e,_,t))&&(C.scorep.peek().score&&p.replaceTop(C)))))}if(0===d)return o;var A=new Array(d);for(m=d-1;m>=0;--m)A[m]=p.poll();return A.total=d+v,A},goAsync:function(r,n,t){var i=!1,a=new Promise(function(a,p){if(!r)return a(o);var d=(r=g.prepareSearch(r))[0],v=s(),h=n.length-1,w=t&&t.threshold||c&&c.threshold||-9007199254740991,x=t&&t.limit||c&&c.limit||9007199254740991,y=(t&&void 0!==t.allowTypo?t.allowTypo:!c||void 0===c.allowTypo||c.allowTypo)?g.algorithm:g.algorithmNoTypo,m=0,T=0;function k(){if(i)return p("canceled");var s=Date.now();if(t&&t.keys)for(var c=t.scoreFn||l,b=t.keys,I=b.length;h>=0;--h){for(var B=n[h],_=new Array(I),C=I-1;C>=0;--C)(P=f(B,L=b[C]))?(u(P)||(P=g.getPrepared(P)),_[C]=y(r,P,d)):_[C]=null;_.obj=B;var A=c(_);if(null!==A&&!(Av.peek().score&&v.replaceTop(_)),h%1e3==0&&Date.now()-s>=10))return void(e?setImmediate(k):setTimeout(k))}else if(t&&t.key){for(var L=t.key;h>=0;--h)if((P=f(B=n[h],L))&&(u(P)||(P=g.getPrepared(P)),null!==(j=y(r,P,d))&&!(j.scorev.peek().score&&v.replaceTop(j)),h%1e3==0&&Date.now()-s>=10)))return void(e?setImmediate(k):setTimeout(k))}else for(;h>=0;--h){var P,j;if((P=n[h])&&(u(P)||(P=g.getPrepared(P)),null!==(j=y(r,P,d))&&!(j.scorev.peek().score&&v.replaceTop(j)),h%1e3==0&&Date.now()-s>=10)))return void(e?setImmediate(k):setTimeout(k))}if(0===m)return a(o);for(var N=new Array(m),S=m-1;S>=0;--S)N[S]=v.poll();N.total=m+T,a(N)}e?setImmediate(k):k()});return a.cancel=function(){i=!0},a},highlight:function(e,r,n){if(null===e)return null;void 0===r&&(r=""),void 0===n&&(n="");for(var o="",t=0,i=!1,a=e.target,l=a.length,f=e.indexes,u=0;u999)return g.prepare(e);var n=r.get(e);return void 0!==n?n:(n=g.prepare(e),r.set(e,n),n)},getPreparedSearch:function(e){if(e.length>999)return g.prepareSearch(e);var r=n.get(e);return void 0!==r?r:(r=g.prepareSearch(e),n.set(e,r),r)},algorithm:function(e,r,n){for(var o=r._targetLowerCodes,a=e.length,l=o.length,f=0,u=0,s=0,p=0;;){if(n===o[u]){if(t[p++]=u,++f===a)break;n=e[0===s?f:s===f?f+1:s===f-1?f-1:f]}if(++u>=l)for(;;){if(f<=1)return null;if(0===s){if(n===e[--f])continue;s=f}else{if(1===s)return null;if((n=e[1+(f=--s)])===e[f])continue}u=t[(p=f)-1]+1;break}}f=0;var d=0,c=!1,v=0,h=r._nextBeginningIndexes;null===h&&(h=r._nextBeginningIndexes=g.prepareNextBeginningIndexes(r.target));var w=u=0===t[0]?0:h[t[0]-1];if(u!==l)for(;;)if(u>=l){if(f<=0){if(++d>a-2)break;if(e[d]===e[d+1])continue;u=w;continue}--f,u=h[i[--v]]}else if(e[0===d?f:d===f?f+1:d===f-1?f-1:f]===o[u]){if(i[v++]=u,++f===a){c=!0;break}++u}else u=h[u];if(c)var x=i,y=v;else x=t,y=p;for(var m=0,T=-1,k=0;k=0;--k)r.indexes[k]=x[k];return r},algorithmNoTypo:function(e,r,n){for(var o=r._targetLowerCodes,a=e.length,l=o.length,f=0,u=0,s=0;;){if(n===o[u]){if(t[s++]=u,++f===a)break;n=e[f]}if(++u>=l)return null}f=0;var p=!1,d=0,c=r._nextBeginningIndexes;if(null===c&&(c=r._nextBeginningIndexes=g.prepareNextBeginningIndexes(r.target)),(u=0===t[0]?0:c[t[0]-1])!==l)for(;;)if(u>=l){if(f<=0)break;--f,u=c[i[--d]]}else if(e[f]===o[u]){if(i[d++]=u,++f===a){p=!0;break}++u}else u=c[u];if(p)var v=i,h=d;else v=t,h=s;for(var w=0,x=-1,y=0;y=0;--y)r.indexes[y]=v[y];return r},prepareLowerCodes:function(e){for(var r=e.length,n=[],o=e.toLowerCase(),t=0;t=65&&l<=90,u=f||l>=97&&l<=122||l>=48&&l<=57,s=f&&!t||!i||!u;t=f,i=u,s&&(n[o++]=a)}return n},prepareNextBeginningIndexes:function(e){for(var r=e.length,n=g.prepareBeginningIndexes(e),o=[],t=n[0],i=0,a=0;aa?o[a]=t:(t=n[++i],o[a]=void 0===t?r:t);return o},cleanup:a,new:d};return g}()}); +/* showHint */ +!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";var i="CodeMirror-hint",e="CodeMirror-hint-active";function n(t,i){this.cm=t,this.options=i,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var e=this;t.on("cursorActivity",this.activityFunc=function(){e.cursorActivity()})}t.showHint=function(t,i,e){if(!i)return t.showHint(e);e&&e.async&&(i.async=!0);var n={hint:i};if(e)for(var o in e)n[o]=e[o];return t.showHint(n)},t.defineExtension("showHint",function(i){i=function(t,i,e){var n=t.options.hintOptions,o={};for(var s in a)o[s]=a[s];if(n)for(var s in n)void 0!==n[s]&&(o[s]=n[s]);if(e)for(var s in e)void 0!==e[s]&&(o[s]=e[s]);o.hint.resolve&&(o.hint=o.hint.resolve(t,i));return o}(this,this.getCursor("start"),i);var e=this.listSelections();if(!(e.length>1)){if(this.somethingSelected()){if(!i.hint.supportsSelection)return;for(var o=0;ol.clientHeight+1,x=h.getScrollInfo();if(C>0){var A=k.bottom-k.top;if(m.top-(m.bottom-k.top)-A>0)l.style.top=(v=m.top-A)+"px",y=!1;else if(A>H){l.style.height=H-5+"px",l.style.top=(v=m.bottom-k.top)+"px";var S=h.getCursor();o.from.ch!=S.ch&&(m=h.cursorCoords(S),l.style.left=(g=m.left)+"px",k=l.getBoundingClientRect())}}var T,M=k.right-w;if(M>0&&(k.right-k.left>w&&(l.style.width=w-5+"px",M-=k.right-k.left-w),l.style.left=(g=m.left-M)+"px"),b)for(var F=l.firstChild;F;F=F.nextSibling)F.style.paddingRight=h.display.nativeBarWidth+"px";(h.addKeyMap(this.keyMap=function(t,i){var e={Up:function(){i.moveFocus(-1)},Down:function(){i.moveFocus(1)},PageUp:function(){i.moveFocus(1-i.menuSize(),!0)},PageDown:function(){i.moveFocus(i.menuSize()-1,!0)},Home:function(){i.setFocus(0)},End:function(){i.setFocus(i.length-1)},Enter:i.pick,Tab:i.pick,Esc:i.close},n=t.options.customKeys,o=n?{}:e;function s(t,n){var s;s="string"!=typeof n?function(t){return n(t,i)}:e.hasOwnProperty(n)?e[n]:n,o[t]=s}if(n)for(var c in n)n.hasOwnProperty(c)&&s(c,n[c]);var r=t.options.extraKeys;if(r)for(var c in r)r.hasOwnProperty(c)&&s(c,r[c]);return o}(n,{moveFocus:function(t,i){s.changeActive(s.selectedHint+t,i)},setFocus:function(t){s.changeActive(t)},menuSize:function(){return s.screenAmount()},length:a.length,close:function(){n.close()},pick:function(){s.pick()},data:o})),n.options.closeOnUnfocus)&&(h.on("blur",this.onBlur=function(){T=setTimeout(function(){n.close()},100)}),h.on("focus",this.onFocus=function(){clearTimeout(T)}));return h.on("scroll",this.onScroll=function(){var t=h.getScrollInfo(),i=h.getWrapperElement().getBoundingClientRect(),e=v+x.top-t.top,o=e-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(y||(o+=l.offsetHeight),o<=i.top||o>=i.bottom)return n.close();l.style.top=e+"px",l.style.left=g+x.left-t.left+"px"}),t.on(l,"dblclick",function(t){var i=r(l,t.target||t.srcElement);i&&null!=i.hintId&&(s.changeActive(i.hintId),s.pick())}),t.on(l,"click",function(t){var i=r(l,t.target||t.srcElement);i&&null!=i.hintId&&(s.changeActive(i.hintId),n.options.completeOnSingleClick&&s.pick())}),t.on(l,"mousedown",function(){setTimeout(function(){h.focus()},20)}),t.signal(o,"select",a[0],l.firstChild),!0}function l(t,i,e,n){if(t.async)t(i,n,e);else{var o=t(i,e);o&&o.then?o.then(n):n(o)}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(i,e){var n=i.list[e];n.hint?n.hint(this.cm,i,n):this.cm.replaceRange(c(n),n.from||i.from,n.to||i.to,"complete"),t.signal(i,"pick",n),this.close()},cursorActivity:function(){this.debounce&&(s(this.debounce),this.debounce=0);var t=this.cm.getCursor(),i=this.cm.getLine(t.line);if(t.line!=this.startPos.line||i.length-t.ch!=this.startLen-this.startPos.ch||t.ch0&&n.to.ch-n.from.ch!=o.to.ch-o.from.ch)))&&(this.data=i,i&&i.list.length))if(s&&1==i.list.length)this.pick(i,0);else{if(1==i.list.length&&i.to.ch-i.from.ch===i.list[0].length)return;this.widget=new h(this,i),t.signal(i,"shown")}}},h.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(i,n){if(i>=this.data.list.length?i=n?this.data.list.length-1:0:i<0&&(i=n?0:this.data.list.length-1),this.selectedHint!=i){var o=this.hints.childNodes[this.selectedHint];o.className=o.className.replace(" "+e,""),(o=this.hints.childNodes[this.selectedHint=i]).className+=" "+e,o.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=o.offsetTop+o.offsetHeight-this.hints.clientHeight+3),t.signal(this.data,"select",this.data.list[this.selectedHint],o)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:function(i,e){var n,o=i.getHelpers(e,"hint");if(o.length){var s=function(t,i,e){var n=function(t,i){if(!t.somethingSelected())return i;for(var e=[],n=0;n0?i(t):o(s+1)})}(0)};return s.async=!0,s.supportsSelection=!0,s}return(n=i.getHelper(i.getCursor(),"hintWords"))?function(i){return t.hint.fromList(i,{words:n})}:t.hint.anyword?function(i,e){return t.hint.anyword(i,e)}:function(){}}}),t.registerHelper("hint","fromList",function(i,e){var n=i.getCursor(),o=i.getTokenAt(n),s=t.Pos(n.line,o.end);if(o.string&&/\w/.test(o.string[o.string.length-1]))var c=o.string,r=t.Pos(n.line,o.start);else c="",r=s;for(var h=[],l=0;l,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)}); +/* javascript-hint 注释掉,使得show-hint.js 的resolveAutoHints方法进入这个判断:} else if (words = cm.getHelper(cm.getCursor(), "hintWords")) { */ +// !function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){var e=t.Pos;function r(t,e){for(var r=0,n=t.length;rf.ch&&(c.end=f.ch,c.string=c.string.slice(0,f.ch-c.start)):c={start:f.ch,end:f.ch,string:"",state:c.state,type:"."==c.string?"property":null};for(var p=c;"property"==p.type;){if("."!=(p=s(i,e(f.line,p.start))).string)return;if(p=s(i,e(f.line,p.start)),!l)var l=[];l.push(p)}t.signal(i,"hinting");var u=i.state.myhints;return i.state.needToClearJSHint&&(o=[],i.state.needToClearJSHint=!1),u&&u.forEach(function(t){n(o,t)||o.push(t)}),{list:function(t,e,i,o){var s=[],a=t.string,f=o&&o.globalScope||window;function c(t){if(fuzzysort&&fuzzysort.single){var e=fuzzysort.single(a,t);e&&e.score<=0&&!n(s,t)&&s.push(t)}else 0!=t.lastIndexOf(a,0)||n(s,t)||s.push(t)}if(e&&e.length){var p,l=e.pop();for(l.type&&0===l.type.indexOf("variable")?(o&&o.additionalContext&&(p=o.additionalContext[l.string]),o&&!1===o.useGlobalScope||(p=p||f[l.string])):"string"==l.type?p="":"atom"==l.type?p=1:"function"==l.type&&(null==f.jQuery||"$"!=l.string&&"jQuery"!=l.string||"function"!=typeof f.jQuery?null!=f._&&"_"==l.string&&"function"==typeof f._&&(p=f._()):p=f.jQuery());null!=p&&e.length;)p=p[e.pop().string];null!=p&&function(t){"string"==typeof t?r(stringProps,c):t instanceof Array?r(arrayProps,c):t instanceof Function&&r(funcProps,c);!function(t,e){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var r=t;r;r=Object.getPrototypeOf(r))Object.getOwnPropertyNames(r).forEach(e);else for(var n in t)e(n)}(t,c)}(p)}else{var u=fuzzysort.go(a,i);u&&u.forEach(function(t){s.push(t.target)})}return s}(c,l,o,a),from:e(f.line,c.start),to:e(f.line,c.end)}}}function o(t,e){var r=t.getTokenAt(e);return e.ch==r.start+1&&"."==r.string.charAt(0)?(r.end=r.start,r.string=".",r.type="property"):/^\.[\w$_]*$/.test(r.string)&&(r.type="property",r.start++,r.string=r.string.replace(/\./,"")),r}t.registerHelper("hint","javascript",function(t,e){return i(t,s,function(t,e){return t.getTokenAt(e)},e)}),t.registerHelper("hint","coffeescript",function(t,e){return i(t,coffeescriptKeywords,o,e)});var s="double float int long short null true false enum super this void auto for register static const friend mutable explicit virtual template typename printf break continue return do while if else for instanceof switch case default try catch finally throw throws assert import package boolean byte char delete private inline struct union signed unsigned export extern namespace using operator sizeof typedef typeid and del from not as elif or with pass except print exec raise is def lambda private protected public abstract class extends final implements interface native new static strictfp synchronized transient main String string System println vector bool boolean FALSE TRUE function".split(" ")}); +/* anyword-hint */ +!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var r=/[\w$]+/;e.registerHelper("hint","anyword",function(t,o){for(var i=o&&o.word||r,n=o&&o.range||500,f=t.getCursor(),s=t.getLine(f.line),a=f.ch,c=a;c&&i.test(s.charAt(c-1));)--c;for(var l=c!=a&&s.slice(c,a),d=o&&o.list||[],u={},p=new RegExp(i.source,"g"),g=-1;g<=1;g+=2)for(var h=f.line,m=Math.min(Math.max(h+g*n,t.firstLine()),t.lastLine())+g;h!=m;h+=g)for(var y,b=t.getLine(h);y=p.exec(b);)h==f.line&&y[0]===l||l&&0!=y[0].lastIndexOf(l,0)||Object.prototype.hasOwnProperty.call(u,y[0])||(u[y[0]]=!0,d.push(y[0]));return{list:d,from:e.Pos(f.line,c),to:e.Pos(f.line,a)}})}); +/*CodeMirror addon hint -----------------------------------------------End*/ + +// 测评的扩大与缩小 +function valuation_extend_and_zoom(){ + var nGameRes = $("#games_repository_contents"); // 版本库区域 + var nGameEva = $("#games_valuation_contents"); // 评测区域 + var nVIcon = $("#valuation_extend_and_zoom").children("i"); // 评测放大缩小 + var nMove = $(".h-center"); + if(control_1 == 0){ + nGameRes.addClass("-flex-basic0"); + nGameEva.addClass("-flex-basic100"); + nVIcon.removeClass("fa-expand"); + nVIcon.addClass("fa-compress"); + $("#valuation_extend_and_zoom").attr("data-tip-left","收起"); + nMove.hide(); + control_1 = 1; + }else if(control_1 == 1){ + nGameRes.removeClass("-flex-basic0"); + nGameEva.removeClass("-flex-basic100"); + nVIcon.addClass("fa-expand"); + nVIcon.removeClass("fa-compress"); + $("#valuation_extend_and_zoom").attr("data-tip-left","展开"); + nMove.show(); + control_1 = 0; + } +} +// end + +// 点赞与取消点赞 +var h = true; +function game_praise(obj_id, obj_type){ + if(treadStatus){ + return; + } + $.ajax({ + url: "/praise_tread/praise_plus?obj_id=" + obj_id + "&obj_type=" + obj_type, + data: {horizontal: h, game_praise: true}, + success:function(data){ + h = !h; + var praise_count = $("#game_praise_count"); + if(data.praise){ + praiseStatus = true; //已赞 + praise_count.html(data.praise_tread_count); + $("#game_praise_tread").children("i").addClass("color-orange03"); + $("#game_praise_tread").attr("data-tip-top", "取消点赞") + }else{ + praiseStatus = false; //取消赞 + praise_count.html(data.praise_tread_count); + $("#game_praise_tread").children("i").removeClass("color-orange03"); + $("#game_praise_tread").attr("data-tip-top", "点赞") + } + } + }); +} +// 踩/取消踩功能 +var d = true; +function game_tread(obj_id){ + if(praiseStatus){ + return; + } + $.ajax({ + url: "/praise_tread/praise_plus?obj_id=" + obj_id + "&obj_type=ChallengeTread", + data: {horizontal: d, game_praise: true}, + success:function(data){ + d = !d; + var tread_count = $("#game_tread_count"); + if(data.praise){ + treadStatus = true; // 取消踩 + tread_count.html(data.praise_tread_count); + $("#game_tread").children("i").addClass("color-orange"); + $("#game_tread").attr("data-tip-top", "取消踩") + }else{ + treadStatus = false; // 已踩 + tread_count.html(data.praise_tread_count); + $("#game_tread").children("i").removeClass("color-orange"); + $("#game_tread").attr("data-tip-top", "踩"); + } + } + }); +} +// end + +function setupAjaxIndicatorBase() { + $('#ajax-indicator-base').bind('ajaxSend', function(event, xhr, settings) { + if(settings && settings.url + && (settings.url.match(/account\/heartbeat$/) + || settings.url.match(/file_update/) + || settings.url.match(/game_build/) + || settings.url.match(/game_status/) + || settings.url.match(/refresh_game_list/) + || settings.url.match(/next_step/) + || settings.url.match(/prev_step/) + || settings.url.match(/open_webssh/) + || settings.url.match(/repository/) + || settings.url.match(/get_waiting_time/) + )){ + return; + } + if ($('.ajax-loading').length === 0 && settings.contentType != 'application/octet-stream') { + $('#ajax-indicator-base').css("display","flex").html("").show(); + } + }); + + $('#ajax-indicator-base').bind('ajaxStop', function() { + $('#ajax-indicator-base').html("").hide(); + if(MathJax && MathJax.Hub) + MathJax.Hub.Queue(['Typeset', MathJax.Hub]); //如果是ajax刷新页面的话,手动执行MathJax的公式显示 + try{ + prettyPrint(); //如果刷新出来的页面如果存在代码行的话,也需要美化 + }catch (e){ + + } + }); +} + +function match_specific_symbol(str){ + str = str.replace(/ /g, "").replace(/\r\n$/, "").replace(/\n$/, "").replace(/\r$/, "").replace(/\r\n/g, "
      ").replace(/\n/g, "
      ").replace(/\r/g, "
      ").replace(/\t/g, "") + return str +}; +/* + +var panes = 2, highlight = true, connect = null, collapse = false; +function initUI(id, value, orig1, orig2, dv, panes, highlight, connect, collapse) { + if (value == null) return; + var target = document.getElementById(id); + target.innerHTML = ""; + dv = CodeMirror.MergeView(target, { + value: value, + origLeft: panes == 3 && !collapse && !connect ? orig1 : null, + orig: orig2, + lineNumbers: true, + mode: "text/html", + highlightDifferences: highlight, + connect: connect, + collapseIdentical: collapse + }); +} +function toggleDifferences() { + dv.setShowDifferences(highlight = !highlight); +} + +function mergeViewHeight(mergeView) { + function editorHeight(editor) { + if (!editor) return 0; + return editor.getScrollInfo().height; + } + return Math.max(editorHeight(mergeView.leftOriginal()), + editorHeight(mergeView.editor()), + editorHeight(mergeView.rightOriginal())); +} + +function resize(mergeView) { + var height = mergeViewHeight(mergeView); + for(;;) { + if (mergeView.leftOriginal()) + mergeView.leftOriginal().setSize(null, height); + mergeView.editor().setSize(null, height); + if (mergeView.rightOriginal()) + mergeView.rightOriginal().setSize(null, height); + + var newHeight = mergeViewHeight(mergeView); + if (newHeight >= height) break; + else height = newHeight; + } + mergeView.wrap.style.height = height + "px"; +} + +*/ + +$(document).ready(setupAjaxIndicatorBase); +// test_sets:测试集;had_test_count:输出集的个数;test_sets_count:测试集的个数;had_passed_testsests_error_count:测试集报错数;test_sets_hidden_count:隐藏测试集的个数 +// test_sets_public_count:公开测试集的个人;had_passed_testsests_hidden_count:通过的隐藏集个数;had_passed_testsests_public_count:通过的公开测试集个数 +// final_score:最终得经验数;gold:最终得的金币数;latest_output:最新的输出;language:实训的语言, power:是否有权限看隐藏测试集, record:最新的一次的评测时间信息, mirror_name镜像名 +function code_evaluation(test_sets, + had_test_count, + test_sets_count, + had_passed_testsests_error_count, + test_sets_hidden_count, + test_sets_public_count, + had_passed_testsests_hidden_count, + had_passed_testsests_public_count, + final_score, + gold, + latest_output, + mirror_name, + power, + record + ) { +//动态加载评测区域 + /** + * Created by wang on 2017/8/9. + */ + //test_sets = [HtmlUtil.htmlDecode(test_sets)]; + var $EffectDisplay , $b, $TestResult, $d, $e, $f, $g, $h, $EvaluationInformation , $n, $i; + // 第一块 效果显示 + $EffectDisplay = "
      "; + $b = "
      " + + "
      " + + "
      " + + "
      " + + "" + + "
      " + + "" + + "
      " + + "
      "; + + if (mirror_name.indexOf("Html") != -1) { + $EffectDisplay = "
      "+$b+"
      "; + } + +//第二块 测试结果 + if (had_test_count != "0") { + var $t = ""; + if(record != "" && record != null && record != undefined){ + $t = " " + "本次评测耗时:" + record + "秒" + "" + } + if (had_passed_testsests_error_count == test_sets_count) { + $d = $t + "

      " + + "" + + "" + test_sets_count + "/" + test_sets_count + " 全部通过

      "; + } else { + $d = $t + "

      " + + "" + + " " + had_passed_testsests_error_count + '/' + test_sets_count + "" + latest_output + "

      "; + } + } + var $forHtml = ""; + var $Bear = ""; + for (var i = 0; i < test_sets.length; i++) { + if (test_sets[i].result == 0) { + $g = "" + }else if(test_sets[i].result == 1) { + $g = "" + }else{ + $g = "" + } + if (test_sets[i].is_public == 0) { + if(power && power != 'false'){ + $g = "" + $g + }else if(test_sets[i].result == 0 || test_sets[i].result == 1){ + $g = "" + $g + }else{ + $g = "" + } + }else{ + if(test_sets[i].result != 0 && test_sets[i].result != 1){ + $g = undefined; + } + } + if(test_sets[i].input == null || test_sets[i].input == ""){ + $i = ""; + }else{ + $i = "
      " + + "测试输入:" + + "

      " + ( (test_sets[i].input == null || test_sets[i].input == "") ? "空" : test_sets[i].input.replace(/\r\n/g, "
      ") ) + "

      " + + "
      " + } + if ((test_sets[i].is_public == 1 || power == 'true') || (power && power != 'false')) { + $h = "
      " + + $i + + "

      预期输出:

      实际输出:

      "+ + "
      " + + "
      "; + }else if(test_sets[i].is_public == 0) { + $h = "
      " + + "
        " + + "
      • " + + "
        " + + "

        此为隐藏测试项,解锁

        " + + "
        " + + "
      • " + + "
      " + + "
      "; + } + $e = "
      "+$h+"
      "; + // actual_output 正则匹配的目的: 因为字符串拼接\r\n时,会转义导致js截成2断报错.因此需要编码 + var base64 = new Base64(); + var actual_output = test_sets[i].actual_output == null ? "" : base64.encode(test_sets[i].actual_output); + var output = test_sets[i].output == null ? "" : base64.encode(test_sets[i].output); + $f = "
      " + + "" + + "测试集 " + (i + 1) + "" + ($g == undefined ? "" : $g)+"
      "; + + $forHtml = $f + $e; + $Bear += $forHtml; + } + $TestResult = "
      " + + "
      " + + "
      " + + "
      " + + "
      " + ($d == undefined ? "" : $d) + $Bear + "
      " + + "
      " + + "
      " + + "
      "; + +//第三块 评测信息 + if (had_test_count != "0") { + if (had_passed_testsests_error_count == test_sets_count) { + $n = "

      " + + "" + + "" + test_sets_count + "/" + test_sets_count + " 全部通过

      "; + } else { + $n = "

      " + + "" + + "" + had_passed_testsests_error_count + "/" + test_sets_count + " " + latest_output + "

      "; + } + // $("#evaluating_info").html($n); + } + $EvaluationInformation = "
      " + + "
      " + + "
      " + + "
      " + + "
      " + ($n == undefined ? "" : $n)+"
      " + + "
      " + + "
        " + + "
      • " + + "公开测试:" + + "" + had_passed_testsests_public_count + "/" + test_sets_public_count + "" + + "
      • " + + "
      • " + + " 隐藏测试:" + + "" + had_passed_testsests_hidden_count + "/" + test_sets_hidden_count + "" + + "
      • " + + "
      • " + + " 经验值:" + + "+ " + final_score + " " + + "
      • " + + "
      • " + + "金币:" + + "= 0 ? "color-light-green" : "-text-danger") + "\"" +"id=\"grade_value\">" + (gold >= 0 ? ("+ " + gold) : gold) + "" + + "
      • " + + "
      " + + "
      " + + "
      " + + "
      " + + "
      " + + "
      " + + "
      "; + + var $html = $EffectDisplay + $TestResult + $EvaluationInformation; + $("#game_test_set_results").html($html); +} +// end + + +// $.ajax({ +// url: "http://localhost:3000/api/v1/games/zl6kx8f7vfpo", + +// // The name of the callback parameter, as specified by the YQL service +// jsonp: "callback", + +// // Tell jQuery we're expecting JSONP +// // dataType: "jsonp", + +// // Tell YQL what we want and that we want JSON +// data: { +// // q: "select title,abstract,url from search.news where query=\"cat\"", +// format: "json" +// }, + +// // Work with the response +// success: function( response ) { +// console.log( response ); // server response +// } +// }); + diff --git a/js/flv.min.js b/js/flv.min.js new file mode 100644 index 000000000..fed09f7e6 --- /dev/null +++ b/js/flv.min.js @@ -0,0 +1,7 @@ +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.flvjs=e()}}(function(){var e;return function e(t,n,i){function r(a,o){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!o&&u)return u(a,!0);if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var d=n[a]={exports:{}};t[a][0].call(d.exports,function(e){var n=t[a][1][e];return r(n||e)},d,d.exports,e,t,n,i)}return n[a].exports}for(var s="function"==typeof require&&require,a=0;a0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},i.prototype.removeListener=function(e,t){var n,i,s,o;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],s=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(o=s;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){i=o;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},{}],3:[function(e,t,n){function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(h===setTimeout)return setTimeout(e,0);if((h===i||!h)&&setTimeout)return h=setTimeout,setTimeout(e,0);try{return h(e,0)}catch(t){try{return h.call(null,e,0)}catch(t){return h.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function o(){p&&_&&(p=!1,_.length?m=_.concat(m):v=-1,m.length&&u())}function u(){if(!p){var e=s(o);p=!0;for(var t=m.length;t;){for(_=m,m=[];++v1)for(var n=1;n=e[r]&&t0&&e[0].originalDts=t[r].dts&&et[i].lastSample.originalDts&&e=t[i].lastSample.originalDts&&(i===t.length-1||i0&&(r=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,0,n)}},{key:"getLastSegmentBefore",value:function(e){var t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null}},{key:"getLastSampleBefore",value:function(e){var t=this.getLastSegmentBefore(e);return null!=t?t.lastSample:null}},{key:"getLastSyncPointBefore",value:function(e){for(var t=this._searchNearestSegmentBefore(e),n=this._list[t].syncPoints;0===n.length&&t>0;)t--,n=this._list[t].syncPoints;return n.length>0?n[n.length-1]:null}},{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}}]),e}()},{}],9:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0&&(i+=";codecs="+n.codec);var r=!1;if(l.default.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])l.default.v(this.TAG,"Notice: "+n.type+" mimeType changed, origin: "+this._mimeTypes[n.type]+", target: "+i);else{r=!0;try{var s=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);s.addEventListener("error",this.e.onSourceBufferError),s.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(e){return l.default.e(this.TAG,e.message),void this._emitter.emit(c.default.ERROR,{code:e.code,msg:e.message})}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),r||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),h.default.safari&&"audio/mpeg"===n.container&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(e){var t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var n=this._sourceBuffers[t.type];!n||n.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()}},{key:"seek",value:function(e){for(var t in this._sourceBuffers)if(this._sourceBuffers[t]){var n=this._sourceBuffers[t];if("open"===this._mediaSource.readyState)try{n.abort()}catch(e){l.default.e(this.TAG,e.message)}this._idrList.clear();var i=this._pendingSegments[t];if(i.splice(0,i.length),"closed"!==this._mediaSource.readyState){for(var r=0;r=1&&e-i.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var n=this._sourceBuffers[t];if(n){for(var i=n.buffered,r=!1,s=0;s=this._config.autoCleanupMaxBackwardDuration){r=!0;var u=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:a,end:u})}}else o0&&(isNaN(t)||n>t)&&(l.default.v(this.TAG,"Update MediaSource duration from "+t+" to "+n),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}}},{key:"_doRemoveRanges",value:function(){for(var e in this._pendingRemoveRanges)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating)for(var t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];n.length&&!t.updating;){var i=n.shift();t.remove(i.start,i.end)}}},{key:"_doAppendSegments",value:function(){var e=this._pendingSegments;for(var t in e)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating&&e[t].length>0){var n=e[t].shift();if(n.timestampOffset){var i=this._sourceBuffers[t].timestampOffset,r=n.timestampOffset/1e3,s=Math.abs(i-r);s>.1&&(l.default.v(this.TAG,"Update MPEG audio timestampOffset from "+i+" to "+r),this._sourceBuffers[t].timestampOffset=r),delete n.timestampOffset}if(!n.data||0===n.data.byteLength)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,"video"===t&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(e){this._pendingSegments[t].unshift(n),22===e.code?(this._isBufferFull||this._emitter.emit(c.default.BUFFER_FULL),this._isBufferFull=!0):(l.default.e(this.TAG,e.message),this._emitter.emit(c.default.ERROR,{code:e.code,msg:e.message}))}}}},{key:"_onSourceOpen",value:function(){if(l.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var e=this._pendingSourceBufferInit;e.length;){var t=e.shift();this.appendInitSegment(t,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(c.default.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){l.default.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){l.default.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var e=this._pendingSegments;return e.video.length>0||e.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(c.default.UPDATE_END)}},{key:"_onSourceBufferError",value:function(e){l.default.e(this.TAG,"SourceBuffer Error: "+e)}}]),e}();n.default=p},{"../utils/browser.js":39,"../utils/exception.js":40,"../utils/logger.js":41,"./media-segment-info.js":8,"./mse-events.js":10,events:2}],10:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};n.default=i},{}],11:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){ +function e(e,t){for(var n=0;n0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,r=this._demuxer.parseChunks(e,t);else if((i=m.default.probe(e)).match){this._demuxer=new m.default(i,this._config),this._remuxer||(this._remuxer=new v.default(this._config));var s=this._mediaDataSource;void 0==s.duration||isNaN(s.duration)||(this._demuxer.overridedDuration=s.duration),"boolean"==typeof s.hasAudio&&(this._demuxer.overridedHasAudio=s.hasAudio),"boolean"==typeof s.hasVideo&&(this._demuxer.overridedHasVideo=s.hasVideo),this._demuxer.timestampBase=s.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),r=this._demuxer.parseChunks(e,t)}else i=null,l.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){n._internalAbort()}),this._emitter.emit(k.default.DEMUX_ERROR,y.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),r=0;return r}},{key:"_onMediaInfo",value:function(e){var t=this;null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,c.default.prototype));var n=Object.assign({},e);Object.setPrototypeOf(n,c.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=n,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then(function(){var e=t._pendingSeekTime;t._pendingSeekTime=null,t.seek(e)})}},{key:"_onMetaDataArrived",value:function(e){this._emitter.emit(k.default.METADATA_ARRIVED,e)}},{key:"_onScriptDataArrived",value:function(e){this._emitter.emit(k.default.SCRIPTDATA_ARRIVED,e)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(e){var t=e,n=t+1;n0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(k.default.RECOMMEND_SEEKPOINT,i)}}},{key:"_enableStatisticsReporter",value:function(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(e){var t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(k.default.MEDIA_INFO,n)}},{key:"_reportStatisticsInfo",value:function(){var e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(k.default.STATISTICS_INFO,e)}}]),e}());n.default=L},{"../demux/demux-errors.js":16,"../demux/flv-demuxer.js":18,"../io/io-controller.js":23,"../io/loader.js":24,"../remux/mp4-remuxer.js":38,"../utils/browser.js":39,"../utils/logger.js":41,"./media-info.js":7,"./transmuxing-events.js":13,events:2}],13:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};n.default=i},{}],14:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=e("../utils/logger.js"),s=(i(r),e("../utils/logging-control.js")),a=i(s),o=e("../utils/polyfill.js"),u=i(o),l=e("./transmuxing-controller.js"),d=i(l),h=e("./transmuxing-events.js"),f=i(h),c=function(e){function t(t,n){var i={msg:f.default.INIT_SEGMENT,data:{type:t,data:n}};e.postMessage(i,[n.data])}function n(t,n){var i={msg:f.default.MEDIA_SEGMENT,data:{type:t,data:n}};e.postMessage(i,[n.data])}function i(){var t={msg:f.default.LOADING_COMPLETE};e.postMessage(t)}function r(){var t={msg:f.default.RECOVERED_EARLY_EOF};e.postMessage(t)}function s(t){var n={msg:f.default.MEDIA_INFO,data:t};e.postMessage(n)}function o(t){var n={msg:f.default.METADATA_ARRIVED,data:t};e.postMessage(n)}function l(t){var n={msg:f.default.SCRIPTDATA_ARRIVED,data:t};e.postMessage(n)}function h(t){var n={msg:f.default.STATISTICS_INFO,data:t};e.postMessage(n)}function c(t,n){e.postMessage({msg:f.default.IO_ERROR,data:{type:t,info:n}})}function _(t,n){e.postMessage({msg:f.default.DEMUX_ERROR,data:{type:t,info:n}})}function m(t){e.postMessage({msg:f.default.RECOMMEND_SEEKPOINT,data:t})}function p(t,n){e.postMessage({msg:"logcat_callback",data:{type:t,logcat:n}})}var v=null,g=p.bind(this);u.default.install(),e.addEventListener("message",function(u){switch(u.data.cmd){case"init":v=new d.default(u.data.param[0],u.data.param[1]),v.on(f.default.IO_ERROR,c.bind(this)),v.on(f.default.DEMUX_ERROR,_.bind(this)),v.on(f.default.INIT_SEGMENT,t.bind(this)),v.on(f.default.MEDIA_SEGMENT,n.bind(this)),v.on(f.default.LOADING_COMPLETE,i.bind(this)),v.on(f.default.RECOVERED_EARLY_EOF,r.bind(this)),v.on(f.default.MEDIA_INFO,s.bind(this)),v.on(f.default.METADATA_ARRIVED,o.bind(this)),v.on(f.default.SCRIPTDATA_ARRIVED,l.bind(this)),v.on(f.default.STATISTICS_INFO,h.bind(this)),v.on(f.default.RECOMMEND_SEEKPOINT,m.bind(this));break;case"destroy":v&&(v.destroy(),v=null),e.postMessage({msg:"destroyed"});break;case"start":v.start();break;case"stop":v.stop();break;case"seek":v.seek(u.data.param);break;case"pause":v.pause();break;case"resume":v.resume();break;case"logging_config":var p=u.data.param;a.default.applyConfig(p),!0===p.enableCallback?a.default.addLogListener(g):a.default.removeLogListener(g)}})};n.default=c},{"../utils/logger.js":41,"../utils/logging-control.js":42,"../utils/polyfill.js":43,"./transmuxing-controller.js":12,"./transmuxing-events.js":13}],15:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0?(0,l.default)(new Uint8Array(e,t+2,r)):"",{data:s,size:2+r}}},{key:"parseLongString",value:function(e,t,n){if(n<4)throw new d.IllegalStateException("Data not enough when parse LongString");var i=new DataView(e,t,n),r=i.getUint32(0,!h),s=void 0;return s=r>0?(0,l.default)(new Uint8Array(e,t+4,r)):"",{data:s,size:4+r}}},{key:"parseDate",value:function(e,t,n){if(n<10)throw new d.IllegalStateException("Data size invalid when parse Date");var i=new DataView(e,t,n),r=i.getFloat64(0,!h);return r+=60*i.getInt16(8,!h)*1e3,{data:new Date(r),size:10}}},{key:"parseValue",value:function(t,n,i){if(i<1)throw new d.IllegalStateException("Data not enough when parse Value");var r=new DataView(t,n,i),s=1,a=r.getUint8(0),u=void 0,l=!1;try{switch(a){case 0:u=r.getFloat64(1,!h),s+=8;break;case 1:u=!!r.getUint8(1),s+=1;break;case 2:var f=e.parseString(t,n+1,i-1);u=f.data,s+=f.size;break;case 3:u={};var c=0;for(9==(16777215&r.getUint32(i-4,!h))&&(c=3);s32)throw new s.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){var t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}var n=this._current_word_bits_left?this._current_word:0;n>>>=32-this._current_word_bits_left;var i=e-this._current_word_bits_left;this._fillCurrentWord();var r=Math.min(i,this._current_word_bits_left),a=this._current_word>>>32-r;return this._current_word<<=r,this._current_word_bits_left-=r,n=n<>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}},{key:"readUEG",value:function(){var e=this._skipLeadingZero();return this.readBits(e+1)-1}},{key:"readSEG",value:function(){var e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)}}]),e}();n.default=a},{"../utils/exception.js":40}],18:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}Object.defineProperty(n,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n13))return 0;i=e.probe(t).dataOffset}if(this._firstParse){this._firstParse=!1,n+i!==this._dataOffset&&l.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");0!==new DataView(t,i).getUint32(0,!r)&&l.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),i+=4}for(;it.byteLength)break;var a=s.getUint8(0),o=16777215&s.getUint32(0,!r);if(i+11+o+4>t.byteLength)break;if(8===a||9===a||18===a){var u=s.getUint8(4),d=s.getUint8(5),h=s.getUint8(6),f=s.getUint8(7),c=h|d<<8|u<<16|f<<24;0!==(16777215&s.getUint32(7,!r))&&l.default.w(this.TAG,"Meet tag which has StreamID != 0!");var _=i+11;switch(a){case 8:this._parseAudioData(t,_,o,c);break;case 9:this._parseVideoData(t,_,o,c,n+i);break;case 18:this._parseScriptData(t,_,o)}var m=s.getUint32(11+o,!r);m!==11+o&&l.default.w(this.TAG,"Invalid PrevTagSize "+m),i+=11+o+4}else l.default.w(this.TAG,"Unsupported tag type "+a+", skipped"),i+=11+o+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),i}},{key:"_parseScriptData",value:function(e,t,n){var i=h.default.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(null==i.onMetaData||"object"!==a(i.onMetaData))return void l.default.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&l.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;var r=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},r)),"boolean"==typeof r.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=r.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"==typeof r.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=r.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"==typeof r.audiodatarate&&(this._mediaInfo.audioDataRate=r.audiodatarate),"number"==typeof r.videodatarate&&(this._mediaInfo.videoDataRate=r.videodatarate),"number"==typeof r.width&&(this._mediaInfo.width=r.width),"number"==typeof r.height&&(this._mediaInfo.height=r.height),"number"==typeof r.duration){if(!this._durationOverrided){var s=Math.floor(r.duration*this._timescale);this._duration=s,this._mediaInfo.duration=s}}else this._mediaInfo.duration=0;if("number"==typeof r.framerate){var o=Math.floor(1e3*r.framerate);if(o>0){var u=o/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=u,this._referenceFrameRate.fps_num=o,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=u}}if("object"===a(r.keyframes)){this._mediaInfo.hasKeyframesIndex=!0;var d=r.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(d),r.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=r,l.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(i).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},i))}},{key:"_parseKeyframesIndex",value:function(e){for(var t=[],n=[],i=1;i>>4;if(2!==a&&10!==a)return void this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+a);var o=0,u=(12&s)>>>2;if(!(u>=0&&u<=4))return void this._onError(m.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+u);o=this._flvSoundRateTable[u];var d=1&s,h=this._audioMetadata,f=this._audioTrack;if(h||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),h=this._audioMetadata={},h.type="audio",h.id=f.id,h.timescale=this._timescale,h.duration=this._duration,h.audioSampleRate=o,h.channelCount=0===d?1:2),10===a){var c=this._parseAACAudioData(e,t+1,n-1);if(void 0==c)return;if(0===c.packetType){h.config&&l.default.w(this.TAG,"Found another AudioSpecificConfig!");var _=c.data;h.audioSampleRate=_.samplingRate,h.channelCount=_.channelCount,h.codec=_.codec,h.originalCodec=_.originalCodec,h.config=_.config, +h.refSampleDuration=1024/h.audioSampleRate*h.timescale,l.default.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",h);var p=this._mediaInfo;p.audioCodec=h.originalCodec,p.audioSampleRate=h.audioSampleRate,p.audioChannelCount=h.channelCount,p.hasVideo?null!=p.videoCodec&&(p.mimeType='video/x-flv; codecs="'+p.videoCodec+","+p.audioCodec+'"'):p.mimeType='video/x-flv; codecs="'+p.audioCodec+'"',p.isComplete()&&this._onMediaInfo(p)}else if(1===c.packetType){var v=this._timestampBase+i,g={unit:c.data,length:c.data.byteLength,dts:v,pts:v};f.samples.push(g),f.length+=c.data.length}else l.default.e(this.TAG,"Flv: Unsupported AAC data type "+c.packetType)}else if(2===a){if(!h.codec){var y=this._parseMP3AudioData(e,t+1,n-1,!0);if(void 0==y)return;h.audioSampleRate=y.samplingRate,h.channelCount=y.channelCount,h.codec=y.codec,h.originalCodec=y.originalCodec,h.refSampleDuration=1152/h.audioSampleRate*h.timescale,l.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",h);var E=this._mediaInfo;E.audioCodec=h.codec,E.audioSampleRate=h.audioSampleRate,E.audioChannelCount=h.channelCount,E.audioDataRate=y.bitRate,E.hasVideo?null!=E.videoCodec&&(E.mimeType='video/x-flv; codecs="'+E.videoCodec+","+E.audioCodec+'"'):E.mimeType='video/x-flv; codecs="'+E.audioCodec+'"',E.isComplete()&&this._onMediaInfo(E)}var b=this._parseMP3AudioData(e,t+1,n-1,!1);if(void 0==b)return;var S=this._timestampBase+i,k={unit:b,length:b.byteLength,dts:S,pts:S};f.samples.push(k),f.length+=b.length}}}},{key:"_parseAACAudioData",value:function(e,t,n){if(n<=1)return void l.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");var i={},r=new Uint8Array(e,t,n);return i.packetType=r[0],0===r[0]?i.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):i.data=r.subarray(1),i}},{key:"_parseAACAudioSpecificConfig",value:function(e,t,n){var i=new Uint8Array(e,t,n),r=null,s=0,a=0,o=0,u=null;if(s=a=i[0]>>>3,(o=(7&i[0])<<1|i[1]>>>7)<0||o>=this._mpegSamplingRates.length)return void this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");var l=this._mpegSamplingRates[o],d=(120&i[1])>>>3;if(d<0||d>=8)return void this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration");5===s&&(u=(7&i[1])<<1|i[2]>>>7,i[2]);var h=self.navigator.userAgent.toLowerCase();return-1!==h.indexOf("firefox")?o>=6?(s=5,r=new Array(4),u=o-3):(s=2,r=new Array(2),u=o):-1!==h.indexOf("android")?(s=2,r=new Array(2),u=o):(s=5,u=o,r=new Array(4),o>=6?u=o-3:1===d&&(s=2,r=new Array(2),u=o)),r[0]=s<<3,r[0]|=(15&o)>>>1,r[1]=(15&o)<<7,r[1]|=(15&d)<<3,5===s&&(r[1]|=(15&u)>>>1,r[2]=(1&u)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:l,channelCount:d,codec:"mp4a.40."+s,originalCodec:"mp4a.40."+a}}},{key:"_parseMP3AudioData",value:function(e,t,n,i){if(n<4)return void l.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");var r=(this._littleEndian,new Uint8Array(e,t,n)),s=null;if(i){if(255!==r[0])return;var a=r[1]>>>3&3,o=(6&r[1])>>1,u=(240&r[2])>>>4,d=(12&r[2])>>>2,h=r[3]>>>6&3,f=3!==h?2:1,c=0,_=0;switch(a){case 0:c=this._mpegAudioV25SampleRateTable[d];break;case 2:c=this._mpegAudioV20SampleRateTable[d];break;case 3:c=this._mpegAudioV10SampleRateTable[d]}switch(o){case 1:34,u>>4,o=15&s;if(7!==o)return void this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+o);this._parseAVCVideoPacket(e,t+1,n-1,i,r,a)}}},{key:"_parseAVCVideoPacket",value:function(e,t,n,i,r,s){if(n<4)return void l.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");var a=this._littleEndian,o=new DataView(e,t,n),u=o.getUint8(0),d=16777215&o.getUint32(0,!a),h=d<<8>>8;if(0===u)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(1===u)this._parseAVCVideoData(e,t+4,n-4,i,r,s,h);else if(2!==u)return void this._onError(m.default.FORMAT_ERROR,"Flv: Invalid video packet type "+u)}},{key:"_parseAVCDecoderConfigurationRecord",value:function(e,t,n){if(n<7)return void l.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");var i=this._videoMetadata,r=this._videoTrack,s=this._littleEndian,a=new DataView(e,t,n);i?void 0!==i.avcc&&l.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),i=this._videoMetadata={},i.type="video",i.id=r.id,i.timescale=this._timescale,i.duration=this._duration);var o=a.getUint8(0),u=a.getUint8(1);a.getUint8(2),a.getUint8(3);if(1!==o||0===u)return void this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");if(this._naluLengthSize=1+(3&a.getUint8(4)),3!==this._naluLengthSize&&4!==this._naluLengthSize)return void this._onError(m.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));var d=31&a.getUint8(5);if(0===d)return void this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");d>1&&l.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+d);for(var h=6,f=0;f1&&l.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+R),h++;for(var A=0;A=n){l.default.w(this.TAG,"Malformed Nalu near timestamp "+_+", offset = "+f+", dataSize = "+n);break}var p=u.getUint32(f,!o);if(3===c&&(p>>>=8),p>n-c)return void l.default.w(this.TAG,"Malformed Nalus near timestamp "+_+", NaluSize > DataSize!");var v=31&u.getUint8(f+c);5===v&&(m=!0);var g=new Uint8Array(e,t+f,c+p),y={type:v,data:g};d.push(y),h+=g.byteLength,f+=c+p}if(d.length){var E=this._videoTrack,b={units:d,length:h,isKeyframe:m,dts:_,cts:a,pts:_+a};m&&(b.fileposition=r),E.samples.push(b),E.length+=h}}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(e){this._onTrackMetadata=e}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(e){this._onMediaInfo=e}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(e){this._onMetaDataArrived=e}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(e){this._onScriptDataArrived=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(e){this._onDataAvailable=e}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(e){this._timestampBase=e}},{key:"overridedDuration",get:function(){return this._duration},set:function(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}},{key:"overridedHasAudio",set:function(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}},{key:"overridedHasVideo",set:function(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}}],[{key:"probe",value:function(e){var t=new Uint8Array(e),n={match:!1};if(70!==t[0]||76!==t[1]||86!==t[2]||1!==t[3])return n;var i=(4&t[4])>>>2!=0,r=0!=(1&t[4]),a=s(t,5);return a<9?n:{match:!0,consumed:a,dataOffset:a,hasAudioTrack:i,hasVideoTrack:r}}}]),e}();n.default=y},{"../core/media-info.js":7,"../utils/exception.js":40,"../utils/logger.js":41,"./amf-parser.js":15,"./demux-errors.js":16,"./sps-parser.js":19}],19:[function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=2&&3===t[s]&&0===t[s-1]&&0===t[s-2]||(i[r]=t[s],r++);return new Uint8Array(i.buffer,0,r)}},{key:"parseSPS",value:function(t){var n=e._ebsp2rbsp(t),i=new a.default(n);i.readByte();var r=i.readByte();i.readByte();var s=i.readByte();i.readUEG();var o=e.getProfileString(r),u=e.getLevelString(s),l=1,d=420,h=[0,420,422,444],f=8;if((100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r)&&(l=i.readUEG(),3===l&&i.readBits(1),l<=3&&(d=h[l]),f=i.readUEG()+8,i.readUEG(),i.readBits(1),i.readBool()))for(var c=3!==l?8:12,_=0;_0&&D<16?(A=x[D-1],w=M[D-1]):255===D&&(A=i.readByte()<<8|i.readByte(),w=i.readByte()<<8|i.readByte())}if(i.readBool()&&i.readBool(),i.readBool()&&(i.readBits(4),i.readBool()&&i.readBits(24)),i.readBool()&&(i.readUEG(),i.readUEG()),i.readBool()){var B=i.readBits(32),j=i.readBits(32);O=i.readBool(),C=j,I=2*B,T=C/I}}var P=1;1===A&&1===w||(P=A/w);var U=0,N=0;if(0===l)U=1,N=2-b;else{var F=3===l?1:2,G=1===l?2:1;U=F,N=G*(2-b)}var V=16*(y+1),z=16*(E+1)*(2-b);V-=(S+k)*U,z-=(L+R)*N;var H=Math.ceil(V*P);return i.destroy(),i=null,{profile_string:o,level_string:u,bit_depth:f,ref_frames:g,chroma_format:d,chroma_format_string:e.getChromaFormatString(d),frame_rate:{fixed:O,fps:T,fps_den:I,fps_num:C},sar_ratio:{width:A,height:w},codec_size:{width:V,height:z},present_size:{width:H,height:z}}}},{key:"_skipScalingList",value:function(e,t){for(var n=8,i=8,r=0,s=0;s=15048,t=!f.default.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}}]),l(t,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){var n=this;this._dataSource=e,this._range=t;var i=e.url;this._config.reuseRedirectedURL&&void 0!=e.redirectedURL&&(i=e.redirectedURL);var r=this._seekHandler.getConfig(i,t),s=new self.Headers;if("object"===o(r.headers)){var a=r.headers;for(var u in a)a.hasOwnProperty(u)&&s.append(u,a[u])}var l={method:"GET",headers:s,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"===o(this._config.headers))for(var d in this._config.headers)s.append(d,this._config.headers[d]);!1===e.cors&&(l.mode="same-origin"),e.withCredentials&&(l.credentials="include"),e.referrerPolicy&&(l.referrerPolicy=e.referrerPolicy),this._status=c.LoaderStatus.kConnecting,self.fetch(r.url,l).then(function(e){if(n._requestAbort)return n._requestAbort=!1,void(n._status=c.LoaderStatus.kIdle);if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==r.url&&n._onURLRedirect){var t=n._seekHandler.removeURLParameters(e.url);n._onURLRedirect(t)}var i=e.headers.get("Content-Length");return null!=i&&(n._contentLength=parseInt(i),0!==n._contentLength&&n._onContentLengthKnown&&n._onContentLengthKnown(n._contentLength)),n._pump.call(n,e.body.getReader())}if(n._status=c.LoaderStatus.kError,!n._onError)throw new _.RuntimeException("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);n._onError(c.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}).catch(function(e){if(n._status=c.LoaderStatus.kError,!n._onError)throw e;n._onError(c.LoaderErrors.EXCEPTION,{code:-1,msg:e.message})})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(e){var t=this;return e.read().then(function(n){if(n.done)if(null!==t._contentLength&&t._receivedLength0&&(this._stashInitialSize=n.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===n.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=t,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(t.url),this._refTotalLength=t.filesize?t.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new l.default,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return s(e,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"_selectSeekHandler",value:function(){var e=this._config;if("range"===e.seekType)this._seekHandler=new b.default(this._config.rangeLoadZeroStart);else if("param"===e.seekType){var t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new k.default(t,n)}else{if("custom"!==e.seekType)throw new L.InvalidArgumentException("Invalid seekType in config: "+e.seekType);if("function"!=typeof e.customSeekHandler)throw new L.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}}},{key:"_selectLoader",value:function(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=y.default;else if(f.default.isSupported())this._loaderClass=f.default;else if(_.default.isSupported())this._loaderClass=_.default;else{if(!v.default.isSupported())throw new L.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=v.default}}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}},{key:"seek",value:function(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}},{key:"_internalSeek",value:function(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;var n={from:e,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(e){if(!e||"string"!=typeof e||0===e.length)throw new L.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=e}},{key:"_expandBuffer",value:function(e){for(var t=this._stashSize;t+10485760){var i=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(i,0)}this._stashBuffer=n,this._bufferSize=t}}},{key:"_normalizeSpeed",value:function(e){var t=this._speedNormalizeList,n=t.length-1,i=0,r=0,s=n;if(e=t[i]&&e=512&&e<=1024?Math.floor(1.5*e):2*e)>8192&&(t=8192);var n=1024*t+1048576;this._bufferSize0){var o=this._stashBuffer.slice(0,this._stashUsed),u=this._dispatchChunks(o,this._stashByteStart);if(u0){var l=new Uint8Array(o,u);a.set(l,0),this._stashUsed=l.byteLength,this._stashByteStart+=u}}else this._stashUsed=0,this._stashByteStart+=u;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{var d=this._dispatchChunks(e,t);if(dthis._bufferSize&&(this._expandBuffer(h),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e,d),0),this._stashUsed+=h,this._stashByteStart=t+d}}}else if(0===this._stashUsed){var f=this._dispatchChunks(e,t);if(fthis._bufferSize&&this._expandBuffer(c);var _=new Uint8Array(this._stashBuffer,0,this._bufferSize);_.set(new Uint8Array(e,f),0),this._stashUsed+=c,this._stashByteStart=t+f}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);var m=new Uint8Array(this._stashBuffer,0,this._bufferSize);m.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;var p=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(p0){var v=new Uint8Array(this._stashBuffer,p);m.set(v,0)}this._stashUsed-=p,this._stashByteStart+=p}}}},{key:"_flushStashBuffer",value:function(e){if(this._stashUsed>0){var t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),i=t.byteLength-n;if(n0){var r=new Uint8Array(this._stashBuffer,0,this._bufferSize),s=new Uint8Array(t,n);r.set(s,0),this._stashUsed=s.byteLength,this._stashByteStart+=n}return 0}o.default.w(this.TAG,i+" bytes unconsumed data remain when flush buffer, dropped")}return this._stashUsed=0,this._stashByteStart=0,i}return 0}},{key:"_onLoaderComplete",value:function(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(e,t){switch(o.default.e(this.TAG,"Loader error, code = "+t.code+", msg = "+t.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=d.LoaderErrors.UNRECOVERABLE_EARLY_EOF),e){case d.LoaderErrors.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var n=this._currentRange.to+1;return void(n0)for(var s=n.split("&"),a=0;a0;o[0]!==this._startName&&o[0]!==this._endName&&(u&&(r+="&"),r+=s[a])}return 0===r.length?t:t+"?"+r}}]),e}();n.default=s},{}],26:[function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}]),e}();n.default=s},{}],28:[function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(n,"__esModule",{value:!0});var a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var s=Object.getPrototypeOf(t);return null===s?void 0:e(s,n,i)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(i)},o=function(){function e(e,t){for(var n=0;n299)){if(this._status=h.LoaderStatus.kError,!this._onError)throw new f.RuntimeException("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=h.LoaderStatus.kBuffering}}},{key:"_onProgress",value:function(e){if(this._status!==h.LoaderStatus.kError){null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}}},{key:"_onLoadEnd",value:function(e){if(!0===this._requestAbort)return void(this._requestAbort=!1);this._status!==h.LoaderStatus.kError&&(this._status=h.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(e){this._status=h.LoaderStatus.kError;var t=0,n=null;if(this._contentLength&&e.loaded=200&&t.status<=299){if(this._status=h.LoaderStatus.kBuffering,void 0!=t.responseURL){var n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}var i=t.getResponseHeader("Content-Length");if(null!=i&&null==this._contentLength){var r=parseInt(i);r>0&&(this._contentLength=r,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else{if(this._status=h.LoaderStatus.kError,!this._onError)throw new f.RuntimeException("MSStreamLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else if(3===t.readyState&&t.status>=200&&t.status<=299){this._status=h.LoaderStatus.kBuffering;var s=t.response;this._reader.readAsArrayBuffer(s)}}},{key:"_xhrOnError",value:function(e){this._status=h.LoaderStatus.kError;var t=h.LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type};if(!this._onError)throw new f.RuntimeException(n.msg);this._onError(t,n)}},{key:"_msrOnProgress",value:function(e){var t=e.target,n=t.result;if(null==n)return void this._doReconnectIfNeeded();var i=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;var r=this._totalRange.from+this._receivedLength;this._receivedLength+=i.byteLength,this._onDataArrival&&this._onDataArrival(i,r,this._receivedLength),n.byteLength>=this._bufferLimit&&(d.default.v(this.TAG,"MSStream buffer exceeded max size near "+(r+i.byteLength)+", reconnecting..."),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(null==this._contentLength||this._receivedLength=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(e,t){this._lastTimeLoaded=0;var n=e.url;this._config.reuseRedirectedURL&&(void 0!=this._currentRedirectedURL?n=this._currentRedirectedURL:void 0!=e.redirectedURL&&(n=e.redirectedURL));var i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;var r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),"object"===o(i.headers)){var s=i.headers;for(var a in s)s.hasOwnProperty(a)&&r.setRequestHeader(a,s[a])}if("object"===o(this._config.headers)){var u=this._config.headers;for(var l in u)u.hasOwnProperty(l)&&r.setRequestHeader(l,u[l])}r.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=_.LoaderStatus.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(e){var t=e.target;if(2===t.readyState){if(void 0!=t.responseURL){var n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=_.LoaderStatus.kBuffering}else{if(this._status=_.LoaderStatus.kError,!this._onError)throw new m.RuntimeException("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(_.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}}},{key:"_onProgress",value:function(e){if(this._status!==_.LoaderStatus.kError){if(null===this._contentLength){var t=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,t=!0;var n=e.total;this._internalAbort(),null!=n&0!==n&&(this._totalLength=n)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var i=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(i)}}},{key:"_normalizeSpeed",value:function(e){var t=this._chunkSizeKBList,n=t.length-1,i=0,r=0,s=n;if(e=t[i]&&e=3&&(t=this._speedSampler.currentKBps),0!==t){var n=this._normalizeSpeed(t);this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)}var i=e.target.response,r=this._range.from+this._receivedLength;this._receivedLength+=i.byteLength;var s=!1;null!=this._contentLength&&this._receivedLength0&&this._receivedLength0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new p.default(this._mediaDataSource,this._config),this._transmuxer.on(g.default.INIT_SEGMENT,function(t,n){e._msectl.appendInitSegment(n)}),this._transmuxer.on(g.default.MEDIA_SEGMENT,function(t,n){if(e._msectl.appendMediaSegment(n),e._config.lazyLoad&&!e._config.isLive){var i=e._mediaElement.currentTime;n.info.endDts>=1e3*(i+e._config.lazyLoadMaxDuration)&&null==e._progressChecker&&(d.default.v(e.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),e._suspendTransmuxer())}}),this._transmuxer.on(g.default.LOADING_COMPLETE,function(){e._msectl.endOfStream(),e._emitter.emit(_.default.LOADING_COMPLETE)}),this._transmuxer.on(g.default.RECOVERED_EARLY_EOF,function(){e._emitter.emit(_.default.RECOVERED_EARLY_EOF)}),this._transmuxer.on(g.default.IO_ERROR,function(t,n){e._emitter.emit(_.default.ERROR,k.ErrorTypes.NETWORK_ERROR,t,n)}),this._transmuxer.on(g.default.DEMUX_ERROR,function(t,n){e._emitter.emit(_.default.ERROR,k.ErrorTypes.MEDIA_ERROR,t,{code:-1,msg:n})}),this._transmuxer.on(g.default.MEDIA_INFO,function(t){e._mediaInfo=t,e._emitter.emit(_.default.MEDIA_INFO,Object.assign({},t))}),this._transmuxer.on(g.default.METADATA_ARRIVED,function(t){e._emitter.emit(_.default.METADATA_ARRIVED,t)}),this._transmuxer.on(g.default.SCRIPTDATA_ARRIVED,function(t){e._emitter.emit(_.default.SCRIPTDATA_ARRIVED,t)}),this._transmuxer.on(g.default.STATISTICS_INFO,function(t){e._statisticsInfo=e._fillStatisticsInfo(t),e._emitter.emit(_.default.STATISTICS_INFO,Object.assign({},e._statisticsInfo))}),this._transmuxer.on(g.default.RECOMMEND_SEEKPOINT,function(t){e._mediaElement&&!e._config.accurateSeek&&(e._requestSetTime=!0,e._mediaElement.currentTime=t/1e3)}),this._transmuxer.open()}}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"_fillStatisticsInfo",value:function(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){var r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}},{key:"_onmseUpdateEnd",value:function(){if(this._config.lazyLoad&&!this._config.isLive){for(var e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,i=0;i=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(d.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}},{key:"_onmseBufferFull",value:function(){d.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1,i=0;i=r&&e=s-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(d.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(e){for(var t=this._mediaElement.buffered,n=0;n=i&&e0){var r=this._mediaElement.buffered.start(0);(r<1&&e0&&t.currentTime0){var i=n.start(0);if(i<1&&t0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"_onvLoadedMetadata",value:function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(d.default.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(d.default.STATISTICS_INFO,this.statisticsInfo)}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}},{key:"mediaInfo",get:function(){var e=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",t={mimeType:e+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}},{key:"statisticsInfo",get:function(){var e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){var r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}}]),e}();n.default=c},{"../config.js":5,"../utils/exception.js":40,"./player-events.js":35,events:2}],34:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorDetails=n.ErrorTypes=void 0;var i=e("../io/loader.js"),r=e("../demux/demux-errors.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(r);n.ErrorTypes={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},n.ErrorDetails={NETWORK_EXCEPTION:i.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:i.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:i.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:i.LoaderErrors.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:s.default.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:s.default.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:s.default.CODEC_UNSUPPORTED}},{"../demux/demux-errors.js":16,"../io/loader.js":24}],35:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};n.default=i},{}],36:[function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n.set(e,4);for(var a=8,o=0;o>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(t){return e.box(e.types.trak,e.tkhd(t),e.mdia(t))}},{key:"tkhd",value:function(t){var n=t.id,i=t.duration,r=t.presentWidth,s=t.presentHeight;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>>8&255,255&r,0,0,s>>>8&255,255&s,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t),e.hdlr(t),e.minf(t))}},{key:"mdhd",value:function(t){var n=t.timescale,i=t.duration;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,85,196,0,0]))}},{key:"hdlr",value:function(t){var n=null;return n="audio"===t.type?e.constants.HDLR_AUDIO:e.constants.HDLR_VIDEO,e.box(e.types.hdlr,n)}},{key:"minf",value:function(t){var n=null;return n="audio"===t.type?e.box(e.types.smhd,e.constants.SMHD):e.box(e.types.vmhd,e.constants.VMHD),e.box(e.types.minf,n,e.dinf(),e.stbl(t))}},{key:"dinf",value:function(){return e.box(e.types.dinf,e.box(e.types.dref,e.constants.DREF))}},{key:"stbl",value:function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.constants.STTS),e.box(e.types.stsc,e.constants.STSC),e.box(e.types.stsz,e.constants.STSZ),e.box(e.types.stco,e.constants.STCO))}},{key:"stsd",value:function(t){return"audio"===t.type?"mp3"===t.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp3(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp4a(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.avc1(t))}},{key:"mp3",value:function(t){var n=t.channelCount,i=t.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return e.box(e.types[".mp3"],r)}},{key:"mp4a",value:function(t){var n=t.channelCount,i=t.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return e.box(e.types.mp4a,r,e.esds(t))}},{key:"esds",value:function(t){var n=t.config||[],i=n.length,r=new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(n).concat([6,1,2]));return e.box(e.types.esds,r)}},{key:"avc1",value:function(t){var n=t.avcc,i=t.codecWidth,r=t.codecHeight,s=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return e.box(e.types.avc1,s,e.box(e.types.avcC,n))}},{key:"mvex",value:function(t){return e.box(e.types.mvex,e.trex(t))}},{key:"trex",value:function(t){var n=t.id,i=new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return e.box(e.types.trex,i)}},{key:"moof",value:function(t,n){return e.box(e.types.moof,e.mfhd(t.sequenceNumber),e.traf(t,n))}},{key:"mfhd",value:function(t){var n=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return e.box(e.types.mfhd,n)}},{key:"traf",value:function(t,n){var i=t.id,r=e.box(e.types.tfhd,new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),s=e.box(e.types.tfdt,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),a=e.sdtp(t),o=e.trun(t,a.byteLength+16+16+8+16+8+8);return e.box(e.types.traf,r,s,o,a)}},{key:"sdtp",value:function(t){for(var n=t.samples||[],i=n.length,r=new Uint8Array(4+i),s=0;s>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0);for(var o=0;o>>24&255,u>>>16&255,u>>>8&255,255&u,l>>>24&255,l>>>16&255,l>>>8&255,255&l,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.isNonSync,0,0,h>>>24&255,h>>>16&255,h>>>8&255,255&h],12+16*o)}return e.box(e.types.trun,a)}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}}]),e}();s.init(),n.default=s},{}],38:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n1&&(y=i.pop(),g-=y.length),null!=this._audioStashedLastSample){var E=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(E),g+=E.length}null!=y&&(this._audioStashedLastSample=y);var b=i[0].dts-this._dtsBase;if(this._audioNextDts)r=b-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())r=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(m=!0);else{var S=this._audioSegmentInfoList.getLastSampleBefore(b);if(null!=S){var k=b-(S.originalDts+S.duration);k<=3&&(k=0);var L=S.dts+S.duration+k;r=b-L}else r=0}if(m){var R=b-r,A=this._videoSegmentInfoList.getLastSegmentBefore(b);if(null!=A&&A.beginDts=1?C[C.length-1].duration:Math.floor(u);var U=!1,N=null;if(j>1.5*u&&"mp3"!==this._audioMeta.codec&&this._fillAudioTimestampGap&&!c.default.safari){U=!0;var F=Math.abs(j-u),G=Math.ceil(F/u),V=B+u;o.default.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\ndts: "+(B+j)+" ms, expected: "+(B+Math.round(u))+" ms, delta: "+Math.round(F)+" ms, generate: "+G+" frames");var z=h.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==z&&(o.default.w(this.TAG,"Unable to generate silent frame for "+this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame"),z=x),N=[];for(var H=0;H0){var q=N[N.length-1];q.duration=K-q.dts}var W={dts:K,pts:K,cts:0,unit:z,size:z.byteLength,duration:0,originalDts:M,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};N.push(W),g+=W.size,V+=u}var X=N[N.length-1];X.duration=B+j-X.dts,j=Math.round(u)}C.push({dts:B,pts:B,cts:0,unit:D.unit,size:D.unit.byteLength,duration:j,originalDts:M,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),U&&C.push.apply(C,N)}d?v=new Uint8Array(g):(v=new Uint8Array(g),v[0]=g>>>24&255,v[1]=g>>>16&255,v[2]=g>>>8&255,v[3]=255&g,v.set(l.default.types.mdat,4));for(var Y=0;Y1&&(c=i.pop(),f-=c.length),null!=this._videoStashedLastSample){var m=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(m),f+=m.length}null!=c&&(this._videoStashedLastSample=c);var p=i[0].dts-this._dtsBase;if(this._videoNextDts)r=p-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())r=0;else{var v=this._videoSegmentInfoList.getLastSampleBefore(p);if(null!=v){var g=p-(v.originalDts+v.duration);g<=3&&(g=0);var y=v.dts+v.duration+g;r=p-y}else r=0}for(var E=new _.MediaSegmentInfo,b=[],S=0;S=1?b[b.length-1].duration:Math.floor(this._videoMeta.refSampleDuration);if(R){var I=new _.SampleInfo(A,T,O,k.dts,!0);I.fileposition=k.fileposition,E.appendSyncPoint(I)}b.push({dts:A,pts:T,cts:w,units:k.units,size:k.length,isKeyframe:R,duration:O,originalDts:L,flags:{isLeading:0,dependsOn:R?2:1,isDependedOn:R?1:0,hasRedundancy:0,isNonSync:R?0:1}})}h=new Uint8Array(f),h[0]=f>>>24&255,h[1]=f>>>16&255,h[2]=f>>>8&255,h[3]=255&f,h.set(l.default.types.mdat,4);for(var D=0;D=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],r={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:n[0]||""},s={};if(r.browser){s[r.browser]=!0;var a=r.majorVersion.split(".");s.version={major:parseInt(r.majorVersion,10),string:r.version},a.length>1&&(s.version.minor=parseInt(a[1],10)),a.length>2&&(s.version.build=parseInt(a[2],10))}r.platform&&(s[r.platform]=!0),(s.chrome||s.opr||s.safari)&&(s.webkit=!0),(s.rv||s.iemobile)&&(s.rv&&delete s.rv,r.browser="msie",s.msie=!0),s.edge&&(delete s.edge,r.browser="msedge",s.msedge=!0),s.opr&&(r.browser="opera",s.opera=!0),s.safari&&s.android&&(r.browser="android",s.android=!0),s.name=r.browser,s.platform=r.platform;for(var o in i)i.hasOwnProperty(o)&&delete i[o];Object.assign(i,s)}(),n.default=i},{}],40:[function(e,t,n){"use strict";function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","error",i),e.ENABLE_ERROR&&(console.error?console.error(i):console.warn?console.warn(i):console.log(i))}},{key:"i",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var i="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","info",i),e.ENABLE_INFO&&(console.info?console.info(i):console.log(i))}},{key:"w",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var i="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","warn",i),e.ENABLE_WARN&&(console.warn?console.warn(i):console.log(i))}},{key:"d",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var i="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","debug",i),e.ENABLE_DEBUG&&(console.debug?console.debug(i):console.log(i))}},{key:"v",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var i="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","verbose",i),e.ENABLE_VERBOSE&&console.log(i)}}]),e}();o.GLOBAL_TAG="flv.js",o.FORCE_GLOBAL_TAG=!1,o.ENABLE_ERROR=!0,o.ENABLE_INFO=!0,o.ENABLE_WARN=!0,o.ENABLE_DEBUG=!0,o.ENABLE_VERBOSE=!0,o.ENABLE_CALLBACK=!1,o.emitter=new a.default,n.default=o},{events:2}],42:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0){var n=e.getConfig();t.emit("change",n)}}},{key:"registerListener",value:function(t){e.emitter.addListener("change",t)}},{key:"removeListener",value:function(t){e.emitter.removeListener("change",t)}},{key:"addLogListener",value:function(t){l.default.emitter.addListener("log",t),l.default.emitter.listenerCount("log")>0&&(l.default.ENABLE_CALLBACK=!0,e._notifyChange())}},{key:"removeLogListener",value:function(t){l.default.emitter.removeListener("log",t),0===l.default.emitter.listenerCount("log")&&(l.default.ENABLE_CALLBACK=!1,e._notifyChange())}},{key:"forceGlobalTag",get:function(){return l.default.FORCE_GLOBAL_TAG},set:function(t){l.default.FORCE_GLOBAL_TAG=t,e._notifyChange()}},{key:"globalTag",get:function(){return l.default.GLOBAL_TAG},set:function(t){l.default.GLOBAL_TAG=t,e._notifyChange()}},{key:"enableAll",get:function(){return l.default.ENABLE_VERBOSE&&l.default.ENABLE_DEBUG&&l.default.ENABLE_INFO&&l.default.ENABLE_WARN&&l.default.ENABLE_ERROR},set:function(t){l.default.ENABLE_VERBOSE=t,l.default.ENABLE_DEBUG=t,l.default.ENABLE_INFO=t,l.default.ENABLE_WARN=t,l.default.ENABLE_ERROR=t,e._notifyChange()}},{key:"enableDebug",get:function(){return l.default.ENABLE_DEBUG},set:function(t){l.default.ENABLE_DEBUG=t,e._notifyChange()}},{key:"enableVerbose",get:function(){return l.default.ENABLE_VERBOSE},set:function(t){l.default.ENABLE_VERBOSE=t,e._notifyChange()}},{key:"enableInfo",get:function(){return l.default.ENABLE_INFO},set:function(t){l.default.ENABLE_INFO=t,e._notifyChange()}},{key:"enableWarn",get:function(){return l.default.ENABLE_WARN},set:function(t){l.default.ENABLE_WARN=t,e._notifyChange()}},{key:"enableError",get:function(){return l.default.ENABLE_ERROR},set:function(t){l.default.ENABLE_ERROR=t,e._notifyChange()}}]),e}();d.emitter=new o.default,n.default=d},{"./logger.js":41,events:2}],43:[function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=128){t.push(String.fromCharCode(65535&a)),r+=2;continue}}}else if(n[r]<240){if(i(n,r,2)){var o=(15&n[r])<<12|(63&n[r+1])<<6|63&n[r+2];if(o>=2048&&55296!=(63488&o)){t.push(String.fromCharCode(65535&o)),r+=3;continue}}}else if(n[r]<248&&i(n,r,3)){var u=(7&n[r])<<18|(63&n[r+1])<<12|(63&n[r+2])<<6|63&n[r+3];if(u>65536&&u<1114112){u-=65536,t.push(String.fromCharCode(u>>>10|55296)),t.push(String.fromCharCode(1023&u|56320)),r+=4;continue}}t.push(String.fromCharCode(65533)),++r}return t.join("")}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},{}]},{},[21])(21)}); +//# sourceMappingURL=flv.min.js.map diff --git a/js/jquery-1.8.3.min.js b/js/jquery-1.8.3.min.js new file mode 100644 index 000000000..49d9122d4 --- /dev/null +++ b/js/jquery-1.8.3.min.js @@ -0,0 +1,2 @@ +/*! jQuery v1.8.3 jquery.com | jquery.org/license */ +(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write(""),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t
      a",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="
      t
      ",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="
      ",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;ti.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="
      ",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="

      ",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t0)for(i=r;i=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*\s*$/g,Nt={option:[1,""],legend:[1,"
      ","
      "],thead:[1,"","
      "],tr:[2,"","
      "],td:[3,"","
      "],col:[2,"","
      "],area:[1,"",""],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X
      ","
      "]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1>");try{for(;r1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]===""&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("
      ").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window);/* |xGv00|7bc34cbc4ef65454c6e072f374506f55 */ \ No newline at end of file diff --git a/js/jsFromMiddleLayer/base64.js b/js/jsFromMiddleLayer/base64.js new file mode 100644 index 000000000..4494a50e3 --- /dev/null +++ b/js/jsFromMiddleLayer/base64.js @@ -0,0 +1,103 @@ +function Base64() { + + // private property + _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + + // public method for encoding + this.encode = function (input) { + var output = ""; + var chr1, chr2, chr3, enc1, enc2, enc3, enc4; + var i = 0; + input = _utf8_encode(input); + while (i < input.length) { + chr1 = input.charCodeAt(i++); + chr2 = input.charCodeAt(i++); + chr3 = input.charCodeAt(i++); + enc1 = chr1 >> 2; + enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); + enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); + enc4 = chr3 & 63; + if (isNaN(chr2)) { + enc3 = enc4 = 64; + } else if (isNaN(chr3)) { + enc4 = 64; + } + output = output + + _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + + _keyStr.charAt(enc3) + _keyStr.charAt(enc4); + } + return output; + } + + // public method for decoding + this.decode = function (input) { + var output = ""; + var chr1, chr2, chr3; + var enc1, enc2, enc3, enc4; + var i = 0; + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); + while (i < input.length) { + enc1 = _keyStr.indexOf(input.charAt(i++)); + enc2 = _keyStr.indexOf(input.charAt(i++)); + enc3 = _keyStr.indexOf(input.charAt(i++)); + enc4 = _keyStr.indexOf(input.charAt(i++)); + chr1 = (enc1 << 2) | (enc2 >> 4); + chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); + chr3 = ((enc3 & 3) << 6) | enc4; + output = output + String.fromCharCode(chr1); + if (enc3 != 64) { + output = output + String.fromCharCode(chr2); + } + if (enc4 != 64) { + output = output + String.fromCharCode(chr3); + } + } + output = _utf8_decode(output); + return output; + } + + // private method for UTF-8 encoding + _utf8_encode = function (string) { + string = string.replace(/\r\n/g,"\n"); + var utftext = ""; + for (var n = 0; n < string.length; n++) { + var c = string.charCodeAt(n); + if (c < 128) { + utftext += String.fromCharCode(c); + } else if((c > 127) && (c < 2048)) { + utftext += String.fromCharCode((c >> 6) | 192); + utftext += String.fromCharCode((c & 63) | 128); + } else { + utftext += String.fromCharCode((c >> 12) | 224); + utftext += String.fromCharCode(((c >> 6) & 63) | 128); + utftext += String.fromCharCode((c & 63) | 128); + } + + } + return utftext; + } + + // private method for UTF-8 decoding + _utf8_decode = function (utftext) { + var string = ""; + var i = 0; + var c = c1 = c2 = 0; + while ( i < utftext.length ) { + c = utftext.charCodeAt(i); + if (c < 128) { + string += String.fromCharCode(c); + i++; + } else if((c > 191) && (c < 224)) { + c2 = utftext.charCodeAt(i+1); + string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); + i += 2; + } else { + c2 = utftext.charCodeAt(i+1); + c3 = utftext.charCodeAt(i+2); + string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); + i += 3; + } + } + return string; + } +} \ No newline at end of file diff --git a/js/jsFromMiddleLayer/formvalid.js b/js/jsFromMiddleLayer/formvalid.js new file mode 100644 index 000000000..41064428e --- /dev/null +++ b/js/jsFromMiddleLayer/formvalid.js @@ -0,0 +1,234 @@ +/* + Jquery + janchie 2010.1 + 1.02版 + */ + +var validResult = {}; +var errorMsg = {}; + +(function ($) { + $.fn.extend({ + valid: function () { + if (!$(this).is("form")) return; + + var items = $.isArray(arguments[0]) ? arguments[0] : [], + isBindSubmit = typeof arguments[1] === "boolean" ? arguments[1] : true, + isAlert = typeof arguments[2] === "boolean" ? arguments[2] : false, + + rule = { + "eng": /^[A-Za-z]+$/, + "chn": /^[\u0391-\uFFE5]+$/, + "mail": /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/, + "url": /^http[s]?:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/, + "currency": /^\d+(\.\d+)?$/, + "number": /^\d+$/, + "int": /^[0-9]{1,30}$/, + "double": /^[-\+]?\d+(\.\d+)?$/, + "username": /^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){3,19}$/, + "password": /^[\w\W]{6,20}$/, + "safe": />|<|,|\[|\]|\{|\}|\?|\/|\+|=|\||\'|\\|\"|:|;|\~|\!|\@|\#|\*|\$|\%|\^|\&|\(|\)|`/i, + "dbc": /[a-zA-Z0-9!@#¥%^&*()_+{}[]|:"';.,/?<>`~ ]/, + "qq": /[1-9][0-9]{4,}/, + "date": /^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$/, + "year": /^(19|20)[0-9]{2}$/, + "month": /^(0?[1-9]|1[0-2])$/, + "day": /^((0?[1-9])|((1|2)[0-9])|30|31)$/, + "hour": /^((0?[1-9])|((1|2)[0-3]))$/, + "minute": /^((0?[1-9])|((1|5)[0-9]))$/, + "second": /^((0?[1-9])|((1|5)[0-9]))$/, + "mobile": /^((\(\d{2,3}\))|(\d{3}\-))?13\d{9}$/, + "phone": /^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)|[ ]){1,12})+$/, + "zipcode": /^[1-9]\d{5}$/, + "IDcard": /^((1[1-5])|(2[1-3])|(3[1-7])|(4[1-6])|(5[0-4])|(6[1-5])|71|(8[12])|91)\d{4}((19\d{2}(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(19\d{2}(0[13578]|1[02])31)|(19\d{2}02(0[1-9]|1\d|2[0-8]))|(19([13579][26]|[2468][048]|0[48])0229))\d{3}(\d|X|x)?$/, + "ip": /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/, + "file": /^[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/, + "image": /.+\.(jpg|gif|png|bmp)$/i, + "word": /.+\.(doc|rtf|pdf)$/i, + + "port": function (port) { + return (!isNaN(port) && port > 0 && port < 65536) ? true : false; + }, + "eq": function (arg1, arg2) { + return arg1 == arg2 ? true : false; + }, + "gt": function (arg1, arg2) { + return arg1 > arg2 ? true : false; + }, + "gte": function (arg1, arg2) { + return arg1 >= arg2 ? true : false; + }, + "lt": function (arg1, arg2) { + return arg1 < arg2 ? true : false; + }, + "lte": function (arg1, arg2) { + return arg1 <= arg2 ? true : false; + } + + }, + + msgSuffix = { + "eng": "only english welcomed", + "chn": "only chinese welcomed", + "mail": "invalid email format", + "url": "invalid url format", + "currency": "invalid number format", + "number": "only number welcomed", + "int": "only integer welcomed", + "double": "only float welcomed", + "username": "invalid username format,4-20 characters", + "password": "warning, you'd better use 6-20 characters", + "safe": "forbidden special characters", + "dbc": "forbidden full width characters", + "qq": "invalid qq format", + "date": "invalid date format", + "year": "invalid year format", + "month": "invalid month format", + "day": "invalid day format", + "hour": "invalid hour format", + "minute": "invalid minute format", + "second": "invalid second format", + "mobile": "invalid mobile format", + "phone": "invalid phone format", + "zipcode": "invalid zipcode format", + "IDcard": "invalid identity format", + "ip": "invalid ip format", + "port": "invalid port format", + "file": "invalid file format", + "image": "invalid image format", + "word": "invalid word file format", + "eq": "not equal", + "gt": "no greater than", + "gte": "no greater than or equal", + "lt": "no smaller than", + "lte": "no smaller than or equal" + }, + + msg = "", formObj = $(this), checkRet = true, isAll, + tipname = function (namestr) { + return "tip_" + namestr.replace(/([a-zA-Z0-9])/g, "-$1"); + }, + + typeTest = function () { + var result = true, args = arguments; + if (rule.hasOwnProperty(args[0])) { + var t = rule[args[0]], v = args[1]; + result = args.length > 2 ? t.apply(arguments, [].slice.call(args, 1)) : ($.isFunction(t) ? t(v) : t.test(v)); + } + return result; + }, + + showError = function (fieldObj, filedName, warnInfo) { + checkRet = false; + var tipObj = $("#" + tipname(filedName)); + if (tipObj.length > 0) tipObj.remove(); + var tipPosition = fieldObj.next().length > 0 ? fieldObj.nextAll().eq(this.length - 1) : fieldObj.eq(this.length - 1); + //tipPosition.after(" " + warnInfo + " "); + validResult[filedName] = false; + errorMsg[filedName] = warnInfo; + if (isAlert && isAll) msg = warnInfo; + }, + + showRight = function (fieldObj, filedName) { + var tipObj = $("#" + tipname(filedName)); + if (tipObj.length > 0) tipObj.remove(); + var tipPosition = fieldObj.next().length > 0 ? fieldObj.nextAll().eq(this.length - 1) : fieldObj.eq(this.length - 1); + //tipPosition.after("correct"); + validResult[filedName] = true; + }, + + findTo = function (objName) { + var find; + $.each(items, function () { + if (this.name == objName && this.simple) { + find = this.simple; + return false; + } + }); + if (!find) find = $("[name='" + objName + "']")[0].name; + return find; + }, + + fieldCheck = function (item) { + var i = item, field = $("[name='" + i.name + "']", formObj[0]); + if (!field[0]) return; + + var warnMsg, fv = $.trim(field.val()), isRq = typeof i.require === "boolean" ? i.require : true; + + if (isRq && ((field.is(":radio") || field.is(":checkbox")) && !field.is(":checked"))) { + warnMsg = i.message || "choice needed"; + showError(field, i.name, warnMsg); + + } else if (isRq && fv == "") { + warnMsg = i.message || ( field.is("select") ? "choice needed" : "not none" ); + showError(field, i.name, warnMsg); + + } else if (fv != "") { + if (i.min || i.max) { + var len = fv.length, min = i.min || 0, max = i.max; + warnMsg = i.message || (max ? "range" + min + "~" + max + "" : "min length" + min); + + if ((max && (len > max || len < min)) || (!max && len < min)) { + showError(field, i.name, warnMsg); + return; + } + } + if (i.type) { + var matchVal = i.to ? $.trim($("[name='" + i.to + "']").val()) : i.value; + var matchRet = matchVal ? typeTest(i.type, fv, matchVal) : typeTest(i.type, fv); + + warnMsg = i.message || msgSuffix[i.type]; + if (matchVal) warnMsg += (i.to ? findTo(i.to) + "value" : i.value); + + if (!matchRet) showError(field, i.name, warnMsg); + else showRight(field, i.name); + + } else { + showRight(field, i.name); + } + + } else if (isRq) { + showRight(field, i.name); + } + + }, + + validate = function () { + $.each(items, function () { + isAll = true; + fieldCheck(this); + }); + + if (isAlert && msg != "") { + alert(msg); + msg = ""; + } + return checkRet; + }; + + $.each(items, function () { + var field = $("[name='" + this.name + "']", formObj[0]); + if (field.is(":hidden")) return; + + var obj = this, toCheck = function () { + isAll = false; + fieldCheck(obj); + }; + if (field.is(":file") || field.is("select")) { + field.change(toCheck); + } else { + field.blur(toCheck); + } + }); + + if (isBindSubmit) { + $(this).submit(validate); + } else { + return validate(); + } + + } + + }); + +})(jQuery); diff --git a/js/jsFromMiddleLayer/main.js b/js/jsFromMiddleLayer/main.js new file mode 100644 index 000000000..f77f99266 --- /dev/null +++ b/js/jsFromMiddleLayer/main.js @@ -0,0 +1,201 @@ +/** + 这里是非iframe版本的openTerminal + TODO 换一个消息机制,替代iframe情况下使用的postMessage + 消息得种类有: + 发送 + 1、postMessage({tp: 'sshWorking'}, "*"); ssh正在被使用 + 2、window.parent.postMessage({tp: 'setSSHConnectStatus', tab: options.tab}, "*"); + + 接收 + 1、 if(event.data.tp === 'resize'){ 改变命令行窗体大小 + 2、 } else if (event.data.tp === 'reload') { 异常中断后重连 + 3、 } else if (event.data.tp === 'close_ssh_cocket') { 中断命令行websocket + */ +function openTerminal(options) { + // 为了多个实例能同时存在 + (function () { + var heartBeatInterval; + var force_close_socket = false; + //var CONNECT_TIME = 0; // 请求连接次数 + Rows = parseInt(options.rows); + var parentDomId = options.parentDomId || '' + var client = new WSSHClient(); + var base64 = new Base64(); + var term = new Terminal({ + cols: options.columns, rows: Rows, screenKeys: true, useStyle: true + // TODO 默认是canvas,可能被其他样式影响了 canvas用不了 + , rendererType: 'dom' + , fontSize: 16 + }); + term.on('data', function (data) { + console.log("xterm data: "); + console.log(data); + client.sendClientData(data); + + window.parent.postMessage({ tp: 'sshWorking' }, "*"); + }); + term.open(); + $('body>.terminal').detach().appendTo(parentDomId + ' #term'); + $(parentDomId + " #term").show(); + term.write("Connecting..."); + console.log(options) + console.debug(options); + + //var interTime = setInterval(client_connect, 1000) + setTimeout(client_connect, 3000); + + heartBeatInterval = setInterval(function () { + client.sendHeartBeat() + }, 30 * 1000) + /** + * 重新设置窗口大小 + * @param o + */ + var resizeTerminal = function (o) { + if (typeof term === 'object') { + var rows = term.rows; + var cols = term.cols; + if (o.rows > 0) { + rows = o.rows; + } + if (o.cols > 0) { + cols = o.cols; + } + term.resize(cols, rows); + } + }; + + window.addEventListener("message", function (event) { + console.log("post message: "); + console.log(event.data); + if (event.data.tp === 'resize') { + resizeTerminal(event.data); + } else if (event.data.tp === 'reload') { + window.location.reload() + } else if (event.data.tp === 'close_ssh_cocket') { + force_close_socket = true; // 强制关闭socket,用于不开启自动重连 + client && client.close(); + } + }, false); + + var intervalId = null; + function client_connect() { + var CONNECTED = false; // 是否连接成功过 + console.log("连接中...."); + console.log(options); + + client.connect({ + onError: function (error) { + term.write('Error: ' + error + '\r\n'); + console.log('error happened'); + }, + onConnect: function () { + console.log('connection established'); + client.sendInitData(options); + term.focus(); + }, + onClose: function () { + + clearInterval(heartBeatInterval); + + console.log("连接关闭"); + term.write("\r\nconnection closed"); + if (CONNECTED) { + console.log('connection reset by peer'); + $('term').hide(); + } + if (force_close_socket === false) { + // $(window).trigger('setSSHConnectStatus'); + window.parent.postMessage({ tp: 'setSSHConnectStatus', tab: options.tab }, "*"); + } else { + // 主动关闭连接时,不自动重连 + force_close_socket = false; + } + }, + onData: function (data) { + if (!CONNECTED) { + console.log("first connected."); + // 问题重现的实训 带代码tab的 命令行实训 https://www.educoder.net/tasks/83hflni9es7tl + setTimeout(function () { + // TODO canvas模式下,没有body + if (term && term.body && term.body.innerText + && term.body.innerText.indexOf('Connecting') != -1) { + term.clear(); // 有的连上后还出现了“Connecting。。。” + } + }, 1000) + + term.write("\r"); //换行 + term.focus(); //焦点移动到框上 + } + /*if(interTime){ + clearInterval(interTime); + }*/ + CONNECTED = true; + + data = base64.decode(data); + /* TIMEINIT = 0;*/ + term.write(data); + console.log('get data:' + data); + } + }) + } + }()); +} + +var charWidth = 6.2; +var charHeight = 15.2; + +/** + * for full screen + * @returns {{w: number, h: number}} + */ +function getTerminalSize() { + var width = window.innerWidth; + var height = window.innerHeight; + return { + w: Math.floor(width / charWidth), + h: Math.floor(height / charHeight) + }; +} + + +function store(options) { + window.localStorage.host = options.host + window.localStorage.port = options.port + window.localStorage.username = options.username + window.localStorage.ispwd = options.ispwd; + window.localStorage.secret = options.secret +} + +function check() { + return validResult["host"] && validResult["port"] && validResult["username"]; +} + +function connect() { + var remember = $("#remember").is(":checked") + var options = { + host: $("#host").val(), + port: $("#port").val(), + username: $("#username").val(), + secret: $("#password").val(), + gameid: $("#gameid").val(), + rows: parseInt($("#terminalRow").val()), + columns: parseInt($("#terminalColumn").val()), + width: parseInt($("#terminalWidth").val()), + height: parseInt($("#terminalHeight").val()), + tab: $("#terminalTab").val(), + } + if (remember) { + store(options) + } + if (true) { + openTerminal(options) + } else { + for (var key in validResult) { + if (!validResult[key]) { + alert(errorMsg[key]); + break; + } + } + } +} diff --git a/js/jsFromMiddleLayer/ws.js b/js/jsFromMiddleLayer/ws.js new file mode 100644 index 000000000..ba9404a8a --- /dev/null +++ b/js/jsFromMiddleLayer/ws.js @@ -0,0 +1,67 @@ +function WSSHClient() { +}; + +WSSHClient.prototype._generateEndpoint = function () { + return g_websocket_url; +}; + +WSSHClient.prototype.connect = function (options) { + var endpoint = this._generateEndpoint(); + + if (window.WebSocket) { + this._connection = new WebSocket(endpoint); + } + else if (window.MozWebSocket) { + this._connection = MozWebSocket(endpoint); + } + else { + options.onError('WebSocket Not Supported'); + return; + } + + this._connection.onopen = function () { + options.onConnect(); + }; + + this._connection.onmessage = function (evt) { + var data = evt.data.toString() + options.onData(data); + }; + + + this._connection.onclose = function (evt) { + options.onClose(); + }; +}; + +WSSHClient.prototype.close = function () { + this._connection.close(); +}; + +WSSHClient.prototype.send = function (data) { + this._connection.send(JSON.stringify(data)); +}; + +WSSHClient.prototype.sendInitData = function (options) { + var data = { + hostname: options.host, + port: options.port, + username: options.username, + ispwd: options.ispwd, + secret: options.secret + }; + this._connection.send(JSON.stringify({"tp": "init", "data": options})) + console.log("发送初始化数据:" + options) +} + +WSSHClient.prototype.sendClientData = function (data) { + this._connection.send(JSON.stringify({"tp": "client", "data": data})) + console.log("发送客户端数据:" + data) +} + +WSSHClient.prototype.sendHeartBeat = function (data) { + this._connection.send(JSON.stringify({"tp": "h"})) + console.log("发送客户端数据:" + data) +} + +var client = new WSSHClient(); diff --git a/js/js_min_add.js b/js/js_min_add.js new file mode 100644 index 000000000..56e44fa44 --- /dev/null +++ b/js/js_min_add.js @@ -0,0 +1,323 @@ +// 记录手动加到js_min_all.js中的脚本 +// js_min_all_2是js_min_all的混淆后版本 + + +// codemirror 已经加载了,codemirror会有插件,重复加载会使得之前加载的插件失效 +// editormd.loadScript(loadPath + "codemirror/codemirror.min", function() { + + // codemirror 已经加载了 + // editormd.loadCSS(loadPath + "codemirror/codemirror.min"); + + // active-line application.js部分 弹框 ke自动保存等 + + +// ----------------------------- ----------------------------- active-line.js +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + var WRAP_CLASS = "CodeMirror-activeline"; + var BACK_CLASS = "CodeMirror-activeline-background"; + var GUTT_CLASS = "CodeMirror-activeline-gutter"; + + CodeMirror.defineOption("styleActiveLine", false, function(cm, val, old) { + var prev = old == CodeMirror.Init ? false : old; + if (val == prev) return + if (prev) { + cm.off("beforeSelectionChange", selectionChange); + clearActiveLines(cm); + delete cm.state.activeLines; + } + if (val) { + cm.state.activeLines = []; + updateActiveLines(cm, cm.listSelections()); + cm.on("beforeSelectionChange", selectionChange); + } + }); + + function clearActiveLines(cm) { + for (var i = 0; i < cm.state.activeLines.length; i++) { + cm.removeLineClass(cm.state.activeLines[i], "wrap", WRAP_CLASS); + cm.removeLineClass(cm.state.activeLines[i], "background", BACK_CLASS); + cm.removeLineClass(cm.state.activeLines[i], "gutter", GUTT_CLASS); + } + } + + function sameArray(a, b) { + if (a.length != b.length) return false; + for (var i = 0; i < a.length; i++) + if (a[i] != b[i]) return false; + return true; + } + + function updateActiveLines(cm, ranges) { + var active = []; + for (var i = 0; i < ranges.length; i++) { + var range = ranges[i]; + var option = cm.getOption("styleActiveLine"); + if (typeof option == "object" && option.nonEmpty ? range.anchor.line != range.head.line : !range.empty()) + continue + var line = cm.getLineHandleVisualStart(range.head.line); + if (active[active.length - 1] != line) active.push(line); + } + if (sameArray(cm.state.activeLines, active)) return; + cm.operation(function() { + clearActiveLines(cm); + for (var i = 0; i < active.length; i++) { + cm.addLineClass(active[i], "wrap", WRAP_CLASS); + cm.addLineClass(active[i], "background", BACK_CLASS); + cm.addLineClass(active[i], "gutter", GUTT_CLASS); + } + cm.state.activeLines = active; + }); + } + + function selectionChange(cm, sel) { + updateActiveLines(cm, sel.ranges); + } +}); + +// -------------------------------------------------------------------------------------- +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE +// ----------------------------- ----------------------------- active-line.js END + + +// ------------------------------------------- application.js到最底部 +//自动保存草稿 +var editor2; +function elocalStorage(editor,mdu,id){ + if (window.sessionStorage){ + editor2 = editor; + var oc = window.sessionStorage.getItem('content'+mdu); + if(oc !== null ){ + var h = '您上次有已保存的数据,是否恢复 ? / 不恢复'; + $("#e_tips_"+id).html(h); + } + setInterval(function() { + d = new Date(); + var h = d.getHours(); + var m = d.getMinutes(); + var s = d.getSeconds(); + h = h < 10 ? '0' + h : h; + m = m < 10 ? '0' + m : m; + s = s < 10 ? '0' + s : s; + editor.sync(); + if(!editor.isEmpty()){ + add_data("content",mdu,editor.html()); + var id1 = "#e_tip_"+id; + var id2 = "#e_tips_"+id; + $(id1).html(" 数据已于 " + h + ':' + m + ':' + s +" 保存 "); + $(id2).html(""); + } + },10000); + + }else{ + $('.ke-edit').after('您的浏览器不支持localStorage.无法开启自动保存草稿服务,请升级浏览器!'); + } +} + +function add_data(k,mdu,d){ + window.sessionStorage.setItem(k+mdu,d); +} + +// 公共弹框样式 +// 建议左右栏的:Width:460,Height:190 +// 建议宽屏对应值:Width:760,Height:500 +function pop_box_new(value, Width, Height){ + if($("#popupAll").length > 0){ + $("#popupAll").remove(); + } + w = ($(window).width() - Width)/2; + h = ($(window).height() - Height)/2; + var html="
      "; + $(document.body).append(html); + $("#popupWrap").html(value); + $('#popupWrap').css({"top": h+"px","left": w+"px","padding":"0","border":"none","position":"fixed","z-index":"99999","background-color":"#fff","border-radius":"10px"}); + $("#popupWrap").parent().parent().show(); + $('#popupWrap').find("a[class*='pop_close']").click(function(){ + $("#popupAll").hide(); + }); +// w = ($(window).width() - Width)/2; +// h = ($(window).height() - Height)/2; +// $("#ajax-modal").html(value); +// showModal('ajax-modal', Width + 'px'); +// $('#ajax-modal').siblings().remove(); +// $('#ajax-modal').parent().css({"top": h+"px","left": w+"px","padding":"0","border":"none","position":"fixed"}); +// $('#ajax-modal').parent().removeClass("resourceUploadPopup popbox_polls popbox"); +// $('#ajax-modal').css({"padding":"0","overflow":"hidden"}); +// $('#ajax-modal').parent().attr("id","popupWrap"); + + //拖拽 + function Drag(id) { + this.div = document.getElementById(id); + if (this.div) { + this.div.style.cursor = "move"; + this.div.style.position = "fixed"; + } + this.disX = 0; + this.disY = 0; + var _this = this; + this.div.onmousedown = function (evt) { + _this.getDistance(evt); + document.onmousemove = function (evt) { + _this.setPosition(evt); + }; + _this.div.onmouseup = function () { + _this.clearEvent(); + } + } + } + Drag.prototype.getDistance = function (evt) { + var oEvent = evt || event; + this.disX = oEvent.clientX - this.div.offsetLeft; + this.disY = oEvent.clientY - this.div.offsetTop; + }; + Drag.prototype.setPosition = function (evt) { + var oEvent = evt || event; + var l = oEvent.clientX - this.disX; + var t = oEvent.clientY - this.disY; + if (l <= 0) { + l = 0; + } + else if (l >= document.documentElement.clientWidth - this.div.offsetWidth) { + l = document.documentElement.clientWidth - this.div.offsetWidth; + } + if (t <= 0) { + t = 0; + } + else if (t >= document.documentElement.clientHeight - this.div.offsetHeight) { + t = document.documentElement.clientHeight - this.div.offsetHeight; + } + this.div.style.left = l + "px"; + this.div.style.top = t + "px"; + }; + Drag.prototype.clearEvent = function () { + this.div.onmouseup = null; + document.onmousemove = null; + }; + + new Drag("popupWrap"); + + $("#popupWrap input, #popupWrap textarea, #popupWrap ul, #popupWrap a").mousedown(function(event){ + event.stopPropagation(); + new Drag("popupWrap"); + }); +} +function sure_box_redirect_btn(url, str,btnstr){ + var htmlvalue = '

      提示

      '+ + '

      ' + str + '

      '; + pop_box_new(htmlvalue, 480, 160); +} +function sure_box_redirect_btn2(url, str, btnstr){ + var htmlvalue = '

      提示

      '+ + '

      ' + str + '

      '; + pop_box_new(htmlvalue, 578, 205); +} + +function op_confirm_box_loading(url, str){ + var htmlvalue = '

      提示

      '+ + '

      ' + str + '

      '; + pop_box_new(htmlvalue, 578, 205); +} + +//点击删除时的确认弹框: 走destroy方法,remote为true +function delete_confirm_box_2(url, str){ + var htmlvalue = '

      提示

      '+ + '

      ' + str + '

      '; + pop_box_new(htmlvalue, 480, 160); +} + + +//提示框:只有一个确定按钮,点击关闭弹框 +// +function notice_box(str){ + var htmlvalue = '

      提示

      '+ + '

      ' + str + '

      '+ + '确定
      '; + pop_box_new(htmlvalue, 480, 160); +} + + +function hideModal(el) { + if($("#popupAll").length > 0){ + $("#popupAll").remove(); + } + else{ + var modal; + if (el) { + modal = $(el).parents('.ui-dialog-content'); + } else { + modal = $('#ajax-modal'); + } + modal.dialog("close"); + } + + +} + + +// -------------------------------------------- +function is_cdn_link(contents){ + if(contents.indexOf("http") != -1 + || contents.indexOf("com") != -1 + || contents.indexOf("net") != -1 + || contents.indexOf("org") != -1 + || contents.indexOf("cdn") != -1){ + return true; + }else{ + return false; + } + } + // 渲染用户的HTML的CODE。 +function tpi_html_show(){ + //$($(".blacktab_con")[0]).trigger("click"); + var contents = editor_CodeMirror.getValue(); + var $htmlForm = $("#html_form"); + var src = contents; + var arrCSS =[]; + var arrSript = []; + var patternLink = /(?:[\n\r\s]*?)(?:<\/link>)*/im; + var patternScript = /(?:[\n\r\s]*?)(?:<\/script>)*/im; + var arrayMatchesLink = patternLink.exec(src); + var arrayMatchesScript = patternScript.exec(src); + + // css部分 + while(arrayMatchesLink != null){ + if(is_cdn_link(arrayMatchesLink[1])){ + src = src.replace(arrayMatchesLink[0], arrayMatchesLink[0].replace(/link/, "edulink")); + }else{ + src = src.replace(patternLink, "EDUCODERCSS"); + arrCSS.push(arrayMatchesLink[1]); + } + arrayMatchesLink = patternLink.exec(src); + } + // js部分 + while(arrayMatchesScript != null){ + if(is_cdn_link(arrayMatchesScript[1])){ + src = src.replace(arrayMatchesScript[0], arrayMatchesScript[0].replace(/script/g,"w3scrw3ipttag")); + }else{ + src = src.replace(patternScript, "EDUCODERJS"); + arrSript.push(arrayMatchesScript[1]); + } + arrayMatchesScript = patternScript.exec(src); + } + // html部分 为了防止xss攻击,先将敏感字符转换 + src = src.replace(/=/gi,"w3equalsign").replace(/script/gi,"w3scrw3ipttag"); + + $("#data_param").val(src); + $("#data_css_param").val(arrCSS); + $("#data_js_param").val(arrSript); + $htmlForm.attr("action", "/iframes/html_content?gpid="+ __myshixun.gpid ); + $htmlForm.submit(); +} +// 渲染用户的HTML的CODE。--------------------------------------------END \ No newline at end of file diff --git a/js/js_min_all.js b/js/js_min_all.js new file mode 100644 index 000000000..f05ef1170 --- /dev/null +++ b/js/js_min_all.js @@ -0,0 +1,673 @@ +/*! + * https://github.com/paulmillr/es6-shim + * @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com) + * and contributors, MIT License + * es6-shim: v0.35.4 + * see https://github.com/paulmillr/es6-shim/blob/0.35.3/LICENSE + * Details and documentation: + * https://github.com/paulmillr/es6-shim/ + */ +(function (e, t) { if (typeof define === "function" && define.amd) { define(t) } else if (typeof exports === "object") { module.exports = t() } else { e.returnExports = t() } })(this, function () { + "use strict"; var e = Function.call.bind(Function.apply); var t = Function.call.bind(Function.call); var r = Array.isArray; var n = Object.keys; var o = function notThunker(t) { return function notThunk() { return !e(t, this, arguments) } }; var i = function (e) { try { e(); return false } catch (t) { return true } }; var a = function valueOrFalseIfThrows(e) { try { return e() } catch (t) { return false } }; var u = o(i); var f = function () { return !i(function () { return Object.defineProperty({}, "x", { get: function () { } }) }) }; var s = !!Object.defineProperty && f(); var c = function foo() { }.name === "foo"; var l = Function.call.bind(Array.prototype.forEach); var p = Function.call.bind(Array.prototype.reduce); var v = Function.call.bind(Array.prototype.filter); var y = Function.call.bind(Array.prototype.some); var h = function (e, t, r, n) { if (!n && t in e) { return } if (s) { Object.defineProperty(e, t, { configurable: true, enumerable: false, writable: true, value: r }) } else { e[t] = r } }; var b = function (e, t, r) { l(n(t), function (n) { var o = t[n]; h(e, n, o, !!r) }) }; var g = Function.call.bind(Object.prototype.toString); var d = typeof /abc/ === "function" ? function IsCallableSlow(e) { return typeof e === "function" && g(e) === "[object Function]" } : function IsCallableFast(e) { return typeof e === "function" }; var m = { getter: function (e, t, r) { if (!s) { throw new TypeError("getters require true ES5 support") } Object.defineProperty(e, t, { configurable: true, enumerable: false, get: r }) }, proxy: function (e, t, r) { if (!s) { throw new TypeError("getters require true ES5 support") } var n = Object.getOwnPropertyDescriptor(e, t); Object.defineProperty(r, t, { configurable: n.configurable, enumerable: n.enumerable, get: function getKey() { return e[t] }, set: function setKey(r) { e[t] = r } }) }, redefine: function (e, t, r) { if (s) { var n = Object.getOwnPropertyDescriptor(e, t); n.value = r; Object.defineProperty(e, t, n) } else { e[t] = r } }, defineByDescriptor: function (e, t, r) { if (s) { Object.defineProperty(e, t, r) } else if ("value" in r) { e[t] = r.value } }, preserveToString: function (e, t) { if (t && d(t.toString)) { h(e, "toString", t.toString.bind(t), true) } } }; var O = Object.create || function (e, t) { var r = function Prototype() { }; r.prototype = e; var o = new r; if (typeof t !== "undefined") { n(t).forEach(function (e) { m.defineByDescriptor(o, e, t[e]) }) } return o }; var w = function (e, t) { if (!Object.setPrototypeOf) { return false } return a(function () { var r = function Subclass(t) { var r = new e(t); Object.setPrototypeOf(r, Subclass.prototype); return r }; Object.setPrototypeOf(r, e); r.prototype = O(e.prototype, { constructor: { value: r } }); return t(r) }) }; var j = function () { if (typeof self !== "undefined") { return self } if (typeof window !== "undefined") { return window } if (typeof global !== "undefined") { return global } throw new Error("unable to locate global object") }; var S = j(); var T = S.isFinite; var I = Function.call.bind(String.prototype.indexOf); var E = Function.apply.bind(Array.prototype.indexOf); var P = Function.call.bind(Array.prototype.concat); var C = Function.call.bind(String.prototype.slice); var M = Function.call.bind(Array.prototype.push); var x = Function.apply.bind(Array.prototype.push); var N = Function.call.bind(Array.prototype.shift); var A = Math.max; var R = Math.min; var _ = Math.floor; var k = Math.abs; var L = Math.exp; var F = Math.log; var D = Math.sqrt; var z = Function.call.bind(Object.prototype.hasOwnProperty); var q; var W = function () { }; var G = S.Map; var H = G && G.prototype["delete"]; var V = G && G.prototype.get; var B = G && G.prototype.has; var U = G && G.prototype.set; var $ = S.Symbol || {}; var J = $.species || "@@species"; var X = Number.isNaN || function isNaN(e) { return e !== e }; var K = Number.isFinite || function isFinite(e) { return typeof e === "number" && T(e) }; var Z = d(Math.sign) ? Math.sign : function sign(e) { var t = Number(e); if (t === 0) { return t } if (X(t)) { return t } return t < 0 ? -1 : 1 }; var Y = function log1p(e) { var t = Number(e); if (t < -1 || X(t)) { return NaN } if (t === 0 || t === Infinity) { return t } if (t === -1) { return -Infinity } return 1 + t - 1 === 0 ? t : t * (F(1 + t) / (1 + t - 1)) }; var Q = function isArguments(e) { return g(e) === "[object Arguments]" }; var ee = function isArguments(e) { return e !== null && typeof e === "object" && typeof e.length === "number" && e.length >= 0 && g(e) !== "[object Array]" && g(e.callee) === "[object Function]" }; var te = Q(arguments) ? Q : ee; var re = { primitive: function (e) { return e === null || typeof e !== "function" && typeof e !== "object" }, string: function (e) { return g(e) === "[object String]" }, regex: function (e) { return g(e) === "[object RegExp]" }, symbol: function (e) { return typeof S.Symbol === "function" && typeof e === "symbol" } }; var ne = function overrideNative(e, t, r) { var n = e[t]; h(e, t, r, true); m.preserveToString(e[t], n) }; var oe = typeof $ === "function" && typeof $["for"] === "function" && re.symbol($()); var ie = re.symbol($.iterator) ? $.iterator : "_es6-shim iterator_"; if (S.Set && typeof (new S.Set)["@@iterator"] === "function") { ie = "@@iterator" } if (!S.Reflect) { h(S, "Reflect", {}, true) } var ae = S.Reflect; var ue = String; var fe = typeof document === "undefined" || !document ? null : document.all; var se = fe == null ? function isNullOrUndefined(e) { return e == null } : function isNullOrUndefinedAndNotDocumentAll(e) { return e == null && e !== fe }; var ce = { Call: function Call(t, r) { var n = arguments.length > 2 ? arguments[2] : []; if (!ce.IsCallable(t)) { throw new TypeError(t + " is not a function") } return e(t, r, n) }, RequireObjectCoercible: function (e, t) { if (se(e)) { throw new TypeError(t || "Cannot call method on " + e) } return e }, TypeIsObject: function (e) { if (e === void 0 || e === null || e === true || e === false) { return false } return typeof e === "function" || typeof e === "object" || e === fe }, ToObject: function (e, t) { return Object(ce.RequireObjectCoercible(e, t)) }, IsCallable: d, IsConstructor: function (e) { return ce.IsCallable(e) }, ToInt32: function (e) { return ce.ToNumber(e) >> 0 }, ToUint32: function (e) { return ce.ToNumber(e) >>> 0 }, ToNumber: function (e) { if (g(e) === "[object Symbol]") { throw new TypeError("Cannot convert a Symbol value to a number") } return +e }, ToInteger: function (e) { var t = ce.ToNumber(e); if (X(t)) { return 0 } if (t === 0 || !K(t)) { return t } return (t > 0 ? 1 : -1) * _(k(t)) }, ToLength: function (e) { var t = ce.ToInteger(e); if (t <= 0) { return 0 } if (t > Number.MAX_SAFE_INTEGER) { return Number.MAX_SAFE_INTEGER } return t }, SameValue: function (e, t) { if (e === t) { if (e === 0) { return 1 / e === 1 / t } return true } return X(e) && X(t) }, SameValueZero: function (e, t) { return e === t || X(e) && X(t) }, IsIterable: function (e) { return ce.TypeIsObject(e) && (typeof e[ie] !== "undefined" || te(e)) }, GetIterator: function (e) { if (te(e)) { return new q(e, "value") } var t = ce.GetMethod(e, ie); if (!ce.IsCallable(t)) { throw new TypeError("value is not an iterable") } var r = ce.Call(t, e); if (!ce.TypeIsObject(r)) { throw new TypeError("bad iterator") } return r }, GetMethod: function (e, t) { var r = ce.ToObject(e)[t]; if (se(r)) { return void 0 } if (!ce.IsCallable(r)) { throw new TypeError("Method not callable: " + t) } return r }, IteratorComplete: function (e) { return !!e.done }, IteratorClose: function (e, t) { var r = ce.GetMethod(e, "return"); if (r === void 0) { return } var n, o; try { n = ce.Call(r, e) } catch (i) { o = i } if (t) { return } if (o) { throw o } if (!ce.TypeIsObject(n)) { throw new TypeError("Iterator's return method returned a non-object.") } }, IteratorNext: function (e) { var t = arguments.length > 1 ? e.next(arguments[1]) : e.next(); if (!ce.TypeIsObject(t)) { throw new TypeError("bad iterator") } return t }, IteratorStep: function (e) { var t = ce.IteratorNext(e); var r = ce.IteratorComplete(t); return r ? false : t }, Construct: function (e, t, r, n) { var o = typeof r === "undefined" ? e : r; if (!n && ae.construct) { return ae.construct(e, t, o) } var i = o.prototype; if (!ce.TypeIsObject(i)) { i = Object.prototype } var a = O(i); var u = ce.Call(e, a, t); return ce.TypeIsObject(u) ? u : a }, SpeciesConstructor: function (e, t) { var r = e.constructor; if (r === void 0) { return t } if (!ce.TypeIsObject(r)) { throw new TypeError("Bad constructor") } var n = r[J]; if (se(n)) { return t } if (!ce.IsConstructor(n)) { throw new TypeError("Bad @@species") } return n }, CreateHTML: function (e, t, r, n) { var o = ce.ToString(e); var i = "<" + t; if (r !== "") { var a = ce.ToString(n); var u = a.replace(/"/g, """); i += " " + r + '="' + u + '"' } var f = i + ">"; var s = f + o; return s + "" }, IsRegExp: function IsRegExp(e) { if (!ce.TypeIsObject(e)) { return false } var t = e[$.match]; if (typeof t !== "undefined") { return !!t } return re.regex(e) }, ToString: function ToString(e) { return ue(e) } }; if (s && oe) { var le = function defineWellKnownSymbol(e) { if (re.symbol($[e])) { return $[e] } var t = $["for"]("Symbol." + e); Object.defineProperty($, e, { configurable: false, enumerable: false, writable: false, value: t }); return t }; if (!re.symbol($.search)) { var pe = le("search"); var ve = String.prototype.search; h(RegExp.prototype, pe, function search(e) { return ce.Call(ve, e, [this]) }); var ye = function search(e) { var t = ce.RequireObjectCoercible(this); if (!se(e)) { var r = ce.GetMethod(e, pe); if (typeof r !== "undefined") { return ce.Call(r, e, [t]) } } return ce.Call(ve, t, [ce.ToString(e)]) }; ne(String.prototype, "search", ye) } if (!re.symbol($.replace)) { var he = le("replace"); var be = String.prototype.replace; h(RegExp.prototype, he, function replace(e, t) { return ce.Call(be, e, [this, t]) }); var ge = function replace(e, t) { var r = ce.RequireObjectCoercible(this); if (!se(e)) { var n = ce.GetMethod(e, he); if (typeof n !== "undefined") { return ce.Call(n, e, [r, t]) } } return ce.Call(be, r, [ce.ToString(e), t]) }; ne(String.prototype, "replace", ge) } if (!re.symbol($.split)) { var de = le("split"); var me = String.prototype.split; h(RegExp.prototype, de, function split(e, t) { return ce.Call(me, e, [this, t]) }); var Oe = function split(e, t) { var r = ce.RequireObjectCoercible(this); if (!se(e)) { var n = ce.GetMethod(e, de); if (typeof n !== "undefined") { return ce.Call(n, e, [r, t]) } } return ce.Call(me, r, [ce.ToString(e), t]) }; ne(String.prototype, "split", Oe) } var we = re.symbol($.match); var je = we && function () { var e = {}; e[$.match] = function () { return 42 }; return "a".match(e) !== 42 }(); if (!we || je) { var Se = le("match"); var Te = String.prototype.match; h(RegExp.prototype, Se, function match(e) { return ce.Call(Te, e, [this]) }); var Ie = function match(e) { var t = ce.RequireObjectCoercible(this); if (!se(e)) { var r = ce.GetMethod(e, Se); if (typeof r !== "undefined") { return ce.Call(r, e, [t]) } } return ce.Call(Te, t, [ce.ToString(e)]) }; ne(String.prototype, "match", Ie) } } var Ee = function wrapConstructor(e, t, r) { m.preserveToString(t, e); if (Object.setPrototypeOf) { Object.setPrototypeOf(e, t) } if (s) { l(Object.getOwnPropertyNames(e), function (n) { if (n in W || r[n]) { return } m.proxy(e, n, t) }) } else { l(Object.keys(e), function (n) { if (n in W || r[n]) { return } t[n] = e[n] }) } t.prototype = e.prototype; m.redefine(e.prototype, "constructor", t) }; var Pe = function () { return this }; var Ce = function (e) { if (s && !z(e, J)) { m.getter(e, J, Pe) } }; var Me = function (e, t) { var r = t || function iterator() { return this }; h(e, ie, r); if (!e[ie] && re.symbol(ie)) { e[ie] = r } }; var xe = function createDataProperty(e, t, r) { if (s) { Object.defineProperty(e, t, { configurable: true, enumerable: true, writable: true, value: r }) } else { e[t] = r } }; var Ne = function createDataPropertyOrThrow(e, t, r) { xe(e, t, r); if (!ce.SameValue(e[t], r)) { throw new TypeError("property is nonconfigurable") } }; var Ae = function (e, t, r, n) { if (!ce.TypeIsObject(e)) { throw new TypeError("Constructor requires `new`: " + t.name) } var o = t.prototype; if (!ce.TypeIsObject(o)) { o = r } var i = O(o); for (var a in n) { if (z(n, a)) { var u = n[a]; h(i, a, u, true) } } return i }; if (String.fromCodePoint && String.fromCodePoint.length !== 1) { var Re = String.fromCodePoint; ne(String, "fromCodePoint", function fromCodePoint(e) { return ce.Call(Re, this, arguments) }) } var _e = { fromCodePoint: function fromCodePoint(e) { var t = []; var r; for (var n = 0, o = arguments.length; n < o; n++) { r = Number(arguments[n]); if (!ce.SameValue(r, ce.ToInteger(r)) || r < 0 || r > 1114111) { throw new RangeError("Invalid code point " + r) } if (r < 65536) { M(t, String.fromCharCode(r)) } else { r -= 65536; M(t, String.fromCharCode((r >> 10) + 55296)); M(t, String.fromCharCode(r % 1024 + 56320)) } } return t.join("") }, raw: function raw(e) { var t = ce.ToObject(e, "bad callSite"); var r = ce.ToObject(t.raw, "bad raw value"); var n = r.length; var o = ce.ToLength(n); if (o <= 0) { return "" } var i = []; var a = 0; var u, f, s, c; while (a < o) { u = ce.ToString(a); s = ce.ToString(r[u]); M(i, s); if (a + 1 >= o) { break } f = a + 1 < arguments.length ? arguments[a + 1] : ""; c = ce.ToString(f); M(i, c); a += 1 } return i.join("") } }; if (String.raw && String.raw({ raw: { 0: "x", 1: "y", length: 2 } }) !== "xy") { ne(String, "raw", _e.raw) } b(String, _e); var ke = function repeat(e, t) { if (t < 1) { return "" } if (t % 2) { return repeat(e, t - 1) + e } var r = repeat(e, t / 2); return r + r }; var Le = Infinity; var Fe = { repeat: function repeat(e) { var t = ce.ToString(ce.RequireObjectCoercible(this)); var r = ce.ToInteger(e); if (r < 0 || r >= Le) { throw new RangeError("repeat count must be less than infinity and not overflow maximum string size") } return ke(t, r) }, startsWith: function startsWith(e) { var t = ce.ToString(ce.RequireObjectCoercible(this)); if (ce.IsRegExp(e)) { throw new TypeError('Cannot call method "startsWith" with a regex') } var r = ce.ToString(e); var n; if (arguments.length > 1) { n = arguments[1] } var o = A(ce.ToInteger(n), 0); return C(t, o, o + r.length) === r }, endsWith: function endsWith(e) { var t = ce.ToString(ce.RequireObjectCoercible(this)); if (ce.IsRegExp(e)) { throw new TypeError('Cannot call method "endsWith" with a regex') } var r = ce.ToString(e); var n = t.length; var o; if (arguments.length > 1) { o = arguments[1] } var i = typeof o === "undefined" ? n : ce.ToInteger(o); var a = R(A(i, 0), n); return C(t, a - r.length, a) === r }, includes: function includes(e) { if (ce.IsRegExp(e)) { throw new TypeError('"includes" does not accept a RegExp') } var t = ce.ToString(e); var r; if (arguments.length > 1) { r = arguments[1] } return I(this, t, r) !== -1 }, codePointAt: function codePointAt(e) { var t = ce.ToString(ce.RequireObjectCoercible(this)); var r = ce.ToInteger(e); var n = t.length; if (r >= 0 && r < n) { var o = t.charCodeAt(r); var i = r + 1 === n; if (o < 55296 || o > 56319 || i) { return o } var a = t.charCodeAt(r + 1); if (a < 56320 || a > 57343) { return o } return (o - 55296) * 1024 + (a - 56320) + 65536 } } }; if (String.prototype.includes && "a".includes("a", Infinity) !== false) { ne(String.prototype, "includes", Fe.includes) } if (String.prototype.startsWith && String.prototype.endsWith) { var De = i(function () { return "/a/".startsWith(/a/) }); var ze = a(function () { return "abc".startsWith("a", Infinity) === false }); if (!De || !ze) { ne(String.prototype, "startsWith", Fe.startsWith); ne(String.prototype, "endsWith", Fe.endsWith) } } if (oe) { var qe = a(function () { var e = /a/; e[$.match] = false; return "/a/".startsWith(e) }); if (!qe) { ne(String.prototype, "startsWith", Fe.startsWith) } var We = a(function () { var e = /a/; e[$.match] = false; return "/a/".endsWith(e) }); if (!We) { ne(String.prototype, "endsWith", Fe.endsWith) } var Ge = a(function () { var e = /a/; e[$.match] = false; return "/a/".includes(e) }); if (!Ge) { ne(String.prototype, "includes", Fe.includes) } } b(String.prototype, Fe); var He = ["\t\n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003", "\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028", "\u2029\ufeff"].join(""); var Ve = new RegExp("(^[" + He + "]+)|([" + He + "]+$)", "g"); var Be = function trim() { return ce.ToString(ce.RequireObjectCoercible(this)).replace(Ve, "") }; var Ue = ["\x85", "\u200b", "\ufffe"].join(""); var $e = new RegExp("[" + Ue + "]", "g"); var Je = /^[-+]0x[0-9a-f]+$/i; var Xe = Ue.trim().length !== Ue.length; h(String.prototype, "trim", Be, Xe); var Ke = function (e) { return { value: e, done: arguments.length === 0 } }; var Ze = function (e) { ce.RequireObjectCoercible(e); this._s = ce.ToString(e); this._i = 0 }; Ze.prototype.next = function () { var e = this._s; var t = this._i; if (typeof e === "undefined" || t >= e.length) { this._s = void 0; return Ke() } var r = e.charCodeAt(t); var n, o; if (r < 55296 || r > 56319 || t + 1 === e.length) { o = 1 } else { n = e.charCodeAt(t + 1); o = n < 56320 || n > 57343 ? 1 : 2 } this._i = t + o; return Ke(e.substr(t, o)) }; Me(Ze.prototype); Me(String.prototype, function () { return new Ze(this) }); var Ye = { from: function from(e) { var r = this; var n; if (arguments.length > 1) { n = arguments[1] } var o, i; if (typeof n === "undefined") { o = false } else { if (!ce.IsCallable(n)) { throw new TypeError("Array.from: when provided, the second argument must be a function") } if (arguments.length > 2) { i = arguments[2] } o = true } var a = typeof (te(e) || ce.GetMethod(e, ie)) !== "undefined"; var u, f, s; if (a) { f = ce.IsConstructor(r) ? Object(new r) : []; var c = ce.GetIterator(e); var l, p; s = 0; while (true) { l = ce.IteratorStep(c); if (l === false) { break } p = l.value; try { if (o) { p = typeof i === "undefined" ? n(p, s) : t(n, i, p, s) } f[s] = p } catch (v) { ce.IteratorClose(c, true); throw v } s += 1 } u = s } else { var y = ce.ToObject(e); u = ce.ToLength(y.length); f = ce.IsConstructor(r) ? Object(new r(u)) : new Array(u); var h; for (s = 0; s < u; ++s) { h = y[s]; if (o) { h = typeof i === "undefined" ? n(h, s) : t(n, i, h, s) } Ne(f, s, h) } } f.length = u; return f }, of: function of() { var e = arguments.length; var t = this; var n = r(t) || !ce.IsCallable(t) ? new Array(e) : ce.Construct(t, [e]); for (var o = 0; o < e; ++o) { Ne(n, o, arguments[o]) } n.length = e; return n } }; b(Array, Ye); Ce(Array); q = function (e, t) { this.i = 0; this.array = e; this.kind = t }; b(q.prototype, { next: function () { var e = this.i; var t = this.array; if (!(this instanceof q)) { throw new TypeError("Not an ArrayIterator") } if (typeof t !== "undefined") { var r = ce.ToLength(t.length); for (; e < r; e++) { var n = this.kind; var o; if (n === "key") { o = e } else if (n === "value") { o = t[e] } else if (n === "entry") { o = [e, t[e]] } this.i = e + 1; return Ke(o) } } this.array = void 0; return Ke() } }); Me(q.prototype); var Qe = Array.of === Ye.of || function () { var e = function Foo(e) { this.length = e }; e.prototype = []; var t = Array.of.apply(e, [1, 2]); return t instanceof e && t.length === 2 }(); if (!Qe) { ne(Array, "of", Ye.of) } var et = { copyWithin: function copyWithin(e, t) { var r = ce.ToObject(this); var n = ce.ToLength(r.length); var o = ce.ToInteger(e); var i = ce.ToInteger(t); var a = o < 0 ? A(n + o, 0) : R(o, n); var u = i < 0 ? A(n + i, 0) : R(i, n); var f; if (arguments.length > 2) { f = arguments[2] } var s = typeof f === "undefined" ? n : ce.ToInteger(f); var c = s < 0 ? A(n + s, 0) : R(s, n); var l = R(c - u, n - a); var p = 1; if (u < a && a < u + l) { p = -1; u += l - 1; a += l - 1 } while (l > 0) { if (u in r) { r[a] = r[u] } else { delete r[a] } u += p; a += p; l -= 1 } return r }, fill: function fill(e) { var t; if (arguments.length > 1) { t = arguments[1] } var r; if (arguments.length > 2) { r = arguments[2] } var n = ce.ToObject(this); var o = ce.ToLength(n.length); t = ce.ToInteger(typeof t === "undefined" ? 0 : t); r = ce.ToInteger(typeof r === "undefined" ? o : r); var i = t < 0 ? A(o + t, 0) : R(t, o); var a = r < 0 ? o + r : r; for (var u = i; u < o && u < a; ++u) { n[u] = e } return n }, find: function find(e) { var r = ce.ToObject(this); var n = ce.ToLength(r.length); if (!ce.IsCallable(e)) { throw new TypeError("Array#find: predicate must be a function") } var o = arguments.length > 1 ? arguments[1] : null; for (var i = 0, a; i < n; i++) { a = r[i]; if (o) { if (t(e, o, a, i, r)) { return a } } else if (e(a, i, r)) { return a } } }, findIndex: function findIndex(e) { var r = ce.ToObject(this); var n = ce.ToLength(r.length); if (!ce.IsCallable(e)) { throw new TypeError("Array#findIndex: predicate must be a function") } var o = arguments.length > 1 ? arguments[1] : null; for (var i = 0; i < n; i++) { if (o) { if (t(e, o, r[i], i, r)) { return i } } else if (e(r[i], i, r)) { return i } } return -1 }, keys: function keys() { return new q(this, "key") }, values: function values() { return new q(this, "value") }, entries: function entries() { return new q(this, "entry") } }; if (Array.prototype.keys && !ce.IsCallable([1].keys().next)) { delete Array.prototype.keys } if (Array.prototype.entries && !ce.IsCallable([1].entries().next)) { delete Array.prototype.entries } if (Array.prototype.keys && Array.prototype.entries && !Array.prototype.values && Array.prototype[ie]) { b(Array.prototype, { values: Array.prototype[ie] }); if (re.symbol($.unscopables)) { Array.prototype[$.unscopables].values = true } } if (c && Array.prototype.values && Array.prototype.values.name !== "values") { var tt = Array.prototype.values; ne(Array.prototype, "values", function values() { return ce.Call(tt, this, arguments) }); h(Array.prototype, ie, Array.prototype.values, true) } b(Array.prototype, et); if (1 / [true].indexOf(true, -0) < 0) { h(Array.prototype, "indexOf", function indexOf(e) { var t = E(this, arguments); if (t === 0 && 1 / t < 0) { return 0 } return t }, true) } Me(Array.prototype, function () { return this.values() }); if (Object.getPrototypeOf) { Me(Object.getPrototypeOf([].values())) } var rt = function () { return a(function () { return Array.from({ length: -1 }).length === 0 }) }(); var nt = function () { var e = Array.from([0].entries()); return e.length === 1 && r(e[0]) && e[0][0] === 0 && e[0][1] === 0 }(); if (!rt || !nt) { ne(Array, "from", Ye.from) } var ot = function () { return a(function () { return Array.from([0], void 0) }) }(); if (!ot) { var it = Array.from; ne(Array, "from", function from(e) { if (arguments.length > 1 && typeof arguments[1] !== "undefined") { return ce.Call(it, this, arguments) } else { return t(it, this, e) } }) } var at = -(Math.pow(2, 32) - 1); var ut = function (e, r) { var n = { length: at }; n[r ? (n.length >>> 0) - 1 : 0] = true; return a(function () { t(e, n, function () { throw new RangeError("should not reach here") }, []); return true }) }; if (!ut(Array.prototype.forEach)) { var ft = Array.prototype.forEach; ne(Array.prototype, "forEach", function forEach(e) { return ce.Call(ft, this.length >= 0 ? this : [], arguments) }, true) } if (!ut(Array.prototype.map)) { var st = Array.prototype.map; ne(Array.prototype, "map", function map(e) { return ce.Call(st, this.length >= 0 ? this : [], arguments) }, true) } if (!ut(Array.prototype.filter)) { var ct = Array.prototype.filter; ne(Array.prototype, "filter", function filter(e) { return ce.Call(ct, this.length >= 0 ? this : [], arguments) }, true) } if (!ut(Array.prototype.some)) { var lt = Array.prototype.some; ne(Array.prototype, "some", function some(e) { return ce.Call(lt, this.length >= 0 ? this : [], arguments) }, true) } if (!ut(Array.prototype.every)) { var pt = Array.prototype.every; ne(Array.prototype, "every", function every(e) { return ce.Call(pt, this.length >= 0 ? this : [], arguments) }, true) } if (!ut(Array.prototype.reduce)) { var vt = Array.prototype.reduce; ne(Array.prototype, "reduce", function reduce(e) { return ce.Call(vt, this.length >= 0 ? this : [], arguments) }, true) } if (!ut(Array.prototype.reduceRight, true)) { var yt = Array.prototype.reduceRight; ne(Array.prototype, "reduceRight", function reduceRight(e) { return ce.Call(yt, this.length >= 0 ? this : [], arguments) }, true) } var ht = Number("0o10") !== 8; var bt = Number("0b10") !== 2; var gt = y(Ue, function (e) { return Number(e + 0 + e) === 0 }); if (ht || bt || gt) { var dt = Number; var mt = /^0b[01]+$/i; var Ot = /^0o[0-7]+$/i; var wt = mt.test.bind(mt); var jt = Ot.test.bind(Ot); var St = function (e) { var t; if (typeof e.valueOf === "function") { t = e.valueOf(); if (re.primitive(t)) { return t } } if (typeof e.toString === "function") { t = e.toString(); if (re.primitive(t)) { return t } } throw new TypeError("No default value") }; var Tt = $e.test.bind($e); var It = Je.test.bind(Je); var Et = function () { var e = function Number(t) { var r; if (arguments.length > 0) { r = re.primitive(t) ? t : St(t, "number") } else { r = 0 } if (typeof r === "string") { r = ce.Call(Be, r); if (wt(r)) { r = parseInt(C(r, 2), 2) } else if (jt(r)) { r = parseInt(C(r, 2), 8) } else if (Tt(r) || It(r)) { r = NaN } } var n = this; var o = a(function () { dt.prototype.valueOf.call(n); return true }); if (n instanceof e && !o) { return new dt(r) } return dt(r) }; return e }(); Ee(dt, Et, {}); b(Et, { NaN: dt.NaN, MAX_VALUE: dt.MAX_VALUE, MIN_VALUE: dt.MIN_VALUE, NEGATIVE_INFINITY: dt.NEGATIVE_INFINITY, POSITIVE_INFINITY: dt.POSITIVE_INFINITY }); Number = Et; m.redefine(S, "Number", Et) } var Pt = Math.pow(2, 53) - 1; b(Number, { MAX_SAFE_INTEGER: Pt, MIN_SAFE_INTEGER: -Pt, EPSILON: 2.220446049250313e-16, parseInt: S.parseInt, parseFloat: S.parseFloat, isFinite: K, isInteger: function isInteger(e) { return K(e) && ce.ToInteger(e) === e }, isSafeInteger: function isSafeInteger(e) { return Number.isInteger(e) && k(e) <= Number.MAX_SAFE_INTEGER }, isNaN: X }); h(Number, "parseInt", S.parseInt, Number.parseInt !== S.parseInt); if ([, 1].find(function () { return true }) === 1) { ne(Array.prototype, "find", et.find) } if ([, 1].findIndex(function () { return true }) !== 0) { ne(Array.prototype, "findIndex", et.findIndex) } var Ct = Function.bind.call(Function.bind, Object.prototype.propertyIsEnumerable); var Mt = function ensureEnumerable(e, t) { if (s && Ct(e, t)) { Object.defineProperty(e, t, { enumerable: false }) } }; var xt = function sliceArgs() { var e = Number(this); var t = arguments.length; var r = t - e; var n = new Array(r < 0 ? 0 : r); for (var o = e; o < t; ++o) { n[o - e] = arguments[o] } return n }; var Nt = function assignTo(e) { return function assignToSource(t, r) { t[r] = e[r]; return t } }; var At = function (e, t) { var r = n(Object(t)); var o; if (ce.IsCallable(Object.getOwnPropertySymbols)) { o = v(Object.getOwnPropertySymbols(Object(t)), Ct(t)) } return p(P(r, o || []), Nt(t), e) }; var Rt = { assign: function (e, t) { var r = ce.ToObject(e, "Cannot convert undefined or null to object"); return p(ce.Call(xt, 1, arguments), At, r) }, is: function is(e, t) { return ce.SameValue(e, t) } }; var _t = Object.assign && Object.preventExtensions && function () { var e = Object.preventExtensions({ 1: 2 }); try { Object.assign(e, "xy") } catch (t) { return e[1] === "y" } }(); if (_t) { ne(Object, "assign", Rt.assign) } b(Object, Rt); if (s) { var kt = { setPrototypeOf: function (e, r) { var n; var o = function (e, t) { if (!ce.TypeIsObject(e)) { throw new TypeError("cannot set prototype on a non-object") } if (!(t === null || ce.TypeIsObject(t))) { throw new TypeError("can only set prototype to an object or null" + t) } }; var i = function (e, r) { o(e, r); t(n, e, r); return e }; try { n = e.getOwnPropertyDescriptor(e.prototype, r).set; t(n, {}, null) } catch (a) { if (e.prototype !== {}[r]) { return } n = function (e) { this[r] = e }; i.polyfill = i(i({}, null), e.prototype) instanceof e } return i }(Object, "__proto__") }; b(Object, kt) } if (Object.setPrototypeOf && Object.getPrototypeOf && Object.getPrototypeOf(Object.setPrototypeOf({}, null)) !== null && Object.getPrototypeOf(Object.create(null)) === null) { (function () { var e = Object.create(null); var t = Object.getPrototypeOf; var r = Object.setPrototypeOf; Object.getPrototypeOf = function (r) { var n = t(r); return n === e ? null : n }; Object.setPrototypeOf = function (t, n) { var o = n === null ? e : n; return r(t, o) }; Object.setPrototypeOf.polyfill = false })() } var Lt = !i(function () { return Object.keys("foo") }); if (!Lt) { var Ft = Object.keys; ne(Object, "keys", function keys(e) { return Ft(ce.ToObject(e)) }); n = Object.keys } var Dt = i(function () { return Object.keys(/a/g) }); if (Dt) { var zt = Object.keys; ne(Object, "keys", function keys(e) { if (re.regex(e)) { var t = []; for (var r in e) { if (z(e, r)) { M(t, r) } } return t } return zt(e) }); n = Object.keys } if (Object.getOwnPropertyNames) { var qt = !i(function () { return Object.getOwnPropertyNames("foo") }); if (!qt) { var Wt = typeof window === "object" ? Object.getOwnPropertyNames(window) : []; var Gt = Object.getOwnPropertyNames; ne(Object, "getOwnPropertyNames", function getOwnPropertyNames(e) { var t = ce.ToObject(e); if (g(t) === "[object Window]") { try { return Gt(t) } catch (r) { return P([], Wt) } } return Gt(t) }) } } if (Object.getOwnPropertyDescriptor) { var Ht = !i(function () { return Object.getOwnPropertyDescriptor("foo", "bar") }); if (!Ht) { var Vt = Object.getOwnPropertyDescriptor; ne(Object, "getOwnPropertyDescriptor", function getOwnPropertyDescriptor(e, t) { return Vt(ce.ToObject(e), t) }) } } if (Object.seal) { var Bt = !i(function () { return Object.seal("foo") }); if (!Bt) { var Ut = Object.seal; ne(Object, "seal", function seal(e) { if (!ce.TypeIsObject(e)) { return e } return Ut(e) }) } } if (Object.isSealed) { var $t = !i(function () { return Object.isSealed("foo") }); if (!$t) { var Jt = Object.isSealed; ne(Object, "isSealed", function isSealed(e) { if (!ce.TypeIsObject(e)) { return true } return Jt(e) }) } } if (Object.freeze) { var Xt = !i(function () { return Object.freeze("foo") }); if (!Xt) { var Kt = Object.freeze; ne(Object, "freeze", function freeze(e) { if (!ce.TypeIsObject(e)) { return e } return Kt(e) }) } } if (Object.isFrozen) { var Zt = !i(function () { return Object.isFrozen("foo") }); if (!Zt) { var Yt = Object.isFrozen; ne(Object, "isFrozen", function isFrozen(e) { if (!ce.TypeIsObject(e)) { return true } return Yt(e) }) } } if (Object.preventExtensions) { var Qt = !i(function () { return Object.preventExtensions("foo") }); if (!Qt) { var er = Object.preventExtensions; ne(Object, "preventExtensions", function preventExtensions(e) { if (!ce.TypeIsObject(e)) { return e } return er(e) }) } } if (Object.isExtensible) { var tr = !i(function () { return Object.isExtensible("foo") }); if (!tr) { var rr = Object.isExtensible; ne(Object, "isExtensible", function isExtensible(e) { if (!ce.TypeIsObject(e)) { return false } return rr(e) }) } } if (Object.getPrototypeOf) { var nr = !i(function () { return Object.getPrototypeOf("foo") }); if (!nr) { var or = Object.getPrototypeOf; ne(Object, "getPrototypeOf", function getPrototypeOf(e) { return or(ce.ToObject(e)) }) } } var ir = s && function () { var e = Object.getOwnPropertyDescriptor(RegExp.prototype, "flags"); return e && ce.IsCallable(e.get) }(); if (s && !ir) { var ar = function flags() { if (!ce.TypeIsObject(this)) { throw new TypeError("Method called on incompatible type: must be an object.") } var e = ""; if (this.global) { e += "g" } if (this.ignoreCase) { e += "i" } if (this.multiline) { e += "m" } if (this.unicode) { e += "u" } if (this.sticky) { e += "y" } return e }; m.getter(RegExp.prototype, "flags", ar) } var ur = s && a(function () { return String(new RegExp(/a/g, "i")) === "/a/i" }); var fr = oe && s && function () { var e = /./; e[$.match] = false; return RegExp(e) === e }(); var sr = a(function () { return RegExp.prototype.toString.call({ source: "abc" }) === "/abc/" }); var cr = sr && a(function () { return RegExp.prototype.toString.call({ source: "a", flags: "b" }) === "/a/b" }); if (!sr || !cr) { var lr = RegExp.prototype.toString; h(RegExp.prototype, "toString", function toString() { var e = ce.RequireObjectCoercible(this); if (re.regex(e)) { return t(lr, e) } var r = ue(e.source); var n = ue(e.flags); return "/" + r + "/" + n }, true); m.preserveToString(RegExp.prototype.toString, lr) } if (s && (!ur || fr)) { var pr = Object.getOwnPropertyDescriptor(RegExp.prototype, "flags").get; var vr = Object.getOwnPropertyDescriptor(RegExp.prototype, "source") || {}; var yr = function () { return this.source }; var hr = ce.IsCallable(vr.get) ? vr.get : yr; var br = RegExp; var gr = function () { return function RegExp(e, t) { var r = ce.IsRegExp(e); var n = this instanceof RegExp; if (!n && r && typeof t === "undefined" && e.constructor === RegExp) { return e } var o = e; var i = t; if (re.regex(e)) { o = ce.Call(hr, e); i = typeof t === "undefined" ? ce.Call(pr, e) : t; return new RegExp(o, i) } else if (r) { o = e.source; i = typeof t === "undefined" ? e.flags : t } return new br(e, t) } }(); Ee(br, gr, { $input: true }); RegExp = gr; m.redefine(S, "RegExp", gr) } if (s) { var dr = { input: "$_", lastMatch: "$&", lastParen: "$+", leftContext: "$`", rightContext: "$'" }; l(n(dr), function (e) { if (e in RegExp && !(dr[e] in RegExp)) { m.getter(RegExp, dr[e], function get() { return RegExp[e] }) } }) } Ce(RegExp); var mr = 1 / Number.EPSILON; var Or = function roundTiesToEven(e) { return e + mr - mr }; var wr = Math.pow(2, -23); var jr = Math.pow(2, 127) * (2 - wr); var Sr = Math.pow(2, -126); var Tr = Math.E; var Ir = Math.LOG2E; var Er = Math.LOG10E; var Pr = Number.prototype.clz; delete Number.prototype.clz; var Cr = { acosh: function acosh(e) { var t = Number(e); if (X(t) || e < 1) { return NaN } if (t === 1) { return 0 } if (t === Infinity) { return t } var r = 1 / (t * t); if (t < 2) { return Y(t - 1 + D(1 - r) * t) } var n = t / 2; return Y(n + D(1 - r) * n - 1) + 1 / Ir }, asinh: function asinh(e) { var t = Number(e); if (t === 0 || !T(t)) { return t } var r = k(t); var n = r * r; var o = Z(t); if (r < 1) { return o * Y(r + n / (D(n + 1) + 1)) } return o * (Y(r / 2 + D(1 + 1 / n) * r / 2 - 1) + 1 / Ir) }, atanh: function atanh(e) { var t = Number(e); if (t === 0) { return t } if (t === -1) { return -Infinity } if (t === 1) { return Infinity } if (X(t) || t < -1 || t > 1) { return NaN } var r = k(t); return Z(t) * Y(2 * r / (1 - r)) / 2 }, cbrt: function cbrt(e) { var t = Number(e); if (t === 0) { return t } var r = t < 0; var n; if (r) { t = -t } if (t === Infinity) { n = Infinity } else { n = L(F(t) / 3); n = (t / (n * n) + 2 * n) / 3 } return r ? -n : n }, clz32: function clz32(e) { var t = Number(e); var r = ce.ToUint32(t); if (r === 0) { return 32 } return Pr ? ce.Call(Pr, r) : 31 - _(F(r + .5) * Ir) }, cosh: function cosh(e) { var t = Number(e); if (t === 0) { return 1 } if (X(t)) { return NaN } if (!T(t)) { return Infinity } var r = L(k(t) - 1); return (r + 1 / (r * Tr * Tr)) * (Tr / 2) }, expm1: function expm1(e) { var t = Number(e); if (t === -Infinity) { return -1 } if (!T(t) || t === 0) { return t } if (k(t) > .5) { return L(t) - 1 } var r = t; var n = 0; var o = 1; while (n + r !== n) { n += r; o += 1; r *= t / o } return n }, hypot: function hypot(e, t) { var r = 0; var n = 0; for (var o = 0; o < arguments.length; ++o) { var i = k(Number(arguments[o])); if (n < i) { r *= n / i * (n / i); r += 1; n = i } else { r += i > 0 ? i / n * (i / n) : i } } return n === Infinity ? Infinity : n * D(r) }, log2: function log2(e) { return F(e) * Ir }, log10: function log10(e) { return F(e) * Er }, log1p: Y, sign: Z, sinh: function sinh(e) { var t = Number(e); if (!T(t) || t === 0) { return t } var r = k(t); if (r < 1) { var n = Math.expm1(r); return Z(t) * n * (1 + 1 / (n + 1)) / 2 } var o = L(r - 1); return Z(t) * (o - 1 / (o * Tr * Tr)) * (Tr / 2) }, tanh: function tanh(e) { var t = Number(e); if (X(t) || t === 0) { return t } if (t >= 20) { return 1 } if (t <= -20) { return -1 } return (Math.expm1(t) - Math.expm1(-t)) / (L(t) + L(-t)) }, trunc: function trunc(e) { var t = Number(e); return t < 0 ? -_(-t) : _(t) }, imul: function imul(e, t) { var r = ce.ToUint32(e); var n = ce.ToUint32(t); var o = r >>> 16 & 65535; var i = r & 65535; var a = n >>> 16 & 65535; var u = n & 65535; return i * u + (o * u + i * a << 16 >>> 0) | 0 }, fround: function fround(e) { var t = Number(e); if (t === 0 || t === Infinity || t === -Infinity || X(t)) { return t } var r = Z(t); var n = k(t); if (n < Sr) { return r * Or(n / Sr / wr) * Sr * wr } var o = (1 + wr / Number.EPSILON) * n; var i = o - (o - n); if (i > jr || X(i)) { return r * Infinity } return r * i } }; var Mr = function withinULPDistance(e, t, r) { return k(1 - e / t) / Number.EPSILON < (r || 8) }; b(Math, Cr); h(Math, "sinh", Cr.sinh, Math.sinh(710) === Infinity); h(Math, "cosh", Cr.cosh, Math.cosh(710) === Infinity); h(Math, "log1p", Cr.log1p, Math.log1p(-1e-17) !== -1e-17); h(Math, "asinh", Cr.asinh, Math.asinh(-1e7) !== -Math.asinh(1e7)); h(Math, "asinh", Cr.asinh, Math.asinh(1e300) === Infinity); h(Math, "atanh", Cr.atanh, Math.atanh(1e-300) === 0); h(Math, "tanh", Cr.tanh, Math.tanh(-2e-17) !== -2e-17); + h(Math, "acosh", Cr.acosh, Math.acosh(Number.MAX_VALUE) === Infinity); h(Math, "acosh", Cr.acosh, !Mr(Math.acosh(1 + Number.EPSILON), Math.sqrt(2 * Number.EPSILON))); h(Math, "cbrt", Cr.cbrt, !Mr(Math.cbrt(1e-300), 1e-100)); h(Math, "sinh", Cr.sinh, Math.sinh(-2e-17) !== -2e-17); var xr = Math.expm1(10); h(Math, "expm1", Cr.expm1, xr > 22025.465794806718 || xr < 22025.465794806718); var Nr = Math.round; var Ar = Math.round(.5 - Number.EPSILON / 4) === 0 && Math.round(-.5 + Number.EPSILON / 3.99) === 1; var Rr = mr + 1; var _r = 2 * mr - 1; var kr = [Rr, _r].every(function (e) { return Math.round(e) === e }); h(Math, "round", function round(e) { var t = _(e); var r = t === -1 ? -0 : t + 1; return e - t < .5 ? t : r }, !Ar || !kr); m.preserveToString(Math.round, Nr); var Lr = Math.imul; if (Math.imul(4294967295, 5) !== -5) { Math.imul = Cr.imul; m.preserveToString(Math.imul, Lr) } if (Math.imul.length !== 2) { ne(Math, "imul", function imul(e, t) { return ce.Call(Lr, Math, arguments) }) } var Fr = function () { var e = S.setTimeout; if (typeof e !== "function" && typeof e !== "object") { return } ce.IsPromise = function (e) { if (!ce.TypeIsObject(e)) { return false } if (typeof e._promise === "undefined") { return false } return true }; var r = function (e) { if (!ce.IsConstructor(e)) { throw new TypeError("Bad promise constructor") } var t = this; var r = function (e, r) { if (t.resolve !== void 0 || t.reject !== void 0) { throw new TypeError("Bad Promise implementation!") } t.resolve = e; t.reject = r }; t.resolve = void 0; t.reject = void 0; t.promise = new e(r); if (!(ce.IsCallable(t.resolve) && ce.IsCallable(t.reject))) { throw new TypeError("Bad promise constructor") } }; var n; if (typeof window !== "undefined" && ce.IsCallable(window.postMessage)) { n = function () { var e = []; var t = "zero-timeout-message"; var r = function (r) { M(e, r); window.postMessage(t, "*") }; var n = function (r) { if (r.source === window && r.data === t) { r.stopPropagation(); if (e.length === 0) { return } var n = N(e); n() } }; window.addEventListener("message", n, true); return r } } var o = function () { var e = S.Promise; var t = e && e.resolve && e.resolve(); return t && function (e) { return t.then(e) } }; var i = ce.IsCallable(S.setImmediate) ? S.setImmediate : typeof process === "object" && process.nextTick ? process.nextTick : o() || (ce.IsCallable(n) ? n() : function (t) { e(t, 0) }); var a = function (e) { return e }; var u = function (e) { throw e }; var f = 0; var s = 1; var c = 2; var l = 0; var p = 1; var v = 2; var y = {}; var h = function (e, t, r) { i(function () { g(e, t, r) }) }; var g = function (e, t, r) { var n, o; if (t === y) { return e(r) } try { n = e(r); o = t.resolve } catch (i) { n = i; o = t.reject } o(n) }; var d = function (e, t) { var r = e._promise; var n = r.reactionLength; if (n > 0) { h(r.fulfillReactionHandler0, r.reactionCapability0, t); r.fulfillReactionHandler0 = void 0; r.rejectReactions0 = void 0; r.reactionCapability0 = void 0; if (n > 1) { for (var o = 1, i = 0; o < n; o++, i += 3) { h(r[i + l], r[i + v], t); e[i + l] = void 0; e[i + p] = void 0; e[i + v] = void 0 } } } r.result = t; r.state = s; r.reactionLength = 0 }; var m = function (e, t) { var r = e._promise; var n = r.reactionLength; if (n > 0) { h(r.rejectReactionHandler0, r.reactionCapability0, t); r.fulfillReactionHandler0 = void 0; r.rejectReactions0 = void 0; r.reactionCapability0 = void 0; if (n > 1) { for (var o = 1, i = 0; o < n; o++, i += 3) { h(r[i + p], r[i + v], t); e[i + l] = void 0; e[i + p] = void 0; e[i + v] = void 0 } } } r.result = t; r.state = c; r.reactionLength = 0 }; var O = function (e) { var t = false; var r = function (r) { var n; if (t) { return } t = true; if (r === e) { return m(e, new TypeError("Self resolution")) } if (!ce.TypeIsObject(r)) { return d(e, r) } try { n = r.then } catch (o) { return m(e, o) } if (!ce.IsCallable(n)) { return d(e, r) } i(function () { j(e, r, n) }) }; var n = function (r) { if (t) { return } t = true; return m(e, r) }; return { resolve: r, reject: n } }; var w = function (e, r, n, o) { if (e === I) { t(e, r, n, o, y) } else { t(e, r, n, o) } }; var j = function (e, t, r) { var n = O(e); var o = n.resolve; var i = n.reject; try { w(r, t, o, i) } catch (a) { i(a) } }; var T, I; var E = function () { var e = function Promise(t) { if (!(this instanceof e)) { throw new TypeError('Constructor Promise requires "new"') } if (this && this._promise) { throw new TypeError("Bad construction") } if (!ce.IsCallable(t)) { throw new TypeError("not a valid resolver") } var r = Ae(this, e, T, { _promise: { result: void 0, state: f, reactionLength: 0, fulfillReactionHandler0: void 0, rejectReactionHandler0: void 0, reactionCapability0: void 0 } }); var n = O(r); var o = n.reject; try { t(n.resolve, o) } catch (i) { o(i) } return r }; return e }(); T = E.prototype; var P = function (e, t, r, n) { var o = false; return function (i) { if (o) { return } o = true; t[e] = i; if (--n.count === 0) { var a = r.resolve; a(t) } } }; var C = function (e, t, r) { var n = e.iterator; var o = []; var i = { count: 1 }; var a, u; var f = 0; while (true) { try { a = ce.IteratorStep(n); if (a === false) { e.done = true; break } u = a.value } catch (s) { e.done = true; throw s } o[f] = void 0; var c = t.resolve(u); var l = P(f, o, r, i); i.count += 1; w(c.then, c, l, r.reject); f += 1 } if (--i.count === 0) { var p = r.resolve; p(o) } return r.promise }; var x = function (e, t, r) { var n = e.iterator; var o, i, a; while (true) { try { o = ce.IteratorStep(n); if (o === false) { e.done = true; break } i = o.value } catch (u) { e.done = true; throw u } a = t.resolve(i); w(a.then, a, r.resolve, r.reject) } return r.promise }; b(E, { all: function all(e) { var t = this; if (!ce.TypeIsObject(t)) { throw new TypeError("Promise is not object") } var n = new r(t); var o, i; try { o = ce.GetIterator(e); i = { iterator: o, done: false }; return C(i, t, n) } catch (a) { var u = a; if (i && !i.done) { try { ce.IteratorClose(o, true) } catch (f) { u = f } } var s = n.reject; s(u); return n.promise } }, race: function race(e) { var t = this; if (!ce.TypeIsObject(t)) { throw new TypeError("Promise is not object") } var n = new r(t); var o, i; try { o = ce.GetIterator(e); i = { iterator: o, done: false }; return x(i, t, n) } catch (a) { var u = a; if (i && !i.done) { try { ce.IteratorClose(o, true) } catch (f) { u = f } } var s = n.reject; s(u); return n.promise } }, reject: function reject(e) { var t = this; if (!ce.TypeIsObject(t)) { throw new TypeError("Bad promise constructor") } var n = new r(t); var o = n.reject; o(e); return n.promise }, resolve: function resolve(e) { var t = this; if (!ce.TypeIsObject(t)) { throw new TypeError("Bad promise constructor") } if (ce.IsPromise(e)) { var n = e.constructor; if (n === t) { return e } } var o = new r(t); var i = o.resolve; i(e); return o.promise } }); b(T, { "catch": function (e) { return this.then(null, e) }, then: function then(e, t) { var n = this; if (!ce.IsPromise(n)) { throw new TypeError("not a promise") } var o = ce.SpeciesConstructor(n, E); var i; var b = arguments.length > 2 && arguments[2] === y; if (b && o === E) { i = y } else { i = new r(o) } var g = ce.IsCallable(e) ? e : a; var d = ce.IsCallable(t) ? t : u; var m = n._promise; var O; if (m.state === f) { if (m.reactionLength === 0) { m.fulfillReactionHandler0 = g; m.rejectReactionHandler0 = d; m.reactionCapability0 = i } else { var w = 3 * (m.reactionLength - 1); m[w + l] = g; m[w + p] = d; m[w + v] = i } m.reactionLength += 1 } else if (m.state === s) { O = m.result; h(g, i, O) } else if (m.state === c) { O = m.result; h(d, i, O) } else { throw new TypeError("unexpected Promise state") } return i.promise } }); y = new r(E); I = T.then; return E }(); if (S.Promise) { delete S.Promise.accept; delete S.Promise.defer; delete S.Promise.prototype.chain } if (typeof Fr === "function") { b(S, { Promise: Fr }); var Dr = w(S.Promise, function (e) { return e.resolve(42).then(function () { }) instanceof e }); var zr = !i(function () { return S.Promise.reject(42).then(null, 5).then(null, W) }); var qr = i(function () { return S.Promise.call(3, W) }); var Wr = function (e) { var t = e.resolve(5); t.constructor = {}; var r = e.resolve(t); try { r.then(null, W).then(null, W) } catch (n) { return true } return t === r }(S.Promise); var Gr = s && function () { var e = 0; var t = Object.defineProperty({}, "then", { get: function () { e += 1 } }); Promise.resolve(t); return e === 1 }(); var Hr = function BadResolverPromise(e) { var t = new Promise(e); e(3, function () { }); this.then = t.then; this.constructor = BadResolverPromise }; Hr.prototype = Promise.prototype; Hr.all = Promise.all; var Vr = a(function () { return !!Hr.all([1, 2]) }); if (!Dr || !zr || !qr || Wr || !Gr || Vr) { Promise = Fr; ne(S, "Promise", Fr) } if (Promise.all.length !== 1) { var Br = Promise.all; ne(Promise, "all", function all(e) { return ce.Call(Br, this, arguments) }) } if (Promise.race.length !== 1) { var Ur = Promise.race; ne(Promise, "race", function race(e) { return ce.Call(Ur, this, arguments) }) } if (Promise.resolve.length !== 1) { var $r = Promise.resolve; ne(Promise, "resolve", function resolve(e) { return ce.Call($r, this, arguments) }) } if (Promise.reject.length !== 1) { var Jr = Promise.reject; ne(Promise, "reject", function reject(e) { return ce.Call(Jr, this, arguments) }) } Mt(Promise, "all"); Mt(Promise, "race"); Mt(Promise, "resolve"); Mt(Promise, "reject"); Ce(Promise) } var Xr = function (e) { var t = n(p(e, function (e, t) { e[t] = true; return e }, {})); return e.join(":") === t.join(":") }; var Kr = Xr(["z", "a", "bb"]); var Zr = Xr(["z", 1, "a", "3", 2]); if (s) { var Yr = function fastkey(e, t) { if (!t && !Kr) { return null } if (se(e)) { return "^" + ce.ToString(e) } else if (typeof e === "string") { return "$" + e } else if (typeof e === "number") { if (!Zr) { return "n" + e } return e } else if (typeof e === "boolean") { return "b" + e } return null }; var Qr = function emptyObject() { return Object.create ? Object.create(null) : {} }; var en = function addIterableToMap(e, n, o) { if (r(o) || re.string(o)) { l(o, function (e) { if (!ce.TypeIsObject(e)) { throw new TypeError("Iterator value " + e + " is not an entry object") } n.set(e[0], e[1]) }) } else if (o instanceof e) { t(e.prototype.forEach, o, function (e, t) { n.set(t, e) }) } else { var i, a; if (!se(o)) { a = n.set; if (!ce.IsCallable(a)) { throw new TypeError("bad map") } i = ce.GetIterator(o) } if (typeof i !== "undefined") { while (true) { var u = ce.IteratorStep(i); if (u === false) { break } var f = u.value; try { if (!ce.TypeIsObject(f)) { throw new TypeError("Iterator value " + f + " is not an entry object") } t(a, n, f[0], f[1]) } catch (s) { ce.IteratorClose(i, true); throw s } } } } }; var tn = function addIterableToSet(e, n, o) { if (r(o) || re.string(o)) { l(o, function (e) { n.add(e) }) } else if (o instanceof e) { t(e.prototype.forEach, o, function (e) { n.add(e) }) } else { var i, a; if (!se(o)) { a = n.add; if (!ce.IsCallable(a)) { throw new TypeError("bad set") } i = ce.GetIterator(o) } if (typeof i !== "undefined") { while (true) { var u = ce.IteratorStep(i); if (u === false) { break } var f = u.value; try { t(a, n, f) } catch (s) { ce.IteratorClose(i, true); throw s } } } } }; var rn = { Map: function () { var e = {}; var r = function MapEntry(e, t) { this.key = e; this.value = t; this.next = null; this.prev = null }; r.prototype.isRemoved = function isRemoved() { return this.key === e }; var n = function isMap(e) { return !!e._es6map }; var o = function requireMapSlot(e, t) { if (!ce.TypeIsObject(e) || !n(e)) { throw new TypeError("Method Map.prototype." + t + " called on incompatible receiver " + ce.ToString(e)) } }; var i = function MapIterator(e, t) { o(e, "[[MapIterator]]"); this.head = e._head; this.i = this.head; this.kind = t }; i.prototype = { isMapIterator: true, next: function next() { if (!this.isMapIterator) { throw new TypeError("Not a MapIterator") } var e = this.i; var t = this.kind; var r = this.head; if (typeof this.i === "undefined") { return Ke() } while (e.isRemoved() && e !== r) { e = e.prev } var n; while (e.next !== r) { e = e.next; if (!e.isRemoved()) { if (t === "key") { n = e.key } else if (t === "value") { n = e.value } else { n = [e.key, e.value] } this.i = e; return Ke(n) } } this.i = void 0; return Ke() } }; Me(i.prototype); var a; var u = function Map() { if (!(this instanceof Map)) { throw new TypeError('Constructor Map requires "new"') } if (this && this._es6map) { throw new TypeError("Bad construction") } var e = Ae(this, Map, a, { _es6map: true, _head: null, _map: G ? new G : null, _size: 0, _storage: Qr() }); var t = new r(null, null); t.next = t.prev = t; e._head = t; if (arguments.length > 0) { en(Map, e, arguments[0]) } return e }; a = u.prototype; m.getter(a, "size", function () { if (typeof this._size === "undefined") { throw new TypeError("size method called on incompatible Map") } return this._size }); b(a, { get: function get(e) { o(this, "get"); var t; var r = Yr(e, true); if (r !== null) { t = this._storage[r]; if (t) { return t.value } else { return } } if (this._map) { t = V.call(this._map, e); if (t) { return t.value } else { return } } var n = this._head; var i = n; while ((i = i.next) !== n) { if (ce.SameValueZero(i.key, e)) { return i.value } } }, has: function has(e) { o(this, "has"); var t = Yr(e, true); if (t !== null) { return typeof this._storage[t] !== "undefined" } if (this._map) { return B.call(this._map, e) } var r = this._head; var n = r; while ((n = n.next) !== r) { if (ce.SameValueZero(n.key, e)) { return true } } return false }, set: function set(e, t) { o(this, "set"); var n = this._head; var i = n; var a; var u = Yr(e, true); if (u !== null) { if (typeof this._storage[u] !== "undefined") { this._storage[u].value = t; return this } else { a = this._storage[u] = new r(e, t); i = n.prev } } else if (this._map) { if (B.call(this._map, e)) { V.call(this._map, e).value = t } else { a = new r(e, t); U.call(this._map, e, a); i = n.prev } } while ((i = i.next) !== n) { if (ce.SameValueZero(i.key, e)) { i.value = t; return this } } a = a || new r(e, t); if (ce.SameValue(-0, e)) { a.key = +0 } a.next = this._head; a.prev = this._head.prev; a.prev.next = a; a.next.prev = a; this._size += 1; return this }, "delete": function (t) { o(this, "delete"); var r = this._head; var n = r; var i = Yr(t, true); if (i !== null) { if (typeof this._storage[i] === "undefined") { return false } n = this._storage[i].prev; delete this._storage[i] } else if (this._map) { if (!B.call(this._map, t)) { return false } n = V.call(this._map, t).prev; H.call(this._map, t) } while ((n = n.next) !== r) { if (ce.SameValueZero(n.key, t)) { n.key = e; n.value = e; n.prev.next = n.next; n.next.prev = n.prev; this._size -= 1; return true } } return false }, clear: function clear() { o(this, "clear"); this._map = G ? new G : null; this._size = 0; this._storage = Qr(); var t = this._head; var r = t; var n = r.next; while ((r = n) !== t) { r.key = e; r.value = e; n = r.next; r.next = r.prev = t } t.next = t.prev = t }, keys: function keys() { o(this, "keys"); return new i(this, "key") }, values: function values() { o(this, "values"); return new i(this, "value") }, entries: function entries() { o(this, "entries"); return new i(this, "key+value") }, forEach: function forEach(e) { o(this, "forEach"); var r = arguments.length > 1 ? arguments[1] : null; var n = this.entries(); for (var i = n.next(); !i.done; i = n.next()) { if (r) { t(e, r, i.value[1], i.value[0], this) } else { e(i.value[1], i.value[0], this) } } } }); Me(a, a.entries); return u }(), Set: function () { var e = function isSet(e) { return e._es6set && typeof e._storage !== "undefined" }; var r = function requireSetSlot(t, r) { if (!ce.TypeIsObject(t) || !e(t)) { throw new TypeError("Set.prototype." + r + " called on incompatible receiver " + ce.ToString(t)) } }; var o; var i = function Set() { if (!(this instanceof Set)) { throw new TypeError('Constructor Set requires "new"') } if (this && this._es6set) { throw new TypeError("Bad construction") } var e = Ae(this, Set, o, { _es6set: true, "[[SetData]]": null, _storage: Qr() }); if (!e._es6set) { throw new TypeError("bad set") } if (arguments.length > 0) { tn(Set, e, arguments[0]) } return e }; o = i.prototype; var a = function (e) { var t = e; if (t === "^null") { return null } else if (t === "^undefined") { return void 0 } else { var r = t.charAt(0); if (r === "$") { return C(t, 1) } else if (r === "n") { return +C(t, 1) } else if (r === "b") { return t === "btrue" } } return +t }; var u = function ensureMap(e) { if (!e["[[SetData]]"]) { var t = new rn.Map; e["[[SetData]]"] = t; l(n(e._storage), function (e) { var r = a(e); t.set(r, r) }); e["[[SetData]]"] = t } e._storage = null }; m.getter(i.prototype, "size", function () { r(this, "size"); if (this._storage) { return n(this._storage).length } u(this); return this["[[SetData]]"].size }); b(i.prototype, { has: function has(e) { r(this, "has"); var t; if (this._storage && (t = Yr(e)) !== null) { return !!this._storage[t] } u(this); return this["[[SetData]]"].has(e) }, add: function add(e) { r(this, "add"); var t; if (this._storage && (t = Yr(e)) !== null) { this._storage[t] = true; return this } u(this); this["[[SetData]]"].set(e, e); return this }, "delete": function (e) { r(this, "delete"); var t; if (this._storage && (t = Yr(e)) !== null) { var n = z(this._storage, t); return delete this._storage[t] && n } u(this); return this["[[SetData]]"]["delete"](e) }, clear: function clear() { r(this, "clear"); if (this._storage) { this._storage = Qr() } if (this["[[SetData]]"]) { this["[[SetData]]"].clear() } }, values: function values() { r(this, "values"); u(this); return new f(this["[[SetData]]"].values()) }, entries: function entries() { r(this, "entries"); u(this); return new f(this["[[SetData]]"].entries()) }, forEach: function forEach(e) { r(this, "forEach"); var n = arguments.length > 1 ? arguments[1] : null; var o = this; u(o); this["[[SetData]]"].forEach(function (r, i) { if (n) { t(e, n, i, i, o) } else { e(i, i, o) } }) } }); h(i.prototype, "keys", i.prototype.values, true); Me(i.prototype, i.prototype.values); var f = function SetIterator(e) { this.it = e }; f.prototype = { isSetIterator: true, next: function next() { if (!this.isSetIterator) { throw new TypeError("Not a SetIterator") } return this.it.next() } }; Me(f.prototype); return i }() }; var nn = S.Set && !Set.prototype["delete"] && Set.prototype.remove && Set.prototype.items && Set.prototype.map && Array.isArray((new Set).keys); if (nn) { S.Set = rn.Set } if (S.Map || S.Set) { var on = a(function () { return new Map([[1, 2]]).get(1) === 2 }); if (!on) { S.Map = function Map() { if (!(this instanceof Map)) { throw new TypeError('Constructor Map requires "new"') } var e = new G; if (arguments.length > 0) { en(Map, e, arguments[0]) } delete e.constructor; Object.setPrototypeOf(e, S.Map.prototype); return e }; S.Map.prototype = O(G.prototype); h(S.Map.prototype, "constructor", S.Map, true); m.preserveToString(S.Map, G) } var an = new Map; var un = function () { var e = new Map([[1, 0], [2, 0], [3, 0], [4, 0]]); e.set(-0, e); return e.get(0) === e && e.get(-0) === e && e.has(0) && e.has(-0) }(); var fn = an.set(1, 2) === an; if (!un || !fn) { ne(Map.prototype, "set", function set(e, r) { t(U, this, e === 0 ? 0 : e, r); return this }) } if (!un) { b(Map.prototype, { get: function get(e) { return t(V, this, e === 0 ? 0 : e) }, has: function has(e) { return t(B, this, e === 0 ? 0 : e) } }, true); m.preserveToString(Map.prototype.get, V); m.preserveToString(Map.prototype.has, B) } var sn = new Set; var cn = Set.prototype["delete"] && Set.prototype.add && Set.prototype.has && function (e) { e["delete"](0); e.add(-0); return !e.has(0) }(sn); var ln = sn.add(1) === sn; if (!cn || !ln) { var pn = Set.prototype.add; Set.prototype.add = function add(e) { t(pn, this, e === 0 ? 0 : e); return this }; m.preserveToString(Set.prototype.add, pn) } if (!cn) { var vn = Set.prototype.has; Set.prototype.has = function has(e) { return t(vn, this, e === 0 ? 0 : e) }; m.preserveToString(Set.prototype.has, vn); var yn = Set.prototype["delete"]; Set.prototype["delete"] = function SetDelete(e) { return t(yn, this, e === 0 ? 0 : e) }; m.preserveToString(Set.prototype["delete"], yn) } var hn = w(S.Map, function (e) { var t = new e([]); t.set(42, 42); return t instanceof e }); var bn = Object.setPrototypeOf && !hn; var gn = function () { try { return !(S.Map() instanceof S.Map) } catch (e) { return e instanceof TypeError } }(); if (S.Map.length !== 0 || bn || !gn) { S.Map = function Map() { if (!(this instanceof Map)) { throw new TypeError('Constructor Map requires "new"') } var e = new G; if (arguments.length > 0) { en(Map, e, arguments[0]) } delete e.constructor; Object.setPrototypeOf(e, Map.prototype); return e }; S.Map.prototype = G.prototype; h(S.Map.prototype, "constructor", S.Map, true); m.preserveToString(S.Map, G) } var dn = w(S.Set, function (e) { var t = new e([]); t.add(42, 42); return t instanceof e }); var mn = Object.setPrototypeOf && !dn; var On = function () { try { return !(S.Set() instanceof S.Set) } catch (e) { return e instanceof TypeError } }(); if (S.Set.length !== 0 || mn || !On) { var wn = S.Set; S.Set = function Set() { if (!(this instanceof Set)) { throw new TypeError('Constructor Set requires "new"') } var e = new wn; if (arguments.length > 0) { tn(Set, e, arguments[0]) } delete e.constructor; Object.setPrototypeOf(e, Set.prototype); return e }; S.Set.prototype = wn.prototype; h(S.Set.prototype, "constructor", S.Set, true); m.preserveToString(S.Set, wn) } var jn = new S.Map; var Sn = !a(function () { return jn.keys().next().done }); if (typeof S.Map.prototype.clear !== "function" || (new S.Set).size !== 0 || jn.size !== 0 || typeof S.Map.prototype.keys !== "function" || typeof S.Set.prototype.keys !== "function" || typeof S.Map.prototype.forEach !== "function" || typeof S.Set.prototype.forEach !== "function" || u(S.Map) || u(S.Set) || typeof jn.keys().next !== "function" || Sn || !hn) { b(S, { Map: rn.Map, Set: rn.Set }, true) } if (S.Set.prototype.keys !== S.Set.prototype.values) { h(S.Set.prototype, "keys", S.Set.prototype.values, true) } Me(Object.getPrototypeOf((new S.Map).keys())); Me(Object.getPrototypeOf((new S.Set).keys())); if (c && S.Set.prototype.has.name !== "has") { var Tn = S.Set.prototype.has; ne(S.Set.prototype, "has", function has(e) { return t(Tn, this, e) }) } } b(S, rn); Ce(S.Map); Ce(S.Set) } var In = function throwUnlessTargetIsObject(e) { if (!ce.TypeIsObject(e)) { throw new TypeError("target must be an object") } }; var En = { apply: function apply() { return ce.Call(ce.Call, null, arguments) }, construct: function construct(e, t) { if (!ce.IsConstructor(e)) { throw new TypeError("First argument must be a constructor.") } var r = arguments.length > 2 ? arguments[2] : e; if (!ce.IsConstructor(r)) { throw new TypeError("new.target must be a constructor.") } return ce.Construct(e, t, r, "internal") }, deleteProperty: function deleteProperty(e, t) { In(e); if (s) { var r = Object.getOwnPropertyDescriptor(e, t); if (r && !r.configurable) { return false } } return delete e[t] }, has: function has(e, t) { In(e); return t in e } }; if (Object.getOwnPropertyNames) { Object.assign(En, { ownKeys: function ownKeys(e) { In(e); var t = Object.getOwnPropertyNames(e); if (ce.IsCallable(Object.getOwnPropertySymbols)) { x(t, Object.getOwnPropertySymbols(e)) } return t } }) } var Pn = function ConvertExceptionToBoolean(e) { return !i(e) }; if (Object.preventExtensions) { Object.assign(En, { isExtensible: function isExtensible(e) { In(e); return Object.isExtensible(e) }, preventExtensions: function preventExtensions(e) { In(e); return Pn(function () { return Object.preventExtensions(e) }) } }) } if (s) { var Cn = function get(e, t, r) { var n = Object.getOwnPropertyDescriptor(e, t); if (!n) { var o = Object.getPrototypeOf(e); if (o === null) { return void 0 } return Cn(o, t, r) } if ("value" in n) { return n.value } if (n.get) { return ce.Call(n.get, r) } return void 0 }; var Mn = function set(e, r, n, o) { var i = Object.getOwnPropertyDescriptor(e, r); if (!i) { var a = Object.getPrototypeOf(e); if (a !== null) { return Mn(a, r, n, o) } i = { value: void 0, writable: true, enumerable: true, configurable: true } } if ("value" in i) { if (!i.writable) { return false } if (!ce.TypeIsObject(o)) { return false } var u = Object.getOwnPropertyDescriptor(o, r); if (u) { return ae.defineProperty(o, r, { value: n }) } else { return ae.defineProperty(o, r, { value: n, writable: true, enumerable: true, configurable: true }) } } if (i.set) { t(i.set, o, n); return true } return false }; Object.assign(En, { defineProperty: function defineProperty(e, t, r) { In(e); return Pn(function () { return Object.defineProperty(e, t, r) }) }, getOwnPropertyDescriptor: function getOwnPropertyDescriptor(e, t) { In(e); return Object.getOwnPropertyDescriptor(e, t) }, get: function get(e, t) { In(e); var r = arguments.length > 2 ? arguments[2] : e; return Cn(e, t, r) }, set: function set(e, t, r) { In(e); var n = arguments.length > 3 ? arguments[3] : e; return Mn(e, t, r, n) } }) } if (Object.getPrototypeOf) { var xn = Object.getPrototypeOf; En.getPrototypeOf = function getPrototypeOf(e) { In(e); return xn(e) } } if (Object.setPrototypeOf && En.getPrototypeOf) { var Nn = function (e, t) { var r = t; while (r) { if (e === r) { return true } r = En.getPrototypeOf(r) } return false }; Object.assign(En, { setPrototypeOf: function setPrototypeOf(e, t) { In(e); if (t !== null && !ce.TypeIsObject(t)) { throw new TypeError("proto must be an object or null") } if (t === ae.getPrototypeOf(e)) { return true } if (ae.isExtensible && !ae.isExtensible(e)) { return false } if (Nn(e, t)) { return false } Object.setPrototypeOf(e, t); return true } }) } var An = function (e, t) { if (!ce.IsCallable(S.Reflect[e])) { h(S.Reflect, e, t) } else { var r = a(function () { S.Reflect[e](1); S.Reflect[e](NaN); S.Reflect[e](true); return true }); if (r) { ne(S.Reflect, e, t) } } }; Object.keys(En).forEach(function (e) { An(e, En[e]) }); var Rn = S.Reflect.getPrototypeOf; if (c && Rn && Rn.name !== "getPrototypeOf") { ne(S.Reflect, "getPrototypeOf", function getPrototypeOf(e) { return t(Rn, S.Reflect, e) }) } if (S.Reflect.setPrototypeOf) { if (a(function () { S.Reflect.setPrototypeOf(1, {}); return true })) { ne(S.Reflect, "setPrototypeOf", En.setPrototypeOf) } } if (S.Reflect.defineProperty) { if (!a(function () { var e = !S.Reflect.defineProperty(1, "test", { value: 1 }); var t = typeof Object.preventExtensions !== "function" || !S.Reflect.defineProperty(Object.preventExtensions({}), "test", {}); return e && t })) { ne(S.Reflect, "defineProperty", En.defineProperty) } } if (S.Reflect.construct) { if (!a(function () { var e = function F() { }; return S.Reflect.construct(function () { }, [], e) instanceof e })) { ne(S.Reflect, "construct", En.construct) } } if (String(new Date(NaN)) !== "Invalid Date") { var _n = Date.prototype.toString; var kn = function toString() { var e = +this; if (e !== e) { return "Invalid Date" } return ce.Call(_n, this) }; ne(Date.prototype, "toString", kn) } var Ln = { anchor: function anchor(e) { return ce.CreateHTML(this, "a", "name", e) }, big: function big() { return ce.CreateHTML(this, "big", "", "") }, blink: function blink() { return ce.CreateHTML(this, "blink", "", "") }, bold: function bold() { return ce.CreateHTML(this, "b", "", "") }, fixed: function fixed() { return ce.CreateHTML(this, "tt", "", "") }, fontcolor: function fontcolor(e) { return ce.CreateHTML(this, "font", "color", e) }, fontsize: function fontsize(e) { return ce.CreateHTML(this, "font", "size", e) }, italics: function italics() { return ce.CreateHTML(this, "i", "", "") }, link: function link(e) { return ce.CreateHTML(this, "a", "href", e) }, small: function small() { return ce.CreateHTML(this, "small", "", "") }, strike: function strike() { return ce.CreateHTML(this, "strike", "", "") }, sub: function sub() { return ce.CreateHTML(this, "sub", "", "") }, sup: function sub() { return ce.CreateHTML(this, "sup", "", "") } }; l(Object.keys(Ln), function (e) { var r = String.prototype[e]; var n = false; if (ce.IsCallable(r)) { var o = t(r, "", ' " '); var i = P([], o.match(/"/g)).length; n = o !== o.toLowerCase() || i > 2 } else { n = true } if (n) { ne(String.prototype, e, Ln[e]) } }); var Fn = function () { if (!oe) { return false } var e = typeof JSON === "object" && typeof JSON.stringify === "function" ? JSON.stringify : null; if (!e) { return false } if (typeof e($()) !== "undefined") { return true } if (e([$()]) !== "[null]") { return true } var t = { a: $() }; t[$()] = true; if (e(t) !== "{}") { return true } return false }(); var Dn = a(function () { if (!oe) { return true } return JSON.stringify(Object($())) === "{}" && JSON.stringify([Object($())]) === "[{}]" }); if (Fn || !Dn) { var zn = JSON.stringify; ne(JSON, "stringify", function stringify(e) { if (typeof e === "symbol") { return } var n; if (arguments.length > 1) { n = arguments[1] } var o = [e]; if (!r(n)) { var i = ce.IsCallable(n) ? n : null; var a = function (e, r) { var n = i ? t(i, this, e, r) : r; if (typeof n !== "symbol") { if (re.symbol(n)) { return Nt({})(n) } else { return n } } }; o.push(a) } else { o.push(n) } if (arguments.length > 2) { o.push(arguments[2]) } return zn.apply(this, o) }) } return S +}); +//# sourceMappingURL=es6-shim.map + +/*! jQuery v1.8.3 jquery.com | jquery.org/license */ +(function (e, t) { function _(e) { var t = M[e] = {}; return v.each(e.split(y), function (e, n) { t[n] = !0 }), t } function H(e, n, r) { if (r === t && e.nodeType === 1) { var i = "data-" + n.replace(P, "-$1").toLowerCase(); r = e.getAttribute(i); if (typeof r == "string") { try { r = r === "true" ? !0 : r === "false" ? !1 : r === "null" ? null : +r + "" === r ? +r : D.test(r) ? v.parseJSON(r) : r } catch (s) { } v.data(e, n, r) } else r = t } return r } function B(e) { var t; for (t in e) { if (t === "data" && v.isEmptyObject(e[t])) continue; if (t !== "toJSON") return !1 } return !0 } function et() { return !1 } function tt() { return !0 } function ut(e) { return !e || !e.parentNode || e.parentNode.nodeType === 11 } function at(e, t) { do e = e[t]; while (e && e.nodeType !== 1); return e } function ft(e, t, n) { t = t || 0; if (v.isFunction(t)) return v.grep(e, function (e, r) { var i = !!t.call(e, r, e); return i === n }); if (t.nodeType) return v.grep(e, function (e, r) { return e === t === n }); if (typeof t == "string") { var r = v.grep(e, function (e) { return e.nodeType === 1 }); if (it.test(t)) return v.filter(t, r, !n); t = v.filter(t, r) } return v.grep(e, function (e, r) { return v.inArray(e, t) >= 0 === n }) } function lt(e) { var t = ct.split("|"), n = e.createDocumentFragment(); if (n.createElement) while (t.length) n.createElement(t.pop()); return n } function Lt(e, t) { return e.getElementsByTagName(t)[0] || e.appendChild(e.ownerDocument.createElement(t)) } function At(e, t) { if (t.nodeType !== 1 || !v.hasData(e)) return; var n, r, i, s = v._data(e), o = v._data(t, s), u = s.events; if (u) { delete o.handle, o.events = {}; for (n in u) for (r = 0, i = u[n].length; r < i; r++)v.event.add(t, n, u[n][r]) } o.data && (o.data = v.extend({}, o.data)) } function Ot(e, t) { var n; if (t.nodeType !== 1) return; t.clearAttributes && t.clearAttributes(), t.mergeAttributes && t.mergeAttributes(e), n = t.nodeName.toLowerCase(), n === "object" ? (t.parentNode && (t.outerHTML = e.outerHTML), v.support.html5Clone && e.innerHTML && !v.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : n === "input" && Et.test(e.type) ? (t.defaultChecked = t.checked = e.checked, t.value !== e.value && (t.value = e.value)) : n === "option" ? t.selected = e.defaultSelected : n === "input" || n === "textarea" ? t.defaultValue = e.defaultValue : n === "script" && t.text !== e.text && (t.text = e.text), t.removeAttribute(v.expando) } function Mt(e) { return typeof e.getElementsByTagName != "undefined" ? e.getElementsByTagName("*") : typeof e.querySelectorAll != "undefined" ? e.querySelectorAll("*") : [] } function _t(e) { Et.test(e.type) && (e.defaultChecked = e.checked) } function Qt(e, t) { if (t in e) return t; var n = t.charAt(0).toUpperCase() + t.slice(1), r = t, i = Jt.length; while (i--) { t = Jt[i] + n; if (t in e) return t } return r } function Gt(e, t) { return e = t || e, v.css(e, "display") === "none" || !v.contains(e.ownerDocument, e) } function Yt(e, t) { var n, r, i = [], s = 0, o = e.length; for (; s < o; s++) { n = e[s]; if (!n.style) continue; i[s] = v._data(n, "olddisplay"), t ? (!i[s] && n.style.display === "none" && (n.style.display = ""), n.style.display === "" && Gt(n) && (i[s] = v._data(n, "olddisplay", nn(n.nodeName)))) : (r = Dt(n, "display"), !i[s] && r !== "none" && v._data(n, "olddisplay", r)) } for (s = 0; s < o; s++) { n = e[s]; if (!n.style) continue; if (!t || n.style.display === "none" || n.style.display === "") n.style.display = t ? i[s] || "" : "none" } return e } function Zt(e, t, n) { var r = Rt.exec(t); return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t } function en(e, t, n, r) { var i = n === (r ? "border" : "content") ? 4 : t === "width" ? 1 : 0, s = 0; for (; i < 4; i += 2)n === "margin" && (s += v.css(e, n + $t[i], !0)), r ? (n === "content" && (s -= parseFloat(Dt(e, "padding" + $t[i])) || 0), n !== "margin" && (s -= parseFloat(Dt(e, "border" + $t[i] + "Width")) || 0)) : (s += parseFloat(Dt(e, "padding" + $t[i])) || 0, n !== "padding" && (s += parseFloat(Dt(e, "border" + $t[i] + "Width")) || 0)); return s } function tn(e, t, n) { var r = t === "width" ? e.offsetWidth : e.offsetHeight, i = !0, s = v.support.boxSizing && v.css(e, "boxSizing") === "border-box"; if (r <= 0 || r == null) { r = Dt(e, t); if (r < 0 || r == null) r = e.style[t]; if (Ut.test(r)) return r; i = s && (v.support.boxSizingReliable || r === e.style[t]), r = parseFloat(r) || 0 } return r + en(e, t, n || (s ? "border" : "content"), i) + "px" } function nn(e) { if (Wt[e]) return Wt[e]; var t = v("<" + e + ">").appendTo(i.body), n = t.css("display"); t.remove(); if (n === "none" || n === "") { Pt = i.body.appendChild(Pt || v.extend(i.createElement("iframe"), { frameBorder: 0, width: 0, height: 0 })); if (!Ht || !Pt.createElement) Ht = (Pt.contentWindow || Pt.contentDocument).document, Ht.write(""), Ht.close(); t = Ht.body.appendChild(Ht.createElement(e)), n = Dt(t, "display"), i.body.removeChild(Pt) } return Wt[e] = n, n } function fn(e, t, n, r) { var i; if (v.isArray(t)) v.each(t, function (t, i) { n || sn.test(e) ? r(e, i) : fn(e + "[" + (typeof i == "object" ? t : "") + "]", i, n, r) }); else if (!n && v.type(t) === "object") for (i in t) fn(e + "[" + i + "]", t[i], n, r); else r(e, t) } function Cn(e) { return function (t, n) { typeof t != "string" && (n = t, t = "*"); var r, i, s, o = t.toLowerCase().split(y), u = 0, a = o.length; if (v.isFunction(n)) for (; u < a; u++)r = o[u], s = /^\+/.test(r), s && (r = r.substr(1) || "*"), i = e[r] = e[r] || [], i[s ? "unshift" : "push"](n) } } function kn(e, n, r, i, s, o) { s = s || n.dataTypes[0], o = o || {}, o[s] = !0; var u, a = e[s], f = 0, l = a ? a.length : 0, c = e === Sn; for (; f < l && (c || !u); f++)u = a[f](n, r, i), typeof u == "string" && (!c || o[u] ? u = t : (n.dataTypes.unshift(u), u = kn(e, n, r, i, u, o))); return (c || !u) && !o["*"] && (u = kn(e, n, r, i, "*", o)), u } function Ln(e, n) { var r, i, s = v.ajaxSettings.flatOptions || {}; for (r in n) n[r] !== t && ((s[r] ? e : i || (i = {}))[r] = n[r]); i && v.extend(!0, e, i) } function An(e, n, r) { var i, s, o, u, a = e.contents, f = e.dataTypes, l = e.responseFields; for (s in l) s in r && (n[l[s]] = r[s]); while (f[0] === "*") f.shift(), i === t && (i = e.mimeType || n.getResponseHeader("content-type")); if (i) for (s in a) if (a[s] && a[s].test(i)) { f.unshift(s); break } if (f[0] in r) o = f[0]; else { for (s in r) { if (!f[0] || e.converters[s + " " + f[0]]) { o = s; break } u || (u = s) } o = o || u } if (o) return o !== f[0] && f.unshift(o), r[o] } function On(e, t) { var n, r, i, s, o = e.dataTypes.slice(), u = o[0], a = {}, f = 0; e.dataFilter && (t = e.dataFilter(t, e.dataType)); if (o[1]) for (n in e.converters) a[n.toLowerCase()] = e.converters[n]; for (; i = o[++f];)if (i !== "*") { if (u !== "*" && u !== i) { n = a[u + " " + i] || a["* " + i]; if (!n) for (r in a) { s = r.split(" "); if (s[1] === i) { n = a[u + " " + s[0]] || a["* " + s[0]]; if (n) { n === !0 ? n = a[r] : a[r] !== !0 && (i = s[0], o.splice(f--, 0, i)); break } } } if (n !== !0) if (n && e["throws"]) t = n(t); else try { t = n(t) } catch (l) { return { state: "parsererror", error: n ? l : "No conversion from " + u + " to " + i } } } u = i } return { state: "success", data: t } } function Fn() { try { return new e.XMLHttpRequest } catch (t) { } } function In() { try { return new e.ActiveXObject("Microsoft.XMLHTTP") } catch (t) { } } function $n() { return setTimeout(function () { qn = t }, 0), qn = v.now() } function Jn(e, t) { v.each(t, function (t, n) { var r = (Vn[t] || []).concat(Vn["*"]), i = 0, s = r.length; for (; i < s; i++)if (r[i].call(e, t, n)) return }) } function Kn(e, t, n) { var r, i = 0, s = 0, o = Xn.length, u = v.Deferred().always(function () { delete a.elem }), a = function () { var t = qn || $n(), n = Math.max(0, f.startTime + f.duration - t), r = n / f.duration || 0, i = 1 - r, s = 0, o = f.tweens.length; for (; s < o; s++)f.tweens[s].run(i); return u.notifyWith(e, [f, i, n]), i < 1 && o ? n : (u.resolveWith(e, [f]), !1) }, f = u.promise({ elem: e, props: v.extend({}, t), opts: v.extend(!0, { specialEasing: {} }, n), originalProperties: t, originalOptions: n, startTime: qn || $n(), duration: n.duration, tweens: [], createTween: function (t, n, r) { var i = v.Tween(e, f.opts, t, n, f.opts.specialEasing[t] || f.opts.easing); return f.tweens.push(i), i }, stop: function (t) { var n = 0, r = t ? f.tweens.length : 0; for (; n < r; n++)f.tweens[n].run(1); return t ? u.resolveWith(e, [f, t]) : u.rejectWith(e, [f, t]), this } }), l = f.props; Qn(l, f.opts.specialEasing); for (; i < o; i++) { r = Xn[i].call(f, e, l, f.opts); if (r) return r } return Jn(f, l), v.isFunction(f.opts.start) && f.opts.start.call(e, f), v.fx.timer(v.extend(a, { anim: f, queue: f.opts.queue, elem: e })), f.progress(f.opts.progress).done(f.opts.done, f.opts.complete).fail(f.opts.fail).always(f.opts.always) } function Qn(e, t) { var n, r, i, s, o; for (n in e) { r = v.camelCase(n), i = t[r], s = e[n], v.isArray(s) && (i = s[1], s = e[n] = s[0]), n !== r && (e[r] = s, delete e[n]), o = v.cssHooks[r]; if (o && "expand" in o) { s = o.expand(s), delete e[r]; for (n in s) n in e || (e[n] = s[n], t[n] = i) } else t[r] = i } } function Gn(e, t, n) { var r, i, s, o, u, a, f, l, c, h = this, p = e.style, d = {}, m = [], g = e.nodeType && Gt(e); n.queue || (l = v._queueHooks(e, "fx"), l.unqueued == null && (l.unqueued = 0, c = l.empty.fire, l.empty.fire = function () { l.unqueued || c() }), l.unqueued++, h.always(function () { h.always(function () { l.unqueued--, v.queue(e, "fx").length || l.empty.fire() }) })), e.nodeType === 1 && ("height" in t || "width" in t) && (n.overflow = [p.overflow, p.overflowX, p.overflowY], v.css(e, "display") === "inline" && v.css(e, "float") === "none" && (!v.support.inlineBlockNeedsLayout || nn(e.nodeName) === "inline" ? p.display = "inline-block" : p.zoom = 1)), n.overflow && (p.overflow = "hidden", v.support.shrinkWrapBlocks || h.done(function () { p.overflow = n.overflow[0], p.overflowX = n.overflow[1], p.overflowY = n.overflow[2] })); for (r in t) { s = t[r]; if (Un.exec(s)) { delete t[r], a = a || s === "toggle"; if (s === (g ? "hide" : "show")) continue; m.push(r) } } o = m.length; if (o) { u = v._data(e, "fxshow") || v._data(e, "fxshow", {}), "hidden" in u && (g = u.hidden), a && (u.hidden = !g), g ? v(e).show() : h.done(function () { v(e).hide() }), h.done(function () { var t; v.removeData(e, "fxshow", !0); for (t in d) v.style(e, t, d[t]) }); for (r = 0; r < o; r++)i = m[r], f = h.createTween(i, g ? u[i] : 0), d[i] = u[i] || v.style(e, i), i in u || (u[i] = f.start, g && (f.end = f.start, f.start = i === "width" || i === "height" ? 1 : 0)) } } function Yn(e, t, n, r, i) { return new Yn.prototype.init(e, t, n, r, i) } function Zn(e, t) { var n, r = { height: e }, i = 0; t = t ? 1 : 0; for (; i < 4; i += 2 - t)n = $t[i], r["margin" + n] = r["padding" + n] = e; return t && (r.opacity = r.width = e), r } function tr(e) { return v.isWindow(e) ? e : e.nodeType === 9 ? e.defaultView || e.parentWindow : !1 } var n, r, i = e.document, s = e.location, o = e.navigator, u = e.jQuery, a = e.$, f = Array.prototype.push, l = Array.prototype.slice, c = Array.prototype.indexOf, h = Object.prototype.toString, p = Object.prototype.hasOwnProperty, d = String.prototype.trim, v = function (e, t) { return new v.fn.init(e, t, n) }, m = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, g = /\S/, y = /\s+/, b = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, w = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, E = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, S = /^[\],:{}\s]*$/, x = /(?:^|:|,)(?:\s*\[)+/g, T = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, N = /"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g, C = /^-ms-/, k = /-([\da-z])/gi, L = function (e, t) { return (t + "").toUpperCase() }, A = function () { i.addEventListener ? (i.removeEventListener("DOMContentLoaded", A, !1), v.ready()) : i.readyState === "complete" && (i.detachEvent("onreadystatechange", A), v.ready()) }, O = {}; v.fn = v.prototype = { constructor: v, init: function (e, n, r) { var s, o, u, a; if (!e) return this; if (e.nodeType) return this.context = this[0] = e, this.length = 1, this; if (typeof e == "string") { e.charAt(0) === "<" && e.charAt(e.length - 1) === ">" && e.length >= 3 ? s = [null, e, null] : s = w.exec(e); if (s && (s[1] || !n)) { if (s[1]) return n = n instanceof v ? n[0] : n, a = n && n.nodeType ? n.ownerDocument || n : i, e = v.parseHTML(s[1], a, !0), E.test(s[1]) && v.isPlainObject(n) && this.attr.call(e, n, !0), v.merge(this, e); o = i.getElementById(s[2]); if (o && o.parentNode) { if (o.id !== s[2]) return r.find(e); this.length = 1, this[0] = o } return this.context = i, this.selector = e, this } return !n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e) } return v.isFunction(e) ? r.ready(e) : (e.selector !== t && (this.selector = e.selector, this.context = e.context), v.makeArray(e, this)) }, selector: "", jquery: "1.8.3", length: 0, size: function () { return this.length }, toArray: function () { return l.call(this) }, get: function (e) { return e == null ? this.toArray() : e < 0 ? this[this.length + e] : this[e] }, pushStack: function (e, t, n) { var r = v.merge(this.constructor(), e); return r.prevObject = this, r.context = this.context, t === "find" ? r.selector = this.selector + (this.selector ? " " : "") + n : t && (r.selector = this.selector + "." + t + "(" + n + ")"), r }, each: function (e, t) { return v.each(this, e, t) }, ready: function (e) { return v.ready.promise().done(e), this }, eq: function (e) { return e = +e, e === -1 ? this.slice(e) : this.slice(e, e + 1) }, first: function () { return this.eq(0) }, last: function () { return this.eq(-1) }, slice: function () { return this.pushStack(l.apply(this, arguments), "slice", l.call(arguments).join(",")) }, map: function (e) { return this.pushStack(v.map(this, function (t, n) { return e.call(t, n, t) })) }, end: function () { return this.prevObject || this.constructor(null) }, push: f, sort: [].sort, splice: [].splice }, v.fn.init.prototype = v.fn, v.extend = v.fn.extend = function () { var e, n, r, i, s, o, u = arguments[0] || {}, a = 1, f = arguments.length, l = !1; typeof u == "boolean" && (l = u, u = arguments[1] || {}, a = 2), typeof u != "object" && !v.isFunction(u) && (u = {}), f === a && (u = this, --a); for (; a < f; a++)if ((e = arguments[a]) != null) for (n in e) { r = u[n], i = e[n]; if (u === i) continue; l && i && (v.isPlainObject(i) || (s = v.isArray(i))) ? (s ? (s = !1, o = r && v.isArray(r) ? r : []) : o = r && v.isPlainObject(r) ? r : {}, u[n] = v.extend(l, o, i)) : i !== t && (u[n] = i) } return u }, v.extend({ noConflict: function (t) { return e.$ === v && (e.$ = a), t && e.jQuery === v && (e.jQuery = u), v }, isReady: !1, readyWait: 1, holdReady: function (e) { e ? v.readyWait++ : v.ready(!0) }, ready: function (e) { if (e === !0 ? --v.readyWait : v.isReady) return; if (!i.body) return setTimeout(v.ready, 1); v.isReady = !0; if (e !== !0 && --v.readyWait > 0) return; r.resolveWith(i, [v]), v.fn.trigger && v(i).trigger("ready").off("ready") }, isFunction: function (e) { return v.type(e) === "function" }, isArray: Array.isArray || function (e) { return v.type(e) === "array" }, isWindow: function (e) { return e != null && e == e.window }, isNumeric: function (e) { return !isNaN(parseFloat(e)) && isFinite(e) }, type: function (e) { return e == null ? String(e) : O[h.call(e)] || "object" }, isPlainObject: function (e) { if (!e || v.type(e) !== "object" || e.nodeType || v.isWindow(e)) return !1; try { if (e.constructor && !p.call(e, "constructor") && !p.call(e.constructor.prototype, "isPrototypeOf")) return !1 } catch (n) { return !1 } var r; for (r in e); return r === t || p.call(e, r) }, isEmptyObject: function (e) { var t; for (t in e) return !1; return !0 }, error: function (e) { throw new Error(e) }, parseHTML: function (e, t, n) { var r; return !e || typeof e != "string" ? null : (typeof t == "boolean" && (n = t, t = 0), t = t || i, (r = E.exec(e)) ? [t.createElement(r[1])] : (r = v.buildFragment([e], t, n ? null : []), v.merge([], (r.cacheable ? v.clone(r.fragment) : r.fragment).childNodes))) }, parseJSON: function (t) { if (!t || typeof t != "string") return null; t = v.trim(t); if (e.JSON && e.JSON.parse) return e.JSON.parse(t); if (S.test(t.replace(T, "@").replace(N, "]").replace(x, ""))) return (new Function("return " + t))(); v.error("Invalid JSON: " + t) }, parseXML: function (n) { var r, i; if (!n || typeof n != "string") return null; try { e.DOMParser ? (i = new DOMParser, r = i.parseFromString(n, "text/xml")) : (r = new ActiveXObject("Microsoft.XMLDOM"), r.async = "false", r.loadXML(n)) } catch (s) { r = t } return (!r || !r.documentElement || r.getElementsByTagName("parsererror").length) && v.error("Invalid XML: " + n), r }, noop: function () { }, globalEval: function (t) { t && g.test(t) && (e.execScript || function (t) { e.eval.call(e, t) })(t) }, camelCase: function (e) { return e.replace(C, "ms-").replace(k, L) }, nodeName: function (e, t) { return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase() }, each: function (e, n, r) { var i, s = 0, o = e.length, u = o === t || v.isFunction(e); if (r) { if (u) { for (i in e) if (n.apply(e[i], r) === !1) break } else for (; s < o;)if (n.apply(e[s++], r) === !1) break } else if (u) { for (i in e) if (n.call(e[i], i, e[i]) === !1) break } else for (; s < o;)if (n.call(e[s], s, e[s++]) === !1) break; return e }, trim: d && !d.call("\ufeff\u00a0") ? function (e) { return e == null ? "" : d.call(e) } : function (e) { return e == null ? "" : (e + "").replace(b, "") }, makeArray: function (e, t) { var n, r = t || []; return e != null && (n = v.type(e), e.length == null || n === "string" || n === "function" || n === "regexp" || v.isWindow(e) ? f.call(r, e) : v.merge(r, e)), r }, inArray: function (e, t, n) { var r; if (t) { if (c) return c.call(t, e, n); r = t.length, n = n ? n < 0 ? Math.max(0, r + n) : n : 0; for (; n < r; n++)if (n in t && t[n] === e) return n } return -1 }, merge: function (e, n) { var r = n.length, i = e.length, s = 0; if (typeof r == "number") for (; s < r; s++)e[i++] = n[s]; else while (n[s] !== t) e[i++] = n[s++]; return e.length = i, e }, grep: function (e, t, n) { var r, i = [], s = 0, o = e.length; n = !!n; for (; s < o; s++)r = !!t(e[s], s), n !== r && i.push(e[s]); return i }, map: function (e, n, r) { var i, s, o = [], u = 0, a = e.length, f = e instanceof v || a !== t && typeof a == "number" && (a > 0 && e[0] && e[a - 1] || a === 0 || v.isArray(e)); if (f) for (; u < a; u++)i = n(e[u], u, r), i != null && (o[o.length] = i); else for (s in e) i = n(e[s], s, r), i != null && (o[o.length] = i); return o.concat.apply([], o) }, guid: 1, proxy: function (e, n) { var r, i, s; return typeof n == "string" && (r = e[n], n = e, e = r), v.isFunction(e) ? (i = l.call(arguments, 2), s = function () { return e.apply(n, i.concat(l.call(arguments))) }, s.guid = e.guid = e.guid || v.guid++, s) : t }, access: function (e, n, r, i, s, o, u) { var a, f = r == null, l = 0, c = e.length; if (r && typeof r == "object") { for (l in r) v.access(e, n, l, r[l], 1, o, i); s = 1 } else if (i !== t) { a = u === t && v.isFunction(i), f && (a ? (a = n, n = function (e, t, n) { return a.call(v(e), n) }) : (n.call(e, i), n = null)); if (n) for (; l < c; l++)n(e[l], r, a ? i.call(e[l], l, n(e[l], r)) : i, u); s = 1 } return s ? e : f ? n.call(e) : c ? n(e[0], r) : o }, now: function () { return (new Date).getTime() } }), v.ready.promise = function (t) { if (!r) { r = v.Deferred(); if (i.readyState === "complete") setTimeout(v.ready, 1); else if (i.addEventListener) i.addEventListener("DOMContentLoaded", A, !1), e.addEventListener("load", v.ready, !1); else { i.attachEvent("onreadystatechange", A), e.attachEvent("onload", v.ready); var n = !1; try { n = e.frameElement == null && i.documentElement } catch (s) { } n && n.doScroll && function o() { if (!v.isReady) { try { n.doScroll("left") } catch (e) { return setTimeout(o, 50) } v.ready() } }() } } return r.promise(t) }, v.each("Boolean Number String Function Array Date RegExp Object".split(" "), function (e, t) { O["[object " + t + "]"] = t.toLowerCase() }), n = v(i); var M = {}; v.Callbacks = function (e) { e = typeof e == "string" ? M[e] || _(e) : v.extend({}, e); var n, r, i, s, o, u, a = [], f = !e.once && [], l = function (t) { n = e.memory && t, r = !0, u = s || 0, s = 0, o = a.length, i = !0; for (; a && u < o; u++)if (a[u].apply(t[0], t[1]) === !1 && e.stopOnFalse) { n = !1; break } i = !1, a && (f ? f.length && l(f.shift()) : n ? a = [] : c.disable()) }, c = { add: function () { if (a) { var t = a.length; (function r(t) { v.each(t, function (t, n) { var i = v.type(n); i === "function" ? (!e.unique || !c.has(n)) && a.push(n) : n && n.length && i !== "string" && r(n) }) })(arguments), i ? o = a.length : n && (s = t, l(n)) } return this }, remove: function () { return a && v.each(arguments, function (e, t) { var n; while ((n = v.inArray(t, a, n)) > -1) a.splice(n, 1), i && (n <= o && o--, n <= u && u--) }), this }, has: function (e) { return v.inArray(e, a) > -1 }, empty: function () { return a = [], this }, disable: function () { return a = f = n = t, this }, disabled: function () { return !a }, lock: function () { return f = t, n || c.disable(), this }, locked: function () { return !f }, fireWith: function (e, t) { return t = t || [], t = [e, t.slice ? t.slice() : t], a && (!r || f) && (i ? f.push(t) : l(t)), this }, fire: function () { return c.fireWith(this, arguments), this }, fired: function () { return !!r } }; return c }, v.extend({ Deferred: function (e) { var t = [["resolve", "done", v.Callbacks("once memory"), "resolved"], ["reject", "fail", v.Callbacks("once memory"), "rejected"], ["notify", "progress", v.Callbacks("memory")]], n = "pending", r = { state: function () { return n }, always: function () { return i.done(arguments).fail(arguments), this }, then: function () { var e = arguments; return v.Deferred(function (n) { v.each(t, function (t, r) { var s = r[0], o = e[t]; i[r[1]](v.isFunction(o) ? function () { var e = o.apply(this, arguments); e && v.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[s + "With"](this === i ? n : this, [e]) } : n[s]) }), e = null }).promise() }, promise: function (e) { return e != null ? v.extend(e, r) : r } }, i = {}; return r.pipe = r.then, v.each(t, function (e, s) { var o = s[2], u = s[3]; r[s[1]] = o.add, u && o.add(function () { n = u }, t[e ^ 1][2].disable, t[2][2].lock), i[s[0]] = o.fire, i[s[0] + "With"] = o.fireWith }), r.promise(i), e && e.call(i, i), i }, when: function (e) { var t = 0, n = l.call(arguments), r = n.length, i = r !== 1 || e && v.isFunction(e.promise) ? r : 0, s = i === 1 ? e : v.Deferred(), o = function (e, t, n) { return function (r) { t[e] = this, n[e] = arguments.length > 1 ? l.call(arguments) : r, n === u ? s.notifyWith(t, n) : --i || s.resolveWith(t, n) } }, u, a, f; if (r > 1) { u = new Array(r), a = new Array(r), f = new Array(r); for (; t < r; t++)n[t] && v.isFunction(n[t].promise) ? n[t].promise().done(o(t, f, n)).fail(s.reject).progress(o(t, a, u)) : --i } return i || s.resolveWith(f, n), s.promise() } }), v.support = function () { var t, n, r, s, o, u, a, f, l, c, h, p = i.createElement("div"); p.setAttribute("className", "t"), p.innerHTML = "
      a", n = p.getElementsByTagName("*"), r = p.getElementsByTagName("a")[0]; if (!n || !r || !n.length) return {}; s = i.createElement("select"), o = s.appendChild(i.createElement("option")), u = p.getElementsByTagName("input")[0], r.style.cssText = "top:1px;float:left;opacity:.5", t = { leadingWhitespace: p.firstChild.nodeType === 3, tbody: !p.getElementsByTagName("tbody").length, htmlSerialize: !!p.getElementsByTagName("link").length, style: /top/.test(r.getAttribute("style")), hrefNormalized: r.getAttribute("href") === "/a", opacity: /^0.5/.test(r.style.opacity), cssFloat: !!r.style.cssFloat, checkOn: u.value === "on", optSelected: o.selected, getSetAttribute: p.className !== "t", enctype: !!i.createElement("form").enctype, html5Clone: i.createElement("nav").cloneNode(!0).outerHTML !== "<:nav>", boxModel: i.compatMode === "CSS1Compat", submitBubbles: !0, changeBubbles: !0, focusinBubbles: !1, deleteExpando: !0, noCloneEvent: !0, inlineBlockNeedsLayout: !1, shrinkWrapBlocks: !1, reliableMarginRight: !0, boxSizingReliable: !0, pixelPosition: !1 }, u.checked = !0, t.noCloneChecked = u.cloneNode(!0).checked, s.disabled = !0, t.optDisabled = !o.disabled; try { delete p.test } catch (d) { t.deleteExpando = !1 } !p.addEventListener && p.attachEvent && p.fireEvent && (p.attachEvent("onclick", h = function () { t.noCloneEvent = !1 }), p.cloneNode(!0).fireEvent("onclick"), p.detachEvent("onclick", h)), u = i.createElement("input"), u.value = "t", u.setAttribute("type", "radio"), t.radioValue = u.value === "t", u.setAttribute("checked", "checked"), u.setAttribute("name", "t"), p.appendChild(u), a = i.createDocumentFragment(), a.appendChild(p.lastChild), t.checkClone = a.cloneNode(!0).cloneNode(!0).lastChild.checked, t.appendChecked = u.checked, a.removeChild(u), a.appendChild(p); if (p.attachEvent) for (l in { submit: !0, change: !0, focusin: !0 }) f = "on" + l, c = f in p, c || (p.setAttribute(f, "return;"), c = typeof p[f] == "function"), t[l + "Bubbles"] = c; return v(function () { var n, r, s, o, u = "padding:0;margin:0;border:0;display:block;overflow:hidden;", a = i.getElementsByTagName("body")[0]; if (!a) return; n = i.createElement("div"), n.style.cssText = "visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px", a.insertBefore(n, a.firstChild), r = i.createElement("div"), n.appendChild(r), r.innerHTML = "
      t
      ", s = r.getElementsByTagName("td"), s[0].style.cssText = "padding:0;margin:0;border:0;display:none", c = s[0].offsetHeight === 0, s[0].style.display = "", s[1].style.display = "none", t.reliableHiddenOffsets = c && s[0].offsetHeight === 0, r.innerHTML = "", r.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", t.boxSizing = r.offsetWidth === 4, t.doesNotIncludeMarginInBodyOffset = a.offsetTop !== 1, e.getComputedStyle && (t.pixelPosition = (e.getComputedStyle(r, null) || {}).top !== "1%", t.boxSizingReliable = (e.getComputedStyle(r, null) || { width: "4px" }).width === "4px", o = i.createElement("div"), o.style.cssText = r.style.cssText = u, o.style.marginRight = o.style.width = "0", r.style.width = "1px", r.appendChild(o), t.reliableMarginRight = !parseFloat((e.getComputedStyle(o, null) || {}).marginRight)), typeof r.style.zoom != "undefined" && (r.innerHTML = "", r.style.cssText = u + "width:1px;padding:1px;display:inline;zoom:1", t.inlineBlockNeedsLayout = r.offsetWidth === 3, r.style.display = "block", r.style.overflow = "visible", r.innerHTML = "
      ", r.firstChild.style.width = "5px", t.shrinkWrapBlocks = r.offsetWidth !== 3, n.style.zoom = 1), a.removeChild(n), n = r = s = o = null }), a.removeChild(p), n = r = s = o = u = a = p = null, t }(); var D = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, P = /([A-Z])/g; v.extend({ cache: {}, deletedIds: [], uuid: 0, expando: "jQuery" + (v.fn.jquery + Math.random()).replace(/\D/g, ""), noData: { embed: !0, object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", applet: !0 }, hasData: function (e) { return e = e.nodeType ? v.cache[e[v.expando]] : e[v.expando], !!e && !B(e) }, data: function (e, n, r, i) { if (!v.acceptData(e)) return; var s, o, u = v.expando, a = typeof n == "string", f = e.nodeType, l = f ? v.cache : e, c = f ? e[u] : e[u] && u; if ((!c || !l[c] || !i && !l[c].data) && a && r === t) return; c || (f ? e[u] = c = v.deletedIds.pop() || v.guid++ : c = u), l[c] || (l[c] = {}, f || (l[c].toJSON = v.noop)); if (typeof n == "object" || typeof n == "function") i ? l[c] = v.extend(l[c], n) : l[c].data = v.extend(l[c].data, n); return s = l[c], i || (s.data || (s.data = {}), s = s.data), r !== t && (s[v.camelCase(n)] = r), a ? (o = s[n], o == null && (o = s[v.camelCase(n)])) : o = s, o }, removeData: function (e, t, n) { if (!v.acceptData(e)) return; var r, i, s, o = e.nodeType, u = o ? v.cache : e, a = o ? e[v.expando] : v.expando; if (!u[a]) return; if (t) { r = n ? u[a] : u[a].data; if (r) { v.isArray(t) || (t in r ? t = [t] : (t = v.camelCase(t), t in r ? t = [t] : t = t.split(" "))); for (i = 0, s = t.length; i < s; i++)delete r[t[i]]; if (!(n ? B : v.isEmptyObject)(r)) return } } if (!n) { delete u[a].data; if (!B(u[a])) return } o ? v.cleanData([e], !0) : v.support.deleteExpando || u != u.window ? delete u[a] : u[a] = null }, _data: function (e, t, n) { return v.data(e, t, n, !0) }, acceptData: function (e) { var t = e.nodeName && v.noData[e.nodeName.toLowerCase()]; return !t || t !== !0 && e.getAttribute("classid") === t } }), v.fn.extend({ data: function (e, n) { var r, i, s, o, u, a = this[0], f = 0, l = null; if (e === t) { if (this.length) { l = v.data(a); if (a.nodeType === 1 && !v._data(a, "parsedAttrs")) { s = a.attributes; for (u = s.length; f < u; f++)o = s[f].name, o.indexOf("data-") || (o = v.camelCase(o.substring(5)), H(a, o, l[o])); v._data(a, "parsedAttrs", !0) } } return l } return typeof e == "object" ? this.each(function () { v.data(this, e) }) : (r = e.split(".", 2), r[1] = r[1] ? "." + r[1] : "", i = r[1] + "!", v.access(this, function (n) { if (n === t) return l = this.triggerHandler("getData" + i, [r[0]]), l === t && a && (l = v.data(a, e), l = H(a, e, l)), l === t && r[1] ? this.data(r[0]) : l; r[1] = n, this.each(function () { var t = v(this); t.triggerHandler("setData" + i, r), v.data(this, e, n), t.triggerHandler("changeData" + i, r) }) }, null, n, arguments.length > 1, null, !1)) }, removeData: function (e) { return this.each(function () { v.removeData(this, e) }) } }), v.extend({ queue: function (e, t, n) { var r; if (e) return t = (t || "fx") + "queue", r = v._data(e, t), n && (!r || v.isArray(n) ? r = v._data(e, t, v.makeArray(n)) : r.push(n)), r || [] }, dequeue: function (e, t) { t = t || "fx"; var n = v.queue(e, t), r = n.length, i = n.shift(), s = v._queueHooks(e, t), o = function () { v.dequeue(e, t) }; i === "inprogress" && (i = n.shift(), r--), i && (t === "fx" && n.unshift("inprogress"), delete s.stop, i.call(e, o, s)), !r && s && s.empty.fire() }, _queueHooks: function (e, t) { var n = t + "queueHooks"; return v._data(e, n) || v._data(e, n, { empty: v.Callbacks("once memory").add(function () { v.removeData(e, t + "queue", !0), v.removeData(e, n, !0) }) }) } }), v.fn.extend({ queue: function (e, n) { var r = 2; return typeof e != "string" && (n = e, e = "fx", r--), arguments.length < r ? v.queue(this[0], e) : n === t ? this : this.each(function () { var t = v.queue(this, e, n); v._queueHooks(this, e), e === "fx" && t[0] !== "inprogress" && v.dequeue(this, e) }) }, dequeue: function (e) { return this.each(function () { v.dequeue(this, e) }) }, delay: function (e, t) { return e = v.fx ? v.fx.speeds[e] || e : e, t = t || "fx", this.queue(t, function (t, n) { var r = setTimeout(t, e); n.stop = function () { clearTimeout(r) } }) }, clearQueue: function (e) { return this.queue(e || "fx", []) }, promise: function (e, n) { var r, i = 1, s = v.Deferred(), o = this, u = this.length, a = function () { --i || s.resolveWith(o, [o]) }; typeof e != "string" && (n = e, e = t), e = e || "fx"; while (u--) r = v._data(o[u], e + "queueHooks"), r && r.empty && (i++, r.empty.add(a)); return a(), s.promise(n) } }); var j, F, I, q = /[\t\r\n]/g, R = /\r/g, U = /^(?:button|input)$/i, z = /^(?:button|input|object|select|textarea)$/i, W = /^a(?:rea|)$/i, X = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, V = v.support.getSetAttribute; v.fn.extend({ attr: function (e, t) { return v.access(this, v.attr, e, t, arguments.length > 1) }, removeAttr: function (e) { return this.each(function () { v.removeAttr(this, e) }) }, prop: function (e, t) { return v.access(this, v.prop, e, t, arguments.length > 1) }, removeProp: function (e) { return e = v.propFix[e] || e, this.each(function () { try { this[e] = t, delete this[e] } catch (n) { } }) }, addClass: function (e) { var t, n, r, i, s, o, u; if (v.isFunction(e)) return this.each(function (t) { v(this).addClass(e.call(this, t, this.className)) }); if (e && typeof e == "string") { t = e.split(y); for (n = 0, r = this.length; n < r; n++) { i = this[n]; if (i.nodeType === 1) if (!i.className && t.length === 1) i.className = e; else { s = " " + i.className + " "; for (o = 0, u = t.length; o < u; o++)s.indexOf(" " + t[o] + " ") < 0 && (s += t[o] + " "); i.className = v.trim(s) } } } return this }, removeClass: function (e) { var n, r, i, s, o, u, a; if (v.isFunction(e)) return this.each(function (t) { v(this).removeClass(e.call(this, t, this.className)) }); if (e && typeof e == "string" || e === t) { n = (e || "").split(y); for (u = 0, a = this.length; u < a; u++) { i = this[u]; if (i.nodeType === 1 && i.className) { r = (" " + i.className + " ").replace(q, " "); for (s = 0, o = n.length; s < o; s++)while (r.indexOf(" " + n[s] + " ") >= 0) r = r.replace(" " + n[s] + " ", " "); i.className = e ? v.trim(r) : "" } } } return this }, toggleClass: function (e, t) { var n = typeof e, r = typeof t == "boolean"; return v.isFunction(e) ? this.each(function (n) { v(this).toggleClass(e.call(this, n, this.className, t), t) }) : this.each(function () { if (n === "string") { var i, s = 0, o = v(this), u = t, a = e.split(y); while (i = a[s++]) u = r ? u : !o.hasClass(i), o[u ? "addClass" : "removeClass"](i) } else if (n === "undefined" || n === "boolean") this.className && v._data(this, "__className__", this.className), this.className = this.className || e === !1 ? "" : v._data(this, "__className__") || "" }) }, hasClass: function (e) { var t = " " + e + " ", n = 0, r = this.length; for (; n < r; n++)if (this[n].nodeType === 1 && (" " + this[n].className + " ").replace(q, " ").indexOf(t) >= 0) return !0; return !1 }, val: function (e) { var n, r, i, s = this[0]; if (!arguments.length) { if (s) return n = v.valHooks[s.type] || v.valHooks[s.nodeName.toLowerCase()], n && "get" in n && (r = n.get(s, "value")) !== t ? r : (r = s.value, typeof r == "string" ? r.replace(R, "") : r == null ? "" : r); return } return i = v.isFunction(e), this.each(function (r) { var s, o = v(this); if (this.nodeType !== 1) return; i ? s = e.call(this, r, o.val()) : s = e, s == null ? s = "" : typeof s == "number" ? s += "" : v.isArray(s) && (s = v.map(s, function (e) { return e == null ? "" : e + "" })), n = v.valHooks[this.type] || v.valHooks[this.nodeName.toLowerCase()]; if (!n || !("set" in n) || n.set(this, s, "value") === t) this.value = s }) } }), v.extend({ valHooks: { option: { get: function (e) { var t = e.attributes.value; return !t || t.specified ? e.value : e.text } }, select: { get: function (e) { var t, n, r = e.options, i = e.selectedIndex, s = e.type === "select-one" || i < 0, o = s ? null : [], u = s ? i + 1 : r.length, a = i < 0 ? u : s ? i : 0; for (; a < u; a++) { n = r[a]; if ((n.selected || a === i) && (v.support.optDisabled ? !n.disabled : n.getAttribute("disabled") === null) && (!n.parentNode.disabled || !v.nodeName(n.parentNode, "optgroup"))) { t = v(n).val(); if (s) return t; o.push(t) } } return o }, set: function (e, t) { var n = v.makeArray(t); return v(e).find("option").each(function () { this.selected = v.inArray(v(this).val(), n) >= 0 }), n.length || (e.selectedIndex = -1), n } } }, attrFn: {}, attr: function (e, n, r, i) { var s, o, u, a = e.nodeType; if (!e || a === 3 || a === 8 || a === 2) return; if (i && v.isFunction(v.fn[n])) return v(e)[n](r); if (typeof e.getAttribute == "undefined") return v.prop(e, n, r); u = a !== 1 || !v.isXMLDoc(e), u && (n = n.toLowerCase(), o = v.attrHooks[n] || (X.test(n) ? F : j)); if (r !== t) { if (r === null) { v.removeAttr(e, n); return } return o && "set" in o && u && (s = o.set(e, r, n)) !== t ? s : (e.setAttribute(n, r + ""), r) } return o && "get" in o && u && (s = o.get(e, n)) !== null ? s : (s = e.getAttribute(n), s === null ? t : s) }, removeAttr: function (e, t) { var n, r, i, s, o = 0; if (t && e.nodeType === 1) { r = t.split(y); for (; o < r.length; o++)i = r[o], i && (n = v.propFix[i] || i, s = X.test(i), s || v.attr(e, i, ""), e.removeAttribute(V ? i : n), s && n in e && (e[n] = !1)) } }, attrHooks: { type: { set: function (e, t) { if (U.test(e.nodeName) && e.parentNode) v.error("type property can't be changed"); else if (!v.support.radioValue && t === "radio" && v.nodeName(e, "input")) { var n = e.value; return e.setAttribute("type", t), n && (e.value = n), t } } }, value: { get: function (e, t) { return j && v.nodeName(e, "button") ? j.get(e, t) : t in e ? e.value : null }, set: function (e, t, n) { if (j && v.nodeName(e, "button")) return j.set(e, t, n); e.value = t } } }, propFix: { tabindex: "tabIndex", readonly: "readOnly", "for": "htmlFor", "class": "className", maxlength: "maxLength", cellspacing: "cellSpacing", cellpadding: "cellPadding", rowspan: "rowSpan", colspan: "colSpan", usemap: "useMap", frameborder: "frameBorder", contenteditable: "contentEditable" }, prop: function (e, n, r) { var i, s, o, u = e.nodeType; if (!e || u === 3 || u === 8 || u === 2) return; return o = u !== 1 || !v.isXMLDoc(e), o && (n = v.propFix[n] || n, s = v.propHooks[n]), r !== t ? s && "set" in s && (i = s.set(e, r, n)) !== t ? i : e[n] = r : s && "get" in s && (i = s.get(e, n)) !== null ? i : e[n] }, propHooks: { tabIndex: { get: function (e) { var n = e.getAttributeNode("tabindex"); return n && n.specified ? parseInt(n.value, 10) : z.test(e.nodeName) || W.test(e.nodeName) && e.href ? 0 : t } } } }), F = { get: function (e, n) { var r, i = v.prop(e, n); return i === !0 || typeof i != "boolean" && (r = e.getAttributeNode(n)) && r.nodeValue !== !1 ? n.toLowerCase() : t }, set: function (e, t, n) { var r; return t === !1 ? v.removeAttr(e, n) : (r = v.propFix[n] || n, r in e && (e[r] = !0), e.setAttribute(n, n.toLowerCase())), n } }, V || (I = { name: !0, id: !0, coords: !0 }, j = v.valHooks.button = { get: function (e, n) { var r; return r = e.getAttributeNode(n), r && (I[n] ? r.value !== "" : r.specified) ? r.value : t }, set: function (e, t, n) { var r = e.getAttributeNode(n); return r || (r = i.createAttribute(n), e.setAttributeNode(r)), r.value = t + "" } }, v.each(["width", "height"], function (e, t) { v.attrHooks[t] = v.extend(v.attrHooks[t], { set: function (e, n) { if (n === "") return e.setAttribute(t, "auto"), n } }) }), v.attrHooks.contenteditable = { get: j.get, set: function (e, t, n) { t === "" && (t = "false"), j.set(e, t, n) } }), v.support.hrefNormalized || v.each(["href", "src", "width", "height"], function (e, n) { v.attrHooks[n] = v.extend(v.attrHooks[n], { get: function (e) { var r = e.getAttribute(n, 2); return r === null ? t : r } }) }), v.support.style || (v.attrHooks.style = { get: function (e) { return e.style.cssText.toLowerCase() || t }, set: function (e, t) { return e.style.cssText = t + "" } }), v.support.optSelected || (v.propHooks.selected = v.extend(v.propHooks.selected, { get: function (e) { var t = e.parentNode; return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex), null } })), v.support.enctype || (v.propFix.enctype = "encoding"), v.support.checkOn || v.each(["radio", "checkbox"], function () { v.valHooks[this] = { get: function (e) { return e.getAttribute("value") === null ? "on" : e.value } } }), v.each(["radio", "checkbox"], function () { v.valHooks[this] = v.extend(v.valHooks[this], { set: function (e, t) { if (v.isArray(t)) return e.checked = v.inArray(v(e).val(), t) >= 0 } }) }); var $ = /^(?:textarea|input|select)$/i, J = /^([^\.]*|)(?:\.(.+)|)$/, K = /(?:^|\s)hover(\.\S+|)\b/, Q = /^key/, G = /^(?:mouse|contextmenu)|click/, Y = /^(?:focusinfocus|focusoutblur)$/, Z = function (e) { return v.event.special.hover ? e : e.replace(K, "mouseenter$1 mouseleave$1") }; v.event = { add: function (e, n, r, i, s) { var o, u, a, f, l, c, h, p, d, m, g; if (e.nodeType === 3 || e.nodeType === 8 || !n || !r || !(o = v._data(e))) return; r.handler && (d = r, r = d.handler, s = d.selector), r.guid || (r.guid = v.guid++), a = o.events, a || (o.events = a = {}), u = o.handle, u || (o.handle = u = function (e) { return typeof v == "undefined" || !!e && v.event.triggered === e.type ? t : v.event.dispatch.apply(u.elem, arguments) }, u.elem = e), n = v.trim(Z(n)).split(" "); for (f = 0; f < n.length; f++) { l = J.exec(n[f]) || [], c = l[1], h = (l[2] || "").split(".").sort(), g = v.event.special[c] || {}, c = (s ? g.delegateType : g.bindType) || c, g = v.event.special[c] || {}, p = v.extend({ type: c, origType: l[1], data: i, handler: r, guid: r.guid, selector: s, needsContext: s && v.expr.match.needsContext.test(s), namespace: h.join(".") }, d), m = a[c]; if (!m) { m = a[c] = [], m.delegateCount = 0; if (!g.setup || g.setup.call(e, i, h, u) === !1) e.addEventListener ? e.addEventListener(c, u, !1) : e.attachEvent && e.attachEvent("on" + c, u) } g.add && (g.add.call(e, p), p.handler.guid || (p.handler.guid = r.guid)), s ? m.splice(m.delegateCount++, 0, p) : m.push(p), v.event.global[c] = !0 } e = null }, global: {}, remove: function (e, t, n, r, i) { var s, o, u, a, f, l, c, h, p, d, m, g = v.hasData(e) && v._data(e); if (!g || !(h = g.events)) return; t = v.trim(Z(t || "")).split(" "); for (s = 0; s < t.length; s++) { o = J.exec(t[s]) || [], u = a = o[1], f = o[2]; if (!u) { for (u in h) v.event.remove(e, u + t[s], n, r, !0); continue } p = v.event.special[u] || {}, u = (r ? p.delegateType : p.bindType) || u, d = h[u] || [], l = d.length, f = f ? new RegExp("(^|\\.)" + f.split(".").sort().join("\\.(?:.*\\.|)") + "(\\.|$)") : null; for (c = 0; c < d.length; c++)m = d[c], (i || a === m.origType) && (!n || n.guid === m.guid) && (!f || f.test(m.namespace)) && (!r || r === m.selector || r === "**" && m.selector) && (d.splice(c--, 1), m.selector && d.delegateCount--, p.remove && p.remove.call(e, m)); d.length === 0 && l !== d.length && ((!p.teardown || p.teardown.call(e, f, g.handle) === !1) && v.removeEvent(e, u, g.handle), delete h[u]) } v.isEmptyObject(h) && (delete g.handle, v.removeData(e, "events", !0)) }, customEvent: { getData: !0, setData: !0, changeData: !0 }, trigger: function (n, r, s, o) { if (!s || s.nodeType !== 3 && s.nodeType !== 8) { var u, a, f, l, c, h, p, d, m, g, y = n.type || n, b = []; if (Y.test(y + v.event.triggered)) return; y.indexOf("!") >= 0 && (y = y.slice(0, -1), a = !0), y.indexOf(".") >= 0 && (b = y.split("."), y = b.shift(), b.sort()); if ((!s || v.event.customEvent[y]) && !v.event.global[y]) return; n = typeof n == "object" ? n[v.expando] ? n : new v.Event(y, n) : new v.Event(y), n.type = y, n.isTrigger = !0, n.exclusive = a, n.namespace = b.join("."), n.namespace_re = n.namespace ? new RegExp("(^|\\.)" + b.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, h = y.indexOf(":") < 0 ? "on" + y : ""; if (!s) { u = v.cache; for (f in u) u[f].events && u[f].events[y] && v.event.trigger(n, r, u[f].handle.elem, !0); return } n.result = t, n.target || (n.target = s), r = r != null ? v.makeArray(r) : [], r.unshift(n), p = v.event.special[y] || {}; if (p.trigger && p.trigger.apply(s, r) === !1) return; m = [[s, p.bindType || y]]; if (!o && !p.noBubble && !v.isWindow(s)) { g = p.delegateType || y, l = Y.test(g + y) ? s : s.parentNode; for (c = s; l; l = l.parentNode)m.push([l, g]), c = l; c === (s.ownerDocument || i) && m.push([c.defaultView || c.parentWindow || e, g]) } for (f = 0; f < m.length && !n.isPropagationStopped(); f++)l = m[f][0], n.type = m[f][1], d = (v._data(l, "events") || {})[n.type] && v._data(l, "handle"), d && d.apply(l, r), d = h && l[h], d && v.acceptData(l) && d.apply && d.apply(l, r) === !1 && n.preventDefault(); return n.type = y, !o && !n.isDefaultPrevented() && (!p._default || p._default.apply(s.ownerDocument, r) === !1) && (y !== "click" || !v.nodeName(s, "a")) && v.acceptData(s) && h && s[y] && (y !== "focus" && y !== "blur" || n.target.offsetWidth !== 0) && !v.isWindow(s) && (c = s[h], c && (s[h] = null), v.event.triggered = y, s[y](), v.event.triggered = t, c && (s[h] = c)), n.result } return }, dispatch: function (n) { n = v.event.fix(n || e.event); var r, i, s, o, u, a, f, c, h, p, d = (v._data(this, "events") || {})[n.type] || [], m = d.delegateCount, g = l.call(arguments), y = !n.exclusive && !n.namespace, b = v.event.special[n.type] || {}, w = []; g[0] = n, n.delegateTarget = this; if (b.preDispatch && b.preDispatch.call(this, n) === !1) return; if (m && (!n.button || n.type !== "click")) for (s = n.target; s != this; s = s.parentNode || this)if (s.disabled !== !0 || n.type !== "click") { u = {}, f = []; for (r = 0; r < m; r++)c = d[r], h = c.selector, u[h] === t && (u[h] = c.needsContext ? v(h, this).index(s) >= 0 : v.find(h, this, null, [s]).length), u[h] && f.push(c); f.length && w.push({ elem: s, matches: f }) } d.length > m && w.push({ elem: this, matches: d.slice(m) }); for (r = 0; r < w.length && !n.isPropagationStopped(); r++) { a = w[r], n.currentTarget = a.elem; for (i = 0; i < a.matches.length && !n.isImmediatePropagationStopped(); i++) { c = a.matches[i]; if (y || !n.namespace && !c.namespace || n.namespace_re && n.namespace_re.test(c.namespace)) n.data = c.data, n.handleObj = c, o = ((v.event.special[c.origType] || {}).handle || c.handler).apply(a.elem, g), o !== t && (n.result = o, o === !1 && (n.preventDefault(), n.stopPropagation())) } } return b.postDispatch && b.postDispatch.call(this, n), n.result }, props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), fixHooks: {}, keyHooks: { props: "char charCode key keyCode".split(" "), filter: function (e, t) { return e.which == null && (e.which = t.charCode != null ? t.charCode : t.keyCode), e } }, mouseHooks: { props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), filter: function (e, n) { var r, s, o, u = n.button, a = n.fromElement; return e.pageX == null && n.clientX != null && (r = e.target.ownerDocument || i, s = r.documentElement, o = r.body, e.pageX = n.clientX + (s && s.scrollLeft || o && o.scrollLeft || 0) - (s && s.clientLeft || o && o.clientLeft || 0), e.pageY = n.clientY + (s && s.scrollTop || o && o.scrollTop || 0) - (s && s.clientTop || o && o.clientTop || 0)), !e.relatedTarget && a && (e.relatedTarget = a === e.target ? n.toElement : a), !e.which && u !== t && (e.which = u & 1 ? 1 : u & 2 ? 3 : u & 4 ? 2 : 0), e } }, fix: function (e) { if (e[v.expando]) return e; var t, n, r = e, s = v.event.fixHooks[e.type] || {}, o = s.props ? this.props.concat(s.props) : this.props; e = v.Event(r); for (t = o.length; t;)n = o[--t], e[n] = r[n]; return e.target || (e.target = r.srcElement || i), e.target.nodeType === 3 && (e.target = e.target.parentNode), e.metaKey = !!e.metaKey, s.filter ? s.filter(e, r) : e }, special: { load: { noBubble: !0 }, focus: { delegateType: "focusin" }, blur: { delegateType: "focusout" }, beforeunload: { setup: function (e, t, n) { v.isWindow(this) && (this.onbeforeunload = n) }, teardown: function (e, t) { this.onbeforeunload === t && (this.onbeforeunload = null) } } }, simulate: function (e, t, n, r) { var i = v.extend(new v.Event, n, { type: e, isSimulated: !0, originalEvent: {} }); r ? v.event.trigger(i, null, t) : v.event.dispatch.call(t, i), i.isDefaultPrevented() && n.preventDefault() } }, v.event.handle = v.event.dispatch, v.removeEvent = i.removeEventListener ? function (e, t, n) { e.removeEventListener && e.removeEventListener(t, n, !1) } : function (e, t, n) { var r = "on" + t; e.detachEvent && (typeof e[r] == "undefined" && (e[r] = null), e.detachEvent(r, n)) }, v.Event = function (e, t) { if (!(this instanceof v.Event)) return new v.Event(e, t); e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || e.returnValue === !1 || e.getPreventDefault && e.getPreventDefault() ? tt : et) : this.type = e, t && v.extend(this, t), this.timeStamp = e && e.timeStamp || v.now(), this[v.expando] = !0 }, v.Event.prototype = { preventDefault: function () { this.isDefaultPrevented = tt; var e = this.originalEvent; if (!e) return; e.preventDefault ? e.preventDefault() : e.returnValue = !1 }, stopPropagation: function () { this.isPropagationStopped = tt; var e = this.originalEvent; if (!e) return; e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0 }, stopImmediatePropagation: function () { this.isImmediatePropagationStopped = tt, this.stopPropagation() }, isDefaultPrevented: et, isPropagationStopped: et, isImmediatePropagationStopped: et }, v.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function (e, t) { v.event.special[e] = { delegateType: t, bindType: t, handle: function (e) { var n, r = this, i = e.relatedTarget, s = e.handleObj, o = s.selector; if (!i || i !== r && !v.contains(r, i)) e.type = s.origType, n = s.handler.apply(this, arguments), e.type = t; return n } } }), v.support.submitBubbles || (v.event.special.submit = { setup: function () { if (v.nodeName(this, "form")) return !1; v.event.add(this, "click._submit keypress._submit", function (e) { var n = e.target, r = v.nodeName(n, "input") || v.nodeName(n, "button") ? n.form : t; r && !v._data(r, "_submit_attached") && (v.event.add(r, "submit._submit", function (e) { e._submit_bubble = !0 }), v._data(r, "_submit_attached", !0)) }) }, postDispatch: function (e) { e._submit_bubble && (delete e._submit_bubble, this.parentNode && !e.isTrigger && v.event.simulate("submit", this.parentNode, e, !0)) }, teardown: function () { if (v.nodeName(this, "form")) return !1; v.event.remove(this, "._submit") } }), v.support.changeBubbles || (v.event.special.change = { setup: function () { if ($.test(this.nodeName)) { if (this.type === "checkbox" || this.type === "radio") v.event.add(this, "propertychange._change", function (e) { e.originalEvent.propertyName === "checked" && (this._just_changed = !0) }), v.event.add(this, "click._change", function (e) { this._just_changed && !e.isTrigger && (this._just_changed = !1), v.event.simulate("change", this, e, !0) }); return !1 } v.event.add(this, "beforeactivate._change", function (e) { var t = e.target; $.test(t.nodeName) && !v._data(t, "_change_attached") && (v.event.add(t, "change._change", function (e) { this.parentNode && !e.isSimulated && !e.isTrigger && v.event.simulate("change", this.parentNode, e, !0) }), v._data(t, "_change_attached", !0)) }) }, handle: function (e) { var t = e.target; if (this !== t || e.isSimulated || e.isTrigger || t.type !== "radio" && t.type !== "checkbox") return e.handleObj.handler.apply(this, arguments) }, teardown: function () { return v.event.remove(this, "._change"), !$.test(this.nodeName) } }), v.support.focusinBubbles || v.each({ focus: "focusin", blur: "focusout" }, function (e, t) { var n = 0, r = function (e) { v.event.simulate(t, e.target, v.event.fix(e), !0) }; v.event.special[t] = { setup: function () { n++ === 0 && i.addEventListener(e, r, !0) }, teardown: function () { --n === 0 && i.removeEventListener(e, r, !0) } } }), v.fn.extend({ on: function (e, n, r, i, s) { var o, u; if (typeof e == "object") { typeof n != "string" && (r = r || n, n = t); for (u in e) this.on(u, n, r, e[u], s); return this } r == null && i == null ? (i = n, r = n = t) : i == null && (typeof n == "string" ? (i = r, r = t) : (i = r, r = n, n = t)); if (i === !1) i = et; else if (!i) return this; return s === 1 && (o = i, i = function (e) { return v().off(e), o.apply(this, arguments) }, i.guid = o.guid || (o.guid = v.guid++)), this.each(function () { v.event.add(this, e, i, r, n) }) }, one: function (e, t, n, r) { return this.on(e, t, n, r, 1) }, off: function (e, n, r) { var i, s; if (e && e.preventDefault && e.handleObj) return i = e.handleObj, v(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this; if (typeof e == "object") { for (s in e) this.off(s, n, e[s]); return this } if (n === !1 || typeof n == "function") r = n, n = t; return r === !1 && (r = et), this.each(function () { v.event.remove(this, e, r, n) }) }, bind: function (e, t, n) { return this.on(e, null, t, n) }, unbind: function (e, t) { return this.off(e, null, t) }, live: function (e, t, n) { return v(this.context).on(e, this.selector, t, n), this }, die: function (e, t) { return v(this.context).off(e, this.selector || "**", t), this }, delegate: function (e, t, n, r) { return this.on(t, e, n, r) }, undelegate: function (e, t, n) { return arguments.length === 1 ? this.off(e, "**") : this.off(t, e || "**", n) }, trigger: function (e, t) { return this.each(function () { v.event.trigger(e, t, this) }) }, triggerHandler: function (e, t) { if (this[0]) return v.event.trigger(e, t, this[0], !0) }, toggle: function (e) { var t = arguments, n = e.guid || v.guid++, r = 0, i = function (n) { var i = (v._data(this, "lastToggle" + e.guid) || 0) % r; return v._data(this, "lastToggle" + e.guid, i + 1), n.preventDefault(), t[i].apply(this, arguments) || !1 }; i.guid = n; while (r < t.length) t[r++].guid = n; return this.click(i) }, hover: function (e, t) { return this.mouseenter(e).mouseleave(t || e) } }), v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function (e, t) { v.fn[t] = function (e, n) { return n == null && (n = e, e = null), arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t) }, Q.test(t) && (v.event.fixHooks[t] = v.event.keyHooks), G.test(t) && (v.event.fixHooks[t] = v.event.mouseHooks) }), function (e, t) { function nt(e, t, n, r) { n = n || [], t = t || g; var i, s, a, f, l = t.nodeType; if (!e || typeof e != "string") return n; if (l !== 1 && l !== 9) return []; a = o(t); if (!a && !r) if (i = R.exec(e)) if (f = i[1]) { if (l === 9) { s = t.getElementById(f); if (!s || !s.parentNode) return n; if (s.id === f) return n.push(s), n } else if (t.ownerDocument && (s = t.ownerDocument.getElementById(f)) && u(t, s) && s.id === f) return n.push(s), n } else { if (i[2]) return S.apply(n, x.call(t.getElementsByTagName(e), 0)), n; if ((f = i[3]) && Z && t.getElementsByClassName) return S.apply(n, x.call(t.getElementsByClassName(f), 0)), n } return vt(e.replace(j, "$1"), t, n, r, a) } function rt(e) { return function (t) { var n = t.nodeName.toLowerCase(); return n === "input" && t.type === e } } function it(e) { return function (t) { var n = t.nodeName.toLowerCase(); return (n === "input" || n === "button") && t.type === e } } function st(e) { return N(function (t) { return t = +t, N(function (n, r) { var i, s = e([], n.length, t), o = s.length; while (o--) n[i = s[o]] && (n[i] = !(r[i] = n[i])) }) }) } function ot(e, t, n) { if (e === t) return n; var r = e.nextSibling; while (r) { if (r === t) return -1; r = r.nextSibling } return 1 } function ut(e, t) { var n, r, s, o, u, a, f, l = L[d][e + " "]; if (l) return t ? 0 : l.slice(0); u = e, a = [], f = i.preFilter; while (u) { if (!n || (r = F.exec(u))) r && (u = u.slice(r[0].length) || u), a.push(s = []); n = !1; if (r = I.exec(u)) s.push(n = new m(r.shift())), u = u.slice(n.length), n.type = r[0].replace(j, " "); for (o in i.filter) (r = J[o].exec(u)) && (!f[o] || (r = f[o](r))) && (s.push(n = new m(r.shift())), u = u.slice(n.length), n.type = o, n.matches = r); if (!n) break } return t ? u.length : u ? nt.error(e) : L(e, a).slice(0) } function at(e, t, r) { var i = t.dir, s = r && t.dir === "parentNode", o = w++; return t.first ? function (t, n, r) { while (t = t[i]) if (s || t.nodeType === 1) return e(t, n, r) } : function (t, r, u) { if (!u) { var a, f = b + " " + o + " ", l = f + n; while (t = t[i]) if (s || t.nodeType === 1) { if ((a = t[d]) === l) return t.sizset; if (typeof a == "string" && a.indexOf(f) === 0) { if (t.sizset) return t } else { t[d] = l; if (e(t, r, u)) return t.sizset = !0, t; t.sizset = !1 } } } else while (t = t[i]) if (s || t.nodeType === 1) if (e(t, r, u)) return t } } function ft(e) { return e.length > 1 ? function (t, n, r) { var i = e.length; while (i--) if (!e[i](t, n, r)) return !1; return !0 } : e[0] } function lt(e, t, n, r, i) { var s, o = [], u = 0, a = e.length, f = t != null; for (; u < a; u++)if (s = e[u]) if (!n || n(s, r, i)) o.push(s), f && t.push(u); return o } function ct(e, t, n, r, i, s) { return r && !r[d] && (r = ct(r)), i && !i[d] && (i = ct(i, s)), N(function (s, o, u, a) { var f, l, c, h = [], p = [], d = o.length, v = s || dt(t || "*", u.nodeType ? [u] : u, []), m = e && (s || !t) ? lt(v, h, e, u, a) : v, g = n ? i || (s ? e : d || r) ? [] : o : m; n && n(m, g, u, a); if (r) { f = lt(g, p), r(f, [], u, a), l = f.length; while (l--) if (c = f[l]) g[p[l]] = !(m[p[l]] = c) } if (s) { if (i || e) { if (i) { f = [], l = g.length; while (l--) (c = g[l]) && f.push(m[l] = c); i(null, g = [], f, a) } l = g.length; while (l--) (c = g[l]) && (f = i ? T.call(s, c) : h[l]) > -1 && (s[f] = !(o[f] = c)) } } else g = lt(g === o ? g.splice(d, g.length) : g), i ? i(null, o, g, a) : S.apply(o, g) }) } function ht(e) { var t, n, r, s = e.length, o = i.relative[e[0].type], u = o || i.relative[" "], a = o ? 1 : 0, f = at(function (e) { return e === t }, u, !0), l = at(function (e) { return T.call(t, e) > -1 }, u, !0), h = [function (e, n, r) { return !o && (r || n !== c) || ((t = n).nodeType ? f(e, n, r) : l(e, n, r)) }]; for (; a < s; a++)if (n = i.relative[e[a].type]) h = [at(ft(h), n)]; else { n = i.filter[e[a].type].apply(null, e[a].matches); if (n[d]) { r = ++a; for (; r < s; r++)if (i.relative[e[r].type]) break; return ct(a > 1 && ft(h), a > 1 && e.slice(0, a - 1).join("").replace(j, "$1"), n, a < r && ht(e.slice(a, r)), r < s && ht(e = e.slice(r)), r < s && e.join("")) } h.push(n) } return ft(h) } function pt(e, t) { var r = t.length > 0, s = e.length > 0, o = function (u, a, f, l, h) { var p, d, v, m = [], y = 0, w = "0", x = u && [], T = h != null, N = c, C = u || s && i.find.TAG("*", h && a.parentNode || a), k = b += N == null ? 1 : Math.E; T && (c = a !== g && a, n = o.el); for (; (p = C[w]) != null; w++) { if (s && p) { for (d = 0; v = e[d]; d++)if (v(p, a, f)) { l.push(p); break } T && (b = k, n = ++o.el) } r && ((p = !v && p) && y--, u && x.push(p)) } y += w; if (r && w !== y) { for (d = 0; v = t[d]; d++)v(x, m, a, f); if (u) { if (y > 0) while (w--) !x[w] && !m[w] && (m[w] = E.call(l)); m = lt(m) } S.apply(l, m), T && !u && m.length > 0 && y + t.length > 1 && nt.uniqueSort(l) } return T && (b = k, c = N), x }; return o.el = 0, r ? N(o) : o } function dt(e, t, n) { var r = 0, i = t.length; for (; r < i; r++)nt(e, t[r], n); return n } function vt(e, t, n, r, s) { var o, u, f, l, c, h = ut(e), p = h.length; if (!r && h.length === 1) { u = h[0] = h[0].slice(0); if (u.length > 2 && (f = u[0]).type === "ID" && t.nodeType === 9 && !s && i.relative[u[1].type]) { t = i.find.ID(f.matches[0].replace($, ""), t, s)[0]; if (!t) return n; e = e.slice(u.shift().length) } for (o = J.POS.test(e) ? -1 : u.length - 1; o >= 0; o--) { f = u[o]; if (i.relative[l = f.type]) break; if (c = i.find[l]) if (r = c(f.matches[0].replace($, ""), z.test(u[0].type) && t.parentNode || t, s)) { u.splice(o, 1), e = r.length && u.join(""); if (!e) return S.apply(n, x.call(r, 0)), n; break } } } return a(e, h)(r, t, s, n, z.test(e)), n } function mt() { } var n, r, i, s, o, u, a, f, l, c, h = !0, p = "undefined", d = ("sizcache" + Math.random()).replace(".", ""), m = String, g = e.document, y = g.documentElement, b = 0, w = 0, E = [].pop, S = [].push, x = [].slice, T = [].indexOf || function (e) { var t = 0, n = this.length; for (; t < n; t++)if (this[t] === e) return t; return -1 }, N = function (e, t) { return e[d] = t == null || t, e }, C = function () { var e = {}, t = []; return N(function (n, r) { return t.push(n) > i.cacheLength && delete e[t.shift()], e[n + " "] = r }, e) }, k = C(), L = C(), A = C(), O = "[\\x20\\t\\r\\n\\f]", M = "(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+", _ = M.replace("w", "w#"), D = "([*^$|!~]?=)", P = "\\[" + O + "*(" + M + ")" + O + "*(?:" + D + O + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + _ + ")|)|)" + O + "*\\]", H = ":(" + M + ")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:" + P + ")|[^:]|\\\\.)*|.*))\\)|)", B = ":(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + O + "*((?:-\\d)?\\d*)" + O + "*\\)|)(?=[^-]|$)", j = new RegExp("^" + O + "+|((?:^|[^\\\\])(?:\\\\.)*)" + O + "+$", "g"), F = new RegExp("^" + O + "*," + O + "*"), I = new RegExp("^" + O + "*([\\x20\\t\\r\\n\\f>+~])" + O + "*"), q = new RegExp(H), R = /^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/, U = /^:not/, z = /[\x20\t\r\n\f]*[+~]/, W = /:not\($/, X = /h\d/i, V = /input|select|textarea|button/i, $ = /\\(?!\\)/g, J = { ID: new RegExp("^#(" + M + ")"), CLASS: new RegExp("^\\.(" + M + ")"), NAME: new RegExp("^\\[name=['\"]?(" + M + ")['\"]?\\]"), TAG: new RegExp("^(" + M.replace("w", "w*") + ")"), ATTR: new RegExp("^" + P), PSEUDO: new RegExp("^" + H), POS: new RegExp(B, "i"), CHILD: new RegExp("^:(only|nth|first|last)-child(?:\\(" + O + "*(even|odd|(([+-]|)(\\d*)n|)" + O + "*(?:([+-]|)" + O + "*(\\d+)|))" + O + "*\\)|)", "i"), needsContext: new RegExp("^" + O + "*[>+~]|" + B, "i") }, K = function (e) { var t = g.createElement("div"); try { return e(t) } catch (n) { return !1 } finally { t = null } }, Q = K(function (e) { return e.appendChild(g.createComment("")), !e.getElementsByTagName("*").length }), G = K(function (e) { return e.innerHTML = "", e.firstChild && typeof e.firstChild.getAttribute !== p && e.firstChild.getAttribute("href") === "#" }), Y = K(function (e) { e.innerHTML = ""; var t = typeof e.lastChild.getAttribute("multiple"); return t !== "boolean" && t !== "string" }), Z = K(function (e) { return e.innerHTML = "", !e.getElementsByClassName || !e.getElementsByClassName("e").length ? !1 : (e.lastChild.className = "e", e.getElementsByClassName("e").length === 2) }), et = K(function (e) { e.id = d + 0, e.innerHTML = "
      ", y.insertBefore(e, y.firstChild); var t = g.getElementsByName && g.getElementsByName(d).length === 2 + g.getElementsByName(d + 0).length; return r = !g.getElementById(d), y.removeChild(e), t }); try { x.call(y.childNodes, 0)[0].nodeType } catch (tt) { x = function (e) { var t, n = []; for (; t = this[e]; e++)n.push(t); return n } } nt.matches = function (e, t) { return nt(e, null, null, t) }, nt.matchesSelector = function (e, t) { return nt(t, null, null, [e]).length > 0 }, s = nt.getText = function (e) { var t, n = "", r = 0, i = e.nodeType; if (i) { if (i === 1 || i === 9 || i === 11) { if (typeof e.textContent == "string") return e.textContent; for (e = e.firstChild; e; e = e.nextSibling)n += s(e) } else if (i === 3 || i === 4) return e.nodeValue } else for (; t = e[r]; r++)n += s(t); return n }, o = nt.isXML = function (e) { var t = e && (e.ownerDocument || e).documentElement; return t ? t.nodeName !== "HTML" : !1 }, u = nt.contains = y.contains ? function (e, t) { var n = e.nodeType === 9 ? e.documentElement : e, r = t && t.parentNode; return e === r || !!(r && r.nodeType === 1 && n.contains && n.contains(r)) } : y.compareDocumentPosition ? function (e, t) { return t && !!(e.compareDocumentPosition(t) & 16) } : function (e, t) { while (t = t.parentNode) if (t === e) return !0; return !1 }, nt.attr = function (e, t) { var n, r = o(e); return r || (t = t.toLowerCase()), (n = i.attrHandle[t]) ? n(e) : r || Y ? e.getAttribute(t) : (n = e.getAttributeNode(t), n ? typeof e[t] == "boolean" ? e[t] ? t : null : n.specified ? n.value : null : null) }, i = nt.selectors = { cacheLength: 50, createPseudo: N, match: J, attrHandle: G ? {} : { href: function (e) { return e.getAttribute("href", 2) }, type: function (e) { return e.getAttribute("type") } }, find: { ID: r ? function (e, t, n) { if (typeof t.getElementById !== p && !n) { var r = t.getElementById(e); return r && r.parentNode ? [r] : [] } } : function (e, n, r) { if (typeof n.getElementById !== p && !r) { var i = n.getElementById(e); return i ? i.id === e || typeof i.getAttributeNode !== p && i.getAttributeNode("id").value === e ? [i] : t : [] } }, TAG: Q ? function (e, t) { if (typeof t.getElementsByTagName !== p) return t.getElementsByTagName(e) } : function (e, t) { var n = t.getElementsByTagName(e); if (e === "*") { var r, i = [], s = 0; for (; r = n[s]; s++)r.nodeType === 1 && i.push(r); return i } return n }, NAME: et && function (e, t) { if (typeof t.getElementsByName !== p) return t.getElementsByName(name) }, CLASS: Z && function (e, t, n) { if (typeof t.getElementsByClassName !== p && !n) return t.getElementsByClassName(e) } }, relative: { ">": { dir: "parentNode", first: !0 }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: !0 }, "~": { dir: "previousSibling" } }, preFilter: { ATTR: function (e) { return e[1] = e[1].replace($, ""), e[3] = (e[4] || e[5] || "").replace($, ""), e[2] === "~=" && (e[3] = " " + e[3] + " "), e.slice(0, 4) }, CHILD: function (e) { return e[1] = e[1].toLowerCase(), e[1] === "nth" ? (e[2] || nt.error(e[0]), e[3] = +(e[3] ? e[4] + (e[5] || 1) : 2 * (e[2] === "even" || e[2] === "odd")), e[4] = +(e[6] + e[7] || e[2] === "odd")) : e[2] && nt.error(e[0]), e }, PSEUDO: function (e) { var t, n; if (J.CHILD.test(e[0])) return null; if (e[3]) e[2] = e[3]; else if (t = e[4]) q.test(t) && (n = ut(t, !0)) && (n = t.indexOf(")", t.length - n) - t.length) && (t = t.slice(0, n), e[0] = e[0].slice(0, n)), e[2] = t; return e.slice(0, 3) } }, filter: { ID: r ? function (e) { return e = e.replace($, ""), function (t) { return t.getAttribute("id") === e } } : function (e) { return e = e.replace($, ""), function (t) { var n = typeof t.getAttributeNode !== p && t.getAttributeNode("id"); return n && n.value === e } }, TAG: function (e) { return e === "*" ? function () { return !0 } : (e = e.replace($, "").toLowerCase(), function (t) { return t.nodeName && t.nodeName.toLowerCase() === e }) }, CLASS: function (e) { var t = k[d][e + " "]; return t || (t = new RegExp("(^|" + O + ")" + e + "(" + O + "|$)")) && k(e, function (e) { return t.test(e.className || typeof e.getAttribute !== p && e.getAttribute("class") || "") }) }, ATTR: function (e, t, n) { return function (r, i) { var s = nt.attr(r, e); return s == null ? t === "!=" : t ? (s += "", t === "=" ? s === n : t === "!=" ? s !== n : t === "^=" ? n && s.indexOf(n) === 0 : t === "*=" ? n && s.indexOf(n) > -1 : t === "$=" ? n && s.substr(s.length - n.length) === n : t === "~=" ? (" " + s + " ").indexOf(n) > -1 : t === "|=" ? s === n || s.substr(0, n.length + 1) === n + "-" : !1) : !0 } }, CHILD: function (e, t, n, r) { return e === "nth" ? function (e) { var t, i, s = e.parentNode; if (n === 1 && r === 0) return !0; if (s) { i = 0; for (t = s.firstChild; t; t = t.nextSibling)if (t.nodeType === 1) { i++; if (e === t) break } } return i -= r, i === n || i % n === 0 && i / n >= 0 } : function (t) { var n = t; switch (e) { case "only": case "first": while (n = n.previousSibling) if (n.nodeType === 1) return !1; if (e === "first") return !0; n = t; case "last": while (n = n.nextSibling) if (n.nodeType === 1) return !1; return !0 } } }, PSEUDO: function (e, t) { var n, r = i.pseudos[e] || i.setFilters[e.toLowerCase()] || nt.error("unsupported pseudo: " + e); return r[d] ? r(t) : r.length > 1 ? (n = [e, e, "", t], i.setFilters.hasOwnProperty(e.toLowerCase()) ? N(function (e, n) { var i, s = r(e, t), o = s.length; while (o--) i = T.call(e, s[o]), e[i] = !(n[i] = s[o]) }) : function (e) { return r(e, 0, n) }) : r } }, pseudos: { not: N(function (e) { var t = [], n = [], r = a(e.replace(j, "$1")); return r[d] ? N(function (e, t, n, i) { var s, o = r(e, null, i, []), u = e.length; while (u--) if (s = o[u]) e[u] = !(t[u] = s) }) : function (e, i, s) { return t[0] = e, r(t, null, s, n), !n.pop() } }), has: N(function (e) { return function (t) { return nt(e, t).length > 0 } }), contains: N(function (e) { return function (t) { return (t.textContent || t.innerText || s(t)).indexOf(e) > -1 } }), enabled: function (e) { return e.disabled === !1 }, disabled: function (e) { return e.disabled === !0 }, checked: function (e) { var t = e.nodeName.toLowerCase(); return t === "input" && !!e.checked || t === "option" && !!e.selected }, selected: function (e) { return e.parentNode && e.parentNode.selectedIndex, e.selected === !0 }, parent: function (e) { return !i.pseudos.empty(e) }, empty: function (e) { var t; e = e.firstChild; while (e) { if (e.nodeName > "@" || (t = e.nodeType) === 3 || t === 4) return !1; e = e.nextSibling } return !0 }, header: function (e) { return X.test(e.nodeName) }, text: function (e) { var t, n; return e.nodeName.toLowerCase() === "input" && (t = e.type) === "text" && ((n = e.getAttribute("type")) == null || n.toLowerCase() === t) }, radio: rt("radio"), checkbox: rt("checkbox"), file: rt("file"), password: rt("password"), image: rt("image"), submit: it("submit"), reset: it("reset"), button: function (e) { var t = e.nodeName.toLowerCase(); return t === "input" && e.type === "button" || t === "button" }, input: function (e) { return V.test(e.nodeName) }, focus: function (e) { var t = e.ownerDocument; return e === t.activeElement && (!t.hasFocus || t.hasFocus()) && !!(e.type || e.href || ~e.tabIndex) }, active: function (e) { return e === e.ownerDocument.activeElement }, first: st(function () { return [0] }), last: st(function (e, t) { return [t - 1] }), eq: st(function (e, t, n) { return [n < 0 ? n + t : n] }), even: st(function (e, t) { for (var n = 0; n < t; n += 2)e.push(n); return e }), odd: st(function (e, t) { for (var n = 1; n < t; n += 2)e.push(n); return e }), lt: st(function (e, t, n) { for (var r = n < 0 ? n + t : n; --r >= 0;)e.push(r); return e }), gt: st(function (e, t, n) { for (var r = n < 0 ? n + t : n; ++r < t;)e.push(r); return e }) } }, f = y.compareDocumentPosition ? function (e, t) { return e === t ? (l = !0, 0) : (!e.compareDocumentPosition || !t.compareDocumentPosition ? e.compareDocumentPosition : e.compareDocumentPosition(t) & 4) ? -1 : 1 } : function (e, t) { if (e === t) return l = !0, 0; if (e.sourceIndex && t.sourceIndex) return e.sourceIndex - t.sourceIndex; var n, r, i = [], s = [], o = e.parentNode, u = t.parentNode, a = o; if (o === u) return ot(e, t); if (!o) return -1; if (!u) return 1; while (a) i.unshift(a), a = a.parentNode; a = u; while (a) s.unshift(a), a = a.parentNode; n = i.length, r = s.length; for (var f = 0; f < n && f < r; f++)if (i[f] !== s[f]) return ot(i[f], s[f]); return f === n ? ot(e, s[f], -1) : ot(i[f], t, 1) }, [0, 0].sort(f), h = !l, nt.uniqueSort = function (e) { var t, n = [], r = 1, i = 0; l = h, e.sort(f); if (l) { for (; t = e[r]; r++)t === e[r - 1] && (i = n.push(r)); while (i--) e.splice(n[i], 1) } return e }, nt.error = function (e) { throw new Error("Syntax error, unrecognized expression: " + e) }, a = nt.compile = function (e, t) { var n, r = [], i = [], s = A[d][e + " "]; if (!s) { t || (t = ut(e)), n = t.length; while (n--) s = ht(t[n]), s[d] ? r.push(s) : i.push(s); s = A(e, pt(i, r)) } return s }, g.querySelectorAll && function () { var e, t = vt, n = /'|\\/g, r = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g, i = [":focus"], s = [":active"], u = y.matchesSelector || y.mozMatchesSelector || y.webkitMatchesSelector || y.oMatchesSelector || y.msMatchesSelector; K(function (e) { e.innerHTML = "", e.querySelectorAll("[selected]").length || i.push("\\[" + O + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)"), e.querySelectorAll(":checked").length || i.push(":checked") }), K(function (e) { e.innerHTML = "

      ", e.querySelectorAll("[test^='']").length && i.push("[*^$]=" + O + "*(?:\"\"|'')"), e.innerHTML = "", e.querySelectorAll(":enabled").length || i.push(":enabled", ":disabled") }), i = new RegExp(i.join("|")), vt = function (e, r, s, o, u) { if (!o && !u && !i.test(e)) { var a, f, l = !0, c = d, h = r, p = r.nodeType === 9 && e; if (r.nodeType === 1 && r.nodeName.toLowerCase() !== "object") { a = ut(e), (l = r.getAttribute("id")) ? c = l.replace(n, "\\$&") : r.setAttribute("id", c), c = "[id='" + c + "'] ", f = a.length; while (f--) a[f] = c + a[f].join(""); h = z.test(e) && r.parentNode || r, p = a.join(",") } if (p) try { return S.apply(s, x.call(h.querySelectorAll(p), 0)), s } catch (v) { } finally { l || r.removeAttribute("id") } } return t(e, r, s, o, u) }, u && (K(function (t) { e = u.call(t, "div"); try { u.call(t, "[test!='']:sizzle"), s.push("!=", H) } catch (n) { } }), s = new RegExp(s.join("|")), nt.matchesSelector = function (t, n) { n = n.replace(r, "='$1']"); if (!o(t) && !s.test(n) && !i.test(n)) try { var a = u.call(t, n); if (a || e || t.document && t.document.nodeType !== 11) return a } catch (f) { } return nt(n, null, null, [t]).length > 0 }) }(), i.pseudos.nth = i.pseudos.eq, i.filters = mt.prototype = i.pseudos, i.setFilters = new mt, nt.attr = v.attr, v.find = nt, v.expr = nt.selectors, v.expr[":"] = v.expr.pseudos, v.unique = nt.uniqueSort, v.text = nt.getText, v.isXMLDoc = nt.isXML, v.contains = nt.contains }(e); var nt = /Until$/, rt = /^(?:parents|prev(?:Until|All))/, it = /^.[^:#\[\.,]*$/, st = v.expr.match.needsContext, ot = { children: !0, contents: !0, next: !0, prev: !0 }; v.fn.extend({ find: function (e) { var t, n, r, i, s, o, u = this; if (typeof e != "string") return v(e).filter(function () { for (t = 0, n = u.length; t < n; t++)if (v.contains(u[t], this)) return !0 }); o = this.pushStack("", "find", e); for (t = 0, n = this.length; t < n; t++) { r = o.length, v.find(e, this[t], o); if (t > 0) for (i = r; i < o.length; i++)for (s = 0; s < r; s++)if (o[s] === o[i]) { o.splice(i--, 1); break } } return o }, has: function (e) { var t, n = v(e, this), r = n.length; return this.filter(function () { for (t = 0; t < r; t++)if (v.contains(this, n[t])) return !0 }) }, not: function (e) { return this.pushStack(ft(this, e, !1), "not", e) }, filter: function (e) { return this.pushStack(ft(this, e, !0), "filter", e) }, is: function (e) { return !!e && (typeof e == "string" ? st.test(e) ? v(e, this.context).index(this[0]) >= 0 : v.filter(e, this).length > 0 : this.filter(e).length > 0) }, closest: function (e, t) { var n, r = 0, i = this.length, s = [], o = st.test(e) || typeof e != "string" ? v(e, t || this.context) : 0; for (; r < i; r++) { n = this[r]; while (n && n.ownerDocument && n !== t && n.nodeType !== 11) { if (o ? o.index(n) > -1 : v.find.matchesSelector(n, e)) { s.push(n); break } n = n.parentNode } } return s = s.length > 1 ? v.unique(s) : s, this.pushStack(s, "closest", e) }, index: function (e) { return e ? typeof e == "string" ? v.inArray(this[0], v(e)) : v.inArray(e.jquery ? e[0] : e, this) : this[0] && this[0].parentNode ? this.prevAll().length : -1 }, add: function (e, t) { var n = typeof e == "string" ? v(e, t) : v.makeArray(e && e.nodeType ? [e] : e), r = v.merge(this.get(), n); return this.pushStack(ut(n[0]) || ut(r[0]) ? r : v.unique(r)) }, addBack: function (e) { return this.add(e == null ? this.prevObject : this.prevObject.filter(e)) } }), v.fn.andSelf = v.fn.addBack, v.each({ parent: function (e) { var t = e.parentNode; return t && t.nodeType !== 11 ? t : null }, parents: function (e) { return v.dir(e, "parentNode") }, parentsUntil: function (e, t, n) { return v.dir(e, "parentNode", n) }, next: function (e) { return at(e, "nextSibling") }, prev: function (e) { return at(e, "previousSibling") }, nextAll: function (e) { return v.dir(e, "nextSibling") }, prevAll: function (e) { return v.dir(e, "previousSibling") }, nextUntil: function (e, t, n) { return v.dir(e, "nextSibling", n) }, prevUntil: function (e, t, n) { return v.dir(e, "previousSibling", n) }, siblings: function (e) { return v.sibling((e.parentNode || {}).firstChild, e) }, children: function (e) { return v.sibling(e.firstChild) }, contents: function (e) { return v.nodeName(e, "iframe") ? e.contentDocument || e.contentWindow.document : v.merge([], e.childNodes) } }, function (e, t) { v.fn[e] = function (n, r) { var i = v.map(this, t, n); return nt.test(e) || (r = n), r && typeof r == "string" && (i = v.filter(r, i)), i = this.length > 1 && !ot[e] ? v.unique(i) : i, this.length > 1 && rt.test(e) && (i = i.reverse()), this.pushStack(i, e, l.call(arguments).join(",")) } }), v.extend({ filter: function (e, t, n) { return n && (e = ":not(" + e + ")"), t.length === 1 ? v.find.matchesSelector(t[0], e) ? [t[0]] : [] : v.find.matches(e, t) }, dir: function (e, n, r) { var i = [], s = e[n]; while (s && s.nodeType !== 9 && (r === t || s.nodeType !== 1 || !v(s).is(r))) s.nodeType === 1 && i.push(s), s = s[n]; return i }, sibling: function (e, t) { var n = []; for (; e; e = e.nextSibling)e.nodeType === 1 && e !== t && n.push(e); return n } }); var ct = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", ht = / jQuery\d+="(?:null|\d+)"/g, pt = /^\s+/, dt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, vt = /<([\w:]+)/, mt = /]", "i"), Et = /^(?:checkbox|radio)$/, St = /checked\s*(?:[^=]|=\s*.checked.)/i, xt = /\/(java|ecma)script/i, Tt = /^\s*\s*$/g, Nt = { option: [1, ""], legend: [1, "
      ", "
      "], thead: [1, "", "
      "], tr: [2, "", "
      "], td: [3, "", "
      "], col: [2, "", "
      "], area: [1, "", ""], _default: [0, "", ""] }, Ct = lt(i), kt = Ct.appendChild(i.createElement("div")); Nt.optgroup = Nt.option, Nt.tbody = Nt.tfoot = Nt.colgroup = Nt.caption = Nt.thead, Nt.th = Nt.td, v.support.htmlSerialize || (Nt._default = [1, "X
      ", "
      "]), v.fn.extend({ text: function (e) { return v.access(this, function (e) { return e === t ? v.text(this) : this.empty().append((this[0] && this[0].ownerDocument || i).createTextNode(e)) }, null, e, arguments.length) }, wrapAll: function (e) { if (v.isFunction(e)) return this.each(function (t) { v(this).wrapAll(e.call(this, t)) }); if (this[0]) { var t = v(e, this[0].ownerDocument).eq(0).clone(!0); this[0].parentNode && t.insertBefore(this[0]), t.map(function () { var e = this; while (e.firstChild && e.firstChild.nodeType === 1) e = e.firstChild; return e }).append(this) } return this }, wrapInner: function (e) { return v.isFunction(e) ? this.each(function (t) { v(this).wrapInner(e.call(this, t)) }) : this.each(function () { var t = v(this), n = t.contents(); n.length ? n.wrapAll(e) : t.append(e) }) }, wrap: function (e) { var t = v.isFunction(e); return this.each(function (n) { v(this).wrapAll(t ? e.call(this, n) : e) }) }, unwrap: function () { return this.parent().each(function () { v.nodeName(this, "body") || v(this).replaceWith(this.childNodes) }).end() }, append: function () { return this.domManip(arguments, !0, function (e) { (this.nodeType === 1 || this.nodeType === 11) && this.appendChild(e) }) }, prepend: function () { return this.domManip(arguments, !0, function (e) { (this.nodeType === 1 || this.nodeType === 11) && this.insertBefore(e, this.firstChild) }) }, before: function () { if (!ut(this[0])) return this.domManip(arguments, !1, function (e) { this.parentNode.insertBefore(e, this) }); if (arguments.length) { var e = v.clean(arguments); return this.pushStack(v.merge(e, this), "before", this.selector) } }, after: function () { if (!ut(this[0])) return this.domManip(arguments, !1, function (e) { this.parentNode.insertBefore(e, this.nextSibling) }); if (arguments.length) { var e = v.clean(arguments); return this.pushStack(v.merge(this, e), "after", this.selector) } }, remove: function (e, t) { var n, r = 0; for (; (n = this[r]) != null; r++)if (!e || v.filter(e, [n]).length) !t && n.nodeType === 1 && (v.cleanData(n.getElementsByTagName("*")), v.cleanData([n])), n.parentNode && n.parentNode.removeChild(n); return this }, empty: function () { var e, t = 0; for (; (e = this[t]) != null; t++) { e.nodeType === 1 && v.cleanData(e.getElementsByTagName("*")); while (e.firstChild) e.removeChild(e.firstChild) } return this }, clone: function (e, t) { return e = e == null ? !1 : e, t = t == null ? e : t, this.map(function () { return v.clone(this, e, t) }) }, html: function (e) { return v.access(this, function (e) { var n = this[0] || {}, r = 0, i = this.length; if (e === t) return n.nodeType === 1 ? n.innerHTML.replace(ht, "") : t; if (typeof e == "string" && !yt.test(e) && (v.support.htmlSerialize || !wt.test(e)) && (v.support.leadingWhitespace || !pt.test(e)) && !Nt[(vt.exec(e) || ["", ""])[1].toLowerCase()]) { e = e.replace(dt, "<$1>"); try { for (; r < i; r++)n = this[r] || {}, n.nodeType === 1 && (v.cleanData(n.getElementsByTagName("*")), n.innerHTML = e); n = 0 } catch (s) { } } n && this.empty().append(e) }, null, e, arguments.length) }, replaceWith: function (e) { return ut(this[0]) ? this.length ? this.pushStack(v(v.isFunction(e) ? e() : e), "replaceWith", e) : this : v.isFunction(e) ? this.each(function (t) { var n = v(this), r = n.html(); n.replaceWith(e.call(this, t, r)) }) : (typeof e != "string" && (e = v(e).detach()), this.each(function () { var t = this.nextSibling, n = this.parentNode; v(this).remove(), t ? v(t).before(e) : v(n).append(e) })) }, detach: function (e) { return this.remove(e, !0) }, domManip: function (e, n, r) { e = [].concat.apply([], e); var i, s, o, u, a = 0, f = e[0], l = [], c = this.length; if (!v.support.checkClone && c > 1 && typeof f == "string" && St.test(f)) return this.each(function () { v(this).domManip(e, n, r) }); if (v.isFunction(f)) return this.each(function (i) { var s = v(this); e[0] = f.call(this, i, n ? s.html() : t), s.domManip(e, n, r) }); if (this[0]) { i = v.buildFragment(e, this, l), o = i.fragment, s = o.firstChild, o.childNodes.length === 1 && (o = s); if (s) { n = n && v.nodeName(s, "tr"); for (u = i.cacheable || c - 1; a < c; a++)r.call(n && v.nodeName(this[a], "table") ? Lt(this[a], "tbody") : this[a], a === u ? o : v.clone(o, !0, !0)) } o = s = null, l.length && v.each(l, function (e, t) { t.src ? v.ajax ? v.ajax({ url: t.src, type: "GET", dataType: "script", async: !1, global: !1, "throws": !0 }) : v.error("no ajax") : v.globalEval((t.text || t.textContent || t.innerHTML || "").replace(Tt, "")), t.parentNode && t.parentNode.removeChild(t) }) } return this } }), v.buildFragment = function (e, n, r) { var s, o, u, a = e[0]; return n = n || i, n = !n.nodeType && n[0] || n, n = n.ownerDocument || n, e.length === 1 && typeof a == "string" && a.length < 512 && n === i && a.charAt(0) === "<" && !bt.test(a) && (v.support.checkClone || !St.test(a)) && (v.support.html5Clone || !wt.test(a)) && (o = !0, s = v.fragments[a], u = s !== t), s || (s = n.createDocumentFragment(), v.clean(e, n, s, r), o && (v.fragments[a] = u && s)), { fragment: s, cacheable: o } }, v.fragments = {}, v.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (e, t) { v.fn[e] = function (n) { var r, i = 0, s = [], o = v(n), u = o.length, a = this.length === 1 && this[0].parentNode; if ((a == null || a && a.nodeType === 11 && a.childNodes.length === 1) && u === 1) return o[t](this[0]), this; for (; i < u; i++)r = (i > 0 ? this.clone(!0) : this).get(), v(o[i])[t](r), s = s.concat(r); return this.pushStack(s, e, o.selector) } }), v.extend({ clone: function (e, t, n) { var r, i, s, o; v.support.html5Clone || v.isXMLDoc(e) || !wt.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (kt.innerHTML = e.outerHTML, kt.removeChild(o = kt.firstChild)); if ((!v.support.noCloneEvent || !v.support.noCloneChecked) && (e.nodeType === 1 || e.nodeType === 11) && !v.isXMLDoc(e)) { Ot(e, o), r = Mt(e), i = Mt(o); for (s = 0; r[s]; ++s)i[s] && Ot(r[s], i[s]) } if (t) { At(e, o); if (n) { r = Mt(e), i = Mt(o); for (s = 0; r[s]; ++s)At(r[s], i[s]) } } return r = i = null, o }, clean: function (e, t, n, r) { var s, o, u, a, f, l, c, h, p, d, m, g, y = t === i && Ct, b = []; if (!t || typeof t.createDocumentFragment == "undefined") t = i; for (s = 0; (u = e[s]) != null; s++) { typeof u == "number" && (u += ""); if (!u) continue; if (typeof u == "string") if (!gt.test(u)) u = t.createTextNode(u); else { y = y || lt(t), c = t.createElement("div"), y.appendChild(c), u = u.replace(dt, "<$1>"), a = (vt.exec(u) || ["", ""])[1].toLowerCase(), f = Nt[a] || Nt._default, l = f[0], c.innerHTML = f[1] + u + f[2]; while (l--) c = c.lastChild; if (!v.support.tbody) { h = mt.test(u), p = a === "table" && !h ? c.firstChild && c.firstChild.childNodes : f[1] === "" && !h ? c.childNodes : []; for (o = p.length - 1; o >= 0; --o)v.nodeName(p[o], "tbody") && !p[o].childNodes.length && p[o].parentNode.removeChild(p[o]) } !v.support.leadingWhitespace && pt.test(u) && c.insertBefore(t.createTextNode(pt.exec(u)[0]), c.firstChild), u = c.childNodes, c.parentNode.removeChild(c) } u.nodeType ? b.push(u) : v.merge(b, u) } c && (u = c = y = null); if (!v.support.appendChecked) for (s = 0; (u = b[s]) != null; s++)v.nodeName(u, "input") ? _t(u) : typeof u.getElementsByTagName != "undefined" && v.grep(u.getElementsByTagName("input"), _t); if (n) { m = function (e) { if (!e.type || xt.test(e.type)) return r ? r.push(e.parentNode ? e.parentNode.removeChild(e) : e) : n.appendChild(e) }; for (s = 0; (u = b[s]) != null; s++)if (!v.nodeName(u, "script") || !m(u)) n.appendChild(u), typeof u.getElementsByTagName != "undefined" && (g = v.grep(v.merge([], u.getElementsByTagName("script")), m), b.splice.apply(b, [s + 1, 0].concat(g)), s += g.length) } return b }, cleanData: function (e, t) { var n, r, i, s, o = 0, u = v.expando, a = v.cache, f = v.support.deleteExpando, l = v.event.special; for (; (i = e[o]) != null; o++)if (t || v.acceptData(i)) { r = i[u], n = r && a[r]; if (n) { if (n.events) for (s in n.events) l[s] ? v.event.remove(i, s) : v.removeEvent(i, s, n.handle); a[r] && (delete a[r], f ? delete i[u] : i.removeAttribute ? i.removeAttribute(u) : i[u] = null, v.deletedIds.push(r)) } } } }), function () { var e, t; v.uaMatch = function (e) { e = e.toLowerCase(); var t = /(chrome)[ \/]([\w.]+)/.exec(e) || /(webkit)[ \/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e) || /(msie) ([\w.]+)/.exec(e) || e.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e) || []; return { browser: t[1] || "", version: t[2] || "0" } }, e = v.uaMatch(o.userAgent), t = {}, e.browser && (t[e.browser] = !0, t.version = e.version), t.chrome ? t.webkit = !0 : t.webkit && (t.safari = !0), v.browser = t, v.sub = function () { function e(t, n) { return new e.fn.init(t, n) } v.extend(!0, e, this), e.superclass = this, e.fn = e.prototype = this(), e.fn.constructor = e, e.sub = this.sub, e.fn.init = function (r, i) { return i && i instanceof v && !(i instanceof e) && (i = e(i)), v.fn.init.call(this, r, i, t) }, e.fn.init.prototype = e.fn; var t = e(i); return e } }(); var Dt, Pt, Ht, Bt = /alpha\([^)]*\)/i, jt = /opacity=([^)]*)/, Ft = /^(top|right|bottom|left)$/, It = /^(none|table(?!-c[ea]).+)/, qt = /^margin/, Rt = new RegExp("^(" + m + ")(.*)$", "i"), Ut = new RegExp("^(" + m + ")(?!px)[a-z%]+$", "i"), zt = new RegExp("^([-+])=(" + m + ")", "i"), Wt = { BODY: "block" }, Xt = { position: "absolute", visibility: "hidden", display: "block" }, Vt = { letterSpacing: 0, fontWeight: 400 }, $t = ["Top", "Right", "Bottom", "Left"], Jt = ["Webkit", "O", "Moz", "ms"], Kt = v.fn.toggle; v.fn.extend({ css: function (e, n) { return v.access(this, function (e, n, r) { return r !== t ? v.style(e, n, r) : v.css(e, n) }, e, n, arguments.length > 1) }, show: function () { return Yt(this, !0) }, hide: function () { return Yt(this) }, toggle: function (e, t) { var n = typeof e == "boolean"; return v.isFunction(e) && v.isFunction(t) ? Kt.apply(this, arguments) : this.each(function () { (n ? e : Gt(this)) ? v(this).show() : v(this).hide() }) } }), v.extend({ cssHooks: { opacity: { get: function (e, t) { if (t) { var n = Dt(e, "opacity"); return n === "" ? "1" : n } } } }, cssNumber: { fillOpacity: !0, fontWeight: !0, lineHeight: !0, opacity: !0, orphans: !0, widows: !0, zIndex: !0, zoom: !0 }, cssProps: { "float": v.support.cssFloat ? "cssFloat" : "styleFloat" }, style: function (e, n, r, i) { if (!e || e.nodeType === 3 || e.nodeType === 8 || !e.style) return; var s, o, u, a = v.camelCase(n), f = e.style; n = v.cssProps[a] || (v.cssProps[a] = Qt(f, a)), u = v.cssHooks[n] || v.cssHooks[a]; if (r === t) return u && "get" in u && (s = u.get(e, !1, i)) !== t ? s : f[n]; o = typeof r, o === "string" && (s = zt.exec(r)) && (r = (s[1] + 1) * s[2] + parseFloat(v.css(e, n)), o = "number"); if (r == null || o === "number" && isNaN(r)) return; o === "number" && !v.cssNumber[a] && (r += "px"); if (!u || !("set" in u) || (r = u.set(e, r, i)) !== t) try { f[n] = r } catch (l) { } }, css: function (e, n, r, i) { var s, o, u, a = v.camelCase(n); return n = v.cssProps[a] || (v.cssProps[a] = Qt(e.style, a)), u = v.cssHooks[n] || v.cssHooks[a], u && "get" in u && (s = u.get(e, !0, i)), s === t && (s = Dt(e, n)), s === "normal" && n in Vt && (s = Vt[n]), r || i !== t ? (o = parseFloat(s), r || v.isNumeric(o) ? o || 0 : s) : s }, swap: function (e, t, n) { var r, i, s = {}; for (i in t) s[i] = e.style[i], e.style[i] = t[i]; r = n.call(e); for (i in t) e.style[i] = s[i]; return r } }), e.getComputedStyle ? Dt = function (t, n) { var r, i, s, o, u = e.getComputedStyle(t, null), a = t.style; return u && (r = u.getPropertyValue(n) || u[n], r === "" && !v.contains(t.ownerDocument, t) && (r = v.style(t, n)), Ut.test(r) && qt.test(n) && (i = a.width, s = a.minWidth, o = a.maxWidth, a.minWidth = a.maxWidth = a.width = r, r = u.width, a.width = i, a.minWidth = s, a.maxWidth = o)), r } : i.documentElement.currentStyle && (Dt = function (e, t) { var n, r, i = e.currentStyle && e.currentStyle[t], s = e.style; return i == null && s && s[t] && (i = s[t]), Ut.test(i) && !Ft.test(t) && (n = s.left, r = e.runtimeStyle && e.runtimeStyle.left, r && (e.runtimeStyle.left = e.currentStyle.left), s.left = t === "fontSize" ? "1em" : i, i = s.pixelLeft + "px", s.left = n, r && (e.runtimeStyle.left = r)), i === "" ? "auto" : i }), v.each(["height", "width"], function (e, t) { v.cssHooks[t] = { get: function (e, n, r) { if (n) return e.offsetWidth === 0 && It.test(Dt(e, "display")) ? v.swap(e, Xt, function () { return tn(e, t, r) }) : tn(e, t, r) }, set: function (e, n, r) { return Zt(e, n, r ? en(e, t, r, v.support.boxSizing && v.css(e, "boxSizing") === "border-box") : 0) } } }), v.support.opacity || (v.cssHooks.opacity = { get: function (e, t) { return jt.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : "" }, set: function (e, t) { var n = e.style, r = e.currentStyle, i = v.isNumeric(t) ? "alpha(opacity=" + t * 100 + ")" : "", s = r && r.filter || n.filter || ""; n.zoom = 1; if (t >= 1 && v.trim(s.replace(Bt, "")) === "" && n.removeAttribute) { n.removeAttribute("filter"); if (r && !r.filter) return } n.filter = Bt.test(s) ? s.replace(Bt, i) : s + " " + i } }), v(function () { v.support.reliableMarginRight || (v.cssHooks.marginRight = { get: function (e, t) { return v.swap(e, { display: "inline-block" }, function () { if (t) return Dt(e, "marginRight") }) } }), !v.support.pixelPosition && v.fn.position && v.each(["top", "left"], function (e, t) { v.cssHooks[t] = { get: function (e, n) { if (n) { var r = Dt(e, t); return Ut.test(r) ? v(e).position()[t] + "px" : r } } } }) }), v.expr && v.expr.filters && (v.expr.filters.hidden = function (e) { return e.offsetWidth === 0 && e.offsetHeight === 0 || !v.support.reliableHiddenOffsets && (e.style && e.style.display || Dt(e, "display")) === "none" }, v.expr.filters.visible = function (e) { return !v.expr.filters.hidden(e) }), v.each({ margin: "", padding: "", border: "Width" }, function (e, t) { v.cssHooks[e + t] = { expand: function (n) { var r, i = typeof n == "string" ? n.split(" ") : [n], s = {}; for (r = 0; r < 4; r++)s[e + $t[r] + t] = i[r] || i[r - 2] || i[0]; return s } }, qt.test(e) || (v.cssHooks[e + t].set = Zt) }); var rn = /%20/g, sn = /\[\]$/, on = /\r?\n/g, un = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, an = /^(?:select|textarea)/i; v.fn.extend({ serialize: function () { return v.param(this.serializeArray()) }, serializeArray: function () { return this.map(function () { return this.elements ? v.makeArray(this.elements) : this }).filter(function () { return this.name && !this.disabled && (this.checked || an.test(this.nodeName) || un.test(this.type)) }).map(function (e, t) { var n = v(this).val(); return n == null ? null : v.isArray(n) ? v.map(n, function (e, n) { return { name: t.name, value: e.replace(on, "\r\n") } }) : { name: t.name, value: n.replace(on, "\r\n") } }).get() } }), v.param = function (e, n) { var r, i = [], s = function (e, t) { t = v.isFunction(t) ? t() : t == null ? "" : t, i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t) }; n === t && (n = v.ajaxSettings && v.ajaxSettings.traditional); if (v.isArray(e) || e.jquery && !v.isPlainObject(e)) v.each(e, function () { s(this.name, this.value) }); else for (r in e) fn(r, e[r], n, s); return i.join("&").replace(rn, "+") }; var ln, cn, hn = /#.*$/, pn = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, dn = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/, vn = /^(?:GET|HEAD)$/, mn = /^\/\//, gn = /\?/, yn = /)<[^<]*)*<\/script>/gi, bn = /([?&])_=[^&]*/, wn = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, En = v.fn.load, Sn = {}, xn = {}, Tn = ["*/"] + ["*"]; try { cn = s.href } catch (Nn) { cn = i.createElement("a"), cn.href = "", cn = cn.href } ln = wn.exec(cn.toLowerCase()) || [], v.fn.load = function (e, n, r) { if (typeof e != "string" && En) return En.apply(this, arguments); if (!this.length) return this; var i, s, o, u = this, a = e.indexOf(" "); return a >= 0 && (i = e.slice(a, e.length), e = e.slice(0, a)), v.isFunction(n) ? (r = n, n = t) : n && typeof n == "object" && (s = "POST"), v.ajax({ url: e, type: s, dataType: "html", data: n, complete: function (e, t) { r && u.each(r, o || [e.responseText, t, e]) } }).done(function (e) { o = arguments, u.html(i ? v("
      ").append(e.replace(yn, "")).find(i) : e) }), this }, v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function (e, t) { v.fn[t] = function (e) { return this.on(t, e) } }), v.each(["get", "post"], function (e, n) { v[n] = function (e, r, i, s) { return v.isFunction(r) && (s = s || i, i = r, r = t), v.ajax({ type: n, url: e, data: r, success: i, dataType: s }) } }), v.extend({ getScript: function (e, n) { return v.get(e, t, n, "script") }, getJSON: function (e, t, n) { return v.get(e, t, n, "json") }, ajaxSetup: function (e, t) { return t ? Ln(e, v.ajaxSettings) : (t = e, e = v.ajaxSettings), Ln(e, t), e }, ajaxSettings: { url: cn, isLocal: dn.test(ln[1]), global: !0, type: "GET", contentType: "application/x-www-form-urlencoded; charset=UTF-8", processData: !0, async: !0, accepts: { xml: "application/xml, text/xml", html: "text/html", text: "text/plain", json: "application/json, text/javascript", "*": Tn }, contents: { xml: /xml/, html: /html/, json: /json/ }, responseFields: { xml: "responseXML", text: "responseText" }, converters: { "* text": e.String, "text html": !0, "text json": v.parseJSON, "text xml": v.parseXML }, flatOptions: { context: !0, url: !0 } }, ajaxPrefilter: Cn(Sn), ajaxTransport: Cn(xn), ajax: function (e, n) { function T(e, n, s, a) { var l, y, b, w, S, T = n; if (E === 2) return; E = 2, u && clearTimeout(u), o = t, i = a || "", x.readyState = e > 0 ? 4 : 0, s && (w = An(c, x, s)); if (e >= 200 && e < 300 || e === 304) c.ifModified && (S = x.getResponseHeader("Last-Modified"), S && (v.lastModified[r] = S), S = x.getResponseHeader("Etag"), S && (v.etag[r] = S)), e === 304 ? (T = "notmodified", l = !0) : (l = On(c, w), T = l.state, y = l.data, b = l.error, l = !b); else { b = T; if (!T || e) T = "error", e < 0 && (e = 0) } x.status = e, x.statusText = (n || T) + "", l ? d.resolveWith(h, [y, T, x]) : d.rejectWith(h, [x, T, b]), x.statusCode(g), g = t, f && p.trigger("ajax" + (l ? "Success" : "Error"), [x, c, l ? y : b]), m.fireWith(h, [x, T]), f && (p.trigger("ajaxComplete", [x, c]), --v.active || v.event.trigger("ajaxStop")) } typeof e == "object" && (n = e, e = t), n = n || {}; var r, i, s, o, u, a, f, l, c = v.ajaxSetup({}, n), h = c.context || c, p = h !== c && (h.nodeType || h instanceof v) ? v(h) : v.event, d = v.Deferred(), m = v.Callbacks("once memory"), g = c.statusCode || {}, b = {}, w = {}, E = 0, S = "canceled", x = { readyState: 0, setRequestHeader: function (e, t) { if (!E) { var n = e.toLowerCase(); e = w[n] = w[n] || e, b[e] = t } return this }, getAllResponseHeaders: function () { return E === 2 ? i : null }, getResponseHeader: function (e) { var n; if (E === 2) { if (!s) { s = {}; while (n = pn.exec(i)) s[n[1].toLowerCase()] = n[2] } n = s[e.toLowerCase()] } return n === t ? null : n }, overrideMimeType: function (e) { return E || (c.mimeType = e), this }, abort: function (e) { return e = e || S, o && o.abort(e), T(0, e), this } }; d.promise(x), x.success = x.done, x.error = x.fail, x.complete = m.add, x.statusCode = function (e) { if (e) { var t; if (E < 2) for (t in e) g[t] = [g[t], e[t]]; else t = e[x.status], x.always(t) } return this }, c.url = ((e || c.url) + "").replace(hn, "").replace(mn, ln[1] + "//"), c.dataTypes = v.trim(c.dataType || "*").toLowerCase().split(y), c.crossDomain == null && (a = wn.exec(c.url.toLowerCase()), c.crossDomain = !(!a || a[1] === ln[1] && a[2] === ln[2] && (a[3] || (a[1] === "http:" ? 80 : 443)) == (ln[3] || (ln[1] === "http:" ? 80 : 443)))), c.data && c.processData && typeof c.data != "string" && (c.data = v.param(c.data, c.traditional)), kn(Sn, c, n, x); if (E === 2) return x; f = c.global, c.type = c.type.toUpperCase(), c.hasContent = !vn.test(c.type), f && v.active++ === 0 && v.event.trigger("ajaxStart"); if (!c.hasContent) { c.data && (c.url += (gn.test(c.url) ? "&" : "?") + c.data, delete c.data), r = c.url; if (c.cache === !1) { var N = v.now(), C = c.url.replace(bn, "$1_=" + N); c.url = C + (C === c.url ? (gn.test(c.url) ? "&" : "?") + "_=" + N : "") } } (c.data && c.hasContent && c.contentType !== !1 || n.contentType) && x.setRequestHeader("Content-Type", c.contentType), c.ifModified && (r = r || c.url, v.lastModified[r] && x.setRequestHeader("If-Modified-Since", v.lastModified[r]), v.etag[r] && x.setRequestHeader("If-None-Match", v.etag[r])), x.setRequestHeader("Accept", c.dataTypes[0] && c.accepts[c.dataTypes[0]] ? c.accepts[c.dataTypes[0]] + (c.dataTypes[0] !== "*" ? ", " + Tn + "; q=0.01" : "") : c.accepts["*"]); for (l in c.headers) x.setRequestHeader(l, c.headers[l]); if (!c.beforeSend || c.beforeSend.call(h, x, c) !== !1 && E !== 2) { S = "abort"; for (l in { success: 1, error: 1, complete: 1 }) x[l](c[l]); o = kn(xn, c, n, x); if (!o) T(-1, "No Transport"); else { x.readyState = 1, f && p.trigger("ajaxSend", [x, c]), c.async && c.timeout > 0 && (u = setTimeout(function () { x.abort("timeout") }, c.timeout)); try { E = 1, o.send(b, T) } catch (k) { if (!(E < 2)) throw k; T(-1, k) } } return x } return x.abort() }, active: 0, lastModified: {}, etag: {} }); var Mn = [], _n = /\?/, Dn = /(=)\?(?=&|$)|\?\?/, Pn = v.now(); v.ajaxSetup({ jsonp: "callback", jsonpCallback: function () { var e = Mn.pop() || v.expando + "_" + Pn++; return this[e] = !0, e } }), v.ajaxPrefilter("json jsonp", function (n, r, i) { var s, o, u, a = n.data, f = n.url, l = n.jsonp !== !1, c = l && Dn.test(f), h = l && !c && typeof a == "string" && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && Dn.test(a); if (n.dataTypes[0] === "jsonp" || c || h) return s = n.jsonpCallback = v.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback, o = e[s], c ? n.url = f.replace(Dn, "$1" + s) : h ? n.data = a.replace(Dn, "$1" + s) : l && (n.url += (_n.test(f) ? "&" : "?") + n.jsonp + "=" + s), n.converters["script json"] = function () { return u || v.error(s + " was not called"), u[0] }, n.dataTypes[0] = "json", e[s] = function () { u = arguments }, i.always(function () { e[s] = o, n[s] && (n.jsonpCallback = r.jsonpCallback, Mn.push(s)), u && v.isFunction(o) && o(u[0]), u = o = t }), "script" }), v.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" }, contents: { script: /javascript|ecmascript/ }, converters: { "text script": function (e) { return v.globalEval(e), e } } }), v.ajaxPrefilter("script", function (e) { e.cache === t && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1) }), v.ajaxTransport("script", function (e) { if (e.crossDomain) { var n, r = i.head || i.getElementsByTagName("head")[0] || i.documentElement; return { send: function (s, o) { n = i.createElement("script"), n.async = "async", e.scriptCharset && (n.charset = e.scriptCharset), n.src = e.url, n.onload = n.onreadystatechange = function (e, i) { if (i || !n.readyState || /loaded|complete/.test(n.readyState)) n.onload = n.onreadystatechange = null, r && n.parentNode && r.removeChild(n), n = t, i || o(200, "success") }, r.insertBefore(n, r.firstChild) }, abort: function () { n && n.onload(0, 1) } } } }); var Hn, Bn = e.ActiveXObject ? function () { for (var e in Hn) Hn[e](0, 1) } : !1, jn = 0; v.ajaxSettings.xhr = e.ActiveXObject ? function () { return !this.isLocal && Fn() || In() } : Fn, function (e) { v.extend(v.support, { ajax: !!e, cors: !!e && "withCredentials" in e }) }(v.ajaxSettings.xhr()), v.support.ajax && v.ajaxTransport(function (n) { if (!n.crossDomain || v.support.cors) { var r; return { send: function (i, s) { var o, u, a = n.xhr(); n.username ? a.open(n.type, n.url, n.async, n.username, n.password) : a.open(n.type, n.url, n.async); if (n.xhrFields) for (u in n.xhrFields) a[u] = n.xhrFields[u]; n.mimeType && a.overrideMimeType && a.overrideMimeType(n.mimeType), !n.crossDomain && !i["X-Requested-With"] && (i["X-Requested-With"] = "XMLHttpRequest"); try { for (u in i) a.setRequestHeader(u, i[u]) } catch (f) { } a.send(n.hasContent && n.data || null), r = function (e, i) { var u, f, l, c, h; try { if (r && (i || a.readyState === 4)) { r = t, o && (a.onreadystatechange = v.noop, Bn && delete Hn[o]); if (i) a.readyState !== 4 && a.abort(); else { u = a.status, l = a.getAllResponseHeaders(), c = {}, h = a.responseXML, h && h.documentElement && (c.xml = h); try { c.text = a.responseText } catch (p) { } try { f = a.statusText } catch (p) { f = "" } !u && n.isLocal && !n.crossDomain ? u = c.text ? 200 : 404 : u === 1223 && (u = 204) } } } catch (d) { i || s(-1, d) } c && s(u, f, c, l) }, n.async ? a.readyState === 4 ? setTimeout(r, 0) : (o = ++jn, Bn && (Hn || (Hn = {}, v(e).unload(Bn)), Hn[o] = r), a.onreadystatechange = r) : r() }, abort: function () { r && r(0, 1) } } } }); var qn, Rn, Un = /^(?:toggle|show|hide)$/, zn = new RegExp("^(?:([-+])=|)(" + m + ")([a-z%]*)$", "i"), Wn = /queueHooks$/, Xn = [Gn], Vn = { "*": [function (e, t) { var n, r, i = this.createTween(e, t), s = zn.exec(t), o = i.cur(), u = +o || 0, a = 1, f = 20; if (s) { n = +s[2], r = s[3] || (v.cssNumber[e] ? "" : "px"); if (r !== "px" && u) { u = v.css(i.elem, e, !0) || n || 1; do a = a || ".5", u /= a, v.style(i.elem, e, u + r); while (a !== (a = i.cur() / o) && a !== 1 && --f) } i.unit = r, i.start = u, i.end = s[1] ? u + (s[1] + 1) * n : n } return i }] }; v.Animation = v.extend(Kn, { tweener: function (e, t) { v.isFunction(e) ? (t = e, e = ["*"]) : e = e.split(" "); var n, r = 0, i = e.length; for (; r < i; r++)n = e[r], Vn[n] = Vn[n] || [], Vn[n].unshift(t) }, prefilter: function (e, t) { t ? Xn.unshift(e) : Xn.push(e) } }), v.Tween = Yn, Yn.prototype = { constructor: Yn, init: function (e, t, n, r, i, s) { this.elem = e, this.prop = n, this.easing = i || "swing", this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = s || (v.cssNumber[n] ? "" : "px") }, cur: function () { var e = Yn.propHooks[this.prop]; return e && e.get ? e.get(this) : Yn.propHooks._default.get(this) }, run: function (e) { var t, n = Yn.propHooks[this.prop]; return this.options.duration ? this.pos = t = v.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : Yn.propHooks._default.set(this), this } }, Yn.prototype.init.prototype = Yn.prototype, Yn.propHooks = { _default: { get: function (e) { var t; return e.elem[e.prop] == null || !!e.elem.style && e.elem.style[e.prop] != null ? (t = v.css(e.elem, e.prop, !1, ""), !t || t === "auto" ? 0 : t) : e.elem[e.prop] }, set: function (e) { v.fx.step[e.prop] ? v.fx.step[e.prop](e) : e.elem.style && (e.elem.style[v.cssProps[e.prop]] != null || v.cssHooks[e.prop]) ? v.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now } } }, Yn.propHooks.scrollTop = Yn.propHooks.scrollLeft = { set: function (e) { e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now) } }, v.each(["toggle", "show", "hide"], function (e, t) { var n = v.fn[t]; v.fn[t] = function (r, i, s) { return r == null || typeof r == "boolean" || !e && v.isFunction(r) && v.isFunction(i) ? n.apply(this, arguments) : this.animate(Zn(t, !0), r, i, s) } }), v.fn.extend({ fadeTo: function (e, t, n, r) { return this.filter(Gt).css("opacity", 0).show().end().animate({ opacity: t }, e, n, r) }, animate: function (e, t, n, r) { var i = v.isEmptyObject(e), s = v.speed(t, n, r), o = function () { var t = Kn(this, v.extend({}, e), s); i && t.stop(!0) }; return i || s.queue === !1 ? this.each(o) : this.queue(s.queue, o) }, stop: function (e, n, r) { var i = function (e) { var t = e.stop; delete e.stop, t(r) }; return typeof e != "string" && (r = n, n = e, e = t), n && e !== !1 && this.queue(e || "fx", []), this.each(function () { var t = !0, n = e != null && e + "queueHooks", s = v.timers, o = v._data(this); if (n) o[n] && o[n].stop && i(o[n]); else for (n in o) o[n] && o[n].stop && Wn.test(n) && i(o[n]); for (n = s.length; n--;)s[n].elem === this && (e == null || s[n].queue === e) && (s[n].anim.stop(r), t = !1, s.splice(n, 1)); (t || !r) && v.dequeue(this, e) }) } }), v.each({ slideDown: Zn("show"), slideUp: Zn("hide"), slideToggle: Zn("toggle"), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, function (e, t) { v.fn[e] = function (e, n, r) { return this.animate(t, e, n, r) } }), v.speed = function (e, t, n) { var r = e && typeof e == "object" ? v.extend({}, e) : { complete: n || !n && t || v.isFunction(e) && e, duration: e, easing: n && t || t && !v.isFunction(t) && t }; r.duration = v.fx.off ? 0 : typeof r.duration == "number" ? r.duration : r.duration in v.fx.speeds ? v.fx.speeds[r.duration] : v.fx.speeds._default; if (r.queue == null || r.queue === !0) r.queue = "fx"; return r.old = r.complete, r.complete = function () { v.isFunction(r.old) && r.old.call(this), r.queue && v.dequeue(this, r.queue) }, r }, v.easing = { linear: function (e) { return e }, swing: function (e) { return .5 - Math.cos(e * Math.PI) / 2 } }, v.timers = [], v.fx = Yn.prototype.init, v.fx.tick = function () { var e, n = v.timers, r = 0; qn = v.now(); for (; r < n.length; r++)e = n[r], !e() && n[r] === e && n.splice(r--, 1); n.length || v.fx.stop(), qn = t }, v.fx.timer = function (e) { e() && v.timers.push(e) && !Rn && (Rn = setInterval(v.fx.tick, v.fx.interval)) }, v.fx.interval = 13, v.fx.stop = function () { clearInterval(Rn), Rn = null }, v.fx.speeds = { slow: 600, fast: 200, _default: 400 }, v.fx.step = {}, v.expr && v.expr.filters && (v.expr.filters.animated = function (e) { return v.grep(v.timers, function (t) { return e === t.elem }).length }); var er = /^(?:body|html)$/i; v.fn.offset = function (e) { if (arguments.length) return e === t ? this : this.each(function (t) { v.offset.setOffset(this, e, t) }); var n, r, i, s, o, u, a, f = { top: 0, left: 0 }, l = this[0], c = l && l.ownerDocument; if (!c) return; return (r = c.body) === l ? v.offset.bodyOffset(l) : (n = c.documentElement, v.contains(n, l) ? (typeof l.getBoundingClientRect != "undefined" && (f = l.getBoundingClientRect()), i = tr(c), s = n.clientTop || r.clientTop || 0, o = n.clientLeft || r.clientLeft || 0, u = i.pageYOffset || n.scrollTop, a = i.pageXOffset || n.scrollLeft, { top: f.top + u - s, left: f.left + a - o }) : f) }, v.offset = { bodyOffset: function (e) { var t = e.offsetTop, n = e.offsetLeft; return v.support.doesNotIncludeMarginInBodyOffset && (t += parseFloat(v.css(e, "marginTop")) || 0, n += parseFloat(v.css(e, "marginLeft")) || 0), { top: t, left: n } }, setOffset: function (e, t, n) { var r = v.css(e, "position"); r === "static" && (e.style.position = "relative"); var i = v(e), s = i.offset(), o = v.css(e, "top"), u = v.css(e, "left"), a = (r === "absolute" || r === "fixed") && v.inArray("auto", [o, u]) > -1, f = {}, l = {}, c, h; a ? (l = i.position(), c = l.top, h = l.left) : (c = parseFloat(o) || 0, h = parseFloat(u) || 0), v.isFunction(t) && (t = t.call(e, n, s)), t.top != null && (f.top = t.top - s.top + c), t.left != null && (f.left = t.left - s.left + h), "using" in t ? t.using.call(e, f) : i.css(f) } }, v.fn.extend({ position: function () { if (!this[0]) return; var e = this[0], t = this.offsetParent(), n = this.offset(), r = er.test(t[0].nodeName) ? { top: 0, left: 0 } : t.offset(); return n.top -= parseFloat(v.css(e, "marginTop")) || 0, n.left -= parseFloat(v.css(e, "marginLeft")) || 0, r.top += parseFloat(v.css(t[0], "borderTopWidth")) || 0, r.left += parseFloat(v.css(t[0], "borderLeftWidth")) || 0, { top: n.top - r.top, left: n.left - r.left } }, offsetParent: function () { return this.map(function () { var e = this.offsetParent || i.body; while (e && !er.test(e.nodeName) && v.css(e, "position") === "static") e = e.offsetParent; return e || i.body }) } }), v.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function (e, n) { var r = /Y/.test(n); v.fn[e] = function (i) { return v.access(this, function (e, i, s) { var o = tr(e); if (s === t) return o ? n in o ? o[n] : o.document.documentElement[i] : e[i]; o ? o.scrollTo(r ? v(o).scrollLeft() : s, r ? s : v(o).scrollTop()) : e[i] = s }, e, i, arguments.length, null) } }), v.each({ Height: "height", Width: "width" }, function (e, n) { v.each({ padding: "inner" + e, content: n, "": "outer" + e }, function (r, i) { v.fn[i] = function (i, s) { var o = arguments.length && (r || typeof i != "boolean"), u = r || (i === !0 || s === !0 ? "margin" : "border"); return v.access(this, function (n, r, i) { var s; return v.isWindow(n) ? n.document.documentElement["client" + e] : n.nodeType === 9 ? (s = n.documentElement, Math.max(n.body["scroll" + e], s["scroll" + e], n.body["offset" + e], s["offset" + e], s["client" + e])) : i === t ? v.css(n, r, i, u) : v.style(n, r, i, u) }, n, o ? i : t, o, null) } }) }), e.jQuery = e.$ = v, typeof define == "function" && define.amd && define.amd.jQuery && define("jquery", [], function () { return v }) })(window);/* |xGv00|7bc34cbc4ef65454c6e072f374506f55 */ +// Underscore.js 1.8.2 +// http://underscorejs.org +// (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors +// Underscore may be freely distributed under the MIT license. +(function () { function n(n) { function t(t, r, e, u, i, o) { for (; i >= 0 && o > i; i += n) { var a = u ? u[i] : i; e = r(e, t[a], a, t) } return e } return function (r, e, u, i) { e = d(e, i, 4); var o = !w(r) && m.keys(r), a = (o || r).length, c = n > 0 ? 0 : a - 1; return arguments.length < 3 && (u = r[o ? o[c] : c], c += n), t(r, e, u, o, c, a) } } function t(n) { return function (t, r, e) { r = b(r, e); for (var u = null != t && t.length, i = n > 0 ? 0 : u - 1; i >= 0 && u > i; i += n)if (r(t[i], i, t)) return i; return -1 } } function r(n, t) { var r = S.length, e = n.constructor, u = m.isFunction(e) && e.prototype || o, i = "constructor"; for (m.has(n, i) && !m.contains(t, i) && t.push(i); r--;)i = S[r], i in n && n[i] !== u[i] && !m.contains(t, i) && t.push(i) } var e = this, u = e._, i = Array.prototype, o = Object.prototype, a = Function.prototype, c = i.push, l = i.slice, f = o.toString, s = o.hasOwnProperty, p = Array.isArray, h = Object.keys, v = a.bind, g = Object.create, y = function () { }, m = function (n) { return n instanceof m ? n : this instanceof m ? void (this._wrapped = n) : new m(n) }; "undefined" != typeof exports ? ("undefined" != typeof module && module.exports && (exports = module.exports = m), exports._ = m) : e._ = m, m.VERSION = "1.8.2"; var d = function (n, t, r) { if (t === void 0) return n; switch (null == r ? 3 : r) { case 1: return function (r) { return n.call(t, r) }; case 2: return function (r, e) { return n.call(t, r, e) }; case 3: return function (r, e, u) { return n.call(t, r, e, u) }; case 4: return function (r, e, u, i) { return n.call(t, r, e, u, i) } }return function () { return n.apply(t, arguments) } }, b = function (n, t, r) { return null == n ? m.identity : m.isFunction(n) ? d(n, t, r) : m.isObject(n) ? m.matcher(n) : m.property(n) }; m.iteratee = function (n, t) { return b(n, t, 1 / 0) }; var x = function (n, t) { return function (r) { var e = arguments.length; if (2 > e || null == r) return r; for (var u = 1; e > u; u++)for (var i = arguments[u], o = n(i), a = o.length, c = 0; a > c; c++) { var l = o[c]; t && r[l] !== void 0 || (r[l] = i[l]) } return r } }, _ = function (n) { if (!m.isObject(n)) return {}; if (g) return g(n); y.prototype = n; var t = new y; return y.prototype = null, t }, j = Math.pow(2, 53) - 1, w = function (n) { var t = n && n.length; return "number" == typeof t && t >= 0 && j >= t }; m.each = m.forEach = function (n, t, r) { t = d(t, r); var e, u; if (w(n)) for (e = 0, u = n.length; u > e; e++)t(n[e], e, n); else { var i = m.keys(n); for (e = 0, u = i.length; u > e; e++)t(n[i[e]], i[e], n) } return n }, m.map = m.collect = function (n, t, r) { t = b(t, r); for (var e = !w(n) && m.keys(n), u = (e || n).length, i = Array(u), o = 0; u > o; o++) { var a = e ? e[o] : o; i[o] = t(n[a], a, n) } return i }, m.reduce = m.foldl = m.inject = n(1), m.reduceRight = m.foldr = n(-1), m.find = m.detect = function (n, t, r) { var e; return e = w(n) ? m.findIndex(n, t, r) : m.findKey(n, t, r), e !== void 0 && e !== -1 ? n[e] : void 0 }, m.filter = m.select = function (n, t, r) { var e = []; return t = b(t, r), m.each(n, function (n, r, u) { t(n, r, u) && e.push(n) }), e }, m.reject = function (n, t, r) { return m.filter(n, m.negate(b(t)), r) }, m.every = m.all = function (n, t, r) { t = b(t, r); for (var e = !w(n) && m.keys(n), u = (e || n).length, i = 0; u > i; i++) { var o = e ? e[i] : i; if (!t(n[o], o, n)) return !1 } return !0 }, m.some = m.any = function (n, t, r) { t = b(t, r); for (var e = !w(n) && m.keys(n), u = (e || n).length, i = 0; u > i; i++) { var o = e ? e[i] : i; if (t(n[o], o, n)) return !0 } return !1 }, m.contains = m.includes = m.include = function (n, t, r) { return w(n) || (n = m.values(n)), m.indexOf(n, t, "number" == typeof r && r) >= 0 }, m.invoke = function (n, t) { var r = l.call(arguments, 2), e = m.isFunction(t); return m.map(n, function (n) { var u = e ? t : n[t]; return null == u ? u : u.apply(n, r) }) }, m.pluck = function (n, t) { return m.map(n, m.property(t)) }, m.where = function (n, t) { return m.filter(n, m.matcher(t)) }, m.findWhere = function (n, t) { return m.find(n, m.matcher(t)) }, m.max = function (n, t, r) { var e, u, i = -1 / 0, o = -1 / 0; if (null == t && null != n) { n = w(n) ? n : m.values(n); for (var a = 0, c = n.length; c > a; a++)e = n[a], e > i && (i = e) } else t = b(t, r), m.each(n, function (n, r, e) { u = t(n, r, e), (u > o || u === -1 / 0 && i === -1 / 0) && (i = n, o = u) }); return i }, m.min = function (n, t, r) { var e, u, i = 1 / 0, o = 1 / 0; if (null == t && null != n) { n = w(n) ? n : m.values(n); for (var a = 0, c = n.length; c > a; a++)e = n[a], i > e && (i = e) } else t = b(t, r), m.each(n, function (n, r, e) { u = t(n, r, e), (o > u || 1 / 0 === u && 1 / 0 === i) && (i = n, o = u) }); return i }, m.shuffle = function (n) { for (var t, r = w(n) ? n : m.values(n), e = r.length, u = Array(e), i = 0; e > i; i++)t = m.random(0, i), t !== i && (u[i] = u[t]), u[t] = r[i]; return u }, m.sample = function (n, t, r) { return null == t || r ? (w(n) || (n = m.values(n)), n[m.random(n.length - 1)]) : m.shuffle(n).slice(0, Math.max(0, t)) }, m.sortBy = function (n, t, r) { return t = b(t, r), m.pluck(m.map(n, function (n, r, e) { return { value: n, index: r, criteria: t(n, r, e) } }).sort(function (n, t) { var r = n.criteria, e = t.criteria; if (r !== e) { if (r > e || r === void 0) return 1; if (e > r || e === void 0) return -1 } return n.index - t.index }), "value") }; var A = function (n) { return function (t, r, e) { var u = {}; return r = b(r, e), m.each(t, function (e, i) { var o = r(e, i, t); n(u, e, o) }), u } }; m.groupBy = A(function (n, t, r) { m.has(n, r) ? n[r].push(t) : n[r] = [t] }), m.indexBy = A(function (n, t, r) { n[r] = t }), m.countBy = A(function (n, t, r) { m.has(n, r) ? n[r]++ : n[r] = 1 }), m.toArray = function (n) { return n ? m.isArray(n) ? l.call(n) : w(n) ? m.map(n, m.identity) : m.values(n) : [] }, m.size = function (n) { return null == n ? 0 : w(n) ? n.length : m.keys(n).length }, m.partition = function (n, t, r) { t = b(t, r); var e = [], u = []; return m.each(n, function (n, r, i) { (t(n, r, i) ? e : u).push(n) }), [e, u] }, m.first = m.head = m.take = function (n, t, r) { return null == n ? void 0 : null == t || r ? n[0] : m.initial(n, n.length - t) }, m.initial = function (n, t, r) { return l.call(n, 0, Math.max(0, n.length - (null == t || r ? 1 : t))) }, m.last = function (n, t, r) { return null == n ? void 0 : null == t || r ? n[n.length - 1] : m.rest(n, Math.max(0, n.length - t)) }, m.rest = m.tail = m.drop = function (n, t, r) { return l.call(n, null == t || r ? 1 : t) }, m.compact = function (n) { return m.filter(n, m.identity) }; var k = function (n, t, r, e) { for (var u = [], i = 0, o = e || 0, a = n && n.length; a > o; o++) { var c = n[o]; if (w(c) && (m.isArray(c) || m.isArguments(c))) { t || (c = k(c, t, r)); var l = 0, f = c.length; for (u.length += f; f > l;)u[i++] = c[l++] } else r || (u[i++] = c) } return u }; m.flatten = function (n, t) { return k(n, t, !1) }, m.without = function (n) { return m.difference(n, l.call(arguments, 1)) }, m.uniq = m.unique = function (n, t, r, e) { if (null == n) return []; m.isBoolean(t) || (e = r, r = t, t = !1), null != r && (r = b(r, e)); for (var u = [], i = [], o = 0, a = n.length; a > o; o++) { var c = n[o], l = r ? r(c, o, n) : c; t ? (o && i === l || u.push(c), i = l) : r ? m.contains(i, l) || (i.push(l), u.push(c)) : m.contains(u, c) || u.push(c) } return u }, m.union = function () { return m.uniq(k(arguments, !0, !0)) }, m.intersection = function (n) { if (null == n) return []; for (var t = [], r = arguments.length, e = 0, u = n.length; u > e; e++) { var i = n[e]; if (!m.contains(t, i)) { for (var o = 1; r > o && m.contains(arguments[o], i); o++); o === r && t.push(i) } } return t }, m.difference = function (n) { var t = k(arguments, !0, !0, 1); return m.filter(n, function (n) { return !m.contains(t, n) }) }, m.zip = function () { return m.unzip(arguments) }, m.unzip = function (n) { for (var t = n && m.max(n, "length").length || 0, r = Array(t), e = 0; t > e; e++)r[e] = m.pluck(n, e); return r }, m.object = function (n, t) { for (var r = {}, e = 0, u = n && n.length; u > e; e++)t ? r[n[e]] = t[e] : r[n[e][0]] = n[e][1]; return r }, m.indexOf = function (n, t, r) { var e = 0, u = n && n.length; if ("number" == typeof r) e = 0 > r ? Math.max(0, u + r) : r; else if (r && u) return e = m.sortedIndex(n, t), n[e] === t ? e : -1; if (t !== t) return m.findIndex(l.call(n, e), m.isNaN); for (; u > e; e++)if (n[e] === t) return e; return -1 }, m.lastIndexOf = function (n, t, r) { var e = n ? n.length : 0; if ("number" == typeof r && (e = 0 > r ? e + r + 1 : Math.min(e, r + 1)), t !== t) return m.findLastIndex(l.call(n, 0, e), m.isNaN); for (; --e >= 0;)if (n[e] === t) return e; return -1 }, m.findIndex = t(1), m.findLastIndex = t(-1), m.sortedIndex = function (n, t, r, e) { r = b(r, e, 1); for (var u = r(t), i = 0, o = n.length; o > i;) { var a = Math.floor((i + o) / 2); r(n[a]) < u ? i = a + 1 : o = a } return i }, m.range = function (n, t, r) { arguments.length <= 1 && (t = n || 0, n = 0), r = r || 1; for (var e = Math.max(Math.ceil((t - n) / r), 0), u = Array(e), i = 0; e > i; i++, n += r)u[i] = n; return u }; var O = function (n, t, r, e, u) { if (!(e instanceof t)) return n.apply(r, u); var i = _(n.prototype), o = n.apply(i, u); return m.isObject(o) ? o : i }; m.bind = function (n, t) { if (v && n.bind === v) return v.apply(n, l.call(arguments, 1)); if (!m.isFunction(n)) throw new TypeError("Bind must be called on a function"); var r = l.call(arguments, 2), e = function () { return O(n, e, t, this, r.concat(l.call(arguments))) }; return e }, m.partial = function (n) { var t = l.call(arguments, 1), r = function () { for (var e = 0, u = t.length, i = Array(u), o = 0; u > o; o++)i[o] = t[o] === m ? arguments[e++] : t[o]; for (; e < arguments.length;)i.push(arguments[e++]); return O(n, r, this, this, i) }; return r }, m.bindAll = function (n) { var t, r, e = arguments.length; if (1 >= e) throw new Error("bindAll must be passed function names"); for (t = 1; e > t; t++)r = arguments[t], n[r] = m.bind(n[r], n); return n }, m.memoize = function (n, t) { var r = function (e) { var u = r.cache, i = "" + (t ? t.apply(this, arguments) : e); return m.has(u, i) || (u[i] = n.apply(this, arguments)), u[i] }; return r.cache = {}, r }, m.delay = function (n, t) { var r = l.call(arguments, 2); return setTimeout(function () { return n.apply(null, r) }, t) }, m.defer = m.partial(m.delay, m, 1), m.throttle = function (n, t, r) { var e, u, i, o = null, a = 0; r || (r = {}); var c = function () { a = r.leading === !1 ? 0 : m.now(), o = null, i = n.apply(e, u), o || (e = u = null) }; return function () { var l = m.now(); a || r.leading !== !1 || (a = l); var f = t - (l - a); return e = this, u = arguments, 0 >= f || f > t ? (o && (clearTimeout(o), o = null), a = l, i = n.apply(e, u), o || (e = u = null)) : o || r.trailing === !1 || (o = setTimeout(c, f)), i } }, m.debounce = function (n, t, r) { var e, u, i, o, a, c = function () { var l = m.now() - o; t > l && l >= 0 ? e = setTimeout(c, t - l) : (e = null, r || (a = n.apply(i, u), e || (i = u = null))) }; return function () { i = this, u = arguments, o = m.now(); var l = r && !e; return e || (e = setTimeout(c, t)), l && (a = n.apply(i, u), i = u = null), a } }, m.wrap = function (n, t) { return m.partial(t, n) }, m.negate = function (n) { return function () { return !n.apply(this, arguments) } }, m.compose = function () { var n = arguments, t = n.length - 1; return function () { for (var r = t, e = n[t].apply(this, arguments); r--;)e = n[r].call(this, e); return e } }, m.after = function (n, t) { return function () { return --n < 1 ? t.apply(this, arguments) : void 0 } }, m.before = function (n, t) { var r; return function () { return --n > 0 && (r = t.apply(this, arguments)), 1 >= n && (t = null), r } }, m.once = m.partial(m.before, 2); var F = !{ toString: null }.propertyIsEnumerable("toString"), S = ["valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"]; m.keys = function (n) { if (!m.isObject(n)) return []; if (h) return h(n); var t = []; for (var e in n) m.has(n, e) && t.push(e); return F && r(n, t), t }, m.allKeys = function (n) { if (!m.isObject(n)) return []; var t = []; for (var e in n) t.push(e); return F && r(n, t), t }, m.values = function (n) { for (var t = m.keys(n), r = t.length, e = Array(r), u = 0; r > u; u++)e[u] = n[t[u]]; return e }, m.mapObject = function (n, t, r) { t = b(t, r); for (var e, u = m.keys(n), i = u.length, o = {}, a = 0; i > a; a++)e = u[a], o[e] = t(n[e], e, n); return o }, m.pairs = function (n) { for (var t = m.keys(n), r = t.length, e = Array(r), u = 0; r > u; u++)e[u] = [t[u], n[t[u]]]; return e }, m.invert = function (n) { for (var t = {}, r = m.keys(n), e = 0, u = r.length; u > e; e++)t[n[r[e]]] = r[e]; return t }, m.functions = m.methods = function (n) { var t = []; for (var r in n) m.isFunction(n[r]) && t.push(r); return t.sort() }, m.extend = x(m.allKeys), m.extendOwn = m.assign = x(m.keys), m.findKey = function (n, t, r) { t = b(t, r); for (var e, u = m.keys(n), i = 0, o = u.length; o > i; i++)if (e = u[i], t(n[e], e, n)) return e }, m.pick = function (n, t, r) { var e, u, i = {}, o = n; if (null == o) return i; m.isFunction(t) ? (u = m.allKeys(o), e = d(t, r)) : (u = k(arguments, !1, !1, 1), e = function (n, t, r) { return t in r }, o = Object(o)); for (var a = 0, c = u.length; c > a; a++) { var l = u[a], f = o[l]; e(f, l, o) && (i[l] = f) } return i }, m.omit = function (n, t, r) { if (m.isFunction(t)) t = m.negate(t); else { var e = m.map(k(arguments, !1, !1, 1), String); t = function (n, t) { return !m.contains(e, t) } } return m.pick(n, t, r) }, m.defaults = x(m.allKeys, !0), m.clone = function (n) { return m.isObject(n) ? m.isArray(n) ? n.slice() : m.extend({}, n) : n }, m.tap = function (n, t) { return t(n), n }, m.isMatch = function (n, t) { var r = m.keys(t), e = r.length; if (null == n) return !e; for (var u = Object(n), i = 0; e > i; i++) { var o = r[i]; if (t[o] !== u[o] || !(o in u)) return !1 } return !0 }; var E = function (n, t, r, e) { if (n === t) return 0 !== n || 1 / n === 1 / t; if (null == n || null == t) return n === t; n instanceof m && (n = n._wrapped), t instanceof m && (t = t._wrapped); var u = f.call(n); if (u !== f.call(t)) return !1; switch (u) { case "[object RegExp]": case "[object String]": return "" + n == "" + t; case "[object Number]": return +n !== +n ? +t !== +t : 0 === +n ? 1 / +n === 1 / t : +n === +t; case "[object Date]": case "[object Boolean]": return +n === +t }var i = "[object Array]" === u; if (!i) { if ("object" != typeof n || "object" != typeof t) return !1; var o = n.constructor, a = t.constructor; if (o !== a && !(m.isFunction(o) && o instanceof o && m.isFunction(a) && a instanceof a) && "constructor" in n && "constructor" in t) return !1 } r = r || [], e = e || []; for (var c = r.length; c--;)if (r[c] === n) return e[c] === t; if (r.push(n), e.push(t), i) { if (c = n.length, c !== t.length) return !1; for (; c--;)if (!E(n[c], t[c], r, e)) return !1 } else { var l, s = m.keys(n); if (c = s.length, m.keys(t).length !== c) return !1; for (; c--;)if (l = s[c], !m.has(t, l) || !E(n[l], t[l], r, e)) return !1 } return r.pop(), e.pop(), !0 }; m.isEqual = function (n, t) { return E(n, t) }, m.isEmpty = function (n) { return null == n ? !0 : w(n) && (m.isArray(n) || m.isString(n) || m.isArguments(n)) ? 0 === n.length : 0 === m.keys(n).length }, m.isElement = function (n) { return !(!n || 1 !== n.nodeType) }, m.isArray = p || function (n) { return "[object Array]" === f.call(n) }, m.isObject = function (n) { var t = typeof n; return "function" === t || "object" === t && !!n }, m.each(["Arguments", "Function", "String", "Number", "Date", "RegExp", "Error"], function (n) { m["is" + n] = function (t) { return f.call(t) === "[object " + n + "]" } }), m.isArguments(arguments) || (m.isArguments = function (n) { return m.has(n, "callee") }), "function" != typeof /./ && "object" != typeof Int8Array && (m.isFunction = function (n) { return "function" == typeof n || !1 }), m.isFinite = function (n) { return isFinite(n) && !isNaN(parseFloat(n)) }, m.isNaN = function (n) { return m.isNumber(n) && n !== +n }, m.isBoolean = function (n) { return n === !0 || n === !1 || "[object Boolean]" === f.call(n) }, m.isNull = function (n) { return null === n }, m.isUndefined = function (n) { return n === void 0 }, m.has = function (n, t) { return null != n && s.call(n, t) }, m.noConflict = function () { return e._ = u, this }, m.identity = function (n) { return n }, m.constant = function (n) { return function () { return n } }, m.noop = function () { }, m.property = function (n) { return function (t) { return null == t ? void 0 : t[n] } }, m.propertyOf = function (n) { return null == n ? function () { } : function (t) { return n[t] } }, m.matcher = m.matches = function (n) { return n = m.extendOwn({}, n), function (t) { return m.isMatch(t, n) } }, m.times = function (n, t, r) { var e = Array(Math.max(0, n)); t = d(t, r, 1); for (var u = 0; n > u; u++)e[u] = t(u); return e }, m.random = function (n, t) { return null == t && (t = n, n = 0), n + Math.floor(Math.random() * (t - n + 1)) }, m.now = Date.now || function () { return (new Date).getTime() }; var M = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "`": "`" }, N = m.invert(M), I = function (n) { var t = function (t) { return n[t] }, r = "(?:" + m.keys(n).join("|") + ")", e = RegExp(r), u = RegExp(r, "g"); return function (n) { return n = null == n ? "" : "" + n, e.test(n) ? n.replace(u, t) : n } }; m.escape = I(M), m.unescape = I(N), m.result = function (n, t, r) { var e = null == n ? void 0 : n[t]; return e === void 0 && (e = r), m.isFunction(e) ? e.call(n) : e }; var B = 0; m.uniqueId = function (n) { var t = ++B + ""; return n ? n + t : t }, m.templateSettings = { evaluate: /<%([\s\S]+?)%>/g, interpolate: /<%=([\s\S]+?)%>/g, escape: /<%-([\s\S]+?)%>/g }; var T = /(.)^/, R = { "'": "'", "\\": "\\", "\r": "r", "\n": "n", "\u2028": "u2028", "\u2029": "u2029" }, q = /\\|'|\r|\n|\u2028|\u2029/g, K = function (n) { return "\\" + R[n] }; m.template = function (n, t, r) { !t && r && (t = r), t = m.defaults({}, t, m.templateSettings); var e = RegExp([(t.escape || T).source, (t.interpolate || T).source, (t.evaluate || T).source].join("|") + "|$", "g"), u = 0, i = "__p+='"; n.replace(e, function (t, r, e, o, a) { return i += n.slice(u, a).replace(q, K), u = a + t.length, r ? i += "'+\n((__t=(" + r + "))==null?'':_.escape(__t))+\n'" : e ? i += "'+\n((__t=(" + e + "))==null?'':__t)+\n'" : o && (i += "';\n" + o + "\n__p+='"), t }), i += "';\n", t.variable || (i = "with(obj||{}){\n" + i + "}\n"), i = "var __t,__p='',__j=Array.prototype.join," + "print=function(){__p+=__j.call(arguments,'');};\n" + i + "return __p;\n"; try { var o = new Function(t.variable || "obj", "_", i) } catch (a) { throw a.source = i, a } var c = function (n) { return o.call(this, n, m) }, l = t.variable || "obj"; return c.source = "function(" + l + "){\n" + i + "}", c }, m.chain = function (n) { var t = m(n); return t._chain = !0, t }; var z = function (n, t) { return n._chain ? m(t).chain() : t }; m.mixin = function (n) { m.each(m.functions(n), function (t) { var r = m[t] = n[t]; m.prototype[t] = function () { var n = [this._wrapped]; return c.apply(n, arguments), z(this, r.apply(m, n)) } }) }, m.mixin(m), m.each(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function (n) { var t = i[n]; m.prototype[n] = function () { var r = this._wrapped; return t.apply(r, arguments), "shift" !== n && "splice" !== n || 0 !== r.length || delete r[0], z(this, r) } }), m.each(["concat", "join", "slice"], function (n) { var t = i[n]; m.prototype[n] = function () { return z(this, t.apply(this._wrapped, arguments)) } }), m.prototype.value = function () { return this._wrapped }, m.prototype.valueOf = m.prototype.toJSON = m.prototype.value, m.prototype.toString = function () { return "" + this._wrapped }, "function" == typeof define && define.amd && define("underscore", [], function () { return m }) }).call(this); + +/** + * marked v0.3.3 - a markdown parser + * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) + * https://github.com/chjj/marked + 升级到v0.4.0 从/educoder/public/editormd/lib/marked.min.js复制 + */ +!function (e) { "use strict"; var t = { newline: /^\n+/, code: /^( {4}[^\n]+\n*)+/, fences: d, hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/, heading: /^ *(#{1,6})*([^\n]+?) *(?:#+ *)?(?:\n+|$)/, nptable: d, blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/, list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/, html: "^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)|(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$))", def: /^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/, table: d, lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, paragraph: /^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/, text: /^[^\n]+/ }; function n(e) { this.tokens = [], this.tokens.links = {}, this.options = e || m.defaults, this.rules = t.normal, this.options.pedantic ? this.rules = t.pedantic : this.options.gfm && (this.options.tables ? this.rules = t.tables : this.rules = t.gfm) } t._label = /(?!\s*\])(?:\\[\[\]]|[^\[\]])+/, t._title = /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/, t.def = p(t.def).replace("label", t._label).replace("title", t._title).getRegex(), t.bullet = /(?:[*+-]|\d+\.)/, t.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/, t.item = p(t.item, "gm").replace(/bull/g, t.bullet).getRegex(), t.list = p(t.list).replace(/bull/g, t.bullet).replace("hr", "\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def", "\\n+(?=" + t.def.source + ")").getRegex(), t._tag = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", t._comment = //, t.html = p(t.html, "i").replace("comment", t._comment).replace("tag", t._tag).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), t.paragraph = p(t.paragraph).replace("hr", t.hr).replace("heading", t.heading).replace("lheading", t.lheading).replace("tag", t._tag).getRegex(), t.blockquote = p(t.blockquote).replace("paragraph", t.paragraph).getRegex(), t.normal = f({}, t), t.gfm = f({}, t.normal, { fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/, paragraph: /^/, heading: /^ *(#{1,6})+([^\n]+?) *#* *(?:\n+|$)/ }), t.gfm.paragraph = p(t.paragraph).replace("(?!", "(?!" + t.gfm.fences.source.replace("\\1", "\\2") + "|" + t.list.source.replace("\\1", "\\3") + "|").getRegex(), t.tables = f({}, t.gfm, { nptable: /^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/, table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/ }), t.pedantic = f({}, t.normal, { html: p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", t._comment).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/ }), n.rules = t, n.lex = function (e, t) { return new n(t).lex(e) }, n.prototype.lex = function (e) { return e = e.replace(/\r\n|\r/g, "\n").replace(/\t/g, " ").replace(/\u00a0/g, " ").replace(/\u2424/g, "\n"), this.token(e, !0) }, n.prototype.token = function (e, n) { var r, s, i, l, o, a, h, p, u, c, g, d, f; for (e = e.replace(/^ +$/gm, ""); e;)if ((i = this.rules.newline.exec(e)) && (e = e.substring(i[0].length), i[0].length > 1 && this.tokens.push({ type: "space" })), i = this.rules.code.exec(e)) e = e.substring(i[0].length), i = i[0].replace(/^ {4}/gm, ""), this.tokens.push({ type: "code", text: this.options.pedantic ? i : i.replace(/\n+$/, "") }); else if (i = this.rules.fences.exec(e)) e = e.substring(i[0].length), this.tokens.push({ type: "code", lang: i[2], text: i[3] || "" }); else if (i = this.rules.heading.exec(e)) e = e.substring(i[0].length), this.tokens.push({ type: "heading", depth: i[1].length, text: i[2] }); else if (n && (i = this.rules.nptable.exec(e)) && (a = { type: "table", header: i[1].replace(/^ *| *\| *$/g, "").split(/ *\| */), align: i[2].replace(/^ *|\| *$/g, "").split(/ *\| */), cells: i[3] ? i[3].replace(/\n$/, "").split("\n") : [] }).header.length) { for (e = e.substring(i[0].length), p = 0; p < a.align.length; p++)/^ *-+: *$/.test(a.align[p]) ? a.align[p] = "right" : /^ *:-+: *$/.test(a.align[p]) ? a.align[p] = "center" : /^ *:-+ *$/.test(a.align[p]) ? a.align[p] = "left" : a.align[p] = null; for (p = 0; p < a.cells.length; p++)a.cells[p] = a.cells[p].replace(/^ *\| *| *\| *$/g, "").split(/ *\| */); this.tokens.push(a) } else if (i = this.rules.hr.exec(e)) e = e.substring(i[0].length), this.tokens.push({ type: "hr" }); else if (i = this.rules.blockquote.exec(e)) e = e.substring(i[0].length), this.tokens.push({ type: "blockquote_start" }), i = i[0].replace(/^ *> ?/gm, ""), this.token(i, n), this.tokens.push({ type: "blockquote_end" }); else if (i = this.rules.list.exec(e)) { for (e = e.substring(i[0].length), g = (l = i[2]).length > 1, this.tokens.push({ type: "list_start", ordered: g, start: g ? +l : "" }), r = !1, c = (i = i[0].match(this.rules.item)).length, p = 0; p < c; p++)h = (a = i[p]).length, ~(a = a.replace(/^ *([*+-]|\d+\.) +/, "")).indexOf("\n ") && (h -= a.length, a = this.options.pedantic ? a.replace(/^ {1,4}/gm, "") : a.replace(new RegExp("^ {1," + h + "}", "gm"), "")), this.options.smartLists && p !== c - 1 && (l === (o = t.bullet.exec(i[p + 1])[0]) || l.length > 1 && o.length > 1 || (e = i.slice(p + 1).join("\n") + e, p = c - 1)), s = r || /\n\n(?!\s*$)/.test(a), p !== c - 1 && (r = "\n" === a.charAt(a.length - 1), s || (s = r)), f = void 0, (d = /^\[[ xX]\] /.test(a)) && (f = " " !== a[1], a = a.replace(/^\[[ xX]\] +/, "")), this.tokens.push({ type: s ? "loose_item_start" : "list_item_start", task: d, checked: f }), this.token(a, !1), this.tokens.push({ type: "list_item_end" }); this.tokens.push({ type: "list_end" }) } else if (i = this.rules.html.exec(e)) e = e.substring(i[0].length), this.tokens.push({ type: this.options.sanitize ? "paragraph" : "html", pre: !this.options.sanitizer && ("pre" === i[1] || "script" === i[1] || "style" === i[1]), text: i[0] }); else if (n && (i = this.rules.def.exec(e))) e = e.substring(i[0].length), i[3] && (i[3] = i[3].substring(1, i[3].length - 1)), u = i[1].toLowerCase().replace(/\s+/g, " "), this.tokens.links[u] || (this.tokens.links[u] = { href: i[2], title: i[3] }); else if (n && (i = this.rules.table.exec(e)) && (a = { type: "table", header: i[1].replace(/^ *| *\| *$/g, "").split(/ *\| */), align: i[2].replace(/^ *|\| *$/g, "").split(/ *\| */), cells: i[3] ? i[3].replace(/\n$/, "").split("\n") : [] }).header.length) { for (e = e.substring(i[0].length), p = 0; p < a.align.length; p++)/^ *-+: *$/.test(a.align[p]) ? a.align[p] = "right" : /^ *:-+: *$/.test(a.align[p]) ? a.align[p] = "center" : /^ *:-+ *$/.test(a.align[p]) ? a.align[p] = "left" : a.align[p] = null; for (p = 0; p < a.cells.length; p++)a.cells[p] = a.cells[p].replace(/^ *\| *| *\| *$/g, "").split(/ *\| */); this.tokens.push(a) } else if (i = this.rules.lheading.exec(e)) e = e.substring(i[0].length), this.tokens.push({ type: "heading", depth: "=" === i[2] ? 1 : 2, text: i[1] }); else if (n && (i = this.rules.paragraph.exec(e))) e = e.substring(i[0].length), this.tokens.push({ type: "paragraph", text: "\n" === i[1].charAt(i[1].length - 1) ? i[1].slice(0, -1) : i[1] }); else if (i = this.rules.text.exec(e)) e = e.substring(i[0].length), this.tokens.push({ type: "text", text: i[0] }); else if (e) throw new Error("Infinite loop on byte: " + e.charCodeAt(0)); return this.tokens }; var r = { escape: /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/, url: d, tag: "^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^", link: /^!?\[(label)\]\(href(?:\s+(title))?\s*\)/, reflink: /^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/, nolink: /^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/, strong: /^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)|^__([^\s])__(?!_)|^\*\*([^\s])\*\*(?!\*)/, em: /^_([^\s][\s\S]*?[^\s_])_(?!_)|^_([^\s_][\s\S]*?[^\s])_(?!_)|^\*([^\s][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*][\s\S]*?[^\s])\*(?!\*)|^_([^\s_])_(?!_)|^\*([^\s*])\*(?!\*)/, code: /^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/, br: /^ {2,}\n(?!\s*$)/, del: d, text: /^[\s\S]+?(?=[\\/g, ">").replace(/"/g, """).replace(/'/g, "'") } function h(e) { return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi, function (e, t) { return "colon" === (t = t.toLowerCase()) ? ":" : "#" === t.charAt(0) ? "x" === t.charAt(1) ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : "" }) } function p(e, t) { return e = e.source || e, t = t || "", { replace: function (t, n) { return n = (n = n.source || n).replace(/(^|[^\[])\^/g, "$1"), e = e.replace(t, n), this }, getRegex: function () { return new RegExp(e, t) } } } function u(e, t) { return c[" " + e] || (/^[^:]+:\/*[^/]*$/.test(e) ? c[" " + e] = e + "/" : c[" " + e] = e.replace(/[^/]*$/, "")), e = c[" " + e], "//" === t.slice(0, 2) ? e.replace(/:[\s\S]*/, ":") + t : "/" === t.charAt(0) ? e.replace(/(:\/*[^/]*)[\s\S]*/, "$1") + t : e + t } r._escapes = /\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g, r._scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/, r._email = /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/, r.autolink = p(r.autolink).replace("scheme", r._scheme).replace("email", r._email).getRegex(), r._attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/, r.tag = p(r.tag).replace("comment", t._comment).replace("attribute", r._attribute).getRegex(), r._label = /(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/, r._href = /\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f()\\]*\)|[^\s\x00-\x1f()\\])*?)/, r._title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/, r.link = p(r.link).replace("label", r._label).replace("href", r._href).replace("title", r._title).getRegex(), r.reflink = p(r.reflink).replace("label", r._label).getRegex(), r.normal = f({}, r), r.pedantic = f({}, r.normal, { strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/, em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/, link: p(/^!?\[(label)\]\((.*?)\)/).replace("label", r._label).getRegex(), reflink: p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", r._label).getRegex() }), r.gfm = f({}, r.normal, { escape: p(r.escape).replace("])", "~|])").getRegex(), url: p(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email", r._email).getRegex(), _backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/, del: /^~~(?=\S)([\s\S]*?\S)~~/, text: p(r.text).replace("]|", "~]|").replace("|", "|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex() }), r.breaks = f({}, r.gfm, { br: p(r.br).replace("{2,}", "*").getRegex(), text: p(r.gfm.text).replace("{2,}", "*").getRegex() }), s.rules = r, s.output = function (e, t, n) { return new s(t, n).output(e) }, s.prototype.output = function (e) { for (var t, n, r, i, l, o = ""; e;)if (l = this.rules.escape.exec(e)) e = e.substring(l[0].length), o += l[1]; else if (l = this.rules.autolink.exec(e)) e = e.substring(l[0].length), r = "@" === l[2] ? "mailto:" + (n = a(this.mangle(l[1]))) : n = a(l[1]), o += this.renderer.link(r, null, n); else if (this.inLink || !(l = this.rules.url.exec(e))) { if (l = this.rules.tag.exec(e)) !this.inLink && /^/i.test(l[0]) && (this.inLink = !1), e = e.substring(l[0].length), o += this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(l[0]) : a(l[0]) : l[0]; else if (l = this.rules.link.exec(e)) e = e.substring(l[0].length), this.inLink = !0, r = l[2], this.options.pedantic ? (t = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r)) ? (r = t[1], i = t[3]) : i = "" : i = l[3] ? l[3].slice(1, -1) : "", r = r.trim().replace(/^<([\s\S]*)>$/, "$1"), o += this.outputLink(l, { href: s.escapes(r), title: s.escapes(i) }), this.inLink = !1; else if ((l = this.rules.reflink.exec(e)) || (l = this.rules.nolink.exec(e))) { if (e = e.substring(l[0].length), t = (l[2] || l[1]).replace(/\s+/g, " "), !(t = this.links[t.toLowerCase()]) || !t.href) { o += l[0].charAt(0), e = l[0].substring(1) + e; continue } this.inLink = !0, o += this.outputLink(l, t), this.inLink = !1 } else if (l = this.rules.strong.exec(e)) e = e.substring(l[0].length), o += this.renderer.strong(this.output(l[4] || l[3] || l[2] || l[1])); else if (l = this.rules.em.exec(e)) e = e.substring(l[0].length), o += this.renderer.em(this.output(l[6] || l[5] || l[4] || l[3] || l[2] || l[1])); else if (l = this.rules.code.exec(e)) e = e.substring(l[0].length), o += this.renderer.codespan(a(l[2].trim(), !0)); else if (l = this.rules.br.exec(e)) e = e.substring(l[0].length), o += this.renderer.br(); else if (l = this.rules.del.exec(e)) e = e.substring(l[0].length), o += this.renderer.del(this.output(l[1])); else if (l = this.rules.text.exec(e)) e = e.substring(l[0].length), o += this.renderer.text(a(this.smartypants(l[0]))); else if (e) throw new Error("Infinite loop on byte: " + e.charCodeAt(0)) } else l[0] = this.rules._backpedal.exec(l[0])[0], e = e.substring(l[0].length), "@" === l[2] ? r = "mailto:" + (n = a(l[0])) : (n = a(l[0]), r = "www." === l[1] ? "http://" + n : n), o += this.renderer.link(r, null, n); return o }, s.escapes = function (e) { return e ? e.replace(s.rules._escapes, "$1") : e }, s.prototype.outputLink = function (e, t) { var n = t.href, r = t.title ? a(t.title) : null; return "!" !== e[0].charAt(0) ? this.renderer.link(n, r, this.output(e[1])) : this.renderer.image(n, r, a(e[1])) }, s.prototype.smartypants = function (e) { return this.options.smartypants ? e.replace(/---/g, "—").replace(/--/g, "–").replace(/(^|[-\u2014/(\[{"\s])'/g, "$1‘").replace(/'/g, "’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g, "$1“").replace(/"/g, "”").replace(/\.{3}/g, "…") : e }, s.prototype.mangle = function (e) { if (!this.options.mangle) return e; for (var t, n = "", r = e.length, s = 0; s < r; s++)t = e.charCodeAt(s), Math.random() > .5 && (t = "x" + t.toString(16)), n += "&#" + t + ";"; return n }, i.prototype.code = function (e, t, n) { if (this.options.highlight) { var r = this.options.highlight(e, t); null != r && r !== e && (n = !0, e = r) } return t ? '
      ' + (n ? e : a(e, !0)) + "
      \n" : "
      " + (n ? e : a(e, !0)) + "
      " }, i.prototype.blockquote = function (e) { return "
      \n" + e + "
      \n" }, i.prototype.html = function (e) { return e }, i.prototype.heading = function (e, t, n) { return this.options.headerIds ? "' + e + "\n" : "" + e + "\n" }, i.prototype.hr = function () { return this.options.xhtml ? "
      \n" : "
      \n" }, i.prototype.list = function (e, t, n) { var r = t ? "ol" : "ul"; return "<" + r + (t && 1 !== n ? ' start="' + n + '"' : "") + ">\n" + e + "\n" }, i.prototype.listitem = function (e) { return "
    • " + e + "
    • \n" }, i.prototype.checkbox = function (e) { return " " }, i.prototype.paragraph = function (e) { return "

      " + e + "

      \n" }, i.prototype.table = function (e, t) { return t && (t = "
      " + t + ""), "
      \n\n" + e + "\n" + t + "
      \n" }, i.prototype.tablerow = function (e) { return "\n" + e + "\n" }, i.prototype.tablecell = function (e, t) { var n = t.header ? "th" : "td"; return (t.align ? "<" + n + ' align="' + t.align + '">' : "<" + n + ">") + e + "\n" }, i.prototype.strong = function (e) { return "" + e + "" }, i.prototype.em = function (e) { return "" + e + "" }, i.prototype.codespan = function (e) { return "" + e + "" }, i.prototype.br = function () { return this.options.xhtml ? "
      " : "
      " }, i.prototype.del = function (e) { return "" + e + "" }, i.prototype.link = function (e, t, n) { if (this.options.sanitize) { try { var r = decodeURIComponent(h(e)).replace(/[^\w:]/g, "").toLowerCase() } catch (e) { return n } if (0 === r.indexOf("javascript:") || 0 === r.indexOf("vbscript:") || 0 === r.indexOf("data:")) return n } this.options.baseUrl && !g.test(e) && (e = u(this.options.baseUrl, e)); try { e = encodeURI(e).replace(/%25/g, "%") } catch (e) { return n } var s = '
      " }, i.prototype.image = function (e, t, n) { this.options.baseUrl && !g.test(e) && (e = u(this.options.baseUrl, e)); var r = '' + n + '" : ">" }, i.prototype.text = function (e) { return e }, l.prototype.strong = l.prototype.em = l.prototype.codespan = l.prototype.del = l.prototype.text = function (e) { return e }, l.prototype.link = l.prototype.image = function (e, t, n) { return "" + n }, l.prototype.br = function () { return "" }, o.parse = function (e, t) { return new o(t).parse(e) }, o.prototype.parse = function (e) { this.inline = new s(e.links, this.options), this.inlineText = new s(e.links, f({}, this.options, { renderer: new l })), this.tokens = e.reverse(); for (var t = ""; this.next();)t += this.tok(); return t }, o.prototype.next = function () { return this.token = this.tokens.pop() }, o.prototype.peek = function () { return this.tokens[this.tokens.length - 1] || 0 }, o.prototype.parseText = function () { for (var e = this.token.text; "text" === this.peek().type;)e += "\n" + this.next().text; return this.inline.output(e) }, o.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, h(this.inlineText.output(this.token.text))); case "code": return this.renderer.code(this.token.text, this.token.lang, this.token.escaped); case "table": var e, t, n, r, s = "", i = ""; for (n = "", e = 0; e < this.token.header.length; e++)n += this.renderer.tablecell(this.inline.output(this.token.header[e]), { header: !0, align: this.token.align[e] }); for (s += this.renderer.tablerow(n), e = 0; e < this.token.cells.length; e++) { for (t = this.token.cells[e], n = "", r = 0; r < t.length; r++)n += this.renderer.tablecell(this.inline.output(t[r]), { header: !1, align: this.token.align[r] }); i += this.renderer.tablerow(n) } return this.renderer.table(s, i); case "blockquote_start": for (i = ""; "blockquote_end" !== this.next().type;)i += this.tok(); return this.renderer.blockquote(i); case "list_start": i = ""; for (var l = this.token.ordered, o = this.token.start; "list_end" !== this.next().type;)i += this.tok(); return this.renderer.list(i, l, o); case "list_item_start": for (i = "", this.token.task && (i += this.renderer.checkbox(this.token.checked)); "list_item_end" !== this.next().type;)i += "text" === this.token.type ? this.parseText() : this.tok(); return this.renderer.listitem(i); case "loose_item_start": for (i = ""; "list_item_end" !== this.next().type;)i += this.tok(); return this.renderer.listitem(i); case "html": return this.renderer.html(this.token.text); case "paragraph": return this.renderer.paragraph(this.inline.output(this.token.text)); case "text": return this.renderer.paragraph(this.parseText()) } }; var c = {}, g = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i; function d() { } function f(e) { for (var t, n, r = 1; r < arguments.length; r++)for (n in t = arguments[r]) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); return e } function b(e, t) { var n = e.replace(/([^\\])\|/g, "$1 |").split(/ +\| */), r = 0; if (n.length > t) n.splice(t); else for (; n.length < t;)n.push(""); for (; r < n.length; r++)n[r] = n[r].replace(/\\\|/g, "|"); return n } function m(e, t, r) { if (null == e) throw new Error("marked(): input parameter is undefined or null");/*if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");*/if (r || "function" == typeof t) { r || (r = t, t = null); var s, i, l = (t = f({}, m.defaults, t || {})).highlight, h = 0; try { s = n.lex(e, t) } catch (e) { return r(e) } i = s.length; var p = function (e) { if (e) return t.highlight = l, r(e); var n; try { n = o.parse(s, t) } catch (t) { e = t } return t.highlight = l, e ? r(e) : r(null, n) }; if (!l || l.length < 3) return p(); if (delete t.highlight, !i) return p(); for (; h < s.length; h++)!function (e) { "code" !== e.type ? --i || p() : l(e.text, e.lang, function (t, n) { return t ? p(t) : null == n || n === e.text ? --i || p() : (e.text = n, e.escaped = !0, void (--i || p())) }) }(s[h]) } else try { return t && (t = f({}, m.defaults, t)), o.parse(n.lex(e, t), t) } catch (e) { if (e.message += "\nPlease report this to https://github.com/markedjs/marked.", (t || m.defaults).silent) return "

      An error occurred:

      " + a(e.message + "", !0) + "
      "; throw e } } d.exec = d, m.options = m.setOptions = function (e) { return f(m.defaults, e), m }, m.getDefaults = function () { return { baseUrl: null, breaks: !1, gfm: !0, headerIds: !0, headerPrefix: "", highlight: null, langPrefix: "language-", mangle: !0, pedantic: !1, renderer: new i, sanitize: !1, sanitizer: null, silent: !1, smartLists: !1, smartypants: !1, tables: !0, xhtml: !1 } }, m.defaults = m.getDefaults(), m.Parser = o, m.parser = o.parse, m.Renderer = i, m.TextRenderer = l, m.Lexer = n, m.lexer = n.lex, m.InlineLexer = s, m.inlineLexer = s.output, m.parse = m, "undefined" != typeof module && "object" == typeof exports ? module.exports = m : "function" == typeof define && define.amd ? define(function () { return m }) : e.marked = m }(this || ("undefined" != typeof window ? window : global)); +// Copyright (C) 2006 Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var IN_GLOBAL_SCOPE = true; window["PR_SHOULD_USE_CONTINUATION"] = true; var prettyPrintOne; var prettyPrint; (function () { var P = window; var i = ["break,continue,do,else,for,if,return,while"]; var u = [i, "auto,case,char,const,default," + "double,enum,extern,float,goto,inline,int,long,register,short,signed," + "sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"]; var p = [u, "catch,class,delete,false,import," + "new,operator,private,protected,public,this,throw,true,try,typeof"]; var l = [p, "alignof,align_union,asm,axiom,bool," + "concept,concept_map,const_cast,constexpr,decltype,delegate," + "dynamic_cast,explicit,export,friend,generic,late_check," + "mutable,namespace,nullptr,property,reinterpret_cast,static_assert," + "static_cast,template,typeid,typename,using,virtual,where"]; var y = [p, "abstract,assert,boolean,byte,extends,final,finally,implements,import," + "instanceof,interface,null,native,package,strictfp,super,synchronized," + "throws,transient"]; var U = [y, "as,base,by,checked,decimal,delegate,descending,dynamic,event," + "fixed,foreach,from,group,implicit,in,internal,into,is,let," + "lock,object,out,override,orderby,params,partial,readonly,ref,sbyte," + "sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort," + "var,virtual,where"]; var r = "all,and,by,catch,class,else,extends,false,finally," + "for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then," + "throw,true,try,unless,until,when,while,yes"; var x = [p, "debugger,eval,export,function,get,null,set,undefined,var,with," + "Infinity,NaN"]; var s = "caller,delete,die,do,dump,elsif,eval,exit,foreach,for," + "goto,if,import,last,local,my,next,no,our,print,package,redo,require," + "sub,undef,unless,until,use,wantarray,while,BEGIN,END"; var K = [i, "and,as,assert,class,def,del," + "elif,except,exec,finally,from,global,import,in,is,lambda," + "nonlocal,not,or,pass,print,raise,try,with,yield," + "False,True,None"]; var g = [i, "alias,and,begin,case,class," + "def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo," + "rescue,retry,self,super,then,true,undef,unless,until,when,yield," + "BEGIN,END"]; var z = [i, "as,assert,const,copy,drop," + "enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv," + "pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"]; var J = [i, "case,done,elif,esac,eval,fi," + "function,in,local,set,then,until"]; var C = [l, U, x, s, K, g, J]; var e = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/; var E = "str"; var B = "kwd"; var j = "com"; var R = "typ"; var I = "lit"; var N = "pun"; var H = "pln"; var m = "tag"; var G = "dec"; var L = "src"; var S = "atn"; var n = "atv"; var Q = "nocode"; var O = "(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*"; function k(ac) { var ag = 0; var V = false; var af = false; for (var Y = 0, X = ac.length; Y < X; ++Y) { var ah = ac[Y]; if (ah.ignoreCase) { af = true } else { if (/[a-z]/i.test(ah.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi, ""))) { V = true; af = false; break } } } var ab = { "b": 8, "t": 9, "n": 10, "v": 11, "f": 12, "r": 13 }; function ae(ak) { var aj = ak.charCodeAt(0); if (aj !== 92) { return aj } var ai = ak.charAt(1); aj = ab[ai]; if (aj) { return aj } else { if ("0" <= ai && ai <= "7") { return parseInt(ak.substring(1), 8) } else { if (ai === "u" || ai === "x") { return parseInt(ak.substring(2), 16) } else { return ak.charCodeAt(1) } } } } function W(ai) { if (ai < 32) { return (ai < 16 ? "\\x0" : "\\x") + ai.toString(16) } var aj = String.fromCharCode(ai); return (aj === "\\" || aj === "-" || aj === "]" || aj === "^") ? "\\" + aj : aj } function aa(ao) { var at = ao.substring(1, ao.length - 1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}" + "|\\\\x[0-9A-Fa-f]{2}" + "|\\\\[0-3][0-7]{0,2}" + "|\\\\[0-7]{1,2}" + "|\\\\[\\s\\S]" + "|-" + "|[^-\\\\]", "g")); var ai = []; var aq = at[0] === "^"; var ap = ["["]; if (aq) { ap.push("^") } for (var au = aq ? 1 : 0, am = at.length; au < am; ++au) { var ak = at[au]; if (/\\[bdsw]/i.test(ak)) { ap.push(ak) } else { var aj = ae(ak); var an; if (au + 2 < am && "-" === at[au + 1]) { an = ae(at[au + 2]); au += 2 } else { an = aj } ai.push([aj, an]); if (!(an < 65 || aj > 122)) { if (!(an < 65 || aj > 90)) { ai.push([Math.max(65, aj) | 32, Math.min(an, 90) | 32]) } if (!(an < 97 || aj > 122)) { ai.push([Math.max(97, aj) & ~32, Math.min(an, 122) & ~32]) } } } } ai.sort(function (ax, aw) { return (ax[0] - aw[0]) || (aw[1] - ax[1]) }); var al = []; var ar = []; for (var au = 0; au < ai.length; ++au) { var av = ai[au]; if (av[0] <= ar[1] + 1) { ar[1] = Math.max(ar[1], av[1]) } else { al.push(ar = av) } } for (var au = 0; au < al.length; ++au) { var av = al[au]; ap.push(W(av[0])); if (av[1] > av[0]) { if (av[1] + 1 > av[0]) { ap.push("-") } ap.push(W(av[1])) } } ap.push("]"); return ap.join("") } function Z(ao) { var am = ao.source.match(new RegExp("(?:" + "\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]" + "|\\\\u[A-Fa-f0-9]{4}" + "|\\\\x[A-Fa-f0-9]{2}" + "|\\\\[0-9]+" + "|\\\\[^ux0-9]" + "|\\(\\?[:!=]" + "|[\\(\\)\\^]" + "|[^\\x5B\\x5C\\(\\)\\^]+" + ")", "g")); var ak = am.length; var aq = []; for (var an = 0, ap = 0; an < ak; ++an) { var aj = am[an]; if (aj === "(") { ++ap } else { if ("\\" === aj.charAt(0)) { var ai = +aj.substring(1); if (ai) { if (ai <= ap) { aq[ai] = -1 } else { am[an] = W(ai) } } } } } for (var an = 1; an < aq.length; ++an) { if (-1 === aq[an]) { aq[an] = ++ag } } for (var an = 0, ap = 0; an < ak; ++an) { var aj = am[an]; if (aj === "(") { ++ap; if (!aq[ap]) { am[an] = "(?:" } } else { if ("\\" === aj.charAt(0)) { var ai = +aj.substring(1); if (ai && ai <= ap) { am[an] = "\\" + aq[ai] } } } } for (var an = 0; an < ak; ++an) { if ("^" === am[an] && "^" !== am[an + 1]) { am[an] = "" } } if (ao.ignoreCase && V) { for (var an = 0; an < ak; ++an) { var aj = am[an]; var al = aj.charAt(0); if (aj.length >= 2 && al === "[") { am[an] = aa(aj) } else { if (al !== "\\") { am[an] = aj.replace(/[a-zA-Z]/g, function (ar) { var at = ar.charCodeAt(0); return "[" + String.fromCharCode(at & ~32, at | 32) + "]" }) } } } } return am.join("") } var ad = []; for (var Y = 0, X = ac.length; Y < X; ++Y) { var ah = ac[Y]; if (ah.global || ah.multiline) { throw new Error("" + ah) } ad.push("(?:" + Z(ah) + ")") } return new RegExp(ad.join("|"), af ? "gi" : "g") } function b(ab, Z) { var X = /(?:^|\s)nocode(?:\s|$)/; var ac = []; var aa = 0; var Y = []; var W = 0; function V(ae) { var ad = ae.nodeType; if (ad == 1) { if (X.test(ae.className)) { return } for (var ah = ae.firstChild; ah; ah = ah.nextSibling) { V(ah) } var ag = ae.nodeName.toLowerCase(); if ("br" === ag || "li" === ag) { ac[W] = "\n"; Y[W << 1] = aa++; Y[(W++ << 1) | 1] = ae } } else { if (ad == 3 || ad == 4) { var af = ae.nodeValue; if (af.length) { if (!Z) { af = af.replace(/[ \t\r\n]+/g, " ") } else { af = af.replace(/\r\n?/g, "\n") } ac[W] = af; Y[W << 1] = aa; aa += af.length; Y[(W++ << 1) | 1] = ae } } } } V(ab); return { sourceCode: ac.join("").replace(/\n$/, ""), spans: Y } } function D(V, X, Z, W) { if (!X) { return } var Y = { sourceCode: X, basePos: V }; Z(Y); W.push.apply(W, Y.decorations) } var v = /\S/; function o(V) { var Y = undefined; for (var X = V.firstChild; X; X = X.nextSibling) { var W = X.nodeType; Y = (W === 1) ? (Y ? V : X) : (W === 3) ? (v.test(X.nodeValue) ? V : Y) : Y } return Y === V ? undefined : Y } function f(X, W) { var V = {}; var Y; (function () { var ag = X.concat(W); var ak = []; var aj = {}; for (var ae = 0, ac = ag.length; ae < ac; ++ae) { var ab = ag[ae]; var af = ab[3]; if (af) { for (var ah = af.length; --ah >= 0;) { V[af.charAt(ah)] = ab } } var ai = ab[1]; var ad = "" + ai; if (!aj.hasOwnProperty(ad)) { ak.push(ai); aj[ad] = null } } ak.push(/[\0-\uffff]/); Y = k(ak) })(); var aa = W.length; var Z = function (ak) { var ac = ak.sourceCode, ab = ak.basePos; var ag = [ab, H]; var ai = 0; var aq = ac.match(Y) || []; var am = {}; for (var ah = 0, au = aq.length; ah < au; ++ah) { var aj = aq[ah]; var at = am[aj]; var al = void 0; var ap; if (typeof at === "string") { ap = false } else { var ad = V[aj.charAt(0)]; if (ad) { al = aj.match(ad[1]); at = ad[0] } else { for (var ar = 0; ar < aa; ++ar) { ad = W[ar]; al = aj.match(ad[1]); if (al) { at = ad[0]; break } } if (!al) { at = H } } ap = at.length >= 5 && "lang-" === at.substring(0, 5); if (ap && !(al && typeof al[1] === "string")) { ap = false; at = L } if (!ap) { am[aj] = at } } var ae = ai; ai += aj.length; if (!ap) { ag.push(ab + ae, at) } else { var ao = al[1]; var an = aj.indexOf(ao); var af = an + ao.length; if (al[2]) { af = aj.length - al[2].length; an = af - ao.length } var av = at.substring(5); D(ab + ae, aj.substring(0, an), Z, ag); D(ab + ae + an, ao, q(av, ao), ag); D(ab + ae + af, aj.substring(af), Z, ag) } } ak.decorations = ag }; return Z } function h(af) { var X = [], ab = []; if (af["tripleQuotedStrings"]) { X.push([E, /^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/, null, "'\""]) } else { if (af["multiLineStrings"]) { X.push([E, /^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/, null, "'\"`"]) } else { X.push([E, /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, null, "\"'"]) } } if (af["verbatimStrings"]) { ab.push([E, /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null]) } var ad = af["hashComments"]; if (ad) { if (af["cStyleComments"]) { if (ad > 1) { X.push([j, /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, null, "#"]) } else { X.push([j, /^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/, null, "#"]) } ab.push([E, /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/, null]) } else { X.push([j, /^#[^\r\n]*/, null, "#"]) } } if (af["cStyleComments"]) { ab.push([j, /^\/\/[^\r\n]*/, null]); ab.push([j, /^\/\*[\s\S]*?(?:\*\/|$)/, null]) } var W = af["regexLiterals"]; if (W) { var Y = W > 1 ? "" : "\n\r"; var aa = Y ? "." : "[\\S\\s]"; var Z = ("/(?=[^/*" + Y + "])" + "(?:[^/\\x5B\\x5C" + Y + "]" + "|\\x5C" + aa + "|\\x5B(?:[^\\x5C\\x5D" + Y + "]" + "|\\x5C" + aa + ")*(?:\\x5D|$))+" + "/"); ab.push(["lang-regex", RegExp("^" + O + "(" + Z + ")")]) } var ae = af["types"]; if (ae) { ab.push([R, ae]) } var ac = ("" + af["keywords"]).replace(/^ | $/g, ""); if (ac.length) { ab.push([B, new RegExp("^(?:" + ac.replace(/[\s,]+/g, "|") + ")\\b"), null]) } X.push([H, /^\s+/, null, " \r\n\t\xA0"]); var V = "^.[^\\s\\w.$@'\"`/\\\\]*"; if (af["regexLiterals"]) { V += "(?!s*/)" } ab.push([I, /^@[a-z_$][a-z_$@0-9]*/i, null], [R, /^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/, null], [H, /^[a-z_$][a-z_$@0-9]*/i, null], [I, new RegExp("^(?:" + "0x[a-f0-9]+" + "|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)" + "(?:e[+\\-]?\\d+)?" + ")" + "[a-z]*", "i"), null, "0123456789"], [H, /^\\[\s\S]?/, null], [N, new RegExp(V), null]); return f(X, ab) } var M = h({ "keywords": C, "hashComments": true, "cStyleComments": true, "multiLineStrings": true, "regexLiterals": true }); function T(X, ai, ab) { var W = /(?:^|\s)nocode(?:\s|$)/; var ad = /\r\n?|\n/; var ae = X.ownerDocument; var ah = ae.createElement("li"); while (X.firstChild) { ah.appendChild(X.firstChild) } var Y = [ah]; function ag(ao) { var an = ao.nodeType; if (an == 1 && !W.test(ao.className)) { if ("br" === ao.nodeName) { af(ao); if (ao.parentNode) { ao.parentNode.removeChild(ao) } } else { for (var aq = ao.firstChild; aq; aq = aq.nextSibling) { ag(aq) } } } else { if ((an == 3 || an == 4) && ab) { var ap = ao.nodeValue; var al = ap.match(ad); if (al) { var ak = ap.substring(0, al.index); ao.nodeValue = ak; var aj = ap.substring(al.index + al[0].length); if (aj) { var am = ao.parentNode; am.insertBefore(ae.createTextNode(aj), ao.nextSibling) } af(ao); if (!ak) { ao.parentNode.removeChild(ao) } } } } } function af(am) { while (!am.nextSibling) { am = am.parentNode; if (!am) { return } } function ak(an, au) { var at = au ? an.cloneNode(false) : an; var aq = an.parentNode; if (aq) { var ar = ak(aq, 1); var ap = an.nextSibling; ar.appendChild(at); for (var ao = ap; ao; ao = ap) { ap = ao.nextSibling; ar.appendChild(ao) } } return at } var aj = ak(am.nextSibling, 0); for (var al; (al = aj.parentNode) && al.nodeType === 1;) { aj = al } Y.push(aj) } for (var aa = 0; aa < Y.length; ++aa) { ag(Y[aa]) } if (ai === (ai | 0)) { Y[0].setAttribute("value", ai) } var ac = ae.createElement("ol"); ac.className = "linenums"; var Z = Math.max(0, ((ai - 1)) | 0) || 0; for (var aa = 0, V = Y.length; aa < V; ++aa) { ah = Y[aa]; ah.className = "L" + ((aa + Z) % 10); if (!ah.firstChild) { ah.appendChild(ae.createTextNode("\xA0")) } ac.appendChild(ah) } X.appendChild(ac) } function F(ag) { var Y = /\bMSIE\s(\d+)/.exec(navigator.userAgent); Y = Y && +Y[1] <= 8; var ap = /\n/g; var ao = ag.sourceCode; var aq = ao.length; var Z = 0; var ae = ag.spans; var W = ae.length; var ak = 0; var ab = ag.decorations; var ac = ab.length; var ad = 0; ab[ac] = aq; var aw, au; for (au = aw = 0; au < ac;) { if (ab[au] !== ab[au + 2]) { ab[aw++] = ab[au++]; ab[aw++] = ab[au++] } else { au += 2 } } ac = aw; for (au = aw = 0; au < ac;) { var ax = ab[au]; var af = ab[au + 1]; var aa = au + 2; while (aa + 2 <= ac && ab[aa + 1] === af) { aa += 2 } ab[aw++] = ax; ab[aw++] = af; au = aa } ac = ab.length = aw; var av = ag.sourceNode; var al; if (av) { al = av.style.display; av.style.display = "none" } try { var ai = null; while (ak < W) { var aj = ae[ak]; var V = ae[ak + 2] || aq; var at = ab[ad + 2] || aq; var aa = Math.min(V, at); var an = ae[ak + 1]; var X; if (an.nodeType !== 1 && (X = ao.substring(Z, aa))) { if (Y) { X = X.replace(ap, "\r") } an.nodeValue = X; var am = an.ownerDocument; var ar = am.createElement("span"); ar.className = ab[ad + 1]; var ah = an.parentNode; ah.replaceChild(ar, an); ar.appendChild(an); if (Z < V) { ae[ak + 1] = an = am.createTextNode(ao.substring(aa, V)); ah.insertBefore(an, ar.nextSibling) } } Z = aa; if (Z >= V) { ak += 2 } if (Z >= at) { ad += 2 } } } finally { if (av) { av.style.display = al } } } var t = {}; function c(X, Y) { for (var V = Y.length; --V >= 0;) { var W = Y[V]; if (!t.hasOwnProperty(W)) { t[W] = X } else { if (P["console"]) { console["warn"]("cannot override language handler %s", W) } } } } function q(W, V) { if (!(W && t.hasOwnProperty(W))) { W = /^\s*]*(?:>|$)/], [j, /^<\!--[\s\S]*?(?:-\->|$)/], ["lang-", /^<\?([\s\S]+?)(?:\?>|$)/], ["lang-", /^<%([\s\S]+?)(?:%>|$)/], [N, /^(?:<[%?]|[%?]>)/], ["lang-", /^]*>([\s\S]+?)<\/xmp\b[^>]*>/i], ["lang-js", /^]*>([\s\S]*?)(<\/script\b[^>]*>)/i], ["lang-css", /^]*>([\s\S]*?)(<\/style\b[^>]*>)/i], ["lang-in.tag", /^(<\/?[a-z][^<>]*>)/i]]), ["default-markup", "htm", "html", "mxml", "xhtml", "xml", "xsl"]); c(f([[H, /^[\s]+/, null, " \t\r\n"], [n, /^(?:\"[^\"]*\"?|\'[^\']*\'?)/, null, "\"'"]], [[m, /^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i], [S, /^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i], ["lang-uq.val", /^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/], [N, /^[=<>\/]+/], ["lang-js", /^on\w+\s*=\s*\"([^\"]+)\"/i], ["lang-js", /^on\w+\s*=\s*\'([^\']+)\'/i], ["lang-js", /^on\w+\s*=\s*([^\"\'>\s]+)/i], ["lang-css", /^style\s*=\s*\"([^\"]+)\"/i], ["lang-css", /^style\s*=\s*\'([^\']+)\'/i], ["lang-css", /^style\s*=\s*([^\"\'>\s]+)/i]]), ["in.tag"]); c(f([], [[n, /^[\s\S]+/]]), ["uq.val"]); c(h({ "keywords": l, "hashComments": true, "cStyleComments": true, "types": e }), ["c", "cc", "cpp", "cxx", "cyc", "m"]); c(h({ "keywords": "null,true,false" }), ["json"]); c(h({ "keywords": U, "hashComments": true, "cStyleComments": true, "verbatimStrings": true, "types": e }), ["cs"]); c(h({ "keywords": y, "cStyleComments": true }), ["java"]); c(h({ "keywords": J, "hashComments": true, "multiLineStrings": true }), ["bash", "bsh", "csh", "sh"]); c(h({ "keywords": K, "hashComments": true, "multiLineStrings": true, "tripleQuotedStrings": true }), ["cv", "py", "python"]); c(h({ "keywords": s, "hashComments": true, "multiLineStrings": true, "regexLiterals": 2 }), ["perl", "pl", "pm"]); c(h({ "keywords": g, "hashComments": true, "multiLineStrings": true, "regexLiterals": true }), ["rb", "ruby"]); c(h({ "keywords": x, "cStyleComments": true, "regexLiterals": true }), ["javascript", "js"]); c(h({ "keywords": r, "hashComments": 3, "cStyleComments": true, "multilineStrings": true, "tripleQuotedStrings": true, "regexLiterals": true }), ["coffee"]); c(h({ "keywords": z, "cStyleComments": true, "multilineStrings": true }), ["rc", "rs", "rust"]); c(f([], [[E, /^[\s\S]+/]]), ["regex"]); function d(Y) { var X = Y.langExtension; try { var V = b(Y.sourceNode, Y.pre); var W = V.sourceCode; Y.sourceCode = W; Y.spans = V.spans; Y.basePos = 0; q(X, W)(Y); F(Y) } catch (Z) { if (P["console"]) { console["log"](Z && Z["stack"] || Z) } } } function A(Z, Y, X) { var V = document.createElement("div"); V.innerHTML = "
      " + Z + "
      "; V = V.firstChild; if (X) { T(V, X, true) } var W = { langExtension: Y, numberLines: X, sourceNode: V, pre: 1 }; d(W); return V.innerHTML } function w(al, ab) { var ah = ab || document.body; var ao = ah.ownerDocument || document; function aa(aq) { return ah.getElementsByTagName(aq) } var ad = [aa("pre"), aa("code"), aa("xmp")]; var ae = []; for (var ak = 0; ak < ad.length; ++ak) { for (var aj = 0, ag = ad[ak].length; aj < ag; ++aj) { ae.push(ad[ak][aj]) } } ad = null; var ap = Date; if (!ap["now"]) { ap = { "now": function () { return +(new Date) } } } var ai = 0; var ac; var X = /\blang(?:uage)?-([\w.]+)(?!\S)/; var an = /\bprettyprint\b/; var W = /\bprettyprinted\b/; var Z = /pre|xmp/i; var V = /^code$/i; var Y = /^(?:pre|code|xmp)$/i; var am = {}; function af() { var ay = (P["PR_SHOULD_USE_CONTINUATION"] ? ap["now"]() + 250 : Infinity); for (; ai < ae.length && ap["now"]() < ay; ai++) { var aA = ae[ai]; var aH = am; for (var ax = aA; (ax = ax.previousSibling);) { var aE = ax.nodeType; var aF = (aE === 7 || aE === 8) && ax.nodeValue; if (aF ? !/^\??prettify\b/.test(aF) : (aE !== 3 || /\S/.test(ax.nodeValue))) { break } if (aF) { aH = {}; aF.replace(/\b(\w+)=([\w:.%+-]+)/g, function (aJ, aI, aK) { aH[aI] = aK }); break } } var aB = aA.className; if ((aH !== am || an.test(aB)) && !W.test(aB)) { var aD = false; for (var au = aA.parentNode; au; au = au.parentNode) { var aG = au.tagName; if (Y.test(aG) && au.className && an.test(au.className)) { aD = true; break } } if (!aD) { aA.className += " prettyprinted"; var aw = aH["lang"]; if (!aw) { aw = aB.match(X); var ar; if (!aw && (ar = o(aA)) && V.test(ar.tagName)) { aw = ar.className.match(X) } if (aw) { aw = aw[1] } } var av; if (Z.test(aA.tagName)) { av = 1 } else { var at = aA["currentStyle"]; var az = ao.defaultView; var aq = (at ? at["whiteSpace"] : (az && az.getComputedStyle) ? az.getComputedStyle(aA, null).getPropertyValue("white-space") : 0); av = aq && "pre" === aq.substring(0, 3) } var aC = aH["linenums"]; if (!(aC = aC === "true" || +aC)) { aC = aB.match(/\blinenums\b(?::(\d+))?/); aC = aC ? aC[1] && aC[1].length ? +aC[1] : true : false } if (aC) { T(aA, aC, av) } ac = { langExtension: aw, sourceNode: aA, numberLines: aC, pre: av }; d(ac) } } } if (ai < ae.length) { setTimeout(af, 250) } else { if ("function" === typeof al) { al() } } } af() } var a = P["PR"] = { "createSimpleLexer": f, "registerLangHandler": c, "sourceDecorator": h, "PR_ATTRIB_NAME": S, "PR_ATTRIB_VALUE": n, "PR_COMMENT": j, "PR_DECLARATION": G, "PR_KEYWORD": B, "PR_LITERAL": I, "PR_NOCODE": Q, "PR_PLAIN": H, "PR_PUNCTUATION": N, "PR_SOURCE": L, "PR_STRING": E, "PR_TAG": m, "PR_TYPE": R, "prettyPrintOne": IN_GLOBAL_SCOPE ? (P["prettyPrintOne"] = A) : (prettyPrintOne = A), "prettyPrint": prettyPrint = IN_GLOBAL_SCOPE ? (P["prettyPrint"] = w) : (prettyPrint = w) }; if (typeof define === "function" && define["amd"]) { define("google-code-prettify", [], function () { return a }) } })(); +// ┌────────────────────────────────────────────────────────────────────┐ \\ +// │ Raphaël 2.1.3 - JavaScript Vector Library │ \\ +// ├────────────────────────────────────────────────────────────────────┤ \\ +// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\ +// │ Copyright © 2008-2012 Sencha Labs (http://sencha.com) │ \\ +// ├────────────────────────────────────────────────────────────────────┤ \\ +// │ Licensed under the MIT (http://raphaeljs.com/license.html) license.│ \\ +// └────────────────────────────────────────────────────────────────────┘ \\ + +// Element= -> __Element= +!function (a) { var b, c, d = "0.4.2", e = "hasOwnProperty", f = /[\.\/]/, g = "*", h = function () { }, i = function (a, b) { return a - b }, j = { n: {} }, k = function (a, d) { a = String(a); var e, f = c, g = Array.prototype.slice.call(arguments, 2), h = k.listeners(a), j = 0, l = [], m = {}, n = [], o = b; b = a, c = 0; for (var p = 0, q = h.length; q > p; p++)"zIndex" in h[p] && (l.push(h[p].zIndex), h[p].zIndex < 0 && (m[h[p].zIndex] = h[p])); for (l.sort(i); l[j] < 0;)if (e = m[l[j++]], n.push(e.apply(d, g)), c) return c = f, n; for (p = 0; q > p; p++)if (e = h[p], "zIndex" in e) if (e.zIndex == l[j]) { if (n.push(e.apply(d, g)), c) break; do if (j++, e = m[l[j]], e && n.push(e.apply(d, g)), c) break; while (e) } else m[e.zIndex] = e; else if (n.push(e.apply(d, g)), c) break; return c = f, b = o, n.length ? n : null }; k._events = j, k.listeners = function (a) { var b, c, d, e, h, i, k, l, m = a.split(f), n = j, o = [n], p = []; for (e = 0, h = m.length; h > e; e++) { for (l = [], i = 0, k = o.length; k > i; i++)for (n = o[i].n, c = [n[m[e]], n[g]], d = 2; d--;)b = c[d], b && (l.push(b), p = p.concat(b.f || [])); o = l } return p }, k.on = function (a, b) { if (a = String(a), "function" != typeof b) return function () { }; for (var c = a.split(f), d = j, e = 0, g = c.length; g > e; e++)d = d.n, d = d.hasOwnProperty(c[e]) && d[c[e]] || (d[c[e]] = { n: {} }); for (d.f = d.f || [], e = 0, g = d.f.length; g > e; e++)if (d.f[e] == b) return h; return d.f.push(b), function (a) { +a == +a && (b.zIndex = +a) } }, k.f = function (a) { var b = [].slice.call(arguments, 1); return function () { k.apply(null, [a, null].concat(b).concat([].slice.call(arguments, 0))) } }, k.stop = function () { c = 1 }, k.nt = function (a) { return a ? new RegExp("(?:\\.|\\/|^)" + a + "(?:\\.|\\/|$)").test(b) : b }, k.nts = function () { return b.split(f) }, k.off = k.unbind = function (a, b) { if (!a) return void (k._events = j = { n: {} }); var c, d, h, i, l, m, n, o = a.split(f), p = [j]; for (i = 0, l = o.length; l > i; i++)for (m = 0; m < p.length; m += h.length - 2) { if (h = [m, 1], c = p[m].n, o[i] != g) c[o[i]] && h.push(c[o[i]]); else for (d in c) c[e](d) && h.push(c[d]); p.splice.apply(p, h) } for (i = 0, l = p.length; l > i; i++)for (c = p[i]; c.n;) { if (b) { if (c.f) { for (m = 0, n = c.f.length; n > m; m++)if (c.f[m] == b) { c.f.splice(m, 1); break } !c.f.length && delete c.f } for (d in c.n) if (c.n[e](d) && c.n[d].f) { var q = c.n[d].f; for (m = 0, n = q.length; n > m; m++)if (q[m] == b) { q.splice(m, 1); break } !q.length && delete c.n[d].f } } else { delete c.f; for (d in c.n) c.n[e](d) && c.n[d].f && delete c.n[d].f } c = c.n } }, k.once = function (a, b) { var c = function () { return k.unbind(a, c), b.apply(this, arguments) }; return k.on(a, c) }, k.version = d, k.toString = function () { return "You are running Eve " + d }, "undefined" != typeof module && module.exports ? module.exports = k : "undefined" != typeof define ? define("eve", [], function () { return k }) : a.eve = k }(window || this), function (a, b) { "function" == typeof define && define.amd ? define(["eve"], function (c) { return b(a, c) }) : b(a, a.eve || "function" == typeof require && require("eve")) }(this, function (a, b) { + function c(a) { if (c.is(a, "function")) return u ? a() : b.on("raphael.DOMload", a); if (c.is(a, V)) return c._engine.create[D](c, a.splice(0, 3 + c.is(a[0], T))).add(a); var d = Array.prototype.slice.call(arguments, 0); if (c.is(d[d.length - 1], "function")) { var e = d.pop(); return u ? e.call(c._engine.create[D](c, d)) : b.on("raphael.DOMload", function () { e.call(c._engine.create[D](c, d)) }) } return c._engine.create[D](c, arguments) } function d(a) { if ("function" == typeof a || Object(a) !== a) return a; var b = new a.constructor; for (var c in a) a[z](c) && (b[c] = d(a[c])); return b } function e(a, b) { for (var c = 0, d = a.length; d > c; c++)if (a[c] === b) return a.push(a.splice(c, 1)[0]) } function f(a, b, c) { function d() { var f = Array.prototype.slice.call(arguments, 0), g = f.join("␀"), h = d.cache = d.cache || {}, i = d.count = d.count || []; return h[z](g) ? (e(i, g), c ? c(h[g]) : h[g]) : (i.length >= 1e3 && delete h[i.shift()], i.push(g), h[g] = a[D](b, f), c ? c(h[g]) : h[g]) } return d } function g() { return this.hex } function h(a, b) { for (var c = [], d = 0, e = a.length; e - 2 * !b > d; d += 2) { var f = [{ x: +a[d - 2], y: +a[d - 1] }, { x: +a[d], y: +a[d + 1] }, { x: +a[d + 2], y: +a[d + 3] }, { x: +a[d + 4], y: +a[d + 5] }]; b ? d ? e - 4 == d ? f[3] = { x: +a[0], y: +a[1] } : e - 2 == d && (f[2] = { x: +a[0], y: +a[1] }, f[3] = { x: +a[2], y: +a[3] }) : f[0] = { x: +a[e - 2], y: +a[e - 1] } : e - 4 == d ? f[3] = f[2] : d || (f[0] = { x: +a[d], y: +a[d + 1] }), c.push(["C", (-f[0].x + 6 * f[1].x + f[2].x) / 6, (-f[0].y + 6 * f[1].y + f[2].y) / 6, (f[1].x + 6 * f[2].x - f[3].x) / 6, (f[1].y + 6 * f[2].y - f[3].y) / 6, f[2].x, f[2].y]) } return c } function i(a, b, c, d, e) { var f = -3 * b + 9 * c - 9 * d + 3 * e, g = a * f + 6 * b - 12 * c + 6 * d; return a * g - 3 * b + 3 * c } function j(a, b, c, d, e, f, g, h, j) { null == j && (j = 1), j = j > 1 ? 1 : 0 > j ? 0 : j; for (var k = j / 2, l = 12, m = [-.1252, .1252, -.3678, .3678, -.5873, .5873, -.7699, .7699, -.9041, .9041, -.9816, .9816], n = [.2491, .2491, .2335, .2335, .2032, .2032, .1601, .1601, .1069, .1069, .0472, .0472], o = 0, p = 0; l > p; p++) { var q = k * m[p] + k, r = i(q, a, c, e, g), s = i(q, b, d, f, h), t = r * r + s * s; o += n[p] * N.sqrt(t) } return k * o } function k(a, b, c, d, e, f, g, h, i) { if (!(0 > i || j(a, b, c, d, e, f, g, h) < i)) { var k, l = 1, m = l / 2, n = l - m, o = .01; for (k = j(a, b, c, d, e, f, g, h, n); Q(k - i) > o;)m /= 2, n += (i > k ? 1 : -1) * m, k = j(a, b, c, d, e, f, g, h, n); return n } } function l(a, b, c, d, e, f, g, h) { if (!(O(a, c) < P(e, g) || P(a, c) > O(e, g) || O(b, d) < P(f, h) || P(b, d) > O(f, h))) { var i = (a * d - b * c) * (e - g) - (a - c) * (e * h - f * g), j = (a * d - b * c) * (f - h) - (b - d) * (e * h - f * g), k = (a - c) * (f - h) - (b - d) * (e - g); if (k) { var l = i / k, m = j / k, n = +l.toFixed(2), o = +m.toFixed(2); if (!(n < +P(a, c).toFixed(2) || n > +O(a, c).toFixed(2) || n < +P(e, g).toFixed(2) || n > +O(e, g).toFixed(2) || o < +P(b, d).toFixed(2) || o > +O(b, d).toFixed(2) || o < +P(f, h).toFixed(2) || o > +O(f, h).toFixed(2))) return { x: l, y: m } } } } function m(a, b, d) { var e = c.bezierBBox(a), f = c.bezierBBox(b); if (!c.isBBoxIntersect(e, f)) return d ? 0 : []; for (var g = j.apply(0, a), h = j.apply(0, b), i = O(~~(g / 5), 1), k = O(~~(h / 5), 1), m = [], n = [], o = {}, p = d ? 0 : [], q = 0; i + 1 > q; q++) { var r = c.findDotsAtSegment.apply(c, a.concat(q / i)); m.push({ x: r.x, y: r.y, t: q / i }) } for (q = 0; k + 1 > q; q++)r = c.findDotsAtSegment.apply(c, b.concat(q / k)), n.push({ x: r.x, y: r.y, t: q / k }); for (q = 0; i > q; q++)for (var s = 0; k > s; s++) { var t = m[q], u = m[q + 1], v = n[s], w = n[s + 1], x = Q(u.x - t.x) < .001 ? "y" : "x", y = Q(w.x - v.x) < .001 ? "y" : "x", z = l(t.x, t.y, u.x, u.y, v.x, v.y, w.x, w.y); if (z) { if (o[z.x.toFixed(4)] == z.y.toFixed(4)) continue; o[z.x.toFixed(4)] = z.y.toFixed(4); var A = t.t + Q((z[x] - t[x]) / (u[x] - t[x])) * (u.t - t.t), B = v.t + Q((z[y] - v[y]) / (w[y] - v[y])) * (w.t - v.t); A >= 0 && 1.001 >= A && B >= 0 && 1.001 >= B && (d ? p++ : p.push({ x: z.x, y: z.y, t1: P(A, 1), t2: P(B, 1) })) } } return p } function n(a, b, d) { a = c._path2curve(a), b = c._path2curve(b); for (var e, f, g, h, i, j, k, l, n, o, p = d ? 0 : [], q = 0, r = a.length; r > q; q++) { var s = a[q]; if ("M" == s[0]) e = i = s[1], f = j = s[2]; else { "C" == s[0] ? (n = [e, f].concat(s.slice(1)), e = n[6], f = n[7]) : (n = [e, f, e, f, i, j, i, j], e = i, f = j); for (var t = 0, u = b.length; u > t; t++) { var v = b[t]; if ("M" == v[0]) g = k = v[1], h = l = v[2]; else { "C" == v[0] ? (o = [g, h].concat(v.slice(1)), g = o[6], h = o[7]) : (o = [g, h, g, h, k, l, k, l], g = k, h = l); var w = m(n, o, d); if (d) p += w; else { for (var x = 0, y = w.length; y > x; x++)w[x].segment1 = q, w[x].segment2 = t, w[x].bez1 = n, w[x].bez2 = o; p = p.concat(w) } } } } } return p } function o(a, b, c, d, e, f) { null != a ? (this.a = +a, this.b = +b, this.c = +c, this.d = +d, this.e = +e, this.f = +f) : (this.a = 1, this.b = 0, this.c = 0, this.d = 1, this.e = 0, this.f = 0) } function p() { return this.x + H + this.y + H + this.width + " × " + this.height } function q(a, b, c, d, e, f) { function g(a) { return ((l * a + k) * a + j) * a } function h(a, b) { var c = i(a, b); return ((o * c + n) * c + m) * c } function i(a, b) { var c, d, e, f, h, i; for (e = a, i = 0; 8 > i; i++) { if (f = g(e) - a, Q(f) < b) return e; if (h = (3 * l * e + 2 * k) * e + j, Q(h) < 1e-6) break; e -= f / h } if (c = 0, d = 1, e = a, c > e) return c; if (e > d) return d; for (; d > c;) { if (f = g(e), Q(f - a) < b) return e; a > f ? c = e : d = e, e = (d - c) / 2 + c } return e } var j = 3 * b, k = 3 * (d - b) - j, l = 1 - j - k, m = 3 * c, n = 3 * (e - c) - m, o = 1 - m - n; return h(a, 1 / (200 * f)) } function r(a, b) { var c = [], d = {}; if (this.ms = b, this.times = 1, a) { for (var e in a) a[z](e) && (d[_(e)] = a[e], c.push(_(e))); c.sort(lb) } this.anim = d, this.top = c[c.length - 1], this.percents = c } function s(a, d, e, f, g, h) { e = _(e); var i, j, k, l, m, n, p = a.ms, r = {}, s = {}, t = {}; if (f) for (v = 0, x = ic.length; x > v; v++) { var u = ic[v]; if (u.el.id == d.id && u.anim == a) { u.percent != e ? (ic.splice(v, 1), k = 1) : j = u, d.attr(u.totalOrigin); break } } else f = +s; for (var v = 0, x = a.percents.length; x > v; v++) { if (a.percents[v] == e || a.percents[v] > f * a.top) { e = a.percents[v], m = a.percents[v - 1] || 0, p = p / a.top * (e - m), l = a.percents[v + 1], i = a.anim[e]; break } f && d.attr(a.anim[a.percents[v]]) } if (i) { if (j) j.initstatus = f, j.start = new Date - j.ms * f; else { for (var y in i) if (i[z](y) && (db[z](y) || d.paper.customAttributes[z](y))) switch (r[y] = d.attr(y), null == r[y] && (r[y] = cb[y]), s[y] = i[y], db[y]) { case T: t[y] = (s[y] - r[y]) / p; break; case "colour": r[y] = c.getRGB(r[y]); var A = c.getRGB(s[y]); t[y] = { r: (A.r - r[y].r) / p, g: (A.g - r[y].g) / p, b: (A.b - r[y].b) / p }; break; case "path": var B = Kb(r[y], s[y]), C = B[1]; for (r[y] = B[0], t[y] = [], v = 0, x = r[y].length; x > v; v++) { t[y][v] = [0]; for (var D = 1, F = r[y][v].length; F > D; D++)t[y][v][D] = (C[v][D] - r[y][v][D]) / p } break; case "transform": var G = d._, H = Pb(G[y], s[y]); if (H) for (r[y] = H.from, s[y] = H.to, t[y] = [], t[y].real = !0, v = 0, x = r[y].length; x > v; v++)for (t[y][v] = [r[y][v][0]], D = 1, F = r[y][v].length; F > D; D++)t[y][v][D] = (s[y][v][D] - r[y][v][D]) / p; else { var K = d.matrix || new o, L = { _: { transform: G.transform }, getBBox: function () { return d.getBBox(1) } }; r[y] = [K.a, K.b, K.c, K.d, K.e, K.f], Nb(L, s[y]), s[y] = L._.transform, t[y] = [(L.matrix.a - K.a) / p, (L.matrix.b - K.b) / p, (L.matrix.c - K.c) / p, (L.matrix.d - K.d) / p, (L.matrix.e - K.e) / p, (L.matrix.f - K.f) / p] } break; case "csv": var M = I(i[y])[J](w), N = I(r[y])[J](w); if ("clip-rect" == y) for (r[y] = N, t[y] = [], v = N.length; v--;)t[y][v] = (M[v] - r[y][v]) / p; s[y] = M; break; default: for (M = [][E](i[y]), N = [][E](r[y]), t[y] = [], v = d.paper.customAttributes[y].length; v--;)t[y][v] = ((M[v] || 0) - (N[v] || 0)) / p }var O = i.easing, P = c.easing_formulas[O]; if (!P) if (P = I(O).match(Z), P && 5 == P.length) { var Q = P; P = function (a) { return q(a, +Q[1], +Q[2], +Q[3], +Q[4], p) } } else P = nb; if (n = i.start || a.start || +new Date, u = { anim: a, percent: e, timestamp: n, start: n + (a.del || 0), status: 0, initstatus: f || 0, stop: !1, ms: p, easing: P, from: r, diff: t, to: s, el: d, callback: i.callback, prev: m, next: l, repeat: h || a.times, origin: d.attr(), totalOrigin: g }, ic.push(u), f && !j && !k && (u.stop = !0, u.start = new Date - p * f, 1 == ic.length)) return kc(); k && (u.start = new Date - u.ms * f), 1 == ic.length && jc(kc) } b("raphael.anim.start." + d.id, d, a) } } function t(a) { for (var b = 0; b < ic.length; b++)ic[b].el.paper == a && ic.splice(b--, 1) } c.version = "2.1.2", c.eve = b; var u, v, w = /[, ]+/, x = { circle: 1, rect: 1, path: 1, ellipse: 1, text: 1, image: 1 }, y = /\{(\d+)\}/g, z = "hasOwnProperty", A = { doc: document, win: a }, B = { was: Object.prototype[z].call(A.win, "Raphael"), is: A.win.Raphael }, C = function () { this.ca = this.customAttributes = {} }, D = "apply", E = "concat", F = "ontouchstart" in A.win || A.win.DocumentTouch && A.doc instanceof DocumentTouch, G = "", H = " ", I = String, J = "split", K = "click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[J](H), L = { mousedown: "touchstart", mousemove: "touchmove", mouseup: "touchend" }, M = I.prototype.toLowerCase, N = Math, O = N.max, P = N.min, Q = N.abs, R = N.pow, S = N.PI, T = "number", U = "string", V = "array", W = Object.prototype.toString, X = (c._ISURL = /^url\(['"]?(.+?)['"]?\)$/i, /^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i), Y = { NaN: 1, Infinity: 1, "-Infinity": 1 }, Z = /^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/, $ = N.round, _ = parseFloat, ab = parseInt, bb = I.prototype.toUpperCase, cb = c._availableAttrs = { "arrow-end": "none", "arrow-start": "none", blur: 0, "clip-rect": "0 0 1e9 1e9", cursor: "default", cx: 0, cy: 0, fill: "#fff", "fill-opacity": 1, font: '10px "Arial"', "font-family": '"Arial"', "font-size": "10", "font-style": "normal", "font-weight": 400, gradient: 0, height: 0, href: "http://raphaeljs.com/", "letter-spacing": 0, opacity: 1, path: "M0,0", r: 0, rx: 0, ry: 0, src: "", stroke: "#000", "stroke-dasharray": "", "stroke-linecap": "butt", "stroke-linejoin": "butt", "stroke-miterlimit": 0, "stroke-opacity": 1, "stroke-width": 1, target: "_blank", "text-anchor": "middle", title: "Raphael", transform: "", width: 0, x: 0, y: 0 }, db = c._availableAnimAttrs = { blur: T, "clip-rect": "csv", cx: T, cy: T, fill: "colour", "fill-opacity": T, "font-size": T, height: T, opacity: T, path: "path", r: T, rx: T, ry: T, stroke: "colour", "stroke-opacity": T, "stroke-width": T, transform: "transform", width: T, x: T, y: T }, eb = /[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/, fb = { hs: 1, rg: 1 }, gb = /,?([achlmqrstvxz]),?/gi, hb = /([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi, ib = /([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi, jb = /(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi, kb = (c._radial_gradient = /^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/, {}), lb = function (a, b) { return _(a) - _(b) }, mb = function () { }, nb = function (a) { return a }, ob = c._rectPath = function (a, b, c, d, e) { return e ? [["M", a + e, b], ["l", c - 2 * e, 0], ["a", e, e, 0, 0, 1, e, e], ["l", 0, d - 2 * e], ["a", e, e, 0, 0, 1, -e, e], ["l", 2 * e - c, 0], ["a", e, e, 0, 0, 1, -e, -e], ["l", 0, 2 * e - d], ["a", e, e, 0, 0, 1, e, -e], ["z"]] : [["M", a, b], ["l", c, 0], ["l", 0, d], ["l", -c, 0], ["z"]] }, pb = function (a, b, c, d) { return null == d && (d = c), [["M", a, b], ["m", 0, -d], ["a", c, d, 0, 1, 1, 0, 2 * d], ["a", c, d, 0, 1, 1, 0, -2 * d], ["z"]] }, qb = c._getPath = { path: function (a) { return a.attr("path") }, circle: function (a) { var b = a.attrs; return pb(b.cx, b.cy, b.r) }, ellipse: function (a) { var b = a.attrs; return pb(b.cx, b.cy, b.rx, b.ry) }, rect: function (a) { var b = a.attrs; return ob(b.x, b.y, b.width, b.height, b.r) }, image: function (a) { var b = a.attrs; return ob(b.x, b.y, b.width, b.height) }, text: function (a) { var b = a._getBBox(); return ob(b.x, b.y, b.width, b.height) }, set: function (a) { var b = a._getBBox(); return ob(b.x, b.y, b.width, b.height) } }, rb = c.mapPath = function (a, b) { if (!b) return a; var c, d, e, f, g, h, i; for (a = Kb(a), e = 0, g = a.length; g > e; e++)for (i = a[e], f = 1, h = i.length; h > f; f += 2)c = b.x(i[f], i[f + 1]), d = b.y(i[f], i[f + 1]), i[f] = c, i[f + 1] = d; return a }; if (c._g = A, c.type = A.win.SVGAngle || A.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") ? "SVG" : "VML", "VML" == c.type) { var sb, tb = A.doc.createElement("div"); if (tb.innerHTML = '', sb = tb.firstChild, sb.style.behavior = "url(#default#VML)", !sb || "object" != typeof sb.adj) return c.type = G; tb = null } c.svg = !(c.vml = "VML" == c.type), c._Paper = C, c.fn = v = C.prototype = c.prototype, c._id = 0, c._oid = 0, c.is = function (a, b) { return b = M.call(b), "finite" == b ? !Y[z](+a) : "array" == b ? a instanceof Array : "null" == b && null === a || b == typeof a && null !== a || "object" == b && a === Object(a) || "array" == b && Array.isArray && Array.isArray(a) || W.call(a).slice(8, -1).toLowerCase() == b }, c.angle = function (a, b, d, e, f, g) { if (null == f) { var h = a - d, i = b - e; return h || i ? (180 + 180 * N.atan2(-i, -h) / S + 360) % 360 : 0 } return c.angle(a, b, f, g) - c.angle(d, e, f, g) }, c.rad = function (a) { return a % 360 * S / 180 }, c.deg = function (a) { return 180 * a / S % 360 }, c.snapTo = function (a, b, d) { if (d = c.is(d, "finite") ? d : 10, c.is(a, V)) { for (var e = a.length; e--;)if (Q(a[e] - b) <= d) return a[e] } else { a = +a; var f = b % a; if (d > f) return b - f; if (f > a - d) return b - f + a } return b }; c.createUUID = function (a, b) { return function () { return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a, b).toUpperCase() } }(/[xy]/g, function (a) { var b = 16 * N.random() | 0, c = "x" == a ? b : 3 & b | 8; return c.toString(16) }); c.setWindow = function (a) { b("raphael.setWindow", c, A.win, a), A.win = a, A.doc = A.win.document, c._engine.initWin && c._engine.initWin(A.win) }; var ub = function (a) { if (c.vml) { var b, d = /^\s+|\s+$/g; try { var e = new ActiveXObject("htmlfile"); e.write(""), e.close(), b = e.body } catch (g) { b = createPopup().document.body } var h = b.createTextRange(); ub = f(function (a) { try { b.style.color = I(a).replace(d, G); var c = h.queryCommandValue("ForeColor"); return c = (255 & c) << 16 | 65280 & c | (16711680 & c) >>> 16, "#" + ("000000" + c.toString(16)).slice(-6) } catch (e) { return "none" } }) } else { var i = A.doc.createElement("i"); i.title = "Raphaël Colour Picker", i.style.display = "none", A.doc.body.appendChild(i), ub = f(function (a) { return i.style.color = a, A.doc.defaultView.getComputedStyle(i, G).getPropertyValue("color") }) } return ub(a) }, vb = function () { return "hsb(" + [this.h, this.s, this.b] + ")" }, wb = function () { return "hsl(" + [this.h, this.s, this.l] + ")" }, xb = function () { return this.hex }, yb = function (a, b, d) { if (null == b && c.is(a, "object") && "r" in a && "g" in a && "b" in a && (d = a.b, b = a.g, a = a.r), null == b && c.is(a, U)) { var e = c.getRGB(a); a = e.r, b = e.g, d = e.b } return (a > 1 || b > 1 || d > 1) && (a /= 255, b /= 255, d /= 255), [a, b, d] }, zb = function (a, b, d, e) { a *= 255, b *= 255, d *= 255; var f = { r: a, g: b, b: d, hex: c.rgb(a, b, d), toString: xb }; return c.is(e, "finite") && (f.opacity = e), f }; c.color = function (a) { var b; return c.is(a, "object") && "h" in a && "s" in a && "b" in a ? (b = c.hsb2rgb(a), a.r = b.r, a.g = b.g, a.b = b.b, a.hex = b.hex) : c.is(a, "object") && "h" in a && "s" in a && "l" in a ? (b = c.hsl2rgb(a), a.r = b.r, a.g = b.g, a.b = b.b, a.hex = b.hex) : (c.is(a, "string") && (a = c.getRGB(a)), c.is(a, "object") && "r" in a && "g" in a && "b" in a ? (b = c.rgb2hsl(a), a.h = b.h, a.s = b.s, a.l = b.l, b = c.rgb2hsb(a), a.v = b.b) : (a = { hex: "none" }, a.r = a.g = a.b = a.h = a.s = a.v = a.l = -1)), a.toString = xb, a }, c.hsb2rgb = function (a, b, c, d) { this.is(a, "object") && "h" in a && "s" in a && "b" in a && (c = a.b, b = a.s, d = a.o, a = a.h), a *= 360; var e, f, g, h, i; return a = a % 360 / 60, i = c * b, h = i * (1 - Q(a % 2 - 1)), e = f = g = c - i, a = ~~a, e += [i, h, 0, 0, h, i][a], f += [h, i, i, h, 0, 0][a], g += [0, 0, h, i, i, h][a], zb(e, f, g, d) }, c.hsl2rgb = function (a, b, c, d) { this.is(a, "object") && "h" in a && "s" in a && "l" in a && (c = a.l, b = a.s, a = a.h), (a > 1 || b > 1 || c > 1) && (a /= 360, b /= 100, c /= 100), a *= 360; var e, f, g, h, i; return a = a % 360 / 60, i = 2 * b * (.5 > c ? c : 1 - c), h = i * (1 - Q(a % 2 - 1)), e = f = g = c - i / 2, a = ~~a, e += [i, h, 0, 0, h, i][a], f += [h, i, i, h, 0, 0][a], g += [0, 0, h, i, i, h][a], zb(e, f, g, d) }, c.rgb2hsb = function (a, b, c) { c = yb(a, b, c), a = c[0], b = c[1], c = c[2]; var d, e, f, g; return f = O(a, b, c), g = f - P(a, b, c), d = 0 == g ? null : f == a ? (b - c) / g : f == b ? (c - a) / g + 2 : (a - b) / g + 4, d = (d + 360) % 6 * 60 / 360, e = 0 == g ? 0 : g / f, { h: d, s: e, b: f, toString: vb } }, c.rgb2hsl = function (a, b, c) { c = yb(a, b, c), a = c[0], b = c[1], c = c[2]; var d, e, f, g, h, i; return g = O(a, b, c), h = P(a, b, c), i = g - h, d = 0 == i ? null : g == a ? (b - c) / i : g == b ? (c - a) / i + 2 : (a - b) / i + 4, d = (d + 360) % 6 * 60 / 360, f = (g + h) / 2, e = 0 == i ? 0 : .5 > f ? i / (2 * f) : i / (2 - 2 * f), { h: d, s: e, l: f, toString: wb } }, c._path2string = function () { return this.join(",").replace(gb, "$1") }; c._preload = function (a, b) { var c = A.doc.createElement("img"); c.style.cssText = "position:absolute;left:-9999em;top:-9999em", c.onload = function () { b.call(this), this.onload = null, A.doc.body.removeChild(this) }, c.onerror = function () { A.doc.body.removeChild(this) }, A.doc.body.appendChild(c), c.src = a }; c.getRGB = f(function (a) { if (!a || (a = I(a)).indexOf("-") + 1) return { r: -1, g: -1, b: -1, hex: "none", error: 1, toString: g }; if ("none" == a) return { r: -1, g: -1, b: -1, hex: "none", toString: g }; !(fb[z](a.toLowerCase().substring(0, 2)) || "#" == a.charAt()) && (a = ub(a)); var b, d, e, f, h, i, j = a.match(X); return j ? (j[2] && (e = ab(j[2].substring(5), 16), d = ab(j[2].substring(3, 5), 16), b = ab(j[2].substring(1, 3), 16)), j[3] && (e = ab((h = j[3].charAt(3)) + h, 16), d = ab((h = j[3].charAt(2)) + h, 16), b = ab((h = j[3].charAt(1)) + h, 16)), j[4] && (i = j[4][J](eb), b = _(i[0]), "%" == i[0].slice(-1) && (b *= 2.55), d = _(i[1]), "%" == i[1].slice(-1) && (d *= 2.55), e = _(i[2]), "%" == i[2].slice(-1) && (e *= 2.55), "rgba" == j[1].toLowerCase().slice(0, 4) && (f = _(i[3])), i[3] && "%" == i[3].slice(-1) && (f /= 100)), j[5] ? (i = j[5][J](eb), b = _(i[0]), "%" == i[0].slice(-1) && (b *= 2.55), d = _(i[1]), "%" == i[1].slice(-1) && (d *= 2.55), e = _(i[2]), "%" == i[2].slice(-1) && (e *= 2.55), ("deg" == i[0].slice(-3) || "°" == i[0].slice(-1)) && (b /= 360), "hsba" == j[1].toLowerCase().slice(0, 4) && (f = _(i[3])), i[3] && "%" == i[3].slice(-1) && (f /= 100), c.hsb2rgb(b, d, e, f)) : j[6] ? (i = j[6][J](eb), b = _(i[0]), "%" == i[0].slice(-1) && (b *= 2.55), d = _(i[1]), "%" == i[1].slice(-1) && (d *= 2.55), e = _(i[2]), "%" == i[2].slice(-1) && (e *= 2.55), ("deg" == i[0].slice(-3) || "°" == i[0].slice(-1)) && (b /= 360), "hsla" == j[1].toLowerCase().slice(0, 4) && (f = _(i[3])), i[3] && "%" == i[3].slice(-1) && (f /= 100), c.hsl2rgb(b, d, e, f)) : (j = { r: b, g: d, b: e, toString: g }, j.hex = "#" + (16777216 | e | d << 8 | b << 16).toString(16).slice(1), c.is(f, "finite") && (j.opacity = f), j)) : { r: -1, g: -1, b: -1, hex: "none", error: 1, toString: g } }, c), c.hsb = f(function (a, b, d) { return c.hsb2rgb(a, b, d).hex }), c.hsl = f(function (a, b, d) { return c.hsl2rgb(a, b, d).hex }), c.rgb = f(function (a, b, c) { return "#" + (16777216 | c | b << 8 | a << 16).toString(16).slice(1) }), c.getColor = function (a) { var b = this.getColor.start = this.getColor.start || { h: 0, s: 1, b: a || .75 }, c = this.hsb2rgb(b.h, b.s, b.b); return b.h += .075, b.h > 1 && (b.h = 0, b.s -= .2, b.s <= 0 && (this.getColor.start = { h: 0, s: 1, b: b.b })), c.hex }, c.getColor.reset = function () { delete this.start }, c.parsePathString = function (a) { if (!a) return null; var b = Ab(a); if (b.arr) return Cb(b.arr); var d = { a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0 }, e = []; return c.is(a, V) && c.is(a[0], V) && (e = Cb(a)), e.length || I(a).replace(hb, function (a, b, c) { var f = [], g = b.toLowerCase(); if (c.replace(jb, function (a, b) { b && f.push(+b) }), "m" == g && f.length > 2 && (e.push([b][E](f.splice(0, 2))), g = "l", b = "m" == b ? "l" : "L"), "r" == g) e.push([b][E](f)); else for (; f.length >= d[g] && (e.push([b][E](f.splice(0, d[g]))), d[g]);); }), e.toString = c._path2string, b.arr = Cb(e), e }, c.parseTransformString = f(function (a) { if (!a) return null; var b = []; return c.is(a, V) && c.is(a[0], V) && (b = Cb(a)), b.length || I(a).replace(ib, function (a, c, d) { { var e = []; M.call(c) } d.replace(jb, function (a, b) { b && e.push(+b) }), b.push([c][E](e)) }), b.toString = c._path2string, b }); var Ab = function (a) { var b = Ab.ps = Ab.ps || {}; return b[a] ? b[a].sleep = 100 : b[a] = { sleep: 100 }, setTimeout(function () { for (var c in b) b[z](c) && c != a && (b[c].sleep--, !b[c].sleep && delete b[c]) }), b[a] }; c.findDotsAtSegment = function (a, b, c, d, e, f, g, h, i) { var j = 1 - i, k = R(j, 3), l = R(j, 2), m = i * i, n = m * i, o = k * a + 3 * l * i * c + 3 * j * i * i * e + n * g, p = k * b + 3 * l * i * d + 3 * j * i * i * f + n * h, q = a + 2 * i * (c - a) + m * (e - 2 * c + a), r = b + 2 * i * (d - b) + m * (f - 2 * d + b), s = c + 2 * i * (e - c) + m * (g - 2 * e + c), t = d + 2 * i * (f - d) + m * (h - 2 * f + d), u = j * a + i * c, v = j * b + i * d, w = j * e + i * g, x = j * f + i * h, y = 90 - 180 * N.atan2(q - s, r - t) / S; return (q > s || t > r) && (y += 180), { x: o, y: p, m: { x: q, y: r }, n: { x: s, y: t }, start: { x: u, y: v }, end: { x: w, y: x }, alpha: y } }, c.bezierBBox = function (a, b, d, e, f, g, h, i) { c.is(a, "array") || (a = [a, b, d, e, f, g, h, i]); var j = Jb.apply(null, a); return { x: j.min.x, y: j.min.y, x2: j.max.x, y2: j.max.y, width: j.max.x - j.min.x, height: j.max.y - j.min.y } }, c.isPointInsideBBox = function (a, b, c) { return b >= a.x && b <= a.x2 && c >= a.y && c <= a.y2 }, c.isBBoxIntersect = function (a, b) { var d = c.isPointInsideBBox; return d(b, a.x, a.y) || d(b, a.x2, a.y) || d(b, a.x, a.y2) || d(b, a.x2, a.y2) || d(a, b.x, b.y) || d(a, b.x2, b.y) || d(a, b.x, b.y2) || d(a, b.x2, b.y2) || (a.x < b.x2 && a.x > b.x || b.x < a.x2 && b.x > a.x) && (a.y < b.y2 && a.y > b.y || b.y < a.y2 && b.y > a.y) }, c.pathIntersection = function (a, b) { return n(a, b) }, c.pathIntersectionNumber = function (a, b) { return n(a, b, 1) }, c.isPointInsidePath = function (a, b, d) { var e = c.pathBBox(a); return c.isPointInsideBBox(e, b, d) && n(a, [["M", b, d], ["H", e.x2 + 10]], 1) % 2 == 1 }, c._removedFactory = function (a) { return function () { b("raphael.log", null, "Raphaël: you are calling to method “" + a + "” of removed object", a) } }; var Bb = c.pathBBox = function (a) { var b = Ab(a); if (b.bbox) return d(b.bbox); if (!a) return { x: 0, y: 0, width: 0, height: 0, x2: 0, y2: 0 }; a = Kb(a); for (var c, e = 0, f = 0, g = [], h = [], i = 0, j = a.length; j > i; i++)if (c = a[i], "M" == c[0]) e = c[1], f = c[2], g.push(e), h.push(f); else { var k = Jb(e, f, c[1], c[2], c[3], c[4], c[5], c[6]); g = g[E](k.min.x, k.max.x), h = h[E](k.min.y, k.max.y), e = c[5], f = c[6] } var l = P[D](0, g), m = P[D](0, h), n = O[D](0, g), o = O[D](0, h), p = n - l, q = o - m, r = { x: l, y: m, x2: n, y2: o, width: p, height: q, cx: l + p / 2, cy: m + q / 2 }; return b.bbox = d(r), r }, Cb = function (a) { var b = d(a); return b.toString = c._path2string, b }, Db = c._pathToRelative = function (a) { var b = Ab(a); if (b.rel) return Cb(b.rel); c.is(a, V) && c.is(a && a[0], V) || (a = c.parsePathString(a)); var d = [], e = 0, f = 0, g = 0, h = 0, i = 0; "M" == a[0][0] && (e = a[0][1], f = a[0][2], g = e, h = f, i++, d.push(["M", e, f])); for (var j = i, k = a.length; k > j; j++) { var l = d[j] = [], m = a[j]; if (m[0] != M.call(m[0])) switch (l[0] = M.call(m[0]), l[0]) { case "a": l[1] = m[1], l[2] = m[2], l[3] = m[3], l[4] = m[4], l[5] = m[5], l[6] = +(m[6] - e).toFixed(3), l[7] = +(m[7] - f).toFixed(3); break; case "v": l[1] = +(m[1] - f).toFixed(3); break; case "m": g = m[1], h = m[2]; default: for (var n = 1, o = m.length; o > n; n++)l[n] = +(m[n] - (n % 2 ? e : f)).toFixed(3) } else { l = d[j] = [], "m" == m[0] && (g = m[1] + e, h = m[2] + f); for (var p = 0, q = m.length; q > p; p++)d[j][p] = m[p] } var r = d[j].length; switch (d[j][0]) { case "z": e = g, f = h; break; case "h": e += +d[j][r - 1]; break; case "v": f += +d[j][r - 1]; break; default: e += +d[j][r - 2], f += +d[j][r - 1] } } return d.toString = c._path2string, b.rel = Cb(d), d }, Eb = c._pathToAbsolute = function (a) { var b = Ab(a); if (b.abs) return Cb(b.abs); if (c.is(a, V) && c.is(a && a[0], V) || (a = c.parsePathString(a)), !a || !a.length) return [["M", 0, 0]]; var d = [], e = 0, f = 0, g = 0, i = 0, j = 0; "M" == a[0][0] && (e = +a[0][1], f = +a[0][2], g = e, i = f, j++, d[0] = ["M", e, f]); for (var k, l, m = 3 == a.length && "M" == a[0][0] && "R" == a[1][0].toUpperCase() && "Z" == a[2][0].toUpperCase(), n = j, o = a.length; o > n; n++) { if (d.push(k = []), l = a[n], l[0] != bb.call(l[0])) switch (k[0] = bb.call(l[0]), k[0]) { case "A": k[1] = l[1], k[2] = l[2], k[3] = l[3], k[4] = l[4], k[5] = l[5], k[6] = +(l[6] + e), k[7] = +(l[7] + f); break; case "V": k[1] = +l[1] + f; break; case "H": k[1] = +l[1] + e; break; case "R": for (var p = [e, f][E](l.slice(1)), q = 2, r = p.length; r > q; q++)p[q] = +p[q] + e, p[++q] = +p[q] + f; d.pop(), d = d[E](h(p, m)); break; case "M": g = +l[1] + e, i = +l[2] + f; default: for (q = 1, r = l.length; r > q; q++)k[q] = +l[q] + (q % 2 ? e : f) } else if ("R" == l[0]) p = [e, f][E](l.slice(1)), d.pop(), d = d[E](h(p, m)), k = ["R"][E](l.slice(-2)); else for (var s = 0, t = l.length; t > s; s++)k[s] = l[s]; switch (k[0]) { case "Z": e = g, f = i; break; case "H": e = k[1]; break; case "V": f = k[1]; break; case "M": g = k[k.length - 2], i = k[k.length - 1]; default: e = k[k.length - 2], f = k[k.length - 1] } } return d.toString = c._path2string, b.abs = Cb(d), d }, Fb = function (a, b, c, d) { return [a, b, c, d, c, d] }, Gb = function (a, b, c, d, e, f) { var g = 1 / 3, h = 2 / 3; return [g * a + h * c, g * b + h * d, g * e + h * c, g * f + h * d, e, f] }, Hb = function (a, b, c, d, e, g, h, i, j, k) { var l, m = 120 * S / 180, n = S / 180 * (+e || 0), o = [], p = f(function (a, b, c) { var d = a * N.cos(c) - b * N.sin(c), e = a * N.sin(c) + b * N.cos(c); return { x: d, y: e } }); if (k) y = k[0], z = k[1], w = k[2], x = k[3]; else { l = p(a, b, -n), a = l.x, b = l.y, l = p(i, j, -n), i = l.x, j = l.y; var q = (N.cos(S / 180 * e), N.sin(S / 180 * e), (a - i) / 2), r = (b - j) / 2, s = q * q / (c * c) + r * r / (d * d); s > 1 && (s = N.sqrt(s), c = s * c, d = s * d); var t = c * c, u = d * d, v = (g == h ? -1 : 1) * N.sqrt(Q((t * u - t * r * r - u * q * q) / (t * r * r + u * q * q))), w = v * c * r / d + (a + i) / 2, x = v * -d * q / c + (b + j) / 2, y = N.asin(((b - x) / d).toFixed(9)), z = N.asin(((j - x) / d).toFixed(9)); y = w > a ? S - y : y, z = w > i ? S - z : z, 0 > y && (y = 2 * S + y), 0 > z && (z = 2 * S + z), h && y > z && (y -= 2 * S), !h && z > y && (z -= 2 * S) } var A = z - y; if (Q(A) > m) { var B = z, C = i, D = j; z = y + m * (h && z > y ? 1 : -1), i = w + c * N.cos(z), j = x + d * N.sin(z), o = Hb(i, j, c, d, e, 0, h, C, D, [z, B, w, x]) } A = z - y; var F = N.cos(y), G = N.sin(y), H = N.cos(z), I = N.sin(z), K = N.tan(A / 4), L = 4 / 3 * c * K, M = 4 / 3 * d * K, O = [a, b], P = [a + L * G, b - M * F], R = [i + L * I, j - M * H], T = [i, j]; if (P[0] = 2 * O[0] - P[0], P[1] = 2 * O[1] - P[1], k) return [P, R, T][E](o); o = [P, R, T][E](o).join()[J](","); for (var U = [], V = 0, W = o.length; W > V; V++)U[V] = V % 2 ? p(o[V - 1], o[V], n).y : p(o[V], o[V + 1], n).x; return U }, Ib = function (a, b, c, d, e, f, g, h, i) { var j = 1 - i; return { x: R(j, 3) * a + 3 * R(j, 2) * i * c + 3 * j * i * i * e + R(i, 3) * g, y: R(j, 3) * b + 3 * R(j, 2) * i * d + 3 * j * i * i * f + R(i, 3) * h } }, Jb = f(function (a, b, c, d, e, f, g, h) { var i, j = e - 2 * c + a - (g - 2 * e + c), k = 2 * (c - a) - 2 * (e - c), l = a - c, m = (-k + N.sqrt(k * k - 4 * j * l)) / 2 / j, n = (-k - N.sqrt(k * k - 4 * j * l)) / 2 / j, o = [b, h], p = [a, g]; return Q(m) > "1e12" && (m = .5), Q(n) > "1e12" && (n = .5), m > 0 && 1 > m && (i = Ib(a, b, c, d, e, f, g, h, m), p.push(i.x), o.push(i.y)), n > 0 && 1 > n && (i = Ib(a, b, c, d, e, f, g, h, n), p.push(i.x), o.push(i.y)), j = f - 2 * d + b - (h - 2 * f + d), k = 2 * (d - b) - 2 * (f - d), l = b - d, m = (-k + N.sqrt(k * k - 4 * j * l)) / 2 / j, n = (-k - N.sqrt(k * k - 4 * j * l)) / 2 / j, Q(m) > "1e12" && (m = .5), Q(n) > "1e12" && (n = .5), m > 0 && 1 > m && (i = Ib(a, b, c, d, e, f, g, h, m), p.push(i.x), o.push(i.y)), n > 0 && 1 > n && (i = Ib(a, b, c, d, e, f, g, h, n), p.push(i.x), o.push(i.y)), { min: { x: P[D](0, p), y: P[D](0, o) }, max: { x: O[D](0, p), y: O[D](0, o) } } }), Kb = c._path2curve = f(function (a, b) { var c = !b && Ab(a); if (!b && c.curve) return Cb(c.curve); for (var d = Eb(a), e = b && Eb(b), f = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null }, g = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null }, h = (function (a, b, c) { var d, e, f = { T: 1, Q: 1 }; if (!a) return ["C", b.x, b.y, b.x, b.y, b.x, b.y]; switch (!(a[0] in f) && (b.qx = b.qy = null), a[0]) { case "M": b.X = a[1], b.Y = a[2]; break; case "A": a = ["C"][E](Hb[D](0, [b.x, b.y][E](a.slice(1)))); break; case "S": "C" == c || "S" == c ? (d = 2 * b.x - b.bx, e = 2 * b.y - b.by) : (d = b.x, e = b.y), a = ["C", d, e][E](a.slice(1)); break; case "T": "Q" == c || "T" == c ? (b.qx = 2 * b.x - b.qx, b.qy = 2 * b.y - b.qy) : (b.qx = b.x, b.qy = b.y), a = ["C"][E](Gb(b.x, b.y, b.qx, b.qy, a[1], a[2])); break; case "Q": b.qx = a[1], b.qy = a[2], a = ["C"][E](Gb(b.x, b.y, a[1], a[2], a[3], a[4])); break; case "L": a = ["C"][E](Fb(b.x, b.y, a[1], a[2])); break; case "H": a = ["C"][E](Fb(b.x, b.y, a[1], b.y)); break; case "V": a = ["C"][E](Fb(b.x, b.y, b.x, a[1])); break; case "Z": a = ["C"][E](Fb(b.x, b.y, b.X, b.Y)) }return a }), i = function (a, b) { if (a[b].length > 7) { a[b].shift(); for (var c = a[b]; c.length;)k[b] = "A", e && (l[b] = "A"), a.splice(b++, 0, ["C"][E](c.splice(0, 6))); a.splice(b, 1), p = O(d.length, e && e.length || 0) } }, j = function (a, b, c, f, g) { a && b && "M" == a[g][0] && "M" != b[g][0] && (b.splice(g, 0, ["M", f.x, f.y]), c.bx = 0, c.by = 0, c.x = a[g][1], c.y = a[g][2], p = O(d.length, e && e.length || 0)) }, k = [], l = [], m = "", n = "", o = 0, p = O(d.length, e && e.length || 0); p > o; o++) { d[o] && (m = d[o][0]), "C" != m && (k[o] = m, o && (n = k[o - 1])), d[o] = h(d[o], f, n), "A" != k[o] && "C" == m && (k[o] = "C"), i(d, o), e && (e[o] && (m = e[o][0]), "C" != m && (l[o] = m, o && (n = l[o - 1])), e[o] = h(e[o], g, n), "A" != l[o] && "C" == m && (l[o] = "C"), i(e, o)), j(d, e, f, g, o), j(e, d, g, f, o); var q = d[o], r = e && e[o], s = q.length, t = e && r.length; f.x = q[s - 2], f.y = q[s - 1], f.bx = _(q[s - 4]) || f.x, f.by = _(q[s - 3]) || f.y, g.bx = e && (_(r[t - 4]) || g.x), g.by = e && (_(r[t - 3]) || g.y), g.x = e && r[t - 2], g.y = e && r[t - 1] } return e || (c.curve = Cb(d)), e ? [d, e] : d }, null, Cb), Lb = (c._parseDots = f(function (a) { for (var b = [], d = 0, e = a.length; e > d; d++) { var f = {}, g = a[d].match(/^([^:]*):?([\d\.]*)/); if (f.color = c.getRGB(g[1]), f.color.error) return null; f.color = f.color.hex, g[2] && (f.offset = g[2] + "%"), b.push(f) } for (d = 1, e = b.length - 1; e > d; d++)if (!b[d].offset) { for (var h = _(b[d - 1].offset || 0), i = 0, j = d + 1; e > j; j++)if (b[j].offset) { i = b[j].offset; break } i || (i = 100, j = e), i = _(i); for (var k = (i - h) / (j - d + 1); j > d; d++)h += k, b[d].offset = h + "%" } return b }), c._tear = function (a, b) { a == b.top && (b.top = a.prev), a == b.bottom && (b.bottom = a.next), a.next && (a.next.prev = a.prev), a.prev && (a.prev.next = a.next) }), Mb = (c._tofront = function (a, b) { b.top !== a && (Lb(a, b), a.next = null, a.prev = b.top, b.top.next = a, b.top = a) }, c._toback = function (a, b) { b.bottom !== a && (Lb(a, b), a.next = b.bottom, a.prev = null, b.bottom.prev = a, b.bottom = a) }, c._insertafter = function (a, b, c) { Lb(a, c), b == c.top && (c.top = a), b.next && (b.next.prev = a), a.next = b.next, a.prev = b, b.next = a }, c._insertbefore = function (a, b, c) { Lb(a, c), b == c.bottom && (c.bottom = a), b.prev && (b.prev.next = a), a.prev = b.prev, b.prev = a, a.next = b }, c.toMatrix = function (a, b) { var c = Bb(a), d = { _: { transform: G }, getBBox: function () { return c } }; return Nb(d, b), d.matrix }), Nb = (c.transformPath = function (a, b) { return rb(a, Mb(a, b)) }, c._extractTransform = function (a, b) { if (null == b) return a._.transform; b = I(b).replace(/\.{3}|\u2026/g, a._.transform || G); var d = c.parseTransformString(b), e = 0, f = 0, g = 0, h = 1, i = 1, j = a._, k = new o; if (j.transform = d || [], d) for (var l = 0, m = d.length; m > l; l++) { var n, p, q, r, s, t = d[l], u = t.length, v = I(t[0]).toLowerCase(), w = t[0] != v, x = w ? k.invert() : 0; "t" == v && 3 == u ? w ? (n = x.x(0, 0), p = x.y(0, 0), q = x.x(t[1], t[2]), r = x.y(t[1], t[2]), k.translate(q - n, r - p)) : k.translate(t[1], t[2]) : "r" == v ? 2 == u ? (s = s || a.getBBox(1), k.rotate(t[1], s.x + s.width / 2, s.y + s.height / 2), e += t[1]) : 4 == u && (w ? (q = x.x(t[2], t[3]), r = x.y(t[2], t[3]), k.rotate(t[1], q, r)) : k.rotate(t[1], t[2], t[3]), e += t[1]) : "s" == v ? 2 == u || 3 == u ? (s = s || a.getBBox(1), k.scale(t[1], t[u - 1], s.x + s.width / 2, s.y + s.height / 2), h *= t[1], i *= t[u - 1]) : 5 == u && (w ? (q = x.x(t[3], t[4]), r = x.y(t[3], t[4]), k.scale(t[1], t[2], q, r)) : k.scale(t[1], t[2], t[3], t[4]), h *= t[1], i *= t[2]) : "m" == v && 7 == u && k.add(t[1], t[2], t[3], t[4], t[5], t[6]), j.dirtyT = 1, a.matrix = k } a.matrix = k, j.sx = h, j.sy = i, j.deg = e, j.dx = f = k.e, j.dy = g = k.f, 1 == h && 1 == i && !e && j.bbox ? (j.bbox.x += +f, j.bbox.y += +g) : j.dirtyT = 1 }), Ob = function (a) { var b = a[0]; switch (b.toLowerCase()) { case "t": return [b, 0, 0]; case "m": return [b, 1, 0, 0, 1, 0, 0]; case "r": return 4 == a.length ? [b, 0, a[2], a[3]] : [b, 0]; case "s": return 5 == a.length ? [b, 1, 1, a[3], a[4]] : 3 == a.length ? [b, 1, 1] : [b, 1] } }, Pb = c._equaliseTransform = function (a, b) { + b = I(b).replace(/\.{3}|\u2026/g, a), a = c.parseTransformString(a) || [], b = c.parseTransformString(b) || []; + for (var d, e, f, g, h = O(a.length, b.length), i = [], j = [], k = 0; h > k; k++) { if (f = a[k] || Ob(b[k]), g = b[k] || Ob(f), f[0] != g[0] || "r" == f[0].toLowerCase() && (f[2] != g[2] || f[3] != g[3]) || "s" == f[0].toLowerCase() && (f[3] != g[3] || f[4] != g[4])) return; for (i[k] = [], j[k] = [], d = 0, e = O(f.length, g.length); e > d; d++)d in f && (i[k][d] = f[d]), d in g && (j[k][d] = g[d]) } return { from: i, to: j } + }; c._getContainer = function (a, b, d, e) { var f; return f = null != e || c.is(a, "object") ? a : A.doc.getElementById(a), null != f ? f.tagName ? null == b ? { container: f, width: f.style.pixelWidth || f.offsetWidth, height: f.style.pixelHeight || f.offsetHeight } : { container: f, width: b, height: d } : { container: 1, x: a, y: b, width: d, height: e } : void 0 }, c.pathToRelative = Db, c._engine = {}, c.path2curve = Kb, c.matrix = function (a, b, c, d, e, f) { return new o(a, b, c, d, e, f) }, function (a) { function b(a) { return a[0] * a[0] + a[1] * a[1] } function d(a) { var c = N.sqrt(b(a)); a[0] && (a[0] /= c), a[1] && (a[1] /= c) } a.add = function (a, b, c, d, e, f) { var g, h, i, j, k = [[], [], []], l = [[this.a, this.c, this.e], [this.b, this.d, this.f], [0, 0, 1]], m = [[a, c, e], [b, d, f], [0, 0, 1]]; for (a && a instanceof o && (m = [[a.a, a.c, a.e], [a.b, a.d, a.f], [0, 0, 1]]), g = 0; 3 > g; g++)for (h = 0; 3 > h; h++) { for (j = 0, i = 0; 3 > i; i++)j += l[g][i] * m[i][h]; k[g][h] = j } this.a = k[0][0], this.b = k[1][0], this.c = k[0][1], this.d = k[1][1], this.e = k[0][2], this.f = k[1][2] }, a.invert = function () { var a = this, b = a.a * a.d - a.b * a.c; return new o(a.d / b, -a.b / b, -a.c / b, a.a / b, (a.c * a.f - a.d * a.e) / b, (a.b * a.e - a.a * a.f) / b) }, a.clone = function () { return new o(this.a, this.b, this.c, this.d, this.e, this.f) }, a.translate = function (a, b) { this.add(1, 0, 0, 1, a, b) }, a.scale = function (a, b, c, d) { null == b && (b = a), (c || d) && this.add(1, 0, 0, 1, c, d), this.add(a, 0, 0, b, 0, 0), (c || d) && this.add(1, 0, 0, 1, -c, -d) }, a.rotate = function (a, b, d) { a = c.rad(a), b = b || 0, d = d || 0; var e = +N.cos(a).toFixed(9), f = +N.sin(a).toFixed(9); this.add(e, f, -f, e, b, d), this.add(1, 0, 0, 1, -b, -d) }, a.x = function (a, b) { return a * this.a + b * this.c + this.e }, a.y = function (a, b) { return a * this.b + b * this.d + this.f }, a.get = function (a) { return +this[I.fromCharCode(97 + a)].toFixed(4) }, a.toString = function () { return c.svg ? "matrix(" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)].join() + ")" : [this.get(0), this.get(2), this.get(1), this.get(3), 0, 0].join() }, a.toFilter = function () { return "progid:DXImageTransform.Microsoft.Matrix(M11=" + this.get(0) + ", M12=" + this.get(2) + ", M21=" + this.get(1) + ", M22=" + this.get(3) + ", Dx=" + this.get(4) + ", Dy=" + this.get(5) + ", sizingmethod='auto expand')" }, a.offset = function () { return [this.e.toFixed(4), this.f.toFixed(4)] }, a.split = function () { var a = {}; a.dx = this.e, a.dy = this.f; var e = [[this.a, this.c], [this.b, this.d]]; a.scalex = N.sqrt(b(e[0])), d(e[0]), a.shear = e[0][0] * e[1][0] + e[0][1] * e[1][1], e[1] = [e[1][0] - e[0][0] * a.shear, e[1][1] - e[0][1] * a.shear], a.scaley = N.sqrt(b(e[1])), d(e[1]), a.shear /= a.scaley; var f = -e[0][1], g = e[1][1]; return 0 > g ? (a.rotate = c.deg(N.acos(g)), 0 > f && (a.rotate = 360 - a.rotate)) : a.rotate = c.deg(N.asin(f)), a.isSimple = !(+a.shear.toFixed(9) || a.scalex.toFixed(9) != a.scaley.toFixed(9) && a.rotate), a.isSuperSimple = !+a.shear.toFixed(9) && a.scalex.toFixed(9) == a.scaley.toFixed(9) && !a.rotate, a.noRotation = !+a.shear.toFixed(9) && !a.rotate, a }, a.toTransformString = function (a) { var b = a || this[J](); return b.isSimple ? (b.scalex = +b.scalex.toFixed(4), b.scaley = +b.scaley.toFixed(4), b.rotate = +b.rotate.toFixed(4), (b.dx || b.dy ? "t" + [b.dx, b.dy] : G) + (1 != b.scalex || 1 != b.scaley ? "s" + [b.scalex, b.scaley, 0, 0] : G) + (b.rotate ? "r" + [b.rotate, 0, 0] : G)) : "m" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)] } }(o.prototype); var Qb = navigator.userAgent.match(/Version\/(.*?)\s/) || navigator.userAgent.match(/Chrome\/(\d+)/); v.safari = "Apple Computer, Inc." == navigator.vendor && (Qb && Qb[1] < 4 || "iP" == navigator.platform.slice(0, 2)) || "Google Inc." == navigator.vendor && Qb && Qb[1] < 8 ? function () { var a = this.rect(-99, -99, this.width + 99, this.height + 99).attr({ stroke: "none" }); setTimeout(function () { a.remove() }) } : mb; for (var Rb = function () { this.returnValue = !1 }, Sb = function () { return this.originalEvent.preventDefault() }, Tb = function () { this.cancelBubble = !0 }, Ub = function () { return this.originalEvent.stopPropagation() }, Vb = function (a) { var b = A.doc.documentElement.scrollTop || A.doc.body.scrollTop, c = A.doc.documentElement.scrollLeft || A.doc.body.scrollLeft; return { x: a.clientX + c, y: a.clientY + b } }, Wb = function () { return A.doc.addEventListener ? function (a, b, c, d) { var e = function (a) { var b = Vb(a); return c.call(d, a, b.x, b.y) }; if (a.addEventListener(b, e, !1), F && L[b]) { var f = function (b) { for (var e = Vb(b), f = b, g = 0, h = b.targetTouches && b.targetTouches.length; h > g; g++)if (b.targetTouches[g].target == a) { b = b.targetTouches[g], b.originalEvent = f, b.preventDefault = Sb, b.stopPropagation = Ub; break } return c.call(d, b, e.x, e.y) }; a.addEventListener(L[b], f, !1) } return function () { return a.removeEventListener(b, e, !1), F && L[b] && a.removeEventListener(L[b], f, !1), !0 } } : A.doc.attachEvent ? function (a, b, c, d) { var e = function (a) { a = a || A.win.event; var b = A.doc.documentElement.scrollTop || A.doc.body.scrollTop, e = A.doc.documentElement.scrollLeft || A.doc.body.scrollLeft, f = a.clientX + e, g = a.clientY + b; return a.preventDefault = a.preventDefault || Rb, a.stopPropagation = a.stopPropagation || Tb, c.call(d, a, f, g) }; a.attachEvent("on" + b, e); var f = function () { return a.detachEvent("on" + b, e), !0 }; return f } : void 0 }(), Xb = [], Yb = function (a) { for (var c, d = a.clientX, e = a.clientY, f = A.doc.documentElement.scrollTop || A.doc.body.scrollTop, g = A.doc.documentElement.scrollLeft || A.doc.body.scrollLeft, h = Xb.length; h--;) { if (c = Xb[h], F && a.touches) { for (var i, j = a.touches.length; j--;)if (i = a.touches[j], i.identifier == c.el._drag.id) { d = i.clientX, e = i.clientY, (a.originalEvent ? a.originalEvent : a).preventDefault(); break } } else a.preventDefault(); var k, l = c.el.node, m = l.nextSibling, n = l.parentNode, o = l.style.display; A.win.opera && n.removeChild(l), l.style.display = "none", k = c.el.paper.getElementByPoint(d, e), l.style.display = o, A.win.opera && (m ? n.insertBefore(l, m) : n.appendChild(l)), k && b("raphael.drag.over." + c.el.id, c.el, k), d += g, e += f, b("raphael.drag.move." + c.el.id, c.move_scope || c.el, d - c.el._drag.x, e - c.el._drag.y, d, e, a) } }, Zb = function (a) { c.unmousemove(Yb).unmouseup(Zb); for (var d, e = Xb.length; e--;)d = Xb[e], d.el._drag = {}, b("raphael.drag.end." + d.el.id, d.end_scope || d.start_scope || d.move_scope || d.el, a); Xb = [] }, $b = c.el = {}, _b = K.length; _b--;)!function (a) { c[a] = $b[a] = function (b, d) { return c.is(b, "function") && (this.events = this.events || [], this.events.push({ name: a, f: b, unbind: Wb(this.shape || this.node || A.doc, a, b, d || this) })), this }, c["un" + a] = $b["un" + a] = function (b) { for (var d = this.events || [], e = d.length; e--;)d[e].name != a || !c.is(b, "undefined") && d[e].f != b || (d[e].unbind(), d.splice(e, 1), !d.length && delete this.events); return this } }(K[_b]); $b.data = function (a, d) { var e = kb[this.id] = kb[this.id] || {}; if (0 == arguments.length) return e; if (1 == arguments.length) { if (c.is(a, "object")) { for (var f in a) a[z](f) && this.data(f, a[f]); return this } return b("raphael.data.get." + this.id, this, e[a], a), e[a] } return e[a] = d, b("raphael.data.set." + this.id, this, d, a), this }, $b.removeData = function (a) { return null == a ? kb[this.id] = {} : kb[this.id] && delete kb[this.id][a], this }, $b.getData = function () { return d(kb[this.id] || {}) }, $b.hover = function (a, b, c, d) { return this.mouseover(a, c).mouseout(b, d || c) }, $b.unhover = function (a, b) { return this.unmouseover(a).unmouseout(b) }; var ac = []; $b.drag = function (a, d, e, f, g, h) { function i(i) { (i.originalEvent || i).preventDefault(); var j = i.clientX, k = i.clientY, l = A.doc.documentElement.scrollTop || A.doc.body.scrollTop, m = A.doc.documentElement.scrollLeft || A.doc.body.scrollLeft; if (this._drag.id = i.identifier, F && i.touches) for (var n, o = i.touches.length; o--;)if (n = i.touches[o], this._drag.id = n.identifier, n.identifier == this._drag.id) { j = n.clientX, k = n.clientY; break } this._drag.x = j + m, this._drag.y = k + l, !Xb.length && c.mousemove(Yb).mouseup(Zb), Xb.push({ el: this, move_scope: f, start_scope: g, end_scope: h }), d && b.on("raphael.drag.start." + this.id, d), a && b.on("raphael.drag.move." + this.id, a), e && b.on("raphael.drag.end." + this.id, e), b("raphael.drag.start." + this.id, g || f || this, i.clientX + m, i.clientY + l, i) } return this._drag = {}, ac.push({ el: this, start: i }), this.mousedown(i), this }, $b.onDragOver = function (a) { a ? b.on("raphael.drag.over." + this.id, a) : b.unbind("raphael.drag.over." + this.id) }, $b.undrag = function () { for (var a = ac.length; a--;)ac[a].el == this && (this.unmousedown(ac[a].start), ac.splice(a, 1), b.unbind("raphael.drag.*." + this.id)); !ac.length && c.unmousemove(Yb).unmouseup(Zb), Xb = [] }, v.circle = function (a, b, d) { var e = c._engine.circle(this, a || 0, b || 0, d || 0); return this.__set__ && this.__set__.push(e), e }, v.rect = function (a, b, d, e, f) { var g = c._engine.rect(this, a || 0, b || 0, d || 0, e || 0, f || 0); return this.__set__ && this.__set__.push(g), g }, v.ellipse = function (a, b, d, e) { var f = c._engine.ellipse(this, a || 0, b || 0, d || 0, e || 0); return this.__set__ && this.__set__.push(f), f }, v.path = function (a) { a && !c.is(a, U) && !c.is(a[0], V) && (a += G); var b = c._engine.path(c.format[D](c, arguments), this); return this.__set__ && this.__set__.push(b), b }, v.image = function (a, b, d, e, f) { var g = c._engine.image(this, a || "about:blank", b || 0, d || 0, e || 0, f || 0); return this.__set__ && this.__set__.push(g), g }, v.text = function (a, b, d) { var e = c._engine.text(this, a || 0, b || 0, I(d)); return this.__set__ && this.__set__.push(e), e }, v.set = function (a) { !c.is(a, "array") && (a = Array.prototype.splice.call(arguments, 0, arguments.length)); var b = new mc(a); return this.__set__ && this.__set__.push(b), b.paper = this, b.type = "set", b }, v.setStart = function (a) { this.__set__ = a || this.set() }, v.setFinish = function () { var a = this.__set__; return delete this.__set__, a }, v.getSize = function () { var a = this.canvas.parentNode; return { width: a.offsetWidth, height: a.offsetHeight } }, v.setSize = function (a, b) { return c._engine.setSize.call(this, a, b) }, v.setViewBox = function (a, b, d, e, f) { return c._engine.setViewBox.call(this, a, b, d, e, f) }, v.top = v.bottom = null, v.raphael = c; var bc = function (a) { var b = a.getBoundingClientRect(), c = a.ownerDocument, d = c.body, e = c.documentElement, f = e.clientTop || d.clientTop || 0, g = e.clientLeft || d.clientLeft || 0, h = b.top + (A.win.pageYOffset || e.scrollTop || d.scrollTop) - f, i = b.left + (A.win.pageXOffset || e.scrollLeft || d.scrollLeft) - g; return { y: h, x: i } }; v.getElementByPoint = function (a, b) { var c = this, d = c.canvas, e = A.doc.elementFromPoint(a, b); if (A.win.opera && "svg" == e.tagName) { var f = bc(d), g = d.createSVGRect(); g.x = a - f.x, g.y = b - f.y, g.width = g.height = 1; var h = d.getIntersectionList(g, null); h.length && (e = h[h.length - 1]) } if (!e) return null; for (; e.parentNode && e != d.parentNode && !e.raphael;)e = e.parentNode; return e == c.canvas.parentNode && (e = d), e = e && e.raphael ? c.getById(e.raphaelid) : null }, v.getElementsByBBox = function (a) { var b = this.set(); return this.forEach(function (d) { c.isBBoxIntersect(d.getBBox(), a) && b.push(d) }), b }, v.getById = function (a) { for (var b = this.bottom; b;) { if (b.id == a) return b; b = b.next } return null }, v.forEach = function (a, b) { for (var c = this.bottom; c;) { if (a.call(b, c) === !1) return this; c = c.next } return this }, v.getElementsByPoint = function (a, b) { var c = this.set(); return this.forEach(function (d) { d.isPointInside(a, b) && c.push(d) }), c }, $b.isPointInside = function (a, b) { var d = this.realPath = qb[this.type](this); return this.attr("transform") && this.attr("transform").length && (d = c.transformPath(d, this.attr("transform"))), c.isPointInsidePath(d, a, b) }, $b.getBBox = function (a) { if (this.removed) return {}; var b = this._; return a ? ((b.dirty || !b.bboxwt) && (this.realPath = qb[this.type](this), b.bboxwt = Bb(this.realPath), b.bboxwt.toString = p, b.dirty = 0), b.bboxwt) : ((b.dirty || b.dirtyT || !b.bbox) && ((b.dirty || !this.realPath) && (b.bboxwt = 0, this.realPath = qb[this.type](this)), b.bbox = Bb(rb(this.realPath, this.matrix)), b.bbox.toString = p, b.dirty = b.dirtyT = 0), b.bbox) }, $b.clone = function () { if (this.removed) return null; var a = this.paper[this.type]().attr(this.attr()); return this.__set__ && this.__set__.push(a), a }, $b.glow = function (a) { if ("text" == this.type) return null; a = a || {}; var b = { width: (a.width || 10) + (+this.attr("stroke-width") || 1), fill: a.fill || !1, opacity: a.opacity || .5, offsetx: a.offsetx || 0, offsety: a.offsety || 0, color: a.color || "#000" }, c = b.width / 2, d = this.paper, e = d.set(), f = this.realPath || qb[this.type](this); f = this.matrix ? rb(f, this.matrix) : f; for (var g = 1; c + 1 > g; g++)e.push(d.path(f).attr({ stroke: b.color, fill: b.fill ? b.color : "none", "stroke-linejoin": "round", "stroke-linecap": "round", "stroke-width": +(b.width / c * g).toFixed(3), opacity: +(b.opacity / c).toFixed(3) })); return e.insertBefore(this).translate(b.offsetx, b.offsety) }; var cc = function (a, b, d, e, f, g, h, i, l) { return null == l ? j(a, b, d, e, f, g, h, i) : c.findDotsAtSegment(a, b, d, e, f, g, h, i, k(a, b, d, e, f, g, h, i, l)) }, dc = function (a, b) { return function (d, e, f) { d = Kb(d); for (var g, h, i, j, k, l = "", m = {}, n = 0, o = 0, p = d.length; p > o; o++) { if (i = d[o], "M" == i[0]) g = +i[1], h = +i[2]; else { if (j = cc(g, h, i[1], i[2], i[3], i[4], i[5], i[6]), n + j > e) { if (b && !m.start) { if (k = cc(g, h, i[1], i[2], i[3], i[4], i[5], i[6], e - n), l += ["C" + k.start.x, k.start.y, k.m.x, k.m.y, k.x, k.y], f) return l; m.start = l, l = ["M" + k.x, k.y + "C" + k.n.x, k.n.y, k.end.x, k.end.y, i[5], i[6]].join(), n += j, g = +i[5], h = +i[6]; continue } if (!a && !b) return k = cc(g, h, i[1], i[2], i[3], i[4], i[5], i[6], e - n), { x: k.x, y: k.y, alpha: k.alpha } } n += j, g = +i[5], h = +i[6] } l += i.shift() + i } return m.end = l, k = a ? n : b ? m : c.findDotsAtSegment(g, h, i[0], i[1], i[2], i[3], i[4], i[5], 1), k.alpha && (k = { x: k.x, y: k.y, alpha: k.alpha }), k } }, ec = dc(1), fc = dc(), gc = dc(0, 1); c.getTotalLength = ec, c.getPointAtLength = fc, c.getSubpath = function (a, b, c) { if (this.getTotalLength(a) - c < 1e-6) return gc(a, b).end; var d = gc(a, c, 1); return b ? gc(d, b).end : d }, $b.getTotalLength = function () { var a = this.getPath(); if (a) return this.node.getTotalLength ? this.node.getTotalLength() : ec(a) }, $b.getPointAtLength = function (a) { var b = this.getPath(); if (b) return fc(b, a) }, $b.getPath = function () { var a, b = c._getPath[this.type]; if ("text" != this.type && "set" != this.type) return b && (a = b(this)), a }, $b.getSubpath = function (a, b) { var d = this.getPath(); if (d) return c.getSubpath(d, a, b) }; var hc = c.easing_formulas = { linear: function (a) { return a }, "<": function (a) { return R(a, 1.7) }, ">": function (a) { return R(a, .48) }, "<>": function (a) { var b = .48 - a / 1.04, c = N.sqrt(.1734 + b * b), d = c - b, e = R(Q(d), 1 / 3) * (0 > d ? -1 : 1), f = -c - b, g = R(Q(f), 1 / 3) * (0 > f ? -1 : 1), h = e + g + .5; return 3 * (1 - h) * h * h + h * h * h }, backIn: function (a) { var b = 1.70158; return a * a * ((b + 1) * a - b) }, backOut: function (a) { a -= 1; var b = 1.70158; return a * a * ((b + 1) * a + b) + 1 }, elastic: function (a) { return a == !!a ? a : R(2, -10 * a) * N.sin(2 * (a - .075) * S / .3) + 1 }, bounce: function (a) { var b, c = 7.5625, d = 2.75; return 1 / d > a ? b = c * a * a : 2 / d > a ? (a -= 1.5 / d, b = c * a * a + .75) : 2.5 / d > a ? (a -= 2.25 / d, b = c * a * a + .9375) : (a -= 2.625 / d, b = c * a * a + .984375), b } }; hc.easeIn = hc["ease-in"] = hc["<"], hc.easeOut = hc["ease-out"] = hc[">"], hc.easeInOut = hc["ease-in-out"] = hc["<>"], hc["back-in"] = hc.backIn, hc["back-out"] = hc.backOut; var ic = [], jc = a.requestAnimationFrame || a.webkitRequestAnimationFrame || a.mozRequestAnimationFrame || a.oRequestAnimationFrame || a.msRequestAnimationFrame || function (a) { setTimeout(a, 16) }, kc = function () { for (var a = +new Date, d = 0; d < ic.length; d++) { var e = ic[d]; if (!e.el.removed && !e.paused) { var f, g, h = a - e.start, i = e.ms, j = e.easing, k = e.from, l = e.diff, m = e.to, n = (e.t, e.el), o = {}, p = {}; if (e.initstatus ? (h = (e.initstatus * e.anim.top - e.prev) / (e.percent - e.prev) * i, e.status = e.initstatus, delete e.initstatus, e.stop && ic.splice(d--, 1)) : e.status = (e.prev + (e.percent - e.prev) * (h / i)) / e.anim.top, !(0 > h)) if (i > h) { var q = j(h / i); for (var r in k) if (k[z](r)) { switch (db[r]) { case T: f = +k[r] + q * i * l[r]; break; case "colour": f = "rgb(" + [lc($(k[r].r + q * i * l[r].r)), lc($(k[r].g + q * i * l[r].g)), lc($(k[r].b + q * i * l[r].b))].join(",") + ")"; break; case "path": f = []; for (var t = 0, u = k[r].length; u > t; t++) { f[t] = [k[r][t][0]]; for (var v = 1, w = k[r][t].length; w > v; v++)f[t][v] = +k[r][t][v] + q * i * l[r][t][v]; f[t] = f[t].join(H) } f = f.join(H); break; case "transform": if (l[r].real) for (f = [], t = 0, u = k[r].length; u > t; t++)for (f[t] = [k[r][t][0]], v = 1, w = k[r][t].length; w > v; v++)f[t][v] = k[r][t][v] + q * i * l[r][t][v]; else { var x = function (a) { return +k[r][a] + q * i * l[r][a] }; f = [["m", x(0), x(1), x(2), x(3), x(4), x(5)]] } break; case "csv": if ("clip-rect" == r) for (f = [], t = 4; t--;)f[t] = +k[r][t] + q * i * l[r][t]; break; default: var y = [][E](k[r]); for (f = [], t = n.paper.customAttributes[r].length; t--;)f[t] = +y[t] + q * i * l[r][t] }o[r] = f } n.attr(o), function (a, c, d) { setTimeout(function () { b("raphael.anim.frame." + a, c, d) }) }(n.id, n, e.anim) } else { if (function (a, d, e) { setTimeout(function () { b("raphael.anim.frame." + d.id, d, e), b("raphael.anim.finish." + d.id, d, e), c.is(a, "function") && a.call(d) }) }(e.callback, n, e.anim), n.attr(m), ic.splice(d--, 1), e.repeat > 1 && !e.next) { for (g in m) m[z](g) && (p[g] = e.totalOrigin[g]); e.el.attr(p), s(e.anim, e.el, e.anim.percents[0], null, e.totalOrigin, e.repeat - 1) } e.next && !e.stop && s(e.anim, e.el, e.next, null, e.totalOrigin, e.repeat) } } } c.svg && n && n.paper && n.paper.safari(), ic.length && jc(kc) }, lc = function (a) { return a > 255 ? 255 : 0 > a ? 0 : a }; $b.animateWith = function (a, b, d, e, f, g) { var h = this; if (h.removed) return g && g.call(h), h; var i = d instanceof r ? d : c.animation(d, e, f, g); s(i, h, i.percents[0], null, h.attr()); for (var j = 0, k = ic.length; k > j; j++)if (ic[j].anim == b && ic[j].el == a) { ic[k - 1].start = ic[j].start; break } return h }, $b.onAnimation = function (a) { return a ? b.on("raphael.anim.frame." + this.id, a) : b.unbind("raphael.anim.frame." + this.id), this }, r.prototype.delay = function (a) { var b = new r(this.anim, this.ms); return b.times = this.times, b.del = +a || 0, b }, r.prototype.repeat = function (a) { var b = new r(this.anim, this.ms); return b.del = this.del, b.times = N.floor(O(a, 0)) || 1, b }, c.animation = function (a, b, d, e) { if (a instanceof r) return a; (c.is(d, "function") || !d) && (e = e || d || null, d = null), a = Object(a), b = +b || 0; var f, g, h = {}; for (g in a) a[z](g) && _(g) != g && _(g) + "%" != g && (f = !0, h[g] = a[g]); if (f) return d && (h.easing = d), e && (h.callback = e), new r({ 100: h }, b); if (e) { var i = 0; for (var j in a) { var k = ab(j); a[z](j) && k > i && (i = k) } i += "%", !a[i].callback && (a[i].callback = e) } return new r(a, b) }, $b.animate = function (a, b, d, e) { var f = this; if (f.removed) return e && e.call(f), f; var g = a instanceof r ? a : c.animation(a, b, d, e); return s(g, f, g.percents[0], null, f.attr()), f }, $b.setTime = function (a, b) { return a && null != b && this.status(a, P(b, a.ms) / a.ms), this }, $b.status = function (a, b) { var c, d, e = [], f = 0; if (null != b) return s(a, this, -1, P(b, 1)), this; for (c = ic.length; c > f; f++)if (d = ic[f], d.el.id == this.id && (!a || d.anim == a)) { if (a) return d.status; e.push({ anim: d.anim, status: d.status }) } return a ? 0 : e }, $b.pause = function (a) { for (var c = 0; c < ic.length; c++)ic[c].el.id != this.id || a && ic[c].anim != a || b("raphael.anim.pause." + this.id, this, ic[c].anim) !== !1 && (ic[c].paused = !0); return this }, $b.resume = function (a) { for (var c = 0; c < ic.length; c++)if (ic[c].el.id == this.id && (!a || ic[c].anim == a)) { var d = ic[c]; b("raphael.anim.resume." + this.id, this, d.anim) !== !1 && (delete d.paused, this.status(d.anim, d.status)) } return this }, $b.stop = function (a) { for (var c = 0; c < ic.length; c++)ic[c].el.id != this.id || a && ic[c].anim != a || b("raphael.anim.stop." + this.id, this, ic[c].anim) !== !1 && ic.splice(c--, 1); return this }, b.on("raphael.remove", t), b.on("raphael.clear", t), $b.toString = function () { return "Raphaël’s object" }; var mc = function (a) { if (this.items = [], this.length = 0, this.type = "set", a) for (var b = 0, c = a.length; c > b; b++)!a[b] || a[b].constructor != $b.constructor && a[b].constructor != mc || (this[this.items.length] = this.items[this.items.length] = a[b], this.length++) }, nc = mc.prototype; nc.push = function () { for (var a, b, c = 0, d = arguments.length; d > c; c++)a = arguments[c], !a || a.constructor != $b.constructor && a.constructor != mc || (b = this.items.length, this[b] = this.items[b] = a, this.length++); return this }, nc.pop = function () { return this.length && delete this[this.length--], this.items.pop() }, nc.forEach = function (a, b) { for (var c = 0, d = this.items.length; d > c; c++)if (a.call(b, this.items[c], c) === !1) return this; return this }; for (var oc in $b) $b[z](oc) && (nc[oc] = function (a) { return function () { var b = arguments; return this.forEach(function (c) { c[a][D](c, b) }) } }(oc)); return nc.attr = function (a, b) { if (a && c.is(a, V) && c.is(a[0], "object")) for (var d = 0, e = a.length; e > d; d++)this.items[d].attr(a[d]); else for (var f = 0, g = this.items.length; g > f; f++)this.items[f].attr(a, b); return this }, nc.clear = function () { for (; this.length;)this.pop() }, nc.splice = function (a, b) { a = 0 > a ? O(this.length + a, 0) : a, b = O(0, P(this.length - a, b)); var c, d = [], e = [], f = []; for (c = 2; c < arguments.length; c++)f.push(arguments[c]); for (c = 0; b > c; c++)e.push(this[a + c]); for (; c < this.length - a; c++)d.push(this[a + c]); var g = f.length; for (c = 0; c < g + d.length; c++)this.items[a + c] = this[a + c] = g > c ? f[c] : d[c - g]; for (c = this.items.length = this.length -= b - g; this[c];)delete this[c++]; return new mc(e) }, nc.exclude = function (a) { for (var b = 0, c = this.length; c > b; b++)if (this[b] == a) return this.splice(b, 1), !0 }, nc.animate = function (a, b, d, e) { (c.is(d, "function") || !d) && (e = d || null); var f, g, h = this.items.length, i = h, j = this; if (!h) return this; e && (g = function () { !--h && e.call(j) }), d = c.is(d, U) ? d : g; var k = c.animation(a, b, d, g); for (f = this.items[--i].animate(k); i--;)this.items[i] && !this.items[i].removed && this.items[i].animateWith(f, k, k), this.items[i] && !this.items[i].removed || h--; return this }, nc.insertAfter = function (a) { for (var b = this.items.length; b--;)this.items[b].insertAfter(a); return this }, nc.getBBox = function () { for (var a = [], b = [], c = [], d = [], e = this.items.length; e--;)if (!this.items[e].removed) { var f = this.items[e].getBBox(); a.push(f.x), b.push(f.y), c.push(f.x + f.width), d.push(f.y + f.height) } return a = P[D](0, a), b = P[D](0, b), c = O[D](0, c), d = O[D](0, d), { x: a, y: b, x2: c, y2: d, width: c - a, height: d - b } }, nc.clone = function (a) { a = this.paper.set(); for (var b = 0, c = this.items.length; c > b; b++)a.push(this.items[b].clone()); return a }, nc.toString = function () { return "Raphaël‘s set" }, nc.glow = function (a) { var b = this.paper.set(); return this.forEach(function (c) { var d = c.glow(a); null != d && d.forEach(function (a) { b.push(a) }) }), b }, nc.isPointInside = function (a, b) { var c = !1; return this.forEach(function (d) { return d.isPointInside(a, b) ? (c = !0, !1) : void 0 }), c }, c.registerFont = function (a) { if (!a.face) return a; this.fonts = this.fonts || {}; var b = { w: a.w, face: {}, glyphs: {} }, c = a.face["font-family"]; for (var d in a.face) a.face[z](d) && (b.face[d] = a.face[d]); if (this.fonts[c] ? this.fonts[c].push(b) : this.fonts[c] = [b], !a.svg) { b.face["units-per-em"] = ab(a.face["units-per-em"], 10); for (var e in a.glyphs) if (a.glyphs[z](e)) { var f = a.glyphs[e]; if (b.glyphs[e] = { w: f.w, k: {}, d: f.d && "M" + f.d.replace(/[mlcxtrv]/g, function (a) { return { l: "L", c: "C", x: "z", t: "m", r: "l", v: "c" }[a] || "M" }) + "z" }, f.k) for (var g in f.k) f[z](g) && (b.glyphs[e].k[g] = f.k[g]) } } return a }, v.getFont = function (a, b, d, e) { if (e = e || "normal", d = d || "normal", b = +b || { normal: 400, bold: 700, lighter: 300, bolder: 800 }[b] || 400, c.fonts) { var f = c.fonts[a]; if (!f) { var g = new RegExp("(^|\\s)" + a.replace(/[^\w\d\s+!~.:_-]/g, G) + "(\\s|$)", "i"); for (var h in c.fonts) if (c.fonts[z](h) && g.test(h)) { f = c.fonts[h]; break } } var i; if (f) for (var j = 0, k = f.length; k > j && (i = f[j], i.face["font-weight"] != b || i.face["font-style"] != d && i.face["font-style"] || i.face["font-stretch"] != e); j++); return i } }, v.print = function (a, b, d, e, f, g, h, i) { g = g || "middle", h = O(P(h || 0, 1), -1), i = O(P(i || 1, 3), 1); var j, k = I(d)[J](G), l = 0, m = 0, n = G; if (c.is(e, "string") && (e = this.getFont(e)), e) { j = (f || 16) / e.face["units-per-em"]; for (var o = e.face.bbox[J](w), p = +o[0], q = o[3] - o[1], r = 0, s = +o[1] + ("baseline" == g ? q + +e.face.descent : q / 2), t = 0, u = k.length; u > t; t++) { if ("\n" == k[t]) l = 0, x = 0, m = 0, r += q * i; else { var v = m && e.glyphs[k[t - 1]] || {}, x = e.glyphs[k[t]]; l += m ? (v.w || e.w) + (v.k && v.k[k[t]] || 0) + e.w * h : 0, m = 1 } x && x.d && (n += c.transformPath(x.d, ["t", l * j, r * j, "s", j, j, p, s, "t", (a - p) / j, (b - s) / j])) } } return this.path(n).attr({ fill: "#000", stroke: "none" }) }, v.add = function (a) { if (c.is(a, "array")) for (var b, d = this.set(), e = 0, f = a.length; f > e; e++)b = a[e] || {}, x[z](b.type) && d.push(this[b.type]().attr(b)); return d }, c.format = function (a, b) { var d = c.is(b, V) ? [0][E](b) : arguments; return a && c.is(a, U) && d.length - 1 && (a = a.replace(y, function (a, b) { return null == d[++b] ? G : d[b] })), a || G }, c.fullfill = function () { var a = /\{([^\}]+)\}/g, b = /(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g, c = function (a, c, d) { var e = d; return c.replace(b, function (a, b, c, d, f) { b = b || d, e && (b in e && (e = e[b]), "function" == typeof e && f && (e = e())) }), e = (null == e || e == d ? a : e) + "" }; return function (b, d) { return String(b).replace(a, function (a, b) { return c(a, b, d) }) } }(), c.ninja = function () { return B.was ? A.win.Raphael = B.is : delete Raphael, c }, c.st = nc, b.on("raphael.DOMload", function () { u = !0 }), function (a, b, d) { function e() { /in/.test(a.readyState) ? setTimeout(e, 9) : c.eve("raphael.DOMload") } null == a.readyState && a.addEventListener && (a.addEventListener(b, d = function () { a.removeEventListener(b, d, !1), a.readyState = "complete" }, !1), a.readyState = "loading"), e() }(document, "DOMContentLoaded"), function () { + if (c.svg) { + var a = "hasOwnProperty", b = String, d = parseFloat, e = parseInt, f = Math, g = f.max, h = f.abs, i = f.pow, j = /[, ]+/, k = c.eve, l = "", m = " ", n = "http://www.w3.org/1999/xlink", o = { block: "M5,0 0,2.5 5,5z", classic: "M5,0 0,2.5 5,5 3.5,3 3.5,2z", diamond: "M2.5,0 5,2.5 2.5,5 0,2.5z", open: "M6,1 1,3.5 6,6", oval: "M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z" }, p = {}; c.toString = function () { return "Your browser supports SVG.\nYou are running Raphaël " + this.version }; var q = function (d, e) { if (e) { "string" == typeof d && (d = q(d)); for (var f in e) e[a](f) && ("xlink:" == f.substring(0, 6) ? d.setAttributeNS(n, f.substring(6), b(e[f])) : d.setAttribute(f, b(e[f]))) } else d = c._g.doc.createElementNS("http://www.w3.org/2000/svg", d), d.style && (d.style.webkitTapHighlightColor = "rgba(0,0,0,0)"); return d }, r = function (a, e) { var j = "linear", k = a.id + e, m = .5, n = .5, o = a.node, p = a.paper, r = o.style, s = c._g.doc.getElementById(k); if (!s) { if (e = b(e).replace(c._radial_gradient, function (a, b, c) { if (j = "radial", b && c) { m = d(b), n = d(c); var e = 2 * (n > .5) - 1; i(m - .5, 2) + i(n - .5, 2) > .25 && (n = f.sqrt(.25 - i(m - .5, 2)) * e + .5) && .5 != n && (n = n.toFixed(5) - 1e-5 * e) } return l }), e = e.split(/\s*\-\s*/), "linear" == j) { var t = e.shift(); if (t = -d(t), isNaN(t)) return null; var u = [0, 0, f.cos(c.rad(t)), f.sin(c.rad(t))], v = 1 / (g(h(u[2]), h(u[3])) || 1); u[2] *= v, u[3] *= v, u[2] < 0 && (u[0] = -u[2], u[2] = 0), u[3] < 0 && (u[1] = -u[3], u[3] = 0) } var w = c._parseDots(e); if (!w) return null; if (k = k.replace(/[\(\)\s,\xb0#]/g, "_"), a.gradient && k != a.gradient.id && (p.defs.removeChild(a.gradient), delete a.gradient), !a.gradient) { s = q(j + "Gradient", { id: k }), a.gradient = s, q(s, "radial" == j ? { fx: m, fy: n } : { x1: u[0], y1: u[1], x2: u[2], y2: u[3], gradientTransform: a.matrix.invert() }), p.defs.appendChild(s); for (var x = 0, y = w.length; y > x; x++)s.appendChild(q("stop", { offset: w[x].offset ? w[x].offset : x ? "100%" : "0%", "stop-color": w[x].color || "#fff" })) } } return q(o, { fill: "url(" + document.location + "#" + k + ")", opacity: 1, "fill-opacity": 1 }), r.fill = l, r.opacity = 1, r.fillOpacity = 1, 1 }, s = function (a) { var b = a.getBBox(1); q(a.pattern, { patternTransform: a.matrix.invert() + " translate(" + b.x + "," + b.y + ")" }) }, t = function (d, e, f) { if ("path" == d.type) { for (var g, h, i, j, k, m = b(e).toLowerCase().split("-"), n = d.paper, r = f ? "end" : "start", s = d.node, t = d.attrs, u = t["stroke-width"], v = m.length, w = "classic", x = 3, y = 3, z = 5; v--;)switch (m[v]) { case "block": case "classic": case "oval": case "diamond": case "open": case "none": w = m[v]; break; case "wide": y = 5; break; case "narrow": y = 2; break; case "long": x = 5; break; case "short": x = 2 }if ("open" == w ? (x += 2, y += 2, z += 2, i = 1, j = f ? 4 : 1, k = { fill: "none", stroke: t.stroke }) : (j = i = x / 2, k = { fill: t.stroke, stroke: "none" }), d._.arrows ? f ? (d._.arrows.endPath && p[d._.arrows.endPath]--, d._.arrows.endMarker && p[d._.arrows.endMarker]--) : (d._.arrows.startPath && p[d._.arrows.startPath]--, d._.arrows.startMarker && p[d._.arrows.startMarker]--) : d._.arrows = {}, "none" != w) { var A = "raphael-marker-" + w, B = "raphael-marker-" + r + w + x + y + "-obj" + d.id; c._g.doc.getElementById(A) ? p[A]++ : (n.defs.appendChild(q(q("path"), { "stroke-linecap": "round", d: o[w], id: A })), p[A] = 1); var C, D = c._g.doc.getElementById(B); D ? (p[B]++, C = D.getElementsByTagName("use")[0]) : (D = q(q("marker"), { id: B, markerHeight: y, markerWidth: x, orient: "auto", refX: j, refY: y / 2 }), C = q(q("use"), { "xlink:href": "#" + A, transform: (f ? "rotate(180 " + x / 2 + " " + y / 2 + ") " : l) + "scale(" + x / z + "," + y / z + ")", "stroke-width": (1 / ((x / z + y / z) / 2)).toFixed(4) }), D.appendChild(C), n.defs.appendChild(D), p[B] = 1), q(C, k); var E = i * ("diamond" != w && "oval" != w); f ? (g = d._.arrows.startdx * u || 0, h = c.getTotalLength(t.path) - E * u) : (g = E * u, h = c.getTotalLength(t.path) - (d._.arrows.enddx * u || 0)), k = {}, k["marker-" + r] = "url(#" + B + ")", (h || g) && (k.d = c.getSubpath(t.path, g, h)), q(s, k), d._.arrows[r + "Path"] = A, d._.arrows[r + "Marker"] = B, d._.arrows[r + "dx"] = E, d._.arrows[r + "Type"] = w, d._.arrows[r + "String"] = e } else f ? (g = d._.arrows.startdx * u || 0, h = c.getTotalLength(t.path) - g) : (g = 0, h = c.getTotalLength(t.path) - (d._.arrows.enddx * u || 0)), d._.arrows[r + "Path"] && q(s, { d: c.getSubpath(t.path, g, h) }), delete d._.arrows[r + "Path"], delete d._.arrows[r + "Marker"], delete d._.arrows[r + "dx"], delete d._.arrows[r + "Type"], delete d._.arrows[r + "String"]; for (k in p) if (p[a](k) && !p[k]) { var F = c._g.doc.getElementById(k); F && F.parentNode.removeChild(F) } } }, u = { "": [0], none: [0], "-": [3, 1], ".": [1, 1], "-.": [3, 1, 1, 1], "-..": [3, 1, 1, 1, 1, 1], ". ": [1, 3], "- ": [4, 3], "--": [8, 3], "- .": [4, 3, 1, 3], "--.": [8, 3, 1, 3], "--..": [8, 3, 1, 3, 1, 3] }, v = function (a, c, d) { if (c = u[b(c).toLowerCase()]) { for (var e = a.attrs["stroke-width"] || "1", f = { round: e, square: e, butt: 0 }[a.attrs["stroke-linecap"] || d["stroke-linecap"]] || 0, g = [], h = c.length; h--;)g[h] = c[h] * e + (h % 2 ? 1 : -1) * f; q(a.node, { "stroke-dasharray": g.join(",") }) } }, w = function (d, f) { + var i = d.node, k = d.attrs, m = i.style.visibility; i.style.visibility = "hidden"; for (var o in f) if (f[a](o)) { + if (!c._availableAttrs[a](o)) continue; var p = f[o]; switch (k[o] = p, o) { + case "blur": d.blur(p); break; case "title": var u = i.getElementsByTagName("title"); if (u.length && (u = u[0])) u.firstChild.nodeValue = p; else { u = q("title"); var w = c._g.doc.createTextNode(p); u.appendChild(w), i.appendChild(u) } break; case "href": case "target": var x = i.parentNode; if ("a" != x.tagName.toLowerCase()) { var z = q("a"); x.insertBefore(z, i), z.appendChild(i), x = z } "target" == o ? x.setAttributeNS(n, "show", "blank" == p ? "new" : p) : x.setAttributeNS(n, o, p); break; case "cursor": i.style.cursor = p; break; case "transform": d.transform(p); break; case "arrow-start": t(d, p); break; case "arrow-end": t(d, p, 1); break; case "clip-rect": var A = b(p).split(j); if (4 == A.length) { d.clip && d.clip.parentNode.parentNode.removeChild(d.clip.parentNode); var B = q("clipPath"), C = q("rect"); B.id = c.createUUID(), q(C, { x: A[0], y: A[1], width: A[2], height: A[3] }), B.appendChild(C), d.paper.defs.appendChild(B), q(i, { "clip-path": "url(#" + B.id + ")" }), d.clip = C } if (!p) { var D = i.getAttribute("clip-path"); if (D) { var E = c._g.doc.getElementById(D.replace(/(^url\(#|\)$)/g, l)); E && E.parentNode.removeChild(E), q(i, { "clip-path": l }), delete d.clip } } break; case "path": "path" == d.type && (q(i, { d: p ? k.path = c._pathToAbsolute(p) : "M0,0" }), d._.dirty = 1, d._.arrows && ("startString" in d._.arrows && t(d, d._.arrows.startString), "endString" in d._.arrows && t(d, d._.arrows.endString, 1))); break; case "width": if (i.setAttribute(o, p), d._.dirty = 1, !k.fx) break; o = "x", p = k.x; case "x": k.fx && (p = -k.x - (k.width || 0)); case "rx": if ("rx" == o && "rect" == d.type) break; case "cx": i.setAttribute(o, p), d.pattern && s(d), d._.dirty = 1; break; case "height": if (i.setAttribute(o, p), d._.dirty = 1, !k.fy) break; o = "y", p = k.y; case "y": k.fy && (p = -k.y - (k.height || 0)); case "ry": if ("ry" == o && "rect" == d.type) break; case "cy": i.setAttribute(o, p), d.pattern && s(d), d._.dirty = 1; break; case "r": "rect" == d.type ? q(i, { rx: p, ry: p }) : i.setAttribute(o, p), d._.dirty = 1; break; case "src": "image" == d.type && i.setAttributeNS(n, "href", p); break; case "stroke-width": (1 != d._.sx || 1 != d._.sy) && (p /= g(h(d._.sx), h(d._.sy)) || 1), i.setAttribute(o, p), k["stroke-dasharray"] && v(d, k["stroke-dasharray"], f), d._.arrows && ("startString" in d._.arrows && t(d, d._.arrows.startString), "endString" in d._.arrows && t(d, d._.arrows.endString, 1)); break; case "stroke-dasharray": v(d, p, f); break; case "fill": var F = b(p).match(c._ISURL); if (F) { B = q("pattern"); var G = q("image"); B.id = c.createUUID(), q(B, { x: 0, y: 0, patternUnits: "userSpaceOnUse", height: 1, width: 1 }), q(G, { x: 0, y: 0, "xlink:href": F[1] }), B.appendChild(G), function (a) { c._preload(F[1], function () { var b = this.offsetWidth, c = this.offsetHeight; q(a, { width: b, height: c }), q(G, { width: b, height: c }), d.paper.safari() }) }(B), d.paper.defs.appendChild(B), q(i, { fill: "url(#" + B.id + ")" }), d.pattern = B, d.pattern && s(d); break } var H = c.getRGB(p); if (H.error) { if (("circle" == d.type || "ellipse" == d.type || "r" != b(p).charAt()) && r(d, p)) { if ("opacity" in k || "fill-opacity" in k) { var I = c._g.doc.getElementById(i.getAttribute("fill").replace(/^url\(#|\)$/g, l)); if (I) { var J = I.getElementsByTagName("stop"); q(J[J.length - 1], { "stop-opacity": ("opacity" in k ? k.opacity : 1) * ("fill-opacity" in k ? k["fill-opacity"] : 1) }) } } k.gradient = p, k.fill = "none"; break } } else delete f.gradient, delete k.gradient, !c.is(k.opacity, "undefined") && c.is(f.opacity, "undefined") && q(i, { opacity: k.opacity }), !c.is(k["fill-opacity"], "undefined") && c.is(f["fill-opacity"], "undefined") && q(i, { "fill-opacity": k["fill-opacity"] }); H[a]("opacity") && q(i, { "fill-opacity": H.opacity > 1 ? H.opacity / 100 : H.opacity }); case "stroke": H = c.getRGB(p), i.setAttribute(o, H.hex), "stroke" == o && H[a]("opacity") && q(i, { "stroke-opacity": H.opacity > 1 ? H.opacity / 100 : H.opacity }), "stroke" == o && d._.arrows && ("startString" in d._.arrows && t(d, d._.arrows.startString), "endString" in d._.arrows && t(d, d._.arrows.endString, 1)); break; case "gradient": ("circle" == d.type || "ellipse" == d.type || "r" != b(p).charAt()) && r(d, p); break; + case "opacity": k.gradient && !k[a]("stroke-opacity") && q(i, { "stroke-opacity": p > 1 ? p / 100 : p }); case "fill-opacity": if (k.gradient) { I = c._g.doc.getElementById(i.getAttribute("fill").replace(/^url\(#|\)$/g, l)), I && (J = I.getElementsByTagName("stop"), q(J[J.length - 1], { "stop-opacity": p })); break } default: "font-size" == o && (p = e(p, 10) + "px"); var K = o.replace(/(\-.)/g, function (a) { return a.substring(1).toUpperCase() }); i.style[K] = p, d._.dirty = 1, i.setAttribute(o, p) + } + } y(d, f), i.style.visibility = m + }, x = 1.2, y = function (d, f) { if ("text" == d.type && (f[a]("text") || f[a]("font") || f[a]("font-size") || f[a]("x") || f[a]("y"))) { var g = d.attrs, h = d.node, i = h.firstChild ? e(c._g.doc.defaultView.getComputedStyle(h.firstChild, l).getPropertyValue("font-size"), 10) : 10; if (f[a]("text")) { for (g.text = f.text; h.firstChild;)h.removeChild(h.firstChild); for (var j, k = b(f.text).split("\n"), m = [], n = 0, o = k.length; o > n; n++)j = q("tspan"), n && q(j, { dy: i * x, x: g.x }), j.appendChild(c._g.doc.createTextNode(k[n])), h.appendChild(j), m[n] = j } else for (m = h.getElementsByTagName("tspan"), n = 0, o = m.length; o > n; n++)n ? q(m[n], { dy: i * x, x: g.x }) : q(m[0], { dy: 0 }); q(h, { x: g.x, y: g.y }), d._.dirty = 1; var p = d._getBBox(), r = g.y - (p.y + p.height / 2); r && c.is(r, "finite") && q(m[0], { dy: r }) } }, z = function (a) { return a.parentNode && "a" === a.parentNode.tagName.toLowerCase() ? a.parentNode : a }; __Element = function (a, b) { this[0] = this.node = a, a.raphael = !0, this.id = c._oid++, a.raphaelid = this.id, this.matrix = c.matrix(), this.realPath = null, this.paper = b, this.attrs = this.attrs || {}, this._ = { transform: [], sx: 1, sy: 1, deg: 0, dx: 0, dy: 0, dirty: 1 }, !b.bottom && (b.bottom = this), this.prev = b.top, b.top && (b.top.next = this), b.top = this, this.next = null }, $b = c.el, Element.prototype = $b, $b.constructor = Element, c._engine.path = function (a, b) { var c = q("path"); b.canvas && b.canvas.appendChild(c); var d = new __Element(c, b); return d.type = "path", w(d, { fill: "none", stroke: "#000", path: a }), d }, $b.rotate = function (a, c, e) { if (this.removed) return this; if (a = b(a).split(j), a.length - 1 && (c = d(a[1]), e = d(a[2])), a = d(a[0]), null == e && (c = e), null == c || null == e) { var f = this.getBBox(1); c = f.x + f.width / 2, e = f.y + f.height / 2 } return this.transform(this._.transform.concat([["r", a, c, e]])), this }, $b.scale = function (a, c, e, f) { if (this.removed) return this; if (a = b(a).split(j), a.length - 1 && (c = d(a[1]), e = d(a[2]), f = d(a[3])), a = d(a[0]), null == c && (c = a), null == f && (e = f), null == e || null == f) var g = this.getBBox(1); return e = null == e ? g.x + g.width / 2 : e, f = null == f ? g.y + g.height / 2 : f, this.transform(this._.transform.concat([["s", a, c, e, f]])), this }, $b.translate = function (a, c) { return this.removed ? this : (a = b(a).split(j), a.length - 1 && (c = d(a[1])), a = d(a[0]) || 0, c = +c || 0, this.transform(this._.transform.concat([["t", a, c]])), this) }, $b.transform = function (b) { var d = this._; if (null == b) return d.transform; if (c._extractTransform(this, b), this.clip && q(this.clip, { transform: this.matrix.invert() }), this.pattern && s(this), this.node && q(this.node, { transform: this.matrix }), 1 != d.sx || 1 != d.sy) { var e = this.attrs[a]("stroke-width") ? this.attrs["stroke-width"] : 1; this.attr({ "stroke-width": e }) } return this }, $b.hide = function () { return !this.removed && this.paper.safari(this.node.style.display = "none"), this }, $b.show = function () { return !this.removed && this.paper.safari(this.node.style.display = ""), this }, $b.remove = function () { var a = z(this.node); if (!this.removed && a.parentNode) { var b = this.paper; b.__set__ && b.__set__.exclude(this), k.unbind("raphael.*.*." + this.id), this.gradient && b.defs.removeChild(this.gradient), c._tear(this, b), a.parentNode.removeChild(a), this.removeData(); for (var d in this) this[d] = "function" == typeof this[d] ? c._removedFactory(d) : null; this.removed = !0 } }, $b._getBBox = function () { if ("none" == this.node.style.display) { this.show(); var a = !0 } var b, c = !1; this.paper.canvas.parentElement ? b = this.paper.canvas.parentElement.style : this.paper.canvas.parentNode && (b = this.paper.canvas.parentNode.style), b && "none" == b.display && (c = !0, b.display = ""); var d = {}; try { d = this.node.getBBox() } catch (e) { d = { x: this.node.clientLeft, y: this.node.clientTop, width: this.node.clientWidth, height: this.node.clientHeight } } finally { d = d || {}, c && (b.display = "none") } return a && this.hide(), d }, $b.attr = function (b, d) { if (this.removed) return this; if (null == b) { var e = {}; for (var f in this.attrs) this.attrs[a](f) && (e[f] = this.attrs[f]); return e.gradient && "none" == e.fill && (e.fill = e.gradient) && delete e.gradient, e.transform = this._.transform, e } if (null == d && c.is(b, "string")) { if ("fill" == b && "none" == this.attrs.fill && this.attrs.gradient) return this.attrs.gradient; if ("transform" == b) return this._.transform; for (var g = b.split(j), h = {}, i = 0, l = g.length; l > i; i++)b = g[i], h[b] = b in this.attrs ? this.attrs[b] : c.is(this.paper.customAttributes[b], "function") ? this.paper.customAttributes[b].def : c._availableAttrs[b]; return l - 1 ? h : h[g[0]] } if (null == d && c.is(b, "array")) { for (h = {}, i = 0, l = b.length; l > i; i++)h[b[i]] = this.attr(b[i]); return h } if (null != d) { var m = {}; m[b] = d } else null != b && c.is(b, "object") && (m = b); for (var n in m) k("raphael.attr." + n + "." + this.id, this, m[n]); for (n in this.paper.customAttributes) if (this.paper.customAttributes[a](n) && m[a](n) && c.is(this.paper.customAttributes[n], "function")) { var o = this.paper.customAttributes[n].apply(this, [].concat(m[n])); this.attrs[n] = m[n]; for (var p in o) o[a](p) && (m[p] = o[p]) } return w(this, m), this }, $b.toFront = function () { if (this.removed) return this; var a = z(this.node); a.parentNode.appendChild(a); var b = this.paper; return b.top != this && c._tofront(this, b), this }, $b.toBack = function () { if (this.removed) return this; var a = z(this.node), b = a.parentNode; b.insertBefore(a, b.firstChild), c._toback(this, this.paper); this.paper; return this }, $b.insertAfter = function (a) { if (this.removed || !a) return this; var b = z(this.node), d = z(a.node || a[a.length - 1].node); return d.nextSibling ? d.parentNode.insertBefore(b, d.nextSibling) : d.parentNode.appendChild(b), c._insertafter(this, a, this.paper), this }, $b.insertBefore = function (a) { if (this.removed || !a) return this; var b = z(this.node), d = z(a.node || a[0].node); return d.parentNode.insertBefore(b, d), c._insertbefore(this, a, this.paper), this }, $b.blur = function (a) { var b = this; if (0 !== +a) { var d = q("filter"), e = q("feGaussianBlur"); b.attrs.blur = a, d.id = c.createUUID(), q(e, { stdDeviation: +a || 1.5 }), d.appendChild(e), b.paper.defs.appendChild(d), b._blur = d, q(b.node, { filter: "url(#" + d.id + ")" }) } else b._blur && (b._blur.parentNode.removeChild(b._blur), delete b._blur, delete b.attrs.blur), b.node.removeAttribute("filter"); return b }, c._engine.circle = function (a, b, c, d) { var e = q("circle"); a.canvas && a.canvas.appendChild(e); var f = new __Element(e, a); return f.attrs = { cx: b, cy: c, r: d, fill: "none", stroke: "#000" }, f.type = "circle", q(e, f.attrs), f }, c._engine.rect = function (a, b, c, d, e, f) { var g = q("rect"); a.canvas && a.canvas.appendChild(g); var h = new __Element(g, a); return h.attrs = { x: b, y: c, width: d, height: e, rx: f || 0, ry: f || 0, fill: "none", stroke: "#000" }, h.type = "rect", q(g, h.attrs), h }, c._engine.ellipse = function (a, b, c, d, e) { var f = q("ellipse"); a.canvas && a.canvas.appendChild(f); var g = new __Element(f, a); return g.attrs = { cx: b, cy: c, rx: d, ry: e, fill: "none", stroke: "#000" }, g.type = "ellipse", q(f, g.attrs), g }, c._engine.image = function (a, b, c, d, e, f) { var g = q("image"); q(g, { x: c, y: d, width: e, height: f, preserveAspectRatio: "none" }), g.setAttributeNS(n, "href", b), a.canvas && a.canvas.appendChild(g); var h = new __Element(g, a); return h.attrs = { x: c, y: d, width: e, height: f, src: b }, h.type = "image", h }, c._engine.text = function (a, b, d, e) { var f = q("text"); a.canvas && a.canvas.appendChild(f); var g = new __Element(f, a); return g.attrs = { x: b, y: d, "text-anchor": "middle", text: e, "font-family": c._availableAttrs["font-family"], "font-size": c._availableAttrs["font-size"], stroke: "none", fill: "#000" }, g.type = "text", w(g, g.attrs), g }, c._engine.setSize = function (a, b) { return this.width = a || this.width, this.height = b || this.height, this.canvas.setAttribute("width", this.width), this.canvas.setAttribute("height", this.height), this._viewBox && this.setViewBox.apply(this, this._viewBox), this }, c._engine.create = function () { var a = c._getContainer.apply(0, arguments), b = a && a.container, d = a.x, e = a.y, f = a.width, g = a.height; if (!b) throw new Error("SVG container not found."); var h, i = q("svg"), j = "overflow:hidden;"; return d = d || 0, e = e || 0, f = f || 512, g = g || 342, q(i, { height: g, version: 1.1, width: f, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink" }), 1 == b ? (i.style.cssText = j + "position:absolute;left:" + d + "px;top:" + e + "px", c._g.doc.body.appendChild(i), h = 1) : (i.style.cssText = j + "position:relative", b.firstChild ? b.insertBefore(i, b.firstChild) : b.appendChild(i)), b = new c._Paper, b.width = f, b.height = g, b.canvas = i, b.clear(), b._left = b._top = 0, h && (b.renderfix = function () { }), b.renderfix(), b }, c._engine.setViewBox = function (a, b, c, d, e) { k("raphael.setViewBox", this, this._viewBox, [a, b, c, d, e]); var f, h, i = this.getSize(), j = g(c / i.width, d / i.height), l = this.top, n = e ? "xMidYMid meet" : "xMinYMin"; for (null == a ? (this._vbSize && (j = 1), delete this._vbSize, f = "0 0 " + this.width + m + this.height) : (this._vbSize = j, f = a + m + b + m + c + m + d), q(this.canvas, { viewBox: f, preserveAspectRatio: n }); j && l;)h = "stroke-width" in l.attrs ? l.attrs["stroke-width"] : 1, l.attr({ "stroke-width": h }), l._.dirty = 1, l._.dirtyT = 1, l = l.prev; return this._viewBox = [a, b, c, d, !!e], this }, c.prototype.renderfix = function () { var a, b = this.canvas, c = b.style; try { a = b.getScreenCTM() || b.createSVGMatrix() } catch (d) { a = b.createSVGMatrix() } var e = -a.e % 1, f = -a.f % 1; (e || f) && (e && (this._left = (this._left + e) % 1, c.left = this._left + "px"), f && (this._top = (this._top + f) % 1, c.top = this._top + "px")) }, c.prototype.clear = function () { c.eve("raphael.clear", this); for (var a = this.canvas; a.firstChild;)a.removeChild(a.firstChild); this.bottom = this.top = null, (this.desc = q("desc")).appendChild(c._g.doc.createTextNode("Created with Raphaël " + c.version)), a.appendChild(this.desc), a.appendChild(this.defs = q("defs")) }, c.prototype.remove = function () { k("raphael.remove", this), this.canvas.parentNode && this.canvas.parentNode.removeChild(this.canvas); for (var a in this) this[a] = "function" == typeof this[a] ? c._removedFactory(a) : null }; var A = c.st; for (var B in $b) $b[a](B) && !A[a](B) && (A[B] = function (a) { return function () { var b = arguments; return this.forEach(function (c) { c[a].apply(c, b) }) } }(B)) + } + }(), function () { if (c.vml) { var a = "hasOwnProperty", b = String, d = parseFloat, e = Math, f = e.round, g = e.max, h = e.min, i = e.abs, j = "fill", k = /[, ]+/, l = c.eve, m = " progid:DXImageTransform.Microsoft", n = " ", o = "", p = { M: "m", L: "l", C: "c", Z: "x", m: "t", l: "r", c: "v", z: "x" }, q = /([clmz]),?([^clmz]*)/gi, r = / progid:\S+Blur\([^\)]+\)/g, s = /-?[^,\s-]+/g, t = "position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)", u = 21600, v = { path: 1, rect: 1, image: 1 }, w = { circle: 1, ellipse: 1 }, x = function (a) { var d = /[ahqstv]/gi, e = c._pathToAbsolute; if (b(a).match(d) && (e = c._path2curve), d = /[clmz]/g, e == c._pathToAbsolute && !b(a).match(d)) { var g = b(a).replace(q, function (a, b, c) { var d = [], e = "m" == b.toLowerCase(), g = p[b]; return c.replace(s, function (a) { e && 2 == d.length && (g += d + p["m" == b ? "l" : "L"], d = []), d.push(f(a * u)) }), g + d }); return g } var h, i, j = e(a); g = []; for (var k = 0, l = j.length; l > k; k++) { h = j[k], i = j[k][0].toLowerCase(), "z" == i && (i = "x"); for (var m = 1, r = h.length; r > m; m++)i += f(h[m] * u) + (m != r - 1 ? "," : o); g.push(i) } return g.join(n) }, y = function (a, b, d) { var e = c.matrix(); return e.rotate(-a, .5, .5), { dx: e.x(b, d), dy: e.y(b, d) } }, z = function (a, b, c, d, e, f) { var g = a._, h = a.matrix, k = g.fillpos, l = a.node, m = l.style, o = 1, p = "", q = u / b, r = u / c; if (m.visibility = "hidden", b && c) { if (l.coordsize = i(q) + n + i(r), m.rotation = f * (0 > b * c ? -1 : 1), f) { var s = y(f, d, e); d = s.dx, e = s.dy } if (0 > b && (p += "x"), 0 > c && (p += " y") && (o = -1), m.flip = p, l.coordorigin = d * -q + n + e * -r, k || g.fillsize) { var t = l.getElementsByTagName(j); t = t && t[0], l.removeChild(t), k && (s = y(f, h.x(k[0], k[1]), h.y(k[0], k[1])), t.position = s.dx * o + n + s.dy * o), g.fillsize && (t.size = g.fillsize[0] * i(b) + n + g.fillsize[1] * i(c)), l.appendChild(t) } m.visibility = "visible" } }; c.toString = function () { return "Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël " + this.version }; var A = function (a, c, d) { for (var e = b(c).toLowerCase().split("-"), f = d ? "end" : "start", g = e.length, h = "classic", i = "medium", j = "medium"; g--;)switch (e[g]) { case "block": case "classic": case "oval": case "diamond": case "open": case "none": h = e[g]; break; case "wide": case "narrow": j = e[g]; break; case "long": case "short": i = e[g] }var k = a.node.getElementsByTagName("stroke")[0]; k[f + "arrow"] = h, k[f + "arrowlength"] = i, k[f + "arrowwidth"] = j }, B = function (e, i) { e.attrs = e.attrs || {}; var l = e.node, m = e.attrs, p = l.style, q = v[e.type] && (i.x != m.x || i.y != m.y || i.width != m.width || i.height != m.height || i.cx != m.cx || i.cy != m.cy || i.rx != m.rx || i.ry != m.ry || i.r != m.r), r = w[e.type] && (m.cx != i.cx || m.cy != i.cy || m.r != i.r || m.rx != i.rx || m.ry != i.ry), s = e; for (var t in i) i[a](t) && (m[t] = i[t]); if (q && (m.path = c._getPath[e.type](e), e._.dirty = 1), i.href && (l.href = i.href), i.title && (l.title = i.title), i.target && (l.target = i.target), i.cursor && (p.cursor = i.cursor), "blur" in i && e.blur(i.blur), (i.path && "path" == e.type || q) && (l.path = x(~b(m.path).toLowerCase().indexOf("r") ? c._pathToAbsolute(m.path) : m.path), e._.dirty = 1, "image" == e.type && (e._.fillpos = [m.x, m.y], e._.fillsize = [m.width, m.height], z(e, 1, 1, 0, 0, 0))), "transform" in i && e.transform(i.transform), r) { var y = +m.cx, B = +m.cy, D = +m.rx || +m.r || 0, E = +m.ry || +m.r || 0; l.path = c.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x", f((y - D) * u), f((B - E) * u), f((y + D) * u), f((B + E) * u), f(y * u)), e._.dirty = 1 } if ("clip-rect" in i) { var G = b(i["clip-rect"]).split(k); if (4 == G.length) { G[2] = +G[2] + +G[0], G[3] = +G[3] + +G[1]; var H = l.clipRect || c._g.doc.createElement("div"), I = H.style; I.clip = c.format("rect({1}px {2}px {3}px {0}px)", G), l.clipRect || (I.position = "absolute", I.top = 0, I.left = 0, I.width = e.paper.width + "px", I.height = e.paper.height + "px", l.parentNode.insertBefore(H, l), H.appendChild(l), l.clipRect = H) } i["clip-rect"] || l.clipRect && (l.clipRect.style.clip = "auto") } if (e.textpath) { var J = e.textpath.style; i.font && (J.font = i.font), i["font-family"] && (J.fontFamily = '"' + i["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g, o) + '"'), i["font-size"] && (J.fontSize = i["font-size"]), i["font-weight"] && (J.fontWeight = i["font-weight"]), i["font-style"] && (J.fontStyle = i["font-style"]) } if ("arrow-start" in i && A(s, i["arrow-start"]), "arrow-end" in i && A(s, i["arrow-end"], 1), null != i.opacity || null != i["stroke-width"] || null != i.fill || null != i.src || null != i.stroke || null != i["stroke-width"] || null != i["stroke-opacity"] || null != i["fill-opacity"] || null != i["stroke-dasharray"] || null != i["stroke-miterlimit"] || null != i["stroke-linejoin"] || null != i["stroke-linecap"]) { var K = l.getElementsByTagName(j), L = !1; if (K = K && K[0], !K && (L = K = F(j)), "image" == e.type && i.src && (K.src = i.src), i.fill && (K.on = !0), (null == K.on || "none" == i.fill || null === i.fill) && (K.on = !1), K.on && i.fill) { var M = b(i.fill).match(c._ISURL); if (M) { K.parentNode == l && l.removeChild(K), K.rotate = !0, K.src = M[1], K.type = "tile"; var N = e.getBBox(1); K.position = N.x + n + N.y, e._.fillpos = [N.x, N.y], c._preload(M[1], function () { e._.fillsize = [this.offsetWidth, this.offsetHeight] }) } else K.color = c.getRGB(i.fill).hex, K.src = o, K.type = "solid", c.getRGB(i.fill).error && (s.type in { circle: 1, ellipse: 1 } || "r" != b(i.fill).charAt()) && C(s, i.fill, K) && (m.fill = "none", m.gradient = i.fill, K.rotate = !1) } if ("fill-opacity" in i || "opacity" in i) { var O = ((+m["fill-opacity"] + 1 || 2) - 1) * ((+m.opacity + 1 || 2) - 1) * ((+c.getRGB(i.fill).o + 1 || 2) - 1); O = h(g(O, 0), 1), K.opacity = O, K.src && (K.color = "none") } l.appendChild(K); var P = l.getElementsByTagName("stroke") && l.getElementsByTagName("stroke")[0], Q = !1; !P && (Q = P = F("stroke")), (i.stroke && "none" != i.stroke || i["stroke-width"] || null != i["stroke-opacity"] || i["stroke-dasharray"] || i["stroke-miterlimit"] || i["stroke-linejoin"] || i["stroke-linecap"]) && (P.on = !0), ("none" == i.stroke || null === i.stroke || null == P.on || 0 == i.stroke || 0 == i["stroke-width"]) && (P.on = !1); var R = c.getRGB(i.stroke); P.on && i.stroke && (P.color = R.hex), O = ((+m["stroke-opacity"] + 1 || 2) - 1) * ((+m.opacity + 1 || 2) - 1) * ((+R.o + 1 || 2) - 1); var S = .75 * (d(i["stroke-width"]) || 1); if (O = h(g(O, 0), 1), null == i["stroke-width"] && (S = m["stroke-width"]), i["stroke-width"] && (P.weight = S), S && 1 > S && (O *= S) && (P.weight = 1), P.opacity = O, i["stroke-linejoin"] && (P.joinstyle = i["stroke-linejoin"] || "miter"), P.miterlimit = i["stroke-miterlimit"] || 8, i["stroke-linecap"] && (P.endcap = "butt" == i["stroke-linecap"] ? "flat" : "square" == i["stroke-linecap"] ? "square" : "round"), "stroke-dasharray" in i) { var T = { "-": "shortdash", ".": "shortdot", "-.": "shortdashdot", "-..": "shortdashdotdot", ". ": "dot", "- ": "dash", "--": "longdash", "- .": "dashdot", "--.": "longdashdot", "--..": "longdashdotdot" }; P.dashstyle = T[a](i["stroke-dasharray"]) ? T[i["stroke-dasharray"]] : o } Q && l.appendChild(P) } if ("text" == s.type) { s.paper.canvas.style.display = o; var U = s.paper.span, V = 100, W = m.font && m.font.match(/\d+(?:\.\d*)?(?=px)/); p = U.style, m.font && (p.font = m.font), m["font-family"] && (p.fontFamily = m["font-family"]), m["font-weight"] && (p.fontWeight = m["font-weight"]), m["font-style"] && (p.fontStyle = m["font-style"]), W = d(m["font-size"] || W && W[0]) || 10, p.fontSize = W * V + "px", s.textpath.string && (U.innerHTML = b(s.textpath.string).replace(/")); var X = U.getBoundingClientRect(); s.W = m.w = (X.right - X.left) / V, s.H = m.h = (X.bottom - X.top) / V, s.X = m.x, s.Y = m.y + s.H / 2, ("x" in i || "y" in i) && (s.path.v = c.format("m{0},{1}l{2},{1}", f(m.x * u), f(m.y * u), f(m.x * u) + 1)); for (var Y = ["x", "y", "text", "font", "font-family", "font-weight", "font-style", "font-size"], Z = 0, $ = Y.length; $ > Z; Z++)if (Y[Z] in i) { s._.dirty = 1; break } switch (m["text-anchor"]) { case "start": s.textpath.style["v-text-align"] = "left", s.bbx = s.W / 2; break; case "end": s.textpath.style["v-text-align"] = "right", s.bbx = -s.W / 2; break; default: s.textpath.style["v-text-align"] = "center", s.bbx = 0 }s.textpath.style["v-text-kern"] = !0 } }, C = function (a, f, g) { a.attrs = a.attrs || {}; var h = (a.attrs, Math.pow), i = "linear", j = ".5 .5"; if (a.attrs.gradient = f, f = b(f).replace(c._radial_gradient, function (a, b, c) { return i = "radial", b && c && (b = d(b), c = d(c), h(b - .5, 2) + h(c - .5, 2) > .25 && (c = e.sqrt(.25 - h(b - .5, 2)) * (2 * (c > .5) - 1) + .5), j = b + n + c), o }), f = f.split(/\s*\-\s*/), "linear" == i) { var k = f.shift(); if (k = -d(k), isNaN(k)) return null } var l = c._parseDots(f); if (!l) return null; if (a = a.shape || a.node, l.length) { a.removeChild(g), g.on = !0, g.method = "none", g.color = l[0].color, g.color2 = l[l.length - 1].color; for (var m = [], p = 0, q = l.length; q > p; p++)l[p].offset && m.push(l[p].offset + n + l[p].color); g.colors = m.length ? m.join() : "0% " + g.color, "radial" == i ? (g.type = "gradientTitle", g.focus = "100%", g.focussize = "0 0", g.focusposition = j, g.angle = 0) : (g.type = "gradient", g.angle = (270 - k) % 360), a.appendChild(g) } return 1 }, D = function (a, b) { this[0] = this.node = a, a.raphael = !0, this.id = c._oid++, a.raphaelid = this.id, this.X = 0, this.Y = 0, this.attrs = {}, this.paper = b, this.matrix = c.matrix(), this._ = { transform: [], sx: 1, sy: 1, dx: 0, dy: 0, deg: 0, dirty: 1, dirtyT: 1 }, !b.bottom && (b.bottom = this), this.prev = b.top, b.top && (b.top.next = this), b.top = this, this.next = null }, E = c.el; D.prototype = E, E.constructor = D, E.transform = function (a) { if (null == a) return this._.transform; var d, e = this.paper._viewBoxShift, f = e ? "s" + [e.scale, e.scale] + "-1-1t" + [e.dx, e.dy] : o; e && (d = a = b(a).replace(/\.{3}|\u2026/g, this._.transform || o)), c._extractTransform(this, f + a); var g, h = this.matrix.clone(), i = this.skew, j = this.node, k = ~b(this.attrs.fill).indexOf("-"), l = !b(this.attrs.fill).indexOf("url("); if (h.translate(1, 1), l || k || "image" == this.type) if (i.matrix = "1 0 0 1", i.offset = "0 0", g = h.split(), k && g.noRotation || !g.isSimple) { j.style.filter = h.toFilter(); var m = this.getBBox(), p = this.getBBox(1), q = m.x - p.x, r = m.y - p.y; j.coordorigin = q * -u + n + r * -u, z(this, 1, 1, q, r, 0) } else j.style.filter = o, z(this, g.scalex, g.scaley, g.dx, g.dy, g.rotate); else j.style.filter = o, i.matrix = b(h), i.offset = h.offset(); return null !== d && (this._.transform = d, c._extractTransform(this, d)), this }, E.rotate = function (a, c, e) { if (this.removed) return this; if (null != a) { if (a = b(a).split(k), a.length - 1 && (c = d(a[1]), e = d(a[2])), a = d(a[0]), null == e && (c = e), null == c || null == e) { var f = this.getBBox(1); c = f.x + f.width / 2, e = f.y + f.height / 2 } return this._.dirtyT = 1, this.transform(this._.transform.concat([["r", a, c, e]])), this } }, E.translate = function (a, c) { return this.removed ? this : (a = b(a).split(k), a.length - 1 && (c = d(a[1])), a = d(a[0]) || 0, c = +c || 0, this._.bbox && (this._.bbox.x += a, this._.bbox.y += c), this.transform(this._.transform.concat([["t", a, c]])), this) }, E.scale = function (a, c, e, f) { if (this.removed) return this; if (a = b(a).split(k), a.length - 1 && (c = d(a[1]), e = d(a[2]), f = d(a[3]), isNaN(e) && (e = null), isNaN(f) && (f = null)), a = d(a[0]), null == c && (c = a), null == f && (e = f), null == e || null == f) var g = this.getBBox(1); return e = null == e ? g.x + g.width / 2 : e, f = null == f ? g.y + g.height / 2 : f, this.transform(this._.transform.concat([["s", a, c, e, f]])), this._.dirtyT = 1, this }, E.hide = function () { return !this.removed && (this.node.style.display = "none"), this }, E.show = function () { return !this.removed && (this.node.style.display = o), this }, E.auxGetBBox = c.el.getBBox, E.getBBox = function () { var a = this.auxGetBBox(); if (this.paper && this.paper._viewBoxShift) { var b = {}, c = 1 / this.paper._viewBoxShift.scale; return b.x = a.x - this.paper._viewBoxShift.dx, b.x *= c, b.y = a.y - this.paper._viewBoxShift.dy, b.y *= c, b.width = a.width * c, b.height = a.height * c, b.x2 = b.x + b.width, b.y2 = b.y + b.height, b } return a }, E._getBBox = function () { return this.removed ? {} : { x: this.X + (this.bbx || 0) - this.W / 2, y: this.Y - this.H, width: this.W, height: this.H } }, E.remove = function () { if (!this.removed && this.node.parentNode) { this.paper.__set__ && this.paper.__set__.exclude(this), c.eve.unbind("raphael.*.*." + this.id), c._tear(this, this.paper), this.node.parentNode.removeChild(this.node), this.shape && this.shape.parentNode.removeChild(this.shape); for (var a in this) this[a] = "function" == typeof this[a] ? c._removedFactory(a) : null; this.removed = !0 } }, E.attr = function (b, d) { if (this.removed) return this; if (null == b) { var e = {}; for (var f in this.attrs) this.attrs[a](f) && (e[f] = this.attrs[f]); return e.gradient && "none" == e.fill && (e.fill = e.gradient) && delete e.gradient, e.transform = this._.transform, e } if (null == d && c.is(b, "string")) { if (b == j && "none" == this.attrs.fill && this.attrs.gradient) return this.attrs.gradient; for (var g = b.split(k), h = {}, i = 0, m = g.length; m > i; i++)b = g[i], h[b] = b in this.attrs ? this.attrs[b] : c.is(this.paper.customAttributes[b], "function") ? this.paper.customAttributes[b].def : c._availableAttrs[b]; return m - 1 ? h : h[g[0]] } if (this.attrs && null == d && c.is(b, "array")) { for (h = {}, i = 0, m = b.length; m > i; i++)h[b[i]] = this.attr(b[i]); return h } var n; null != d && (n = {}, n[b] = d), null == d && c.is(b, "object") && (n = b); for (var o in n) l("raphael.attr." + o + "." + this.id, this, n[o]); if (n) { for (o in this.paper.customAttributes) if (this.paper.customAttributes[a](o) && n[a](o) && c.is(this.paper.customAttributes[o], "function")) { var p = this.paper.customAttributes[o].apply(this, [].concat(n[o])); this.attrs[o] = n[o]; for (var q in p) p[a](q) && (n[q] = p[q]) } n.text && "text" == this.type && (this.textpath.string = n.text), B(this, n) } return this }, E.toFront = function () { return !this.removed && this.node.parentNode.appendChild(this.node), this.paper && this.paper.top != this && c._tofront(this, this.paper), this }, E.toBack = function () { return this.removed ? this : (this.node.parentNode.firstChild != this.node && (this.node.parentNode.insertBefore(this.node, this.node.parentNode.firstChild), c._toback(this, this.paper)), this) }, E.insertAfter = function (a) { return this.removed ? this : (a.constructor == c.st.constructor && (a = a[a.length - 1]), a.node.nextSibling ? a.node.parentNode.insertBefore(this.node, a.node.nextSibling) : a.node.parentNode.appendChild(this.node), c._insertafter(this, a, this.paper), this) }, E.insertBefore = function (a) { return this.removed ? this : (a.constructor == c.st.constructor && (a = a[0]), a.node.parentNode.insertBefore(this.node, a.node), c._insertbefore(this, a, this.paper), this) }, E.blur = function (a) { var b = this.node.runtimeStyle, d = b.filter; return d = d.replace(r, o), 0 !== +a ? (this.attrs.blur = a, b.filter = d + n + m + ".Blur(pixelradius=" + (+a || 1.5) + ")", b.margin = c.format("-{0}px 0 0 -{0}px", f(+a || 1.5))) : (b.filter = d, b.margin = 0, delete this.attrs.blur), this }, c._engine.path = function (a, b) { var c = F("shape"); c.style.cssText = t, c.coordsize = u + n + u, c.coordorigin = b.coordorigin; var d = new D(c, b), e = { fill: "none", stroke: "#000" }; a && (e.path = a), d.type = "path", d.path = [], d.Path = o, B(d, e), b.canvas.appendChild(c); var f = F("skew"); return f.on = !0, c.appendChild(f), d.skew = f, d.transform(o), d }, c._engine.rect = function (a, b, d, e, f, g) { var h = c._rectPath(b, d, e, f, g), i = a.path(h), j = i.attrs; return i.X = j.x = b, i.Y = j.y = d, i.W = j.width = e, i.H = j.height = f, j.r = g, j.path = h, i.type = "rect", i }, c._engine.ellipse = function (a, b, c, d, e) { { var f = a.path(); f.attrs } return f.X = b - d, f.Y = c - e, f.W = 2 * d, f.H = 2 * e, f.type = "ellipse", B(f, { cx: b, cy: c, rx: d, ry: e }), f }, c._engine.circle = function (a, b, c, d) { { var e = a.path(); e.attrs } return e.X = b - d, e.Y = c - d, e.W = e.H = 2 * d, e.type = "circle", B(e, { cx: b, cy: c, r: d }), e }, c._engine.image = function (a, b, d, e, f, g) { var h = c._rectPath(d, e, f, g), i = a.path(h).attr({ stroke: "none" }), k = i.attrs, l = i.node, m = l.getElementsByTagName(j)[0]; return k.src = b, i.X = k.x = d, i.Y = k.y = e, i.W = k.width = f, i.H = k.height = g, k.path = h, i.type = "image", m.parentNode == l && l.removeChild(m), m.rotate = !0, m.src = b, m.type = "tile", i._.fillpos = [d, e], i._.fillsize = [f, g], l.appendChild(m), z(i, 1, 1, 0, 0, 0), i }, c._engine.text = function (a, d, e, g) { var h = F("shape"), i = F("path"), j = F("textpath"); d = d || 0, e = e || 0, g = g || "", i.v = c.format("m{0},{1}l{2},{1}", f(d * u), f(e * u), f(d * u) + 1), i.textpathok = !0, j.string = b(g), j.on = !0, h.style.cssText = t, h.coordsize = u + n + u, h.coordorigin = "0 0"; var k = new D(h, a), l = { fill: "#000", stroke: "none", font: c._availableAttrs.font, text: g }; k.shape = h, k.path = i, k.textpath = j, k.type = "text", k.attrs.text = b(g), k.attrs.x = d, k.attrs.y = e, k.attrs.w = 1, k.attrs.h = 1, B(k, l), h.appendChild(j), h.appendChild(i), a.canvas.appendChild(h); var m = F("skew"); return m.on = !0, h.appendChild(m), k.skew = m, k.transform(o), k }, c._engine.setSize = function (a, b) { var d = this.canvas.style; return this.width = a, this.height = b, a == +a && (a += "px"), b == +b && (b += "px"), d.width = a, d.height = b, d.clip = "rect(0 " + a + " " + b + " 0)", this._viewBox && c._engine.setViewBox.apply(this, this._viewBox), this }, c._engine.setViewBox = function (a, b, d, e, f) { c.eve("raphael.setViewBox", this, this._viewBox, [a, b, d, e, f]); var g, h, i = this.getSize(), j = i.width, k = i.height; return f && (g = k / e, h = j / d, j > d * g && (a -= (j - d * g) / 2 / g), k > e * h && (b -= (k - e * h) / 2 / h)), this._viewBox = [a, b, d, e, !!f], this._viewBoxShift = { dx: -a, dy: -b, scale: size }, this.forEach(function (a) { a.transform("...") }), this }; var F; c._engine.initWin = function (a) { var b = a.document; b.styleSheets.length < 31 ? b.createStyleSheet().addRule(".rvml", "behavior:url(#default#VML)") : b.styleSheets[0].addRule(".rvml", "behavior:url(#default#VML)"); try { !b.namespaces.rvml && b.namespaces.add("rvml", "urn:schemas-microsoft-com:vml"), F = function (a) { return b.createElement("') } } catch (c) { F = function (a) { return b.createElement("<" + a + ' xmlns="urn:schemas-microsoft.com:vml" class="rvml">') } } }, c._engine.initWin(c._g.win), c._engine.create = function () { var a = c._getContainer.apply(0, arguments), b = a.container, d = a.height, e = a.width, f = a.x, g = a.y; if (!b) throw new Error("VML container not found."); var h = new c._Paper, i = h.canvas = c._g.doc.createElement("div"), j = i.style; return f = f || 0, g = g || 0, e = e || 512, d = d || 342, h.width = e, h.height = d, e == +e && (e += "px"), d == +d && (d += "px"), h.coordsize = 1e3 * u + n + 1e3 * u, h.coordorigin = "0 0", h.span = c._g.doc.createElement("span"), h.span.style.cssText = "position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;", i.appendChild(h.span), j.cssText = c.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden", e, d), 1 == b ? (c._g.doc.body.appendChild(i), j.left = f + "px", j.top = g + "px", j.position = "absolute") : b.firstChild ? b.insertBefore(i, b.firstChild) : b.appendChild(i), h.renderfix = function () { }, h }, c.prototype.clear = function () { c.eve("raphael.clear", this), this.canvas.innerHTML = o, this.span = c._g.doc.createElement("span"), this.span.style.cssText = "position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;", this.canvas.appendChild(this.span), this.bottom = this.top = null }, c.prototype.remove = function () { c.eve("raphael.remove", this), this.canvas.parentNode.removeChild(this.canvas); for (var a in this) this[a] = "function" == typeof this[a] ? c._removedFactory(a) : null; return !0 }; var G = c.st; for (var H in E) E[a](H) && !G[a](H) && (G[H] = function (a) { return function () { var b = arguments; return this.forEach(function (c) { c[a].apply(c, b) }) } }(H)) } }(), B.was ? A.win.Raphael = c : Raphael = c, "object" == typeof exports && (module.exports = c), c +}); + +/** js sequence diagrams 1.0.4 + * http://bramp.github.io/js-sequence-diagrams/ + * (c) 2012-2013 Andrew Brampton (bramp.net) + * @license Simplified BSD license. + */ +!function () { "use strict"; function Diagram() { this.title = void 0, this.actors = [], this.signals = [] } function ParseError(message, hash) { _.extend(this, hash), this.name = "ParseError", this.message = message || "" } Diagram.prototype.getActor = function (alias) { var s = /^(.+) as (\S+)$/i.exec(alias.trim()); s ? (name = s[1].trim(), alias = s[2].trim()) : name = alias.trim(), name = name.replace(/\\n/gm, "\n"); var i, actors = this.actors; for (i in actors) if (actors[i].alias == alias) return actors[i]; return i = actors.push(new Diagram.Actor(alias, name, actors.length)), actors[i - 1] }, Diagram.prototype.setTitle = function (title) { this.title = title }, Diagram.prototype.addSignal = function (signal) { this.signals.push(signal) }, Diagram.Actor = function (alias, name, index) { this.alias = alias, this.name = name, this.index = index }, Diagram.Signal = function (actorA, signaltype, actorB, message) { this.type = "Signal", this.actorA = actorA, this.actorB = actorB, this.linetype = 3 & signaltype, this.arrowtype = 3 & signaltype >> 2, this.message = message }, Diagram.Signal.prototype.isSelf = function () { return this.actorA.index == this.actorB.index }, Diagram.Note = function (actor, placement, message) { if (this.type = "Note", this.actor = actor, this.placement = placement, this.message = message, this.hasManyActors() && actor[0] == actor[1]) throw new Error("Note should be over two different actors") }, Diagram.Note.prototype.hasManyActors = function () { return _.isArray(this.actor) }, Diagram.LINETYPE = { SOLID: 0, DOTTED: 1 }, Diagram.ARROWTYPE = { FILLED: 0, OPEN: 1 }, Diagram.PLACEMENT = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 }; var grammar = function () { function Parser() { this.yy = {} } var parser = { trace: function () { }, yy: {}, symbols_: { error: 2, start: 3, document: 4, EOF: 5, line: 6, statement: 7, NL: 8, participant: 9, actor: 10, signal: 11, note_statement: 12, title: 13, message: 14, note: 15, placement: 16, over: 17, actor_pair: 18, ",": 19, left_of: 20, right_of: 21, signaltype: 22, ACTOR: 23, linetype: 24, arrowtype: 25, LINE: 26, DOTLINE: 27, ARROW: 28, OPENARROW: 29, MESSAGE: 30, $accept: 0, $end: 1 }, terminals_: { 2: "error", 5: "EOF", 8: "NL", 9: "participant", 13: "title", 15: "note", 17: "over", 19: ",", 20: "left_of", 21: "right_of", 23: "ACTOR", 26: "LINE", 27: "DOTLINE", 28: "ARROW", 29: "OPENARROW", 30: "MESSAGE" }, productions_: [0, [3, 2], [4, 0], [4, 2], [6, 1], [6, 1], [7, 2], [7, 1], [7, 1], [7, 2], [12, 4], [12, 4], [18, 1], [18, 3], [16, 1], [16, 1], [11, 4], [10, 1], [22, 2], [22, 1], [24, 1], [24, 1], [25, 1], [25, 1], [14, 1]], performAction: function (yytext, yyleng, yylineno, yy, yystate, $$) { var $0 = $$.length - 1; switch (yystate) { case 1: return yy; case 4: break; case 6: $$[$0]; break; case 7: yy.addSignal($$[$0]); break; case 8: yy.addSignal($$[$0]); break; case 9: yy.setTitle($$[$0]); break; case 10: this.$ = new Diagram.Note($$[$0 - 1], $$[$0 - 2], $$[$0]); break; case 11: this.$ = new Diagram.Note($$[$0 - 1], Diagram.PLACEMENT.OVER, $$[$0]); break; case 12: this.$ = $$[$0]; break; case 13: this.$ = [$$[$0 - 2], $$[$0]]; break; case 14: this.$ = Diagram.PLACEMENT.LEFTOF; break; case 15: this.$ = Diagram.PLACEMENT.RIGHTOF; break; case 16: this.$ = new Diagram.Signal($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0]); break; case 17: this.$ = yy.getActor($$[$0]); break; case 18: this.$ = $$[$0 - 1] | $$[$0] << 2; break; case 19: this.$ = $$[$0]; break; case 20: this.$ = Diagram.LINETYPE.SOLID; break; case 21: this.$ = Diagram.LINETYPE.DOTTED; break; case 22: this.$ = Diagram.ARROWTYPE.FILLED; break; case 23: this.$ = Diagram.ARROWTYPE.OPEN; break; case 24: this.$ = $$[$0].substring(1).trim().replace(/\\n/gm, "\n") } }, table: [{ 3: 1, 4: 2, 5: [2, 2], 8: [2, 2], 9: [2, 2], 13: [2, 2], 15: [2, 2], 23: [2, 2] }, { 1: [3] }, { 5: [1, 3], 6: 4, 7: 5, 8: [1, 6], 9: [1, 7], 10: 11, 11: 8, 12: 9, 13: [1, 10], 15: [1, 12], 23: [1, 13] }, { 1: [2, 1] }, { 5: [2, 3], 8: [2, 3], 9: [2, 3], 13: [2, 3], 15: [2, 3], 23: [2, 3] }, { 5: [2, 4], 8: [2, 4], 9: [2, 4], 13: [2, 4], 15: [2, 4], 23: [2, 4] }, { 5: [2, 5], 8: [2, 5], 9: [2, 5], 13: [2, 5], 15: [2, 5], 23: [2, 5] }, { 10: 14, 23: [1, 13] }, { 5: [2, 7], 8: [2, 7], 9: [2, 7], 13: [2, 7], 15: [2, 7], 23: [2, 7] }, { 5: [2, 8], 8: [2, 8], 9: [2, 8], 13: [2, 8], 15: [2, 8], 23: [2, 8] }, { 14: 15, 30: [1, 16] }, { 22: 17, 24: 18, 26: [1, 19], 27: [1, 20] }, { 16: 21, 17: [1, 22], 20: [1, 23], 21: [1, 24] }, { 5: [2, 17], 8: [2, 17], 9: [2, 17], 13: [2, 17], 15: [2, 17], 19: [2, 17], 23: [2, 17], 26: [2, 17], 27: [2, 17], 30: [2, 17] }, { 5: [2, 6], 8: [2, 6], 9: [2, 6], 13: [2, 6], 15: [2, 6], 23: [2, 6] }, { 5: [2, 9], 8: [2, 9], 9: [2, 9], 13: [2, 9], 15: [2, 9], 23: [2, 9] }, { 5: [2, 24], 8: [2, 24], 9: [2, 24], 13: [2, 24], 15: [2, 24], 23: [2, 24] }, { 10: 25, 23: [1, 13] }, { 23: [2, 19], 25: 26, 28: [1, 27], 29: [1, 28] }, { 23: [2, 20], 28: [2, 20], 29: [2, 20] }, { 23: [2, 21], 28: [2, 21], 29: [2, 21] }, { 10: 29, 23: [1, 13] }, { 10: 31, 18: 30, 23: [1, 13] }, { 23: [2, 14] }, { 23: [2, 15] }, { 14: 32, 30: [1, 16] }, { 23: [2, 18] }, { 23: [2, 22] }, { 23: [2, 23] }, { 14: 33, 30: [1, 16] }, { 14: 34, 30: [1, 16] }, { 19: [1, 35], 30: [2, 12] }, { 5: [2, 16], 8: [2, 16], 9: [2, 16], 13: [2, 16], 15: [2, 16], 23: [2, 16] }, { 5: [2, 10], 8: [2, 10], 9: [2, 10], 13: [2, 10], 15: [2, 10], 23: [2, 10] }, { 5: [2, 11], 8: [2, 11], 9: [2, 11], 13: [2, 11], 15: [2, 11], 23: [2, 11] }, { 10: 36, 23: [1, 13] }, { 30: [2, 13] }], defaultActions: { 3: [2, 1], 23: [2, 14], 24: [2, 15], 26: [2, 18], 27: [2, 22], 28: [2, 23], 36: [2, 13] }, parseError: function (str, hash) { if (!hash.recoverable) throw new Error(str); this.trace(str) }, parse: function (input) { function lex() { var token; return token = self.lexer.lex() || EOF, "number" != typeof token && (token = self.symbols_[token] || token), token } var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1; this.lexer.setInput(input), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, this.yy.parser = this, "undefined" == typeof this.lexer.yylloc && (this.lexer.yylloc = {}); var yyloc = this.lexer.yylloc; lstack.push(yyloc); var ranges = this.lexer.options && this.lexer.options.ranges; this.parseError = "function" == typeof this.yy.parseError ? this.yy.parseError : Object.getPrototypeOf(this).parseError; for (var symbol, preErrorSymbol, state, action, r, p, len, newState, expected, yyval = {}; ;) { if (state = stack[stack.length - 1], this.defaultActions[state] ? action = this.defaultActions[state] : ((null === symbol || "undefined" == typeof symbol) && (symbol = lex()), action = table[state] && table[state][symbol]), "undefined" == typeof action || !action.length || !action[0]) { var errStr = ""; expected = []; for (p in table[state]) this.terminals_[p] && p > TERROR && expected.push("'" + this.terminals_[p] + "'"); errStr = this.lexer.showPosition ? "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'" : "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'"), this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected }) } if (action[0] instanceof Array && action.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol); switch (action[0]) { case 1: stack.push(symbol), vstack.push(this.lexer.yytext), lstack.push(this.lexer.yylloc), stack.push(action[1]), symbol = null, preErrorSymbol ? (symbol = preErrorSymbol, preErrorSymbol = null) : (yyleng = this.lexer.yyleng, yytext = this.lexer.yytext, yylineno = this.lexer.yylineno, yyloc = this.lexer.yylloc, recovering > 0 && recovering--); break; case 2: if (len = this.productions_[action[1]][1], yyval.$ = vstack[vstack.length - len], yyval._$ = { first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column }, ranges && (yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]]), r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack), "undefined" != typeof r) return r; len && (stack = stack.slice(0, 2 * -1 * len), vstack = vstack.slice(0, -1 * len), lstack = lstack.slice(0, -1 * len)), stack.push(this.productions_[action[1]][0]), vstack.push(yyval.$), lstack.push(yyval._$), newState = table[stack[stack.length - 2]][stack[stack.length - 1]], stack.push(newState); break; case 3: return !0 } } return !0 } }, lexer = function () { var lexer = { EOF: 1, parseError: function (str, hash) { if (!this.yy.parser) throw new Error(str); this.yy.parser.parseError(str, hash) }, setInput: function (input) { return this._input = input, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this }, input: function () { var ch = this._input[0]; this.yytext += ch, this.yyleng++, this.offset++, this.match += ch, this.matched += ch; var lines = ch.match(/(?:\r\n?|\n).*/g); return lines ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), ch }, unput: function (ch) { var len = ch.length, lines = ch.split(/(?:\r\n?|\n)/g); this._input = ch + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - len - 1), this.offset -= len; var oldLines = this.match.split(/(?:\r\n?|\n)/g); this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), lines.length - 1 && (this.yylineno -= lines.length - 1); var r = this.yylloc.range; return this.yylloc = { first_line: this.yylloc.first_line, last_line: this.yylineno + 1, first_column: this.yylloc.first_column, last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len }, this.options.ranges && (this.yylloc.range = [r[0], r[0] + this.yyleng - len]), this.yyleng = this.yytext.length, this }, more: function () { return this._more = !0, this }, reject: function () { return this.options.backtrack_lexer ? (this._backtrack = !0, this) : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), { text: "", token: null, line: this.yylineno }) }, less: function (n) { this.unput(this.match.slice(n)) }, pastInput: function () { var past = this.matched.substr(0, this.matched.length - this.match.length); return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "") }, upcomingInput: function () { var next = this.match; return next.length < 20 && (next += this._input.substr(0, 20 - next.length)), (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "") }, showPosition: function () { var pre = this.pastInput(), c = new Array(pre.length + 1).join("-"); return pre + this.upcomingInput() + "\n" + c + "^" }, test_match: function (match, indexed_rule) { var token, lines, backup; if (this.options.backtrack_lexer && (backup = { yylineno: this.yylineno, yylloc: { first_line: this.yylloc.first_line, last_line: this.last_line, first_column: this.yylloc.first_column, last_column: this.yylloc.last_column }, yytext: this.yytext, match: this.match, matches: this.matches, matched: this.matched, yyleng: this.yyleng, offset: this.offset, _more: this._more, _input: this._input, yy: this.yy, conditionStack: this.conditionStack.slice(0), done: this.done }, this.options.ranges && (backup.yylloc.range = this.yylloc.range.slice(0))), lines = match[0].match(/(?:\r\n?|\n).*/g), lines && (this.yylineno += lines.length), this.yylloc = { first_line: this.yylloc.last_line, last_line: this.yylineno + 1, first_column: this.yylloc.last_column, last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length }, this.yytext += match[0], this.match += match[0], this.matches = match, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(match[0].length), this.matched += match[0], token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), token) return token; if (this._backtrack) { for (var k in backup) this[k] = backup[k]; return !1 } return !1 }, next: function () { if (this.done) return this.EOF; this._input || (this.done = !0); var token, match, tempMatch, index; this._more || (this.yytext = "", this.match = ""); for (var rules = this._currentRules(), i = 0; i < rules.length; i++)if (tempMatch = this._input.match(this.rules[rules[i]]), tempMatch && (!match || tempMatch[0].length > match[0].length)) { if (match = tempMatch, index = i, this.options.backtrack_lexer) { if (token = this.test_match(tempMatch, rules[i]), token !== !1) return token; if (this._backtrack) { match = !1; continue } return !1 } if (!this.options.flex) break } return match ? (token = this.test_match(match, rules[index]), token !== !1 ? token : !1) : "" === this._input ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), { text: "", token: null, line: this.yylineno }) }, lex: function () { var r = this.next(); return r ? r : this.lex() }, begin: function (condition) { this.conditionStack.push(condition) }, popState: function () { var n = this.conditionStack.length - 1; return n > 0 ? this.conditionStack.pop() : this.conditionStack[0] }, _currentRules: function () { return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules }, topState: function (n) { return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL" }, pushState: function (condition) { this.begin(condition) }, stateStackSize: function () { return this.conditionStack.length }, options: { "case-insensitive": !0 }, performAction: function (yy, yy_, $avoiding_name_collisions, YY_START) { switch ($avoiding_name_collisions) { case 0: return 8; case 1: break; case 2: break; case 3: return 9; case 4: return 20; case 5: return 21; case 6: return 17; case 7: return 15; case 8: return 13; case 9: return 19; case 10: return 23; case 11: return 27; case 12: return 26; case 13: return 29; case 14: return 28; case 15: return 30; case 16: return 5; case 17: return "INVALID" } }, rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:participant\b)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:over\b)/i, /^(?:note\b)/i, /^(?:title\b)/i, /^(?:,)/i, /^(?:[^\->:\n,]+)/i, /^(?:--)/i, /^(?:-)/i, /^(?:>>)/i, /^(?:>)/i, /^(?:[^#\n]+)/i, /^(?:$)/i, /^(?:.)/i], conditions: { INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], inclusive: !0 } } }; return lexer }(); return parser.lexer = lexer, Parser.prototype = parser, parser.Parser = Parser, new Parser }(); "undefined" != typeof require && "undefined" != typeof exports && (exports.parser = grammar, exports.Parser = grammar.Parser, exports.parse = function () { return grammar.parse.apply(grammar, arguments) }, exports.main = function (args) { args[1] || (console.log("Usage: " + args[0] + " FILE"), process.exit(1)); var source = require("fs").readFileSync(require("path").normalize(args[1]), "utf8"); return exports.parser.parse(source) }, "undefined" != typeof module && require.main === module && exports.main(process.argv.slice(1))), ParseError.prototype = new Error, Diagram.ParseError = ParseError, grammar.parseError = function (message, hash) { throw new ParseError(message, hash) }, Diagram.parse = function (input) { return grammar.yy = new Diagram, grammar.parse(input) }, this.Diagram = Diagram }.call(this), "undefined" != typeof jQuery && function ($) { $.fn.sequenceDiagram = function (options) { return this.each(function () { var $this = $(this), diagram = Diagram.parse($this.text()); $this.html(""), diagram.drawSVG(this, options) }) } }(jQuery), Raphael.registerFont({ w: 209, face: { "font-family": "daniel", "font-weight": 700, "font-stretch": "normal", "units-per-em": "360", "panose-1": "2 11 8 0 0 0 0 0 0 0", ascent: "288", descent: "-72", "x-height": "7", bbox: "-92.0373 -310.134 632 184.967", "underline-thickness": "3.51562", "underline-position": "-21.6211", "unicode-range": "U+0009-U+F002" }, glyphs: { " ": { w: 179 }, " ": { w: 179 }, "!": { d: "66,-306v9,3,18,11,19,24v-18,73,-20,111,-37,194v0,10,2,34,-12,34v-12,0,-18,-9,-18,-28v0,-85,23,-136,38,-214v1,-7,4,-10,10,-10xm25,-30v15,-1,28,34,5,35v-11,-1,-38,-36,-5,-35", w: 115 }, '"': { d: "91,-214v-32,3,-25,-40,-20,-68v3,-16,7,-25,12,-27v35,13,14,56,8,95xm8,-231v4,-31,1,-40,18,-75v37,7,11,51,11,79v-3,3,-4,8,-5,13v-17,4,-16,-10,-24,-17", w: 117 }, "#": { d: "271,-64v-30,26,-96,-7,-102,51v-6,2,-13,2,-24,-2v-2,-11,10,-21,2,-28v-14,5,-48,0,-48,22v0,23,-11,14,-29,10v-7,-6,6,-19,-1,-24r-32,4v-19,-8,-15,-24,5,-28r33,-6v4,0,24,-23,11,-27v-26,0,-63,14,-74,-10v3,-1,9,-17,16,-10v15,-8,81,4,89,-30v8,-14,16,-34,24,-38v23,9,24,38,5,49v37,24,55,-38,72,-43v19,10,20,23,-1,45v2,8,23,1,29,4v3,3,6,6,10,11v-14,13,-20,12,-45,12v-17,0,-16,17,-19,29v18,-7,49,3,67,-2v4,0,8,4,12,11xm161,-104v-30,-1,-44,10,-44,37v14,1,24,0,40,-5v0,-1,3,-10,8,-26v0,-4,-1,-6,-4,-6", w: 285 }, $: { d: "164,-257v29,4,1,42,-3,50v5,5,38,13,41,24v8,4,6,15,-2,21v-18,3,-36,-17,-49,-17v-17,1,-31,40,-28,48v5,4,8,8,9,10v13,1,35,37,28,44v-10,21,-36,20,-65,28v-10,10,-12,40,-17,51v-9,-3,-28,1,-18,-17v0,-13,5,-24,-1,-35v-18,1,-59,-10,-42,-29v21,0,56,16,55,-16v5,-4,9,-18,9,-26v-14,-15,-55,-41,-53,-65v2,-33,56,-19,98,-26v10,-14,31,-43,38,-45xm93,-152v11,-10,15,-15,14,-29v-17,-3,-37,1,-43,6v10,12,20,19,29,23xm111,-103v-8,1,-11,12,-10,22v10,0,28,2,27,-8v0,-4,-13,-15,-17,-14", w: 225 }, "%": { d: "181,-96v24,-7,67,-13,104,1v14,18,21,19,22,44v-13,43,-99,61,-146,36v-9,-9,-22,-11,-32,-29v0,-27,24,-53,52,-52xm139,-185v-9,68,-138,73,-131,-5v0,-3,3,-9,9,-17v13,1,27,1,17,-16v5,-39,63,0,93,-6v36,1,80,-9,102,11v15,32,12,32,-8,56v-16,21,-103,78,-152,125r-14,28v-23,11,-25,-7,-29,-20v34,-71,133,-98,171,-162v-13,-12,-52,-5,-61,1v0,1,1,3,3,5xm38,-190v0,34,55,29,70,8v0,-14,-20,-11,-32,-14v-14,-3,-24,-9,-40,-10v1,0,5,11,2,16xm172,-53v12,27,90,18,102,-5v-18,-7,-32,-10,-40,-10v-29,3,-57,-4,-62,15", w: 308 }, "&": { d: "145,-82v17,-8,47,-15,71,-26v13,2,25,12,9,23v-23,7,-40,16,-53,27r0,6v13,8,30,21,36,38v0,8,-4,12,-11,12v-19,0,-43,-39,-59,-44v-30,12,-65,29,-97,32v-32,3,-45,-41,-23,-63v21,-20,52,-26,70,-48v-4,-31,-12,-47,9,-73v13,-16,20,-29,23,-39v15,-15,32,-22,51,-22v30,9,62,64,32,96v-2,3,-47,42,-69,48v-15,8,-11,9,0,22v6,7,10,11,11,11xm114,-138v25,-13,62,-38,74,-62v0,-9,-10,-31,-20,-29v-28,7,-60,42,-60,75v0,10,2,15,6,16xm99,-91v-18,10,-54,18,-59,45v26,5,61,-12,77,-22v-1,-5,-13,-23,-18,-23", w: 253 }, "'": { d: "36,-182v-36,7,-34,-61,-17,-80v15,1,21,19,21,20r-1,-1v0,0,-1,12,-5,35v1,5,3,17,2,26", w: 63 }, "(": { d: "130,-306v13,2,23,43,-1,43v-49,43,-77,77,-90,148v5,49,27,67,64,101v4,14,5,6,2,19r-15,0v-35,-17,-79,-58,-79,-120v0,-58,66,-176,119,-191", w: 120 }, ")": { d: "108,-138v-2,73,-48,120,-98,153v-17,-5,-16,-20,-6,-31v52,-64,73,-62,74,-135v1,-42,-40,-98,-58,-128v0,-5,-1,-12,-2,-22v18,-18,25,0,42,27v25,39,50,66,48,136", w: 120 }, "*": { d: "121,-271v15,-5,36,-8,40,9v-5,10,-31,19,-47,31v0,11,34,43,14,53v-18,8,-24,-24,-34,-20v-4,10,-4,19,-12,41v-25,7,-15,-30,-17,-47v-13,-1,-17,9,-46,30r-10,0v-20,-32,37,-43,54,-64v-10,-11,-36,-33,-16,-51v3,0,14,8,33,24v8,-10,26,-39,32,-42v14,7,15,23,9,36", w: 177 }, "+": { d: "163,-64v-7,22,-65,2,-77,21v-2,10,-6,21,-11,35v-20,4,-21,-12,-19,-29v3,-23,-44,6,-39,-27v-8,-22,36,-8,49,-18v8,-13,6,-36,24,-40v19,-4,14,32,11,39v18,3,19,2,54,8v2,1,5,5,8,11", w: 170 }, ",": { d: "25,63v-26,21,-48,-2,-22,-24v14,-12,35,-40,35,-69v3,-2,3,-11,12,-9v35,17,5,88,-25,102", w: 97 }, "-": { d: "57,-94v19,4,55,-5,54,17v-15,23,-54,20,-91,15v-4,2,-13,-10,-11,-16v-1,-22,28,-15,48,-16", w: 124 }, ".": { d: "40,-48v21,20,21,44,-4,44v-33,0,-26,-24,-10,-44r14,0", w: 67 }, "/": { d: "21,20v-22,-45,21,-95,41,-126v38,-57,115,-158,193,-201v2,0,4,3,7,11v11,29,-15,34,-25,55v-81,56,-189,208,-197,261r-19,0", w: 275 }, 0: { d: "78,-237v70,-47,269,-41,270,59v0,34,-11,53,-29,76v-13,35,-30,32,-85,64v-6,2,-10,6,-7,8v-73,14,-98,38,-173,1v-7,-13,-52,-48,-46,-88v9,-57,27,-75,70,-120xm123,-38v100,0,202,-46,195,-153v-32,-55,-144,-73,-211,-35v-16,34,-68,54,-53,108v6,25,1,22,-3,39v6,24,41,41,72,41", w: 353 }, 1: { d: "39,-208v0,-14,6,-59,29,-39v3,4,6,13,10,24r-22,128r8,87v-4,6,-9,3,-16,2v-44,-38,-9,-137,-9,-202", w: 93 }, 2: { d: "88,-35v47,-10,119,-24,168,-9v0,12,-23,13,-35,16v1,1,3,1,5,1v-74,8,-118,23,-194,23v-14,0,-20,-13,-21,-28v55,-40,83,-61,123,-104v26,-13,65,-67,71,-102v-1,-9,-11,-16,-22,-16v-20,-1,-120,29,-156,49v-10,-2,-30,-20,-10,-28v50,-21,111,-51,178,-48v25,10,44,22,36,39v12,30,-19,64,-34,83v-39,48,-37,39,-115,109v0,5,-3,8,-8,11v4,3,8,4,14,4", w: 265 }, 3: { d: "188,-282v34,-10,74,25,47,51v-19,32,-55,50,-92,70v28,14,116,25,108,70v8,14,-49,40,-63,48v-29,9,-130,22,-168,42v-6,-5,-19,-7,-12,-22v56,-36,175,-21,210,-76v-9,-20,-88,-42,-97,-33v-20,-1,-41,2,-56,-7r5,-21v56,-25,103,-36,137,-78v1,-1,2,-5,4,-11v-15,-14,-56,7,-79,0v-10,9,-73,22,-92,31v-11,-4,-28,-23,-13,-30v50,-22,96,-26,154,-37v0,-1,8,3,7,3", w: 260 }, 4: { d: "79,-249v-7,17,-29,75,-33,96v0,6,3,8,8,8v43,-2,111,6,141,-6v17,-47,20,-100,63,-148v9,4,16,7,21,10v-17,31,-44,95,-51,141v7,4,24,-4,23,10v-1,16,-29,12,-31,23v-10,22,-9,69,-7,103v-3,2,-7,5,-10,9v-47,-11,-23,-74,-16,-114v0,-4,-2,-6,-7,-6v-65,2,-89,13,-162,4v-22,-22,-2,-53,5,-76v16,-15,17,-57,35,-70v6,-1,21,11,21,16", w: 267 }, 5: { d: "185,-272v30,7,45,-8,53,18v1,16,-17,18,-34,14v0,0,-95,-11,-129,1v-6,9,-24,33,-29,54v76,10,171,5,214,47v11,11,22,30,5,52v-14,12,-30,14,-34,27v-26,11,-141,63,-157,60v-16,-2,-25,-19,-4,-27v48,-18,128,-39,170,-86v4,-14,-65,-41,-85,-41r-92,0v-10,-4,-66,-1,-57,-23v0,-23,23,-51,35,-83v11,-28,133,-10,144,-13", w: 284 }, 6: { d: "70,-64v9,-51,63,-74,123,-71v43,2,109,3,111,41r-25,47v0,1,1,2,2,3v-5,0,-39,10,-41,20v-15,3,-22,4,-22,11v-39,1,-77,20,-119,13v-42,-7,-35,-9,-77,-46v-56,-118,94,-201,176,-229v7,0,21,8,20,15v-2,17,-23,15,-43,24v-69,31,-119,72,-134,145v-5,25,36,68,78,64v59,-6,128,-18,153,-61v-7,-14,-13,-9,-32,-21v-67,-15,-118,-5,-150,43r0,12v-13,4,-17,-3,-20,-10", w: 310 }, 7: { d: "37,-228v33,-14,173,-17,181,-19v28,-1,24,31,9,45v-17,15,-45,49,-59,69v-17,26,-55,67,-61,113v-10,13,-9,14,-14,20v-33,-13,-20,-25,-11,-53v16,-48,73,-115,109,-156v2,-7,5,-14,-10,-12v-26,4,-54,6,-76,13v-23,-5,-83,31,-94,-9v2,-8,18,-19,26,-11", w: 245 }, 8: { d: "57,-236v40,-50,166,-51,213,-10v22,28,10,63,-22,78r-35,17v8,5,54,24,53,44v-5,14,-4,33,-18,42v-13,13,-35,18,-44,34v-60,27,-190,49,-194,-42v7,-41,17,-54,59,-70r0,-4v-32,-9,-73,-62,-26,-85v4,0,8,-2,14,-4xm142,-160v24,-2,160,-31,99,-72v-28,-18,-108,-33,-146,-5v-16,12,-28,30,-33,59v24,12,37,20,80,18xm41,-62v30,65,189,6,199,-37v3,-14,-60,-30,-74,-30v-70,0,-118,10,-125,67", w: 290 }, 9: { d: "11,-192v15,-49,119,-61,161,-23v16,15,27,55,11,79v-20,62,-51,79,-96,118v-10,4,-45,27,-50,6v9,-15,66,-52,98,-99v-7,-7,-8,-3,-25,0v-49,-11,-96,-25,-99,-81xm145,-131v7,-5,13,-34,13,-41v-2,-51,-104,-38,-114,-6v-2,10,37,35,46,35v23,1,43,-1,55,12", w: 198 }, ":": { d: "39,-125v15,-8,40,-1,40,15v0,15,-6,22,-19,22v-13,0,-29,-21,-21,-37xm66,-17v-8,27,-51,19,-46,-8v-1,-6,8,-22,14,-20v29,0,30,6,32,28", w: 95 }, ";": { d: "56,-93v2,-30,37,-22,40,2v0,2,-1,7,-3,15v-13,8,-15,6,-27,4xm64,-44v11,-11,30,-4,32,14v-21,39,-63,71,-92,85v-5,0,-11,-2,-18,-8v11,-23,36,-36,50,-61v11,-7,19,-20,28,-30", w: 107 }, "<": { d: "166,-202v12,0,29,15,24,29v0,4,-119,64,-120,73v15,21,89,64,91,86v2,29,-18,12,-30,15v-27,-29,-59,-54,-95,-75v-18,-10,-25,-13,-24,-41", w: 176 }, "=": { d: "125,-121v18,7,55,-9,69,14v0,17,-45,26,-135,26v-18,0,-27,-7,-27,-21v-1,-37,60,-5,93,-19xm138,-71v20,0,48,-1,50,16v-13,24,-86,32,-131,29v-29,-2,-43,-10,-43,-24v-7,-23,36,-14,39,-17v27,6,57,-4,85,-4", w: 196 }, ">": { d: "4,-14v20,-48,77,-59,118,-94v-16,-19,-58,-52,-81,-75v-11,-7,-15,-38,-1,-40v33,16,83,71,121,105v26,23,-6,35,-41,53v-29,16,-56,28,-73,54v-21,15,-16,20,-34,15v-3,0,-9,-16,-9,-18", w: 174 }, "?": { d: "105,-291v57,-13,107,-4,107,39v0,67,-136,85,-155,137v-1,6,10,23,-4,23v-23,1,-33,-35,-23,-57v31,-41,124,-60,149,-103v-8,-21,-72,-5,-88,-1v-23,6,-59,39,-71,8v0,0,-1,0,1,-17v10,-4,45,-20,84,-29xm80,-25v-6,4,-8,39,-24,22v-24,3,-22,-21,-13,-35v17,-7,29,5,37,13", w: 216 }, "@": { d: "218,-207v23,8,42,14,47,37v44,68,-27,137,-87,85r1,0v0,2,-59,19,-61,17v-35,0,-42,-47,-17,-68r0,-4v-19,-1,-45,37,-49,40v-37,76,58,72,121,62v11,-2,34,-13,36,3v-14,31,-69,31,-114,33v-51,2,-99,-41,-80,-92v2,-30,22,-40,42,-63v35,-20,91,-53,161,-50xm217,-101v23,0,35,-19,35,-41v0,-43,-75,-41,-102,-19v36,3,55,16,62,41v-6,5,-6,19,5,19xm127,-110v8,5,51,-15,28,-16v-4,0,-25,4,-28,16", w: 291 }, A: { d: "97,-81v-23,-10,-39,38,-52,60v-8,6,-8,6,-22,18v-22,-7,-23,-37,-4,-49v7,-8,11,-15,15,-23r-1,1v-14,-26,23,-29,31,-40v1,-1,15,-29,26,-36v17,-31,39,-58,54,-92v16,-20,20,-51,41,-66v29,5,34,62,45,92v9,64,21,103,49,155v-3,25,-44,11,-54,0v-34,-12,-97,-29,-128,-20xm107,-118v20,6,80,10,111,17v6,-7,-4,-15,-7,-24v-11,-28,-9,-92,-30,-117v-9,9,-19,44,-34,55v-9,23,-27,40,-40,69", w: 294 }, B: { d: "256,-179v41,10,115,34,91,91v-6,3,-14,12,-19,20v-37,19,-50,34,-63,25v-9,10,-12,11,-34,13r3,-3v-4,-4,-12,-4,-18,0v0,0,2,2,5,4v-21,14,-26,6,-44,15v-4,0,-7,-2,-8,-5v-6,11,-20,-5,-18,11v-36,4,-91,35,-114,4v-7,-62,-10,-138,4,-199v-1,-19,-37,2,-37,-27v0,-8,2,-13,6,-15v68,-31,231,-92,311,-39v8,12,12,20,12,25v-8,42,-32,49,-77,80xm79,-160v72,-17,135,-39,184,-70v20,-13,31,-23,31,-27v1,-6,-30,-13,-38,-12v-54,0,-116,13,-186,41v11,21,1,48,9,68xm262,-43v0,-4,3,-6,-4,-5v0,1,1,2,4,5xm211,-140v-34,7,-94,24,-139,15v-6,20,-4,56,-4,82v0,29,43,1,56,2v48,-11,108,-25,154,-48v20,-10,32,-17,32,-25v0,-18,-33,-26,-99,-26xm195,-20v6,1,6,-2,5,-7v-3,2,-7,2,-5,7", w: 364 }, C: { d: "51,-114v-12,75,96,76,166,71r145,-10v9,2,9,5,9,18v-37,18,-85,28,-109,22v-18,10,-47,10,-71,10v-29,0,-68,1,-105,-11v-6,-1,-10,-3,-10,-8v-33,-13,-48,-33,-66,-59v-19,-114,146,-150,224,-177v35,0,88,-31,99,7v-1,29,-49,14,-76,28v-55,8,-115,35,-175,71v-13,8,-23,21,-31,38", w: 376 }, D: { d: "312,-78v-2,1,-3,7,-10,5v6,-3,10,-4,10,-5xm4,-252v2,-27,83,-38,106,-39v130,-7,267,1,291,109v0,0,-2,8,-3,25v-5,9,-4,28,-23,34v-4,4,-2,5,-7,0v-3,3,-15,7,-5,10v0,0,-10,14,-13,2v-11,1,-8,5,-20,14v1,2,7,3,9,1v-4,13,-22,13,-11,4v0,-3,1,-6,-3,-5v-40,29,-103,38,-141,65v10,6,22,-7,34,-3v-41,20,-127,44,-171,46v-21,1,-47,-33,-11,-39v15,-2,43,-6,56,-11v-16,-101,-5,-130,9,-207v2,0,4,-1,6,-3v-16,-17,-91,38,-103,-3xm297,-69v-7,3,-17,8,-25,7v1,1,3,2,5,2v-4,2,-11,5,-23,9v4,-11,30,-21,43,-18xm240,-51v10,0,12,2,0,6r0,-6xm220,-36v-1,-3,4,-6,6,-3v0,1,-2,1,-6,3xm125,-48v16,6,137,-46,155,-53v29,-18,101,-44,82,-93v-21,-53,-84,-61,-168,-67v-20,7,-50,3,-77,8v33,54,-12,132,8,205xm159,-22v-4,-1,-15,-5,-15,2v7,-1,12,-2,15,-2", w: 381 }, E: { d: "45,-219v-19,-36,34,-41,63,-36v44,-10,133,-8,194,-15v3,2,38,11,52,15v-73,19,-171,21,-246,38v-9,11,-16,32,-20,61v35,11,133,-6,183,3v1,6,2,7,3,14v-46,24,-118,16,-193,27v-15,13,-22,52,-22,66v60,1,121,-20,188,-20v22,10,53,-7,74,5v16,29,-23,26,-43,32v-73,4,-139,13,-216,27r-52,-10v-4,-22,23,-69,26,-98v-3,0,-10,-15,-12,-24v20,-12,34,-23,35,-67v2,-1,5,-5,5,-7v0,-4,-14,-11,-19,-11", w: 353 }, F: { d: "270,-258v13,2,59,6,48,34v-78,-3,-143,1,-212,22v-10,16,-21,43,-24,69r145,-9v8,3,29,-3,16,21v-14,-1,-59,13,-60,7v-12,13,-67,18,-108,21v-2,1,-4,3,-7,6v-2,23,-8,43,-7,69v1,28,-30,11,-40,5r10,-80r-26,-14v5,-10,10,-33,28,-25v21,-3,15,-46,26,-59v-1,-3,-32,-13,-28,-24v2,-22,45,-16,59,-30v47,4,99,-14,151,-9v5,-3,25,-3,29,-4", w: 236 }, G: { d: "311,-168v53,0,94,57,74,110v-31,37,-71,34,-136,52v-13,-7,-41,10,-57,7v-73,-1,-122,-17,-162,-59v-49,-51,-24,-80,5,-130v35,-61,138,-93,214,-106v16,4,42,-1,40,21v-5,40,-39,2,-73,21v-76,19,-162,65,-177,142v28,103,237,76,312,29v2,-3,3,-7,3,-13v-10,-35,-37,-43,-87,-45v-16,-13,-53,-9,-78,1v-4,-3,-5,-7,-5,-11v17,-29,73,-17,108,-24v12,4,18,5,19,5", w: 391 }, H: { d: "300,-268v18,12,19,32,4,51v-35,44,-34,140,-46,217v-1,5,-5,13,-11,12v-6,1,-19,-14,-18,-27r7,-106v-28,7,-76,22,-116,14v-18,2,-36,6,-55,3v-43,-8,-14,53,-33,75v-29,1,-26,-67,-21,-97v5,-31,28,-73,43,-98v2,2,7,3,14,3v13,33,-11,48,-13,78v61,4,118,2,176,2v8,0,13,-6,15,-20v4,-47,21,-87,54,-107", w: 288 }, I: { d: "63,-266v34,10,-4,105,-8,128r-24,126v-2,2,-3,1,-9,6v-12,-10,-12,-15,-12,-47v0,-93,9,-156,28,-188v10,-17,19,-25,25,-25", w: 79 }, J: { d: "235,-291v26,11,31,104,31,142v0,37,-2,95,-32,126v-33,34,-121,26,-167,1v-18,-11,-54,-29,-59,-59v0,-3,5,-15,16,-14v31,36,90,57,162,51v63,-30,56,-148,32,-226v-1,-16,11,-13,17,-21", w: 282 }, K: { d: "212,-219v17,-5,80,-60,80,-19v0,9,-2,14,-5,16r-132,78v-34,23,-54,32,-21,50v39,21,74,23,124,41v5,2,7,5,7,9v-4,24,-55,15,-79,8v-67,-19,-98,-36,-116,-83v9,-24,38,-35,66,-61v7,-4,49,-30,76,-39xm47,-194v11,-20,11,-45,31,-55v2,2,4,3,6,0v29,39,-21,96,-18,128v-17,24,-15,62,-29,113v-4,3,-10,7,-19,11v-12,-13,-10,-28,-8,-53v3,-31,17,-79,37,-144", w: 270 }, L: { d: "84,-43v58,0,179,-27,242,-4v3,17,-29,24,-40,26v-85,-4,-202,46,-268,3v-24,-16,-2,-33,-4,-57v26,-76,38,-108,86,-191v14,-7,26,-50,45,-32v6,22,5,31,-12,46v-20,39,-50,82,-67,142v-7,6,-19,46,-19,54v0,9,12,13,37,13", w: 331 }, M: { d: "174,-236v-1,52,-11,92,-7,143v10,5,15,-12,22,-18v42,-55,90,-130,136,-174r15,-18v42,2,32,53,11,80v-12,58,-54,143,-34,210v0,3,-3,12,-9,10v-31,-5,-32,-57,-27,-92v4,-27,12,-58,25,-93v-5,-10,5,-19,6,-30v-46,44,-66,110,-129,172v-11,10,-18,15,-22,15v-34,6,-28,-103,-28,-152v-28,22,-65,119,-96,170v-9,15,-34,3,-31,-19v30,-64,91,-177,139,-229v12,-1,29,13,29,25", w: 343 }, N: { d: "248,-20v-3,17,-37,18,-43,3v-24,-35,-53,-145,-80,-203v-32,40,-55,120,-92,174v-13,3,-26,-13,-27,-22r87,-171v4,-13,20,-57,42,-32v42,48,46,139,82,198v29,-45,46,-88,65,-153v12,-19,23,-42,38,-60v27,-1,14,18,4,44v-6,46,-32,68,-37,121v-15,29,-33,69,-39,101", w: 307 }, O: { d: "240,-268v85,1,163,29,150,125v13,7,-12,18,-5,26v-23,63,-133,112,-228,124v-80,-16,-171,-56,-148,-153v11,-47,20,-43,53,-83v17,-9,39,-22,73,-29v45,-10,81,-10,105,-10xm363,-156v16,-51,-62,-85,-111,-79v-25,-11,-50,8,-81,0v-15,10,-70,16,-85,31v6,20,-27,24,-39,45v-42,75,40,128,115,128v56,0,209,-71,201,-125", w: 383 }, P: { d: "70,-225v-7,-12,-36,16,-49,19v-4,0,-9,-5,-14,-17v21,-47,114,-55,172,-59v41,-3,132,33,99,87v-21,34,-72,59,-144,80v-2,16,-79,3,-74,46v3,25,-5,47,-10,68v-22,-1,-23,-29,-22,-56v2,-25,-20,-32,-8,-50v21,-5,10,-35,25,-57v6,-28,14,-48,25,-61xm71,-229v47,14,-2,50,-1,99v41,-3,113,-37,173,-76v5,-9,8,-14,8,-15v-28,-47,-125,-29,-180,-8", w: 252 }, Q: { d: "374,-217v20,59,-11,127,-48,156r30,38v-1,6,-8,16,-14,9v-3,0,-19,-9,-47,-26v-72,35,-173,75,-236,12v-70,-40,-67,-213,26,-217r8,5v24,-20,72,-48,112,-38v21,-4,22,-1,50,-2v66,-2,94,20,119,63xm296,-88v13,5,61,-49,63,-84v4,-62,-54,-78,-119,-76v-14,-6,-49,5,-71,3v-42,16,-89,41,-93,94v-9,11,1,25,-7,38v-12,-19,-7,-67,-1,-88v-56,30,-37,137,19,155v27,17,92,19,119,0v12,-2,29,-9,52,-20v2,-2,3,-3,3,-6v-11,-12,-46,-27,-54,-56v0,-13,3,-19,9,-19v18,1,60,52,80,59", w: 379 }, R: { d: "100,-275v96,-23,196,-10,208,78v-3,18,-17,52,-49,62v-14,20,-54,23,-79,40v-2,0,-14,2,-36,6v-40,8,-30,14,-3,33v37,27,52,30,118,55v16,6,31,23,12,27v-58,-2,-104,-29,-143,-61v-14,-3,-16,-15,-39,-27v-23,-19,-28,-12,-15,-38v63,-19,111,-15,163,-53v27,-20,43,-36,43,-49v0,-64,-120,-62,-173,-38v-9,4,-38,9,-40,18v-10,32,-16,70,-13,116v-10,21,-8,47,-6,75v2,31,-9,29,-27,22v-9,-55,5,-140,15,-190v-8,-6,-24,10,-24,-11v0,-34,16,-34,42,-55v2,-1,17,-4,46,-10", w: 297 }, S: { d: "13,-3v-7,-3,-22,-18,-5,-22v68,-15,119,-32,154,-45v51,-19,39,-34,3,-53v-46,-25,-82,-30,-121,-64v-33,-29,-50,-35,-25,-58v37,-20,119,-29,181,-29v29,0,44,6,44,18v-9,26,-62,6,-104,14v-17,2,-72,6,-92,16v37,53,132,58,180,111v8,9,11,20,11,30v-4,17,-23,35,-42,34v-21,16,-17,1,-49,17v-14,7,-41,9,-56,20v-25,-3,-49,10,-79,11", w: 234 }, T: { d: "141,-3v-36,-6,1,-49,-3,-79v10,-19,6,-35,15,-64r26,-85v-51,-9,-100,10,-141,14v-16,2,-30,-26,-11,-32v26,-8,143,-8,179,-19r12,6v67,-2,142,-1,200,-1v8,0,14,3,19,10v-18,16,-74,3,-103,14v-48,-4,-60,4,-113,7v-42,22,-36,130,-58,187v1,12,-9,44,-22,42", w: 277 }, U: { d: "365,-262v13,56,-22,104,-36,141v-19,22,-30,38,-57,56v-4,18,-60,35,-78,50v-53,28,-142,0,-161,-34v-31,-56,-37,-108,-11,-164v17,-33,29,-50,48,-29v-2,2,-3,7,-4,13v-44,36,-38,149,7,174v30,26,55,19,102,4v56,-17,66,-34,120,-76v12,-24,56,-68,46,-122r0,-16v0,1,-1,3,-1,6v4,-13,11,-10,25,-3", w: 368 }, V: { d: "246,-258v21,-22,31,-26,44,-8v1,1,-12,22,-28,35v-15,25,-41,38,-56,69v-13,15,-20,31,-28,57v-15,13,-11,29,-27,72v3,21,-5,24,-27,27v-33,-45,-54,-118,-84,-167v-5,-26,-18,-50,-25,-76v-3,-12,24,-8,29,-5v8,13,18,52,26,70r52,115v9,-2,4,-9,10,-21r25,-47v25,-44,46,-76,89,-121", w: 234 }, W: { d: "31,-213v16,46,17,106,41,151v31,-35,49,-89,76,-127v30,-15,39,27,52,56v10,22,21,48,35,67v2,0,4,-1,5,-3v16,-28,50,-76,79,-121v14,-21,40,-63,64,-83r5,8v-30,58,-76,110,-97,173v-18,28,-25,37,-33,63v-11,1,-16,25,-30,15v-21,-31,-44,-89,-62,-131v0,-2,-1,-3,-5,-5v-17,11,-16,36,-31,50v-20,33,-20,84,-68,94v-24,-19,-23,-81,-39,-111v-1,-15,-29,-94,-10,-108v9,2,12,5,18,12", w: 331 }, X: { d: "143,-183v43,-25,69,-36,126,-62v22,-10,86,-10,56,21v-51,3,-158,61,-154,64v10,15,41,30,50,52v27,17,46,60,70,82v9,14,-6,30,-24,20v-35,-43,-75,-100,-116,-132v-48,13,-100,47,-118,94v-1,49,-26,34,-27,4v-1,-26,13,-27,17,-48v22,-27,68,-55,90,-77v-9,-12,-60,-39,-79,-57v-6,-10,-6,-25,12,-25", w: 312 }, Y: { d: "216,-240v19,-14,42,10,22,26v-54,66,-121,109,-156,197v-8,21,-11,15,-30,4v3,-37,27,-61,33,-76v12,-12,15,-19,32,-42v-8,-6,-40,5,-45,5v-48,-6,-69,-65,-56,-113v14,0,13,-1,24,7v2,33,12,75,42,73v36,-2,102,-57,134,-81", w: 189 }, Z: { d: "60,-255v66,12,200,-34,240,21v-13,42,-63,62,-98,89v-19,15,-47,33,-82,55v-25,16,-47,32,-66,47v58,24,129,-6,208,-6v23,0,36,12,13,19v-33,2,-53,5,-86,10v-32,18,-88,15,-135,15v-9,-1,-55,-1,-48,-29v1,-24,30,-24,40,-41v64,-50,151,-86,208,-147v-38,-17,-155,12,-198,-4v0,0,-11,-33,4,-29", w: 310 }, "[": { d: "72,-258r-15,250v30,4,55,-3,80,-6v7,-1,8,17,9,23v-28,15,-73,23,-121,21v-7,0,-10,-6,-10,-17v0,-60,25,-193,22,-288v0,-16,13,-20,33,-19v9,-3,34,-12,51,-12v16,0,15,16,19,29v-16,7,-48,10,-68,19", w: 151 }, "\\": { d: "21,38v-20,-21,9,-72,13,-90v44,-78,113,-189,200,-253v2,0,5,4,7,12v11,31,-13,36,-24,58v-74,61,-174,219,-180,273r-16,0", w: 257 }, "]": { d: "133,-258v-23,-13,-84,6,-85,-32v0,-10,5,-15,14,-15v0,0,30,2,90,7v10,1,15,13,15,36v2,7,-8,59,-13,112r-11,125v-9,48,9,90,-59,71v-20,-4,-39,-1,-59,-4v-5,-10,-25,-12,-14,-30v8,-3,61,-13,78,-8v14,1,8,-7,10,-17v15,-69,21,-166,34,-245", w: 171 }, "^": { d: "68,-306v20,15,47,36,58,60v-1,4,0,7,-9,7v-26,0,-47,-38,-49,-32v-15,9,-41,50,-54,30v-2,-31,17,-23,33,-51v8,-9,15,-14,21,-14", w: 135 }, _: { d: "11,15v-8,33,18,45,50,34r205,2r197,-5v11,-5,14,-9,7,-28v-95,-21,-258,-10,-376,-10v-25,0,-72,-3,-83,7", w: 485 }, "`": { d: "75,-264v16,8,56,14,39,43v-30,-8,-65,-23,-105,-44v-1,-3,-3,-28,5,-25v16,5,44,17,61,26", w: 129 }, a: { d: "124,-56v10,4,59,41,65,50v1,7,-6,17,-12,17r-60,-30v-22,2,-42,21,-65,19v-33,4,-68,-67,-15,-81v41,-27,96,-39,110,9v0,6,-4,12,-11,16v-33,-25,-67,-5,-88,12v10,16,61,-18,76,-12", w: 196 }, b: { d: "80,-140v69,1,123,0,134,52v5,26,-71,71,-97,70v-11,11,-88,22,-94,22v-11,-3,-26,-18,-6,-24v19,-5,-2,-19,-1,-35v1,-18,11,-36,-5,-47v-6,-17,-6,-21,14,-32v6,-45,18,-89,28,-124v2,-7,8,-12,17,-15v5,3,10,11,16,28v-12,27,-13,63,-23,96v0,6,6,9,17,9xm87,-107v-40,-9,-31,31,-39,54v8,15,0,25,12,22v30,-8,60,-18,88,-32v39,-18,49,-33,-1,-42v-20,-4,-45,-7,-60,-2", w: 217 }, c: { d: "128,-123v29,-7,37,29,12,33v-27,-4,-40,6,-79,25v-8,4,-13,11,-16,22v30,32,91,3,134,11v5,13,-8,26,-22,19v-51,25,-139,28,-150,-30v6,-50,69,-82,121,-80", w: 194 }, d: { d: "224,-201v0,-35,-17,-111,24,-94v7,86,-2,119,0,197v-4,2,-8,21,-18,16v-62,-7,-154,-8,-185,29v6,17,28,26,51,26v16,0,100,-15,132,-18v7,5,-6,20,-10,22v-24,8,-122,42,-163,25v-32,-5,-62,-53,-36,-80v35,-37,118,-46,198,-43v1,-22,7,-49,7,-80", w: 265 }, e: { d: "4,-57v0,-58,51,-71,110,-74v33,-1,45,16,59,35v1,14,2,39,-7,42v-24,-2,-73,13,-99,11v-2,2,-2,3,-2,3v0,3,12,8,37,15v21,0,69,9,31,22v-9,14,-34,6,-56,6v-27,-5,-73,-28,-73,-60xm123,-102v-22,2,-68,5,-65,26v24,-2,66,5,79,-6v-5,-13,-1,-13,-14,-20", w: 182 }, f: { d: "6,-59v6,-29,53,-4,53,-43v0,-64,29,-118,84,-150v45,-25,167,-24,155,51v-1,2,-7,6,0,6r-10,2v-45,-58,-165,-39,-186,39v-7,26,-11,42,-9,62v44,8,95,-21,135,-7v-12,25,-39,21,-76,30v-19,5,-18,7,-54,19v-2,8,15,32,17,35v-6,25,-26,26,-40,-5r-15,-24v-41,10,-44,12,-54,-15", w: 234 }, g: { d: "132,-97v30,27,21,75,30,117v-12,31,-11,66,-36,103v-32,46,-105,83,-167,39v-31,-21,-49,-29,-51,-75v-2,-37,77,-50,121,-57v37,-6,68,-10,95,-11v7,-6,3,-32,4,-46v0,0,-1,1,-1,2v0,-18,-5,-31,-14,-45v-44,5,-79,20,-94,-18v3,-54,73,-54,125,-50v12,7,12,13,4,25v-30,-11,-76,8,-90,20v23,3,50,-16,74,-4xm-34,121v60,53,168,1,159,-86v-47,-7,-93,24,-142,30v-12,7,-45,19,-42,29v0,10,8,19,25,27", w: 188 }, h: { d: "100,-310v11,-2,10,19,11,20v-11,52,-40,133,-53,189v-6,30,-9,37,-9,47v27,0,113,-34,143,-34v42,0,31,47,39,79v0,4,-5,17,-16,16v4,2,11,3,4,6v-24,-1,-28,-34,-25,-64v-1,-1,-2,-3,-5,-5v-51,0,-110,38,-162,51v-9,1,-15,-15,-16,-23v17,-89,39,-141,71,-264v0,-9,6,-19,18,-18", w: 251 }, i: { d: "62,-209v7,18,9,23,-5,38v-23,-6,-21,-18,-11,-36v2,0,8,-1,16,-2xm34,-7v-18,-21,-8,-73,-1,-106v7,-10,20,-8,23,6v-1,36,7,72,-2,104v-8,2,-8,0,-20,-4", w: 80 }, j: { d: "88,-191v5,28,-18,40,-28,21v0,-20,12,-29,28,-21xm82,-99v28,-1,16,35,16,61v0,60,-19,150,-35,202v-12,8,-19,31,-35,16v-32,-7,-43,-19,-56,-44r2,-17v11,4,49,45,61,18v10,-55,27,-107,30,-171v0,-16,0,-59,17,-65", w: 120 }, k: { d: "59,-66v33,26,114,37,155,62v8,-4,22,-2,19,-17v0,-4,-12,-11,-30,-24v-36,-25,-54,-22,-99,-33v14,-21,119,-13,103,-63r-16,-7r-123,47r25,-93v-3,-15,16,-49,18,-81v1,-15,-21,-14,-25,-3v-31,82,-49,168,-75,257v2,2,22,30,27,10v2,-5,4,-9,9,-11v4,-16,4,-15,12,-44", w: 236 }, l: { d: "66,-300v21,-6,37,23,30,55v-10,51,-28,135,-28,208v0,11,6,36,-13,37v-29,-5,-30,-48,-25,-83r28,-177v-6,-17,1,-29,8,-40", w: 102 }, m: { d: "348,-59v-2,21,0,57,3,73v-17,3,-30,-1,-32,-16v-8,-7,-5,-44,-13,-70v-35,3,-82,49,-111,70v-12,8,-40,4,-39,-15r2,-56v-1,-13,4,-28,-8,-29v-35,8,-79,72,-115,87v-6,2,-20,-18,-21,-22v1,-20,14,-105,39,-64r8,15v17,-14,72,-56,93,-54v27,3,49,40,43,80v24,-2,66,-55,124,-53v11,14,28,23,27,54", w: 368 }, n: { d: "121,-136v37,6,62,54,62,111v0,32,-16,25,-31,17v-18,-30,-5,-45,-22,-85v-37,-13,-71,55,-92,65v-20,-3,-39,-39,-21,-62v2,-12,3,-15,11,-30v12,-8,20,11,29,12", w: 194 }, o: { d: "108,-139v52,-24,104,18,104,63v0,59,-66,67,-114,83v-52,-2,-115,-50,-80,-105v23,-18,52,-35,90,-41xm45,-60v16,54,125,16,131,-23v-12,-59,-129,-8,-131,23", w: 217 }, p: { d: "82,14v-10,12,-8,117,-24,142v-15,2,-19,0,-29,-13v0,-76,9,-113,22,-192v14,-27,35,-6,37,13v0,8,-3,21,-7,38v2,2,3,2,4,2v26,-9,116,-33,126,-72v-7,-17,-24,-33,-49,-31v-40,3,-116,13,-116,47v-5,7,-2,17,-16,20v-17,-12,-18,-20,-12,-38v8,-25,74,-61,110,-59v55,-15,113,15,118,70v-15,52,-84,79,-146,83v-5,0,-11,-4,-18,-10", w: 251 }, q: { d: "144,-147v27,-8,89,-3,97,31v-9,29,-42,-4,-73,1v-32,6,-118,20,-111,49v0,7,13,13,21,13v21,0,78,-24,104,-34v2,0,9,8,22,21v1,1,1,2,1,5v-27,90,-22,70,-43,203v11,15,-15,54,-33,33v-6,-8,-10,-20,-3,-28v1,-72,5,-114,15,-172v-35,3,-35,10,-59,8v-41,-4,-98,-41,-56,-85v33,-34,59,-27,118,-45", w: 248 }, r: { d: "242,-117v2,22,5,10,-14,23v-73,-7,-166,-23,-174,56v-8,6,-3,20,-8,36v-29,10,-40,-9,-33,-46v6,-31,7,-69,32,-55v58,-37,66,-42,175,-19v3,5,15,4,22,5", w: 229 }, s: { d: "154,-151v19,1,27,24,13,32v-4,1,-22,4,-53,7v-16,8,-22,-2,-39,9v23,21,89,16,96,62v-13,24,-85,35,-124,42v-9,-3,-18,-3,-27,0v-6,-4,-21,-16,-8,-25v30,-6,83,-13,102,-24v-17,-16,-80,-33,-97,-48v-3,-2,-4,-7,-4,-15v-6,-6,3,-13,15,-18v22,-9,94,-23,126,-22", w: 188 }, t: { d: "85,-150v10,-41,35,-126,65,-134v4,1,24,19,11,36v-17,22,-29,57,-36,104v26,8,50,-7,73,5v14,0,22,3,22,9v-1,19,-44,18,-57,23v-10,1,-46,0,-54,10v-10,24,-4,67,-20,98v-21,-3,-26,1,-26,-20v0,-9,2,-36,8,-81v-15,-13,-81,9,-77,-27v4,-38,71,6,91,-23", w: 194 }, u: { d: "207,-136v-1,-2,11,-14,14,-13v6,0,10,7,10,22v-3,40,-23,56,-40,82v-13,19,-62,43,-93,43v-67,-2,-111,-75,-71,-133v26,-3,21,29,19,49v-1,27,26,44,57,42v41,-2,93,-55,104,-92", w: 242 }, v: { d: "24,-127r52,71v42,-16,70,-54,124,-65v5,4,8,7,8,11v-8,19,-4,8,-33,32v0,1,-1,3,-1,5v-61,45,-93,68,-97,68v-40,-15,-50,-72,-68,-100v6,-14,10,-22,15,-22", w: 214 }, w: { d: "15,-139v38,-2,27,57,45,86v30,2,67,-66,101,-78v26,6,36,69,60,78v47,-35,51,-54,119,-104v3,0,7,-2,15,-4v19,23,-9,28,-21,49v-33,28,-68,90,-107,109v-10,6,-52,-47,-72,-71v-20,17,-85,74,-97,73v-38,7,-41,-98,-52,-122v0,-1,3,-7,9,-16", w: 325 }, x: { d: "95,-124v22,-13,78,-32,99,-31v16,0,23,6,23,18v0,22,-17,11,-49,21v-3,0,-45,20,-42,24v0,1,2,4,8,10v20,24,49,41,44,80v-35,3,-27,-9,-60,-44v-40,-43,-37,-26,-79,9v-1,1,-2,3,-3,8v-12,8,-28,10,-27,-11v-6,-8,45,-65,48,-65v-17,-21,-61,-52,-24,-68v9,0,48,37,62,49", w: 223 }, y: { d: "44,-65v22,33,70,4,99,-8v5,-4,28,-15,41,-31r17,0v25,47,-26,70,-40,114v-5,4,-9,8,-10,21v-16,12,-11,33,-27,51v-5,18,-12,43,-23,71v-1,-1,-2,34,-18,29v-12,1,-22,-12,-22,-23v20,-70,24,-65,68,-177v-47,16,-111,8,-116,-39v-11,-13,-7,-62,8,-62v18,0,22,26,23,54", w: 216 }, z: { d: "189,-43v9,-1,46,-6,41,12v0,7,-5,13,-15,14v-45,6,-148,24,-181,13v0,-3,-5,-8,-14,-15v5,-44,66,-46,90,-85v-15,-18,-84,21,-84,-14v0,-10,5,-17,14,-18v33,-3,79,-13,109,-3v4,-2,14,11,12,15v0,23,-26,51,-78,84v28,10,73,-3,106,-3", w: 244 }, "{": { d: "94,-303v27,-9,90,-14,79,26v-20,17,-55,-5,-87,13v-4,1,-6,4,-6,8v33,42,31,44,7,85v-6,10,-13,16,-13,13v5,6,17,17,15,31r-33,78v7,35,28,49,57,63r49,0v7,42,-51,41,-86,20v-43,-13,-51,-51,-56,-89v-2,-25,25,-54,27,-71v-3,-4,-46,-5,-41,-21v2,-10,-3,-29,11,-25v2,0,51,-17,52,-38v4,-3,-25,-23,-25,-49v0,-41,8,-30,50,-44", w: 179 }, "|": { d: "30,-308v26,5,14,50,15,80v5,78,-8,153,-3,225v-2,15,-1,31,-11,36v-8,-3,-25,-22,-25,-32r9,-183v0,-40,0,-78,1,-112v0,-4,9,-15,14,-14", w: 63 }, "}": { d: "47,-298v34,-17,118,-18,112,36v6,25,-76,98,-69,103v4,16,39,7,44,28v7,34,-34,17,-37,39v8,29,49,83,23,123v-15,23,-43,26,-73,46v-34,8,-43,11,-49,-17v1,-15,30,-15,33,-20v24,-12,70,-27,55,-61v-14,-33,-37,-68,-19,-103v-46,-50,46,-100,60,-141v-10,-16,-68,6,-77,-12", w: 143 }, "~": { d: "7,-254v2,-6,59,-50,67,-46v11,-1,35,19,46,26v5,0,27,-10,66,-31v21,8,-1,25,-7,38v-27,21,-48,31,-65,31v-24,-11,-37,-39,-65,-9v-7,7,-26,36,-42,11v3,-5,-3,-17,0,-20", w: 199 }, "Ä": { d: "161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm187,-259v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm90,-284v7,3,28,11,28,18v0,9,-9,18,-18,17v-17,0,-25,-24,-10,-35" }, "Å": { d: "161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm112,-239v-31,-17,-9,-61,29,-56v12,2,22,3,33,12v24,39,-30,62,-62,44xm119,-262v2,14,41,8,41,-4v0,-4,-8,-6,-24,-9v-10,-2,-17,10,-17,13" }, "Ç": { d: "48,-108v-12,70,90,71,159,67r138,-9v9,-1,7,9,7,17v-37,16,-80,27,-103,21v-14,9,-40,3,-67,9v-30,0,-64,1,-100,-10v-6,-1,-10,-4,-10,-8v-32,-12,-46,-31,-63,-56v-16,-61,47,-103,83,-121v82,-42,118,-45,200,-60v21,-4,36,34,11,37v-90,11,-148,31,-225,77v-12,8,-23,20,-30,36xm172,18v29,4,47,14,53,35v-2,7,-14,31,-27,31v-28,7,-55,9,-84,14v-18,-5,-13,-32,7,-32v21,0,55,-5,69,-13v-16,-14,-63,10,-50,-35v9,-10,1,-27,23,-29v7,8,11,16,9,29", w: 331 }, "É": { d: "49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm133,-248v27,-11,48,-32,59,-14v3,11,-79,52,-88,53v-14,1,-16,-11,-12,-21v10,-4,23,-11,41,-18", w: 252 }, "Ñ": { d: "224,-182v1,-17,15,-24,22,-38v20,0,13,10,3,33v-3,36,-25,52,-28,94v-10,24,-30,55,-29,82r-19,7v-32,-8,-36,-70,-58,-111v-2,-23,-7,-27,-19,-54v-28,36,-41,93,-71,133v-9,5,-20,-9,-20,-17r73,-149v9,-24,31,-5,36,7v19,41,31,98,53,139v22,-35,34,-69,50,-118v2,-3,3,-3,7,-8xm203,-257v22,-8,41,-24,65,-26v3,11,-8,9,-7,21v-26,20,-46,31,-59,31v-2,3,-49,-27,-49,-29v-11,0,-32,31,-46,32v-11,-2,-12,-21,-4,-23v4,-6,28,-30,48,-34v17,-4,43,28,52,28", w: 219 }, "Ö": { d: "62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm197,-229v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm101,-254v7,3,28,9,27,18v1,8,-8,17,-17,17v-18,0,-26,-24,-10,-35", w: 273 }, "Ü": { d: "281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-29,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm197,-227v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm101,-252v7,3,27,10,27,18v0,8,-9,18,-18,17v-18,-1,-24,-25,-9,-35", w: 262 }, "á": { d: "118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm32,-117v24,-3,85,-55,101,-32v3,11,-80,53,-89,53v-13,2,-14,-10,-12,-21", w: 173 }, "à": { d: "118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm99,-137v7,6,56,14,37,40v-28,-7,-62,-21,-100,-41v-2,-3,-2,-26,5,-23v16,4,42,17,58,24", w: 173 }, "â": { d: "118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm147,-97v-27,-6,-39,-26,-60,-37v-21,7,-38,46,-65,23v-2,-5,-3,-10,-4,-14v18,-4,43,-31,61,-42v28,5,40,21,62,36v12,8,18,17,18,25v0,6,-4,9,-12,9", w: 173 }, "ä": { d: "118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-32,5,-66,-64,-15,-77v39,-26,92,-36,104,9v0,6,-3,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm142,-119v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm46,-144v7,3,28,9,27,18v1,8,-9,18,-18,17v-18,-1,-25,-25,-9,-35", w: 173 }, "ã": { d: "118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm114,-136v22,-8,41,-24,64,-26v3,11,-7,10,-7,21v-26,20,-45,30,-58,30v-3,3,-49,-26,-49,-28v-10,-1,-32,35,-51,31v-12,-32,8,-29,32,-51v24,-21,54,20,69,23", w: 173 }, "å": { d: "118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm54,-101v-37,-20,-9,-71,34,-65v13,1,25,3,38,13v27,45,-34,73,-72,52xm61,-128v4,20,48,7,49,-5v0,-5,-9,-7,-28,-10v-12,-2,-21,11,-21,15", w: 173 }, "ç": { d: "108,-118v30,-6,56,21,25,33v-24,-6,-39,5,-75,23v-7,4,-12,12,-15,22v31,28,86,3,128,9v3,28,-29,16,-44,28v-53,15,-106,10,-120,-37v0,-48,62,-70,101,-78xm92,18v23,4,45,12,48,32v-2,6,-12,28,-25,28v-24,6,-50,10,-77,13v-16,-4,-11,-28,7,-29v17,-1,51,-4,63,-12v-14,-15,-57,10,-46,-32v9,-8,0,-25,21,-26v6,6,12,14,9,26", w: 171 }, "é": { d: "108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm76,-169v26,-11,48,-32,59,-14v3,10,-80,53,-89,53v-14,1,-14,-10,-12,-21v15,-7,16,-7,42,-18", w: 161 }, "è": { d: "108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm95,-166v7,6,54,14,37,40v-28,-7,-62,-21,-100,-41v-3,-3,-3,-26,5,-24v16,5,42,18,58,25", w: 161 }, "ê": { d: "108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm145,-129v-27,-6,-39,-26,-60,-37v-8,0,-10,4,-14,10v-11,15,-51,34,-56,0v17,-4,44,-32,61,-43v28,5,41,21,63,36v12,8,17,17,17,25v0,6,-3,9,-11,9", w: 161 }, "ë": { d: "108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10r-3,3v0,3,12,7,36,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-67,-27,-71,-58v7,-52,48,-65,105,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm140,-144v0,8,-4,12,-12,12v-18,0,-19,-19,-16,-33v18,-1,29,1,28,21xm44,-169v7,3,28,9,28,17v0,9,-9,18,-18,18v-18,0,-25,-24,-10,-35", w: 161 }, "í": { d: "59,-98v20,4,15,53,10,95v-6,1,-11,2,-19,-4v1,-7,-12,-18,-10,-24v4,-22,-4,-65,19,-67xm50,-139v27,-11,49,-32,59,-14v3,11,-80,53,-89,53v-14,1,-14,-12,-11,-22v15,-7,14,-6,41,-17", w: 105 }, "ì": { d: "57,-98v22,5,13,50,11,95v-7,1,-11,2,-20,-4v1,-7,-12,-18,-10,-24v4,-22,-2,-64,19,-67xm70,-139v14,10,54,14,37,41v-28,-7,-61,-22,-99,-42v-3,-2,-3,-25,5,-23v15,5,41,17,57,24", w: 109 }, "î": { d: "72,-98v20,5,12,51,10,95v-6,2,-13,1,-20,-4v1,-8,-12,-18,-10,-24v4,-22,-3,-65,20,-67xm134,-94v-26,-7,-39,-25,-60,-37v-7,0,-9,4,-13,10v-14,15,-51,34,-56,-1v18,-4,45,-33,61,-43v27,6,40,22,62,37v12,8,18,17,18,25v0,6,-4,9,-12,9", w: 143 }, "ï": { d: "55,-97v19,5,15,53,10,95v-17,5,-26,-14,-30,-28v6,-20,-3,-65,20,-67xm110,-118v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm14,-143v6,3,28,8,28,17v0,9,-9,18,-18,18v-18,0,-25,-24,-10,-35", w: 107 }, "ñ": { d: "115,-129v34,6,59,50,59,105v0,31,-15,24,-30,17v-15,-29,-5,-42,-20,-81v-35,-13,-68,52,-88,61v-20,-4,-38,-36,-19,-59v0,-12,3,-14,10,-28v11,-8,18,11,27,12xm117,-166v22,-7,41,-23,64,-26v3,11,-7,10,-7,21v-26,20,-45,30,-58,30v-3,3,-49,-26,-49,-28v-10,-1,-32,35,-51,31v-5,-12,-8,-16,0,-23v4,-6,28,-29,48,-33v17,-3,43,28,53,28", w: 171 }, "ó": { d: "102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm49,-154v24,-3,85,-55,101,-32v3,11,-80,53,-89,53v-14,0,-13,-8,-12,-21", w: 191 }, "ò": { d: "102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm115,-181v14,10,51,13,37,40v-28,-7,-62,-21,-100,-41v-3,-2,-3,-26,5,-23v16,5,42,17,58,24", w: 191 }, "ô": { d: "102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm110,-177v-22,6,-38,45,-65,22v-2,-4,-3,-9,-4,-13v18,-4,43,-32,61,-43v27,6,40,21,62,36v12,9,18,17,18,25v1,11,-15,10,-23,7", w: 191 }, "ö": { d: "102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm161,-160v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm65,-185v7,3,28,9,28,18v0,7,-9,18,-18,17v-18,1,-25,-24,-10,-35", w: 191 }, "õ": { d: "102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm58,-199v26,-21,54,18,69,22v4,0,15,-5,34,-13v22,-9,21,-16,31,-13v3,11,-9,9,-7,22v-26,20,-46,30,-59,30v-2,4,-49,-28,-49,-29v-11,0,-32,31,-46,32v-12,-3,-13,-21,-4,-23v4,-6,14,-15,31,-28", w: 191 }, "ú": { d: "196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm106,-174v26,-11,48,-32,59,-14v3,11,-81,53,-89,54v-13,1,-15,-12,-11,-22v15,-7,14,-7,41,-18", w: 213 }, "ù": { d: "196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm126,-166v7,6,56,14,37,40v-28,-7,-62,-22,-100,-42v-2,-3,-2,-26,5,-23v16,4,42,18,58,25", w: 213 }, "û": { d: "196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm172,-143v-27,-6,-39,-26,-60,-37v-8,0,-10,4,-14,10v-11,15,-49,35,-56,0v17,-4,44,-32,61,-43v27,6,41,21,63,36v12,9,17,17,17,25v0,6,-3,9,-11,9", w: 213 }, "ü": { d: "196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm168,-161v0,8,-3,13,-11,13v-17,0,-20,-19,-17,-34v18,-1,29,1,28,21xm72,-186v7,3,29,9,28,18v0,7,-9,18,-18,17v-18,1,-25,-24,-10,-35", w: 213 }, "†": { d: "22,-286v15,6,5,-20,19,-19v9,-3,15,21,17,22v6,1,12,3,20,6v3,10,5,16,-9,16v-34,-10,-6,51,-34,52v-20,-7,11,-47,-15,-49v-14,3,-25,-5,-17,-24v7,-2,14,-4,19,-4", w: 77 }, "°": { d: "106,-268v0,36,-35,38,-51,46v-48,5,-60,-58,-25,-78v33,-11,76,-9,76,32xm38,-257v16,7,39,2,38,-17v-13,-9,-28,-1,-32,11v-5,3,-7,0,-6,6", w: 114 }, "¢": { d: "105,-188v13,-12,14,-18,26,-15v7,23,7,15,-3,49v6,0,18,14,17,20v-3,5,-12,19,-26,13v-14,1,-14,5,-16,21v10,10,46,-13,38,18v-9,17,-23,16,-54,20v-17,16,-4,55,-29,60v-37,-10,19,-64,-24,-71v-20,-10,-37,-47,-6,-62v23,-20,73,-4,77,-53xm65,-101v4,-9,7,-8,3,-13v-14,4,-22,10,-3,13", w: 154 }, "£": { d: "153,-170v3,22,62,0,49,39v-18,6,-31,12,-58,9v-12,-1,-17,30,-23,39v19,26,50,56,91,35v9,-2,27,-13,27,4v0,27,-27,39,-58,42v-32,-5,-59,-19,-78,-39v-6,1,-35,44,-57,39v-25,0,-37,-15,-37,-46v0,-41,43,-53,73,-50v4,1,12,-18,12,-21v-7,-15,-49,0,-44,-30v-2,-31,31,-16,60,-19v16,-30,25,-119,93,-113v16,2,75,16,50,44v-4,5,-7,7,-12,8v-18,-12,-32,-18,-41,-18v-35,-1,-38,52,-47,77xm43,-45v4,5,12,-2,11,-9v-1,2,-12,1,-11,9", w: 242 }, "§": { d: "141,-115v12,10,29,36,28,56v-4,68,-129,69,-152,16v-1,-12,-10,-22,8,-23v17,3,47,21,67,23v16,1,40,-8,38,-21v-8,-49,-119,-30,-117,-85v1,-28,15,-45,-3,-64v-1,-53,55,-61,103,-62v15,-5,6,-5,20,-2v16,17,23,27,23,30v-1,26,-29,7,-45,7v-21,0,-51,2,-62,17v19,14,87,8,97,43v18,14,16,57,-5,65xm64,-147r57,17v10,-28,-22,-43,-47,-44v-25,-1,-35,19,-10,27", w: 174 }, "•": { d: "130,-114v0,47,-124,54,-120,-8r6,-31v44,-28,64,-34,104,0v8,6,10,20,10,39", w: 139 }, "¶": { d: "121,-237v21,-9,44,-13,63,-1v-1,7,5,6,7,11r-4,190v-2,33,4,39,-15,40v-16,1,-10,-20,-10,-33r4,-161v0,-17,-1,-34,-16,-25v2,10,1,23,1,35v-9,46,-6,75,-15,156v-3,4,-7,5,-12,5v-17,-10,-3,-89,-10,-115v-43,14,-98,10,-101,-29v-4,-53,59,-63,104,-75v3,1,4,2,4,2xm95,-204v2,9,-30,50,1,50v35,0,23,-13,29,-43v0,-1,-2,-7,-4,-15v-12,-1,-14,2,-26,8", w: 206 }, "ß": { d: "33,10v-29,4,-28,-32,-16,-70v18,-58,17,-137,56,-176v12,-24,46,-58,82,-43v20,8,47,24,47,54v0,30,-62,59,-67,90v33,23,56,33,63,63v-18,21,-22,36,-48,54v-24,17,-27,41,-53,16v-2,-19,7,-35,24,-42v15,-13,26,-22,34,-40v-13,-17,-78,-29,-56,-70v-3,-27,64,-54,66,-86v-8,-25,-41,-4,-52,8v-29,30,-47,83,-51,141v-17,25,-8,71,-29,101" }, "®": { d: "75,-194v78,-29,116,9,130,84v-2,42,-22,47,-57,67v-74,20,-161,-19,-129,-110v6,-18,29,-34,57,-40xm46,-86v51,36,84,21,129,-15v7,-15,0,-39,-10,-49v-13,-37,-49,-26,-86,-18v-28,7,-49,46,-33,82xm72,-123v-5,-43,68,-57,75,-14v-17,26,-18,17,3,32v2,25,-25,18,-45,7r-4,-4v-1,8,-3,20,-12,24v-10,-3,-21,-34,-17,-45xm112,-135v-10,-1,-20,13,-9,14v6,-6,9,-11,9,-14", w: 217 }, "©": { d: "102,-29v-74,5,-124,-84,-70,-140v22,-22,53,-35,97,-38v46,-4,88,49,74,100v0,44,-51,75,-101,78xm96,-66v42,-3,75,-23,75,-69v0,-23,-4,-38,-44,-38v-16,0,-33,6,-49,20v36,-4,55,-12,62,20v-5,16,-49,1,-50,21v10,15,53,-14,54,11v0,18,-14,27,-42,27v-22,1,-46,-11,-46,-31v0,-25,7,-39,20,-44v-1,-1,-2,-2,-3,-2v-51,22,-32,89,23,85", w: 217 }, "™": { d: "213,-307v28,9,11,49,7,75v-1,4,-4,6,-11,6v-7,1,-11,-14,-11,-34v-14,-6,-34,34,-46,28v-2,0,-10,-9,-24,-27v-10,7,-3,36,-27,31v-15,-24,-3,-27,1,-48v-6,-7,-27,-1,-31,3v-3,14,-7,30,-11,51v-5,10,-29,9,-24,-12v-5,-8,1,-18,3,-35v-13,6,-33,2,-29,-18v20,-17,64,-17,100,-19v28,-1,29,30,45,39v11,-6,35,-32,58,-40", w: 239 }, "´": { d: "52,-284v29,-11,50,-34,62,-14v3,12,-86,54,-94,56v-14,0,-16,-12,-12,-23v11,-5,25,-11,44,-19", w: 120 }, "¨": { d: "124,-259v0,9,-4,13,-12,13v-18,0,-22,-21,-17,-35v19,-1,30,1,29,22xm23,-285v7,2,30,9,29,18v1,10,-9,19,-18,19v-19,0,-28,-26,-11,-37", w: 136 }, "≠": { d: "48,-130v29,11,49,-57,60,-50v25,6,7,27,-1,46v22,5,29,7,21,22v-18,2,-48,-1,-50,15v9,8,53,-7,54,10v-4,22,-46,20,-72,24v-7,13,-18,32,-34,57v-8,6,-15,-3,-13,-14v-1,-9,15,-39,14,-45v-30,5,-24,-17,-13,-25v12,-1,36,4,29,-13v-14,0,-47,6,-36,-12v0,-18,27,-13,41,-15", w: 140 }, "Æ": { d: "335,-259v0,30,-102,12,-122,34v10,21,2,79,16,100v24,-6,59,-13,86,-16v23,-2,32,21,13,26r-103,29v-3,22,-4,38,8,43v28,-5,60,-6,86,-14v5,-1,14,7,14,11v6,16,-90,40,-107,40v-29,0,-39,-19,-32,-46v-2,-4,0,-26,-9,-28v-29,2,-58,6,-88,6v-31,0,-40,74,-82,73v-18,-23,4,-37,12,-50v40,-65,112,-126,165,-207v20,-17,69,-11,112,-13v21,0,31,4,31,12xm123,-111v28,1,44,-2,67,-10v-4,-22,5,-49,-7,-65v-3,6,-65,61,-60,75", w: 348 }, "Ø": { d: "76,-211v41,-13,100,-22,140,-3v26,-19,40,-29,44,-29v10,0,15,7,15,20v0,15,-23,23,-30,35v23,39,29,114,-21,139v-36,19,-102,35,-147,18v-14,-5,-29,29,-46,35v-25,-13,-19,-24,3,-56v-9,-17,-28,-27,-28,-60v0,-38,23,-72,70,-99xm107,-66v55,15,125,-12,123,-70v0,-16,-5,-25,-13,-29r-110,95r0,4xm39,-108v-1,3,17,31,22,27v8,-6,109,-90,123,-106v-15,-11,-43,1,-63,2v-33,10,-80,35,-82,77", w: 270 }, "∞": { d: "322,-72v-4,22,-54,41,-76,41v-43,0,-83,-17,-114,-35v-46,19,-125,53,-128,-18v-1,-14,10,-22,13,-35v29,-10,62,-31,97,-4v37,28,47,5,75,-8v40,-19,73,-10,114,1v13,1,18,55,19,58xm228,-69v15,0,62,-12,61,-25v-19,-23,-89,-10,-105,11v0,2,1,4,2,4v28,6,42,10,42,10xm75,-102v-13,2,-41,4,-44,19v0,4,3,7,10,7v21,0,40,-6,54,-17v-9,-6,-16,-9,-20,-9", w: 330 }, "±": { d: "93,-163v-7,46,76,-4,46,47v-14,6,-27,13,-38,8v-24,2,-14,28,-28,44r-14,0v-7,-12,-5,-15,-7,-33v-12,-7,-41,-1,-37,-24v2,-11,23,-17,36,-14r28,-38v4,0,9,4,14,10xm113,-27v-12,18,-58,27,-85,24v-16,2,-22,-23,-13,-36v28,-7,85,-11,98,12", w: 151 }, "≤": { d: "73,-109v10,15,87,16,87,42v0,11,-5,16,-13,16v-36,-11,-69,-24,-109,-31v-18,-8,-18,-13,-9,-36v59,-56,93,-83,101,-83v16,0,18,17,14,28v-27,24,-42,35,-71,64xm10,-29v35,-12,117,-26,148,-3v1,2,-5,19,-8,18r-124,15v-16,2,-26,-18,-16,-30", w: 168 }, "≥": { d: "115,-174v20,7,53,36,20,57v-19,11,-91,68,-82,59v-18,3,-25,-22,-13,-31v15,-10,14,-10,70,-51r-50,-37v-5,-4,-5,-27,4,-28v16,7,40,17,51,31xm14,-32v33,-10,86,-14,127,-10v12,12,5,23,-11,27v-49,9,-82,13,-99,13v-22,0,-24,-16,-17,-30", w: 163 }, "¥": { d: "31,-248v30,-3,64,64,74,59v37,-22,77,-65,107,-82v20,-11,34,18,21,32v-28,19,-52,38,-70,57v-18,8,-40,21,-35,60v2,19,39,7,64,7v25,0,16,21,2,27v-36,16,-46,8,-68,18v6,11,101,-20,66,24v-21,11,-42,12,-75,20v-2,1,-5,6,-10,18v-8,3,-11,10,-24,8v-7,-17,-2,-18,-9,-26v-13,5,-39,3,-53,-2v-10,-17,-7,-27,0,-34v23,-1,45,1,64,-5v-11,-7,-28,-4,-64,-6v-13,-8,-15,-24,-6,-35v33,-2,102,9,76,-37v-14,-14,-33,-38,-60,-66v-10,-10,-8,-28,0,-37", w: 219 }, "µ": { d: "123,-114v41,0,54,-9,127,-17v12,-2,20,-6,25,-12v5,-78,43,-127,119,-138v38,-5,46,23,55,48v-5,5,2,4,2,12v-2,47,-72,81,-129,95v-17,4,-12,32,-2,39v30,-5,24,0,99,4v14,9,14,20,-1,23v-17,3,-71,-1,-85,13v1,19,18,35,-3,47v-1,-6,-10,-7,-16,-5v-3,-3,-20,-37,-29,-41v-15,8,-50,22,-49,-9v1,-19,2,-27,28,-26v24,1,13,-12,8,-30v-22,1,-64,16,-111,23v-50,7,-17,47,-17,57v0,10,-5,15,-13,15v-20,-9,-27,-30,-33,-55v-20,-17,-52,8,-85,-6v-2,-10,-13,-26,4,-29v32,-6,41,-1,65,-7v-17,-74,-4,-173,69,-180v55,-20,130,8,131,65v-11,9,-10,2,-29,-11v-33,-23,-37,-26,-76,-25v-41,13,-69,38,-67,100v0,34,4,50,13,50xm317,-152v29,-6,106,-43,106,-71v0,-23,-24,-25,-42,-17v-31,1,-74,48,-64,88", w: 462 }, "∂": { d: "456,-113v55,-37,119,-8,176,5v-19,37,-104,-5,-144,18v-5,64,-45,87,-130,87v-43,0,-70,-8,-96,-21v-54,15,-146,29,-209,10v-18,-11,-43,-26,-46,-53v-1,-9,28,-48,51,-46v55,-10,55,-8,101,-8v29,0,17,-26,23,-56v4,-19,4,-74,34,-49v4,42,-7,83,-10,124v0,4,-11,10,-34,17v-29,-1,-45,-4,-74,1v-10,2,-57,3,-52,18v30,43,132,30,190,18v2,-10,-7,-19,-5,-28v5,-36,31,-59,74,-56v27,2,71,4,70,35v-1,30,-37,41,-58,57v35,13,131,15,135,-23v2,-19,-5,-36,4,-50xm262,-85v0,3,13,28,19,25v7,0,48,-13,61,-29v-10,-17,-71,-17,-80,4", w: 640 }, "∑": { d: "235,-95v-3,-59,120,-41,160,-28v3,-2,15,-3,14,4v1,3,-16,19,-21,18r-97,4v-25,5,-18,18,-23,56v-16,14,-25,24,-36,18v-83,32,-154,29,-212,-17v-45,-68,41,-114,107,-119v50,-4,59,66,22,85v-16,8,-61,10,-79,15v36,27,185,24,165,-36xm128,-119v-23,-3,-43,4,-53,15v13,5,46,-4,53,-15", w: 414 }, "∏": { d: "243,-190v7,-18,27,-19,38,6v0,2,-5,8,-14,16v-8,-9,-27,-4,-24,-22xm221,-111v55,-7,60,22,45,64v5,23,17,47,-22,47v-35,0,-18,-40,-15,-70v-2,-19,-35,-13,-52,-18v-2,0,-13,1,-34,3v-4,0,-10,11,-13,31v-3,20,1,43,-11,54v-12,-4,-13,-5,-21,-3v-13,-13,-3,-25,-12,-41v7,-6,12,-22,10,-39v-23,-8,-79,15,-87,-21v12,-28,78,-4,101,-20r36,-96v8,-19,17,-28,27,-28v10,0,15,6,15,18v-6,32,-31,62,-38,109v25,10,47,-1,71,10", w: 282 }, "π": { d: "247,-240v-3,5,-14,12,-21,6v-41,5,-71,-4,-85,37v-6,7,-21,42,-25,61v28,12,104,-16,129,24v8,11,12,24,12,38v-7,17,-2,99,-40,68v-9,-23,-5,-47,-1,-73v3,-24,-40,-24,-50,-19v-4,0,-18,2,-44,6v-30,-6,-16,49,-33,58v-19,-11,-14,2,-29,-10v8,-71,20,-114,43,-170v-24,-2,-49,4,-73,7v-30,3,-32,-33,-7,-36r184,-22v17,-1,40,13,40,25", w: 265 }, "∫": { d: "62,-151v-7,-70,20,-130,63,-150v28,1,39,10,70,23v20,8,6,33,-6,35v-29,-13,-45,-20,-49,-20v-20,-4,-45,51,-43,70v8,60,5,129,5,189v0,62,-27,93,-79,93v-37,-1,-71,-14,-63,-57v21,0,79,34,91,-2v16,-3,14,-64,21,-85v-2,-31,-1,-74,-10,-96", w: 156 }, "ª": { d: "6,-265v1,-31,58,-53,80,-22v-11,14,25,28,25,36v-2,8,-15,12,-27,10v-22,-29,-68,19,-78,-24xm52,-281v-8,1,-24,10,-9,13v11,1,24,-10,9,-13", w: 117 }, "º": { d: "13,-273v1,-31,56,-41,83,-18v36,8,14,48,-9,52v-35,6,-64,-5,-74,-34xm81,-269v-7,-7,-20,-11,-29,-6v5,13,13,11,29,6", w: 128 }, "Ω": { d: "121,-111v9,16,43,-5,54,5v28,-4,62,8,81,-5v48,-33,166,-28,160,44v15,34,-51,53,-88,53v-34,0,-53,-21,-71,-37v-15,7,-32,-4,-28,-22v-26,-4,-93,-6,-108,8v8,17,5,37,12,54v-1,15,-18,15,-31,10v-9,-15,-20,-39,-19,-63v-20,-9,-73,15,-79,-18v4,-28,50,-11,77,-24v12,-99,36,-168,137,-178v35,5,64,20,67,57v0,13,-14,18,-20,5v-15,-35,-83,-31,-104,4v-26,20,-39,82,-40,107xm334,-45v15,2,51,-14,53,-22v-7,-20,-36,-31,-69,-29v-8,-1,-39,6,-37,14v-3,10,44,38,53,37", w: 424 }, "æ": { d: "145,-44r33,7v2,42,-59,29,-85,16v-6,7,-35,24,-48,15v-19,2,-35,-21,-33,-37v2,-24,5,-19,28,-36v-6,-8,-45,3,-33,-21v21,-22,58,-12,85,-1v6,-5,35,-28,45,-15v20,-4,36,17,36,35v0,23,-4,21,-28,37xm111,-72v12,3,49,-16,19,-17v-5,0,-20,12,-19,17xm74,-50v-14,-4,-48,16,-19,17v4,1,19,-14,19,-17", w: 184 }, "ø": { d: "76,-136v17,7,33,-8,51,0v9,-6,21,-13,36,-21v23,22,-13,31,3,50v11,13,4,21,14,35v-4,5,-1,14,-4,23v-14,23,-45,41,-84,39v-12,2,-29,28,-41,38v-2,-11,-34,-10,-15,-30v3,-7,5,-11,5,-11v-15,-24,-60,-54,-22,-89v23,-21,25,-32,57,-34xm102,-54v18,1,50,-19,30,-32v-12,7,-22,18,-30,32xm85,-92v-14,3,-26,8,-38,17v2,20,17,13,26,0v6,-8,12,-13,12,-17", w: 188 }, "¿": { d: "181,-247v3,1,31,2,29,15v-4,22,-37,27,-41,4v1,-5,7,-20,12,-19xm161,-34v-45,-1,-105,19,-124,51v0,11,18,17,54,17v39,0,82,-13,112,4v-10,35,-58,31,-100,31v-47,0,-80,-10,-99,-31v-10,-56,22,-73,64,-90v8,-3,32,-9,74,-18v21,-15,7,-62,22,-92v-1,-5,-1,-11,4,-12v16,0,24,7,24,22v-8,30,-8,73,-17,111v-3,5,-7,7,-14,7", w: 213 }, "¡": { d: "86,-197v8,16,-7,41,-24,25v-11,-11,-4,-16,-3,-29v13,0,15,-2,27,4xm46,-107v4,-8,11,-16,23,-7v19,26,-5,57,-6,87v-7,0,-5,18,-9,28v0,14,-17,52,-11,70v-2,7,-15,28,-25,12v-4,-6,-15,-7,-6,-16v2,-39,14,-96,34,-174", w: 95 }, "¬": { d: "141,-99v47,7,103,-3,149,6v14,24,18,15,10,39v-10,34,-7,31,-26,76v-4,6,-15,8,-16,21v-4,2,-4,1,-13,5v-22,-33,-4,-33,16,-104v-5,-9,-28,-4,-38,-6r-183,4v-14,0,-41,-29,-17,-36v31,-9,82,5,118,-5", w: 315 }, "√": { d: "364,-218v43,-21,80,-51,104,-32v-3,19,-24,21,-44,40v-41,15,-78,53,-136,78r-137,98v-20,16,-79,66,-91,68v-3,1,-25,-11,-24,-13v-4,-28,-43,-61,-30,-85v26,-15,42,19,58,32r295,-188v0,1,2,2,5,2", w: 474 }, "ƒ": { d: "115,-262v-23,6,-39,63,-38,96v1,3,57,2,54,16v1,22,-45,15,-51,30v3,34,12,68,10,103v14,17,-18,53,-28,63v-48,8,-89,5,-95,-37v20,-5,77,21,83,-18v17,-29,-4,-61,0,-98v0,-5,-3,-10,-7,-17v-33,4,-43,-17,-25,-37v10,-4,27,5,27,-10v0,-43,15,-77,32,-109v12,-7,16,-22,38,-20v11,1,51,35,25,55v-9,1,-16,-17,-25,-17", w: 145 }, "≈": { d: "133,-112v21,15,48,-30,78,-17v3,3,5,7,5,9v-8,30,-47,45,-76,45v-19,0,-64,-48,-90,-21r-29,20v-6,-1,-17,-16,-15,-32v24,-17,70,-42,107,-21v4,4,10,9,20,17xm138,-57v28,2,48,-25,76,-26v13,30,-21,42,-40,53v-41,24,-77,-15,-114,-23v-15,14,-46,32,-49,-1v-3,-9,27,-28,54,-30", w: 223 }, "∆": { d: "18,-1v-24,-30,8,-48,25,-71v14,-19,34,-28,40,-56v20,-35,29,-14,57,4v9,39,43,62,57,102v0,16,-34,17,-50,14v-28,2,-72,4,-129,7xm139,-47r-22,-52v-12,-5,-12,15,-24,27v-7,6,-14,16,-23,28v23,1,36,-1,69,-3", w: 199 }, "«": { d: "191,-64v16,6,87,37,53,63v-39,-9,-71,-28,-107,-40v-14,-13,-13,-34,10,-47v27,-15,48,-55,84,-62v9,-2,21,10,21,18r-13,21v-16,5,-44,22,-51,41v0,4,1,6,3,6xm71,-65v17,6,87,35,55,62v-39,-8,-66,-27,-108,-40v-14,-13,-13,-36,10,-46v23,-18,50,-56,84,-63v9,-2,21,10,21,18r-13,22v-20,6,-32,17,-51,37v0,3,-1,11,2,10", w: 265 }, "»": { d: "120,-129v9,-33,48,-10,64,5v9,20,86,52,50,86v-36,11,-66,31,-107,40v-6,-7,-9,-13,-9,-17v-2,-13,50,-46,63,-46v11,-18,-33,-42,-48,-47xm1,-128v10,-33,46,-8,64,6v8,19,86,50,51,85v-40,13,-69,30,-108,40v-6,-7,-8,-12,-8,-16v-2,-14,50,-46,63,-47v7,-13,-9,-20,-19,-30v-10,-9,-20,-15,-30,-17", w: 252 }, "…": { d: "244,-24v-1,21,-38,32,-41,3v-2,-19,23,-22,34,-17v0,7,0,15,7,14xm113,-24v0,-22,28,-21,38,-8v5,34,-39,40,-38,8xm35,-2v-10,-2,-36,-17,-18,-29v-1,-15,17,-17,31,-6v7,17,6,33,-13,35", w: 258 }, " ": { w: 179 }, "À": { d: "161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm150,-268v14,10,54,14,37,41v-28,-7,-62,-22,-100,-42v-2,-3,-2,-26,5,-23v16,4,42,17,58,24" }, "Ã": { d: "161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm100,-285v26,-19,54,19,69,22v4,0,15,-5,34,-13v23,-9,22,-17,31,-12v3,11,-9,9,-7,21v-26,20,-46,30,-59,30v-3,3,-50,-26,-49,-29v-12,1,-31,35,-51,32v-3,-8,-5,-14,-5,-18v10,-9,16,-17,37,-33" }, "Õ": { d: "62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm116,-270v26,-19,54,19,69,22v4,0,15,-5,34,-13v23,-10,22,-16,31,-12v3,11,-8,9,-7,21v-45,28,-47,42,-88,16v-29,-19,-12,-20,-43,2v-8,5,-12,18,-23,15v-13,-3,-12,-20,-4,-23v4,-6,14,-15,31,-28", w: 273 }, "Œ": { d: "247,-243v71,4,161,-7,245,-8v17,0,27,6,27,17v-8,27,-70,14,-104,23v-3,1,-52,0,-65,7r0,4v16,16,17,29,17,65v32,10,74,-14,99,16v-14,25,-76,17,-127,24v-17,18,-55,32,-75,51v85,0,128,-3,204,-11v15,-2,21,11,20,29v-78,24,-177,12,-270,24v-24,3,-24,-29,-48,-15v-46,7,-70,4,-105,-4v-19,-18,-42,-22,-52,-55v-10,-34,0,-47,12,-78v-18,-59,48,-78,105,-84v17,-18,103,-13,117,-5xm125,-45v76,-9,186,-43,209,-105v-26,-67,-137,-83,-217,-54v3,34,-45,25,-60,58v-41,48,5,108,68,101", w: 492 }, "œ": { d: "185,-54v25,28,107,-17,104,33v-12,12,-60,14,-87,14v0,0,1,1,2,1v-11,1,-39,-9,-50,-17v-28,17,-75,32,-114,7v-22,-14,-34,-11,-34,-41v0,-36,33,-49,48,-75v29,-16,72,-3,95,11v12,-9,48,-27,59,-26v30,0,64,15,65,40v0,7,-6,20,-20,37v-29,1,-44,11,-68,16xm226,-106v-21,-7,-41,-2,-48,13v14,1,42,-7,48,-13xm132,-87v-21,-35,-94,11,-92,24v-2,14,43,21,61,21v25,0,36,-20,31,-45", w: 295 }, "–": { d: "6,-66v-8,-72,79,-21,146,-39v37,-10,79,7,111,0v9,8,14,13,14,17v2,26,-72,13,-99,21v-83,4,-124,21,-172,1", w: 282 }, "—": { d: "175,-106v86,-9,201,1,286,-1v11,6,13,11,6,30v-118,15,-246,10,-377,10v-25,0,-73,3,-82,-8r-2,-26v11,-13,32,-9,52,-7v38,3,84,-5,117,2", w: 485 }, "“": { d: "66,-261v-21,5,-37,51,-22,77v0,4,-2,6,-7,6v-31,-9,-38,-62,-12,-94v12,-15,21,-28,31,-34v16,-1,19,24,22,34v10,-11,22,-32,43,-23v-2,8,4,16,5,19v-6,11,-51,53,-29,74v-12,21,-30,5,-33,-17v-6,-13,9,-28,2,-42", w: 118 }, "”": { d: "120,-294v12,3,30,26,19,34v2,15,-40,70,-55,66v-40,-10,10,-51,14,-64v3,-3,8,-31,22,-36xm70,-306v14,3,26,34,16,49v-19,30,-31,45,-58,59v-12,-11,-33,-17,-7,-36v13,-19,36,-27,36,-59v0,-5,9,-13,13,-13", w: 148 }, "‘": { d: "73,-262v-10,7,-41,39,-38,69v-15,13,-27,-16,-28,-28v-2,-20,51,-83,66,-83v20,0,25,41,0,42", w: 95 }, "’": { d: "74,-300v13,31,-1,99,-44,101v-13,0,-19,-5,-19,-15v6,-10,31,-34,35,-59v2,-11,1,-32,11,-32v6,0,11,2,17,5", w: 90 }, "÷": { d: "167,-158v-4,3,-7,9,-10,20v-23,4,-34,-8,-29,-31v14,-6,18,1,39,11xm78,-72v-53,11,-53,12,-69,-15v-1,-12,11,-17,22,-14v71,-13,151,-18,230,-24v11,1,21,16,23,28v-28,20,-90,11,-126,16v-36,5,-62,5,-80,9xm123,-40v19,-17,41,-1,41,17v0,13,-6,19,-17,19v-15,0,-29,-14,-24,-36", w: 293 }, "◊": { d: "76,-158v48,-8,64,11,100,36v28,19,-5,39,-22,54v-15,13,-40,32,-48,49v-17,5,-12,0,-27,-16v-6,-6,-86,-31,-68,-53r2,-9v27,-23,48,-44,63,-61xm93,-65v12,-2,35,-31,41,-38v-5,-10,-16,-14,-34,-24v-12,12,-36,29,-40,44v19,11,30,18,33,18", w: 199 }, "ÿ": { d: "118,85v-11,11,-11,38,-22,61v-2,-1,-2,31,-17,27v-11,0,-21,-10,-21,-22v20,-66,23,-61,64,-168v-22,1,-38,16,-58,4v-22,4,-51,-16,-51,-42v-11,-13,-7,-59,7,-58v16,1,21,24,22,51v21,33,66,5,94,-7v4,-3,26,-14,38,-29r17,0v23,44,-23,59,-34,102v-6,9,-13,9,-13,26v-15,6,-12,33,-27,48v0,2,1,4,1,7xm158,-136v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,29,1,28,21xm62,-161v7,3,28,9,27,18v1,8,-8,17,-17,17v-18,0,-26,-24,-10,-35", w: 190 }, "Ÿ": { d: "176,-189v35,20,-25,54,-39,72v-26,34,-57,57,-74,104v-10,15,-4,14,-23,3r0,-10v19,-44,27,-46,50,-81v-9,-5,-24,4,-34,4v-38,0,-54,-50,-44,-87v21,-5,18,19,22,35v4,18,15,27,29,27v41,0,60,-39,113,-67xm153,-222v0,8,-3,12,-11,12v-18,0,-21,-19,-16,-33v18,-1,28,2,27,21xm57,-247v8,2,29,9,28,17v0,21,-37,24,-36,1v0,-7,2,-13,8,-18", w: 135 }, "⁄": { d: "193,-305v7,6,17,31,3,41v-10,7,-12,13,-21,25v-79,56,-190,209,-197,260r-18,0v-23,-19,9,-70,15,-85v52,-83,121,-179,218,-241", w: 120 }, "¤": { d: "308,-133r-200,16v-2,1,-6,4,-10,10v70,-2,144,-14,211,-8v3,0,8,4,13,8v-1,4,-3,9,-9,17v-57,11,-164,6,-219,25v26,32,112,25,173,25v9,0,35,2,35,19v0,9,-4,13,-12,14v-115,12,-146,23,-211,-19v-12,-4,-22,-9,-25,-27v-6,-29,-61,3,-43,-49v17,-1,36,7,42,-12v-32,7,-36,-39,-11,-40v29,14,63,-25,73,-30v52,-25,72,-44,142,-44v23,0,21,41,-1,39v-35,-3,-61,9,-102,31v2,2,5,4,8,4v18,-6,101,-9,115,-9v7,0,55,13,31,30", w: 312 }, "€": { d: "308,-133r-200,16v-2,1,-6,4,-10,10v70,-2,144,-14,211,-8v3,0,8,4,13,8v-1,4,-3,9,-9,17v-57,11,-164,6,-219,25v26,32,112,25,173,25v9,0,35,2,35,19v0,9,-4,13,-12,14v-115,12,-146,23,-211,-19v-12,-4,-22,-9,-25,-27v-6,-29,-61,3,-43,-49v17,-1,36,7,42,-12v-32,7,-36,-39,-11,-40v29,14,63,-25,73,-30v52,-25,72,-44,142,-44v23,0,21,41,-1,39v-35,-3,-61,9,-102,31v2,2,5,4,8,4v18,-6,101,-9,115,-9v7,0,55,13,31,30", w: 312 }, "‹": { d: "64,-107v9,17,86,17,87,43v0,11,-4,16,-13,16v-36,-11,-70,-22,-109,-31v-19,-4,-18,-14,-9,-36v59,-56,93,-84,101,-84v17,0,19,20,13,29", w: 159 }, "›": { d: "41,-181v26,27,112,44,70,91r-82,60v-20,3,-25,-23,-13,-32r70,-51r-66,-46v-5,-6,-4,-28,5,-29v4,2,9,4,16,7", w: 137 }, "": { d: "74,-74v-6,-24,-70,8,-68,-27v0,-6,6,-20,20,-18v44,6,45,-9,42,-49v7,-40,26,-114,90,-104v48,-2,63,-1,90,30v11,25,4,14,2,44v-7,17,-54,9,-49,-7r8,-21v-5,-13,-22,-9,-43,-11v-56,-6,-63,45,-67,92v-2,21,5,23,22,22v37,-1,80,-9,113,-1v13,31,-9,82,-22,106v-13,10,-26,-6,-22,-25r11,-46v0,-3,-2,-6,-6,-6v-19,0,-47,3,-83,9v-6,1,-9,4,-8,11r12,59v-1,9,-11,30,-23,18v-18,-18,-15,-59,-19,-76", w: 272 }, "": { d: "43,-61v-21,4,-36,2,-39,-15v-4,-35,41,-8,34,-47v4,-59,12,-99,46,-124v11,-42,157,-47,149,13v1,7,-7,15,-13,15v-18,-7,-19,-26,-47,-23v-34,3,-65,6,-79,37v-12,27,-22,52,-21,91v13,9,31,-11,45,-4v32,-15,50,-6,94,-13v12,-30,19,-79,36,-133v1,-5,5,-8,12,-8v44,18,-18,106,-12,144v-9,22,-1,73,-16,104v2,28,-23,28,-37,16v1,-26,9,-48,11,-75v0,-6,-3,-9,-9,-9v-43,0,-83,8,-119,24v8,40,17,33,-7,56v-20,-9,-21,-19,-28,-49", w: 283 }, "‡": { d: "102,-284v16,2,42,-2,33,18v-7,15,-42,1,-38,30v3,3,31,1,30,11v4,15,-29,19,-36,24v-2,18,-4,24,-16,29r-25,-26v-25,7,-53,3,-42,-25v4,-10,70,0,51,-22v-17,4,-41,12,-39,-15v-5,-16,39,-18,44,-20v4,-2,7,-10,10,-24v19,-3,23,6,28,20", w: 145 }, "∙": { d: "57,-77v6,18,-7,21,-19,23v-34,6,-25,-40,-9,-43v18,-3,29,8,28,20", w: 67 }, "‚": { d: "25,63v-26,21,-48,-2,-22,-24v14,-12,35,-40,35,-69v3,-2,3,-11,12,-9v35,17,5,88,-25,102", w: 97 }, "„": { d: "25,63v-26,21,-48,-2,-22,-24v11,-9,36,-41,35,-69v3,-2,4,-12,12,-9v36,14,5,89,-25,102xm84,64v-24,20,-45,-1,-21,-24v21,-20,32,-35,35,-69v3,-2,3,-11,12,-9v36,17,9,86,-26,102", w: 135 }, "‰": { d: "398,-131v58,-1,87,13,72,65v-1,30,-66,63,-99,65v-56,3,-99,-58,-62,-102v2,2,5,2,8,2v20,-16,51,-17,81,-30xm202,-279v33,0,94,-24,95,18v-7,31,-33,27,-54,55v-36,32,-71,74,-112,99v-18,18,-40,34,-51,58v-19,14,-25,37,-56,40v-17,2,-25,-29,-10,-40v15,-11,40,-37,52,-52r87,-72v-51,13,-100,6,-116,-27v1,-5,-6,-30,-9,-36v-3,-5,22,-41,27,-39v29,2,16,34,5,49v0,15,14,23,42,23v42,0,59,-31,28,-38v-17,-4,-53,3,-50,-23v0,-7,1,-12,4,-16v16,-9,36,4,49,5v0,0,23,-4,69,-4xm222,-118v33,-2,55,18,50,57v-29,36,-48,45,-96,50v-27,-5,-56,-17,-58,-51v13,-37,64,-43,104,-56xm335,-61v13,44,101,7,108,-31v-11,-3,-20,-4,-30,-4v-18,-1,-82,18,-78,35xm225,-244v-18,0,-29,-1,-46,3v7,15,6,28,0,43v15,-14,34,-30,46,-46xm164,-53v26,5,59,-10,76,-26v-17,-16,-49,2,-67,14v1,8,-8,6,-9,12", w: 485 }, "Â": { d: "161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm202,-219v-27,-6,-40,-26,-61,-37v-21,7,-39,46,-65,23v-2,-4,-3,-10,-4,-14v19,-4,43,-32,61,-43v27,6,40,22,62,37v12,8,18,17,18,25v0,6,-3,9,-11,9" }, "Ê": { d: "49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm199,-211v-27,-6,-39,-26,-60,-37v-21,7,-40,47,-65,22v-2,-7,-2,-7,-4,-13v18,-5,44,-31,61,-43v27,6,41,22,62,37v12,9,18,17,18,25v0,6,-4,9,-12,9", w: 252 }, "Á": { d: "161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm84,-250v31,-5,83,-53,100,-31v0,5,-11,15,-35,28v-16,5,-51,28,-53,25v-14,1,-16,-11,-12,-22" }, "Ë": { d: "49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-17,41,-17,51v55,0,112,-21,169,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-3,-21,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm191,-236v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm95,-261v7,3,29,9,28,18v0,7,-9,17,-18,17v-18,0,-26,-25,-10,-35", w: 252 }, "È": { d: "49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm184,-236v6,9,5,13,0,23v-28,-7,-62,-21,-100,-41v-3,-2,-3,-27,5,-23v34,11,60,25,95,41", w: 252 }, "Í": { d: "26,-5v-9,-6,-9,-12,-9,-36v0,-71,7,-119,21,-144v8,-13,14,-20,19,-20v28,19,-7,89,-10,120v-2,21,-8,47,-14,76v-2,1,-2,0,-7,4xm6,-233v31,-6,83,-53,101,-31v2,11,-80,53,-89,53v-14,1,-14,-11,-12,-22", w: 104 }, "Î": { d: "53,-9v-15,7,-16,-3,-16,-32v0,-71,7,-119,21,-144v8,-13,14,-20,19,-20v28,19,-7,89,-10,120v-2,21,-8,47,-14,76xm137,-209v-27,-6,-40,-26,-61,-37v-8,0,-9,4,-13,10v-11,13,-50,37,-56,0v18,-5,43,-32,61,-43v28,5,40,21,62,36v12,9,18,17,18,25v0,6,-4,9,-11,9", w: 144 }, "Ï": { d: "33,-5v-9,-6,-9,-12,-9,-36v0,-71,8,-119,22,-144v8,-13,14,-20,19,-20v27,20,-11,87,-10,120r-15,76v-1,1,-4,2,-7,4xm111,-222v0,8,-4,12,-12,12v-18,0,-19,-19,-16,-33v18,-1,29,1,28,21xm15,-247v8,2,29,9,28,17v0,21,-37,24,-36,1v0,-7,2,-13,8,-18", w: 110 }, "Ì": { d: "33,-5v-9,-6,-9,-12,-9,-36v0,-71,8,-119,22,-144v8,-13,14,-20,19,-20v27,20,-11,87,-10,120r-15,76v-1,1,-4,2,-7,4xm72,-247v7,6,55,15,36,40v-28,-7,-61,-21,-99,-41v-3,-2,-3,-27,5,-23v18,3,41,17,58,24", w: 111 }, "Ó": { d: "62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm142,-250v27,-11,47,-32,59,-14v2,11,-80,53,-89,53v-13,1,-15,-11,-12,-21v10,-5,24,-11,42,-18", w: 273 }, "Ô": { d: "62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm157,-282v17,18,52,34,54,63v-24,12,-52,-36,-53,-29r-42,34v-23,-4,-6,-31,5,-34v1,1,27,-37,36,-34", w: 273 }, "": { d: "231,-188v31,-74,91,-99,188,-116v28,1,6,39,1,51v-20,52,-100,91,-148,126v2,4,6,7,12,10v42,-42,181,-41,166,46v-1,8,-19,8,-28,5v-43,1,-168,42,-106,86v15,16,33,28,61,39v0,10,0,17,-6,22v-8,8,-35,26,-78,51v-52,7,-128,22,-154,-17v-23,-35,-99,-35,-117,-77v-29,-68,25,-149,75,-175v44,-23,89,5,135,13v14,-26,2,-39,-1,-64", w: 461 }, "Ò": { d: "62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm161,-262v14,10,52,13,37,41v-28,-7,-62,-21,-100,-41v-3,-3,-3,-26,5,-24v16,5,42,17,58,24", w: 273 }, "Ú": { d: "281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm194,-265v3,-1,11,4,11,6v3,12,-81,52,-89,54v-14,0,-13,-9,-12,-22", w: 262 }, "Û": { d: "281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm150,-266v24,11,58,27,73,46v0,5,-3,6,-10,6v-28,2,-61,-30,-63,-25v-10,0,-57,40,-69,23v3,-10,-8,-15,8,-19v17,-1,34,-29,61,-31", w: 262 }, "Ù": { d: "281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm151,-243v14,10,54,14,37,41v-28,-7,-61,-22,-99,-42v-3,-2,-4,-25,4,-23v16,5,42,17,58,24", w: 262 }, "ı": { d: "43,-103v21,4,16,56,11,100v-7,2,-11,1,-20,-5v0,-7,-13,-18,-11,-25v4,-23,-3,-68,20,-70", w: 80 }, "ˆ": { d: "144,-220v-29,0,-41,-27,-63,-39v-8,0,-11,5,-15,11v-17,12,-32,31,-54,13v-2,-5,-3,-9,-4,-14v20,-5,45,-33,64,-45v28,6,43,23,65,38v12,9,19,19,19,27v0,6,-4,9,-12,9", w: 165 }, "˜": { d: "47,-300v26,-21,57,19,72,23v4,0,16,-5,36,-14v24,-10,22,-16,32,-13v3,12,-7,11,-7,23v-27,21,-48,32,-62,32v-3,2,-52,-27,-51,-31v-12,-2,-34,40,-54,33v-4,-13,-8,-18,1,-24v5,-7,16,-15,33,-29", w: 186 }, "¯": { d: "63,-295v28,-7,73,10,105,7v11,1,6,8,5,19v-37,21,-72,11,-136,11v-23,0,-31,-14,-27,-36v12,-15,40,0,53,-1", w: 183 }, "˘": { d: "65,-269v20,-11,45,-31,74,-36v20,30,-42,40,-59,66v-5,6,-11,8,-18,8v-8,-3,-45,-32,-51,-54v5,-24,14,-13,34,1", w: 158 }, "˙": { d: "23,-302v15,-13,32,1,32,18v1,22,-36,29,-39,4v0,0,3,-7,7,-22", w: 70 }, "˚": { d: "23,-225v-43,-24,-11,-85,41,-78v16,2,31,4,46,17v32,54,-41,86,-87,61xm33,-257v2,20,57,11,57,-6v0,-6,-11,-9,-33,-12v-14,-2,-24,13,-24,18", w: 123 }, "¸": { d: "74,16v32,2,49,14,55,36v-3,7,-14,31,-29,33v-28,4,-57,11,-88,14v-19,-6,-13,-31,8,-33v20,-1,59,-5,73,-14v-17,-14,-68,8,-53,-37v9,-10,2,-28,24,-30v8,8,13,17,10,31", w: 129 }, "˝": { d: "91,-249v15,-11,38,-53,57,-29v0,9,0,14,-3,23v-2,3,-20,22,-54,55v-5,5,-10,8,-16,8v-17,2,-6,-22,-7,-31v-1,0,-2,0,-4,1v-17,21,-29,31,-50,27v-5,-18,-3,-15,3,-27v23,-27,40,-46,48,-59v7,-12,31,3,29,9v-1,14,-3,24,-13,31v4,4,9,-1,10,-8", w: 151 }, "˛": { d: "82,-5v-8,12,-16,55,-21,75v0,4,2,7,7,7v6,0,22,-7,50,-20v8,0,12,7,12,20v-2,22,-6,14,-27,30v-15,12,-26,16,-30,16v-47,-8,-59,-14,-56,-75v8,-27,12,-54,25,-77v19,-21,35,15,40,24", w: 138 }, "ˇ": { d: "39,-286v33,46,63,-4,96,-16v6,0,9,6,9,19v0,24,-49,46,-77,46v-32,0,-52,-28,-59,-48v0,-25,23,-17,31,-1", w: 153 }, "\r": { w: 179 } } }), function () { + "use strict"; + function AssertException(message) { this.message = message } function assert(exp, message) { if (!exp) throw new AssertException(message) } function getCenterX(box) { return box.x + box.width / 2 } function getCenterY(box) { return box.y + box.height / 2 } var DIAGRAM_MARGIN = 10, ACTOR_MARGIN = 10, ACTOR_PADDING = 10, SIGNAL_MARGIN = 5, SIGNAL_PADDING = 5, NOTE_MARGIN = 10, NOTE_PADDING = 5, NOTE_OVERLAP = 15, TITLE_MARGIN = 0, TITLE_PADDING = 5, SELF_SIGNAL_WIDTH = 20, PLACEMENT = Diagram.PLACEMENT, LINETYPE = Diagram.LINETYPE, ARROWTYPE = Diagram.ARROWTYPE, LINE = { stroke: "#000", "stroke-width": 2 }, RECT = { fill: "#fff" }; AssertException.prototype.toString = function () { return "AssertException: " + this.message }, String.prototype.trim || (String.prototype.trim = function () { return this.replace(/^\s+|\s+$/g, "") }), Raphael.fn.line = function (x1, y1, x2, y2) { return assert(_.all([x1, x2, y1, y2], _.isFinite), "x1,x2,y1,y2 must be numeric"), this.path("M{0},{1} L{2},{3}", x1, y1, x2, y2) }, Raphael.fn.wobble = function (x1, y1, x2, y2) { assert(_.all([x1, x2, y1, y2], _.isFinite), "x1,x2,y1,y2 must be numeric"); var wobble = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)) / 25, r1 = Math.random(), r2 = Math.random(), xfactor = Math.random() > .5 ? wobble : -wobble, yfactor = Math.random() > .5 ? wobble : -wobble, p1 = { x: (x2 - x1) * r1 + x1 + xfactor, y: (y2 - y1) * r1 + y1 + yfactor }, p2 = { x: (x2 - x1) * r2 + x1 - xfactor, y: (y2 - y1) * r2 + y1 - yfactor }; return "C" + p1.x + "," + p1.y + " " + p2.x + "," + p2.y + " " + x2 + "," + y2 }, Raphael.fn.text_bbox = function (text, font) { var p; font._obj ? p = this.print_center(0, 0, text, font._obj, font["font-size"]) : (p = this.text(0, 0, text), p.attr(font)); var bb = p.getBBox(); return p.remove(), bb }, Raphael.fn.handRect = function (x, y, w, h) { return assert(_.all([x, y, w, h], _.isFinite), "x, y, w, h must be numeric"), this.path("M" + x + "," + y + this.wobble(x, y, x + w, y) + this.wobble(x + w, y, x + w, y + h) + this.wobble(x + w, y + h, x, y + h) + this.wobble(x, y + h, x, y)).attr(RECT) }, Raphael.fn.handLine = function (x1, y1, x2, y2) { return assert(_.all([x1, x2, y1, y2], _.isFinite), "x1,x2,y1,y2 must be numeric"), this.path("M" + x1 + "," + y1 + this.wobble(x1, y1, x2, y2)) }, Raphael.fn.print_center = function (x, y, string, font, size, letter_spacing) { var path = this.print(x, y, string, font, size, "baseline", letter_spacing), bb = path.getBBox(), dx = x - bb.x - bb.width / 2, dy = y - bb.y - bb.height / 2, m = new Raphael.matrix; return m.translate(dx, dy), path.attr("path", Raphael.mapPath(path.attr("path"), m)) }; var BaseTheme = function (diagram) { this.init(diagram) }; _.extend(BaseTheme.prototype, { init: function (diagram) { this.diagram = diagram, this._paper = void 0, this._font = void 0, this._title = void 0, this._actors_height = 0, this._signals_height = 0; var a = this.arrow_types = {}; a[ARROWTYPE.FILLED] = "block", a[ARROWTYPE.OPEN] = "open"; var l = this.line_types = {}; l[LINETYPE.SOLID] = "", l[LINETYPE.DOTTED] = "-" }, init_paper: function (container) { this._paper = new Raphael(container, 320, 200) }, init_font: function () { }, draw_line: function (x1, y1, x2, y2) { return this._paper.line(x1, y1, x2, y2) }, draw_rect: function (x, y, w, h) { return this._paper.rect(x, y, w, h) }, draw: function (container) { var diagram = this.diagram; this.init_paper(container), this.init_font(), this.layout(); var title_height = this._title ? this._title.height : 0; this._paper.setStart(), this._paper.setSize(diagram.width, diagram.height); var y = DIAGRAM_MARGIN + title_height; this.draw_title(), this.draw_actors(y), this.draw_signals(y + this._actors_height), this._paper.setFinish() }, layout: function () { function actor_ensure_distance(a, b, d) { assert(b > a, "a must be less than or equal to b"), 0 > a ? (b = actors[b], b.x = Math.max(d - b.width / 2, b.x)) : b >= actors.length ? (a = actors[a], a.padding_right = Math.max(d, a.padding_right)) : (a = actors[a], a.distances[b] = Math.max(d, a.distances[b] ? a.distances[b] : 0)) } var diagram = this.diagram, paper = this._paper, font = this._font, actors = diagram.actors, signals = diagram.signals; if (diagram.width = 0, diagram.height = 0, diagram.title) { var title = this._title = {}, bb = paper.text_bbox(diagram.title, font); title.text_bb = bb, title.message = diagram.title, title.width = bb.width + 2 * (TITLE_PADDING + TITLE_MARGIN), title.height = bb.height + 2 * (TITLE_PADDING + TITLE_MARGIN), title.x = DIAGRAM_MARGIN, title.y = DIAGRAM_MARGIN, diagram.width += title.width, diagram.height += title.height } _.each(actors, function (a) { var bb = paper.text_bbox(a.name, font); a.text_bb = bb, a.x = 0, a.y = 0, a.width = bb.width + 2 * (ACTOR_PADDING + ACTOR_MARGIN), a.height = bb.height + 2 * (ACTOR_PADDING + ACTOR_MARGIN), a.distances = [], a.padding_right = 0, this._actors_height = Math.max(a.height, this._actors_height) }, this), _.each(signals, function (s) { var a, b, bb = paper.text_bbox(s.message, font); s.text_bb = bb, s.width = bb.width, s.height = bb.height; var extra_width = 0; if ("Signal" == s.type) s.width += 2 * (SIGNAL_MARGIN + SIGNAL_PADDING), s.height += 2 * (SIGNAL_MARGIN + SIGNAL_PADDING), s.isSelf() ? (a = s.actorA.index, b = a + 1, s.width += SELF_SIGNAL_WIDTH) : (a = Math.min(s.actorA.index, s.actorB.index), b = Math.max(s.actorA.index, s.actorB.index)); else { if ("Note" != s.type) throw new Error("Unhandled signal type:" + s.type); if (s.width += 2 * (NOTE_MARGIN + NOTE_PADDING), s.height += 2 * (NOTE_MARGIN + NOTE_PADDING), extra_width = 2 * ACTOR_MARGIN, s.placement == PLACEMENT.LEFTOF) b = s.actor.index, a = b - 1; else if (s.placement == PLACEMENT.RIGHTOF) a = s.actor.index, b = a + 1; else if (s.placement == PLACEMENT.OVER && s.hasManyActors()) a = Math.min(s.actor[0].index, s.actor[1].index), b = Math.max(s.actor[0].index, s.actor[1].index), extra_width = -(2 * NOTE_PADDING + 2 * NOTE_OVERLAP); else if (s.placement == PLACEMENT.OVER) return a = s.actor.index, actor_ensure_distance(a - 1, a, s.width / 2), actor_ensure_distance(a, a + 1, s.width / 2), this._signals_height += s.height, void 0 } actor_ensure_distance(a, b, s.width + extra_width), this._signals_height += s.height }, this); var actors_x = 0; return _.each(actors, function (a) { a.x = Math.max(actors_x, a.x), _.each(a.distances, function (distance, b) { "undefined" != typeof distance && (b = actors[b], distance = Math.max(distance, a.width / 2, b.width / 2), b.x = Math.max(b.x, a.x + a.width / 2 + distance - b.width / 2)) }), actors_x = a.x + a.width + a.padding_right }, this), diagram.width = Math.max(actors_x, diagram.width), diagram.width += 2 * DIAGRAM_MARGIN, diagram.height += 2 * DIAGRAM_MARGIN + 2 * this._actors_height + this._signals_height, this }, draw_title: function () { var title = this._title; title && this.draw_text_box(title, title.message, TITLE_MARGIN, TITLE_PADDING, this._font) }, draw_actors: function (offsetY) { var y = offsetY; _.each(this.diagram.actors, function (a) { this.draw_actor(a, y, this._actors_height), this.draw_actor(a, y + this._actors_height + this._signals_height, this._actors_height); var aX = getCenterX(a), line = this.draw_line(aX, y + this._actors_height - ACTOR_MARGIN, aX, y + this._actors_height + ACTOR_MARGIN + this._signals_height); line.attr(LINE) }, this) }, draw_actor: function (actor, offsetY, height) { actor.y = offsetY, actor.height = height, this.draw_text_box(actor, actor.name, ACTOR_MARGIN, ACTOR_PADDING, this._font) }, draw_signals: function (offsetY) { var y = offsetY; _.each(this.diagram.signals, function (s) { "Signal" == s.type ? s.isSelf() ? this.draw_self_signal(s, y) : this.draw_signal(s, y) : "Note" == s.type && this.draw_note(s, y), y += s.height }, this) }, draw_self_signal: function (signal, offsetY) { assert(signal.isSelf(), "signal must be a self signal"); var text_bb = signal.text_bb, aX = getCenterX(signal.actorA), x = aX + SELF_SIGNAL_WIDTH + SIGNAL_PADDING - text_bb.x, y = offsetY + signal.height / 2; this.draw_text(x, y, signal.message, this._font); var line, attr = _.extend({}, LINE, { "stroke-dasharray": this.line_types[signal.linetype] }), y1 = offsetY + SIGNAL_MARGIN, y2 = y1 + signal.height - SIGNAL_MARGIN; line = this.draw_line(aX, y1, aX + SELF_SIGNAL_WIDTH, y1), line.attr(attr), line = this.draw_line(aX + SELF_SIGNAL_WIDTH, y1, aX + SELF_SIGNAL_WIDTH, y2), line.attr(attr), line = this.draw_line(aX + SELF_SIGNAL_WIDTH, y2, aX, y2), attr["arrow-end"] = this.arrow_types[signal.arrowtype] + "-wide-long", line.attr(attr) }, draw_signal: function (signal, offsetY) { var aX = getCenterX(signal.actorA), bX = getCenterX(signal.actorB), x = (bX - aX) / 2 + aX, y = offsetY + SIGNAL_MARGIN + 2 * SIGNAL_PADDING; this.draw_text(x, y, signal.message, this._font), y = offsetY + signal.height - SIGNAL_MARGIN - SIGNAL_PADDING; var line = this.draw_line(aX, y, bX, y); line.attr(LINE), line.attr({ "arrow-end": this.arrow_types[signal.arrowtype] + "-wide-long", "stroke-dasharray": this.line_types[signal.linetype] }) }, draw_note: function (note, offsetY) { note.y = offsetY; var actorA = note.hasManyActors() ? note.actor[0] : note.actor, aX = getCenterX(actorA); switch (note.placement) { case PLACEMENT.RIGHTOF: note.x = aX + ACTOR_MARGIN; break; case PLACEMENT.LEFTOF: note.x = aX - ACTOR_MARGIN - note.width; break; case PLACEMENT.OVER: if (note.hasManyActors()) { var bX = getCenterX(note.actor[1]), overlap = NOTE_OVERLAP + NOTE_PADDING; note.x = aX - overlap, note.width = bX + overlap - note.x } else note.x = aX - note.width / 2; break; default: throw new Error("Unhandled note placement:" + note.placement) }this.draw_text_box(note, note.message, NOTE_MARGIN, NOTE_PADDING, this._font) }, draw_text: function (x, y, text, font) { var t, paper = this._paper, f = font || {}; f._obj ? t = paper.print_center(x, y, text, f._obj, f["font-size"]) : (t = paper.text(x, y, text), t.attr(f)); var bb = t.getBBox(), r = paper.rect(bb.x, bb.y, bb.width, bb.height); r.attr({ fill: "#fff", stroke: "none" }), t.toFront() }, draw_text_box: function (box, text, margin, padding, font) { var x = box.x + margin, y = box.y + margin, w = box.width - 2 * margin, h = box.height - 2 * margin, rect = this.draw_rect(x, y, w, h); rect.attr(LINE), x = getCenterX(box), y = getCenterY(box), this.draw_text(x, y, text, font) } }); var RaphaëlTheme = function (diagram) { this.init(diagram) }; _.extend(RaphaëlTheme.prototype, BaseTheme.prototype, { init_font: function () { this._font = { "font-size": 16, "font-family": "Andale Mono, monospace" } } }); var HandRaphaëlTheme = function (diagram) { this.init(diagram) }; _.extend(HandRaphaëlTheme.prototype, BaseTheme.prototype, { init_font: function () { this._font = { "font-size": 16, "font-family": "daniel" }, this._font._obj = this._paper.getFont("daniel") }, draw_line: function (x1, y1, x2, y2) { return this._paper.handLine(x1, y1, x2, y2) }, draw_rect: function (x, y, w, h) { return this._paper.handRect(x, y, w, h) } }); var themes = { simple: RaphaëlTheme, hand: HandRaphaëlTheme }; Diagram.prototype.drawSVG = function (container, options) { var default_options = { theme: "hand" }; if (options = _.defaults(options || {}, default_options), !(options.theme in themes)) throw new Error("Unsupported theme: " + options.theme); var drawing = new themes[options.theme](this); drawing.draw(container) } +}(); +// flowchart, v1.3.4 +// Copyright (c)2014 Adriano Raiano (adrai). +// Distributed under MIT license +// http://adrai.github.io/flowchart.js +!function () { function a(b, c) { if (!b || "function" == typeof b) return c; var d = {}; for (var e in c) d[e] = c[e]; for (e in b) b[e] && (d[e] = "object" == typeof d[e] ? a(d[e], b[e]) : b[e]); return d } function b(a, b) { if ("function" == typeof Object.create) a.super_ = b, a.prototype = Object.create(b.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }); else { a.super_ = b; var c = function () { }; c.prototype = b.prototype, a.prototype = new c, a.prototype.constructor = a } } function c(a, b, c) { var d, e, f = "M{0},{1}"; for (d = 2, e = 2 * c.length + 2; e > d; d += 2)f += " L{" + d + "},{" + (d + 1) + "}"; var g = [b.x, b.y]; for (d = 0, e = c.length; e > d; d++)g.push(c[d].x), g.push(c[d].y); var h = a.paper.path(f, g); h.attr("stroke", a.options["element-color"]), h.attr("stroke-width", a.options["line-width"]); var i = a.options.font, j = a.options["font-family"], k = a.options["font-weight"]; return i && h.attr({ font: i }), j && h.attr({ "font-family": j }), k && h.attr({ "font-weight": k }), h } function d(a, b, c, d) { var e, f; "[object Array]" !== Object.prototype.toString.call(c) && (c = [c]); var g = "M{0},{1}"; for (e = 2, f = 2 * c.length + 2; f > e; e += 2)g += " L{" + e + "},{" + (e + 1) + "}"; var h = [b.x, b.y]; for (e = 0, f = c.length; f > e; e++)h.push(c[e].x), h.push(c[e].y); var i = a.paper.path(g, h); i.attr({ stroke: a.options["line-color"], "stroke-width": a.options["line-width"], "arrow-end": a.options["arrow-end"] }); var j = a.options.font, k = a.options["font-family"], l = a.options["font-weight"]; if (j && i.attr({ font: j }), k && i.attr({ "font-family": k }), l && i.attr({ "font-weight": l }), d) { var m = !1, n = a.paper.text(0, 0, d), o = !1, p = c[0]; b.y === p.y && (o = !0); var q = 0, r = 0; m ? (q = b.x > p.x ? b.x - (b.x - p.x) / 2 : p.x - (p.x - b.x) / 2, r = b.y > p.y ? b.y - (b.y - p.y) / 2 : p.y - (p.y - b.y) / 2, o ? (q -= n.getBBox().width / 2, r -= a.options["text-margin"]) : (q += a.options["text-margin"], r -= n.getBBox().height / 2)) : (q = b.x, r = b.y, o ? (q += a.options["text-margin"] / 2, r -= a.options["text-margin"]) : (q += a.options["text-margin"] / 2, r += a.options["text-margin"])), n.attr({ "text-anchor": "start", "font-size": a.options["font-size"], fill: a.options["font-color"], x: q, y: r }), j && n.attr({ font: j }), k && n.attr({ "font-family": k }), l && n.attr({ "font-weight": l }) } return i } function e(a, b, c, d, e, f, g, h) { var i, j, k, l, m, n = { x: null, y: null, onLine1: !1, onLine2: !1 }; return i = (h - f) * (c - a) - (g - e) * (d - b), 0 === i ? n : (j = b - f, k = a - e, l = (g - e) * j - (h - f) * k, m = (c - a) * j - (d - b) * k, j = l / i, k = m / i, n.x = a + j * (c - a), n.y = b + j * (d - b), j > 0 && 1 > j && (n.onLine1 = !0), k > 0 && 1 > k && (n.onLine2 = !0), n) } function f(a, b) { b = b || {}, this.paper = new Raphael(a), this.options = r.defaults(b, q), this.symbols = [], this.lines = [], this.start = null } function g(a, b, c) { this.chart = a, this.group = this.chart.paper.set(), this.symbol = c, this.connectedTo = [], this.symbolType = b.symbolType, this.flowstate = b.flowstate || "future", this.next_direction = b.next && b.direction_next ? b.direction_next : void 0, this.text = this.chart.paper.text(0, 0, b.text), b.key && (this.text.node.id = b.key + "t"), this.text.node.setAttribute("class", this.getAttr("class") + "t"), this.text.attr({ "text-anchor": "start", x: this.getAttr("text-margin"), fill: this.getAttr("font-color"), "font-size": this.getAttr("font-size") }); var d = this.getAttr("font"), e = this.getAttr("font-family"), f = this.getAttr("font-weight"); d && this.text.attr({ font: d }), e && this.text.attr({ "font-family": e }), f && this.text.attr({ "font-weight": f }), b.link && this.text.attr("href", b.link), b.target && this.text.attr("target", b.target); var g = this.getAttr("maxWidth"); if (g) { for (var h = b.text.split(" "), i = "", j = 0, k = h.length; k > j; j++) { var l = h[j]; this.text.attr("text", i + " " + l), i += this.text.getBBox().width > g ? "\n" + l : " " + l } this.text.attr("text", i.substring(1)) } if (this.group.push(this.text), c) { var m = this.getAttr("text-margin"); c.attr({ fill: this.getAttr("fill"), stroke: this.getAttr("element-color"), "stroke-width": this.getAttr("line-width"), width: this.text.getBBox().width + 2 * m, height: this.text.getBBox().height + 2 * m }), c.node.setAttribute("class", this.getAttr("class")), b.link && c.attr("href", b.link), b.target && c.attr("target", b.target), b.key && (c.node.id = b.key), this.group.push(c), c.insertBefore(this.text), this.text.attr({ y: c.getBBox().height / 2 }), this.initialize() } } function h(a, b) { var c = a.paper.rect(0, 0, 0, 0, 20); b = b || {}, b.text = b.text || "Start", g.call(this, a, b, c) } function i(a, b) { var c = a.paper.rect(0, 0, 0, 0, 20); b = b || {}, b.text = b.text || "End", g.call(this, a, b, c) } function j(a, b) { var c = a.paper.rect(0, 0, 0, 0); b = b || {}, g.call(this, a, b, c) } function k(a, b) { var c = a.paper.rect(0, 0, 0, 0); b = b || {}, g.call(this, a, b, c), c.attr({ width: this.text.getBBox().width + 4 * this.getAttr("text-margin") }), this.text.attr({ x: 2 * this.getAttr("text-margin") }); var d = a.paper.rect(0, 0, 0, 0); d.attr({ x: this.getAttr("text-margin"), stroke: this.getAttr("element-color"), "stroke-width": this.getAttr("line-width"), width: this.text.getBBox().width + 2 * this.getAttr("text-margin"), height: this.text.getBBox().height + 2 * this.getAttr("text-margin"), fill: this.getAttr("fill") }), b.key && (d.node.id = b.key + "i"); var e = this.getAttr("font"), f = this.getAttr("font-family"), h = this.getAttr("font-weight"); e && d.attr({ font: e }), f && d.attr({ "font-family": f }), h && d.attr({ "font-weight": h }), b.link && d.attr("href", b.link), b.target && d.attr("target", b.target), this.group.push(d), d.insertBefore(this.text), this.initialize() } function l(a, b) { b = b || {}, g.call(this, a, b), this.textMargin = this.getAttr("text-margin"), this.text.attr({ x: 3 * this.textMargin }); var d = this.text.getBBox().width + 4 * this.textMargin, e = this.text.getBBox().height + 2 * this.textMargin, f = this.textMargin, h = e / 2, i = { x: f, y: h }, j = [{ x: f - this.textMargin, y: e }, { x: f - this.textMargin + d, y: e }, { x: f - this.textMargin + d + 2 * this.textMargin, y: 0 }, { x: f - this.textMargin + 2 * this.textMargin, y: 0 }, { x: f, y: h }], k = c(a, i, j); k.attr({ stroke: this.getAttr("element-color"), "stroke-width": this.getAttr("line-width"), fill: this.getAttr("fill") }), b.link && k.attr("href", b.link), b.target && k.attr("target", b.target), b.key && (k.node.id = b.key), k.node.setAttribute("class", this.getAttr("class")), this.text.attr({ y: k.getBBox().height / 2 }), this.group.push(k), k.insertBefore(this.text), this.initialize() } function m(a, b) { b = b || {}, g.call(this, a, b), this.textMargin = this.getAttr("text-margin"), this.yes_direction = "bottom", this.no_direction = "right", b.yes && b.direction_yes && b.no && !b.direction_no ? "right" === b.direction_yes ? (this.no_direction = "bottom", this.yes_direction = "right") : (this.no_direction = "right", this.yes_direction = "bottom") : b.yes && !b.direction_yes && b.no && b.direction_no ? "right" === b.direction_no ? (this.yes_direction = "bottom", this.no_direction = "right") : (this.yes_direction = "right", this.no_direction = "bottom") : (this.yes_direction = "bottom", this.no_direction = "right"), this.yes_direction = this.yes_direction || "bottom", this.no_direction = this.no_direction || "right", this.text.attr({ x: 2 * this.textMargin }); var d = this.text.getBBox().width + 3 * this.textMargin; d += d / 2; var e = this.text.getBBox().height + 2 * this.textMargin; e += e / 2, e = Math.max(.5 * d, e); var f = d / 4, h = e / 4; this.text.attr({ x: f + this.textMargin / 2 }); var i = { x: f, y: h }, j = [{ x: f - d / 4, y: h + e / 4 }, { x: f - d / 4 + d / 2, y: h + e / 4 + e / 2 }, { x: f - d / 4 + d, y: h + e / 4 }, { x: f - d / 4 + d / 2, y: h + e / 4 - e / 2 }, { x: f - d / 4, y: h + e / 4 }], k = c(a, i, j); k.attr({ stroke: this.getAttr("element-color"), "stroke-width": this.getAttr("line-width"), fill: this.getAttr("fill") }), b.link && k.attr("href", b.link), b.target && k.attr("target", b.target), b.key && (k.node.id = b.key), k.node.setAttribute("class", this.getAttr("class")), this.text.attr({ y: k.getBBox().height / 2 }), this.group.push(k), k.insertBefore(this.text), this.initialize() } function n(a) { function b(a) { var b = a.indexOf("(") + 1, c = a.indexOf(")"); return b >= 0 && c >= 0 ? d.symbols[a.substring(0, b - 1)] : d.symbols[a] } function c(a) { var b = "next", c = a.indexOf("(") + 1, d = a.indexOf(")"); return c >= 0 && d >= 0 && (b = D.substring(c, d), b.indexOf(",") < 0 && "yes" !== b && "no" !== b && (b = "next, " + b)), b } a = a || "", a = a.trim(); for (var d = { symbols: {}, start: null, drawSVG: function (a, b) { function c(a) { if (g[a.key]) return g[a.key]; switch (a.symbolType) { case "start": g[a.key] = new h(e, a); break; case "end": g[a.key] = new i(e, a); break; case "operation": g[a.key] = new j(e, a); break; case "inputoutput": g[a.key] = new l(e, a); break; case "subroutine": g[a.key] = new k(e, a); break; case "condition": g[a.key] = new m(e, a); break; default: return new Error("Wrong symbol type!") }return g[a.key] } var d = this; this.diagram && this.diagram.clean(); var e = new f(a, b); this.diagram = e; var g = {}; !function n(a, b, f) { var g = c(a); return d.start === a ? e.startWith(g) : b && f && !b.pathOk && (b instanceof m ? (f.yes === a && b.yes(g), f.no === a && b.no(g)) : b.then(g)), g.pathOk ? g : (g instanceof m ? (a.yes && n(a.yes, g, a), a.no && n(a.no, g, a)) : a.next && n(a.next, g, a), g) }(this.start), e.render() }, clean: function () { this.diagram.clean() } }, e = [], g = 0, n = 1, o = a.length; o > n; n++)if ("\n" === a[n] && "\\" !== a[n - 1]) { var p = a.substring(g, n); g = n + 1, e.push(p.replace(/\\\n/g, "\n")) } g < a.length && e.push(a.substr(g)); for (var q = 1, r = e.length; r > q;) { var s = e[q]; s.indexOf(": ") < 0 && s.indexOf("(") < 0 && s.indexOf(")") < 0 && s.indexOf("->") < 0 && s.indexOf("=>") < 0 ? (e[q - 1] += "\n" + s, e.splice(q, 1), r--) : q++ } for (; e.length > 0;) { var t = e.splice(0, 1)[0]; if (t.indexOf("=>") >= 0) { var u, v = t.split("=>"), w = { key: v[0], symbolType: v[1], text: null, link: null, target: null, flowstate: null }; if (w.symbolType.indexOf(": ") >= 0 && (u = w.symbolType.split(": "), w.symbolType = u[0], w.text = u[1]), w.text && w.text.indexOf(":>") >= 0 ? (u = w.text.split(":>"), w.text = u[0], w.link = u[1]) : w.symbolType.indexOf(":>") >= 0 && (u = w.symbolType.split(":>"), w.symbolType = u[0], w.link = u[1]), w.symbolType.indexOf("\n") >= 0 && (w.symbolType = w.symbolType.split("\n")[0]), w.link) { var x = w.link.indexOf("[") + 1, y = w.link.indexOf("]"); x >= 0 && y >= 0 && (w.target = w.link.substring(x, y), w.link = w.link.substring(0, x - 1)) } if (w.text && w.text.indexOf("|") >= 0) { var z = w.text.split("|"); w.text = z[0], w.flowstate = z[1].trim() } d.symbols[w.key] = w } else if (t.indexOf("->") >= 0) for (var A = t.split("->"), B = 0, C = A.length; C > B; B++) { var D = A[B], E = b(D), F = c(D), G = null; if (F.indexOf(",") >= 0) { var H = F.split(","); F = H[0], G = H[1].trim() } if (d.start || (d.start = E), C > B + 1) { var I = A[B + 1]; E[F] = b(I), E["direction_" + F] = G, G = null } } } return d } Array.prototype.indexOf || (Array.prototype.indexOf = function (a) { "use strict"; if (null === this) throw new TypeError; var b = Object(this), c = b.length >>> 0; if (0 === c) return -1; var d = 0; if (arguments.length > 0 && (d = Number(arguments[1]), d != d ? d = 0 : 0 !== d && 1 / 0 != d && d != -1 / 0 && (d = (d > 0 || -1) * Math.floor(Math.abs(d)))), d >= c) return -1; for (var e = d >= 0 ? d : Math.max(c - Math.abs(d), 0); c > e; e++)if (e in b && b[e] === a) return e; return -1 }), Array.prototype.lastIndexOf || (Array.prototype.lastIndexOf = function (a) { "use strict"; if (null === this) throw new TypeError; var b = Object(this), c = b.length >>> 0; if (0 === c) return -1; var d = c; arguments.length > 1 && (d = Number(arguments[1]), d != d ? d = 0 : 0 !== d && d != 1 / 0 && d != -(1 / 0) && (d = (d > 0 || -1) * Math.floor(Math.abs(d)))); for (var e = d >= 0 ? Math.min(d, c - 1) : c - Math.abs(d); e >= 0; e--)if (e in b && b[e] === a) return e; return -1 }), String.prototype.trim || (String.prototype.trim = function () { return this.replace(/^\s+|\s+$/g, "") }); var o = this, p = {}; "undefined" != typeof module && module.exports ? module.exports = p : o.flowchart = o.flowchart || p; var q = { x: 0, y: 0, "line-width": 3, "line-length": 50, "text-margin": 10, "font-size": 14, "font-color": "black", "line-color": "black", "element-color": "black", fill: "white", "yes-text": "yes", "no-text": "no", "arrow-end": "block", "class": "flowchart", symbols: { start: {}, end: {}, condition: {}, inputoutput: {}, operation: {}, subroutine: {} } }, r = { defaults: a, inherits: b }; f.prototype.handle = function (a) { this.symbols.indexOf(a) <= -1 && this.symbols.push(a); var b = this; return a instanceof m ? (a.yes = function (c) { return a.yes_symbol = c, a.no_symbol && (a.pathOk = !0), b.handle(c) }, a.no = function (c) { return a.no_symbol = c, a.yes_symbol && (a.pathOk = !0), b.handle(c) }) : a.then = function (c) { return a.next = c, a.pathOk = !0, b.handle(c) }, a }, f.prototype.startWith = function (a) { return this.start = a, this.handle(a) }, f.prototype.render = function () { var a, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0; for (d = 0, e = this.symbols.length; e > d; d++)a = this.symbols[d], a.width > b && (b = a.width), a.height > c && (c = a.height); for (d = 0, e = this.symbols.length; e > d; d++)a = this.symbols[d], a.shiftX(this.options.x + (b - a.width) / 2 + this.options["line-width"]), a.shiftY(this.options.y + (c - a.height) / 2 + this.options["line-width"]); for (this.start.render(), d = 0, e = this.symbols.length; e > d; d++)a = this.symbols[d], a.renderLines(); for (f = this.maxXFromLine, d = 0, e = this.symbols.length; e > d; d++) { a = this.symbols[d]; var h = a.getX() + a.width, i = a.getY() + a.height; h > f && (f = h), i > g && (g = i) } this.paper.setSize(f + this.options["line-width"], g + this.options["line-width"]) }, f.prototype.clean = function () { if (this.paper) { var a = this.paper.canvas; a.parentNode.removeChild(a) } }, g.prototype.getAttr = function (a) { if (!this.chart) return void 0; var b, c = this.chart.options ? this.chart.options[a] : void 0, d = this.chart.options.symbols ? this.chart.options.symbols[this.symbolType][a] : void 0; return this.chart.options.flowstate && this.chart.options.flowstate[this.flowstate] && (b = this.chart.options.flowstate[this.flowstate][a]), b || d || c }, g.prototype.initialize = function () { this.group.transform("t" + this.getAttr("line-width") + "," + this.getAttr("line-width")), this.width = this.group.getBBox().width, this.height = this.group.getBBox().height }, g.prototype.getCenter = function () { return { x: this.getX() + this.width / 2, y: this.getY() + this.height / 2 } }, g.prototype.getX = function () { return this.group.getBBox().x }, g.prototype.getY = function () { return this.group.getBBox().y }, g.prototype.shiftX = function (a) { this.group.transform("t" + (this.getX() + a) + "," + this.getY()) }, g.prototype.setX = function (a) { this.group.transform("t" + a + "," + this.getY()) }, g.prototype.shiftY = function (a) { this.group.transform("t" + this.getX() + "," + (this.getY() + a)) }, g.prototype.setY = function (a) { this.group.transform("t" + this.getX() + "," + a) }, g.prototype.getTop = function () { var a = this.getY(), b = this.getX() + this.width / 2; return { x: b, y: a } }, g.prototype.getBottom = function () { var a = this.getY() + this.height, b = this.getX() + this.width / 2; return { x: b, y: a } }, g.prototype.getLeft = function () { var a = this.getY() + this.group.getBBox().height / 2, b = this.getX(); return { x: b, y: a } }, g.prototype.getRight = function () { var a = this.getY() + this.group.getBBox().height / 2, b = this.getX() + this.group.getBBox().width; return { x: b, y: a } }, g.prototype.render = function () { if (this.next) { var a = this.getAttr("line-length"); if ("right" === this.next_direction) { var b = this.getRight(); if (this.next.getLeft(), !this.next.isPositioned) { this.next.setY(b.y - this.next.height / 2), this.next.shiftX(this.group.getBBox().x + this.width + a); var c = this; !function e() { for (var b, d = !1, f = 0, g = c.chart.symbols.length; g > f; f++) { b = c.chart.symbols[f]; var h = Math.abs(b.getCenter().x - c.next.getCenter().x); if (b.getCenter().y > c.next.getCenter().y && h <= c.next.width / 2) { d = !0; break } } d && (c.next.setX(b.getX() + b.width + a), e()) }(), this.next.isPositioned = !0, this.next.render() } } else { var d = this.getBottom(); this.next.getTop(), this.next.isPositioned || (this.next.shiftY(this.getY() + this.height + a), this.next.setX(d.x - this.next.width / 2), this.next.isPositioned = !0, this.next.render()) } } }, g.prototype.renderLines = function () { this.next && (this.next_direction ? this.drawLineTo(this.next, "", this.next_direction) : this.drawLineTo(this.next)) }, g.prototype.drawLineTo = function (a, b, c) { this.connectedTo.indexOf(a) < 0 && this.connectedTo.push(a); var f, g = this.getCenter().x, h = this.getCenter().y, i = (this.getTop(), this.getRight()), j = this.getBottom(), k = this.getLeft(), l = a.getCenter().x, m = a.getCenter().y, n = a.getTop(), o = a.getRight(), p = (a.getBottom(), a.getLeft()), q = g === l, r = h === m, s = m > h, t = h > m, u = g > l, v = l > g, w = 0, x = this.getAttr("line-length"), y = this.getAttr("line-width"); if (c && "bottom" !== c || !q || !s) if (c && "right" !== c || !r || !v) if (c && "left" !== c || !r || !u) if (c && "right" !== c || !q || !t) if (c && "right" !== c || !q || !s) if (c && "bottom" !== c || !u) if (c && "bottom" !== c || !v) if (c && "right" === c && u) f = d(this.chart, i, [{ x: i.x + x / 2, y: i.y }, { x: i.x + x / 2, y: n.y - x / 2 }, { x: n.x, y: n.y - x / 2 }, { x: n.x, y: n.y }], b), this.rightStart = !0, a.topEnd = !0, w = i.x + x / 2; else if (c && "right" === c && v) f = d(this.chart, i, [{ x: n.x, y: i.y }, { x: n.x, y: n.y }], b), this.rightStart = !0, a.topEnd = !0, w = i.x + x / 2; else if (c && "bottom" === c && q && t) f = d(this.chart, j, [{ x: j.x, y: j.y + x / 2 }, { x: i.x + x / 2, y: j.y + x / 2 }, { x: i.x + x / 2, y: n.y - x / 2 }, { x: n.x, y: n.y - x / 2 }, { x: n.x, y: n.y }], b), this.bottomStart = !0, a.topEnd = !0, w = j.x + x / 2; else if ("left" === c && q && t) { var z = k.x - x / 2; p.x < k.x && (z = p.x - x / 2), f = d(this.chart, k, [{ x: z, y: k.y }, { x: z, y: n.y - x / 2 }, { x: n.x, y: n.y - x / 2 }, { x: n.x, y: n.y }], b), this.leftStart = !0, a.topEnd = !0, w = k.x } else "left" === c && (f = d(this.chart, k, [{ x: n.x + (k.x - n.x) / 2, y: k.y }, { x: n.x + (k.x - n.x) / 2, y: n.y - x / 2 }, { x: n.x, y: n.y - x / 2 }, { x: n.x, y: n.y }], b), this.leftStart = !0, a.topEnd = !0, w = k.x); else f = d(this.chart, j, [{ x: j.x, y: j.y + x / 2 }, { x: j.x + (j.x - n.x) / 2, y: j.y + x / 2 }, { x: j.x + (j.x - n.x) / 2, y: n.y - x / 2 }, { x: n.x, y: n.y - x / 2 }, { x: n.x, y: n.y }], b), this.bottomStart = !0, a.topEnd = !0, w = j.x + (j.x - n.x) / 2; else f = this.leftEnd && t ? d(this.chart, j, [{ x: j.x, y: j.y + x / 2 }, { x: j.x + (j.x - n.x) / 2, y: j.y + x / 2 }, { x: j.x + (j.x - n.x) / 2, y: n.y - x / 2 }, { x: n.x, y: n.y - x / 2 }, { x: n.x, y: n.y }], b) : d(this.chart, j, [{ x: j.x, y: n.y - x / 2 }, { x: n.x, y: n.y - x / 2 }, { x: n.x, y: n.y }], b), this.bottomStart = !0, a.topEnd = !0, w = j.x + (j.x - n.x) / 2; else f = d(this.chart, i, [{ x: i.x + x / 2, y: i.y }, { x: i.x + x / 2, y: n.y - x / 2 }, { x: n.x, y: n.y - x / 2 }, { x: n.x, y: n.y }], b), this.rightStart = !0, a.topEnd = !0, w = i.x + x / 2; else f = d(this.chart, i, [{ x: i.x + x / 2, y: i.y }, { x: i.x + x / 2, y: n.y - x / 2 }, { x: n.x, y: n.y - x / 2 }, { x: n.x, y: n.y }], b), this.rightStart = !0, a.topEnd = !0, w = i.x + x / 2; else f = d(this.chart, k, o, b), this.leftStart = !0, a.rightEnd = !0, w = o.x; else f = d(this.chart, i, p, b), this.rightStart = !0, a.leftEnd = !0, w = p.x; else f = d(this.chart, j, n, b), this.bottomStart = !0, a.topEnd = !0, w = j.x; if (f) { for (var A = 0, B = this.chart.lines.length; B > A; A++)for (var C, D = this.chart.lines[A], E = D.attr("path"), F = f.attr("path"), G = 0, H = E.length - 1; H > G; G++) { var I = []; I.push(["M", E[G][1], E[G][2]]), I.push(["L", E[G + 1][1], E[G + 1][2]]); for (var J = I[0][1], K = I[0][2], L = I[1][1], M = I[1][2], N = 0, O = F.length - 1; O > N; N++) { var P = []; P.push(["M", F[N][1], F[N][2]]), P.push(["L", F[N + 1][1], F[N + 1][2]]); var Q = P[0][1], R = P[0][2], S = P[1][1], T = P[1][2], U = e(J, K, L, M, Q, R, S, T); if (U.onLine1 && U.onLine2) { var V; R === T ? Q > S ? (V = ["L", U.x + 2 * y, R], F.splice(N + 1, 0, V), V = ["C", U.x + 2 * y, R, U.x, R - 4 * y, U.x - 2 * y, R], F.splice(N + 2, 0, V), f.attr("path", F)) : (V = ["L", U.x - 2 * y, R], F.splice(N + 1, 0, V), V = ["C", U.x - 2 * y, R, U.x, R - 4 * y, U.x + 2 * y, R], F.splice(N + 2, 0, V), f.attr("path", F)) : R > T ? (V = ["L", Q, U.y + 2 * y], F.splice(N + 1, 0, V), V = ["C", Q, U.y + 2 * y, Q + 4 * y, U.y, Q, U.y - 2 * y], F.splice(N + 2, 0, V), f.attr("path", F)) : (V = ["L", Q, U.y - 2 * y], F.splice(N + 1, 0, V), V = ["C", Q, U.y - 2 * y, Q + 4 * y, U.y, Q, U.y + 2 * y], F.splice(N + 2, 0, V), f.attr("path", F)), N += 2, C += 2 } } } this.chart.lines.push(f) } (!this.chart.maxXFromLine || this.chart.maxXFromLine && w > this.chart.maxXFromLine) && (this.chart.maxXFromLine = w) }, r.inherits(h, g), r.inherits(i, g), r.inherits(j, g), r.inherits(k, g), r.inherits(l, g), l.prototype.getLeft = function () { var a = this.getY() + this.group.getBBox().height / 2, b = this.getX() + this.textMargin; return { x: b, y: a } }, l.prototype.getRight = function () { var a = this.getY() + this.group.getBBox().height / 2, b = this.getX() + this.group.getBBox().width - this.textMargin; return { x: b, y: a } }, r.inherits(m, g), m.prototype.render = function () { this.yes_direction && (this[this.yes_direction + "_symbol"] = this.yes_symbol), this.no_direction && (this[this.no_direction + "_symbol"] = this.no_symbol); var a = this.getAttr("line-length"); if (this.bottom_symbol) { var b = this.getBottom(); this.bottom_symbol.getTop(), this.bottom_symbol.isPositioned || (this.bottom_symbol.shiftY(this.getY() + this.height + a), this.bottom_symbol.setX(b.x - this.bottom_symbol.width / 2), this.bottom_symbol.isPositioned = !0, this.bottom_symbol.render()) } if (this.right_symbol) { var c = this.getRight(); if (this.right_symbol.getLeft(), !this.right_symbol.isPositioned) { this.right_symbol.setY(c.y - this.right_symbol.height / 2), this.right_symbol.shiftX(this.group.getBBox().x + this.width + a); var d = this; !function e() { for (var b, c = !1, f = 0, g = d.chart.symbols.length; g > f; f++) { b = d.chart.symbols[f]; var h = Math.abs(b.getCenter().x - d.right_symbol.getCenter().x); if (b.getCenter().y > d.right_symbol.getCenter().y && h <= d.right_symbol.width / 2) { c = !0; break } } c && (d.right_symbol.setX(b.getX() + b.width + a), e()) }(), this.right_symbol.isPositioned = !0, this.right_symbol.render() } } }, m.prototype.renderLines = function () { this.yes_symbol && this.drawLineTo(this.yes_symbol, this.getAttr("yes-text"), this.yes_direction), this.no_symbol && this.drawLineTo(this.no_symbol, this.getAttr("no-text"), this.no_direction) }, p.parse = n }(); +/*! jQuery.flowchart.js v1.1.0 | jquery.flowchart.min.js | jQuery plugin for flowchart.js. | MIT License | By: Pandao | https://github.com/pandao/jquery.flowchart.js | 2015-03-09 */ +(function (factory) { if (typeof require === "function" && typeof exports === "object" && typeof module === "object") { module.exports = factory } else { if (typeof define === "function") { factory(jQuery, flowchart) } else { factory($, flowchart) } } }(function (jQuery, flowchart) { (function ($) { $.fn.flowChart = function (options) { options = options || {}; var defaults = { "x": 0, "y": 0, "line-width": 2, "line-length": 50, "text-margin": 10, "font-size": 14, "font-color": "black", "line-color": "black", "element-color": "black", "fill": "white", "yes-text": "yes", "no-text": "no", "arrow-end": "block", "symbols": { "start": { "font-color": "black", "element-color": "black", "fill": "white" }, "end": { "class": "end-element" } }, "flowstate": { "past": { "fill": "#CCCCCC", "font-size": 12 }, "current": { "fill": "black", "font-color": "white", "font-weight": "bold" }, "future": { "fill": "white" }, "request": { "fill": "blue" }, "invalid": { "fill": "#444444" }, "approved": { "fill": "#58C4A3", "font-size": 12, "yes-text": "APPROVED", "no-text": "n/a" }, "rejected": { "fill": "#C45879", "font-size": 12, "yes-text": "n/a", "no-text": "REJECTED" } } }; return this.each(function () { var $this = $(this); var diagram = flowchart.parse($this.text()); var settings = $.extend(true, defaults, options); $this.html(""); diagram.drawSVG(this, settings) }) } })(jQuery) })); + +(function () { + function diff_match_patch() { this.Diff_Timeout = 1; this.Diff_EditCost = 4; this.Match_Threshold = 0.5; this.Match_Distance = 1E3; this.Patch_DeleteThreshold = 0.5; this.Patch_Margin = 4; this.Match_MaxBits = 32 } + diff_match_patch.prototype.diff_main = function (a, b, c, d) { + "undefined" == typeof d && (d = 0 >= this.Diff_Timeout ? Number.MAX_VALUE : (new Date).getTime() + 1E3 * this.Diff_Timeout); if (null == a || null == b) throw Error("Null input. (diff_main)"); if (a == b) return a ? [[0, a]] : []; "undefined" == typeof c && (c = !0); var e = c, f = this.diff_commonPrefix(a, b); c = a.substring(0, f); a = a.substring(f); b = b.substring(f); var f = this.diff_commonSuffix(a, b), g = a.substring(a.length - f); a = a.substring(0, a.length - f); b = b.substring(0, b.length - f); a = this.diff_compute_(a, + b, e, d); c && a.unshift([0, c]); g && a.push([0, g]); this.diff_cleanupMerge(a); return a + }; + diff_match_patch.prototype.diff_compute_ = function (a, b, c, d) { + if (!a) return [[1, b]]; if (!b) return [[-1, a]]; var e = a.length > b.length ? a : b, f = a.length > b.length ? b : a, g = e.indexOf(f); return -1 != g ? (c = [[1, e.substring(0, g)], [0, f], [1, e.substring(g + f.length)]], a.length > b.length && (c[0][0] = c[2][0] = -1), c) : 1 == f.length ? [[-1, a], [1, b]] : (e = this.diff_halfMatch_(a, b)) ? (f = e[0], a = e[1], g = e[2], b = e[3], e = e[4], f = this.diff_main(f, g, c, d), c = this.diff_main(a, b, c, d), f.concat([[0, e]], c)) : c && 100 < a.length && 100 < b.length ? this.diff_lineMode_(a, b, + d) : this.diff_bisect_(a, b, d) + }; + diff_match_patch.prototype.diff_lineMode_ = function (a, b, c) { var d = this.diff_linesToChars_(a, b); a = d.chars1; b = d.chars2; d = d.lineArray; a = this.diff_main(a, b, !1, c); this.diff_charsToLines_(a, d); this.diff_cleanupSemantic(a); a.push([0, ""]); for (var e = d = b = 0, f = "", g = ""; b < a.length;) { switch (a[b][0]) { case 1: e++; g += a[b][1]; break; case -1: d++; f += a[b][1]; break; case 0: if (1 <= d && 1 <= e) { a.splice(b - d - e, d + e); b = b - d - e; d = this.diff_main(f, g, !1, c); for (e = d.length - 1; 0 <= e; e--)a.splice(b, 0, d[e]); b += d.length } d = e = 0; g = f = "" }b++ } a.pop(); return a }; + diff_match_patch.prototype.diff_bisect_ = function (a, b, c) { + for (var d = a.length, e = b.length, f = Math.ceil((d + e) / 2), g = f, h = 2 * f, j = Array(h), i = Array(h), k = 0; k < h; k++)j[k] = -1, i[k] = -1; j[g + 1] = 0; i[g + 1] = 0; for (var k = d - e, q = 0 != k % 2, r = 0, t = 0, p = 0, w = 0, v = 0; v < f && !((new Date).getTime() > c); v++) { + for (var n = -v + r; n <= v - t; n += 2) { + var l = g + n, m; m = n == -v || n != v && j[l - 1] < j[l + 1] ? j[l + 1] : j[l - 1] + 1; for (var s = m - n; m < d && s < e && a.charAt(m) == b.charAt(s);)m++, s++; j[l] = m; if (m > d) t += 2; else if (s > e) r += 2; else if (q && (l = g + k - n, 0 <= l && l < h && -1 != i[l])) { + var u = d - i[l]; if (m >= + u) return this.diff_bisectSplit_(a, b, m, s, c) + } + } for (n = -v + p; n <= v - w; n += 2) { l = g + n; u = n == -v || n != v && i[l - 1] < i[l + 1] ? i[l + 1] : i[l - 1] + 1; for (m = u - n; u < d && m < e && a.charAt(d - u - 1) == b.charAt(e - m - 1);)u++, m++; i[l] = u; if (u > d) w += 2; else if (m > e) p += 2; else if (!q && (l = g + k - n, 0 <= l && (l < h && -1 != j[l]) && (m = j[l], s = g + m - l, u = d - u, m >= u))) return this.diff_bisectSplit_(a, b, m, s, c) } + } return [[-1, a], [1, b]] + }; + diff_match_patch.prototype.diff_bisectSplit_ = function (a, b, c, d, e) { var f = a.substring(0, c), g = b.substring(0, d); a = a.substring(c); b = b.substring(d); f = this.diff_main(f, g, !1, e); e = this.diff_main(a, b, !1, e); return f.concat(e) }; + diff_match_patch.prototype.diff_linesToChars_ = function (a, b) { function c(a) { for (var b = "", c = 0, f = -1, g = d.length; f < a.length - 1;) { f = a.indexOf("\n", c); -1 == f && (f = a.length - 1); var r = a.substring(c, f + 1), c = f + 1; (e.hasOwnProperty ? e.hasOwnProperty(r) : void 0 !== e[r]) ? b += String.fromCharCode(e[r]) : (b += String.fromCharCode(g), e[r] = g, d[g++] = r) } return b } var d = [], e = {}; d[0] = ""; var f = c(a), g = c(b); return { chars1: f, chars2: g, lineArray: d } }; + diff_match_patch.prototype.diff_charsToLines_ = function (a, b) { for (var c = 0; c < a.length; c++) { for (var d = a[c][1], e = [], f = 0; f < d.length; f++)e[f] = b[d.charCodeAt(f)]; a[c][1] = e.join("") } }; diff_match_patch.prototype.diff_commonPrefix = function (a, b) { if (!a || !b || a.charAt(0) != b.charAt(0)) return 0; for (var c = 0, d = Math.min(a.length, b.length), e = d, f = 0; c < e;)a.substring(f, e) == b.substring(f, e) ? f = c = e : d = e, e = Math.floor((d - c) / 2 + c); return e }; + diff_match_patch.prototype.diff_commonSuffix = function (a, b) { if (!a || !b || a.charAt(a.length - 1) != b.charAt(b.length - 1)) return 0; for (var c = 0, d = Math.min(a.length, b.length), e = d, f = 0; c < e;)a.substring(a.length - e, a.length - f) == b.substring(b.length - e, b.length - f) ? f = c = e : d = e, e = Math.floor((d - c) / 2 + c); return e }; + diff_match_patch.prototype.diff_commonOverlap_ = function (a, b) { var c = a.length, d = b.length; if (0 == c || 0 == d) return 0; c > d ? a = a.substring(c - d) : c < d && (b = b.substring(0, c)); c = Math.min(c, d); if (a == b) return c; for (var d = 0, e = 1; ;) { var f = a.substring(c - e), f = b.indexOf(f); if (-1 == f) return d; e += f; if (0 == f || a.substring(c - e) == b.substring(0, e)) d = e, e++ } }; + diff_match_patch.prototype.diff_halfMatch_ = function (a, b) { + function c(a, b, c) { for (var d = a.substring(c, c + Math.floor(a.length / 4)), e = -1, g = "", h, j, n, l; -1 != (e = b.indexOf(d, e + 1));) { var m = f.diff_commonPrefix(a.substring(c), b.substring(e)), s = f.diff_commonSuffix(a.substring(0, c), b.substring(0, e)); g.length < s + m && (g = b.substring(e - s, e) + b.substring(e, e + m), h = a.substring(0, c - s), j = a.substring(c + m), n = b.substring(0, e - s), l = b.substring(e + m)) } return 2 * g.length >= a.length ? [h, j, n, l, g] : null } if (0 >= this.Diff_Timeout) return null; + var d = a.length > b.length ? a : b, e = a.length > b.length ? b : a; if (4 > d.length || 2 * e.length < d.length) return null; var f = this, g = c(d, e, Math.ceil(d.length / 4)), d = c(d, e, Math.ceil(d.length / 2)), h; if (!g && !d) return null; h = d ? g ? g[4].length > d[4].length ? g : d : d : g; var j; a.length > b.length ? (g = h[0], d = h[1], e = h[2], j = h[3]) : (e = h[0], j = h[1], g = h[2], d = h[3]); h = h[4]; return [g, d, e, j, h] + }; + diff_match_patch.prototype.diff_cleanupSemantic = function (a) { + for (var b = !1, c = [], d = 0, e = null, f = 0, g = 0, h = 0, j = 0, i = 0; f < a.length;)0 == a[f][0] ? (c[d++] = f, g = j, h = i, i = j = 0, e = a[f][1]) : (1 == a[f][0] ? j += a[f][1].length : i += a[f][1].length, e && (e.length <= Math.max(g, h) && e.length <= Math.max(j, i)) && (a.splice(c[d - 1], 0, [-1, e]), a[c[d - 1] + 1][0] = 1, d--, d--, f = 0 < d ? c[d - 1] : -1, i = j = h = g = 0, e = null, b = !0)), f++; b && this.diff_cleanupMerge(a); this.diff_cleanupSemanticLossless(a); for (f = 1; f < a.length;) { + if (-1 == a[f - 1][0] && 1 == a[f][0]) { + b = a[f - 1][1]; c = a[f][1]; + d = this.diff_commonOverlap_(b, c); e = this.diff_commonOverlap_(c, b); if (d >= e) { if (d >= b.length / 2 || d >= c.length / 2) a.splice(f, 0, [0, c.substring(0, d)]), a[f - 1][1] = b.substring(0, b.length - d), a[f + 1][1] = c.substring(d), f++ } else if (e >= b.length / 2 || e >= c.length / 2) a.splice(f, 0, [0, b.substring(0, e)]), a[f - 1][0] = 1, a[f - 1][1] = c.substring(0, c.length - e), a[f + 1][0] = -1, a[f + 1][1] = b.substring(e), f++; f++ + } f++ + } + }; + diff_match_patch.prototype.diff_cleanupSemanticLossless = function (a) { + function b(a, b) { + if (!a || !b) return 6; var c = a.charAt(a.length - 1), d = b.charAt(0), e = c.match(diff_match_patch.nonAlphaNumericRegex_), f = d.match(diff_match_patch.nonAlphaNumericRegex_), g = e && c.match(diff_match_patch.whitespaceRegex_), h = f && d.match(diff_match_patch.whitespaceRegex_), c = g && c.match(diff_match_patch.linebreakRegex_), d = h && d.match(diff_match_patch.linebreakRegex_), i = c && a.match(diff_match_patch.blanklineEndRegex_), j = d && b.match(diff_match_patch.blanklineStartRegex_); + return i || j ? 5 : c || d ? 4 : e && !g && h ? 3 : g || h ? 2 : e || f ? 1 : 0 + } for (var c = 1; c < a.length - 1;) { + if (0 == a[c - 1][0] && 0 == a[c + 1][0]) { + var d = a[c - 1][1], e = a[c][1], f = a[c + 1][1], g = this.diff_commonSuffix(d, e); if (g) var h = e.substring(e.length - g), d = d.substring(0, d.length - g), e = h + e.substring(0, e.length - g), f = h + f; for (var g = d, h = e, j = f, i = b(d, e) + b(e, f); e.charAt(0) === f.charAt(0);) { var d = d + e.charAt(0), e = e.substring(1) + f.charAt(0), f = f.substring(1), k = b(d, e) + b(e, f); k >= i && (i = k, g = d, h = e, j = f) } a[c - 1][1] != g && (g ? a[c - 1][1] = g : (a.splice(c - 1, 1), c--), a[c][1] = + h, j ? a[c + 1][1] = j : (a.splice(c + 1, 1), c--)) + } c++ + } + }; diff_match_patch.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/; diff_match_patch.whitespaceRegex_ = /\s/; diff_match_patch.linebreakRegex_ = /[\r\n]/; diff_match_patch.blanklineEndRegex_ = /\n\r?\n$/; diff_match_patch.blanklineStartRegex_ = /^\r?\n\r?\n/; + diff_match_patch.prototype.diff_cleanupEfficiency = function (a) { for (var b = !1, c = [], d = 0, e = null, f = 0, g = !1, h = !1, j = !1, i = !1; f < a.length;) { if (0 == a[f][0]) a[f][1].length < this.Diff_EditCost && (j || i) ? (c[d++] = f, g = j, h = i, e = a[f][1]) : (d = 0, e = null), j = i = !1; else if (-1 == a[f][0] ? i = !0 : j = !0, e && (g && h && j && i || e.length < this.Diff_EditCost / 2 && 3 == g + h + j + i)) a.splice(c[d - 1], 0, [-1, e]), a[c[d - 1] + 1][0] = 1, d--, e = null, g && h ? (j = i = !0, d = 0) : (d--, f = 0 < d ? c[d - 1] : -1, j = i = !1), b = !0; f++ } b && this.diff_cleanupMerge(a) }; + diff_match_patch.prototype.diff_cleanupMerge = function (a) { + a.push([0, ""]); for (var b = 0, c = 0, d = 0, e = "", f = "", g; b < a.length;)switch (a[b][0]) { + case 1: d++; f += a[b][1]; b++; break; case -1: c++; e += a[b][1]; b++; break; case 0: 1 < c + d ? (0 !== c && 0 !== d && (g = this.diff_commonPrefix(f, e), 0 !== g && (0 < b - c - d && 0 == a[b - c - d - 1][0] ? a[b - c - d - 1][1] += f.substring(0, g) : (a.splice(0, 0, [0, f.substring(0, g)]), b++), f = f.substring(g), e = e.substring(g)), g = this.diff_commonSuffix(f, e), 0 !== g && (a[b][1] = f.substring(f.length - g) + a[b][1], f = f.substring(0, f.length - + g), e = e.substring(0, e.length - g))), 0 === c ? a.splice(b - d, c + d, [1, f]) : 0 === d ? a.splice(b - c, c + d, [-1, e]) : a.splice(b - c - d, c + d, [-1, e], [1, f]), b = b - c - d + (c ? 1 : 0) + (d ? 1 : 0) + 1) : 0 !== b && 0 == a[b - 1][0] ? (a[b - 1][1] += a[b][1], a.splice(b, 1)) : b++, c = d = 0, f = e = "" + }"" === a[a.length - 1][1] && a.pop(); c = !1; for (b = 1; b < a.length - 1;)0 == a[b - 1][0] && 0 == a[b + 1][0] && (a[b][1].substring(a[b][1].length - a[b - 1][1].length) == a[b - 1][1] ? (a[b][1] = a[b - 1][1] + a[b][1].substring(0, a[b][1].length - a[b - 1][1].length), a[b + 1][1] = a[b - 1][1] + a[b + 1][1], a.splice(b - 1, 1), c = !0) : a[b][1].substring(0, + a[b + 1][1].length) == a[b + 1][1] && (a[b - 1][1] += a[b + 1][1], a[b][1] = a[b][1].substring(a[b + 1][1].length) + a[b + 1][1], a.splice(b + 1, 1), c = !0)), b++; c && this.diff_cleanupMerge(a) + }; diff_match_patch.prototype.diff_xIndex = function (a, b) { var c = 0, d = 0, e = 0, f = 0, g; for (g = 0; g < a.length; g++) { 1 !== a[g][0] && (c += a[g][1].length); -1 !== a[g][0] && (d += a[g][1].length); if (c > b) break; e = c; f = d } return a.length != g && -1 === a[g][0] ? f : f + (b - e) }; + diff_match_patch.prototype.diff_prettyHtml = function (a) { for (var b = [], c = /&/g, d = //g, f = /\n/g, g = 0; g < a.length; g++) { var h = a[g][0], j = a[g][1], j = j.replace(c, "&").replace(d, "<").replace(e, ">").replace(f, "¶
      "); switch (h) { case 1: b[g] = '' + j + ""; break; case -1: b[g] = '' + j + ""; break; case 0: b[g] = "" + j + "" } } return b.join("") }; + diff_match_patch.prototype.diff_text1 = function (a) { for (var b = [], c = 0; c < a.length; c++)1 !== a[c][0] && (b[c] = a[c][1]); return b.join("") }; diff_match_patch.prototype.diff_text2 = function (a) { for (var b = [], c = 0; c < a.length; c++)-1 !== a[c][0] && (b[c] = a[c][1]); return b.join("") }; diff_match_patch.prototype.diff_levenshtein = function (a) { for (var b = 0, c = 0, d = 0, e = 0; e < a.length; e++) { var f = a[e][0], g = a[e][1]; switch (f) { case 1: c += g.length; break; case -1: d += g.length; break; case 0: b += Math.max(c, d), d = c = 0 } } return b += Math.max(c, d) }; + diff_match_patch.prototype.diff_toDelta = function (a) { for (var b = [], c = 0; c < a.length; c++)switch (a[c][0]) { case 1: b[c] = "+" + encodeURI(a[c][1]); break; case -1: b[c] = "-" + a[c][1].length; break; case 0: b[c] = "=" + a[c][1].length }return b.join("\t").replace(/%20/g, " ") }; + diff_match_patch.prototype.diff_fromDelta = function (a, b) { + for (var c = [], d = 0, e = 0, f = b.split(/\t/g), g = 0; g < f.length; g++) { + var h = f[g].substring(1); switch (f[g].charAt(0)) { + case "+": try { c[d++] = [1, decodeURI(h)] } catch (j) { throw Error("Illegal escape in diff_fromDelta: " + h); } break; case "-": case "=": var i = parseInt(h, 10); if (isNaN(i) || 0 > i) throw Error("Invalid number in diff_fromDelta: " + h); h = a.substring(e, e += i); "=" == f[g].charAt(0) ? c[d++] = [0, h] : c[d++] = [-1, h]; break; default: if (f[g]) throw Error("Invalid diff operation in diff_fromDelta: " + + f[g]); + } + } if (e != a.length) throw Error("Delta length (" + e + ") does not equal source text length (" + a.length + ")."); return c + }; diff_match_patch.prototype.match_main = function (a, b, c) { if (null == a || null == b || null == c) throw Error("Null input. (match_main)"); c = Math.max(0, Math.min(c, a.length)); return a == b ? 0 : a.length ? a.substring(c, c + b.length) == b ? c : this.match_bitap_(a, b, c) : -1 }; + diff_match_patch.prototype.match_bitap_ = function (a, b, c) { + function d(a, d) { var e = a / b.length, g = Math.abs(c - d); return !f.Match_Distance ? g ? 1 : e : e + g / f.Match_Distance } if (b.length > this.Match_MaxBits) throw Error("Pattern too long for this browser."); var e = this.match_alphabet_(b), f = this, g = this.Match_Threshold, h = a.indexOf(b, c); -1 != h && (g = Math.min(d(0, h), g), h = a.lastIndexOf(b, c + b.length), -1 != h && (g = Math.min(d(0, h), g))); for (var j = 1 << b.length - 1, h = -1, i, k, q = b.length + a.length, r, t = 0; t < b.length; t++) { + i = 0; for (k = q; i < k;)d(t, c + + k) <= g ? i = k : q = k, k = Math.floor((q - i) / 2 + i); q = k; i = Math.max(1, c - k + 1); var p = Math.min(c + k, a.length) + b.length; k = Array(p + 2); for (k[p + 1] = (1 << t) - 1; p >= i; p--) { var w = e[a.charAt(p - 1)]; k[p] = 0 === t ? (k[p + 1] << 1 | 1) & w : (k[p + 1] << 1 | 1) & w | ((r[p + 1] | r[p]) << 1 | 1) | r[p + 1]; if (k[p] & j && (w = d(t, p - 1), w <= g)) if (g = w, h = p - 1, h > c) i = Math.max(1, 2 * c - h); else break } if (d(t + 1, c) > g) break; r = k + } return h + }; + diff_match_patch.prototype.match_alphabet_ = function (a) { for (var b = {}, c = 0; c < a.length; c++)b[a.charAt(c)] = 0; for (c = 0; c < a.length; c++)b[a.charAt(c)] |= 1 << a.length - c - 1; return b }; + diff_match_patch.prototype.patch_addContext_ = function (a, b) { + if (0 != b.length) { + for (var c = b.substring(a.start2, a.start2 + a.length1), d = 0; b.indexOf(c) != b.lastIndexOf(c) && c.length < this.Match_MaxBits - this.Patch_Margin - this.Patch_Margin;)d += this.Patch_Margin, c = b.substring(a.start2 - d, a.start2 + a.length1 + d); d += this.Patch_Margin; (c = b.substring(a.start2 - d, a.start2)) && a.diffs.unshift([0, c]); (d = b.substring(a.start2 + a.length1, a.start2 + a.length1 + d)) && a.diffs.push([0, d]); a.start1 -= c.length; a.start2 -= c.length; a.length1 += + c.length + d.length; a.length2 += c.length + d.length + } + }; + diff_match_patch.prototype.patch_make = function (a, b, c) { + var d; if ("string" == typeof a && "string" == typeof b && "undefined" == typeof c) d = a, b = this.diff_main(d, b, !0), 2 < b.length && (this.diff_cleanupSemantic(b), this.diff_cleanupEfficiency(b)); else if (a && "object" == typeof a && "undefined" == typeof b && "undefined" == typeof c) b = a, d = this.diff_text1(b); else if ("string" == typeof a && b && "object" == typeof b && "undefined" == typeof c) d = a; else if ("string" == typeof a && "string" == typeof b && c && "object" == typeof c) d = a, b = c; else throw Error("Unknown call format to patch_make."); + if (0 === b.length) return []; c = []; a = new diff_match_patch.patch_obj; for (var e = 0, f = 0, g = 0, h = d, j = 0; j < b.length; j++) { + var i = b[j][0], k = b[j][1]; !e && 0 !== i && (a.start1 = f, a.start2 = g); switch (i) { + case 1: a.diffs[e++] = b[j]; a.length2 += k.length; d = d.substring(0, g) + k + d.substring(g); break; case -1: a.length1 += k.length; a.diffs[e++] = b[j]; d = d.substring(0, g) + d.substring(g + k.length); break; case 0: k.length <= 2 * this.Patch_Margin && e && b.length != j + 1 ? (a.diffs[e++] = b[j], a.length1 += k.length, a.length2 += k.length) : k.length >= 2 * this.Patch_Margin && + e && (this.patch_addContext_(a, h), c.push(a), a = new diff_match_patch.patch_obj, e = 0, h = d, f = g) + }1 !== i && (f += k.length); -1 !== i && (g += k.length) + } e && (this.patch_addContext_(a, h), c.push(a)); return c + }; diff_match_patch.prototype.patch_deepCopy = function (a) { for (var b = [], c = 0; c < a.length; c++) { var d = a[c], e = new diff_match_patch.patch_obj; e.diffs = []; for (var f = 0; f < d.diffs.length; f++)e.diffs[f] = d.diffs[f].slice(); e.start1 = d.start1; e.start2 = d.start2; e.length1 = d.length1; e.length2 = d.length2; b[c] = e } return b }; + diff_match_patch.prototype.patch_apply = function (a, b) { + if (0 == a.length) return [b, []]; a = this.patch_deepCopy(a); var c = this.patch_addPadding(a); b = c + b + c; this.patch_splitMax(a); for (var d = 0, e = [], f = 0; f < a.length; f++) { + var g = a[f].start2 + d, h = this.diff_text1(a[f].diffs), j, i = -1; if (h.length > this.Match_MaxBits) { if (j = this.match_main(b, h.substring(0, this.Match_MaxBits), g), -1 != j && (i = this.match_main(b, h.substring(h.length - this.Match_MaxBits), g + h.length - this.Match_MaxBits), -1 == i || j >= i)) j = -1 } else j = this.match_main(b, h, g); + if (-1 == j) e[f] = !1, d -= a[f].length2 - a[f].length1; else if (e[f] = !0, d = j - g, g = -1 == i ? b.substring(j, j + h.length) : b.substring(j, i + this.Match_MaxBits), h == g) b = b.substring(0, j) + this.diff_text2(a[f].diffs) + b.substring(j + h.length); else if (g = this.diff_main(h, g, !1), h.length > this.Match_MaxBits && this.diff_levenshtein(g) / h.length > this.Patch_DeleteThreshold) e[f] = !1; else { + this.diff_cleanupSemanticLossless(g); for (var h = 0, k, i = 0; i < a[f].diffs.length; i++) { + var q = a[f].diffs[i]; 0 !== q[0] && (k = this.diff_xIndex(g, h)); 1 === q[0] ? b = b.substring(0, + j + k) + q[1] + b.substring(j + k) : -1 === q[0] && (b = b.substring(0, j + k) + b.substring(j + this.diff_xIndex(g, h + q[1].length))); -1 !== q[0] && (h += q[1].length) + } + } + } b = b.substring(c.length, b.length - c.length); return [b, e] + }; + diff_match_patch.prototype.patch_addPadding = function (a) { + for (var b = this.Patch_Margin, c = "", d = 1; d <= b; d++)c += String.fromCharCode(d); for (d = 0; d < a.length; d++)a[d].start1 += b, a[d].start2 += b; var d = a[0], e = d.diffs; if (0 == e.length || 0 != e[0][0]) e.unshift([0, c]), d.start1 -= b, d.start2 -= b, d.length1 += b, d.length2 += b; else if (b > e[0][1].length) { var f = b - e[0][1].length; e[0][1] = c.substring(e[0][1].length) + e[0][1]; d.start1 -= f; d.start2 -= f; d.length1 += f; d.length2 += f } d = a[a.length - 1]; e = d.diffs; 0 == e.length || 0 != e[e.length - 1][0] ? (e.push([0, + c]), d.length1 += b, d.length2 += b) : b > e[e.length - 1][1].length && (f = b - e[e.length - 1][1].length, e[e.length - 1][1] += c.substring(0, f), d.length1 += f, d.length2 += f); return c + }; + diff_match_patch.prototype.patch_splitMax = function (a) { + for (var b = this.Match_MaxBits, c = 0; c < a.length; c++)if (!(a[c].length1 <= b)) { + var d = a[c]; a.splice(c--, 1); for (var e = d.start1, f = d.start2, g = ""; 0 !== d.diffs.length;) { + var h = new diff_match_patch.patch_obj, j = !0; h.start1 = e - g.length; h.start2 = f - g.length; "" !== g && (h.length1 = h.length2 = g.length, h.diffs.push([0, g])); for (; 0 !== d.diffs.length && h.length1 < b - this.Patch_Margin;) { + var g = d.diffs[0][0], i = d.diffs[0][1]; 1 === g ? (h.length2 += i.length, f += i.length, h.diffs.push(d.diffs.shift()), + j = !1) : -1 === g && 1 == h.diffs.length && 0 == h.diffs[0][0] && i.length > 2 * b ? (h.length1 += i.length, e += i.length, j = !1, h.diffs.push([g, i]), d.diffs.shift()) : (i = i.substring(0, b - h.length1 - this.Patch_Margin), h.length1 += i.length, e += i.length, 0 === g ? (h.length2 += i.length, f += i.length) : j = !1, h.diffs.push([g, i]), i == d.diffs[0][1] ? d.diffs.shift() : d.diffs[0][1] = d.diffs[0][1].substring(i.length)) + } g = this.diff_text2(h.diffs); g = g.substring(g.length - this.Patch_Margin); i = this.diff_text1(d.diffs).substring(0, this.Patch_Margin); "" !== i && + (h.length1 += i.length, h.length2 += i.length, 0 !== h.diffs.length && 0 === h.diffs[h.diffs.length - 1][0] ? h.diffs[h.diffs.length - 1][1] += i : h.diffs.push([0, i])); j || a.splice(++c, 0, h) + } + } + }; diff_match_patch.prototype.patch_toText = function (a) { for (var b = [], c = 0; c < a.length; c++)b[c] = a[c]; return b.join("") }; + diff_match_patch.prototype.patch_fromText = function (a) { + var b = []; if (!a) return b; a = a.split("\n"); for (var c = 0, d = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/; c < a.length;) { + var e = a[c].match(d); if (!e) throw Error("Invalid patch string: " + a[c]); var f = new diff_match_patch.patch_obj; b.push(f); f.start1 = parseInt(e[1], 10); "" === e[2] ? (f.start1--, f.length1 = 1) : "0" == e[2] ? f.length1 = 0 : (f.start1--, f.length1 = parseInt(e[2], 10)); f.start2 = parseInt(e[3], 10); "" === e[4] ? (f.start2--, f.length2 = 1) : "0" == e[4] ? f.length2 = 0 : (f.start2--, f.length2 = + parseInt(e[4], 10)); for (c++; c < a.length;) { e = a[c].charAt(0); try { var g = decodeURI(a[c].substring(1)) } catch (h) { throw Error("Illegal escape in patch_fromText: " + g); } if ("-" == e) f.diffs.push([-1, g]); else if ("+" == e) f.diffs.push([1, g]); else if (" " == e) f.diffs.push([0, g]); else if ("@" == e) break; else if ("" !== e) throw Error('Invalid patch mode "' + e + '" in: ' + g); c++ } + } return b + }; diff_match_patch.patch_obj = function () { this.diffs = []; this.start2 = this.start1 = null; this.length2 = this.length1 = 0 }; + diff_match_patch.patch_obj.prototype.toString = function () { var a, b; a = 0 === this.length1 ? this.start1 + ",0" : 1 == this.length1 ? this.start1 + 1 : this.start1 + 1 + "," + this.length1; b = 0 === this.length2 ? this.start2 + ",0" : 1 == this.length2 ? this.start2 + 1 : this.start2 + 1 + "," + this.length2; a = ["@@ -" + a + " +" + b + " @@\n"]; var c; for (b = 0; b < this.diffs.length; b++) { switch (this.diffs[b][0]) { case 1: c = "+"; break; case -1: c = "-"; break; case 0: c = " " }a[b + 1] = c + encodeURI(this.diffs[b][1]) + "\n" } return a.join("").replace(/%20/g, " ") }; + this.diff_match_patch = diff_match_patch; this.DIFF_DELETE = -1; this.DIFF_INSERT = 1; this.DIFF_EQUAL = 0; +})(); + +// ---------------------------------------------------------------------------------edu_tpi.js START +// 实训游戏需要的js功能 +var EXPAND = 0; // 放大 +var SHRINK = 1; // 缩小 + +var repositoryTabHeight = 40 + +$(function () { + function update_rows_and_cols(rows) { + window.postMessage({ tp: 'resize', rows: rows, cols: 0 }, "*"); + } + window.top.__updateWebsshRows = update_rows_and_cols + + // TPI拖拽功能 begin + var doc = $(document); + var lab = $(".b-label"); + var cen = $(".h-center"); + var nextW2, nextW1; + var dragging = false; + var flag = false; + var wrapWidth; + var wrapHeight; + var nRow = 0; + //var nCol = 0; + lab.live('mousedown touchstart', function () { + $('#game_webssh').css('pointer-events', 'none') + dragging = true; + leftOffset = $(".labelN").offset().left; + wrapWidth = $(".labelN").width(); + return false; + } + ); + cen.live('mousedown ', function () { + // 使得iframe不捕获事件 + $('#game_webssh').css('pointer-events', 'none') + flag = true; + topOffset = $(".centerH").offset().top; + wrapHeight = $(".centerH").height(); + return false; + }); + + var FF = !(window.mozInnerScreenX == null); + var websshLineHeight = FF ? 19 : 18 + + doc.live('mousemove touchmove', function (e) { + + $(".-brother").show();// 代码行的遮罩显示 + if (dragging) { + clickX = e.pageX || e.originalEvent.touches[0].pageX;; + if (clickX > leftOffset + 0 && clickX < leftOffset + 1600) { + // console.log('resize') + lab.css('left', clickX - 7 - leftOffset + 'px'); + $("#game_left_contents").width(clickX - leftOffset + 'px'); + nextW2 = clickX - leftOffset; + $("#game_right_contents").width(wrapWidth - nextW2 + 'px'); + } else { + lab.css('left', '0px'); + } + } + if (flag) { + clickY = e.pageY; + if (clickY > topOffset + 100) { + cen.css('top', clickY - 7 - topOffset + 'px'); + $("#games_repository_contents").height(clickY - topOffset + 'px'); + + // react add + $('.CodeMirror.cm-s-railscasts') + .css("height", clickY - topOffset - repositoryTabHeight - $('#games_repository_contents .codePath').height() - 12); + + nextW1 = clickY - topOffset; + $("#games_valuation_contents").height(wrapHeight - nextW1 + 'px'); + var h = $("#games_repository_contents").height() - $("#top_repository").height() - repositoryTabHeight; + var m = $("#games_repository_contents").height() - repositoryTabHeight; + $(".game_webssh").css("min-height", m); + $(".game_webssh").css("max-height", m); + // 火狐下行高为19 + // CodeRepositoryView.js有同样的计算逻辑,用来初始化ssh + var rows = Math.round(m / websshLineHeight); + //var cols = parseInt(w / 6.2); + $("#file_entry_content").find(".CodeMirror-scroll").css("min-height", h); + $("#file_entry_content").find(".CodeMirror-scroll").css("max-height", h); + } else { + cen.css('top', '0px'); + } + // 行高发生变化,则调整webssh的term的高度 + if (nRow != rows) { + //window.frames['game_webssh'].contentWindow.resizeTerminal({rows:rows}); + update_rows_and_cols(rows); + nRow = rows; + } else { + nRow = rows; + } + } + }); + + doc.live("mouseup touchend", function (e) { + // 使得iframe可以继续捕获事件 + $('#game_webssh').css('pointer-events', 'inherit') + flag = false; + dragging = false; + e.cancelBubble = true; + $(".-brother").hide(); // 代码行的遮罩隐藏 + }); + + window.__tpiOnResize = function () { + var m = $("#games_repository_contents").height() - repositoryTabHeight; + $(".game_webssh").css("min-height", m); + $(".game_webssh").css("max-height", m); + + + // var _iframe = document.getElementById("game_webssh"); + // if(!_iframe){ + // return; + // } + var FF = !(window.mozInnerScreenX == null); + var websshLineHeight = FF ? 19 : 18 + + var rows = Math.floor(m / websshLineHeight); + window.top.__updateWebsshRows && window.top.__updateWebsshRows(rows) + } + window.refresh_editor_monaco = function (height) { + } + // end; + //解決IE瀏覽器大小改變時webssh佈局變亂。 + window.onresize = function () { + __tpiOnResize() + } + // 评论区域的回复按钮 + function reply_to_dis(id, name) { + $("#comment_news").attr("placeholder", "回复" + name + ":"); + $("#dis_reply_id").val(id); + $("#comment_news").focus(); + } + // end + // 点击全部任务向右侧展开 + $("#all_task_show").on("click", function (e) { + c = 0; + $("#all_task_tab").removeClass('leftnav-active'); + $("#all_task_show").css("background", "rgba(0,0,0,0)"); + $("#all_task_index").css("left", 0).stop().animate({ + left: "-505px" + }, 400, function () { + $("#all_task_show").hide(); + fadein = 0; + }); + }); + // end + + // 列表区域阻止事件冒泡 + $("#all_task_index").on("click", function (e) { + e.stopPropagation(); + }); + // end + + // 下一关增加loading效果 + $("#next_step").live("click", function () { + nNext = $("#next_step_area"); + html = "
      下一关"; + nNext.html(html); + }); + // end + + // 上一关增加loading效果 + $("#prev_step").live("click", function () { + nNext = $("#prev_step_area"); + html = "上一关"; + nNext.html(html); + }); + // end + +}); + + +var control = 0; // 版本库控制 0表示点击放大 1表示点击缩小 +var control_1 = 0; // 测评控制 0表示点击放大 1表示点击缩小 +// 版本库的放大与缩小 +function repository_extend_and_zoom() { + var nGameRes = $("#games_repository_contents"); // 版本库区域 + var nGameEva = $("#games_valuation_contents"); // 评测区域 + var nRIcon = $("#extend_and_zoom").children("i"); // 版本库放大缩小按钮 + var nMove = $(".h-center"); + if (control == 0) { + nGameRes.addClass("-flex-basic100"); + nGameEva.addClass("-flex-basic0"); + nRIcon.addClass("fa-compress"); + nRIcon.removeClass("fa-expand"); + // $("#extend_and_zoom").attr("data-tip-left","收起"); + nMove.hide(); + control = 1; + } else if (control == 1) { + nGameRes.removeClass("-flex-basic100"); + nGameEva.removeClass("-flex-basic0"); + nRIcon.removeClass("fa-compress"); + nRIcon.addClass("fa-expand"); + // $("#extend_and_zoom").attr("data-tip-left","展开"); + nMove.show(); + control = 0; + } +} + + +// 测评的扩大与缩小 +function valuation_extend_and_zoom() { + var nGameRes = $("#games_repository_contents"); // 版本库区域 + var nGameEva = $("#games_valuation_contents"); // 评测区域 + var nVIcon = $("#valuation_extend_and_zoom").children("i"); // 评测放大缩小 + var nMove = $(".h-center"); + if (control_1 == 0) { + nGameRes.addClass("-flex-basic0"); + nGameEva.addClass("-flex-basic100"); + nVIcon.removeClass("fa-expand"); + nVIcon.addClass("fa-compress"); + nMove.hide(); + control_1 = 1; + } else if (control_1 == 1) { + nGameRes.removeClass("-flex-basic0"); + nGameEva.removeClass("-flex-basic100"); + nVIcon.addClass("fa-expand"); + nVIcon.removeClass("fa-compress"); + nMove.show(); + control_1 = 0; + } +} +// end + +// 点赞与取消点赞 +var h = true; +function game_praise(obj_id, obj_type) { + if (treadStatus) { + return; + } + $.ajax({ + url: "/praise_tread/praise_plus?obj_id=" + obj_id + "&obj_type=" + obj_type, + data: { horizontal: h, game_praise: true }, + success: function (data) { + h = !h; + var praise_count = $("#game_praise_count"); + if (data.praise) { + praiseStatus = true; //已赞 + praise_count.html(data.praise_tread_count); + $("#game_praise_tread").children("i").addClass("color-orange03"); + $("#game_praise_tread").attr("data-tip-top", "取消点赞") + } else { + praiseStatus = false; //取消赞 + praise_count.html(data.praise_tread_count); + $("#game_praise_tread").children("i").removeClass("color-orange03"); + $("#game_praise_tread").attr("data-tip-top", "点赞") + } + } + }); +} +// 踩/取消踩功能 +var d = true; +function game_tread(obj_id) { + if (praiseStatus) { + return; + } + $.ajax({ + url: "/praise_tread/praise_plus?obj_id=" + obj_id + "&obj_type=ChallengeTread", + data: { horizontal: d, game_praise: true }, + success: function (data) { + d = !d; + var tread_count = $("#game_tread_count"); + if (data.praise) { + treadStatus = true; // 取消踩 + tread_count.html(data.praise_tread_count); + $("#game_tread").children("i").addClass("color-orange"); + $("#game_tread").attr("data-tip-top", "取消踩") + } else { + treadStatus = false; // 已踩 + tread_count.html(data.praise_tread_count); + $("#game_tread").children("i").removeClass("color-orange"); + $("#game_tread").attr("data-tip-top", "踩"); + } + } + }); +} + +// --------------------------------------------------------------------------------------------- +$(function () { // 这里重新加一次事件监听,不在原有事件的基础上增加代码了 + var doc = $(document); + var lab = $(".b-label"); + var cen = $(".h-center"); + var dragDom; + var dragging = false; + lab.live('mousedown', function () { + dragging = true; + dragDom = lab; + $('#htmlIframe').css('pointer-events', 'none') + $('#can-drag').show() + lab.hide() + return false; + } + ); + cen.live('mousedown', function () { + dragging = true; + dragDom = cen; + // 使得iframe不捕获事件 + $('#htmlIframe').css('pointer-events', 'none') + return false; + } + ); + doc.live("mousemove", function (e) { + if (dragging === true && lab == dragDom) { + window._tpiWidthResize && window._tpiWidthResize() + // React 组件中需要resize,搜索该引用可以找到初始化的位置 + window._currentChildcommentMDEditor && window._currentChildcommentMDEditor.resize() + } + }) + + doc.live("mouseup", function (e) { + lab.show() + // 在大窗口将下边测试集滚动条拖上去后,将窗口缩小,再拖下来就有这种情况 https://www.trustie.net/issues/16326 + if (dragging === true) { + $('#can-drag').hide() + + window.editor_CodeMirror && window.editor_CodeMirror.refresh() + + // 使得iframe可以继续捕获事件 + $('#htmlIframe').css('pointer-events', 'inherit') + } + dragging = false; + }); +}) + +// --------------------------------------------------------------------------------------------- +// md编辑器拖拽改变高度,TODO其他初始化参数,高度改变阈值... +// 写这里,供非react版本时copy一份用 +function initMDEditorDragResize(resizeBarSelector, mdEditor, options) { + if (!options) { + options = {} + } + if ($('#' + mdEditor.id).length === 0) { + console.error('未找到editor') + return; + } + var doc = $(document); + var editor__resize = $('#' + mdEditor.id).parent().find(resizeBarSelector); + if (editor__resize.length === 0) { + console.error('未找到resizeBar') + return; + } + var dragging = false; + var topOffset, clickY, initDelta; + var initHeight = options.initHeight || 240; + + editor__resize.on('mousedown', function () { + dragging = true; + topOffset = editor__resize.offset().top; + initDelta = $('#' + mdEditor.id).height() - initHeight; + }); + doc.live('mousemove', function (e) { + if (dragging) { + clickY = e.pageY; + + var delta = clickY - topOffset + initDelta; + if (delta > 300) { + delta = 300; + } + if (delta < 0) { + delta = 0; + } + + mdEditor.resize('', (initHeight + delta) + 'px') + + // $('#memo_comment_editorMd').height(initHeight + delta) + } + return false + }); + + doc.live("mouseup", function (e) { + dragging = false; + }); +} + +// 计算文本宽度 https://stackoverflow.com/questions/1582534/calculating-text-width +function _textWidth(text, font) { + if (!window._fakeEl) window._fakeEl = $('').hide().appendTo(document.body); + window._fakeEl.text(typeof text == 'object' ? text.val() || text.text() : text).css('font', font || text.css('font')); + return window._fakeEl.width(); +} + +// --------------------------------------------------------------------------------------------- +/** + * 评论使用的mdeditor初始化 + * @param id 渲染DOM的id + * @param width 宽度 + * @param high 高度 + * @param placeholder + * @param imageUrl 上传图片的url + * @returns {*} 返回一个editorMD实例 + */ +var _path = "/editormd/lib/" +var _isDev = window.location.port === "3007"; +if (_isDev) { + _path = 'http://localhost:3000/editormd/lib/' +} +function create_editorMD_4comment(id, width, high, placeholder, imageUrl, callback, otherOptions) { + var editorName = window.editormd(id, Object.assign({ + width: width, + height: high, + syncScrolling: "single", + //你的lib目录的路径,我这边用JSP做测试的 + path: _path, // "/editormd/lib/" + markdown: '', + tex: true, + tocm: true, + emoji: true, + taskList: true, + codeFold: true, + searchReplace: true, + htmlDecode: "style,script,iframe", + sequenceDiagram: true, + autoFocus: false, + toolbarIcons: function () { + // Or return editormd.toolbarModes[name]; // full, simple, mini + // Using "||" set icons align right. + return ["bold", "italic", "|", "list-ul", "list-ol", "|", "code", "code-block", "|" + , "testIcon", "testIcon1", '|', "emoji", "image", "table", '|', "watch", "clear"] + }, + toolbarCustomIcons: { + testIcon: "
      ", + testIcon1: "
      " + }, + //这个配置在simple.html中并没有,但是为了能够提交表单,使用这个配置可以让构造出来的HTML代码直接在第二个隐藏的textarea域中,方便post提交表单。 + saveHTMLToTextarea: true, + // 用于增加自定义工具栏的功能,可以直接插入HTML标签,不使用默认的元素创建图标 + dialogMaskOpacity: 0.6, + placeholder: placeholder, + imageUpload: true, + imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp", "JPG", "JPEG", "GIF", "PNG", "BMP", "WEBP"], + imageUploadURL: imageUrl,//url + onload: function () { + // this.previewing(); + $("#" + id + " [type=\"latex\"]").bind("click", function () { + editorName.cm.replaceSelection("```latex"); + editorName.cm.replaceSelection("\n"); + editorName.cm.replaceSelection("\n"); + editorName.cm.replaceSelection("```"); + var __Cursor = editorName.cm.getDoc().getCursor(); + editorName.cm.setCursor(__Cursor.line - 1, 0); + }); + + $("#" + id + " [type=\"inline\"]").bind("click", function () { + editorName.cm.replaceSelection("$$$$"); + var __Cursor = editorName.cm.getDoc().getCursor(); + editorName.cm.setCursor(__Cursor.line, __Cursor.ch - 2); + editorName.cm.focus(); + }); + $("[type=\"inline\"]").attr("title", "行内公式"); + $("[type=\"latex\"]").attr("title", "多行公式"); + + callback && callback() + } + }, otherOptions)); + return editorName; +} diff --git a/js/js_min_cm.js b/js/js_min_cm.js new file mode 100644 index 000000000..568198bb0 --- /dev/null +++ b/js/js_min_cm.js @@ -0,0 +1,34 @@ +// 记录下从js_min_all移除的cm相关的脚本 + + +// ----------------------------- ----------------------------- active-line.js +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE +!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var t="CodeMirror-activeline",n="CodeMirror-activeline-background",i="CodeMirror-activeline-gutter";function r(e){for(var r=0;r!?|~^]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function v(e,t,r){return n=e,a=r,t}function m(e,t){var r,n=e.next();if('"'==n||"'"==n)return t.tokenize=(r=n,function(e,t){var n,a=!1;if(c&&"@"==e.peek()&&e.match(p))return t.tokenize=m,v("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||a);)a=!a&&"\\"==n;return a||(t.tokenize=m),v("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return v("number","number");if("."==n&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return v(n);if("="==n&&e.eat(">"))return v("=>","operator");if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),v("number","number");if(/\d/.test(n))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),v("number","number");if("/"==n)return e.eat("*")?(t.tokenize=y,y(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):"operator"==t.lastType||"keyword c"==t.lastType||"sof"==t.lastType||/^[\[{}\(,;:]$/.test(t.lastType)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),v("regexp","string-2")):(e.eatWhile(d),v("operator","operator",e.current()));if("`"==n)return t.tokenize=b,b(e,t);if("#"==n)return e.skipToEnd(),v("error","error");if(d.test(n))return e.eatWhile(d),v("operator","operator",e.current());if(f.test(n)){e.eatWhile(f);var a=e.current(),i=s.propertyIsEnumerable(a)&&s[a];return i&&"."!=t.lastType?v(i.type,i.style,a):v("variable","variable",a)}}function y(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=m;break}n="*"==r}return v("comment","comment")}function b(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=m;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}var k="([{}])";function x(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){for(var n=0,a=!1,i=r-1;i>=0;--i){var o=e.string.charAt(i),c=k.indexOf(o);if(c>=0&&c<3){if(!n){++i;break}if(0==--n)break}else if(c>=3&&c<6)++n;else if(f.test(o))a=!0;else{if(/["'\/]/.test(o))return;if(a&&!n){++i;break}}}a&&!n&&(t.fatArrowAt=i)}}var h={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function g(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function w(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}var j={state:null,column:null,marked:null,cc:null};function M(){for(var e=arguments.length-1;e>=0;e--)j.cc.push(arguments[e])}function V(){return M.apply(null,arguments),!0}function E(e){function t(t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}var n=j.state;if(n.context){if(j.marked="def",t(n.localVars))return;n.localVars={name:e,next:n.localVars}}else{if(t(n.globalVars))return;r.globalVars&&(n.globalVars={name:e,next:n.globalVars})}}var I={name:"this",next:{name:"arguments"}};function z(){j.state.context={prev:j.state.context,vars:j.state.localVars},j.state.localVars=I}function T(){j.state.localVars=j.state.context.vars,j.state.context=j.state.context.prev}function A(e,t){var r=function(){var r=j.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new g(n,j.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function C(){var e=j.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function $(e){return function t(r){return r==e?V():";"==e?M():V(t)}}function q(e,t){return"var"==e?V(A("vardef",t.length),te,$(";"),C):"keyword a"==e?V(A("form"),O,q,C):"keyword b"==e?V(A("form"),q,C):"{"==e?V(A("}"),Z,C):";"==e?V():"if"==e?("else"==j.state.lexical.info&&j.state.cc[j.state.cc.length-1]==C&&j.state.cc.pop()(),V(A("form"),O,q,C,oe)):"function"==e?V(de):"for"==e?V(A("form"),ce,q,C):"variable"==e?V(A("stat"),J):"switch"==e?V(A("form"),O,A("}","switch"),$("{"),Z,C,C):"case"==e?V(O,$(":")):"default"==e?V($(":")):"catch"==e?V(A("form"),z,$("("),pe,$(")"),q,C,T):"module"==e?V(A("form"),z,ke,T,C):"class"==e?V(A("form"),ve,C):"export"==e?V(A("form"),xe,C):"import"==e?V(A("form"),he,C):M(A("stat"),O,$(";"),C)}function O(e){return S(e,!1)}function P(e){return S(e,!0)}function S(e,t){if(j.state.fatArrowAt==j.stream.start){var r=t?G:F;if("("==e)return V(z,A(")"),X(re,")"),C,$("=>"),r,T);if("variable"==e)return M(z,re,$("=>"),r,T)}var n=t?U:H;return h.hasOwnProperty(e)?V(n):"function"==e?V(de,n):"keyword c"==e?V(t?N:W):"("==e?V(A(")"),W,Ve,$(")"),C,n):"operator"==e||"spread"==e?V(t?P:O):"["==e?V(A("]"),je,C,n):"{"==e?Y(L,"}",null,n):"quasi"==e?M(B,n):V()}function W(e){return e.match(/[;\}\)\],]/)?M():M(O)}function N(e){return e.match(/[;\}\)\],]/)?M():M(P)}function H(e,t){return","==e?V(O):U(e,t,!1)}function U(e,t,r){var n=0==r?H:U,a=0==r?O:P;return"=>"==e?V(z,r?G:F,T):"operator"==e?/\+\+|--/.test(t)?V(n):"?"==t?V(O,$(":"),a):V(a):"quasi"==e?M(B,n):";"!=e?"("==e?Y(P,")","call",n):"."==e?V(K,n):"["==e?V(A("]"),W,$("]"),C,n):void 0:void 0}function B(e,t){return"quasi"!=e?M():"${"!=t.slice(t.length-2)?V(B):V(O,D)}function D(e){if("}"==e)return j.marked="string-2",j.state.tokenize=b,V(B)}function F(e){return x(j.stream,j.state),M("{"==e?q:O)}function G(e){return x(j.stream,j.state),M("{"==e?q:P)}function J(e){return":"==e?V(C,q):M(H,$(";"),C)}function K(e){if("variable"==e)return j.marked="property",V()}function L(e,t){return"variable"==e||"keyword"==j.style?(j.marked="property",V("get"==t||"set"==t?Q:R)):"number"==e||"string"==e?(j.marked=c?"property":j.style+" property",V(R)):"jsonld-keyword"==e?V(R):"["==e?V(O,$("]"),R):void 0}function Q(e){return"variable"!=e?M(R):(j.marked="property",V(de))}function R(e){return":"==e?V(P):"("==e?M(de):void 0}function X(e,t){function r(n){if(","==n){var a=j.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),V(e,r)}return n==t?V():V($(t))}return function(n){return n==t?V():M(e,r)}}function Y(e,t,r){for(var n=3;n=0;--l){var u=t.cc[l];if(u==C)c=c.prev;else if(u!=oe)break}"stat"==c.type&&"}"==a&&(c=c.prev),o&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var f=c.type,s=a==f;return"vardef"==f?c.indented+("operator"==t.lastType||","==t.lastType?c.info+1:0):"form"==f&&"{"==a?c.indented:"form"==f?c.indented+i:"stat"==f?c.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?o||i:0):"switch"!=c.info||s||0==r.doubleIndentSwitch?c.align?c.column+(s?0:1):c.indented+(s?0:i):c.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",lineComment:l?null:"//",fold:"brace",helperType:l?"json":"javascript",jsonldMode:c,jsonMode:l}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}); + + + +/*CodeMirror addon hint -----------------------------------------------Start*/ +/* https://github.com/farzher/fuzzysort */ +!function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof module&&module.exports?module.exports=r():e.fuzzysort=r()}(this,function(){var e="undefined"!=typeof require&&"undefined"==typeof window,r=new Map,n=new Map,o=[];o.total=0;var t=[],i=[];function a(){r.clear(),n.clear(),t=[],i=[]}function l(e){for(var r=-9007199254740991,n=e.length-1;n>=0;--n){var o=e[n];if(null!==o){var t=o.score;t>r&&(r=t)}}return-9007199254740991===r?null:r}function f(e,r){var n=e[r];if(void 0!==n)return n;var o=r;Array.isArray(r)||(o=r.split("."));for(var t=o.length,i=-1;e&&++i>1]=e[n],t=1+(n<<1)}for(var a=n-1>>1;n>0&&o.score>1)e[n]=e[a];e[n]=o}return n.add=function(n){var o=r;e[r++]=n;for(var t=o-1>>1;o>0&&n.score>1)e[o]=e[t];e[o]=n},n.poll=function(){if(0!==r){var n=e[0];return e[0]=e[--r],o(),n}},n.peek=function(n){if(0!==r)return e[0]},n.replaceTop=function(r){e[0]=r,o()},n},p=s();return function d(c){var g={single:function(e,r,n){return e?(u(e)||(e=g.getPreparedSearch(e)),r?(u(r)||(r=g.getPrepared(r)),((n&&void 0!==n.allowTypo?n.allowTypo:!c||void 0===c.allowTypo||c.allowTypo)?g.algorithm:g.algorithmNoTypo)(e,r,e[0])):null):null},go:function(e,r,n){if(!e)return o;var t=(e=g.prepareSearch(e))[0],i=n&&n.threshold||c&&c.threshold||-9007199254740991,a=n&&n.limit||c&&c.limit||9007199254740991,s=(n&&void 0!==n.allowTypo?n.allowTypo:!c||void 0===c.allowTypo||c.allowTypo)?g.algorithm:g.algorithmNoTypo,d=0,v=0,h=r.length;if(n&&n.keys)for(var w=n.scoreFn||l,x=n.keys,y=x.length,m=h-1;m>=0;--m){for(var T=r[m],k=new Array(y),b=y-1;b>=0;--b)(_=f(T,B=x[b]))?(u(_)||(_=g.getPrepared(_)),k[b]=s(e,_,t)):k[b]=null;k.obj=T;var I=w(k);null!==I&&(Ip.peek().score&&p.replaceTop(k))))}else if(n&&n.key){var B=n.key;for(m=h-1;m>=0;--m)(_=f(T=r[m],B))&&(u(_)||(_=g.getPrepared(_)),null!==(C=s(e,_,t))&&(C.scorep.peek().score&&p.replaceTop(C)))))}else for(m=h-1;m>=0;--m){var _,C;(_=r[m])&&(u(_)||(_=g.getPrepared(_)),null!==(C=s(e,_,t))&&(C.scorep.peek().score&&p.replaceTop(C)))))}if(0===d)return o;var A=new Array(d);for(m=d-1;m>=0;--m)A[m]=p.poll();return A.total=d+v,A},goAsync:function(r,n,t){var i=!1,a=new Promise(function(a,p){if(!r)return a(o);var d=(r=g.prepareSearch(r))[0],v=s(),h=n.length-1,w=t&&t.threshold||c&&c.threshold||-9007199254740991,x=t&&t.limit||c&&c.limit||9007199254740991,y=(t&&void 0!==t.allowTypo?t.allowTypo:!c||void 0===c.allowTypo||c.allowTypo)?g.algorithm:g.algorithmNoTypo,m=0,T=0;function k(){if(i)return p("canceled");var s=Date.now();if(t&&t.keys)for(var c=t.scoreFn||l,b=t.keys,I=b.length;h>=0;--h){for(var B=n[h],_=new Array(I),C=I-1;C>=0;--C)(P=f(B,L=b[C]))?(u(P)||(P=g.getPrepared(P)),_[C]=y(r,P,d)):_[C]=null;_.obj=B;var A=c(_);if(null!==A&&!(Av.peek().score&&v.replaceTop(_)),h%1e3==0&&Date.now()-s>=10))return void(e?setImmediate(k):setTimeout(k))}else if(t&&t.key){for(var L=t.key;h>=0;--h)if((P=f(B=n[h],L))&&(u(P)||(P=g.getPrepared(P)),null!==(j=y(r,P,d))&&!(j.scorev.peek().score&&v.replaceTop(j)),h%1e3==0&&Date.now()-s>=10)))return void(e?setImmediate(k):setTimeout(k))}else for(;h>=0;--h){var P,j;if((P=n[h])&&(u(P)||(P=g.getPrepared(P)),null!==(j=y(r,P,d))&&!(j.scorev.peek().score&&v.replaceTop(j)),h%1e3==0&&Date.now()-s>=10)))return void(e?setImmediate(k):setTimeout(k))}if(0===m)return a(o);for(var N=new Array(m),S=m-1;S>=0;--S)N[S]=v.poll();N.total=m+T,a(N)}e?setImmediate(k):k()});return a.cancel=function(){i=!0},a},highlight:function(e,r,n){if(null===e)return null;void 0===r&&(r=""),void 0===n&&(n="");for(var o="",t=0,i=!1,a=e.target,l=a.length,f=e.indexes,u=0;u999)return g.prepare(e);var n=r.get(e);return void 0!==n?n:(n=g.prepare(e),r.set(e,n),n)},getPreparedSearch:function(e){if(e.length>999)return g.prepareSearch(e);var r=n.get(e);return void 0!==r?r:(r=g.prepareSearch(e),n.set(e,r),r)},algorithm:function(e,r,n){for(var o=r._targetLowerCodes,a=e.length,l=o.length,f=0,u=0,s=0,p=0;;){if(n===o[u]){if(t[p++]=u,++f===a)break;n=e[0===s?f:s===f?f+1:s===f-1?f-1:f]}if(++u>=l)for(;;){if(f<=1)return null;if(0===s){if(n===e[--f])continue;s=f}else{if(1===s)return null;if((n=e[1+(f=--s)])===e[f])continue}u=t[(p=f)-1]+1;break}}f=0;var d=0,c=!1,v=0,h=r._nextBeginningIndexes;null===h&&(h=r._nextBeginningIndexes=g.prepareNextBeginningIndexes(r.target));var w=u=0===t[0]?0:h[t[0]-1];if(u!==l)for(;;)if(u>=l){if(f<=0){if(++d>a-2)break;if(e[d]===e[d+1])continue;u=w;continue}--f,u=h[i[--v]]}else if(e[0===d?f:d===f?f+1:d===f-1?f-1:f]===o[u]){if(i[v++]=u,++f===a){c=!0;break}++u}else u=h[u];if(c)var x=i,y=v;else x=t,y=p;for(var m=0,T=-1,k=0;k=0;--k)r.indexes[k]=x[k];return r},algorithmNoTypo:function(e,r,n){for(var o=r._targetLowerCodes,a=e.length,l=o.length,f=0,u=0,s=0;;){if(n===o[u]){if(t[s++]=u,++f===a)break;n=e[f]}if(++u>=l)return null}f=0;var p=!1,d=0,c=r._nextBeginningIndexes;if(null===c&&(c=r._nextBeginningIndexes=g.prepareNextBeginningIndexes(r.target)),(u=0===t[0]?0:c[t[0]-1])!==l)for(;;)if(u>=l){if(f<=0)break;--f,u=c[i[--d]]}else if(e[f]===o[u]){if(i[d++]=u,++f===a){p=!0;break}++u}else u=c[u];if(p)var v=i,h=d;else v=t,h=s;for(var w=0,x=-1,y=0;y=0;--y)r.indexes[y]=v[y];return r},prepareLowerCodes:function(e){for(var r=e.length,n=[],o=e.toLowerCase(),t=0;t=65&&l<=90,u=f||l>=97&&l<=122||l>=48&&l<=57,s=f&&!t||!i||!u;t=f,i=u,s&&(n[o++]=a)}return n},prepareNextBeginningIndexes:function(e){for(var r=e.length,n=g.prepareBeginningIndexes(e),o=[],t=n[0],i=0,a=0;aa?o[a]=t:(t=n[++i],o[a]=void 0===t?r:t);return o},cleanup:a,new:d};return g}()}); +/* showHint */ +!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";var i="CodeMirror-hint",e="CodeMirror-hint-active";function n(t,i){this.cm=t,this.options=i,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var e=this;t.on("cursorActivity",this.activityFunc=function(){e.cursorActivity()})}t.showHint=function(t,i,e){if(!i)return t.showHint(e);e&&e.async&&(i.async=!0);var n={hint:i};if(e)for(var o in e)n[o]=e[o];return t.showHint(n)},t.defineExtension("showHint",function(i){i=function(t,i,e){var n=t.options.hintOptions,o={};for(var s in a)o[s]=a[s];if(n)for(var s in n)void 0!==n[s]&&(o[s]=n[s]);if(e)for(var s in e)void 0!==e[s]&&(o[s]=e[s]);o.hint.resolve&&(o.hint=o.hint.resolve(t,i));return o}(this,this.getCursor("start"),i);var e=this.listSelections();if(!(e.length>1)){if(this.somethingSelected()){if(!i.hint.supportsSelection)return;for(var o=0;ol.clientHeight+1,x=h.getScrollInfo();if(C>0){var A=k.bottom-k.top;if(m.top-(m.bottom-k.top)-A>0)l.style.top=(v=m.top-A)+"px",y=!1;else if(A>H){l.style.height=H-5+"px",l.style.top=(v=m.bottom-k.top)+"px";var S=h.getCursor();o.from.ch!=S.ch&&(m=h.cursorCoords(S),l.style.left=(g=m.left)+"px",k=l.getBoundingClientRect())}}var T,M=k.right-w;if(M>0&&(k.right-k.left>w&&(l.style.width=w-5+"px",M-=k.right-k.left-w),l.style.left=(g=m.left-M)+"px"),b)for(var E=l.firstChild;E;E=E.nextSibling)E.style.paddingRight=h.display.nativeBarWidth+"px";(h.addKeyMap(this.keyMap=function(t,i){var e={Up:function(){i.moveFocus(-1)},Down:function(){i.moveFocus(1)},PageUp:function(){i.moveFocus(1-i.menuSize(),!0)},PageDown:function(){i.moveFocus(i.menuSize()-1,!0)},Home:function(){i.setFocus(0)},End:function(){i.setFocus(i.length-1)},Enter:i.pick,Tab:i.pick,Esc:i.close},n=t.options.customKeys,o=n?{}:e;function s(t,n){var s;s="string"!=typeof n?function(t){return n(t,i)}:e.hasOwnProperty(n)?e[n]:n,o[t]=s}if(n)for(var c in n)n.hasOwnProperty(c)&&s(c,n[c]);var r=t.options.extraKeys;if(r)for(var c in r)r.hasOwnProperty(c)&&s(c,r[c]);return o}(n,{moveFocus:function(t,i){s.changeActive(s.selectedHint+t,i)},setFocus:function(t){s.changeActive(t)},menuSize:function(){return s.screenAmount()},length:a.length,close:function(){n.close()},pick:function(){s.pick()},data:o})),n.options.closeOnUnfocus)&&(h.on("blur",this.onBlur=function(){T=setTimeout(function(){n.close()},100)}),h.on("focus",this.onFocus=function(){clearTimeout(T)}));return h.on("scroll",this.onScroll=function(){var t=h.getScrollInfo(),i=h.getWrapperElement().getBoundingClientRect(),e=v+x.top-t.top,o=e-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(y||(o+=l.offsetHeight),o<=i.top||o>=i.bottom)return n.close();l.style.top=e+"px",l.style.left=g+x.left-t.left+"px"}),t.on(l,"dblclick",function(t){var i=r(l,t.target||t.srcElement);i&&null!=i.hintId&&(s.changeActive(i.hintId),s.pick())}),t.on(l,"click",function(t){var i=r(l,t.target||t.srcElement);i&&null!=i.hintId&&(s.changeActive(i.hintId),n.options.completeOnSingleClick&&s.pick())}),t.on(l,"mousedown",function(){setTimeout(function(){h.focus()},20)}),t.signal(o,"select",a[0],l.firstChild),!0}function l(t,i,e,n){if(t.async)t(i,n,e);else{var o=t(i,e);o&&o.then?o.then(n):n(o)}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(i,e){var n=i.list[e];n.hint?n.hint(this.cm,i,n):this.cm.replaceRange(c(n),n.from||i.from,n.to||i.to,"complete"),t.signal(i,"pick",n),this.close()},cursorActivity:function(){this.debounce&&(s(this.debounce),this.debounce=0);var t=this.cm.getCursor(),i=this.cm.getLine(t.line);if(t.line!=this.startPos.line||i.length-t.ch!=this.startLen-this.startPos.ch||t.ch0&&n.to.ch-n.from.ch!=o.to.ch-o.from.ch)))&&(this.data=i,i&&i.list.length))if(s&&1==i.list.length)this.pick(i,0);else{if(1==i.list.length&&i.to.ch-i.from.ch===i.list[0].length)return;this.widget=new h(this,i),t.signal(i,"shown")}}},h.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(i,n){if(i>=this.data.list.length?i=n?this.data.list.length-1:0:i<0&&(i=n?0:this.data.list.length-1),this.selectedHint!=i){var o=this.hints.childNodes[this.selectedHint];o.className=o.className.replace(" "+e,""),(o=this.hints.childNodes[this.selectedHint=i]).className+=" "+e,o.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=o.offsetTop+o.offsetHeight-this.hints.clientHeight+3),t.signal(this.data,"select",this.data.list[this.selectedHint],o)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:function(i,e){var n,o=i.getHelpers(e,"hint");if(o.length){var s=function(t,i,e){var n=function(t,i){if(!t.somethingSelected())return i;for(var e=[],n=0;n0?i(t):o(s+1)})}(0)};return s.async=!0,s.supportsSelection=!0,s}if(n=i.getHelper(i.getCursor(),"hintWords")){t.signal(i,"hinting",n);var c=i.state.myhints,r=n.slice(0);return c&&c.forEach(function(t){-1===n.indexOf(t)&&r.push(t)}),function(i){return t.hint.fromList(i,{words:r})}}return t.hint.anyword?function(i,e){return t.hint.anyword(i,e)}:function(){}}}),t.registerHelper("hint","fromList",function(i,e){var n=i.getCursor(),o=i.getTokenAt(n),s=t.Pos(n.line,o.end);if(o.string&&/\w/.test(o.string[o.string.length-1]))var c=o.string,r=t.Pos(n.line,o.start);else c="",r=s;var h=[];if(fuzzysort&&fuzzysort.go){var l=fuzzysort.go(c,e.words);l&&l.forEach(function(t){h.push(t.target)})}else for(var a=0;a,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)}); +/* javascript-hint 注释掉,使得show-hint.js 的resolveAutoHints方法进入这个判断:} else if (words = cm.getHelper(cm.getCursor(), "hintWords")) { */ +// !function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){var e=t.Pos;function r(t,e){for(var r=0,n=t.length;rf.ch&&(c.end=f.ch,c.string=c.string.slice(0,f.ch-c.start)):c={start:f.ch,end:f.ch,string:"",state:c.state,type:"."==c.string?"property":null};for(var p=c;"property"==p.type;){if("."!=(p=s(i,e(f.line,p.start))).string)return;if(p=s(i,e(f.line,p.start)),!l)var l=[];l.push(p)}t.signal(i,"hinting");var u=i.state.myhints;return i.state.needToClearJSHint&&(o=[],i.state.needToClearJSHint=!1),u&&u.forEach(function(t){n(o,t)||o.push(t)}),{list:function(t,e,i,o){var s=[],a=t.string,f=o&&o.globalScope||window;function c(t){if(fuzzysort&&fuzzysort.single){var e=fuzzysort.single(a,t);e&&e.score<=0&&!n(s,t)&&s.push(t)}else 0!=t.lastIndexOf(a,0)||n(s,t)||s.push(t)}if(e&&e.length){var p,l=e.pop();for(l.type&&0===l.type.indexOf("variable")?(o&&o.additionalContext&&(p=o.additionalContext[l.string]),o&&!1===o.useGlobalScope||(p=p||f[l.string])):"string"==l.type?p="":"atom"==l.type?p=1:"function"==l.type&&(null==f.jQuery||"$"!=l.string&&"jQuery"!=l.string||"function"!=typeof f.jQuery?null!=f._&&"_"==l.string&&"function"==typeof f._&&(p=f._()):p=f.jQuery());null!=p&&e.length;)p=p[e.pop().string];null!=p&&function(t){"string"==typeof t?r(stringProps,c):t instanceof Array?r(arrayProps,c):t instanceof Function&&r(funcProps,c);!function(t,e){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var r=t;r;r=Object.getPrototypeOf(r))Object.getOwnPropertyNames(r).forEach(e);else for(var n in t)e(n)}(t,c)}(p)}else{var u=fuzzysort.go(a,i);u&&u.forEach(function(t){s.push(t.target)})}return s}(c,l,o,a),from:e(f.line,c.start),to:e(f.line,c.end)}}}function o(t,e){var r=t.getTokenAt(e);return e.ch==r.start+1&&"."==r.string.charAt(0)?(r.end=r.start,r.string=".",r.type="property"):/^\.[\w$_]*$/.test(r.string)&&(r.type="property",r.start++,r.string=r.string.replace(/\./,"")),r}t.registerHelper("hint","javascript",function(t,e){return i(t,s,function(t,e){return t.getTokenAt(e)},e)}),t.registerHelper("hint","coffeescript",function(t,e){return i(t,coffeescriptKeywords,o,e)});var s="double float int long short null true false enum super this void auto for register static const friend mutable explicit virtual template typename printf break continue return do while if else for instanceof switch case default try catch finally throw throws assert import package boolean byte char delete private inline struct union signed unsigned export extern namespace using operator sizeof typedef typeid and del from not as elif or with pass except print exec raise is def lambda private protected public abstract class extends final implements interface native new static strictfp synchronized transient main String string System println vector bool boolean FALSE TRUE function".split(" ")}); +/* anyword-hint */ +!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var r=/[\w$]+/;e.registerHelper("hint","anyword",function(t,o){for(var i=o&&o.word||r,n=o&&o.range||500,f=t.getCursor(),s=t.getLine(f.line),a=f.ch,c=a;c&&i.test(s.charAt(c-1));)--c;for(var l=c!=a&&s.slice(c,a),d=o&&o.list||[],u={},p=new RegExp(i.source,"g"),g=-1;g<=1;g+=2)for(var h=f.line,m=Math.min(Math.max(h+g*n,t.firstLine()),t.lastLine())+g;h!=m;h+=g)for(var y,b=t.getLine(h);y=p.exec(b);)h==f.line&&y[0]===l||l&&0!=y[0].lastIndexOf(l,0)||Object.prototype.hasOwnProperty.call(u,y[0])||(u[y[0]]=!0,d.push(y[0]));return{list:d,from:e.Pos(f.line,c),to:e.Pos(f.line,a)}})}); +/*CodeMirror addon hint -----------------------------------------------End*/ + +// CodeMirror python +!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=t(["and","or","not","is"]),r=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],i=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function o(e){return e.scopes[e.scopes.length-1]}e.registerHelper("hintWords","python",r.concat(i)),e.defineMode("python",function(a,s){for(var c="error",l=s.delimiters||s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,u=[s.singleOperators,s.doubleOperators,s.doubleDelimiters,s.tripleDelimiters,s.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@])/],f=0;fr?_(t):i0&&z(e,t)&&(a+=" "+c),a}return v(e,t)}function v(e,t){if(e.eatSpace())return null;if(e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var r=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(r=!0),e.match(/^[\d_]+\.\d*/)&&(r=!0),e.match(/^\.\d+/)&&(r=!0),r)return e.eat(/J/i),"number";var i=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(i=!0),e.match(/^0b[01_]+/i)&&(i=!0),e.match(/^0o[0-7_]+/i)&&(i=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),i=!0),e.match(/^0(?![\dx])/i)&&(i=!0),i)return e.eat(/L/i),"number"}if(e.match(y))return-1!==e.current().toLowerCase().indexOf("f")?(t.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";function i(t,n){return t.match(e)?(n.tokenize=o,r):t.match("{")?"punctuation":t.match("}")?(n.tokenize=o,"punctuation"):v(t,n)}function o(o,a){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),n&&o.eol())return r}else{if(o.match(e))return a.tokenize=t,r;if(o.match("{{"))return r;if(o.match("{",!1))return a.tokenize=i,o.current()?r:(o.next(),"punctuation");if(o.match("}}"))return r;if(o.match("}"))return c;o.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return c;a.tokenize=t}return r}return o.isString=!0,o}(e.current(),t.tokenize),t.tokenize(e,t)):(t.tokenize=function(e){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var t=1==e.length,n="string";function r(r,i){for(;!r.eol();)if(r.eatWhile(/[^'"\\]/),r.eat("\\")){if(r.next(),t&&r.eol())return n}else{if(r.match(e))return i.tokenize=x,n;r.eat(/['"]/)}if(t){if(s.singleLineStringErrors)return c;i.tokenize=x}return n}return r.isString=!0,r}(e.current()),t.tokenize(e,t));for(var o=0;o1&&o(t).offset>n;){if("py"!=o(t).type)return!0;t.scopes.pop()}return o(t).offset!=n}function w(e,t){e.sol()&&(t.beginningOfLine=!0);var n=t.tokenize(e,t),r=e.current();if(t.beginningOfLine&&"@"==r)return e.match(b,!1)?"meta":h?"operator":c;if(/\S/.test(r)&&(t.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=t.lastToken||(n="meta"),"pass"!=r&&"return"!=r||(t.dedent+=1),"lambda"==r&&(t.lambda=!0),":"!=r||t.lambda||"py"!=o(t).type||_(t),1==r.length&&!/string|comment/.test(n)){var i="[({".indexOf(r);if(-1!=i&&function(e,t,n){var r=e.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+p,type:n,align:r})}(e,t,"])}".slice(i,i+1)),-1!=(i="])}".indexOf(r))){if(o(t).type!=r)return c;t.indent=t.scopes.pop().offset-p}}return t.dedent>0&&e.eol()&&"py"==o(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),n}return{startState:function(e){return{tokenize:x,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=w(e,t);return r&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" "+c:r},indent:function(t,n){if(t.tokenize!=x)return t.tokenize.isString?e.Pass:0;var r=o(t),i=r.type==n.charAt(0);return null!=r.align?r.align-(i?1:0):r.offset-(i?p:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-python","python");var a;e.defineMIME("text/x-cython",{name:"python",extra_keywords:(a="by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE",a.split(" "))})}); +// CodeMirror c-like(java) +!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,n,r,o,a){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=o,this.prev=a}function n(e,n,r,o){var a=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(a=e.context.indented),e.context=new t(a,n,r,o,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function o(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function a(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function i(e){for(var t={},n=e.split(" "),r=0;r!?|\/]/,L=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/;function D(e,t){var n,r=e.next();if(k[r]){var o=k[r](e,t);if(!1!==o)return o}if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,o=!1,a=!1;null!=(r=e.next());){if(r==n&&!o){a=!0;break}o=!o&&"\\"==r}return(a||!o&&!w)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(C.test(r))return c=r,null;if(T.test(r)){if(e.backUp(1),e.match(M))return"number";e.next()}if("/"==r){if(e.eat("*"))return t.tokenize=z,z(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(P.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(P););return"operator"}if(e.eatWhile(L),S)for(;e.match(S);)e.eatWhile(L);var a=e.current();return l(m,a)?(l(g,a)&&(c="newstatement"),l(x,a)&&(u=!0),"keyword"):l(h,a)?"type":l(y,a)?(l(g,a)&&(c="newstatement"),"builtin"):l(b,a)?"atom":"variable"}function z(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function I(e,t){s.typeFirstDefinitions&&e.eol()&&a(t.context)&&(t.typeAtEndOfLine=o(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var i=t.context;if(e.sol()&&(null==i.align&&(i.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return I(e,t),null;c=u=null;var l=(t.tokenize||D)(e,t);if("comment"==l||"meta"==l)return l;if(null==i.align&&(i.align=!0),";"==c||":"==c||","==c&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)r(t);else if("{"==c)n(t,e.column(),"}");else if("["==c)n(t,e.column(),"]");else if("("==c)n(t,e.column(),")");else if("}"==c){for(;"statement"==i.type;)i=r(t);for("}"==i.type&&(i=r(t));"statement"==i.type;)i=r(t)}else c==i.type?r(t):v&&(("}"==i.type||"top"==i.type)&&";"!=c||"statement"==i.type&&"newstatement"==c)&&n(t,e.column(),"statement",e.current());if("variable"==l&&("def"==t.prevToken||s.typeFirstDefinitions&&o(e,t,e.start)&&a(t.context)&&e.match(/^\s*\(/,!1))&&(l="def"),k.token){var d=k.token(e,t,l);void 0!==d&&(l=d)}return"def"==l&&!1===s.styleDefs&&(l="variable"),t.startOfLine=!1,t.prevToken=u?"def":l||c,I(e,t),l},indent:function(t,n){if(t.tokenize!=D&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var r=t.context,o=n&&n.charAt(0);if("statement"==r.type&&"}"==o&&(r=r.prev),s.dontIndentStatements)for(;"statement"==r.type&&s.dontIndentStatements.test(r.info);)r=r.prev;if(k.indent){var a=k.indent(t,r,n);if("number"==typeof a)return a}var i=o==r.type,l=r.prev&&"switch"==r.prev.info;if(s.allmanIndentation&&/[{(]/.test(o)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==o?0:f):!r.align||p&&")"==r.type?")"!=r.type||i?r.indented+(i?0:d)+(i||!l||/^(?:case|default)\b/.test(n)?0:d):r.indented+f:r.column+(i?0:1)},electricInput:_?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var s="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile",c="int long char short double float unsigned signed void size_t ptrdiff_t";function u(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=u;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function d(e,t){return"type"==t.prevToken&&"type"}function f(e){return e.eatWhile(/[\w\.']/),"number"}function p(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var n=e.match(/"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=h,h(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function m(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function h(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function y(t,n){"string"==typeof t&&(t=[t]);var r=[];function o(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}o(n.keywords),o(n.types),o(n.builtin),o(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var a=0;a!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=g,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=function e(t){return function(n,r){for(var o;o=n.next();){if("*"==o&&n.eat("/")){if(1==t){r.tokenize=null;break}return r.tokenize=e(t-1),r.tokenize(n,r)}if("/"==o&&n.eat("*"))return r.tokenize=e(t+1),r.tokenize(n,r)}return"comment"}}(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{triples:'"'}}}),y("text/x-kotlin",{name:"clike",keywords:i("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:i("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:i("catch class do else finally for if where try while enum"),defKeywords:i("class val var object interface fun"),atoms:i("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){var n;return t.tokenize=(n=e.match('""'),function(e,t){for(var r,o=!1,a=!1;!e.eol();){if(!n&&!o&&e.match('"')){a=!0;break}if(n&&e.match('"""')){a=!0;break}r=e.next(),!o&&"$"==r&&e.match("{")&&e.skipTo("}"),o=!o&&"\\"==r&&!n}return!a&&n||(t.tokenize=null),"string"}),t.tokenize(e,t)}},modeProps:{closeBrackets:{triples:'"'}}}),y(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:i("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:i("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:i("for while do if else struct"),builtin:i("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:i("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":u},modeProps:{fold:["brace","include"]}}),y("text/x-nesc",{name:"clike",keywords:i(s+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:i(c),blockKeywords:i("case do else for if switch while struct"),atoms:i("null true false"),hooks:{"#":u},modeProps:{fold:["brace","include"]}}),y("text/x-objectivec",{name:"clike",keywords:i(s+"inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:i(c),atoms:i("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(e){return e.eatWhile(/[\w\$]/),"keyword"},"#":u,indent:function(e,t,n){if("statement"==t.type&&/^@\w/.test(n))return t.indented}},modeProps:{fold:"brace"}}),y("text/x-squirrel",{name:"clike",keywords:i("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:i(c),blockKeywords:i("case catch class else for foreach if switch try while"),defKeywords:i("function local class"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"#":u},modeProps:{fold:["brace","include"]}});var x=null;y("text/x-ceylon",{name:"clike",keywords:i("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:i("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:i("class dynamic function interface module object package value"),builtin:i("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:i("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=function e(t){return function(n,r){for(var o,a=!1,i=!1;!n.eol();){if(!a&&n.match('"')&&("single"==t||n.match('""'))){i=!0;break}if(!a&&n.match("``")){x=e(t),i=!0;break}o=n.next(),a="single"==t&&!a&&"\\"==o}return i&&(r.tokenize=null),"string"}}(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!x||!e.match("`"))&&(t.tokenize=x,x=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}); +// CodeMirror matchbrackets +!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"};function i(t,e,i){var c=t.getLineHandle(e.line),o=e.ch-1,l=i&&i.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var h=!l&&o>=0&&r[c.text.charAt(o)]||r[c.text.charAt(++o)];if(!h)return null;var s=">"==h.charAt(1)?1:-1;if(i&&i.strict&&s>0!=(o==e.ch))return null;var u=t.getTokenTypeAt(n(e.line,o+1)),f=a(t,n(e.line,o+(s>0?1:0)),s,u||null,i);return null==f?null:{from:n(e.line,o),to:f&&f.pos,match:f&&f.ch==h.charAt(0),forward:s>0}}function a(t,e,i,a,c){for(var o=c&&c.maxScanLineLength||1e4,l=c&&c.maxScanLines||1e3,h=[],s=c&&c.bracketRegex?c.bracketRegex:/[(){}[\]]/,u=i>0?Math.min(e.line+l,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-l),f=e.line;f!=u;f+=i){var m=t.getLine(f);if(m){var g=i>0?0:m.length-1,d=i>0?m.length:-1;if(!(m.length>o))for(f==e.line&&(g=e.ch-(i<0?1:0));g!=d;g+=i){var k=m.charAt(g);if(s.test(k)&&(void 0===a||t.getTokenTypeAt(n(f,g+1))==a))if(">"==r[k].charAt(1)==i>0)h.push(k);else{if(!h.length)return{pos:n(f,g),ch:k};h.pop()}}}}return f-i!=(i>0?t.lastLine():t.firstLine())&&null}function c(t,r,a){for(var c=t.state.matchBrackets.maxHighlightLineLength||1e3,o=[],l=t.listSelections(),h=0;h{ + // let origin = event.origin || event.originalEvent.origin; + // if (origin !== '需要发送的消息') { + // return; + // }else { + // //更换iframe的src,实现iframe页面跳转 + // 执行方法 + // } + // },false); + diff --git a/js/merge.js b/js/merge.js new file mode 100644 index 000000000..523e50247 --- /dev/null +++ b/js/merge.js @@ -0,0 +1,1040 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE +// merge.js +// declare global: diff_match_patch, DIFF_INSERT, DIFF_DELETE, DIFF_EQUAL + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); // Note non-packaged dependency diff_match_patch + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "diff_match_patch"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + var Pos = CodeMirror.Pos; + var svgNS = "http://www.w3.org/2000/svg"; + + var value, orig1, orig2, dv, panes = 2, highlight = true, connect = null, collapse = false; + CodeMirror.k_init=function(id,newData,oldData){ + value=oldData;//左侧 老文件 + orig1 = ''; + orig2=newData;//右侧 新文件 + var dv = initUI(); + + // 滚轮按钮被注释了---- (setScrollLock) + function initUI() { + if (value == null) return; + var target = document.getElementById(id); + target.innerHTML = ""; + dv = CodeMirror.MergeView(target, { + value: value, + origLeft: panes == 3 && !collapse && !connect ? orig1 : null, + orig: orig2, + lineNumbers: true, //行号 + mode: "text/html", + theme:'blackboard',//修改主题 + //styleActiveLine: true, + matchBrackets: true, + highlightDifferences: highlight, + connect: connect, + collapseIdentical: collapse, + readOnly: "nocursor", + revertButtons:true//事件比较替换 + }); + console.log(dv.edit); + return dv + } + return dv; + }; + + function DiffView(mv, type) { + this.mv = mv; + this.type = type; + this.classes = type == "left" + ? {chunk: "CodeMirror-merge-l-chunk", + start: "CodeMirror-merge-l-chunk-start", + end: "CodeMirror-merge-l-chunk-end", + insert: "CodeMirror-merge-l-inserted", + del: "CodeMirror-merge-l-deleted", + connect: "CodeMirror-merge-l-connect"} + : {chunk: "CodeMirror-merge-r-chunk", + start: "CodeMirror-merge-r-chunk-start", + end: "CodeMirror-merge-r-chunk-end", + insert: "CodeMirror-merge-r-inserted", + del: "CodeMirror-merge-r-deleted", + connect: "CodeMirror-merge-r-connect"}; + } + + DiffView.prototype = { + constructor: DiffView, + init: function(pane, orig, options) { + this.edit = this.mv.edit; + ;(this.edit.state.diffViews || (this.edit.state.diffViews = [])).push(this); + this.orig = CodeMirror(pane, copyObj({value: orig, readOnly: !this.mv.options.allowEditingOriginals}, copyObj(options))); + if (this.mv.options.connect == "align") { + if (!this.edit.state.trackAlignable) this.edit.state.trackAlignable = new TrackAlignable(this.edit) + this.orig.state.trackAlignable = new TrackAlignable(this.orig) + } + + this.orig.state.diffViews = [this]; + var classLocation = options.chunkClassLocation || "background"; + if (Object.prototype.toString.call(classLocation) != "[object Array]") classLocation = [classLocation] + this.classes.classLocation = classLocation + + this.diff = getDiff(asString(orig), asString(options.value), this.mv.options.ignoreWhitespace); + this.chunks = getChunks(this.diff); + this.diffOutOfDate = this.dealigned = false; + this.needsScrollSync = null + + this.showDifferences = options.showDifferences !== false; + }, + registerEvents: function(otherDv) { + this.forceUpdate = registerUpdate(this); + setScrollLock(this, true, false); + registerScroll(this, otherDv); + }, + setShowDifferences: function(val) { + val = val !== false; + if (val != this.showDifferences) { + this.showDifferences = val; + this.forceUpdate("full"); + } + } + }; + + function ensureDiff(dv) { + if (dv.diffOutOfDate) { + dv.diff = getDiff(dv.orig.getValue(), dv.edit.getValue(), dv.mv.options.ignoreWhitespace); + dv.chunks = getChunks(dv.diff); + dv.diffOutOfDate = false; + CodeMirror.signal(dv.edit, "updateDiff", dv.diff); + } + } + + var updating = false; + function registerUpdate(dv) { + var edit = {from: 0, to: 0, marked: []}; + var orig = {from: 0, to: 0, marked: []}; + var debounceChange, updatingFast = false; + function update(mode) { + updating = true; + updatingFast = false; + if (mode == "full") { + if (dv.svg) clear(dv.svg); + if (dv.copyButtons) clear(dv.copyButtons); + clearMarks(dv.edit, edit.marked, dv.classes); + clearMarks(dv.orig, orig.marked, dv.classes); + edit.from = edit.to = orig.from = orig.to = 0; + } + ensureDiff(dv); + if (dv.showDifferences) { + updateMarks(dv.edit, dv.diff, edit, DIFF_INSERT, dv.classes); + updateMarks(dv.orig, dv.diff, orig, DIFF_DELETE, dv.classes); + } + + if (dv.mv.options.connect == "align") + alignChunks(dv); + makeConnections(dv); + if (dv.needsScrollSync != null) syncScroll(dv, dv.needsScrollSync) + + updating = false; + } + function setDealign(fast) { + if (updating) return; + dv.dealigned = true; + set(fast); + } + function set(fast) { + if (updating || updatingFast) return; + clearTimeout(debounceChange); + if (fast === true) updatingFast = true; + debounceChange = setTimeout(update, fast === true ? 20 : 250); + } + function change(_cm, change) { + if (!dv.diffOutOfDate) { + dv.diffOutOfDate = true; + edit.from = edit.to = orig.from = orig.to = 0; + } + // Update faster when a line was added/removed + setDealign(change.text.length - 1 != change.to.line - change.from.line); + } + function swapDoc() { + dv.diffOutOfDate = true; + dv.dealigned = true; + update("full"); + } + dv.edit.on("change", change); + dv.orig.on("change", change); + dv.edit.on("swapDoc", swapDoc); + dv.orig.on("swapDoc", swapDoc); + if (dv.mv.options.connect == "align") { + CodeMirror.on(dv.edit.state.trackAlignable, "realign", setDealign) + CodeMirror.on(dv.orig.state.trackAlignable, "realign", setDealign) + } + dv.edit.on("viewportChange", function() { set(false); }); + dv.orig.on("viewportChange", function() { set(false); }); + update(); + return update; + } + + function registerScroll(dv, otherDv) { + dv.edit.on("scroll", function() { + syncScroll(dv, true) && makeConnections(dv); + }); + dv.orig.on("scroll", function() { + syncScroll(dv, false) && makeConnections(dv); + if (otherDv) syncScroll(otherDv, true) && makeConnections(otherDv); + }); + } + + function syncScroll(dv, toOrig) { + // Change handler will do a refresh after a timeout when diff is out of date + if (dv.diffOutOfDate) { + if (dv.lockScroll && dv.needsScrollSync == null) dv.needsScrollSync = toOrig + return false + } + dv.needsScrollSync = null + if (!dv.lockScroll) return true; + var editor, other, now = +new Date; + if (toOrig) { editor = dv.edit; other = dv.orig; } + else { editor = dv.orig; other = dv.edit; } + // Don't take action if the position of this editor was recently set + // (to prevent feedback loops) + if (editor.state.scrollSetBy == dv && (editor.state.scrollSetAt || 0) + 250 > now) return false; + + var sInfo = editor.getScrollInfo(); + if (dv.mv.options.connect == "align") { + targetPos = sInfo.top; + } else { + var halfScreen = .5 * sInfo.clientHeight, midY = sInfo.top + halfScreen; + var mid = editor.lineAtHeight(midY, "local"); + var around = chunkBoundariesAround(dv.chunks, mid, toOrig); + var off = getOffsets(editor, toOrig ? around.edit : around.orig); + var offOther = getOffsets(other, toOrig ? around.orig : around.edit); + var ratio = (midY - off.top) / (off.bot - off.top); + var targetPos = (offOther.top - halfScreen) + ratio * (offOther.bot - offOther.top); + + var botDist, mix; + // Some careful tweaking to make sure no space is left out of view + // when scrolling to top or bottom. + if (targetPos > sInfo.top && (mix = sInfo.top / halfScreen) < 1) { + targetPos = targetPos * mix + sInfo.top * (1 - mix); + } else if ((botDist = sInfo.height - sInfo.clientHeight - sInfo.top) < halfScreen) { + var otherInfo = other.getScrollInfo(); + var botDistOther = otherInfo.height - otherInfo.clientHeight - targetPos; + if (botDistOther > botDist && (mix = botDist / halfScreen) < 1) + targetPos = targetPos * mix + (otherInfo.height - otherInfo.clientHeight - botDist) * (1 - mix); + } + } + + other.scrollTo(sInfo.left, targetPos); + other.state.scrollSetAt = now; + other.state.scrollSetBy = dv; + return true; + } + + function getOffsets(editor, around) { + var bot = around.after; + if (bot == null) bot = editor.lastLine() + 1; + return {top: editor.heightAtLine(around.before || 0, "local"), + bot: editor.heightAtLine(bot, "local")}; + } + + function setScrollLock(dv, val, action) { + dv.lockScroll = val; + if (val && action != false) syncScroll(dv, DIFF_INSERT) && makeConnections(dv); + // 对比滚轮Toggle locked scrolling的样式 + //dv.lockButton.innerHTML = val ? "\u21db\u21da" : "\u21db  \u21da"; + } + + // Updating the marks for editor content + + function removeClass(editor, line, classes) { + var locs = classes.classLocation + for (var i = 0; i < locs.length; i++) { + editor.removeLineClass(line, locs[i], classes.chunk); + editor.removeLineClass(line, locs[i], classes.start); + editor.removeLineClass(line, locs[i], classes.end); + } + } + + function clearMarks(editor, arr, classes) { + for (var i = 0; i < arr.length; ++i) { + var mark = arr[i]; + if (mark instanceof CodeMirror.TextMarker) + mark.clear(); + else if (mark.parent) + removeClass(editor, mark, classes); + } + arr.length = 0; + } + + // FIXME maybe add a margin around viewport to prevent too many updates + function updateMarks(editor, diff, state, type, classes) { + var vp = editor.getViewport(); + editor.operation(function() { + if (state.from == state.to || vp.from - state.to > 20 || state.from - vp.to > 20) { + clearMarks(editor, state.marked, classes); + markChanges(editor, diff, type, state.marked, vp.from, vp.to, classes); + state.from = vp.from; state.to = vp.to; + } else { + if (vp.from < state.from) { + markChanges(editor, diff, type, state.marked, vp.from, state.from, classes); + state.from = vp.from; + } + if (vp.to > state.to) { + markChanges(editor, diff, type, state.marked, state.to, vp.to, classes); + state.to = vp.to; + } + } + }); + } + + function addClass(editor, lineNr, classes, main, start, end) { + var locs = classes.classLocation, line = editor.getLineHandle(lineNr); + for (var i = 0; i < locs.length; i++) { + if (main) editor.addLineClass(line, locs[i], classes.chunk); + if (start) editor.addLineClass(line, locs[i], classes.start); + if (end) editor.addLineClass(line, locs[i], classes.end); + } + return line; + } + + function markChanges(editor, diff, type, marks, from, to, classes) { + var pos = Pos(0, 0); + var top = Pos(from, 0), bot = editor.clipPos(Pos(to - 1)); + var cls = type == DIFF_DELETE ? classes.del : classes.insert; + function markChunk(start, end) { + var bfrom = Math.max(from, start), bto = Math.min(to, end); + for (var i = bfrom; i < bto; ++i) + marks.push(addClass(editor, i, classes, true, i == start, i == end - 1)); + // When the chunk is empty, make sure a horizontal line shows up + if (start == end && bfrom == end && bto == end) { + if (bfrom) + marks.push(addClass(editor, bfrom - 1, classes, false, false, true)); + else + marks.push(addClass(editor, bfrom, classes, false, true, false)); + } + } + + var chunkStart = 0, pending = false; + for (var i = 0; i < diff.length; ++i) { + var part = diff[i], tp = part[0], str = part[1]; + if (tp == DIFF_EQUAL) { + var cleanFrom = pos.line + (startOfLineClean(diff, i) ? 0 : 1); + moveOver(pos, str); + var cleanTo = pos.line + (endOfLineClean(diff, i) ? 1 : 0); + if (cleanTo > cleanFrom) { + if (pending) { markChunk(chunkStart, cleanFrom); pending = false } + chunkStart = cleanTo; + } + } else { + pending = true + if (tp == type) { + var end = moveOver(pos, str, true); + var a = posMax(top, pos), b = posMin(bot, end); + if (!posEq(a, b)) + marks.push(editor.markText(a, b, {className: cls})); + pos = end; + } + } + } + if (pending) markChunk(chunkStart, pos.line + 1); + } + + // Updating the gap between editor and original + + function makeConnections(dv) { + if (!dv.showDifferences) return; + + if (dv.svg) { + clear(dv.svg); + var w = dv.gap.offsetWidth; + attrs(dv.svg, "width", w, "height", dv.gap.offsetHeight); + } + if (dv.copyButtons) clear(dv.copyButtons); + + var vpEdit = dv.edit.getViewport(), vpOrig = dv.orig.getViewport(); + var outerTop = dv.mv.wrap.getBoundingClientRect().top + var sTopEdit = outerTop - dv.edit.getScrollerElement().getBoundingClientRect().top + dv.edit.getScrollInfo().top + var sTopOrig = outerTop - dv.orig.getScrollerElement().getBoundingClientRect().top + dv.orig.getScrollInfo().top; + for (var i = 0; i < dv.chunks.length; i++) { + var ch = dv.chunks[i]; + if (ch.editFrom <= vpEdit.to && ch.editTo >= vpEdit.from && + ch.origFrom <= vpOrig.to && ch.origTo >= vpOrig.from) + drawConnectorsForChunk(dv, ch, sTopOrig, sTopEdit, w); + } + } + + function getMatchingOrigLine(editLine, chunks) { + var editStart = 0, origStart = 0; + for (var i = 0; i < chunks.length; i++) { + var chunk = chunks[i]; + if (chunk.editTo > editLine && chunk.editFrom <= editLine) return null; + if (chunk.editFrom > editLine) break; + editStart = chunk.editTo; + origStart = chunk.origTo; + } + return origStart + (editLine - editStart); + } + + // Combines information about chunks and widgets/markers to return + // an array of lines, in a single editor, that probably need to be + // aligned with their counterparts in the editor next to it. + function alignableFor(cm, chunks, isOrig) { + var tracker = cm.state.trackAlignable + var start = cm.firstLine(), trackI = 0 + var result = [] + for (var i = 0;; i++) { + var chunk = chunks[i] + var chunkStart = !chunk ? 1e9 : isOrig ? chunk.origFrom : chunk.editFrom + for (; trackI < tracker.alignable.length; trackI += 2) { + var n = tracker.alignable[trackI] + 1 + if (n <= start) continue + if (n <= chunkStart) result.push(n) + else break + } + if (!chunk) break + result.push(start = isOrig ? chunk.origTo : chunk.editTo) + } + return result + } + + // Given information about alignable lines in two editors, fill in + // the result (an array of three-element arrays) to reflect the + // lines that need to be aligned with each other. + function mergeAlignable(result, origAlignable, chunks, setIndex) { + var rI = 0, origI = 0, chunkI = 0, diff = 0 + outer: for (;; rI++) { + var nextR = result[rI], nextO = origAlignable[origI] + if (!nextR && nextO == null) break + + var rLine = nextR ? nextR[0] : 1e9, oLine = nextO == null ? 1e9 : nextO + while (chunkI < chunks.length) { + var chunk = chunks[chunkI] + if (chunk.origFrom <= oLine && chunk.origTo > oLine) { + origI++ + rI-- + continue outer; + } + if (chunk.editTo > rLine) { + if (chunk.editFrom <= rLine) continue outer; + break + } + diff += (chunk.origTo - chunk.origFrom) - (chunk.editTo - chunk.editFrom) + chunkI++ + } + if (rLine == oLine - diff) { + nextR[setIndex] = oLine + origI++ + } else if (rLine < oLine - diff) { + nextR[setIndex] = rLine + diff + } else { + var record = [oLine - diff, null, null] + record[setIndex] = oLine + result.splice(rI, 0, record) + origI++ + } + } + } + + function findAlignedLines(dv, other) { + var alignable = alignableFor(dv.edit, dv.chunks, false), result = [] + if (other) for (var i = 0, j = 0; i < other.chunks.length; i++) { + var n = other.chunks[i].editTo + while (j < alignable.length && alignable[j] < n) j++ + if (j == alignable.length || alignable[j] != n) alignable.splice(j++, 0, n) + } + for (var i = 0; i < alignable.length; i++) + result.push([alignable[i], null, null]) + + mergeAlignable(result, alignableFor(dv.orig, dv.chunks, true), dv.chunks, 1) + if (other) + mergeAlignable(result, alignableFor(other.orig, other.chunks, true), other.chunks, 2) + + return result + } + + function alignChunks(dv, force) { + if (!dv.dealigned && !force) return; + if (!dv.orig.curOp) return dv.orig.operation(function() { + alignChunks(dv, force); + }); + + dv.dealigned = false; + var other = dv.mv.left == dv ? dv.mv.right : dv.mv.left; + if (other) { + ensureDiff(other); + other.dealigned = false; + } + var linesToAlign = findAlignedLines(dv, other); + + // Clear old aligners + var aligners = dv.mv.aligners; + for (var i = 0; i < aligners.length; i++) + aligners[i].clear(); + aligners.length = 0; + + var cm = [dv.edit, dv.orig], scroll = []; + if (other) cm.push(other.orig); + for (var i = 0; i < cm.length; i++) + scroll.push(cm[i].getScrollInfo().top); + + for (var ln = 0; ln < linesToAlign.length; ln++) + alignLines(cm, linesToAlign[ln], aligners); + + for (var i = 0; i < cm.length; i++) + cm[i].scrollTo(null, scroll[i]); + } + + function alignLines(cm, lines, aligners) { + var maxOffset = 0, offset = []; + for (var i = 0; i < cm.length; i++) if (lines[i] != null) { + var off = cm[i].heightAtLine(lines[i], "local"); + offset[i] = off; + maxOffset = Math.max(maxOffset, off); + } + for (var i = 0; i < cm.length; i++) if (lines[i] != null) { + var diff = maxOffset - offset[i]; + if (diff > 1) + aligners.push(padAbove(cm[i], lines[i], diff)); + } + } + + function padAbove(cm, line, size) { + var above = true; + if (line > cm.lastLine()) { + line--; + above = false; + } + var elt = document.createElement("div"); + elt.className = "CodeMirror-merge-spacer"; + elt.style.height = size + "px"; elt.style.minWidth = "1px"; + return cm.addLineWidget(line, elt, {height: size, above: above, mergeSpacer: true, handleMouseEvents: true}); + } + + function drawConnectorsForChunk(dv, chunk, sTopOrig, sTopEdit, w) { + var flip = dv.type == "left"; + var top = dv.orig.heightAtLine(chunk.origFrom, "local", true) - sTopOrig; + if (dv.svg) { + var topLpx = top; + var topRpx = dv.edit.heightAtLine(chunk.editFrom, "local", true) - sTopEdit; + if (flip) { var tmp = topLpx; topLpx = topRpx; topRpx = tmp; } + var botLpx = dv.orig.heightAtLine(chunk.origTo, "local", true) - sTopOrig; + var botRpx = dv.edit.heightAtLine(chunk.editTo, "local", true) - sTopEdit; + if (flip) { var tmp = botLpx; botLpx = botRpx; botRpx = tmp; } + var curveTop = " C " + w/2 + " " + topRpx + " " + w/2 + " " + topLpx + " " + (w + 2) + " " + topLpx; + var curveBot = " C " + w/2 + " " + botLpx + " " + w/2 + " " + botRpx + " -1 " + botRpx; + attrs(dv.svg.appendChild(document.createElementNS(svgNS, "path")), + "d", "M -1 " + topRpx + curveTop + " L " + (w + 2) + " " + botLpx + curveBot + " z", + "class", dv.classes.connect); + } + if (dv.copyButtons) { + var copy = dv.copyButtons.appendChild(elt1("div", dv.type == "left" ? "\u21dd" : "\u21dc", + "CodeMirror-merge-copy")); + var editOriginals = dv.mv.options.allowEditingOriginals; + copy.title = editOriginals ? "Push to left" : "Revert chunk"; + copy.chunk = chunk; + copy.style.top = (chunk.origTo > chunk.origFrom ? top : dv.edit.heightAtLine(chunk.editFrom, "local") - sTopEdit) + "px"; + + if (editOriginals) { + var topReverse = dv.edit.heightAtLine(chunk.editFrom, "local") - sTopEdit; + var copyReverse = dv.copyButtons.appendChild(elt1("div", dv.type == "right" ? "\u21dd" : "\u21dc", + "CodeMirror-merge-copy-reverse")); + copyReverse.title = "Push to right"; + copyReverse.chunk = {editFrom: chunk.origFrom, editTo: chunk.origTo, + origFrom: chunk.editFrom, origTo: chunk.editTo}; + copyReverse.style.top = topReverse + "px"; + dv.type == "right" ? copyReverse.style.left = "2px" : copyReverse.style.right = "2px"; + } + } + } + + function copyChunk(dv, to, from, chunk) { + if (dv.diffOutOfDate) return; + var origStart = chunk.origTo > from.lastLine() ? Pos(chunk.origFrom - 1) : Pos(chunk.origFrom, 0) + var origEnd = Pos(chunk.origTo, 0) + var editStart = chunk.editTo > to.lastLine() ? Pos(chunk.editFrom - 1) : Pos(chunk.editFrom, 0) + var editEnd = Pos(chunk.editTo, 0) + var handler = dv.mv.options.revertChunk + if (handler) + handler(dv.mv, from, origStart, origEnd, to, editStart, editEnd) + else + to.replaceRange(from.getRange(origStart, origEnd), editStart, editEnd) + } + + // Merge view, containing 0, 1, or 2 diff views. + + var MergeView = CodeMirror.MergeView = function(node, options) { + if (!(this instanceof MergeView)) return new MergeView(node, options); + + this.options = options; + var origLeft = options.origLeft, origRight = options.origRight == null ? options.orig : options.origRight; + + var hasLeft = origLeft != null, hasRight = origRight != null; + var panes = 1 + (hasLeft ? 1 : 0) + (hasRight ? 1 : 0); + var wrap = [], left = this.left = null, right = this.right = null; + var self = this; + + if (hasLeft) { + left = this.left = new DiffView(this, "left"); + var leftPane = elt("div", null, "CodeMirror-merge-pane CodeMirror-merge-left"); + wrap.push(leftPane); + wrap.push(buildGap(left)); + } + + var editPane = elt("div", null, "CodeMirror-merge-pane CodeMirror-merge-editor"); + wrap.push(editPane); + + if (hasRight) { + right = this.right = new DiffView(this, "right"); + wrap.push(buildGap(right)); + var rightPane = elt("div", null, "CodeMirror-merge-pane CodeMirror-merge-right"); + wrap.push(rightPane); + } + + (hasRight ? rightPane : editPane).className += " CodeMirror-merge-pane-rightmost"; + + wrap.push(elt("div", null, null, "height: 0; clear: both;")); + + var wrapElt = this.wrap = node.appendChild(elt("div", wrap, "CodeMirror-merge CodeMirror-merge-" + panes + "pane")); + this.edit = CodeMirror(editPane, copyObj(options)); + + if (left) left.init(leftPane, origLeft, options); + if (right) right.init(rightPane, origRight, options); + if (options.collapseIdentical) + this.editor().operation(function() { + collapseIdenticalStretches(self, options.collapseIdentical); + }); + if (options.connect == "align") { + this.aligners = []; + alignChunks(this.left || this.right, true); + } + if (left) left.registerEvents(right) + if (right) right.registerEvents(left) + + + var onResize = function() { + if (left) makeConnections(left); + if (right) makeConnections(right); + }; + CodeMirror.on(window, "resize", onResize); + var resizeInterval = setInterval(function() { + for (var p = wrapElt.parentNode; p && p != document.body; p = p.parentNode) {} + if (!p) { clearInterval(resizeInterval); CodeMirror.off(window, "resize", onResize); } + }, 5000); + }; + + function buildGap(dv) { + var lock = dv.lockButton = elt("div", null, "CodeMirror-merge-scrolllock"); + lock.title = "Toggle locked scrolling"; + var lockWrap = elt("div", [lock], "CodeMirror-merge-scrolllock-wrap"); + CodeMirror.on(lock, "click", function() { setScrollLock(dv, !dv.lockScroll); }); + var gapElts = [lockWrap]; + if (dv.mv.options.revertButtons !== false) { + dv.copyButtons = elt("div", null, "CodeMirror-merge-copybuttons-" + dv.type); + CodeMirror.on(dv.copyButtons, "click", function(e) { + var node = e.target || e.srcElement; + if (!node.chunk) return; + if (node.className == "CodeMirror-merge-copy-reverse") { + copyChunk(dv, dv.orig, dv.edit, node.chunk); + return; + } + copyChunk(dv, dv.edit, dv.orig, node.chunk); + }); + gapElts.unshift(dv.copyButtons); + } + if (dv.mv.options.connect != "align") { + var svg = document.createElementNS && document.createElementNS(svgNS, "svg"); + if (svg && !svg.createSVGRect) svg = null; + dv.svg = svg; + if (svg) gapElts.push(svg); + } + + return dv.gap = elt("div", gapElts, "CodeMirror-merge-gap"); + } + + MergeView.prototype = { + constructor: MergeView, + editor: function() { return this.edit; }, + rightOriginal: function() { return this.right && this.right.orig; }, + leftOriginal: function() { return this.left && this.left.orig; }, + setShowDifferences: function(val) { + if (this.right) this.right.setShowDifferences(val); + if (this.left) this.left.setShowDifferences(val); + }, + rightChunks: function() { + if (this.right) { ensureDiff(this.right); return this.right.chunks; } + }, + leftChunks: function() { + if (this.left) { ensureDiff(this.left); return this.left.chunks; } + } + }; + + function asString(obj) { + if (typeof obj == "string") return obj; + else return obj.getValue(); + } + + // Operations on diffs + + var dmp = new diff_match_patch(); + function getDiff(a, b, ignoreWhitespace) { + var diff = dmp.diff_main(a, b); + // The library sometimes leaves in empty parts, which confuse the algorithm + for (var i = 0; i < diff.length; ++i) { + var part = diff[i]; + if (ignoreWhitespace ? !/[^ \t]/.test(part[1]) : !part[1]) { + diff.splice(i--, 1); + } else if (i && diff[i - 1][0] == part[0]) { + diff.splice(i--, 1); + diff[i][1] += part[1]; + } + } + return diff; + } + + function getChunks(diff) { + var chunks = []; + var startEdit = 0, startOrig = 0; + var edit = Pos(0, 0), orig = Pos(0, 0); + for (var i = 0; i < diff.length; ++i) { + var part = diff[i], tp = part[0]; + if (tp == DIFF_EQUAL) { + var startOff = !startOfLineClean(diff, i) || edit.line < startEdit || orig.line < startOrig ? 1 : 0; + var cleanFromEdit = edit.line + startOff, cleanFromOrig = orig.line + startOff; + moveOver(edit, part[1], null, orig); + var endOff = endOfLineClean(diff, i) ? 1 : 0; + var cleanToEdit = edit.line + endOff, cleanToOrig = orig.line + endOff; + if (cleanToEdit > cleanFromEdit) { + if (i) chunks.push({origFrom: startOrig, origTo: cleanFromOrig, + editFrom: startEdit, editTo: cleanFromEdit}); + startEdit = cleanToEdit; startOrig = cleanToOrig; + } + } else { + moveOver(tp == DIFF_INSERT ? edit : orig, part[1]); + } + } + if (startEdit <= edit.line || startOrig <= orig.line) + chunks.push({origFrom: startOrig, origTo: orig.line + 1, + editFrom: startEdit, editTo: edit.line + 1}); + return chunks; + } + + function endOfLineClean(diff, i) { + if (i == diff.length - 1) return true; + var next = diff[i + 1][1]; + if ((next.length == 1 && i < diff.length - 2) || next.charCodeAt(0) != 10) return false; + if (i == diff.length - 2) return true; + next = diff[i + 2][1]; + return (next.length > 1 || i == diff.length - 3) && next.charCodeAt(0) == 10; + } + + function startOfLineClean(diff, i) { + if (i == 0) return true; + var last = diff[i - 1][1]; + if (last.charCodeAt(last.length - 1) != 10) return false; + if (i == 1) return true; + last = diff[i - 2][1]; + return last.charCodeAt(last.length - 1) == 10; + } + + function chunkBoundariesAround(chunks, n, nInEdit) { + var beforeE, afterE, beforeO, afterO; + for (var i = 0; i < chunks.length; i++) { + var chunk = chunks[i]; + var fromLocal = nInEdit ? chunk.editFrom : chunk.origFrom; + var toLocal = nInEdit ? chunk.editTo : chunk.origTo; + if (afterE == null) { + if (fromLocal > n) { afterE = chunk.editFrom; afterO = chunk.origFrom; } + else if (toLocal > n) { afterE = chunk.editTo; afterO = chunk.origTo; } + } + if (toLocal <= n) { beforeE = chunk.editTo; beforeO = chunk.origTo; } + else if (fromLocal <= n) { beforeE = chunk.editFrom; beforeO = chunk.origFrom; } + } + return {edit: {before: beforeE, after: afterE}, orig: {before: beforeO, after: afterO}}; + } + + function collapseSingle(cm, from, to) { + cm.addLineClass(from, "wrap", "CodeMirror-merge-collapsed-line"); + var widget = document.createElement("span"); + widget.className = "CodeMirror-merge-collapsed-widget"; + widget.title = "Identical text collapsed. Click to expand."; + var mark = cm.markText(Pos(from, 0), Pos(to - 1), { + inclusiveLeft: true, + inclusiveRight: true, + replacedWith: widget, + clearOnEnter: true + }); + function clear() { + mark.clear(); + cm.removeLineClass(from, "wrap", "CodeMirror-merge-collapsed-line"); + } + CodeMirror.on(widget, "click", clear); + return {mark: mark, clear: clear}; + } + + function collapseStretch(size, editors) { + var marks = []; + function clear() { + for (var i = 0; i < marks.length; i++) marks[i].clear(); + } + for (var i = 0; i < editors.length; i++) { + var editor = editors[i]; + var mark = collapseSingle(editor.cm, editor.line, editor.line + size); + marks.push(mark); + mark.mark.on("clear", clear); + } + return marks[0].mark; + } + + function unclearNearChunks(dv, margin, off, clear) { + for (var i = 0; i < dv.chunks.length; i++) { + var chunk = dv.chunks[i]; + for (var l = chunk.editFrom - margin; l < chunk.editTo + margin; l++) { + var pos = l + off; + if (pos >= 0 && pos < clear.length) clear[pos] = false; + } + } + } + + function collapseIdenticalStretches(mv, margin) { + if (typeof margin != "number") margin = 2; + var clear = [], edit = mv.editor(), off = edit.firstLine(); + for (var l = off, e = edit.lastLine(); l <= e; l++) clear.push(true); + if (mv.left) unclearNearChunks(mv.left, margin, off, clear); + if (mv.right) unclearNearChunks(mv.right, margin, off, clear); + + for (var i = 0; i < clear.length; i++) { + if (clear[i]) { + var line = i + off; + for (var size = 1; i < clear.length - 1 && clear[i + 1]; i++, size++) {} + if (size > margin) { + var editors = [{line: line, cm: edit}]; + if (mv.left) editors.push({line: getMatchingOrigLine(line, mv.left.chunks), cm: mv.left.orig}); + if (mv.right) editors.push({line: getMatchingOrigLine(line, mv.right.chunks), cm: mv.right.orig}); + var mark = collapseStretch(size, editors); + if (mv.options.onCollapse) mv.options.onCollapse(mv, line, size, mark); + } + } + } + } + + // General utilities + + function elt(tag, content, className, style) { + var e = document.createElement(tag); + if (className) e.className = className; + if (style) e.style.cssText = style; + if (typeof content == "string") e.appendChild(document.createTextNode(content)); + else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]); + return e; + } + + function elt1(tag, content, className, style) { + var e = document.createElement(tag); + if (className) e.className = className; + if (style) e.style.cssText = style; + if (typeof content == "string") e.appendChild(document.createTextNode(content)); + else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]); + return e; + } + + function clear(node) { + for (var count = node.childNodes.length; count > 0; --count) + node.removeChild(node.firstChild); + } + + function attrs(elt) { + for (var i = 1; i < arguments.length; i += 2) + elt.setAttribute(arguments[i], arguments[i+1]); + } + + function copyObj(obj, target) { + if (!target) target = {}; + for (var prop in obj) if (obj.hasOwnProperty(prop)) target[prop] = obj[prop]; + return target; + } + + function moveOver(pos, str, copy, other) { + var out = copy ? Pos(pos.line, pos.ch) : pos, at = 0; + for (;;) { + var nl = str.indexOf("\n", at); + if (nl == -1) break; + ++out.line; + if (other) ++other.line; + at = nl + 1; + } + out.ch = (at ? 0 : out.ch) + (str.length - at); + if (other) other.ch = (at ? 0 : other.ch) + (str.length - at); + return out; + } + + // Tracks collapsed markers and line widgets, in order to be able to + // accurately align the content of two editors. + + var F_WIDGET = 1, F_WIDGET_BELOW = 2, F_MARKER = 4 + + function TrackAlignable(cm) { + this.cm = cm + this.alignable = [] + this.height = cm.doc.height + var self = this + cm.on("markerAdded", function(_, marker) { + if (!marker.collapsed) return + var found = marker.find(1) + if (found != null) self.set(found.line, F_MARKER) + }) + cm.on("markerCleared", function(_, marker, _min, max) { + if (max != null && marker.collapsed) + self.check(max, F_MARKER, self.hasMarker) + }) + cm.on("markerChanged", this.signal.bind(this)) + cm.on("lineWidgetAdded", function(_, widget, lineNo) { + if (widget.mergeSpacer) return + if (widget.above) self.set(lineNo - 1, F_WIDGET_BELOW) + else self.set(lineNo, F_WIDGET) + }) + cm.on("lineWidgetCleared", function(_, widget, lineNo) { + if (widget.mergeSpacer) return + if (widget.above) self.check(lineNo - 1, F_WIDGET_BELOW, self.hasWidgetBelow) + else self.check(lineNo, F_WIDGET, self.hasWidget) + }) + cm.on("lineWidgetChanged", this.signal.bind(this)) + cm.on("change", function(_, change) { + var start = change.from.line, nBefore = change.to.line - change.from.line + var nAfter = change.text.length - 1, end = start + nAfter + if (nBefore || nAfter) self.map(start, nBefore, nAfter) + self.check(end, F_MARKER, self.hasMarker) + if (nBefore || nAfter) self.check(change.from.line, F_MARKER, self.hasMarker) + }) + cm.on("viewportChange", function() { + if (self.cm.doc.height != self.height) self.signal() + }) + } + + TrackAlignable.prototype = { + signal: function() { + CodeMirror.signal(this, "realign") + this.height = this.cm.doc.height + }, + + set: function(n, flags) { + var pos = -1 + for (; pos < this.alignable.length; pos += 2) { + var diff = this.alignable[pos] - n + if (diff == 0) { + if ((this.alignable[pos + 1] & flags) == flags) return + this.alignable[pos + 1] |= flags + this.signal() + return + } + if (diff > 0) break + } + this.signal() + this.alignable.splice(pos, 0, n, flags) + }, + + find: function(n) { + for (var i = 0; i < this.alignable.length; i += 2) + if (this.alignable[i] == n) return i + return -1 + }, + + check: function(n, flag, pred) { + var found = this.find(n) + if (found == -1 || !(this.alignable[found + 1] & flag)) return + if (!pred.call(this, n)) { + this.signal() + var flags = this.alignable[found + 1] & ~flag + if (flags) this.alignable[found + 1] = flags + else this.alignable.splice(found, 2) + } + }, + + hasMarker: function(n) { + var handle = this.cm.getLineHandle(n) + if (handle.markedSpans) for (var i = 0; i < handle.markedSpans.length; i++) + if (handle.markedSpans[i].mark.collapsed && handle.markedSpans[i].to != null) + return true + return false + }, + + hasWidget: function(n) { + var handle = this.cm.getLineHandle(n) + if (handle.widgets) for (var i = 0; i < handle.widgets.length; i++) + if (!handle.widgets[i].above && !handle.widgets[i].mergeSpacer) return true + return false + }, + + hasWidgetBelow: function(n) { + if (n == this.cm.lastLine()) return false + var handle = this.cm.getLineHandle(n + 1) + if (handle.widgets) for (var i = 0; i < handle.widgets.length; i++) + if (handle.widgets[i].above && !handle.widgets[i].mergeSpacer) return true + return false + }, + + map: function(from, nBefore, nAfter) { + var diff = nAfter - nBefore, to = from + nBefore, widgetFrom = -1, widgetTo = -1 + for (var i = 0; i < this.alignable.length; i += 2) { + var n = this.alignable[i] + if (n == from && (this.alignable[i + 1] & F_WIDGET_BELOW)) widgetFrom = i + if (n == to && (this.alignable[i + 1] & F_WIDGET_BELOW)) widgetTo = i + if (n <= from) continue + else if (n < to) this.alignable.splice(i--, 2) + else this.alignable[i] += diff + } + if (widgetFrom > -1) { + var flags = this.alignable[widgetFrom + 1] + if (flags == F_WIDGET_BELOW) this.alignable.splice(widgetFrom, 2) + else this.alignable[widgetFrom + 1] = flags & ~F_WIDGET_BELOW + } + if (widgetTo > -1 && nAfter) + this.set(from + nAfter, F_WIDGET_BELOW) + } + } + + function posMin(a, b) { return (a.line - b.line || a.ch - b.ch) < 0 ? a : b; } + function posMax(a, b) { return (a.line - b.line || a.ch - b.ch) > 0 ? a : b; } + function posEq(a, b) { return a.line == b.line && a.ch == b.ch; } + + function findPrevDiff(chunks, start, isOrig) { + for (var i = chunks.length - 1; i >= 0; i--) { + var chunk = chunks[i]; + var to = (isOrig ? chunk.origTo : chunk.editTo) - 1; + if (to < start) return to; + } + } + + function findNextDiff(chunks, start, isOrig) { + for (var i = 0; i < chunks.length; i++) { + var chunk = chunks[i]; + var from = (isOrig ? chunk.origFrom : chunk.editFrom); + if (from > start) return from; + } + } + + function goNearbyDiff(cm, dir) { + var found = null, views = cm.state.diffViews, line = cm.getCursor().line; + if (views) for (var i = 0; i < views.length; i++) { + var dv = views[i], isOrig = cm == dv.orig; + ensureDiff(dv); + var pos = dir < 0 ? findPrevDiff(dv.chunks, line, isOrig) : findNextDiff(dv.chunks, line, isOrig); + if (pos != null && (found == null || (dir < 0 ? pos > found : pos < found))) + found = pos; + } + if (found != null) + cm.setCursor(found, 0); + else + return CodeMirror.Pass; + } + + CodeMirror.commands.goNextDiff = function(cm) { + return goNearbyDiff(cm, 1); + }; + CodeMirror.commands.goPrevDiff = function(cm) { + return goNearbyDiff(cm, -1); + }; +}); diff --git a/js/monaco/vs/base/worker/workerMain.js b/js/monaco/vs/base/worker/workerMain.js new file mode 100644 index 000000000..9644d3dec --- /dev/null +++ b/js/monaco/vs/base/worker/workerMain.js @@ -0,0 +1,140 @@ +/*!----------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.14.6(6c8f02b41db9ae5c4d15df767d47755e5c73b9d5) + * Released under the MIT license + * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt + *-----------------------------------------------------------*/ +(function(){var e=["exports","require","vs/editor/common/core/position","vs/base/common/winjs.base","vs/base/common/platform","vs/editor/common/core/uint","vs/base/common/errors","vs/editor/common/core/range","vs/base/common/lifecycle","vs/base/common/cancellation","vs/base/common/event","vs/base/common/uri","vs/base/common/diff/diff","vs/base/common/async","vs/base/common/strings","vs/base/common/keyCodes","vs/editor/common/model/mirrorTextModel","vs/base/common/diff/diffChange","vs/base/common/linkedList","vs/editor/common/core/selection","vs/editor/common/core/token","vs/base/common/functional","vs/editor/common/core/characterClassifier","vs/editor/common/diff/diffComputer","vs/editor/common/model/wordHelper","vs/editor/common/modes/linkComputer","vs/editor/common/modes/supports/inplaceReplaceSupport","vs/editor/common/standalone/standaloneBase","vs/editor/common/viewModel/prefixSumComputer","vs/base/common/worker/simpleWorker","vs/editor/common/services/editorSimpleWorker"],t=function(t){ +for(var n=[],r=0,i=t.length;r=0)||"undefined"!=typeof process&&"win32"===process.platform},t}();e.Environment=t}(i||(i={}));!function(e){var t=function(){return function(e,t,n){this.type=e,this.detail=t,this.timestamp=n}}();e.LoaderEvent=t;var n=function(){function n(e){this._events=[new t(1,"",e)]}return n.prototype.record=function(n,r){this._events.push(new t(n,r,e.Utilities.getHighPerformanceTimestamp()))},n.prototype.getEvents=function(){return this._events},n}();e.LoaderEventRecorder=n;var r=function(){function e(){}return e.prototype.record=function(e,t){},e.prototype.getEvents=function(){return[]},e.INSTANCE=new e,e}();e.NullLoaderEventRecorder=r}(i||(i={}));!function(e){var t=function(){function t(){} +return t.fileUriToFilePath=function(e,t){if(t=decodeURI(t),e){if(/^file:\/\/\//.test(t))return t.substr(8);if(/^file:\/\//.test(t))return t.substr(5)}else if(/^file:\/\//.test(t))return t.substr(7);return t},t.startsWith=function(e,t){return e.length>=t.length&&e.substr(0,t.length)===t},t.endsWith=function(e,t){return e.length>=t.length&&e.substr(e.length-t.length)===t},t.containsQueryString=function(e){return/^[^\#]*\?/gi.test(e)},t.isAbsolutePath=function(e){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(e)},t.forEachProperty=function(e,t){if(e){var n=void 0;for(n in e)e.hasOwnProperty(n)&&t(n,e[n])}},t.isEmpty=function(e){var n=!0;return t.forEachProperty(e,function(){n=!1}),n},t.recursiveClone=function(e){if(!e||"object"!=typeof e)return e;var n=Array.isArray(e)?[]:{};return t.forEachProperty(e,function(e,r){n[e]=r&&"object"==typeof r?t.recursiveClone(r):r}),n},t.generateAnonymousModule=function(){return"===anonymous"+t.NEXT_ANONYMOUS_ID+++"==="},t.isAnonymousModule=function(e){ +return t.startsWith(e,"===anonymous")},t.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=e.global.performance&&"function"==typeof e.global.performance.now),this.HAS_PERFORMANCE_NOW?e.global.performance.now():Date.now()},t.NEXT_ANONYMOUS_ID=1,t.PERFORMANCE_NOW_PROBED=!1,t.HAS_PERFORMANCE_NOW=!1,t}();e.Utilities=t}(i||(i={}));!function(e){var t=function(){function t(){}return t.validateConfigurationOptions=function(t){function n(e){return"load"===e.errorCode?(console.error('Loading "'+e.moduleId+'" failed'),console.error("Detail: ",e.detail),e.detail&&e.detail.stack&&console.error(e.detail.stack),console.error("Here are the modules that depend on it:"),void console.error(e.neededBy)):"factory"===e.errorCode?(console.error('The factory method of "'+e.moduleId+'" has thrown an exception'),console.error(e.detail),void(e.detail&&e.detail.stack&&console.error(e.detail.stack))):void 0} +return"string"!=typeof(t=t||{}).baseUrl&&(t.baseUrl=""),"boolean"!=typeof t.isBuild&&(t.isBuild=!1),"object"!=typeof t.paths&&(t.paths={}),"object"!=typeof t.config&&(t.config={}),void 0===t.catchError&&(t.catchError=!1),"string"!=typeof t.urlArgs&&(t.urlArgs=""),"function"!=typeof t.onError&&(t.onError=n),"object"==typeof t.ignoreDuplicateModules&&Array.isArray(t.ignoreDuplicateModules)||(t.ignoreDuplicateModules=[]),t.baseUrl.length>0&&(e.Utilities.endsWith(t.baseUrl,"/")||(t.baseUrl+="/")),Array.isArray(t.nodeModules)||(t.nodeModules=[]),("number"!=typeof t.nodeCachedDataWriteDelay||t.nodeCachedDataWriteDelay<0)&&(t.nodeCachedDataWriteDelay=7e3),"function"!=typeof t.onNodeCachedData&&(t.onNodeCachedData=function(e,t){e&&("cachedDataRejected"===e.errorCode?console.warn("Rejected cached data from file: "+e.path):"unlink"===e.errorCode||"writeFile"===e.errorCode?(console.error("Problems writing cached data file: "+e.path),console.error(e.detail)):console.error(e))}),t}, +t.mergeConfigurationOptions=function(n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=e.Utilities.recursiveClone(r||{});return e.Utilities.forEachProperty(n,function(t,n){"ignoreDuplicateModules"===t&&void 0!==i.ignoreDuplicateModules?i.ignoreDuplicateModules=i.ignoreDuplicateModules.concat(n):"paths"===t&&void 0!==i.paths?e.Utilities.forEachProperty(n,function(e,t){return i.paths[e]=t}):"config"===t&&void 0!==i.config?e.Utilities.forEachProperty(n,function(e,t){return i.config[e]=t}):i[t]=e.Utilities.recursiveClone(n)}),t.validateConfigurationOptions(i)},t}();e.ConfigurationOptionsUtil=t;var n=function(){function n(e,n){if(this._env=e,this.options=t.mergeConfigurationOptions(n),this._createIgnoreDuplicateModulesMap(),this._createNodeModulesMap(),this._createSortedPathsRules(),""===this.options.baseUrl){if(this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){ +var r=this.options.nodeRequire.main.filename,i=Math.max(r.lastIndexOf("/"),r.lastIndexOf("\\"));this.options.baseUrl=r.substring(0,i+1)}if(this.options.nodeMain&&this._env.isNode){var r=this.options.nodeMain,i=Math.max(r.lastIndexOf("/"),r.lastIndexOf("\\"));this.options.baseUrl=r.substring(0,i+1)}}}return n.prototype._createIgnoreDuplicateModulesMap=function(){this.ignoreDuplicateModulesMap={};for(var e=0;e=0){var r=t.resolveModule(e.substr(0,n)),s=t.resolveModule(e.substr(n+1)),u=this._moduleIdProvider.getModuleId(r+"!"+s),a=this._moduleIdProvider.getModuleId(r);return new o(u,a,s)}return new i(this._moduleIdProvider.getModuleId(t.resolveModule(e)))},s.prototype._normalizeDependencies=function(e,t){for(var n=[],r=0,i=0,o=e.length;i0;){var a=u.shift(),l=this._modules2[a];l&&(s=l.onDependencyError(n)||s);var c=this._inverseDependencies2[a];if(c)for(var i=0,o=c.length;i0;){var u=s.shift().dependencies;if(u)for(var i=0,o=u.length;i=r.length)t._onLoadError(e,n);else{var s=r[i],u=t.getRecorder();if(t._config.isBuild()&&"empty:"===s)return t._buildInfoPath[e]=s,t.defineModule(t._moduleIdProvider.getStrModuleId(e),[],null,null,null),void t._onLoad(e);u.record(10,s),t._scriptLoader.load(t,s,function(){t._config.isBuild()&&(t._buildInfoPath[e]=s),u.record(11,s),t._onLoad(e)},function(e){u.record(12,s),o(e)})}};o(null)}},s.prototype._loadPluginDependency=function(e,n){var r=this +;if(!this._modules2[n.id]&&!this._knownModules2[n.id]){this._knownModules2[n.id]=!0;var i=function(e){r.defineModule(r._moduleIdProvider.getStrModuleId(n.id),[],e,null,null)};i.error=function(e){r._config.onError(r._createLoadError(n.id,e))},e.load(n.pluginParam,this._createRequire(t.ROOT),i,this._config.getOptionsLiteral())}},s.prototype._resolve=function(e){for(var t=this,n=e.dependencies,r=0,s=n.length;r \n")),e.unresolvedDependenciesCount-- +}else if(this._inverseDependencies2[u.id]=this._inverseDependencies2[u.id]||[],this._inverseDependencies2[u.id].push(e.id),u instanceof o){var c=this._modules2[u.pluginId];if(c&&c.isComplete()){this._loadPluginDependency(c.exports,u);continue}var d=this._inversePluginDependencies2.get(u.pluginId);d||(d=[],this._inversePluginDependencies2.set(u.pluginId,d)),d.push(u),this._loadModule(u.pluginId)}else this._loadModule(u.id)}else e.unresolvedDependenciesCount--;else e.unresolvedDependenciesCount--;else e.exportsPassedIn=!0,e.unresolvedDependenciesCount--}0===e.unresolvedDependenciesCount&&this._onModuleComplete(e)},s.prototype._onModuleComplete=function(e){var t=this,n=this.getRecorder();if(!e.isComplete()){for(var r=e.dependencies,o=[],s=0,u=r.length;s0||this.m_modifiedCount>0)&&this.m_changes.push(new n.DiffChange(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){ +this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),u=function(){function e(e,t,n){void 0===n&&(n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},e.prototype.ModifiedElementsAreEqual=function(e,t){ +return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,t,n,r,i){var o=this.ComputeDiffRecursive(e,t,n,r,[!1]);return i?this.ShiftChanges(o):o},e.prototype.ComputeDiffRecursive=function(e,t,r,o,s){for(s[0]=!1;e<=t&&r<=o&&this.ElementsAreEqual(e,r);)e++,r++;for(;t>=e&&o>=r&&this.ElementsAreEqual(t,o);)t--,o--;if(e>t||r>o){var u=void 0;return r<=o?(i.Assert(e===t+1,"originalStart should only be one more than originalEnd"),u=[new n.DiffChange(e,0,r,o-r+1)]):e<=t?(i.Assert(r===o+1,"modifiedStart should only be one more than modifiedEnd"),u=[new n.DiffChange(e,t-e+1,r,0)]):(i.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i.Assert(r===o+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}var a=[0],l=[0],c=this.ComputeRecursionPoint(e,t,r,o,a,l,s),d=a[0],f=l[0] +;if(null!==c)return c;if(!s[0]){var h=this.ComputeDiffRecursive(e,d,r,f,s),p=[];return p=s[0]?[new n.DiffChange(d+1,t-(d+1)+1,f+1,o-(f+1)+1)]:this.ComputeDiffRecursive(d+1,t,f+1,o,s),this.ConcatenateChanges(h,p)}return[new n.DiffChange(e,t-e+1,r,o-r+1)]},e.prototype.WALKTRACE=function(e,t,r,i,o,u,a,l,c,d,f,h,p,m,g,_,v,y){var b,C=null,S=null,E=new s,L=t,N=r,P=p[0]-_[0]-i,A=Number.MIN_VALUE,M=this.m_forwardHistory.length-1;do{(b=P+e)===L||b=0&&(e=(c=this.m_forwardHistory[M])[0],L=1,N=c.length-1)}while(--M>=-1);if(C=E.getReverseChanges(),y[0]){var w=p[0]+1,D=_[0]+1;if(null!==C&&C.length>0){var I=C[C.length-1];w=Math.max(w,I.getOriginalEnd()),D=Math.max(D,I.getModifiedEnd())}S=[new n.DiffChange(w,h-w+1,D,g-D+1)]}else{E=new s,L=u,N=a,P=p[0]-_[0]-l,A=Number.MAX_VALUE, +M=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(b=P+o)===L||b=d[b+1]?(m=(f=d[b+1]-1)-P-l,f>A&&E.MarkNextChange(),A=f+1,E.AddOriginalElement(f+1,m+1),P=b+1-o):(m=(f=d[b-1])-P-l,f>A&&E.MarkNextChange(),A=f,E.AddModifiedElement(f+1,m+1),P=b-1-o),M>=0&&(o=(d=this.m_reverseHistory[M])[0],L=1,N=d.length-1)}while(--M>=-1);S=E.getChanges()}return this.ConcatenateChanges(C,S)},e.prototype.ComputeRecursionPoint=function(e,t,r,i,s,u,a){var l,c,d,f=0,h=0,p=0,m=0;e--,r--,s[0]=0,u[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var g=t-e+(i-r),_=g+1,v=new Array(_),y=new Array(_),b=i-r,C=t-e,S=e-r,E=t-i,L=(C-b)%2==0;v[b]=e,y[C]=t,a[0]=!1;var N,P;for(d=1;d<=g/2+1;d++){var A=0,M=0;for(f=this.ClipDiagonalBound(b-d,d,b,_),h=this.ClipDiagonalBound(b+d,d,b,_),N=f;N<=h;N+=2){for(c=(l=N===f||NA+M&&(A=l,M=c),!L&&Math.abs(N-C)<=d-1&&l>=y[N])return s[0]=l,u[0]=c, +P<=y[N]&&d<=1448?this.WALKTRACE(b,f,h,S,C,p,m,E,v,y,l,t,s,c,i,u,L,a):null}var w=(A-e+(M-r)-d)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(A,this.OriginalSequence,w))return a[0]=!0,s[0]=A,u[0]=M,w>0&&d<=1448?this.WALKTRACE(b,f,h,S,C,p,m,E,v,y,l,t,s,c,i,u,L,a):(e++,r++,[new n.DiffChange(e,t-e+1,r,i-r+1)]);for(p=this.ClipDiagonalBound(C-d,d,C,_),m=this.ClipDiagonalBound(C+d,d,C,_),N=p;N<=m;N+=2){for(c=(l=N===p||N=y[N+1]?y[N+1]-1:y[N-1])-(N-C)-E,P=l;l>e&&c>r&&this.ElementsAreEqual(l,c);)l--,c--;if(y[N]=l,L&&Math.abs(N-b)<=d&&l<=v[N])return s[0]=l,u[0]=c,P>=v[N]&&d<=1448?this.WALKTRACE(b,f,h,S,C,p,m,E,v,y,l,t,s,c,i,u,L,a):null}if(d<=1447){var D=new Array(h-f+2);D[0]=b-f+1,o.Copy(v,f,D,1,h-f+1),this.m_forwardHistory.push(D),(D=new Array(m-p+2))[0]=C-p+1,o.Copy(y,p,D,1,m-p+1),this.m_reverseHistory.push(D)}}return this.WALKTRACE(b,f,h,S,C,p,m,E,v,y,l,t,s,c,i,u,L,a)},e.prototype.ShiftChanges=function(e){var t;do{t=!1 +;for(l=0;l0,s=n.modifiedLength>0;n.originalStart+n.originalLength=0;l--){var n=e[l],r=0,i=0;if(l>0){var c=e[l-1];c.originalLength>0&&(r=c.originalStart+c.originalLength),c.modifiedLength>0&&(i=c.modifiedStart+c.modifiedLength)}for(var o=n.originalLength>0,s=n.modifiedLength>0,d=0,f=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),h=1;;h++){ +var p=n.originalStart-h,m=n.modifiedStart-h;if(pf&&(f=g,d=h)}n.originalStart-=d,n.modifiedStart-=d}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._ModifiedRegionIsBoundary=function(e,t){ +if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)},e.prototype.ConcatenateChanges=function(e,t){var n=[],r=null;return 0===e.length||0===t.length?t.length>0?t:e:this.ChangesOverlap(e[e.length-1],t[0],n)?(r=new Array(e.length+t.length-1),o.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],o.Copy(t,1,r,e.length,t.length-1),r):(r=new Array(e.length+t.length),o.Copy(e,0,r,0,e.length),o.Copy(t,0,r,e.length,t.length),r)},e.prototype.ChangesOverlap=function(e,t,r){if(i.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),i.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){ +var o=e.originalStart,s=e.originalLength,u=e.modifiedStart,a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),r[0]=new n.DiffChange(o,s,u,a),!0}return r[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,r){if(e>=0&&e>>0)>>>0},t.createKeybinding=function(e,t){if(0===e)return null;var r=(65535&e)>>>0,i=(4294901760&e)>>>16;return 0!==i?new a(n(r,t),n(i,t)):n(r,t)},t.createSimpleKeybinding=n;var u=function(){function e(e,t,n,r,i){this.type=1,this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}return e.prototype.equals=function(e){return 1===e.type&&(this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode)},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}, +e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}();t.SimpleKeybinding=u;var a=function(){return function(e,t){this.type=2,this.firstPart=e,this.chordPart=t}}();t.ChordKeybinding=a;var l=function(){return function(e,t,n,r,i,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=o}}();t.ResolvedKeybindingPart=l;var c=function(){return function(){}}();t.ResolvedKeybinding=c}),r(e[8],t([1,0]),function(e,t){"use strict";function n(e){for(var t=[],r=1;r=0,r=c.indexOf("Macintosh")>=0,i=c.indexOf("Linux")>=0,s=!0,navigator.language}var d;!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(d=t.Platform||(t.Platform={}));t.isWindows=n,t.isMacintosh=r,t.isLinux=i,t.isNative=o,t.isWeb=s;var f="object"==typeof self?self:"object"==typeof global?global:{};t.globals=f;var h=null;t.setImmediate=function(e){return null===h&&(h=t.globals.setImmediate?t.globals.setImmediate.bind(t.globals):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):t.globals.setTimeout.bind(t.globals)),h(e)},t.OS=r?2:n?1:3}),r(e[14],t([1,0]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function r(e,t){if(!e||!t)return e;var n=t.length +;if(0===n||0===e.length)return e;for(var r=0;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function i(e,t){if(!e||!t)return e;var n=t.length,r=e.length;if(0===n||0===r)return e;for(var i=r,o=-1;;){if(-1===(o=e.lastIndexOf(t,i-1))||o+n!==i)break;if(0===o)return"";i=o}return e.substring(0,i)}function o(e,t){return et?1:0}function s(e){return e>=97&&e<=122}function u(e){return e>=65&&e<=90}function a(e){return s(e)||u(e)}function l(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var r=0;r=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,n){ +void 0===n&&(n="0");for(var r=""+e,i=[r],o=r.length;o=t.length?e:t[r]})},t.escape=function(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})},t.escapeRegExpCharacters=n,t.trim=function(e,t){return void 0===t&&(t=" "),i(r(e,t),t)},t.ltrim=r,t.rtrim=i,t.convertSimple2RegExpPattern=function(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},t.startsWith=function(e,t){if(e.length0?e.indexOf(t,n)===n:0===n&&e===t},t.createRegExp=function(e,t,r){if(void 0===r&&(r={}), +!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),r.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return r.global&&(i+="g"),r.matchCase||(i+="i"),r.multiline&&(i+="m"),new RegExp(e,i)},t.regExpLeadsToEndlessLoop=function(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&e.exec("")&&0===e.lastIndex},t.firstNonWhitespaceIndex=function(e){for(var t=0,n=e.length;t=0;n--){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1},t.compare=o,t.compareIgnoreCase=function(e,t){for(var n=Math.min(e.length,t.length),r=0;rt.length?1:0},t.isLowerAsciiLetter=s,t.isUpperAsciiLetter=u,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&l(e,t)},t.startsWithIgnoreCase=function(e,t){var n=t.length;return!(t.length>e.length)&&l(e,t,n)},t.commonPrefixLength=function(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0&&65279===e.charCodeAt(0)},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){for(var n="",r=0;r=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=g[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))), +void 0!==n?n:e}function i(e){var t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,n.isWindows&&(t=t.replace(/\//g,"\\")),t}function s(e,t){var n=t?function(e){for(var t=void 0,n=0;n=3&&47===u.charCodeAt(0)&&58===u.charCodeAt(2)){ +(h=u.charCodeAt(1))>=65&&h<=90&&(u="/"+String.fromCharCode(h+32)+":"+u.substr(3))}else if(u.length>=2&&58===u.charCodeAt(1)){var h=u.charCodeAt(0);h>=65&&h<=90&&(u=String.fromCharCode(h+32)+":"+u.substr(2))}i+=n(u,!0)}return a&&(i+="?",i+=n(a,!1)),l&&(i+="#",i+=t?l:r(l,!1)),i}Object.defineProperty(t,"__esModule",{value:!0});var u,a=/^\w[\w\d+.-]*$/,l=/^\//,c=/^\/\//,d="",f="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,p=function(){function e(e,t,n,r,i){"object"==typeof e?(this.scheme=e.scheme||d,this.authority=e.authority||d,this.path=e.path||d,this.query=e.query||d,this.fragment=e.fragment||d):(this.scheme=e||d,this.authority=t||d,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==f&&(t=f+t):t=f}return t}(this.scheme,n||d),this.query=r||d,this.fragment=i||d,function(e){if(e.scheme&&!a.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){ +if(!l.test(e.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(c.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return i(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=d),void 0===n?n=this.authority:null===n&&(n=d),void 0===r?r=this.path:null===r&&(r=d),void 0===i?i=this.query:null===i&&(i=d),void 0===o?o=this.fragment:null===o&&(o=d), +t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new m(t,n,r,i,o)},e.parse=function(e){var t=h.exec(e);return t?new m(t[2]||d,decodeURIComponent(t[4]||d),decodeURIComponent(t[5]||d),decodeURIComponent(t[7]||d),decodeURIComponent(t[9]||d)):new m(d,d,d,d,d)},e.file=function(e){var t=d;if(n.isWindows&&(e=e.replace(/\\/g,f)),e[0]===f&&e[1]===f){var r=e.indexOf(f,2);-1===r?(t=e.substring(2),e=f):(t=e.substring(2,r),e=e.substring(r)||f)}return new m("file",t,e,d,d)},e.from=function(e){return new m(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),s(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new m(t);return n._fsPath=t.fsPath,n._formatted=t.external,n}return t},e}();t.default=p;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return o(t,e), +Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=i(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?s(this,!0):(this._formatted||(this._formatted=s(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(p),g=(u={},u[58]="%3A",u[47]="%2F",u[63]="%3F",u[35]="%23",u[91]="%5B",u[93]="%5D",u[64]="%40",u[33]="%21",u[36]="%24",u[38]="%26",u[39]="%27",u[40]="%28",u[41]="%29",u[42]="%2A",u[43]="%2B",u[44]="%2C",u[59]="%3B",u[61]="%3D",u[32]="%20",u)});var s;!function(){var e=Object.create(null);e["WinJS/Core/_WinJS"]={};var t=function(t,n,r){var i={},o=!1,s=n.map(function(t){return"exports"===t?(o=!0,i):e[t] +}),u=r.apply({},s);e[t]=o?i:u};t("WinJS/Core/_Global",[],function(){"use strict";return"undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:{}}),t("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function(e){"use strict";var t=null;return{hasWinRT:!!e.Windows,markSupportedForProcessing:function(e){return e.supportedForProcessing=!0,e},_setImmediate:function(n){null===t&&(t=e.setImmediate?e.setImmediate.bind(e):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):e.setTimeout.bind(e)),t(n)}}}),t("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function(e){"use strict";return e.msWriteProfilerMark||function(){}}),t("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function(e,t,n,r){"use strict";function i(e,t,n){var r,i,o,s=Object.keys(t),u=Array.isArray(e);for(i=0,o=s.length;i"),o}var s=e;s.Namespace||(s.Namespace=Object.create(Object.prototype));var u={uninitialized:1,working:2,initialized:3};Object.defineProperties(s.Namespace,{defineWithParent:{value:o,writable:!0,enumerable:!0,configurable:!0},define:{value:function(e,n){return o(t,e,n)},writable:!0, +enumerable:!0,configurable:!0},_lazy:{value:function(e){var t,n,i=u.uninitialized;return{setName:function(e){t=e},get:function(){switch(i){case u.initialized:return n;case u.uninitialized:i=u.working;try{r("WinJS.Namespace._lazy:"+t+",StartTM"),n=e()}finally{r("WinJS.Namespace._lazy:"+t+",StopTM"),i=u.uninitialized}return e=null,i=u.initialized,n;case u.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(e){switch(i){case u.working:throw"Illegal: reentrancy on initialization";default:i=u.initialized,n=e}},enumerable:!0,configurable:!0}},writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:function(e,r,o){var s=[e],u=null;return r&&(u=n(t,r),s.push(u)),i(s,o,r||""),u},writable:!0,enumerable:!0,configurable:!0}})}(),function(){function t(e,t,r){return e=e||function(){},n.markSupportedForProcessing(e),t&&i(e.prototype,t),r&&i(e,r),e}e.Namespace.define("WinJS.Class",{define:t,derive:function(e,r,o,s){if(e){r=r||function(){};var u=e.prototype +;return r.prototype=Object.create(u),n.markSupportedForProcessing(r),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,configurable:!0,enumerable:!0}),o&&i(r.prototype,o),s&&i(r,s),r}return t(r,o,s)},mix:function(e){e=e||function(){};var t,n;for(t=1,n=arguments.length;t0;){var i=this._deliveryQueue.shift(),o=i[0],s=i[1];try{"function"==typeof o?o.call(void 0,s):o[0].call(o[1],s)}catch(r){n.onUnexpectedError(r)}}}},e.prototype.dispose=function(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._disposed=!0},e._noop=function(){},e}();t.Emitter=a;var l=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new a({onFirstListenerAdd:function(){ +return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);return i.toDisposable(r.once(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)}))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}();t.EventMultiplexer=l,t.once=function(e){return function(t,n,r){ +void 0===n&&(n=null);var i=e(function(e){return i.dispose(),t.call(n,e)},null,r);return i}},t.anyEvent=function(){for(var e=[],t=0;t1)&&l.fire(e),u=0},n)})},onLastListenerRemove:function(){i.dispose()}});return l.event};var c=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e(function(e){var i=t.buffers[t.buffers.length-1];i?i.push(function(){return n.call(r,e)}):n.call(r,e)},void 0,i)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t),e(),this.buffers.pop(),t.forEach(function(e){ +return e()})},e}();t.EventBufferer=c,t.mapEvent=s,t.filterEvent=u;var d=function(){function e(e){this._event=e}return Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),e.prototype.map=function(t){return new e(s(this._event,t))},e.prototype.filter=function(t){return new e(u(this._event,t))},e.prototype.on=function(e,t,n){return this._event(e,t,n)},e}();t.chain=function(e){return new d(e)};var f=function(){function e(){this.emitter=new a,this.event=this.emitter.event,this.disposable=i.Disposable.None}return Object.defineProperty(e.prototype,"input",{set:function(e){this.disposable.dispose(),this.disposable=e(this.emitter.fire,this.emitter)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposable.dispose(),this.emitter.dispose()},e}();t.Relay=f}),r(e[9],t([1,0,10]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{ +dispose:function(){clearTimeout(n)}}});!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(r=t.CancellationToken||(t.CancellationToken={}));var o=function(){function e(){this._isCancelled=!1}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)},e}(),s=function(){function e(){}return Object.defineProperty(e.prototype,"token",{get:function(){ +return this._token||(this._token=new o),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof o&&this._token.cancel():this._token=r.Cancelled},e.prototype.dispose=function(){this._token?this._token instanceof o&&this._token.dispose():this._token=r.None},e}();t.CancellationTokenSource=s}),r(e[13],t([1,0,6,3,9,8]),function(e,t,n,r,i,s){"use strict";function u(e){return e&&"function"==typeof e.then}function a(e){var t=new i.CancellationTokenSource,r=e(t.token),o=new Promise(function(e,i){t.token.onCancellationRequested(function(){i(n.canceled())}),Promise.resolve(r).then(function(n){t.dispose(),e(n)},function(e){t.dispose(),i(e)})});return new(function(){function e(){}return e.prototype.cancel=function(){t.cancel()},e.prototype.then=function(e,t){return o.then(e,t)},e.prototype.catch=function(e){return this.then(void 0,e)},e}())}function l(e,t){return function(e){return r.TPromise.is(e)&&"function"==typeof e.done}(e)?new r.TPromise(function(r,i,o){ +e.done(function(e){try{t(e)}catch(e){n.onUnexpectedError(e)}r(e)},function(e){try{t(e)}catch(e){n.onUnexpectedError(e)}i(e)},function(e){o(e)})},function(){e.cancel()}):(e.then(function(e){return t()},function(e){return t()}),e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=u,t.toThenable=function(e){return u(e)?e:r.TPromise.as(e)},t.createCancelablePromise=a,t.asWinJsPromise=function(e){var t=new i.CancellationTokenSource;return new r.TPromise(function(n,i,o){var s=e(t.token);s instanceof r.TPromise?s.then(function(e){t.dispose(),n(e)},function(e){t.dispose(),i(e)},o):u(s)?s.then(function(e){t.dispose(),n(e)},function(e){t.dispose(),i(e)}):(t.dispose(),n(s))},function(){t.cancel()})},t.wireCancellationToken=function(e,t,i){var o=e.onCancellationRequested(function(){return t.cancel()});return i&&(t=t.then(void 0,function(e){if(!n.isPromiseCanceledError(e))return r.TPromise.wrapError(e)})),l(t,function(){return o.dispose()})};var c=function(){function e(){this.activePromise=null, +this.queuedPromise=null,this.queuedPromiseFactory=null}return e.prototype.queue=function(e){var t=this;if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){var n=function(){t.queuedPromise=null;var e=t.queue(t.queuedPromiseFactory);return t.queuedPromiseFactory=null,e};this.queuedPromise=new r.TPromise(function(e,r,i){t.activePromise.then(n,n,i).done(e)},function(){t.activePromise.cancel()})}return new r.TPromise(function(e,n,r){t.queuedPromise.then(e,n,r)},function(){})}return this.activePromise=e(),new r.TPromise(function(e,n,r){t.activePromise.done(function(n){t.activePromise=null,e(n)},function(e){t.activePromise=null,n(e)},r)},function(){t.activePromise.cancel()})},e}();t.Throttler=c;var d=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.onSuccess=null,this.task=null}return e.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(), +this.completionPromise||(this.completionPromise=new r.TPromise(function(e){n.onSuccess=e},function(){}).then(function(){n.completionPromise=null,n.onSuccess=null;var e=n.task;return n.task=null,e()})),this.timeout=setTimeout(function(){n.timeout=null,n.onSuccess(null)},t),this.completionPromise},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.completionPromise.cancel(),this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},e}();t.Delayer=d;var f=function(e){function t(t){var r,i,o,s=this;return s=e.call(this,function(e,t,n){r=e,i=t,o=n},function(){i(n.canceled())})||this,t.then(r,i,o),s}return o(t,e),t}(r.TPromise);t.ShallowCancelThenPromise=f,t.timeout=function(e){return a(function(t){return new Promise(function(r,i){var o=setTimeout(r,e);t.onCancellationRequested(function(e){clearTimeout(o),i(n.canceled())})})})},t.always=l,t.first2=function(e,t,n){void 0===t&&(t=function(e){return!!e}), +void 0===n&&(n=null);var r=0,i=e.length,o=function(){return r>=i?Promise.resolve(n):(0,e[r++])().then(function(e){return t(e)?Promise.resolve(e):o()})};return o()},t.first=function(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var i=0,o=e.length,s=function(){return i>=o?r.TPromise.as(n):(0,e[i++])().then(function(e){return t(e)?r.TPromise.as(e):s()})};return s()},t.setDisposableTimeout=function(e,t){for(var n=[],r=2;rn||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)} +return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var r,i,o,s;return n.startLineNumbert.endLineNumber?(o=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(r,i,o,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var r=t.startLineNumber,i=t.startColumn,o=t.endLineNumber,s=t.endColumn,u=n.startLineNumber,a=n.startColumn,l=n.endLineNumber,c=n.endColumn;return rl?(o=l,s=c):o===l&&(s=Math.min(s,c)),r>o?null:r===o&&i>s?null:new e(r,i,o,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){ +return new n.Position(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new n.Position(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){ +return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},e}();t.Range=r}),r(e[19],t([1,0,7,2]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(i=t.SelectionDirection||(t.SelectionDirection={}));var s=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectionStartLineNumber=t,o.selectionStartColumn=n,o.positionLineNumber=r,o.positionColumn=i,o}return o(t,e),t.prototype.clone=function(){return new t(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}, +t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?i.LTR:i.RTL},t.prototype.setEndPosition=function(e,n){return this.getDirection()===i.LTR?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new r.Position(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return this.getDirection()===i.LTR?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)}, +t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n4294967295?4294967295:0|e}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){for(var r=new Uint8Array(e*t),i=0,o=e*t;i255?255:0|e},t.toUint32=n,t.toUint32Array=function(e){for(var t=e.length,r=new Uint32Array(t),i=0;i=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}();t.CharacterClassifier=r;var i=function(){function e(){this._actual=new r(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}();t.CharacterSet=i}),r(e[23],t([1,0,12,14]),function(e,t,n,r){"use strict";function i(e,t,r,i){return new n.LcsDiff(e,t,r).ComputeDiff(i)}Object.defineProperty(t,"__esModule",{value:!0});var o=5e3,s=3,u=function(){function e(t){for(var n=[],r=[],i=0,o=t.length;i1&&_>1;){if((S=p.charCodeAt(g-2))!==(E=m.charCodeAt(_-2)))break;g--,_--}(g>1||_>1)&&this._pushTrimWhitespaceCharChange(o,s+1,1,g,a+1,1,_);for(var v=u._getLastNonBlankColumn(p,1),y=u._getLastNonBlankColumn(m,1),b=p.length+1,C=m.length+1;v/?",t.DEFAULT_WORD_REGEXP=function(e){void 0===e&&(e="") +;for(var n="(-?\\d*\\.\\d\\w*)|([^",r=0;r=0||(n+="\\"+t.USUAL_WORD_SEPARATORS[r]);return n+="\\s]+)",new RegExp(n,"g")}(),t.ensureValidWordDefinition=function(e){var n=t.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)n=e;else{var r="g";e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),n=new RegExp(e.source,r)}return n.lastIndex=0,n},t.getWordAtText=function(e,t,n,r){t.lastIndex=0;var i=t.exec(n);if(!i)return null;var o=i[0].indexOf(" ")>=0?function(e,t,n,r){var i=e-1-r;t.lastIndex=0;for(var o;o=t.exec(n);){if(o.index>i)return null;if(t.lastIndex>=i)return{word:o[0],startColumn:r+1+o.index,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r):function(e,t,n,r){var i=e-1-r,o=n.lastIndexOf(" ",i-1)+1,s=n.indexOf(" ",i);-1===s&&(s=n.length),t.lastIndex=o;for(var u;u=t.exec(n);)if(u.index<=i&&t.lastIndex>=i)return{word:u[0],startColumn:r+1+u.index,endColumn:r+1+t.lastIndex};return null}(e,t,n,r);return t.lastIndex=0,o}}), +r(e[25],t([1,0,22,5]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){for(var t=0,n=0,i=0,o=e.length;it&&(t=a),u>n&&(n=u),l>n&&(n=l)}t++,n++;for(var c=new r.Uint8Matrix(n,t,0),i=0,o=e.length;i=this._maxCharCode?0:this._states.get(e,t)},e}(),o=null,s=null,u=function(){function e(){}return e._createLink=function(e,t,n,r,i){var o=i-1;do{var s=t.charCodeAt(o);if(2!==e.get(s))break;o--}while(o>r);if(r>0){var u=t.charCodeAt(r-1),a=t.charCodeAt(o);(40===u&&41===a||91===u&&93===a||123===u&&125===a)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}},e.computeLinks=function(t){ +for(var r=(null===o&&(o=new i([[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]])),o),u=function(){if(null===s){for(s=new n.CharacterClassifier(0),e=0;e<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;e++)s.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(e),1);for(var e=0;e<".,;".length;e++)s.set(".,;".charCodeAt(e),2)}return s}(),a=[],l=1,c=t.getLineCount();l<=c;l++){for(var d=t.getLineContent(l),f=d.length,h=0,p=0,m=0,g=1,_=!1,v=!1,y=!1;h=0?((r+=n?1:-1)<0?r=e.length-1:r%=e.length,e[r]):null},e.INSTANCE=new e,e}();t.BasicInplaceReplace=n}),r(e[27],t([1,0,10,15,2,7,19,3,9,20,11]),function(e,t,n,r,i,o,s,u,a,l,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d;!function(e){e[e.Unnecessary=1]="Unnecessary"}(d=t.MarkerTag||(t.MarkerTag={}));var f;!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(f=t.MarkerSeverity||(t.MarkerSeverity={}));var h=function(){function e(){}return e.chord=function(e,t){ +return r.KeyChord(e,t)},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e}();t.KeyMod=h;var p;!function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H", +e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH", +e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"}(p=t.KeyCode||(t.KeyCode={})),t.createMonacoBaseAPI=function(){return{editor:void 0,languages:void 0, +CancellationTokenSource:a.CancellationTokenSource,Emitter:n.Emitter,KeyCode:p,KeyMod:h,Position:i.Position,Range:o.Range,Selection:s.Selection,SelectionDirection:s.SelectionDirection,MarkerSeverity:f,MarkerTag:d,Promise:u.TPromise,Uri:c.default,Token:l.Token}}}),r(e[28],t([1,0,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){this.index=e,this.remainder=t}}();t.PrefixSumIndexOfResult=r;var i=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,t){e=n.toUint32(e);var r=this.values,i=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(r.length+o),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+o),this.values.set(t,e),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=n.toUint32(e),t=n.toUint32(t),this.values[e]!==t&&(this.values[e]=t,e-1=r.length)return!1;var o=r.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(r.length-t),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){ +return e<0?0:(e=n.toUint32(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t,n,i,o=0,s=this.values.length-1;o<=s;)if(t=o+(s-o)/2|0,n=this.prefixSum[t],i=n-this.values[t],e=n))break;o=t+1}return new r(t,e-i)},e}();t.PrefixSumComputer=i;var o=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new i(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){ +this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t=n._lines.length))return t=n._lines[i],s=n._wordenize(t,e),o=0,i+=1,u();r.done=!0,r.value=void 0}return r};return{next:u}},t.prototype._wordenize=function(e,t){var n,r=[];for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)r.push({start:n.index,end:n.index+n[0].length});return r},t.prototype.getValueInRange=function(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1) +;var t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(var o=n+1;othis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{var i=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>i&&(n=i,r=!0)}return r?{lineNumber:t,column:n}:e},t}(l.MirrorTextModel),g=function(){function t(e){this._foreignModuleFactory=e,this._foreignModule=null}return t.prototype.computeDiff=function(e,t,n){var i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;var u=i.getLinesContent(),a=o.getLinesContent(),l=new s.DiffComputer(u,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0});return r.TPromise.as(l.computeDiff())},t.prototype.computeMoreMinimalEdits=function(e,n){var o=this._getModel(e);if(!o)return r.TPromise.as(n);for(var s,a=[],l=0,c=n;lt._diffLimit)a.push({range:f,text:h});else for(var g=u.stringDiff(m,h,!1),_=o.offsetAt(i.Range.lift(f).getStartPosition()),v=0,y=g;v0;)self.onmessage(r.shift())},0)})}(e.data)):r.push(e)}}()}).call(this); +//# sourceMappingURL=../../../../min-maps/vs/base/worker/workerMain.js.map \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/apex/apex.js b/js/monaco/vs/basic-languages/apex/apex.js new file mode 100644 index 000000000..487a50640 --- /dev/null +++ b/js/monaco/vs/basic-languages/apex/apex.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/apex/apex",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}};var s=[];["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"].forEach(function(e){var t;s.push(e),s.push(e.toUpperCase()),s.push((t=e).charAt(0).toUpperCase()+t.substr(1))}),t.language={defaultToken:"",tokenPostfix:".apex",keywords:s,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/azcli/azcli.js b/js/monaco/vs/basic-languages/azcli/azcli.js new file mode 100644 index 000000000..2d77af895 --- /dev/null +++ b/js/monaco/vs/basic-languages/azcli/azcli.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/azcli/azcli",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={comments:{lineComment:"#"}},t.language={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/bat/bat.js b/js/monaco/vs/basic-languages/bat/bat.js new file mode 100644 index 000000000..72f0f46fa --- /dev/null +++ b/js/monaco/vs/basic-languages/bat/bat.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/bat/bat",["require","exports"],function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.conf={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},s.language={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>","cond->>","when","while","when-not","when-let","when-first","do","future","comment","doto","locking","proxy","println","type","meta","var","as->","reify","deftype","defrecord","defprotocol","extend","extend-protocol","extend-type","specify","specify!","try","catch","finally","let","letfn","binding","loop","for","seq","doseq","dotimes","when-let","if-let","when-some","if-some","this-as","defmethod","testing","deftest","are","use-fixtures","use","remove","run","run*","fresh","alt!","alt!!","go","go-loop","thread","boolean","str"],constants:["true","false","nil"],operators:["=","not=","<","<=",">",">=","and","or","not","inc","dec","max","min","rem","bit-and","bit-or","bit-xor","bit-not"],tokenizer:{root:[[/0[xX][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(ns|def|defn|defn-|defmacro|defmulti|defonce|ns|ns-unmap|fn))(?![\w-]))(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}],[/\/#"(?:\.|(?:\")|[^""\n])*"\/g/,"regexp"],{include:"@whitespace"},{include:"@strings"}],whitespace:[[/[ \t\r\n]+/,"white"],[/;;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/\\./,"string.escape"],[/"/,"string","@popall"],[/.(?=.*")/,"string"],[/.*\\$/,"string"],[/.*$/,"string","@popall"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/coffee/coffee.js b/js/monaco/vs/basic-languages/coffee/coffee.js new file mode 100644 index 000000000..f347acc4c --- /dev/null +++ b/js/monaco/vs/basic-languages/coffee/coffee.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/coffee/coffee",["require","exports"],function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},r.language={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=>"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/(.*)(\))(?:([^ ()\\\t]*))(\")/,{cases:{"$3==$S2":["string.raw","string.raw.end","string.raw.end",{token:"string.raw.end",next:"@pop"}],"@default":["string.raw","string.raw","string.raw","string.raw"]}}],[/.*/,"string.raw"]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/csharp/csharp.js b/js/monaco/vs/basic-languages/csharp/csharp.js new file mode 100644 index 000000000..a06dac637 --- /dev/null +++ b/js/monaco/vs/basic-languages/csharp/csharp.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/csharp/csharp",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},t.language={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","property","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/csp/csp.js b/js/monaco/vs/basic-languages/csp/csp.js new file mode 100644 index 000000000..6593e96f5 --- /dev/null +++ b/js/monaco/vs/basic-languages/csp/csp.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/csp/csp",["require","exports"],function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.conf={brackets:[],autoClosingPairs:[],surroundingPairs:[]},e.language={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=>",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/dockerfile/dockerfile.js b/js/monaco/vs/basic-languages/dockerfile/dockerfile.js new file mode 100644 index 000000000..074f981d9 --- /dev/null +++ b/js/monaco/vs/basic-languages/dockerfile/dockerfile.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/dockerfile/dockerfile",["require","exports"],function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.conf={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s.language={defaultToken:"",tokenPostfix:".dockerfile",instructions:/FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT/,instructionAfter:/ONBUILD/,variableAfter:/ENV/,variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(@instructionAfter)(\s+)/,["keyword",{token:"",next:"@instructions"}]],["","keyword","@instructions"]],instructions:[[/(@variableAfter)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(@instructions)/,"keyword","@arguments"]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/fsharp/fsharp.js b/js/monaco/vs/basic-languages/fsharp/fsharp.js new file mode 100644 index 000000000..a2aaee420 --- /dev/null +++ b/js/monaco/vs/basic-languages/fsharp/fsharp.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/fsharp/fsharp",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.conf={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},n.language={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/go/go.js b/js/monaco/vs/basic-languages/go/go.js new file mode 100644 index 000000000..c7cd00457 --- /dev/null +++ b/js/monaco/vs/basic-languages/go/go.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/go/go",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.conf={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},n.language={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/handlebars/handlebars.js b/js/monaco/vs/basic-languages/handlebars/handlebars.js new file mode 100644 index 000000000..f6d002cea --- /dev/null +++ b/js/monaco/vs/basic-languages/handlebars/handlebars.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/handlebars/handlebars",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"==typeof monaco?self.monaco:monaco,a=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];t.conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+a.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+a.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:n.languages.IndentAction.Indent}}]},t.language={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/html/html.js b/js/monaco/vs/basic-languages/html/html.js new file mode 100644 index 000000000..b1d3a9375 --- /dev/null +++ b/js/monaco/vs/basic-languages/html/html.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/html/html",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"==typeof monaco?self.monaco:monaco,i=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];t.conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+i.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+i.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:n.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},t.language={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/ini/ini.js b/js/monaco/vs/basic-languages/ini/ini.js new file mode 100644 index 000000000..e4e7b3ae7 --- /dev/null +++ b/js/monaco/vs/basic-languages/ini/ini.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/ini/ini",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.conf={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},n.language={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/java/java.js b/js/monaco/vs/basic-languages/java/java.js new file mode 100644 index 000000000..b4af7502f --- /dev/null +++ b/js/monaco/vs/basic-languages/java/java.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/java/java",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},t.language={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/javascript/javascript.js b/js/monaco/vs/basic-languages/javascript/javascript.js new file mode 100644 index 000000000..678fb442c --- /dev/null +++ b/js/monaco/vs/basic-languages/javascript/javascript.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/typescript/typescript",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"==typeof monaco?self.monaco:monaco;t.conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:n.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:n.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:n.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:n.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},t.language={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","as","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","package","private","protected","public","readonly","require","global","return","set","static","super","switch","symbol","this","throw","true","try","type","typeof","unique","var","void","while","with","yield","async","await","of"],typeKeywords:["any","boolean","number","object","string","undefined"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)/,"number.hex"],[/0(@octaldigits)/,"number.octal"],[/0[bB](@binarydigits)/,"number.binary"],[/(@digits)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],["/",{token:"regexp",bracket:"@close"},"@pop"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}}),define("vs/basic-languages/javascript/javascript",["require","exports","../typescript/typescript"],function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});"undefined"==typeof monaco?self.monaco:monaco;t.conf=n.conf,t.language={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:n.language.operators,symbols:n.language.symbols,escapes:n.language.escapes,digits:n.language.digits,octaldigits:n.language.octaldigits,binarydigits:n.language.binarydigits,hexdigits:n.language.hexdigits,regexpctl:n.language.regexpctl,regexpesc:n.language.regexpesc,tokenizer:n.language.tokenizer}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/less/less.js b/js/monaco/vs/basic-languages/less/less.js new file mode 100644 index 000000000..891e58be6 --- /dev/null +++ b/js/monaco/vs/basic-languages/less/less.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/less/less",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},t.language={defaultToken:"",tokenPostfix:".less",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",identifierPlus:"-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/lua/lua.js b/js/monaco/vs/basic-languages/lua/lua.js new file mode 100644 index 000000000..f25ccf29f --- /dev/null +++ b/js/monaco/vs/basic-languages/lua/lua.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/lua/lua",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.conf={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},n.language={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=>",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},t.language={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword",s,s]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,n],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:n,next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+)\s*$/,{token:n,next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:n,next:"@codeblock"}],{include:"@linecontent"}],codeblock:[[/^\s*~~~\s*$/,{token:n,next:"@pop"}],[/^\s*```\s*$/,{token:n,next:"@pop"}],[/.*$/,o]],codeblockgh:[[/```\s*$/,{token:o,next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,o]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{[^}]+\}/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)\s*>/,{token:"tag"}],[//,"comment","@pop"],[//,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/#/,"comment.php","@phpLineComment"],[/\/\//,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/postiats/postiats.js b/js/monaco/vs/basic-languages/postiats/postiats.js new file mode 100644 index 000000000..9cd96cbde --- /dev/null +++ b/js/monaco/vs/basic-languages/postiats/postiats.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/postiats/postiats",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},t.language={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/powerquery/powerquery.js b/js/monaco/vs/basic-languages/powerquery/powerquery.js new file mode 100644 index 000000000..0d33e2580 --- /dev/null +++ b/js/monaco/vs/basic-languages/powerquery/powerquery.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/powerquery/powerquery",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment","identifier"]},{open:"[",close:"]",notIn:["string","comment","identifier"]},{open:"(",close:")",notIn:["string","comment","identifier"]},{open:"{",close:"}",notIn:["string","comment","identifier"]}]},t.language={defaultToken:"",tokenPostfix:".pq",ignoreCase:!1,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],operatorKeywords:["and","not","or"],keywords:["as","each","else","error","false","if","in","is","let","meta","otherwise","section","shared","then","true","try","type"],constructors:["#binary","#date","#datetime","#datetimezone","#duration","#table","#time"],constants:["#infinity","#nan","#sections","#shared"],typeKeywords:["action","any","anynonnull","none","null","logical","number","time","date","datetime","datetimezone","duration","text","binary","list","record","table","function"],builtinFunctions:["Access.Database","Action.Return","Action.Sequence","Action.Try","ActiveDirectory.Domains","AdoDotNet.DataSource","AdoDotNet.Query","AdobeAnalytics.Cubes","AnalysisServices.Database","AnalysisServices.Databases","AzureStorage.BlobContents","AzureStorage.Blobs","AzureStorage.Tables","Binary.Buffer","Binary.Combine","Binary.Compress","Binary.Decompress","Binary.End","Binary.From","Binary.FromList","Binary.FromText","Binary.InferContentType","Binary.Length","Binary.ToList","Binary.ToText","BinaryFormat.7BitEncodedSignedInteger","BinaryFormat.7BitEncodedUnsignedInteger","BinaryFormat.Binary","BinaryFormat.Byte","BinaryFormat.ByteOrder","BinaryFormat.Choice","BinaryFormat.Decimal","BinaryFormat.Double","BinaryFormat.Group","BinaryFormat.Length","BinaryFormat.List","BinaryFormat.Null","BinaryFormat.Record","BinaryFormat.SignedInteger16","BinaryFormat.SignedInteger32","BinaryFormat.SignedInteger64","BinaryFormat.Single","BinaryFormat.Text","BinaryFormat.Transform","BinaryFormat.UnsignedInteger16","BinaryFormat.UnsignedInteger32","BinaryFormat.UnsignedInteger64","Byte.From","Character.FromNumber","Character.ToNumber","Combiner.CombineTextByDelimiter","Combiner.CombineTextByEachDelimiter","Combiner.CombineTextByLengths","Combiner.CombineTextByPositions","Combiner.CombineTextByRanges","Comparer.Equals","Comparer.FromCulture","Comparer.Ordinal","Comparer.OrdinalIgnoreCase","Csv.Document","Cube.AddAndExpandDimensionColumn","Cube.AddMeasureColumn","Cube.ApplyParameter","Cube.AttributeMemberId","Cube.AttributeMemberProperty","Cube.CollapseAndRemoveColumns","Cube.Dimensions","Cube.DisplayFolders","Cube.Measures","Cube.Parameters","Cube.Properties","Cube.PropertyKey","Cube.ReplaceDimensions","Cube.Transform","Currency.From","DB2.Database","Date.AddDays","Date.AddMonths","Date.AddQuarters","Date.AddWeeks","Date.AddYears","Date.Day","Date.DayOfWeek","Date.DayOfWeekName","Date.DayOfYear","Date.DaysInMonth","Date.EndOfDay","Date.EndOfMonth","Date.EndOfQuarter","Date.EndOfWeek","Date.EndOfYear","Date.From","Date.FromText","Date.IsInCurrentDay","Date.IsInCurrentMonth","Date.IsInCurrentQuarter","Date.IsInCurrentWeek","Date.IsInCurrentYear","Date.IsInNextDay","Date.IsInNextMonth","Date.IsInNextNDays","Date.IsInNextNMonths","Date.IsInNextNQuarters","Date.IsInNextNWeeks","Date.IsInNextNYears","Date.IsInNextQuarter","Date.IsInNextWeek","Date.IsInNextYear","Date.IsInPreviousDay","Date.IsInPreviousMonth","Date.IsInPreviousNDays","Date.IsInPreviousNMonths","Date.IsInPreviousNQuarters","Date.IsInPreviousNWeeks","Date.IsInPreviousNYears","Date.IsInPreviousQuarter","Date.IsInPreviousWeek","Date.IsInPreviousYear","Date.IsInYearToDate","Date.IsLeapYear","Date.Month","Date.MonthName","Date.QuarterOfYear","Date.StartOfDay","Date.StartOfMonth","Date.StartOfQuarter","Date.StartOfWeek","Date.StartOfYear","Date.ToRecord","Date.ToText","Date.WeekOfMonth","Date.WeekOfYear","Date.Year","DateTime.AddZone","DateTime.Date","DateTime.FixedLocalNow","DateTime.From","DateTime.FromFileTime","DateTime.FromText","DateTime.IsInCurrentHour","DateTime.IsInCurrentMinute","DateTime.IsInCurrentSecond","DateTime.IsInNextHour","DateTime.IsInNextMinute","DateTime.IsInNextNHours","DateTime.IsInNextNMinutes","DateTime.IsInNextNSeconds","DateTime.IsInNextSecond","DateTime.IsInPreviousHour","DateTime.IsInPreviousMinute","DateTime.IsInPreviousNHours","DateTime.IsInPreviousNMinutes","DateTime.IsInPreviousNSeconds","DateTime.IsInPreviousSecond","DateTime.LocalNow","DateTime.Time","DateTime.ToRecord","DateTime.ToText","DateTimeZone.FixedLocalNow","DateTimeZone.FixedUtcNow","DateTimeZone.From","DateTimeZone.FromFileTime","DateTimeZone.FromText","DateTimeZone.LocalNow","DateTimeZone.RemoveZone","DateTimeZone.SwitchZone","DateTimeZone.ToLocal","DateTimeZone.ToRecord","DateTimeZone.ToText","DateTimeZone.ToUtc","DateTimeZone.UtcNow","DateTimeZone.ZoneHours","DateTimeZone.ZoneMinutes","Decimal.From","Diagnostics.ActivityId","Diagnostics.Trace","DirectQueryCapabilities.From","Double.From","Duration.Days","Duration.From","Duration.FromText","Duration.Hours","Duration.Minutes","Duration.Seconds","Duration.ToRecord","Duration.ToText","Duration.TotalDays","Duration.TotalHours","Duration.TotalMinutes","Duration.TotalSeconds","Embedded.Value","Error.Record","Excel.CurrentWorkbook","Excel.Workbook","Exchange.Contents","Expression.Constant","Expression.Evaluate","Expression.Identifier","Facebook.Graph","File.Contents","Folder.Contents","Folder.Files","Function.From","Function.Invoke","Function.InvokeAfter","Function.IsDataSource","GoogleAnalytics.Accounts","Guid.From","HdInsight.Containers","HdInsight.Contents","HdInsight.Files","Hdfs.Contents","Hdfs.Files","Informix.Database","Int16.From","Int32.From","Int64.From","Int8.From","ItemExpression.From","Json.Document","Json.FromValue","Lines.FromBinary","Lines.FromText","Lines.ToBinary","Lines.ToText","List.Accumulate","List.AllTrue","List.Alternate","List.AnyTrue","List.Average","List.Buffer","List.Combine","List.Contains","List.ContainsAll","List.ContainsAny","List.Count","List.Covariance","List.DateTimeZones","List.DateTimes","List.Dates","List.Difference","List.Distinct","List.Durations","List.FindText","List.First","List.FirstN","List.Generate","List.InsertRange","List.Intersect","List.IsDistinct","List.IsEmpty","List.Last","List.LastN","List.MatchesAll","List.MatchesAny","List.Max","List.MaxN","List.Median","List.Min","List.MinN","List.Mode","List.Modes","List.NonNullCount","List.Numbers","List.PositionOf","List.PositionOfAny","List.Positions","List.Product","List.Random","List.Range","List.RemoveFirstN","List.RemoveItems","List.RemoveLastN","List.RemoveMatchingItems","List.RemoveNulls","List.RemoveRange","List.Repeat","List.ReplaceMatchingItems","List.ReplaceRange","List.ReplaceValue","List.Reverse","List.Select","List.Single","List.SingleOrDefault","List.Skip","List.Sort","List.StandardDeviation","List.Sum","List.Times","List.Transform","List.TransformMany","List.Union","List.Zip","Logical.From","Logical.FromText","Logical.ToText","MQ.Queue","MySQL.Database","Number.Abs","Number.Acos","Number.Asin","Number.Atan","Number.Atan2","Number.BitwiseAnd","Number.BitwiseNot","Number.BitwiseOr","Number.BitwiseShiftLeft","Number.BitwiseShiftRight","Number.BitwiseXor","Number.Combinations","Number.Cos","Number.Cosh","Number.Exp","Number.Factorial","Number.From","Number.FromText","Number.IntegerDivide","Number.IsEven","Number.IsNaN","Number.IsOdd","Number.Ln","Number.Log","Number.Log10","Number.Mod","Number.Permutations","Number.Power","Number.Random","Number.RandomBetween","Number.Round","Number.RoundAwayFromZero","Number.RoundDown","Number.RoundTowardZero","Number.RoundUp","Number.Sign","Number.Sin","Number.Sinh","Number.Sqrt","Number.Tan","Number.Tanh","Number.ToText","OData.Feed","Odbc.DataSource","Odbc.Query","OleDb.DataSource","OleDb.Query","Oracle.Database","Percentage.From","PostgreSQL.Database","RData.FromBinary","Record.AddField","Record.Combine","Record.Field","Record.FieldCount","Record.FieldNames","Record.FieldOrDefault","Record.FieldValues","Record.FromList","Record.FromTable","Record.HasFields","Record.RemoveFields","Record.RenameFields","Record.ReorderFields","Record.SelectFields","Record.ToList","Record.ToTable","Record.TransformFields","Replacer.ReplaceText","Replacer.ReplaceValue","RowExpression.Column","RowExpression.From","Salesforce.Data","Salesforce.Reports","SapBusinessWarehouse.Cubes","SapHana.Database","SharePoint.Contents","SharePoint.Files","SharePoint.Tables","Single.From","Soda.Feed","Splitter.SplitByNothing","Splitter.SplitTextByAnyDelimiter","Splitter.SplitTextByDelimiter","Splitter.SplitTextByEachDelimiter","Splitter.SplitTextByLengths","Splitter.SplitTextByPositions","Splitter.SplitTextByRanges","Splitter.SplitTextByRepeatedLengths","Splitter.SplitTextByWhitespace","Sql.Database","Sql.Databases","SqlExpression.SchemaFrom","SqlExpression.ToExpression","Sybase.Database","Table.AddColumn","Table.AddIndexColumn","Table.AddJoinColumn","Table.AddKey","Table.AggregateTableColumn","Table.AlternateRows","Table.Buffer","Table.Column","Table.ColumnCount","Table.ColumnNames","Table.ColumnsOfType","Table.Combine","Table.CombineColumns","Table.Contains","Table.ContainsAll","Table.ContainsAny","Table.DemoteHeaders","Table.Distinct","Table.DuplicateColumn","Table.ExpandListColumn","Table.ExpandRecordColumn","Table.ExpandTableColumn","Table.FillDown","Table.FillUp","Table.FilterWithDataTable","Table.FindText","Table.First","Table.FirstN","Table.FirstValue","Table.FromColumns","Table.FromList","Table.FromPartitions","Table.FromRecords","Table.FromRows","Table.FromValue","Table.Group","Table.HasColumns","Table.InsertRows","Table.IsDistinct","Table.IsEmpty","Table.Join","Table.Keys","Table.Last","Table.LastN","Table.MatchesAllRows","Table.MatchesAnyRows","Table.Max","Table.MaxN","Table.Min","Table.MinN","Table.NestedJoin","Table.Partition","Table.PartitionValues","Table.Pivot","Table.PositionOf","Table.PositionOfAny","Table.PrefixColumns","Table.Profile","Table.PromoteHeaders","Table.Range","Table.RemoveColumns","Table.RemoveFirstN","Table.RemoveLastN","Table.RemoveMatchingRows","Table.RemoveRows","Table.RemoveRowsWithErrors","Table.RenameColumns","Table.ReorderColumns","Table.Repeat","Table.ReplaceErrorValues","Table.ReplaceKeys","Table.ReplaceMatchingRows","Table.ReplaceRelationshipIdentity","Table.ReplaceRows","Table.ReplaceValue","Table.ReverseRows","Table.RowCount","Table.Schema","Table.SelectColumns","Table.SelectRows","Table.SelectRowsWithErrors","Table.SingleRow","Table.Skip","Table.Sort","Table.SplitColumn","Table.ToColumns","Table.ToList","Table.ToRecords","Table.ToRows","Table.TransformColumnNames","Table.TransformColumnTypes","Table.TransformColumns","Table.TransformRows","Table.Transpose","Table.Unpivot","Table.UnpivotOtherColumns","Table.View","Table.ViewFunction","TableAction.DeleteRows","TableAction.InsertRows","TableAction.UpdateRows","Tables.GetRelationships","Teradata.Database","Text.AfterDelimiter","Text.At","Text.BeforeDelimiter","Text.BetweenDelimiters","Text.Clean","Text.Combine","Text.Contains","Text.End","Text.EndsWith","Text.Format","Text.From","Text.FromBinary","Text.Insert","Text.Length","Text.Lower","Text.Middle","Text.NewGuid","Text.PadEnd","Text.PadStart","Text.PositionOf","Text.PositionOfAny","Text.Proper","Text.Range","Text.Remove","Text.RemoveRange","Text.Repeat","Text.Replace","Text.ReplaceRange","Text.Select","Text.Split","Text.SplitAny","Text.Start","Text.StartsWith","Text.ToBinary","Text.ToList","Text.Trim","Text.TrimEnd","Text.TrimStart","Text.Upper","Time.EndOfHour","Time.From","Time.FromText","Time.Hour","Time.Minute","Time.Second","Time.StartOfHour","Time.ToRecord","Time.ToText","Type.AddTableKey","Type.ClosedRecord","Type.Facets","Type.ForFunction","Type.ForRecord","Type.FunctionParameters","Type.FunctionRequiredParameters","Type.FunctionReturn","Type.Is","Type.IsNullable","Type.IsOpenRecord","Type.ListItem","Type.NonNullable","Type.OpenRecord","Type.RecordFields","Type.ReplaceFacets","Type.ReplaceTableKeys","Type.TableColumn","Type.TableKeys","Type.TableRow","Type.TableSchema","Type.Union","Uri.BuildQueryString","Uri.Combine","Uri.EscapeDataString","Uri.Parts","Value.Add","Value.As","Value.Compare","Value.Divide","Value.Equals","Value.Firewall","Value.FromText","Value.Is","Value.Metadata","Value.Multiply","Value.NativeQuery","Value.NullableEquals","Value.RemoveMetadata","Value.ReplaceMetadata","Value.ReplaceType","Value.Subtract","Value.Type","ValueAction.NativeStatement","ValueAction.Replace","Variable.Value","Web.Contents","Web.Page","WebAction.Request","Xml.Document","Xml.Tables"],builtinConstants:["BinaryEncoding.Base64","BinaryEncoding.Hex","BinaryOccurrence.Optional","BinaryOccurrence.Repeating","BinaryOccurrence.Required","ByteOrder.BigEndian","ByteOrder.LittleEndian","Compression.Deflate","Compression.GZip","CsvStyle.QuoteAfterDelimiter","CsvStyle.QuoteAlways","Culture.Current","Day.Friday","Day.Monday","Day.Saturday","Day.Sunday","Day.Thursday","Day.Tuesday","Day.Wednesday","ExtraValues.Error","ExtraValues.Ignore","ExtraValues.List","GroupKind.Global","GroupKind.Local","JoinAlgorithm.Dynamic","JoinAlgorithm.LeftHash","JoinAlgorithm.LeftIndex","JoinAlgorithm.PairwiseHash","JoinAlgorithm.RightHash","JoinAlgorithm.RightIndex","JoinAlgorithm.SortMerge","JoinKind.FullOuter","JoinKind.Inner","JoinKind.LeftAnti","JoinKind.LeftOuter","JoinKind.RightAnti","JoinKind.RightOuter","JoinSide.Left","JoinSide.Right","MissingField.Error","MissingField.Ignore","MissingField.UseNull","Number.E","Number.Epsilon","Number.NaN","Number.NegativeInfinity","Number.PI","Number.PositiveInfinity","Occurrence.All","Occurrence.First","Occurrence.Last","Occurrence.Optional","Occurrence.Repeating","Occurrence.Required","Order.Ascending","Order.Descending","Precision.Decimal","Precision.Double","QuoteStyle.Csv","QuoteStyle.None","RelativePosition.FromEnd","RelativePosition.FromStart","RoundingMode.AwayFromZero","RoundingMode.Down","RoundingMode.ToEven","RoundingMode.TowardZero","RoundingMode.Up","SapHanaDistribution.All","SapHanaDistribution.Connection","SapHanaDistribution.Off","SapHanaDistribution.Statement","SapHanaRangeOperator.Equals","SapHanaRangeOperator.GreaterThan","SapHanaRangeOperator.GreaterThanOrEquals","SapHanaRangeOperator.LessThan","SapHanaRangeOperator.LessThanOrEquals","SapHanaRangeOperator.NotEquals","TextEncoding.Ascii","TextEncoding.BigEndianUnicode","TextEncoding.Unicode","TextEncoding.Utf16","TextEncoding.Utf8","TextEncoding.Windows","TraceLevel.Critical","TraceLevel.Error","TraceLevel.Information","TraceLevel.Verbose","TraceLevel.Warning","WebMethod.Delete","WebMethod.Get","WebMethod.Head","WebMethod.Patch","WebMethod.Post","WebMethod.Put"],builtinTypes:["Action.Type","Any.Type","Binary.Type","BinaryEncoding.Type","BinaryOccurrence.Type","Byte.Type","ByteOrder.Type","Character.Type","Compression.Type","CsvStyle.Type","Currency.Type","Date.Type","DateTime.Type","DateTimeZone.Type","Day.Type","Decimal.Type","Double.Type","Duration.Type","ExtraValues.Type","Function.Type","GroupKind.Type","Guid.Type","Int16.Type","Int32.Type","Int64.Type","Int8.Type","JoinAlgorithm.Type","JoinKind.Type","JoinSide.Type","List.Type","Logical.Type","MissingField.Type","None.Type","Null.Type","Number.Type","Occurrence.Type","Order.Type","Password.Type","Percentage.Type","Precision.Type","QuoteStyle.Type","Record.Type","RelativePosition.Type","RoundingMode.Type","SapHanaDistribution.Type","SapHanaRangeOperator.Type","Single.Type","Table.Type","Text.Type","TextEncoding.Type","Time.Type","TraceLevel.Type","Type.Type","Uri.Type","WebMethod.Type"],tokenizer:{root:[[/#"[\w \.]+"/,"identifier.quote"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+([eE][\-+]?\d+)?/,"number"],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@constructors":"constructor","@operatorKeywords":"operators","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":"type","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":"keyword.function","@builtinConstants":"constant","@default":"identifier"}}],[/\b([a-zA-Z_][\w\.]*)\b/,"identifier"],{include:"@whitespace"},{include:"@comments"},{include:"@strings"},[/[{}()\[\]]/,"@brackets"],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,"operators"],[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],strings:[['"',"string","@string"]],string:[['""',"string.escape"],['"',"string","@pop"],[".","string"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/powershell/powershell.js b/js/monaco/vs/basic-languages/powershell/powershell.js new file mode 100644 index 000000000..0ccf2e578 --- /dev/null +++ b/js/monaco/vs/basic-languages/powershell/powershell.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/powershell/powershell",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},n.language={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/pug/pug.js b/js/monaco/vs/basic-languages/pug/pug.js new file mode 100644 index 000000000..aea89b545 --- /dev/null +++ b/js/monaco/vs/basic-languages/pug/pug.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/pug/pug",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},t.language={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[//,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(\w+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)(\w+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/redis/redis.js b/js/monaco/vs/basic-languages/redis/redis.js new file mode 100644 index 000000000..1fc8c4327 --- /dev/null +++ b/js/monaco/vs/basic-languages/redis/redis.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/redis/redis",["require","exports"],function(E,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.conf={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},e.language={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/redshift/redshift.js b/js/monaco/vs/basic-languages/redshift/redshift.js new file mode 100644 index 000000000..e548606c5 --- /dev/null +++ b/js/monaco/vs/basic-languages/redshift/redshift.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/redshift/redshift",["require","exports"],function(e,_){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.conf={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},_.language={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY13","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/ruby/ruby.js b/js/monaco/vs/basic-languages/ruby/ruby.js new file mode 100644 index 000000000..3c0bd105a --- /dev/null +++ b/js/monaco/vs/basic-languages/ruby/ruby.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/ruby/ruby",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={comments:{lineComment:"#",blockComment:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t.language={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/rust/rust.js b/js/monaco/vs/basic-languages/rust/rust.js new file mode 100644 index 000000000..eee038d10 --- /dev/null +++ b/js/monaco/vs/basic-languages/rust/rust.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/rust/rust",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},t.language={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","box","break","const","continue","crate","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'\S'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/sb/sb.js b/js/monaco/vs/basic-languages/sb/sb.js new file mode 100644 index 000000000..40908e61a --- /dev/null +++ b/js/monaco/vs/basic-languages/sb/sb.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/sb/sb",["require","exports"],function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.conf={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},o.language={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/scheme/scheme.js b/js/monaco/vs/basic-languages/scheme/scheme.js new file mode 100644 index 000000000..fe2456803 --- /dev/null +++ b/js/monaco/vs/basic-languages/scheme/scheme.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/scheme/scheme",["require","exports"],function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.conf={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o.language={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/\\./,"string.escape"],[/"/,"string","@popall"],[/.(?=.*")/,"string"],[/.*\\$/,"string"],[/.*$/,"string","@popall"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/scss/scss.js b/js/monaco/vs/basic-languages/scss/scss.js new file mode 100644 index 000000000..86a3f53fd --- /dev/null +++ b/js/monaco/vs/basic-languages/scss/scss.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/scss/scss",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},t.language={defaultToken:"",tokenPostfix:".scss",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@variabledeclaration"},{include:"@warndebug"},["[@](include)",{token:"keyword",next:"@includedeclaration"}],["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["[@](function)",{token:"keyword",next:"@functiondeclaration"}],["[@](mixin)",{token:"keyword",next:"@mixindeclaration"}],["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@controlstatement"},{include:"@selectorname"},["[&\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.curly",next:"@selectorbody"}]],selectorbody:[["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],{include:"@selector"},["[@](extend)",{token:"keyword",next:"@extendbody"}],["[@](return)",{token:"keyword",next:"@declarationbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],selectorname:[["#{",{token:"meta",next:"@variableinterpolation"}],["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@functioninvocation"},{include:"@numbers"},{include:"@strings"},{include:"@variablereference"},["(and\\b|or\\b|not\\b)","operator"],{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","operator"],[",","delimiter"],["!default","literal"],["\\(",{token:"delimiter.parenthesis",next:"@parenthizedterm"}]],rulevalue:[{include:"@term"},["!important","literal"],[";","delimiter","@pop"],["{",{token:"delimiter.curly",switchTo:"@nestedproperty"}],["(?=})",{token:"",next:"@pop"}]],nestedproperty:[["[*_]?@identifier@ws:","attribute.name","@rulevalue"],{include:"@comments"},["}",{token:"delimiter.curly",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],variabledeclaration:[["\\$@identifier@ws:","variable.decl","@declarationbody"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"meta",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],extendbody:[{include:"@selectorname"},["!optional","literal"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],variablereference:[["\\$@identifier","variable.ref"],["\\.\\.\\.","operator"],["#{",{token:"meta",next:"@variableinterpolation"}]],variableinterpolation:[{include:"@variablereference"},["}",{token:"meta",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],name:[["@identifier","attribute.value"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","number.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","number","@pop"]],functiondeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["{",{token:"delimiter.curly",switchTo:"@functionbody"}]],mixindeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],parameterdeclaration:[["\\$@identifier@ws:","variable.decl"],["\\.\\.\\.","operator"],[",","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],includedeclaration:[{include:"@functioninvocation"},["@identifier","meta"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],keyframedeclaration:[["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.curly",next:"@selectorbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],controlstatement:[["[@](if|else|for|while|each|media)",{token:"keyword.flow",next:"@controlstatementdeclaration"}]],controlstatementdeclaration:[["(in|from|through|if|to)\\b",{token:"keyword.flow"}],{include:"@term"},["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],functionbody:[["[@](return)",{token:"keyword"}],{include:"@variabledeclaration"},{include:"@term"},{include:"@controlstatement"},[";","delimiter"],["}",{token:"delimiter.curly",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"meta",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],strings:[['~?"',{token:"string.delimiter",next:"@stringenddoublequote"}],["~?'",{token:"string.delimiter",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string.delimiter",next:"@pop"}],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string.delimiter",next:"@pop"}],[".","string"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/shell/shell.js b/js/monaco/vs/basic-languages/shell/shell.js new file mode 100644 index 000000000..85ac99fc4 --- /dev/null +++ b/js/monaco/vs/basic-languages/shell/shell.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/shell/shell",["require","exports"],function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.conf={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s.language={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],symbols:/[=>"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},e.language={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/sql/sql.js b/js/monaco/vs/basic-languages/sql/sql.js new file mode 100644 index 000000000..f24ff8b38 --- /dev/null +++ b/js/monaco/vs/basic-languages/sql/sql.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/sql/sql",["require","exports"],function(E,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.conf={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},T.language={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/st/st.js b/js/monaco/vs/basic-languages/st/st.js new file mode 100644 index 000000000..d3582138e --- /dev/null +++ b/js/monaco/vs/basic-languages/st/st.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/st/st",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.conf={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},n.language={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","configuration","end_configuration","tcp","end_tcp","recource","end_recource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","world","dworld","array","pointer","lworld"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","сtu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/\@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/typescript/typescript.js b/js/monaco/vs/basic-languages/typescript/typescript.js new file mode 100644 index 000000000..24650ea2e --- /dev/null +++ b/js/monaco/vs/basic-languages/typescript/typescript.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/typescript/typescript",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"==typeof monaco?self.monaco:monaco;t.conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:n.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:n.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:n.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:n.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},t.language={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","as","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","package","private","protected","public","readonly","require","global","return","set","static","super","switch","symbol","this","throw","true","try","type","typeof","unique","var","void","while","with","yield","async","await","of"],typeKeywords:["any","boolean","number","object","string","undefined"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)/,"number.hex"],[/0(@octaldigits)/,"number.octal"],[/0[bB](@binarydigits)/,"number.binary"],[/(@digits)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],["/",{token:"regexp",bracket:"@close"},"@pop"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}}); \ No newline at end of file diff --git a/js/monaco/vs/basic-languages/vb/vb.js b/js/monaco/vs/basic-languages/vb/vb.js new file mode 100644 index 000000000..f885c5781 --- /dev/null +++ b/js/monaco/vs/basic-languages/vb/vb.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * monaco-languages version: 1.5.1(d085b3bad82f8b59df390ce976adef0c83a9289e) + * Released under the MIT license + * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md + *-----------------------------------------------------------------------------*/ +define("vs/basic-languages/vb/vb",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.conf={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"<",close:">",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},n.language={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=>"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},t.language={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[//,m.html=u(m.html,"i").replace("comment",m._comment).replace("tag",m._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),m.paragraph=u(m.paragraph).replace("hr",m.hr).replace("heading",m.heading).replace("lheading",m.lheading).replace("tag",m._tag).getRegex(),m.blockquote=u(m.blockquote).replace("paragraph",m.paragraph).getRegex(),m.normal=h({},m),m.gfm=h({},m.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}), +m.gfm.paragraph=u(m.paragraph).replace("(?!","(?!"+m.gfm.fences.source.replace("\\1","\\2")+"|"+m.list.source.replace("\\1","\\3")+"|").getRegex(),m.tables=h({},m.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),m.pedantic=h({},m.normal,{html:u("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",m._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),t.rules=m,t.lex=function(e,n){return new t(n).lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)}, +t.prototype.token=function(e,t){e=e.replace(/^ +$/gm,"");for(var n,i,o,r,s,a,l,u,d,c,h,g,v;e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:f(o,"\n")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))&&(a={type:"table",header:p(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===a.align.length){for(e=e.substring(o[0].length), +u=0;u ?/gm,""),this.token(o,t),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),h=(r=o[2]).length>1,this.tokens.push({type:"list_start",ordered:h,start:h?+r:""}),n=!1,c=(o=o[0].match(this.rules.item)).length,u=0;u1&&s.length>1||(e=o.slice(u+1).join("\n")+e,u=c-1)),i=n||/\n\n(?!\s*$)/.test(a),u!==c-1&&(n="\n"===a.charAt(a.length-1),i||(i=n)),v=void 0,(g=/^\[[ xX]\] /.test(a))&&(v=" "!==a[1],a=a.replace(/^\[[ xX]\] +/,"")),this.tokens.push({type:i?"loose_item_start":"list_item_start",task:g,checked:v}),this.token(a,!1),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),d=o[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[d]||(this.tokens.links[d]={href:o[2],title:o[3]});else if(t&&(o=this.rules.table.exec(e))&&(a={type:"table",header:p(o[1].replace(/^ *| *\| *$/g,"")), +align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/(?: *\| *)?\n$/,"").split("\n"):[]}).header.length===a.align.length){for(e=e.substring(o[0].length),u=0;u?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:c,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)|^__([^\s])__(?!_)|^\*\*([^\s])\*\*(?!\*)/,em:/^_([^\s][\s\S]*?[^\s_])_(?!_)|^_([^\s_][\s\S]*?[^\s])_(?!_)|^\*([^\s][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*][\s\S]*?[^\s])\*(?!\*)|^_([^\s_])_(?!_)|^\*([^\s*])\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:c,text:/^[\s\S]+?(?=[\\?@\[\]\\^_`{|}~])/g,v._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/, +v._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,v.autolink=u(v.autolink).replace("scheme",v._scheme).replace("email",v._email).getRegex(),v._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,v.tag=u(v.tag).replace("comment",m._comment).replace("attribute",v._attribute).getRegex(),v._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/,v._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f()\\]*\)|[^\s\x00-\x1f()\\])*?)/,v._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,v.link=u(v.link).replace("label",v._label).replace("href",v._href).replace("title",v._title).getRegex(),v.reflink=u(v.reflink).replace("label",v._label).getRegex(),v.normal=h({},v),v.pedantic=h({},v.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/, +link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",v._label).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",v._label).getRegex()}),v.gfm=h({},v.normal,{escape:u(v.escape).replace("])","~|])").getRegex(),url:u(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",v._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:u(v.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),v.breaks=h({},v.gfm,{br:u(v.br).replace("{2,}","*").getRegex(),text:u(v.gfm.text).replace("{2,}","*").getRegex()}),n.rules=v,n.output=function(e,t,i){return new n(t,i).output(e)},n.prototype.output=function(e){for(var t,i,o,r,s,l="";e;)if(s=this.rules.escape.exec(e))e=e.substring(s[0].length),l+=s[1];else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),o="@"===s[2]?"mailto:"+(i=a(this.mangle(s[1]))):i=a(s[1]), +l+=this.renderer.link(o,null,i);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.tag.exec(e))!this.inLink&&/^/i.test(s[0])&&(this.inLink=!1),e=e.substring(s[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):a(s[0]):s[0];else if(s=this.rules.link.exec(e))e=e.substring(s[0].length),this.inLink=!0,o=s[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o))?(o=t[1],r=t[3]):r="":r=s[3]?s[3].slice(1,-1):"",o=o.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(s,{href:n.escapes(o),title:n.escapes(r)}),this.inLink=!1;else if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){if(e=e.substring(s[0].length),t=(s[2]||s[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=s[0].charAt(0),e=s[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(s,t),this.inLink=!1}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length), +l+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(e))e=e.substring(s[0].length),l+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(e))e=e.substring(s[0].length),l+=this.renderer.codespan(a(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),l+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),l+=this.renderer.del(this.output(s[1]));else if(s=this.rules.text.exec(e))e=e.substring(s[0].length),l+=this.renderer.text(a(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else s[0]=this.rules._backpedal.exec(s[0])[0],e=e.substring(s[0].length),"@"===s[2]?o="mailto:"+(i=a(s[0])):(i=a(s[0]),o="www."===s[1]?"http://"+i:i),l+=this.renderer.link(o,null,i);return l},n.escapes=function(e){return e?e.replace(n.rules._escapes,"$1"):e},n.prototype.outputLink=function(e,t){var n=t.href,i=t.title?a(t.title):null +;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,a(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},i.prototype.code=function(e,t,n){if(this.options.highlight){var i=this.options.highlight(e,t);null!=i&&i!==e&&(n=!0,e=i)}return t?'
      '+(n?e:a(e,!0))+"
      \n":"
      "+(n?e:a(e,!0))+"
      "},i.prototype.blockquote=function(e){return"
      \n"+e+"
      \n"},i.prototype.html=function(e){return e},i.prototype.heading=function(e,t,n){ +return this.options.headerIds?"'+e+"\n":""+e+"\n"},i.prototype.hr=function(){return this.options.xhtml?"
      \n":"
      \n"},i.prototype.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},i.prototype.listitem=function(e){return"
    • "+e+"
    • \n"},i.prototype.checkbox=function(e){return" "},i.prototype.paragraph=function(e){return"

      "+e+"

      \n"},i.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
      \n"},i.prototype.tablerow=function(e){return"\n"+e+"\n"},i.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},i.prototype.strong=function(e){return""+e+""},i.prototype.em=function(e){ +return""+e+""},i.prototype.codespan=function(e){return""+e+""},i.prototype.br=function(){return this.options.xhtml?"
      ":"
      "},i.prototype.del=function(e){return""+e+""},i.prototype.link=function(e,t,n){if(this.options.sanitize){try{var i=decodeURIComponent(l(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return n}this.options.baseUrl&&!y.test(e)&&(e=d(this.options.baseUrl,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return n}var o='
      "},i.prototype.image=function(e,t,n){this.options.baseUrl&&!y.test(e)&&(e=d(this.options.baseUrl,e));var i=''+n+'":">"},i.prototype.text=function(e){return e},o.prototype.strong=o.prototype.em=o.prototype.codespan=o.prototype.del=o.prototype.text=function(e){return e}, +o.prototype.link=o.prototype.image=function(e,t,n){return""+n},o.prototype.br=function(){return""},s.parse=function(e,t){return new s(t).parse(e)},s.prototype.parse=function(e){this.inline=new n(e.links,this.options),this.inlineText=new n(e.links,h({},this.options,{renderer:new o})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},s.prototype.next=function(){return this.token=this.tokens.pop()},s.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},s.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},s.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,l(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,o="",r="";for(n="", +e=0;e=0,i=d.indexOf("Macintosh")>=0,o=d.indexOf("Linux")>=0,s=!0, +navigator.language}var c;!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(c=t.Platform||(t.Platform={}));t.isWindows=n,t.isMacintosh=i,t.isLinux=o,t.isNative=r,t.isWeb=s;var h="object"==typeof self?self:"object"==typeof global?global:{};t.globals=h;var p=null;t.setImmediate=function(e){return null===p&&(p=t.globals.setImmediate?t.globals.setImmediate.bind(t.globals):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):t.globals.setTimeout.bind(t.globals)),p(e)},t.OS=i?2:n?1:3}),define(t[228],n([1,0,18]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n.globals.performance&&"function"==typeof n.globals.performance.now,o=function(){function e(e){this._highResolution=i&&e,this._startTime=this._now(),this._stopTime=-1}return e.create=function(t){return void 0===t&&(t=!0),new e(t)},e.prototype.elapsed=function(){ +return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?n.globals.performance.now():(new Date).getTime()},e}();t.StopWatch=o}),define(t[6],n([1,0]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function i(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var i=0;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function o(e,t){if(!e||!t)return e;var n=t.length,i=e.length;if(0===n||0===i)return e;for(var o=i,r=-1;;){if(-1===(r=e.lastIndexOf(t,o-1))||r+n!==o)break;if(0===r)return"";o=r}return e.substring(0,o)}function r(e,t){return et?1:0}function s(e){return e>=97&&e<=122}function a(e){return e>=65&&e<=90}function l(e){return s(e)||a(e)}function u(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var i=0;i=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,n){void 0===n&&(n="0");for(var i=""+e,o=[i],r=i.length;r=t.length?e:t[i]})},t.escape=function(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})},t.escapeRegExpCharacters=n,t.trim=function(e,t){return void 0===t&&(t=" "),o(i(e,t),t)},t.ltrim=i,t.rtrim=o,t.convertSimple2RegExpPattern=function(e){ +return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},t.startsWith=function(e,t){if(e.length0?e.indexOf(t,n)===n:0===n&&e===t},t.createRegExp=function(e,t,i){if(void 0===i&&(i={}),!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var o="";return i.global&&(o+="g"),i.matchCase||(o+="i"),i.multiline&&(o+="m"),new RegExp(e,o)},t.regExpLeadsToEndlessLoop=function(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&e.exec("")&&0===e.lastIndex},t.firstNonWhitespaceIndex=function(e){for(var t=0,n=e.length;t=0;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n}return-1},t.compare=r,t.compareIgnoreCase=function(e,t){for(var n=Math.min(e.length,t.length),i=0;it.length?1:0},t.isLowerAsciiLetter=s,t.isUpperAsciiLetter=a,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&u(e,t)},t.startsWithIgnoreCase=function(e,t){var n=t.length;return!(t.length>e.length)&&u(e,t,n)},t.commonPrefixLength=function(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n0&&65279===e.charCodeAt(0)},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){for(var n="",i=0;i0&&!h(e.charCodeAt(n-1)))return n}return e.length}function g(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;var o=null,r=i+1;for(o=g(e,t,n+1,i+1);!o&&(r=f(t,r))60)return null;var n=function(e){for(var t=0,n=0,i=0,o=0,r=0,s=0;s.2&&t<.8&&i>.6&&o<.2}(n)){if(!function(e){var t=e.upperPercent;return 0===e.lowerPercent&&t>.6}(n))return null;t=t.toLowerCase()}var i=null,o=0;for(e=e.toLowerCase();o=e.length)return!1;switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:return!0;default:return!1}}function C(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function b(e,t,n,i){var o=e.length>100?100:e.length,r=t.length>100?100:t.length,s=0;for(void 0===n&&(n=o);sr)){for(var a=e.toLowerCase(),l=t.toLowerCase(),u=s,d=0;u1?1:c),f=x[u-1][d]+-1,g=x[u][d-1]+-1;g>=f?g>p?(x[u][d]=g,I[u][d]=4):g===p?(x[u][d]=g,I[u][d]=6):(x[u][d]=p,I[u][d]=2):f>p?(x[u][d]=f,I[u][d]=1):f===p?(x[u][d]=f,I[u][d]=3):(x[u][d]=p,I[u][d]=2)}if(M&&(console.log(_(x,e,o,t,r)),console.log(_(I,e,o,t,r)),console.log(_(N,e,o,t,r))),T=0,k=-100,R=s, +O=i,S(o,r,o===r?1:0,new P,!1),0!==T)return[k,D.toArray()]}}}function S(e,t,n,i,o){if(!(T>=10||n<-25)){for(var r=0;e>R&&t>0;){var s=N[e][t],a=I[e][t];if(4===a)t-=1,o?n-=5:i.isEmpty()||(n-=1),o=!1,r=0;else{if(!(2&a))return;if(4&a&&S(e,t-1,i.isEmpty()?n:n-1,i.slice(),o),n+=s,e-=1,t-=1,i.unshift(t),o=!0,1===s){if(r+=1,e===R&&!O)return}else n+=1+r*(s-1),r=0}}T+=1,(n-=t>=3?9:3*t)>k&&(k=n,D=i)}}function w(e,t,n){return function(e,t,n,i){var o=b(e,t,i);if(o&&!n)return o;if(e.length>=3)for(var r=Math.min(7,e.length-1),s=1;s=e.length)return;var n=e[t],i=e[t+1];if(n===i)return;return e.slice(0,t)+i+n+e.slice(t+2)}(e,s);if(a){var l=b(a,t,i);l&&(l[0]-=3,(!o||l[0]>o[0])&&(o=l))}}return o}(e,t,!0,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.or=o,t.matchesPrefix=function(e,t,i){return!i||i.length0?[{start:0,end:t.length}]:[]:null}.bind(void 0,!0),t.matchesContiguousSubString=r,t.matchesSubString=s,t.isUpper=u, +t.matchesCamelCase=m,t.fuzzyContiguousFilter=o(t.matchesPrefix,m,r);var E=o(t.matchesPrefix,m,s),L=new i.LRUCache(1e4);t.matchesFuzzy=function(e,i,o){if(void 0===o&&(o=!1),"string"!=typeof e||"string"!=typeof i)return null;var r=L.get(e);r||(r=new RegExp(n.convertSimple2RegExpPattern(e),"i"),L.set(e,r));var s=r.exec(i);return s?[{start:s.index,end:s.index+s[0].length}]:o?E(e,i):t.fuzzyContiguousFilter(e,i)},t.anyScore=function(e,t,n){e=e.toLowerCase(),t=t.toLowerCase();for(var i=[],o=0,r=0;r=0&&(i.push(s),o=s+1)}return[i.length,i]},t.createMatches=function(e){var t=[];if(!e)return t;for(var n,i=0,o=e;i0)&&".."!==m&&(p=-1===g?"":p.slice(0,g),d=!0)}else a(e,u,f,".")&&(s||p||f=65&&i<=90||i>=97&&i<=122)&&58===e.charCodeAt(1))return 47===(i=e.charCodeAt(2))||92===i?e.slice(0,2)+t:e.slice(0,2);var s=e.indexOf("://") +;if(-1!==s)for(s+=3;s=65&&t<=90||t>=97&&t<=122)&&e.length>2&&58===e.charCodeAt(1)){var n=e.charCodeAt(2);if(47===n||92===n)return!0}return!1}function d(e){return e&&47===e.charCodeAt(0)}Object.defineProperty(t,"__esModule",{value:!0}),t.sep="/",t.nativeSep=n.isWindows?"\\":"/",t.dirname=o,t.basename=r,t.extname=function(e){var t=~(e=r(e)).lastIndexOf(".");return t?e.substring(~t):""};var c=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,h=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;t.normalize=s,t.getRoot=l,t.join=function(){for(var e="",n=0;n0){var o=e.charCodeAt(e.length-1);if(47!==o&&92!==o){var r=i.charCodeAt(0);47!==r&&92!==r&&(e+=t.sep)}}e+=i}return s(e)},t.isEqualOrParent=function(e,n,o,r){if(void 0===r&&(r=t.nativeSep),e===n)return!0;if(!e||!n)return!1;if(n.length>e.length)return!1;if(o){ +if(!i.startsWithIgnoreCase(e,n))return!1;if(n.length===e.length)return!0;var s=n.length;return n.charAt(n.length-1)===r&&s--,e.charAt(s)===r}return n.charAt(n.length-1)!==r&&(n+=r),0===e.indexOf(n)},t.isAbsolute=function(e){return n.isWindows?u(e):d(e)},t.isAbsolute_win32=u,t.isAbsolute_posix=d}),define(t[161],n([1,0,50,6]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basenameOrAuthority=function(e){return n.basename(e.path)||e.authority},t.isEqual=function(e,t,n){return!(e!==t)||!(!e||!t)&&(n?i.equalsIgnoreCase(e.toString(),t.toString()):e.toString()===t.toString())},t.dirname=function(e){var t=n.dirname(e.path);return e.authority&&t&&!n.isAbsolute(t)?null:e.with({path:t})}}),define(t[33],n([1,0]),function(e,t){"use strict";function n(e){return typeof e===l.string||e instanceof String}function i(e){return!(typeof e!==l.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function o(e){return typeof e===l.undefined}function r(e){return o(e)||null===e +}function s(e){return typeof e===l.function}function a(e,t){if(n(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(s(t)){if(e instanceof t)return;if(!r(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}Object.defineProperty(t,"__esModule",{value:!0});var l={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};t.isArray=function(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==l.number||e.constructor!==Array)},t.isString=n,t.isObject=i,t.isNumber=function(e){return(typeof e===l.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=o,t.isUndefinedOrNull=r;var u=Object.prototype.hasOwnProperty;t.isEmptyObject=function(e){if(!i(e))return!1;for(var t in e)if(u.call(e,t))return!1;return!0}, +t.isFunction=s,t.validateConstraints=function(e,t){for(var n=Math.min(e.length,t.length),i=0;i0;){var n=t.shift();Object.freeze(n);for(var i in n)if(a.call(n,i)){var o=n[i];"object"!=typeof o||Object.isFrozen(o)||t.push(o)}}return e};var a=Object.prototype.hasOwnProperty;t.mixin=o,t.assign=function(e){for(var t=[],n=1;n=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r)-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));var s=m[r];void 0!==s?(-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),n+=s):-1===i&&(i=o)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function r(e){var t +;return t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,n.isWindows&&(t=t.replace(/\//g,"\\")),t}function s(e,t){var n=t?function(e){for(var t=void 0,n=0;n=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){ +(p=a.charCodeAt(1))>=65&&p<=90&&(a="/"+String.fromCharCode(p+32)+":"+a.substr(3))}else if(a.length>=2&&58===a.charCodeAt(1)){var p=a.charCodeAt(0);p>=65&&p<=90&&(a=String.fromCharCode(p+32)+":"+a.substr(2))}o+=n(a,!0)}return l&&(o+="?",o+=n(l,!1)),u&&(o+="#",o+=t?u:i(u,!1)),o}Object.defineProperty(t,"__esModule",{value:!0});var a,l=/^\w[\w\d+.-]*$/,u=/^\//,d=/^\/\//,c="",h="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,f=function(){function e(e,t,n,i,o){"object"==typeof e?(this.scheme=e.scheme||c,this.authority=e.authority||c,this.path=e.path||c,this.query=e.query||c,this.fragment=e.fragment||c):(this.scheme=e||c,this.authority=t||c,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||c),this.query=i||c,this.fragment=o||c,function(e){if(e.scheme&&!l.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){ +if(!u.test(e.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(d.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return r(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,o=e.query,r=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=c),void 0===n?n=this.authority:null===n&&(n=c),void 0===i?i=this.path:null===i&&(i=c),void 0===o?o=this.query:null===o&&(o=c),void 0===r?r=this.fragment:null===r&&(r=c), +t===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&r===this.fragment?this:new g(t,n,i,o,r)},e.parse=function(e){var t=p.exec(e);return t?new g(t[2]||c,decodeURIComponent(t[4]||c),decodeURIComponent(t[5]||c),decodeURIComponent(t[7]||c),decodeURIComponent(t[9]||c)):new g(c,c,c,c,c)},e.file=function(e){var t=c;if(n.isWindows&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){var i=e.indexOf(h,2);-1===i?(t=e.substring(2),e=h):(t=e.substring(2,i),e=e.substring(i)||h)}return new g("file",t,e,c,c)},e.from=function(e){return new g(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),s(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new g(t);return n._fsPath=t.fsPath,n._formatted=t.external,n}return t},e}();t.default=f;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return o(t,e), +Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=r(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?s(this,!0):(this._formatted||(this._formatted=s(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(f),m=(a={},a[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a)}),define(t[201],n([1,0,31,50,6,61,18,161]),function(e,t,n,i,o,r,s,a){"use strict";function l(e){return s.isWindows&&e&&":"===e[1]}function u(e){ +return l(e)?e.charAt(0).toUpperCase()+e.slice(1):e}function d(e,t){if(s.isWindows||!e||!t)return e;var n=c.original===t?c.normalized:void 0;return n||(n=""+o.rtrim(t,i.sep)+i.sep,c={original:t,normalized:n}),(s.isLinux?o.startsWith(e,n):o.startsWithIgnoreCase(e,n))&&(e="~/"+e.substr(n.length)),e}Object.defineProperty(t,"__esModule",{value:!0}),t.getPathLabel=function(e,t,c){if(!e)return null;"string"==typeof e&&(e=n.default.file(e));var h=c?c.getWorkspaceFolder(e):null;if(h){var p=c.getWorkspace().folders.length>1,f=void 0;if(f=a.isEqual(h.uri,e,!s.isLinux)?"":i.normalize(o.ltrim(e.path.substr(h.uri.path.length),i.sep),!0),p){var g=h&&h.name?h.name:i.basename(h.uri.fsPath);f=f?g+" • "+f:g}return f}if(e.scheme!==r.Schemas.file&&e.scheme!==r.Schemas.untitled)return e.with({query:null,fragment:null}).toString(!0);if(l(e.fsPath))return i.normalize(u(e.fsPath),!0);var m=i.normalize(e.fsPath,!0);return!s.isWindows&&t&&(m=d(m,t.userHome)),m},t.getBaseLabel=function(e){if(!e)return null +;"string"==typeof e&&(e=n.default.file(e));var t=i.basename(e.path)||(e.scheme===r.Schemas.file?e.fsPath:e.path);return l(t)?u(t):t},t.normalizeDriveLetter=u;var c=Object.create(null);t.tildify=d}),define(t[480],n([1,0,31]),function(e,t,n){"use strict";function i(e,t){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return n.default.revive(e);case 2:return new RegExp(e.source,e.flags)}for(var o in e)Object.hasOwnProperty.call(e,o)&&(e[o]=i(e[o],t+1))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e){var t=JSON.parse(e);return t=i(t,0)},t.revive=i});var s;!function(){var e=Object.create(null);e["WinJS/Core/_WinJS"]={};var t=function(t,n,i){var o={},r=!1,s=n.map(function(t){return"exports"===t?(r=!0,o):e[t]}),a=i.apply({},s);e[t]=r?o:a};t("WinJS/Core/_Global",[],function(){"use strict";return"undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:{}}),t("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function(e){ +"use strict";var t=null;return{hasWinRT:!!e.Windows,markSupportedForProcessing:function(e){return e.supportedForProcessing=!0,e},_setImmediate:function(n){null===t&&(t=e.setImmediate?e.setImmediate.bind(e):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):e.setTimeout.bind(e)),t(n)}}}),t("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function(e){"use strict";return e.msWriteProfilerMark||function(){}}),t("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function(e,t,n,i){"use strict";function o(e,t,n){var i,o,r,s=Object.keys(t),a=Array.isArray(e);for(o=0,r=s.length;o"),r}var s=e;s.Namespace||(s.Namespace=Object.create(Object.prototype));var a={uninitialized:1,working:2,initialized:3};Object.defineProperties(s.Namespace,{defineWithParent:{value:r,writable:!0,enumerable:!0,configurable:!0},define:{value:function(e,n){return r(t,e,n)},writable:!0,enumerable:!0,configurable:!0},_lazy:{value:function(e){var t,n,o=a.uninitialized;return{setName:function(e){t=e},get:function(){switch(o){case a.initialized:return n;case a.uninitialized:o=a.working;try{i("WinJS.Namespace._lazy:"+t+",StartTM"),n=e() +}finally{i("WinJS.Namespace._lazy:"+t+",StopTM"),o=a.uninitialized}return e=null,o=a.initialized,n;case a.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(e){switch(o){case a.working:throw"Illegal: reentrancy on initialization";default:o=a.initialized,n=e}},enumerable:!0,configurable:!0}},writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:function(e,i,r){var s=[e],a=null;return i&&(a=n(t,i),s.push(a)),o(s,r,i||""),a},writable:!0,enumerable:!0,configurable:!0}})}(),function(){function t(e,t,i){return e=e||function(){},n.markSupportedForProcessing(e),t&&o(e.prototype,t),i&&o(e,i),e}e.Namespace.define("WinJS.Class",{define:t,derive:function(e,i,r,s){if(e){i=i||function(){};var a=e.prototype;return i.prototype=Object.create(a),n.markSupportedForProcessing(i),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,configurable:!0,enumerable:!0}),r&&o(i.prototype,r),s&&o(i,s),i}return t(i,r,s)},mix:function(e){e=e||function(){};var t,n +;for(t=1,n=arguments.length;t0;){var o=this._deliveryQueue.shift(),r=o[0],s=o[1];try{"function"==typeof r?r.call(void 0,s):r[0].call(r[1],s)}catch(i){n.onUnexpectedError(i)}}}},e.prototype.dispose=function(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._disposed=!0},e._noop=function(){},e}();t.Emitter=l;var u=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new l({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){ +var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);return o.toDisposable(i.once(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)}))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}();t.EventMultiplexer=u,t.once=function(e){return function(t,n,i){void 0===n&&(n=null);var o=e(function(e){return o.dispose(),t.call(n,e)},null,i);return o}},t.anyEvent=function(){for(var e=[],t=0;t1)&&u.fire(e),a=0},n)})},onLastListenerRemove:function(){o.dispose()}});return u.event};var d=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,i,o){return e(function(e){var o=t.buffers[t.buffers.length-1];o?o.push(function(){return n.call(i,e)}):n.call(i,e)},void 0,o)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t),e(),this.buffers.pop(),t.forEach(function(e){return e()})},e}();t.EventBufferer=d,t.mapEvent=s,t.filterEvent=a;var c=function(){function e(e){this._event=e}return Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),e.prototype.map=function(t){ +return new e(s(this._event,t))},e.prototype.filter=function(t){return new e(a(this._event,t))},e.prototype.on=function(e,t,n){return this._event(e,t,n)},e}();t.chain=function(e){return new c(e)};var h=function(){function e(){this.emitter=new l,this.event=this.emitter.event,this.disposable=o.Disposable.None}return Object.defineProperty(e.prototype,"input",{set:function(e){this.disposable.dispose(),this.disposable=e(this.emitter.fire,this.emitter)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposable.dispose(),this.emitter.dispose()},e}();t.Relay=h}),define(t[30],n([1,0,9]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._accessibilitySupport=0,this._onDidChangeAccessibilitySupport=new n.Emitter,this.onDidChangeAccessibilitySupport=this._onDidChangeAccessibilitySupport.event +}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)},e.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},e.INSTANCE=new e,e}();t.getZoomLevel=function(){return i.INSTANCE.getZoomLevel()},t.getTimeSinceLastZoomLevelChanged=function(){return i.INSTANCE.getTimeSinceLastZoomLevelChanged()},t.onDidChangeZoomLevel=function(e){return i.INSTANCE.onDidChangeZoomLevel(e)},t.getPixelRatio=function(){return i.INSTANCE.getPixelRatio()},t.getAccessibilitySupport=function(){return i.INSTANCE.getAccessibilitySupport()},t.onDidChangeAccessibilitySupport=function(e){ +return i.INSTANCE.onDidChangeAccessibilitySupport(e)};var o=navigator.userAgent;t.isIE=o.indexOf("Trident")>=0,t.isEdge=o.indexOf("Edge/")>=0,t.isEdgeOrIE=t.isIE||t.isEdge,t.isFirefox=o.indexOf("Firefox")>=0,t.isWebKit=o.indexOf("AppleWebKit")>=0,t.isChrome=o.indexOf("Chrome")>=0,t.isSafari=-1===o.indexOf("Chrome")&&o.indexOf("Safari")>=0,t.isIPad=o.indexOf("iPad")>=0,t.isEdgeWebView=t.isEdge&&o.indexOf("WebView/")>=0,t.hasClipboardSupport=function(){if(t.isIE)return!1;if(t.isEdge){var e=o.indexOf("Edge/"),n=parseInt(o.substring(e+5,o.indexOf(".",e)),10);if(!n||n>=12&&n<=16)return!1}return!0}}),define(t[87],n([1,0,9]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domEvent=function(e,t,i){var o=function(e){return r.fire(e)},r=new n.Emitter({onFirstListenerAdd:function(){e.addEventListener(t,o,i)},onLastListenerRemove:function(){e.removeEventListener(t,o,i)}});return r.event},t.stop=function(e){return n.mapEvent(e,function(e){return e.preventDefault(),e.stopPropagation(),e})} +}),define(t[57],n([1,0,39,18,30]),function(e,t,n,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new Array(230),s=new Array(112);!function(){function e(e,t){r[e]=t,s[t]=e}for(var t=0;t=o?Promise.resolve(n):(0,e[i++])().then(function(e){return t(e)?Promise.resolve(e):r()})};return r()},t.first=function(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var o=0,r=e.length,s=function(){return o>=r?i.TPromise.as(n):(0,e[o++])().then(function(e){return t(e)?i.TPromise.as(e):s()})};return s()},t.setDisposableTimeout=function(e,t){for(var n=[],i=2;i=0;){if(r=s+o, +(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(r))return this._lastStart=s,void(this._lastEnd=r+1);if(s>0&&32===n.charCodeAt(s-1)&&r===i)return this._lastStart=s-1,void(this._lastEnd=r);if(0===s&&r===i)return this._lastStart=0,void(this._lastEnd=r)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.prototype.addClasses=function(e){for(var t=this,n=[],i=1;i0;){n.sort(E.sort);n.shift().execute()}o=!1};t.scheduleAtNextAnimationFrame=function(t,n){void 0===n&&(n=0);var o=new E(t,n);return e.push(o),i||(i=!0,p(r)),o},t.runAtThisOrScheduleAtNextAnimationFrame=function(e,i){if(o){var r=new E(e,i);return n.push(r),r}return t.scheduleAtNextAnimationFrame(e,i)}}();var L=16,x=function(e,t){return t},N=function(e){function t(t,n,o,r,s){void 0===r&&(r=x),void 0===s&&(s=L);var a=e.call(this)||this,l=null,u=0,d=a._register(new i.TimeoutTimer),c=function(){u=(new Date).getTime(),o(l),l=null} +;return a._register(h(t,n,function(e){l=r(l,e);var t=(new Date).getTime()-u;t>=s?(d.cancel(),c()):d.setIfNotSet(c,s-t)})),a}return o(t,e),t}(s.Disposable);t.addDisposableThrottledListener=function(e,t,n,i,o){return new N(e,t,n,i,o)},t.getComputedStyle=f;var I=function(e,t){return parseFloat(t)||0};t.getClientArea=function(e){if(e!==document.body)return new D(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new D(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientWidth)return new D(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new D(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")};var M={getBorderLeftWidth:function(e){return g(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){ +return g(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return g(e,"border-top-width","borderTopWidth")},getBorderBottomWidth:function(e){return g(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return g(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return g(e,"padding-right","paddingRight")},getPaddingTop:function(e){return g(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return g(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return g(e,"margin-left","marginLeft")},getMarginTop:function(e){return g(e,"margin-top","marginTop")},getMarginRight:function(e){return g(e,"margin-right","marginRight")},getMarginBottom:function(e){return g(e,"margin-bottom","marginBottom")},__commaSentinel:!1},D=function(){return function(e,t){this.width=e,this.height=t}}();t.Dimension=D,t.getTopLeftOffset=function(e){ +for(var t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var o=f(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=M.getBorderLeftWidth(e),n+=M.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}},t.getDomNodePagePosition=function(e){var n=e.getBoundingClientRect();return{left:n.left+t.StandardWindow.scrollX,top:n.top+t.StandardWindow.scrollY,width:n.width,height:n.height}},t.StandardWindow=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}()),t.getTotalWidth=function(e){ +var t=M.getMarginLeft(e)+M.getMarginRight(e);return e.offsetWidth+t},t.getContentWidth=function(e){var t=M.getBorderLeftWidth(e)+M.getBorderRightWidth(e),n=M.getPaddingLeft(e)+M.getPaddingRight(e);return e.offsetWidth-t-n},t.getContentHeight=function(e){var t=M.getBorderTopWidth(e)+M.getBorderBottomWidth(e),n=M.getPaddingTop(e)+M.getPaddingBottom(e);return e.offsetHeight-t-n},t.getTotalHeight=function(e){var t=M.getMarginTop(e)+M.getMarginBottom(e);return e.offsetHeight+t},t.isAncestor=function(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1},t.findParentWithClass=function(e,n,i){for(;e;){if(t.hasClass(e,n))return e;if(i)if("string"==typeof i){if(t.hasClass(e,i))return null}else if(e===i)return null;e=e.parentNode}return null},t.createStyleSheet=m;var T=null;t.createCSSRule=function(e,t,n){void 0===n&&(n=v()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)},t.removeCSSRulesContainingSelector=function(e,t){if(void 0===t&&(t=v()),t){for(var n=function(e){ +return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),i=[],o=0;o=0;o--)t.sheet.deleteRule(i[o])}},t.isHTMLElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName},t.EventType={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",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:a.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:a.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:a.isWebKit?"webkitAnimationIteration":"animationiteration"},t.EventHelper={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},t.saveParentsScrollTop=function(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t},t.restoreParentsScrollTop=function(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode};var k=function(){function e(e){var n=this;this._onDidFocus=new d.Emitter,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new d.Emitter,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var i=!1,o=!1;c.domEvent(e,t.EventType.FOCUS,!0)(function(){o=!1,i||(i=!0,n._onDidFocus.fire())},null,this.disposables), +c.domEvent(e,t.EventType.BLUR,!0)(function(){i&&(o=!0,window.setTimeout(function(){o&&(o=!1,i=!1,n._onDidBlur.fire())},0))},null,this.disposables)}return e.prototype.dispose=function(){this.disposables=s.dispose(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}();t.trackFocus=function(e){return new k(e)},t.append=function(e){for(var t=[],n=1;n0},t.prototype.startMonitoring=function(e,t,n){var o=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=n;for(var a=r.IframeUtils.getSameOriginWindowChain(),l=0;l"},c.link=function(t,n,i){ +return t===i&&(i=r.removeMarkdownEscapes(i)),n=r.removeMarkdownEscapes(n),!(t=r.removeMarkdownEscapes(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted?i:''+i+""},c.paragraph=function(e){return"

      "+e+"

      "},t.codeBlockRenderer&&(c.code=function(e,n){var r=t.codeBlockRenderer(n,e),s=i.defaultGenerator.nextId(),a=Promise.all([r,d]).then(function(e){var t=e[0],n=u.querySelector('div[data-code="'+s+'"]');n&&(n.innerHTML=t)}).catch(function(e){});return t.codeBlockRenderCallback&&a.then(t.codeBlockRenderCallback),'
      '+o.escape(e)+"
      "}),t.actionHandler&&t.actionHandler.disposeables.push(n.addStandardDisposableListener(u,"click",function(e){var n=e.target;if("A"===n.tagName||(n=n.parentElement)&&"A"===n.tagName){var i=n.dataset.href;i&&t.actionHandler.callback(i,e)}}));var h={sanitize:!0,renderer:c};return u.innerHTML=s.marked(e.value,h),l(),u};var c=function(){function e(e){this.source=e,this.index=0 +}return e.prototype.eos=function(){return this.index>=this.source.length},e.prototype.next=function(){var e=this.peek();return this.advance(),e},e.prototype.peek=function(){return this.source[this.index]},e.prototype.advance=function(){this.index++},e}()});var a=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};define(t[74],n([1,0,25,2,7,111]),function(e,t,n,i,o,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s;!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(s=t.EventType||(t.EventType={}));var l=function(){function e(){var e=this;this.toDispose=[],this.activeTouches={}, +this.handle=null,this.targets=[],this.toDispose.push(o.addDisposableListener(document,"touchstart",function(t){return e.onTouchStart(t)})),this.toDispose.push(o.addDisposableListener(document,"touchend",function(t){return e.onTouchEnd(t)})),this.toDispose.push(o.addDisposableListener(document,"touchmove",function(t){return e.onTouchMove(t)}))}return e.addTarget=function(t){e.isTouchDevice()&&(e.INSTANCE||(e.INSTANCE=new e),e.INSTANCE.targets.push(t))},e.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},e.prototype.dispose=function(){this.handle&&(this.handle.dispose(),i.dispose(this.toDispose),this.handle=null)},e.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,i=e.targetTouches.length;n=e.HOLD_DELAY&&Math.abs(d.initialPageX-n.tail(d.rollingPageX))<30&&Math.abs(d.initialPageY-n.tail(d.rollingPageY))<30){var h=a.newGestureEvent(s.Contextmenu,d.initialTarget) +;h.pageX=n.tail(d.rollingPageX),h.pageY=n.tail(d.rollingPageY),a.dispatchEvent(h)}else if(1===o){var p=n.tail(d.rollingPageX),f=n.tail(d.rollingPageY),g=n.tail(d.rollingTimestamps)-d.rollingTimestamps[0],m=p-d.rollingPageX[0],v=f-d.rollingPageY[0],_=a.targets.filter(function(e){return d.initialTarget instanceof Node&&e.contains(d.initialTarget)});a.inertia(_,i,Math.abs(m)/g,m>0?1:-1,p,Math.abs(v)/g,v>0?1:-1,f)}a.dispatchEvent(a.newGestureEvent(s.End,d.initialTarget)),delete a.activeTouches[u.identifier]},a=this,l=0,u=t.changedTouches.length;l0&&(g=!1,p=r*i*h),l>0&&(g=!1,f=u*l*h);var m=c.newGestureEvent(s.Change);m.translationX=p,m.translationY=f,t.forEach(function(e){return e.dispatchEvent(m)}),g||c.inertia(t,o,i,r,a+p,l,u,d+f)})},e.prototype.onTouchMove=function(e){for(var t=Date.now(),i=0,o=e.changedTouches.length;i3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(r.pageX),a.rollingPageY.push(r.pageY),a.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",r)}this.dispatched&&(e.preventDefault(), +e.stopPropagation(),this.dispatched=!1)},e.SCROLL_FRICTION=-.005,e.HOLD_DELAY=700,a([r.memoize],e,"isTouchDevice",null),e}();t.Gesture=l}),define(t[138],n([1,0,7,28,376]),function(e,t,n,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",this.didEverRender=!1,e.appendChild(this.domNode)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),e.prototype.set=function(t,n,o,r){void 0===n&&(n=[]),void 0===o&&(o=""),t||(t=""),r&&(t=e.escapeNewLines(t,n)),this.didEverRender&&this.text===t&&this.title===o&&i.equals(this.highlights,n)||(Array.isArray(n)||(n=[]),this.text=t,this.title=o,this.highlights=n,this.render())},e.prototype.render=function(){n.clearNode(this.domNode);for(var e,t=[],i=0,r=0;r"), +t.push(o.renderOcticons(this.text.substring(i,e.start))),t.push("
      "),i=e.end),t.push(''),t.push(o.renderOcticons(this.text.substring(e.start,e.end))),t.push(""),i=e.end);i"),t.push(o.renderOcticons(this.text.substring(i))),t.push("
      ")),this.domNode.innerHTML=t.join(""),this.domNode.title=this.title,this.didEverRender=!0},e.prototype.dispose=function(){this.text=null,this.highlights=null},e.escapeNewLines=function(e,t){var n=0,i=0;return e.replace(/\r\n|\r|\n/,function(e,o){i="\r\n"===e?-1:0,o+=n;for(var r=0,s=t;r=o&&(a.start+=i),a.end>=o&&(a.end+=i))}return n+=i,"⏎"})},e}();t.HighlightedLabel=r}),define(t[253],n([1,0,7]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.renderers=e,this.cache=new Map}return e.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var i=n.$(".monaco-list-row");t={domNode:i, +templateId:e,templateData:this.renderers.get(e).renderTemplate(i)}}return t},e.prototype.release=function(e){e&&this.releaseRow(e)},e.prototype.releaseRow=function(e){var t=e.domNode,i=e.templateId;n.removeClass(t,"scrolling"),function(e){try{e.parentElement.removeChild(e)}catch(e){}}(t);this.getTemplateCache(i).push(e)},e.prototype.getTemplateCache=function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t},e.prototype.garbageCollect=function(){var e=this;this.renderers&&(this.cache.forEach(function(t,n){for(var i=0,o=t;i0;n--){var r=e.charCodeAt(n-1);if(47===r||92===r)break}t=e.substr(n)}var s=o.indexOf(t);return-1!==s?i[s]:null};a.basenames=o,a.patterns=i,a.allBasenames=o;var l=e.filter(function(e){return!e.basenames});return l.push(a),l +}Object.defineProperty(t,"__esModule",{value:!0});var v="**",_="/",y="[/\\\\]",C="[^/\\\\]",b=/\//g;t.splitGlobAware=l;var S=/^\*\*\/\*\.[\w\.-]+$/,w=/^\*\*\/([\w\.-]+)\/?$/,E=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,L=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,x=/^\*\*((\/[\w\.-]+)+)\/?$/,N=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,I=new r.LRUCache(1e4),M=function(){return!1},D=function(){return null};t.match=function(e,t,n){return!(!e||!t)&&f(e)(t,void 0,n)},t.parse=f,t.isRelativePattern=g}),define(t[424],n([1,0,50,6,153]),function(e,t,n,i,o){"use strict";function r(e,t){void 0===t&&(t=!1);var i=function(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0, +filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(n.sep)>=0}}(e);l.push(i),i.userConfigured?d.push(i):u.push(i),t&&!i.userConfigured&&l.forEach(function(e){e.mime===i.mime||e.userConfigured||(i.extension&&e.extension===i.extension&&console.warn("Overwriting extension <<"+i.extension+">> to now point to mime <<"+i.mime+">>"),i.filename&&e.filename===i.filename&&console.warn("Overwriting filename <<"+i.filename+">> to now point to mime <<"+i.mime+">>"),i.filepattern&&e.filepattern===i.filepattern&&console.warn("Overwriting filepattern <<"+i.filepattern+">> to now point to mime <<"+i.mime+">>"),i.firstline&&e.firstline===i.firstline&&console.warn("Overwriting firstline <<"+i.firstline+">> to now point to mime <<"+i.mime+">>"))})}function s(e,o){if(!e)return[t.MIME_UNKNOWN];e=e.toLowerCase();var r=n.basename(e),s=a(e,r,d);if(s)return[s,t.MIME_TEXT];var c=a(e,r,u);if(c)return[c,t.MIME_TEXT];if(o){var h=function(e){i.startsWithUTF8BOM(e)&&(e=e.substr(1));if(e.length>0)for(var t=0;t0)return n.mime}}return null}(o);if(h)return[h,t.MIME_TEXT]}return[t.MIME_UNKNOWN]}function a(e,t,n){for(var r,s,a,l=n.length-1;l>=0;l--){var u=n[l];if(t===u.filenameLowercase){r=u;break}if(u.filepattern&&(!s||u.filepattern.length>s.filepattern.length)){var d=u.filepatternOnPath?e:t;o.match(u.filepatternLowercase,d)&&(s=u)}u.extension&&(!a||u.extension.length>a.extension.length)&&i.endsWith(t,u.extensionLowercase)&&(a=u)}return r?r.mime:s?s.mime:a?a.mime:null}Object.defineProperty(t,"__esModule",{value:!0}),t.MIME_TEXT="text/plain",t.MIME_UNKNOWN="application/unknown";var l=[],u=[],d=[];t.registerTextMime=r,t.guessMimeTypes=s}),define(t[43],n([1,0,2,9]),function(e,t,n,i){"use strict";function r(e,t){var n=t-e;return function(t){return e+n*function(e){return 1-function(e){return Math.pow(e,3)}(1-e)}(t)}}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible" +}(t.ScrollbarVisibility||(t.ScrollbarVisibility={}));var s=function(){function e(e,t,n,i,o,r){t|=0,n|=0,i|=0,o|=0,r|=0,(e|=0)<0&&(e=0),n+e>t&&(n=t-e),n<0&&(n=0),i<0&&(i=0),r+i>o&&(r=o-i),r<0&&(r=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=i,this.scrollHeight=o,this.scrollTop=r}return e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},e.prototype.withScrollDimensions=function(t){return new e(void 0!==t.width?t.width:this.width,void 0!==t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,void 0!==t.height?t.height:this.height,void 0!==t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,void 0!==t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,void 0!==t.scrollTop?t.scrollTop:this.scrollTop)}, +e.prototype.createScrollEvent=function(e){var t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:n,scrollLeftChanged:i,heightChanged:o,scrollHeightChanged:r,scrollTopChanged:s}},e}();t.ScrollState=s;var a=function(e){function t(t,n){var o=e.call(this)||this;return o._onScroll=o._register(new i.Emitter),o.onScroll=o._onScroll.event,o._smoothScrollDuration=t,o._scheduleAtNextAnimationFrame=n,o._state=new s(0,0,0,0,0,0),o._smoothScrolling=null,o}return o(t,e),t.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),e.prototype.dispose.call(this)},t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e}, +t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},t.prototype.getScrollDimensions=function(){return this._state},t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},t.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},t.prototype.getCurrentScrollPosition=function(){return this._state},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft, +scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;var n=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=n}else{var i=this._state.withScrollPosition(e);this._smoothScrolling=u.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())})},t.prototype._performSmoothScrolling=function(){var e=this,t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){ +e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())})},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},t}(n.Disposable);t.Scrollable=a;var l=function(){return function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}}();t.SmoothScrollingUpdate=l;var u=function(){function e(e,t,n,i){this.from=e,this.to=t,this.duration=i,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}return e.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},e.prototype._initAnimation=function(e,t,n){if(Math.abs(e-t)>2.5*n){var i=void 0,o=void 0;return e140)i._setDesiredScrollPositionNow(a.getScrollPosition());else{var l=i._sliderMousePosition(e)-o;i._setDesiredScrollPositionNow(a.getDesiredScrollPositionFromDelta(l))}},function(){i.slider.toggleClassName("active",!1),i._host.onDragEnd(),t()}),this._host.onDragStart()},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},t}(s.Widget);t.AbstractScrollbar=d}),define(t[428],n([1,0,158,42,43,157,114]),function(e,t,n,i,r,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(t,n,o){var l=e.call(this,{lazyRender:n.lazyRender,host:o, +scrollbarState:new s.ScrollbarState(n.horizontalHasArrows?n.arrowSize:0,n.horizontal===r.ScrollbarVisibility.Hidden?0:n.horizontalScrollbarSize,n.vertical===r.ScrollbarVisibility.Hidden?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var u=(n.arrowSize-a.ARROW_IMG_SIZE)/2,d=(n.horizontalScrollbarSize-a.ARROW_IMG_SIZE)/2;l._createArrow({className:"left-arrow",top:d,left:u,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return l._host.onMouseWheel(new i.StandardMouseWheelEvent(null,1,0))}}),l._createArrow({className:"right-arrow",top:d,left:void 0,bottom:void 0,right:u,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return l._host.onMouseWheel(new i.StandardMouseWheelEvent(null,-1,0))}})}return l._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,null,n.horizontalSliderSize),l}return o(t,e), +t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return e},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},t}(n.AbstractScrollbar);t.HorizontalScrollbar=l}),define(t[430],n([1,0,158,42,43,157,114]),function(e,t,n,i,r,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(t,n,o){var l=e.call(this,{ +lazyRender:n.lazyRender,host:o,scrollbarState:new s.ScrollbarState(n.verticalHasArrows?n.arrowSize:0,n.vertical===r.ScrollbarVisibility.Hidden?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var u=(n.arrowSize-a.ARROW_IMG_SIZE)/2,d=(n.verticalScrollbarSize-a.ARROW_IMG_SIZE)/2;l._createArrow({className:"up-arrow",top:u,left:d,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return l._host.onMouseWheel(new i.StandardMouseWheelEvent(null,0,1))}}),l._createArrow({className:"down-arrow",top:void 0,left:d,bottom:u,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return l._host.onMouseWheel(new i.StandardMouseWheelEvent(null,0,-1))}})}return l._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,null),l}return o(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e), +this.slider.setTop(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return t},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},t}(n.AbstractScrollbar);t.VerticalScrollbar=l}),define(t[437],n([1,0,13,18]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){n.Promise.is(e)?this._winjsPromise=e:this._winjsPromise=new n.Promise(function(t,n){var o=!0;e(function(e){ +o?i.setImmediate(function(){return t(e)}):t(e)},function(e){o?i.setImmediate(function(){return n(e)}):n(e)}),o=!1})}return e.all=function(t){return new e(n.Promise.join(t).then(null,function(e){for(var t in e)if(e.hasOwnProperty(t))return e[t]}))},e.race=function(t){return new e(n.Promise.any(t).then(function(e){return e.value},function(e){return e.value}))},e.resolve=function(t){return new e(n.Promise.wrap(t))},e.reject=function(t){return new e(n.Promise.wrapError(t))},e.prototype.then=function(t,n){var o=!0,r=new e(this._winjsPromise.then(t&&function(e){o?i.setImmediate(function(){return t(e)}):t(e)},n&&function(e){o?i.setImmediate(function(){return n(e)}):n(e)}));return o=!1,r},e.prototype.catch=function(e){return this.then(null,e)},e}();t.PolyfillPromise=o}),define(t[160],n([1,0,10,2,13,14,18]),function(e,t,n,i,r,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l="$initialize",u=!1;t.logOnceWebWorkerWarning=function(e){a.isWeb&&(u||(u=!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(e.message))};var d=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(e){this._workerId=e},e.prototype.sendMessage=function(e,t){var n=String(++this._lastSentReq),i={c:null,e:null},o=new r.TPromise(function(e,t){i.c=e,i.e=t},function(){});return this._pendingReplies[n]=i,this._send({vsWorker:this._workerId,req:n,method:e,args:t}),o},e.prototype.handleMessage=function(e){var t;try{t=JSON.parse(e)}catch(e){}t&&t.vsWorker&&(-1!==this._workerId&&t.vsWorker!==this._workerId||this._handleMessage(t))},e.prototype._handleMessage=function(e){var t=this;if(e.seq){var i=e;if(!this._pendingReplies[i.seq])return void console.warn("Got reply to unknown seq");var o=this._pendingReplies[i.seq] +;if(delete this._pendingReplies[i.seq],i.err){var r=i.err;return i.err.$isError&&((r=new Error).name=i.err.name,r.message=i.err.message,r.stack=i.err.stack),void o.e(r)}o.c(i.res)}else{var s=e,a=s.req;this._handler.handleMessage(s.method,s.args).then(function(e){t._send({vsWorker:t._workerId,seq:a,res:e,err:void 0})},function(e){e.detail instanceof Error&&(e.detail=n.transformErrorForSerialization(e.detail)),t._send({vsWorker:t._workerId,seq:a,res:void 0,err:n.transformErrorForSerialization(e)})})}},e.prototype._send=function(e){var t=JSON.stringify(e);this._handler.sendMessage(t)},e}(),c=function(e){function t(t,n){var i=e.call(this)||this,o=null,s=null;i._worker=i._register(t.create("vs/base/common/worker/simpleWorker",function(e){i._protocol.handleMessage(e)},function(e){s(e)})),i._protocol=new d({sendMessage:function(e){i._worker.postMessage(e)},handleMessage:function(e,t){return r.TPromise.as(null)}}),i._protocol.setWorkerId(i._worker.getId());var a=null +;void 0!==self.require&&"function"==typeof self.require.getConfig?a=self.require.getConfig():void 0!==self.requirejs&&(a=self.requirejs.s.contexts._.config),i._lazyProxy=new r.TPromise(function(e,t){o=e,s=t},function(){}),i._onModuleLoaded=i._protocol.sendMessage(l,[i._worker.getId(),n,a]),i._onModuleLoaded.then(function(e){for(var t={},n=0;n0},e.prototype.getChildren=function(e,t){var i=this.modelProvider.getModel();return n.TPromise.as(i===t?i.entries:[])},e.prototype.getParent=function(e,t){return n.TPromise.as(null)},e}();t.DataSource=o;var r=function(){function e(e){ +this.modelProvider=e}return e.prototype.getAriaLabel=function(e,t){var n=this.modelProvider.getModel();return n.accessibilityProvider&&n.accessibilityProvider.getAriaLabel(t)},e.prototype.getPosInSet=function(e,t){var n=this.modelProvider.getModel();return String(n.entries.indexOf(t)+1)},e.prototype.getSetSize=function(){var e=this.modelProvider.getModel();return String(e.entries.length)},e}();t.AccessibilityProvider=r;var s=function(){function e(e){this.modelProvider=e}return e.prototype.isVisible=function(e,t){var n=this.modelProvider.getModel();return!n.filter||n.filter.isVisible(t)},e}();t.Filter=s;var a=function(){function e(e,t){this.modelProvider=e,this.styles=t}return e.prototype.updateStyles=function(e){this.styles=e},e.prototype.getHeight=function(e,t){return this.modelProvider.getModel().renderer.getHeight(t)},e.prototype.getTemplateId=function(e,t){return this.modelProvider.getModel().renderer.getTemplateId(t)},e.prototype.renderTemplate=function(e,t,n){ +return this.modelProvider.getModel().renderer.renderTemplate(t,n,this.styles)},e.prototype.renderElement=function(e,t,n,i){this.modelProvider.getModel().renderer.renderElement(t,n,i,this.styles)},e.prototype.disposeTemplate=function(e,t,n){this.modelProvider.getModel().renderer.disposeTemplate(t,n)},e}();t.Renderer=a}),define(t[93],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.PREVIEW=0]="PREVIEW",e[e.OPEN=1]="OPEN",e[e.OPEN_IN_BACKGROUND=2]="OPEN_IN_BACKGROUND"}(t.Mode||(t.Mode={}))}),define(t[445],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n){this._posx=e,this._posy=t,this._target=n}return e.prototype.preventDefault=function(){},e.prototype.stopPropagation=function(){},Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),e}();t.ContextMenuEvent=n;var i=function(e){function t(t){ +var n=e.call(this,t.posx,t.posy,t.target)||this;return n.originalEvent=t,n}return o(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(n);t.MouseContextMenuEvent=i;var r=function(e){function t(t,n,i){var o=e.call(this,t,n,i.target)||this;return o.originalEvent=i,o}return o(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(n);t.KeyboardContextMenuEvent=r;!function(e){e[e.COPY=0]="COPY",e[e.MOVE=1]="MOVE"}(t.DragOverEffect||(t.DragOverEffect={}));!function(e){e[e.BUBBLE_DOWN=0]="BUBBLE_DOWN",e[e.BUBBLE_UP=1]="BUBBLE_UP"}(t.DragOverBubble||(t.DragOverBubble={}))}),define(t[81],n([1,0,18,10,7,39]),function(e,t,n,i,o,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s;!function(e){e[e.ON_MOUSE_DOWN=0]="ON_MOUSE_DOWN",e[e.ON_MOUSE_UP=1]="ON_MOUSE_UP" +}(s=t.ClickBehavior||(t.ClickBehavior={}));var a;!function(e){e[e.SINGLE_CLICK=0]="SINGLE_CLICK",e[e.DOUBLE_CLICK=1]="DOUBLE_CLICK"}(a=t.OpenMode||(t.OpenMode={}));var l=function(){function e(){this._arr=[]}return e.prototype.set=function(e,t){this._arr.push({keybinding:r.createKeybinding(e,n.OS),callback:t})},e.prototype.dispatch=function(e){for(var t=this._arr.length-1;t>=0;t--){var n=this._arr[t];if(e.equals(n.keybinding))return n.callback}return null},e}();t.KeybindingDispatcher=l;var u=function(){function e(e){void 0===e&&(e={clickBehavior:s.ON_MOUSE_DOWN,keyboardSupport:!0,openMode:a.SINGLE_CLICK});var t=this;this.options=e,this.downKeyBindingDispatcher=new l,this.upKeyBindingDispatcher=new l,("boolean"!=typeof e.keyboardSupport||e.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,function(e,n){return t.onUp(e,n)}),this.downKeyBindingDispatcher.set(18,function(e,n){return t.onDown(e,n)}),this.downKeyBindingDispatcher.set(15,function(e,n){return t.onLeft(e,n)}), +this.downKeyBindingDispatcher.set(17,function(e,n){return t.onRight(e,n)}),n.isMacintosh&&(this.downKeyBindingDispatcher.set(2064,function(e,n){return t.onLeft(e,n)}),this.downKeyBindingDispatcher.set(300,function(e,n){return t.onDown(e,n)}),this.downKeyBindingDispatcher.set(302,function(e,n){return t.onUp(e,n)})),this.downKeyBindingDispatcher.set(11,function(e,n){return t.onPageUp(e,n)}),this.downKeyBindingDispatcher.set(12,function(e,n){return t.onPageDown(e,n)}),this.downKeyBindingDispatcher.set(14,function(e,n){return t.onHome(e,n)}),this.downKeyBindingDispatcher.set(13,function(e,n){return t.onEnd(e,n)}),this.downKeyBindingDispatcher.set(10,function(e,n){return t.onSpace(e,n)}),this.downKeyBindingDispatcher.set(9,function(e,n){return t.onEscape(e,n)}),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2051,this.onEnter.bind(this)))}return e.prototype.onMouseDown=function(e,t,n,i){if(void 0===i&&(i="mouse"), +this.options.clickBehavior===s.ON_MOUSE_DOWN&&(n.leftButton||n.middleButton)){if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(o.findParentWithClass(n.target,"scrollbar","monaco-tree"))return!1;if(o.findParentWithClass(n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,i)}return!1},e.prototype.onClick=function(e,t,i){return n.isMacintosh&&i.ctrlKey?(i.preventDefault(),i.stopPropagation(),!1):(!i.target||!i.target.tagName||"input"!==i.target.tagName.toLowerCase())&&((this.options.clickBehavior!==s.ON_MOUSE_DOWN||!i.leftButton&&!i.middleButton)&&this.onLeftClick(e,t,i))},e.prototype.onLeftClick=function(e,t,n,o){void 0===o&&(o="mouse");var r=n,s={origin:o,originalEvent:n,didClickOnTwistie:this.isClickOnTwistie(r)};if(e.getInput()===t)e.clearFocus(s),e.clearSelection(s);else{n&&r.browserEvent&&"mousedown"===r.browserEvent.type&&1===r.browserEvent.detail||n.preventDefault(),n.stopPropagation(),e.domFocus(),e.setSelection([t],s),e.setFocus(t,s), +this.shouldToggleExpansion(t,r,o)&&(e.isExpanded(t)?e.collapse(t).done(null,i.onUnexpectedError):e.expand(t).done(null,i.onUnexpectedError))}return!0},e.prototype.shouldToggleExpansion=function(e,t,n){var i="mouse"===n&&2===t.detail;return this.openOnSingleClick||i||this.isClickOnTwistie(t)},e.prototype.setOpenMode=function(e){this.options.openMode=e},Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return this.options.openMode===a.SINGLE_CLICK},enumerable:!0,configurable:!0}),e.prototype.isClickOnTwistie=function(e){var t=e.target;if(!o.hasClass(t,"content"))return!1;var n=window.getComputedStyle(t,":before");if("none"===n.backgroundImage||"none"===n.display)return!1;var i=parseInt(n.width)+parseInt(n.paddingRight);return e.browserEvent.offsetX<=i},e.prototype.onContextMenu=function(e,t,n){return(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&(n&&(n.preventDefault(),n.stopPropagation()),!1)},e.prototype.onTap=function(e,t,n){var i=n.initialTarget +;return(!i||!i.tagName||"input"!==i.tagName.toLowerCase())&&this.onLeftClick(e,t,n,"touch")},e.prototype.onKeyDown=function(e,t){return this.onKey(this.downKeyBindingDispatcher,e,t)},e.prototype.onKeyUp=function(e,t){return this.onKey(this.upKeyBindingDispatcher,e,t)},e.prototype.onKey=function(e,t,n){var i=e.dispatch(n.toKeybinding());return!(!i||!i(t,n))&&(n.preventDefault(),n.stopPropagation(),!0)},e.prototype.onUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPrevious(1,n),e.reveal(e.getFocus()).done(null,i.onUnexpectedError)),!0},e.prototype.onPageUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPreviousPage(n),e.reveal(e.getFocus()).done(null,i.onUnexpectedError)),!0},e.prototype.onDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNext(1,n),e.reveal(e.getFocus()).done(null,i.onUnexpectedError)),!0}, +e.prototype.onPageDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNextPage(n),e.reveal(e.getFocus()).done(null,i.onUnexpectedError)),!0},e.prototype.onHome=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusFirst(n),e.reveal(e.getFocus()).done(null,i.onUnexpectedError)),!0},e.prototype.onEnd=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusLast(n),e.reveal(e.getFocus()).done(null,i.onUnexpectedError)),!0},e.prototype.onLeft=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var o=e.getFocus();e.collapse(o).then(function(t){if(o&&!t)return e.focusParent(n),e.reveal(e.getFocus())}).done(null,i.onUnexpectedError)}return!0},e.prototype.onRight=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var o=e.getFocus() +;e.expand(o).then(function(t){if(o&&!t)return e.focusFirstChild(n),e.reveal(e.getFocus())}).done(null,i.onUnexpectedError)}return!0},e.prototype.onEnter=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())return!1;var i=e.getFocus();return i&&e.setSelection([i],n),!0},e.prototype.onSpace=function(e,t){if(e.getHighlight())return!1;var n=e.getFocus();return n&&e.toggleExpansion(n),!0},e.prototype.onEscape=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?(e.clearHighlight(n),!0):e.getSelection().length?(e.clearSelection(n),!0):!!e.getFocus()&&(e.clearFocus(n),!0)},e}();t.DefaultController=u;var d=function(){function e(){}return e.prototype.getDragURI=function(e,t){return null},e.prototype.onDragStart=function(e,t,n){},e.prototype.onDragOver=function(e,t,n,i){return null},e.prototype.drop=function(e,t,n,i){},e}();t.DefaultDragAndDrop=d;var c=function(){function e(){}return e.prototype.isVisible=function(e,t){return!0},e}();t.DefaultFilter=c;var h=function(){ +function e(){}return e.prototype.getAriaLabel=function(e,t){return null},e}();t.DefaultAccessibilityProvider=h;var p=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t}return e.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"",n=[];e.listFocusBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+e.listFocusBackground+"; }"),e.listFocusForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listActiveSelectionBackground+"; }"),e.listActiveSelectionForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listActiveSelectionForeground+"; }"), +e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveSelectionBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listInactiveSelectionBackground+"; }"),e.listInactiveSelectionForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listInactiveSelectionForeground+"; }"), +e.listHoverBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"), +e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-tree-drag-image\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; background: #000; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row \t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid transparent; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) \t\t\t\t\t\t{ border: 1px dotted "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) \t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t") +;var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},e}();t.DefaultTreestyler=p}),define(t[454],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e}();t.ElementsDragAndDropData=n;var i=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e}();t.ExternalElementsDragAndDropData=i;var o=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){e.dataTransfer.types&&(this.types=[],Array.prototype.push.apply(this.types,e.dataTransfer.types)),e.dataTransfer.files&&(this.files=[],Array.prototype.push.apply(this.files,e.dataTransfer.files),this.files=this.files.filter(function(e){return e.size||e.type}))},e}();t.DesktopDragAndDropData=o}),define(t[463],n([1,0,85,10,2,13,9]),function(e,t,n,i,r,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e){ +this._onDispose=new a.Emitter,this.onDispose=this._onDispose.event,this._item=e}return Object.defineProperty(e.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=null)},e}();t.LockData=l;var u=function(){function e(){this.locks=Object.create({})}return e.prototype.isLocked=function(e){return!!this.locks[e.id]},e.prototype.run=function(e,t){var n=this,i=this.getLock(e);if(i){var o;return new s.TPromise(function(r,s){o=a.once(i.onDispose)(function(){return n.run(e,t).then(r,s)})},function(){o.dispose()})}var r;return new s.TPromise(function(i,o){if(e.isDisposed())return o(new Error("Item is disposed."));var s=n.locks[e.id]=new l(e);return r=t().then(function(t){return delete n.locks[e.id],s.dispose(),t}).then(i,o)},function(){return r.cancel()})},e.prototype.getLock=function(e){var t;for(t in this.locks){var n=this.locks[t];if(e.intersects(n.item))return n} +return null},e}();t.Lock=u;var d=function(){function e(){this._isDisposed=!1,this._onDidRevealItem=new a.EventMultiplexer,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new a.EventMultiplexer,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new a.EventMultiplexer,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new a.EventMultiplexer,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new a.EventMultiplexer,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new a.EventMultiplexer,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new a.EventMultiplexer,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new a.EventMultiplexer,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new a.EventMultiplexer,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new a.EventMultiplexer, +this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new a.EventMultiplexer,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return e.prototype.register=function(e){n.ok(!this.isRegistered(e.id),"item already registered: "+e.id);var t=r.combinedDisposable([this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose)]);this.items[e.id]={item:e,disposable:t}},e.prototype.deregister=function(e){n.ok(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]}, +e.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},e.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},e.prototype.dispose=function(){this.items=null,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},e.prototype.isDisposed=function(){return this._isDisposed},e}();t.ItemRegistry=d;var c=function(){function e(e,t,n,i,o){this._onDidCreate=new a.Emitter,this._onDidReveal=new a.Emitter,this.onDidReveal=this._onDidReveal.event,this._onExpand=new a.Emitter,this.onExpand=this._onExpand.event,this._onDidExpand=new a.Emitter,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new a.Emitter,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new a.Emitter, +this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new a.Emitter,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new a.Emitter,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new a.Emitter,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new a.Emitter,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new a.Emitter,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new a.Emitter,this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=n,this.lock=i,this.element=o,this.id=e,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,o), +this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return e.prototype.getElement=function(){return this.element},e.prototype.hasChildren=function(){return this.doesHaveChildren},e.prototype.getDepth=function(){return this.depth},e.prototype.isVisible=function(){return this.visible},e.prototype.setVisible=function(e){this.visible=e},e.prototype.isExpanded=function(){return this.expanded},e.prototype._setExpanded=function(e){this.expanded=e},e.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)},e.prototype.expand=function(){var e=this;if(this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this))return s.TPromise.as(!1);return this.lock.run(this,function(){var t={item:e};return e._onExpand.fire(t),(e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):s.TPromise.as(null)).then(function(){return e._setExpanded(!0),e._onDidExpand.fire(t),!0})}).then(function(t){ +return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then(function(){return!0}):t)})},e.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=s.TPromise.as(null);return this.forEachChild(function(e){n=n.then(function(){return e.collapse(!0)})}),n.then(function(){return t.collapse(!1)})}return!this.isExpanded()||this.lock.isLocked(this)?s.TPromise.as(!1):this.lock.run(this,function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),s.TPromise.as(!0)})},e.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},e.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},e.prototype.hasTrait=function(e){return this.traits[e]||!1},e.prototype.getAllTraits=function(){var e,t=[] +;for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},e.prototype.getHeight=function(){return this.height},e.prototype.refreshChildren=function(t,n,o){var r=this;if(void 0===n&&(n=!1),void 0===o&&(o=!1),!o&&!this.isExpanded())return this.needsChildrenRefresh=!0,s.TPromise.as(this);this.needsChildrenRefresh=!1;var a=function(){var o={item:r,isNested:n};r._onRefreshChildren.fire(o);return(r.doesHaveChildren?r.context.dataSource.getChildren(r.context.tree,r.element):s.TPromise.as([])).then(function(n){if(r.isDisposed()||r.registry.isDisposed())return s.TPromise.as(null);if(!Array.isArray(n))return s.TPromise.wrapError(new Error("Please return an array of children."));n=n?n.slice(0):[],n=r.sort(n);for(var i={};null!==r.firstChild;)i[r.firstChild.id]=r.firstChild,r.removeChild(r.firstChild);for(var o=0,a=n.length;o=0;r--)this.onInsertItem(u[r]);for(r=this.heightMap.length-1;r>=o;r--)this.onRefreshItem(this.heightMap[r]);return a},e.prototype.onInsertItem=function(e){},e.prototype.onRemoveItems=function(e){for(var t,n,i,o=null,r=0;t=e.next();){if(i=this.indexes[t],!(n=this.heightMap[i]))return void console.error("view item doesnt exist");r-=n.height,delete this.indexes[t],this.onRemoveItem(n),null===o&&(o=i)}if(0!==r)for(this.heightMap.splice(o,i-o+1),i=o;i=n.top+n.height))return t;if(i===t)break;i=t}return this.heightMap.length},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)}, +e.prototype.itemAtIndex=function(e){return this.heightMap[e]},e.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},e.prototype.createViewItem=function(e){throw new Error("not implemented")},e.prototype.dispose=function(){this.heightMap=null,this.indexes=null},e}();t.HeightMap=i}),define(t[470],n([1,0,18,160]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function t(t,i,o,r,s){this.id=i,this.worker=function(t,i){if(n.globals.MonacoEnvironment){if("function"==typeof n.globals.MonacoEnvironment.getWorker)return n.globals.MonacoEnvironment.getWorker(t,i);if("function"==typeof n.globals.MonacoEnvironment.getWorkerUrl)return new Worker(n.globals.MonacoEnvironment.getWorkerUrl(t,i))}if("function"==typeof e)return new Worker(e.toUrl("./"+t)+"#"+i);throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",o),this.postMessage(t),this.worker.onmessage=function(e){ +r(e.data)},"function"==typeof this.worker.addEventListener&&this.worker.addEventListener("error",s)}return t.prototype.getId=function(){return this.id},t.prototype.postMessage=function(e){this.worker&&this.worker.postMessage(e)},t.prototype.dispose=function(){this.worker.terminate(),this.worker=null},t}(),r=function(){function e(e){this._label=e,this._webWorkerFailedBeforeError=!1}return e.prototype.create=function(t,n,r){var s=this,a=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new o(t,a,this._label||"anonymous"+a,n,function(e){i.logOnceWebWorkerWarning(e),s._webWorkerFailedBeforeError=e,r(e)})},e.LAST_WORKER_ID=0,e}();t.DefaultWorkerFactory=r}),define(t[472],n([8]),{}),define(t[56],n([1,0,33,2,6,85,7,472]),function(e,t,n,i,r,s,a){"use strict";function l(e){return e[f]||(e[f]={}),e[f]}function u(e){return!!e[f]}function d(e,t){return new g(e,t)}function c(){return new g(null,!0)}function h(e,t,n){l(e)[t]=n}function p(e,t,i){if(u(e)){var o=l(e)[t] +;if(!n.isUndefined(o))return o}return i}Object.defineProperty(t,"__esModule",{value:!0});var f="_msDataKey",g=function(){function e(e,t){this.offdom=t,this.container=e,this.currentElement=e,this.createdElements=[],this.toDispose={},this.captureToDispose={}}return e.prototype.clone=function(){var t=new e(this.container,this.offdom);return t.currentElement=this.currentElement,t.createdElements=this.createdElements,t.captureToDispose=this.captureToDispose,t.toDispose=this.toDispose,t},e.prototype.build=function(t,i){s.ok(this.offdom,"This builder was not created off-dom, so build() can not be called."),t?t instanceof e&&(t=t.getHTMLElement()):t=this.container,s.ok(t,"Builder can only be build() with a container provided."),s.ok(a.isHTMLElement(t),"The container must either be a HTMLElement or a Builder.");var o,r,l=t,u=l.childNodes;if(n.isNumber(i)&&i=0){var n=e.split("-");e=n[0];for(var i=1;i=0){var t=e.split("-");e=t[0];for(var n=1;n=this.el.clientHeight-4&&(r=this.orthogonalEndSash):e.offsetX<=4?r=this.orthogonalStartSash:e.offsetX>=this.el.clientWidth-4&&(r=this.orthogonalEndSash),r&&(i=!0,e.__orthogonalSashEvent=!0,r.onMouseDown(e))}if(this.state){for(var s=0,l=u.getElementsByTagName("iframe");s0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},e.INSTANCE=new e,e}();t.MouseWheelClassifier=m;var v=function(e){function t(t,n,i){var o=e.call(this)||this;o._onScroll=o._register(new p.Emitter),o.onScroll=o._onScroll.event,t.style.overflow="hidden",o._options=f(n),o._scrollable=i,o._register(o._scrollable.onScroll(function(e){o._onDidScroll(e),o._onScroll.fire(e)}));var r={onMouseWheel:function(e){return o._onMouseWheel(e)},onDragStart:function(){return o._onDragStart()},onDragEnd:function(){return o._onDragEnd()}};return o._verticalScrollbar=o._register(new a.VerticalScrollbar(o._scrollable,o._options,r)), +o._horizontalScrollbar=o._register(new s.HorizontalScrollbar(o._scrollable,o._options,r)),o._domNode=document.createElement("div"),o._domNode.className="monaco-scrollable-element "+o._options.className,o._domNode.setAttribute("role","presentation"),o._domNode.style.position="relative",o._domNode.style.overflow="hidden",o._domNode.appendChild(t),o._domNode.appendChild(o._horizontalScrollbar.domNode.domNode),o._domNode.appendChild(o._verticalScrollbar.domNode.domNode),o._options.useShadows&&(o._leftShadowDomNode=h.createFastDomNode(document.createElement("div")),o._leftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._leftShadowDomNode.domNode),o._topShadowDomNode=h.createFastDomNode(document.createElement("div")),o._topShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topShadowDomNode.domNode),o._topLeftShadowDomNode=h.createFastDomNode(document.createElement("div")),o._topLeftShadowDomNode.setClassName("shadow top-left-corner"), +o._domNode.appendChild(o._topLeftShadowDomNode.domNode)),o._listenOnDomNode=o._options.listenOnDomNode||o._domNode,o._mouseWheelToDispose=[],o._setListeningToMouseWheel(o._options.handleMouseWheel),o.onmouseover(o._listenOnDomNode,function(e){return o._onMouseOver(e)}),o.onnonbubblingmouseout(o._listenOnDomNode,function(e){return o._onMouseOut(e)}),o._hideTimeout=o._register(new c.TimeoutTimer),o._isDragging=!1,o._mouseIsOver=!1,o._shouldRender=!0,o._revealOnScroll=!0,o}return o(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=l.dispose(this._mouseWheelToDispose),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()}, +t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},t.prototype.updateClassName=function(e){this._options.className=e,i.isMacintosh&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=f(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},t.prototype._setListeningToMouseWheel=function(e){var t=this;if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=l.dispose(this._mouseWheelToDispose),e)){var i=function(e){var n=new r.StandardMouseWheelEvent(e);t._onMouseWheel(n)};this._mouseWheelToDispose.push(n.addDisposableListener(this._listenOnDomNode,"mousewheel",i)),this._mouseWheelToDispose.push(n.addDisposableListener(this._listenOnDomNode,"DOMMouseScroll",i))}}, +t.prototype._onMouseWheel=function(e){var t,n=m.INSTANCE;if(n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var o=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(o=(t=[r,o])[0],r=t[1]);var s=!i.isMacintosh&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!s||r||(r=o,o=0);var a=this._scrollable.getFutureScrollPosition(),l={};if(o){var u=a.scrollTop-50*o;this._verticalScrollbar.writeScrollPosition(l,u)}if(r){var d=a.scrollLeft-50*r;this._horizontalScrollbar.writeScrollPosition(l,d)}if(l=this._scrollable.validateScrollPosition(l),a.scrollLeft!==l.scrollLeft||a.scrollTop!==l.scrollTop){this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(l):this._scrollable.setScrollPositionNow(l),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},t.prototype._onDidScroll=function(e){ +this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},t.prototype._onDragEnd=function(){ +this._isDragging=!1,this._hide()},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(function(){return e._hide()},500)},t}(d.Widget);t.AbstractScrollableElement=v;var _=function(e){function t(t,i){var o=this;(i=i||{}).mouseWheelSmoothScroll=!1;var r=new u.Scrollable(0,function(e){return n.scheduleAtNextAnimationFrame(e)});return(o=e.call(this,t,i,r)||this)._register(r),o}return o(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){ +return this._scrollable.getCurrentScrollPosition()},t}(v);t.ScrollableElement=_;var y=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return o(t,e),t}(v);t.SmoothScrollableElement=y;var C=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._element=t,i.onScroll(function(e){e.scrollTopChanged&&(i._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(i._element.scrollLeft=e.scrollLeft)}),i.scanDomNode(),i}return o(t,e),t.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})},t}(_);t.DomScrollableElement=C}),define(t[240],n([1,0,28,2,74,7,9,87,55,43,237,253,18,30,111,42]),function(e,t,n,i,o,r,s,l,u,d,c,h,p,f,g,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v={useShadows:!0,verticalScrollMode:d.ScrollbarVisibility.Auto +},_=function(){function e(e,t,i,r){void 0===r&&(r=v),this.virtualDelegate=t,this.renderers=new Map,this.splicing=!1,this.items=[],this.itemId=0,this.rangeMap=new c.RangeMap;for(var a=0,p=i;a=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){var e=this;return s.filterEvent(s.mapEvent(l.domEvent(this.domNode,"dblclick"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){var e=this;return s.filterEvent(s.mapEvent(l.domEvent(this.domNode,"mousedown"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return s.filterEvent(s.mapEvent(l.domEvent(this.domNode,"contextmenu"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){var e=this +;return s.filterEvent(s.mapEvent(l.domEvent(this.domNode,"touchstart"),function(t){return e.toTouchEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){var e=this;return s.filterEvent(s.mapEvent(l.domEvent(this.rowsContainer,o.EventType.Tap),function(t){return e.toGestureEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),e.prototype.toMouseEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.toTouchEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.toGestureEvent=function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.onScroll=function(e){try{this.render(e.scrollTop,e.height)}catch(t){ +throw console.log("Got bad scroll event:",e),t}},e.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},e.prototype.onDragOver=function(e){this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=e.posy},e.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=r.getTopLeftOffset(this._domNode).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(void 0!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.renderHeight-35;n<35?i=Math.max(-14,.2*(n-35)):n>o&&(i=Math.min(14,.2*(n-o))),e.scrollTop+=i}},10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout(function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null},1e3))},e.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()}, +e.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},e.prototype.getItemIndexFromEventTarget=function(e){for(;e instanceof HTMLElement&&e!==this.rowsContainer;){var t=e,n=t.getAttribute("data-index");if(n){var i=Number(n);if(!isNaN(i))return i}e=t.parentElement}return-1},e.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}},e.prototype.getNextToLastElement=function(e){var t=e[e.length-1];if(!t)return null;var n=this.items[t.end];return n&&n.row?n.row.domNode:null},e.prototype.dispose=function(){if(this.items){for(var e=0,t=this.items;e=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(l))-1,s=this.indexAt(a);r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=this.indexAt(this.lastRenderTop),s=Math.min(this.indexAt(a),this.indexAfter(u));r1e3,d=void 0,c=void 0;if(!u){c=(d=new l.LcsDiff({getLength:function(){return r.length},getElementAtIndex:function(e){return r[e]}},{getLength:function(){return s.length},getElementAtIndex:function(e){return s[e].id}},null).ComputeDiff(!1)).some(function(e){if(e.modifiedLength>0)for(var n=e.modifiedStart,i=e.modifiedStart+e.modifiedLength;n0&&this.onRemoveItems(new f.ArrayIterator(r,g.originalStart,g.originalStart+g.originalLength)),g.modifiedLength>0){var m=s[g.modifiedStart-1]||n;m=m.getDepth()>0?m:null,this.onInsertItems(new f.ArrayIterator(s,g.modifiedStart,g.modifiedStart+g.modifiedLength),m?m.id:null)}}else(u||d.length)&&(this.onRemoveItems(new f.ArrayIterator(r)),this.onInsertItems(new f.ArrayIterator(s),n.getDepth()>0?n.id:null));(u||d.length)&&this.onRowsChanged()}},t.prototype.onItemRefresh=function(e){ +this.onItemsRefresh([e])},t.prototype.onItemsRefresh=function(e){var t=this;this.onRefreshItemSet(e.filter(function(e){return t.items.hasOwnProperty(e.id)})),this.onRowsChanged()},t.prototype.onItemExpanding=function(e){var t=this.items[e.item.id];t&&(t.expanded=!0)},t.prototype.onItemExpanded=function(e){var t=e.item,n=this.items[t.id];if(n){n.expanded=!0;var i=this.onInsertItems(t.getNavigator(),t.id),o=this.scrollTop;n.top+n.height<=this.scrollTop&&(o+=i),this.onRowsChanged(o)}},t.prototype.onItemCollapsing=function(e){var t=e.item,n=this.items[t.id];n&&(n.expanded=!1,this.onRemoveItems(new f.MappedIterator(t.getNavigator(),function(e){return e&&e.id})),this.onRowsChanged())},t.prototype.onItemReveal=function(e){var t=e.item,n=e.relativeTop,i=this.items[t.id];if(i)if(null!==n){n=(n=n<0?0:n)>1?1:n;var o=i.height-this.viewHeight;this.scrollTop=o*n+i.top}else{var r=i.top+i.height,s=this.scrollTop+this.viewHeight;i.top=s&&(this.scrollTop=r-this.viewHeight)}}, +t.prototype.onItemAddTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.addClass(n),"highlighted"===n&&(a.addClass(this.domNode,n),i&&(this.highlightedItemWasDraggable=!!i.draggable,i.draggable&&(i.draggable=!1)))},t.prototype.onItemRemoveTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.removeClass(n),"highlighted"===n&&(a.removeClass(this.domNode,n),this.highlightedItemWasDraggable&&(i.draggable=!0),this.highlightedItemWasDraggable=!1)},t.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();a.toggleClass(this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",d.safeBtoa(this.context.dataSource.getId(this.context.tree,e))):this.domNode.removeAttribute("aria-activedescendant")},t.prototype.onInsertItem=function(e){var t=this;e.onDragStart=function(n){t.onDragStart(e,n)},e.needsRender=!0,this.refreshViewItem(e),this.items[e.id]=e},t.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1),e.needsRender=e.needsRender||t, +this.refreshViewItem(e)},t.prototype.onRemoveItem=function(e){this.removeItemFromDOM(e),e.dispose(),delete this.items[e.id]},t.prototype.refreshViewItem=function(e){e.render(),this.shouldBeRendered(e)?this.insertItemInDOM(e):this.removeItemFromDOM(e)},t.prototype.onClick=function(e){if(!this.lastPointerType||"mouse"===this.lastPointerType){var t=new c.StandardMouseEvent(e),n=this.getItemAround(t.target);n&&(i.isIE&&Date.now()-this.lastClickTimeStamp<300&&(t.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,n.model.getElement(),t))}},t.prototype.onMouseDown=function(e){if(this.didJustPressContextMenuKey=!1,this.context.controller.onMouseDown&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new c.StandardMouseEvent(e);if(!(t.ctrlKey&&n.isNative&&n.isMacintosh)){var i=this.getItemAround(t.target);i&&this.context.controller.onMouseDown(this.context.tree,i.model.getElement(),t)}}},t.prototype.onMouseUp=function(e){ +if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new c.StandardMouseEvent(e);if(!(t.ctrlKey&&n.isNative&&n.isMacintosh)){var i=this.getItemAround(t.target);i&&this.context.controller.onMouseUp(this.context.tree,i.model.getElement(),t)}}},t.prototype.onTap=function(e){var t=this.getItemAround(e.initialTarget);t&&this.context.controller.onTap(this.context.tree,t.model.getElement(),e)},t.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},t.prototype.onContextMenu=function(e){var t,n;if(e instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var i,o=new h.StandardKeyboardEvent(e);if(n=this.model.getFocus()){var r=this.context.dataSource.getId(this.context.tree,n),s=this.items[r];i=a.getDomNodePagePosition(s.element)}else n=this.model.getInput(),i=a.getDomNodePagePosition(this.inputItem.element);t=new _.KeyboardContextMenuEvent(i.left+i.width,i.top,o)}else{ +var l=new c.StandardMouseEvent(e),u=this.getItemAround(l.target);if(!u)return;n=u.model.getElement(),t=new _.MouseContextMenuEvent(l)}this.context.controller.onContextMenu(this.context.tree,n,t)},t.prototype.onKeyDown=function(e){var t=new h.StandardKeyboardEvent(e);this.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode,this.didJustPressContextMenuKey&&(t.preventDefault(),t.stopPropagation()),t.target&&t.target.tagName&&"input"===t.target.tagName.toLowerCase()||this.context.controller.onKeyDown(this.context.tree,t)},t.prototype.onKeyUp=function(e){this.didJustPressContextMenuKey&&this.onContextMenu(e),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new h.StandardKeyboardEvent(e))},t.prototype.onDragStart=function(e,n){if(!this.model.getHighlight()){var i,o=e.model.getElement(),r=this.model.getSelection();if(i=r.indexOf(o)>-1?r:[o],n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(C.DataTransfers.RESOURCES,JSON.stringify([e.uri])), +n.dataTransfer.setDragImage){var s=void 0;s=this.context.dnd.getDragLabel?this.context.dnd.getDragLabel(this.context.tree,i):String(i.length);var a=document.createElement("div");a.className="monaco-tree-drag-image",a.textContent=s,document.body.appendChild(a),n.dataTransfer.setDragImage(a,-10,-10),setTimeout(function(){return document.body.removeChild(a)},0)}this.currentDragAndDropData=new p.ElementsDragAndDropData(i),t.currentExternalDragAndDropData=new p.ExternalElementsDragAndDropData(i),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new c.DragMouseEvent(n))}},t.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=a.getTopLeftOffset(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(void 0!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.viewHeight-35;n<35?i=Math.max(-14,.2*(n-35)):n>o&&(i=Math.min(14,.2*(n-o))),e.scrollTop+=i}},10),this.cancelDragAndDropScrollTimeout(), +this.dragAndDropScrollTimeout=window.setTimeout(function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null},1e3))},t.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},t.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},t.prototype.onDragOver=function(e){var n=this,i=new c.DragMouseEvent(e),o=this.getItemAround(i.target);if(!o||0===i.posx&&0===i.posy&&i.browserEvent.type===a.EventType.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[],this.currentDropPromise&&(this.currentDropPromise.cancel(),this.currentDropPromise=null)),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null, +this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=i.posy,!this.currentDragAndDropData)if(t.currentExternalDragAndDropData)this.currentDragAndDropData=t.currentExternalDragAndDropData;else{if(!i.dataTransfer.types)return!1;this.currentDragAndDropData=new p.DesktopDragAndDropData}this.currentDragAndDropData.update(i);var s,l,u=o.model;do{if(s=u?u.getElement():this.model.getInput(),!(l=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,s,i))||l.bubble!==_.DragOverBubble.BUBBLE_UP)break;u=u&&u.parent}while(u);if(!u)return this.currentDropElement=null,!1;var d=l&&l.accept;d?(this.currentDropElement=u.getElement(),i.preventDefault(),i.dataTransfer.dropEffect=l.effect===_.DragOverEffect.COPY?"copy":"move"):this.currentDropElement=null;var h=u.id===this.inputItem.id?this.inputItem:this.items[u.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==h||!function(e,t){ +return!e&&!t||!(!e||!t)&&e.accept===t.accept&&e.bubble===t.bubble&&e.effect===t.effect}(this.currentDropElementReaction,l))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[],this.currentDropPromise&&(this.currentDropPromise.cancel(),this.currentDropPromise=null)),this.currentDropTarget=h,this.currentDropElementReaction=l,d)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),l.bubble===_.DragOverBubble.BUBBLE_DOWN)for(var f,g=u.getNavigator();f=g.next();)(o=this.items[f.id])&&(o.dropTarget=!0,this.currentDropTargets.push(o));l.autoExpand&&(this.currentDropPromise=r.TPromise.timeout(500).then(function(){return n.context.tree.expand(n.currentDropElement)}).then(function(){return n.shouldInvalidateDropReaction=!0}))}return!0},t.prototype.onDrop=function(e){if(this.currentDropElement){var t=new c.DragMouseEvent(e);t.preventDefault(), +this.currentDragAndDropData.update(t),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,t),this.onDragEnd(e)}this.cancelDragAndDropScrollInterval()},t.prototype.onDragEnd=function(e){this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[]),this.currentDropPromise&&(this.currentDropPromise.cancel(),this.currentDropPromise=null),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,t.currentExternalDragAndDropData=null,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},t.prototype.onFocus=function(){this.context.options.alwaysFocused||a.addClass(this.domNode,"focused"),this._onDOMFocus.fire()},t.prototype.onBlur=function(){this.context.options.alwaysFocused||a.removeClass(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},t.prototype.onMsPointerDown=function(e){if(this.msGesture){var t=e.pointerType +;t!==(e.MSPOINTER_TYPE_MOUSE||"mouse")?t===(e.MSPOINTER_TYPE_TOUCH||"touch")&&(this.lastPointerType="touch",e.stopPropagation(),e.preventDefault(),this.msGesture.addPointer(e.pointerId)):this.lastPointerType="mouse"}},t.prototype.onThrottledMsGestureChange=function(e){this.scrollTop-=e.translationY},t.prototype.onMsGestureTap=function(e){e.initialTarget=document.elementFromPoint(e.clientX,e.clientY),this.onTap(e)},t.prototype.insertItemInDOM=function(e){var t=null,n=this.itemAfter(e);n&&n.element&&(t=n.element),e.insertInDOM(this.rowsContainer,t)},t.prototype.removeItemFromDOM=function(e){e&&e.removeFromDOM()},t.prototype.shouldBeRendered=function(e){return e.topthis.lastRenderTop},t.prototype.getItemAround=function(e){var n=this.inputItem;do{if(e[t.BINDING]&&(n=e[t.BINDING]),e===this.wrapper||e===this.domNode)return n;if(e===document.body)return null}while(e=e.parentElement)},t.prototype.releaseModel=function(){ +this.model&&(this.modelListeners=s.dispose(this.modelListeners),this.model=null)},t.prototype.dispose=function(){var t=this;this.scrollableElement.dispose(),this.releaseModel(),this.modelListeners=null,this.viewListeners=s.dispose(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.domNode=null,this.items&&(Object.keys(this.items).forEach(function(e){return t.items[e].removeFromDOM()}),this.items=null),this.context.cache&&(this.context.cache.dispose(),this.context.cache=null),e.prototype.dispose.call(this)},t.BINDING="monaco-tree-row",t.LOADING_DECORATION_DELAY=800,t.counter=0,t.currentExternalDragAndDropData=null,t}(v.HeightMap);t.TreeView=x}),define(t[249],n([8]),{}),define(t[252],n([8]),{}),define(t[155],n([1,0,81,463,246,9,27,28,252]),function(e,t,n,i,o,r,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){return function(e,t,i){if(void 0===i&&(i={}),this.tree=e, +this.configuration=t,this.options=i,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer,this.controller=t.controller||new n.DefaultController({clickBehavior:n.ClickBehavior.ON_MOUSE_UP,keyboardSupport:"boolean"!=typeof i.keyboardSupport||i.keyboardSupport}),this.dnd=t.dnd||new n.DefaultDragAndDrop,this.filter=t.filter||new n.DefaultFilter,this.sorter=t.sorter||null,this.accessibilityProvider=t.accessibilityProvider||new n.DefaultAccessibilityProvider,this.styler=t.styler||null}}();t.TreeContext=l;var u={listFocusBackground:s.Color.fromHex("#073655"),listActiveSelectionBackground:s.Color.fromHex("#0E639C"),listActiveSelectionForeground:s.Color.fromHex("#FFFFFF"),listFocusAndSelectionBackground:s.Color.fromHex("#094771"),listFocusAndSelectionForeground:s.Color.fromHex("#FFFFFF"),listInactiveSelectionBackground:s.Color.fromHex("#3F3F46"),listHoverBackground:s.Color.fromHex("#2A2D2E"),listDropBackground:s.Color.fromHex("#383B3D") +},d=function(){function e(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new r.Relay,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new r.Relay,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new r.Relay,this._onDidExpandItem=new r.Relay,this._onDidCollapseItem=new r.Relay,this._onDispose=new r.Emitter,this.onDidDispose=this._onDispose.event,this.container=e,a.mixin(n,u,!1),n.twistiePixels="number"==typeof n.twistiePixels?n.twistiePixels:32,n.showTwistie=!1!==n.showTwistie,n.indentPixels="number"==typeof n.indentPixels?n.indentPixels:12,n.alwaysFocused=!0===n.alwaysFocused,n.useShadows=!1!==n.useShadows,n.paddingOnRow=!1!==n.paddingOnRow,n.showLoading=!1!==n.showLoading,this.context=new l(this,t,n),this.model=new i.TreeModel(this.context),this.view=new o.TreeView(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 e.prototype.style=function(e){this.view.applyStyles(e)},Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view&&this.view.onDOMFocus},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.domFocus=function(){this.view.focus()},e.prototype.isDOMFocused=function(){return this.view.isFocused()},e.prototype.domBlur=function(){this.view.blur()},e.prototype.setInput=function(e){return this.model.setInput(e)},e.prototype.getInput=function(){return this.model.getInput()},e.prototype.refresh=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!0),this.model.refresh(e,t)},e.prototype.expand=function(e){return this.model.expand(e)},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1), +this.model.collapse(e,t)},e.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t)},e.prototype.isExpanded=function(e){return this.model.isExpanded(e)},e.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},e.prototype.getHighlight=function(){return this.model.getHighlight()},e.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},e.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},e.prototype.getSelection=function(){return this.model.getSelection()},e.prototype.clearSelection=function(e){this.model.setSelection([],e)},e.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},e.prototype.getFocus=function(){return this.model.getFocus()},e.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},e.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},e.prototype.focusParent=function(e){this.model.focusParent(e)},e.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)}, +e.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)},e.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},e.prototype.focusLast=function(e,t){this.model.focusLast(e,t)},e.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},e.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},e.prototype.clearFocus=function(e){this.model.setFocus(null,e)},e.prototype.dispose=function(){this._onDispose.fire(),null!==this.model&&(this.model.dispose(),this.model=null),null!==this.view&&(this.view.dispose(),this.view=null),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},e}();t.Tree=d}),define(t[254],n([8]),{}),define(t[262],n([8]),{}),define(t[263],n([8]),{}),define(t[266],n([8]),{}),define(t[267],n([8]),{}),define(t[268],n([8]),{}),define(t[270],n([8]),{}),define(t[273],n([8]),{}),define(t[275],n([8]),{}),define(t[282],n([8]),{}), +define(t[285],n([8]),{}),define(t[287],n([8]),{}),define(t[296],n([8]),{}),define(t[297],n([8]),{}),define(t[333],n([8]),{}),define(t[360],n([8]),{}),define(t[361],n([8]),{}),define(t[362],n([8]),{}),define(t[363],n([8]),{}),define(t[364],n([8]),{}),define(t[365],n([8]),{}),define(t[367],n([8]),{}),define(t[368],n([8]),{}),define(t[369],n([8]),{}),define(t[371],n([8]),{}),define(t[372],n([8]),{}),define(t[373],n([8]),{}),define(t[375],n([8]),{}),define(t[156],n([8]),{}),define(t[377],n([8]),{}),define(t[378],n([8]),{}),define(t[379],n([8]),{}),define(t[383],n([8]),{}),define(t[384],n([8]),{}),define(t[385],n([8]),{}),define(t[386],n([8]),{}),define(t[388],n([8]),{}),define(t[390],n([8]),{}),define(t[398],n([8]),{}),define(t[401],n([8]),{}),define(t[402],n([8]),{}),define(t[404],n([8]),{}),define(t[406],n([8]),{}),define(t[407],n([8]),{}),define(t[408],n([8]),{}),define(t[410],n([8]),{}),define(t[413],n([8]),{}),define(t[416],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}) +;var n=function(){function e(e,t){this.chr=e,this.type=t,this.width=0}return e.prototype.fulfill=function(e){this.width=e},e}();t.CharWidthRequest=n;var i=function(){function e(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}return e.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},e.prototype._createDomElements=function(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.fontFamily,n.style.fontWeight=this._bareFontInfo.fontWeight,n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(n);var i=document.createElement("div") +;i.style.fontFamily=this._bareFontInfo.fontFamily,i.style.fontWeight="bold",i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(i);var o=document.createElement("div");o.style.fontFamily=this._bareFontInfo.fontFamily,o.style.fontWeight=this._bareFontInfo.fontWeight,o.style.fontSize=this._bareFontInfo.fontSize+"px",o.style.lineHeight=this._bareFontInfo.lineHeight+"px",o.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",o.style.fontStyle="italic",t.appendChild(o);for(var r=[],s=0,a=this._requests.length;s0){n=o[0].getStartPosition();var r=t.getTopForPosition(n.lineNumber,n.column);i=t.getScrollTop()-r}}return new e(n,i)},e.prototype.restore=function(e){if(this._visiblePosition){ +var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},e}();t.StableEditorScrollState=o}),define(t[116],n([1,0,2,42,7,73]),function(e,t,n,i,r,s){"use strict";function a(e){var t=r.getDomNodePagePosition(e);return new d(t.left,t.top,t.width,t.height)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.toClientCoordinates=function(){return new u(this.x-r.StandardWindow.scrollX,this.y-r.StandardWindow.scrollY)},e}();t.PageCoordinates=l;var u=function(){function e(e,t){this.clientX=e,this.clientY=t}return e.prototype.toPageCoordinates=function(){return new l(this.clientX+r.StandardWindow.scrollX,this.clientY+r.StandardWindow.scrollY)},e}();t.ClientCoordinates=u;var d=function(){return function(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}}();t.EditorPagePosition=d,t.createEditorPagePosition=a;var c=function(e){function t(t,n){var i=e.call(this,t)||this +;return i.pos=new l(i.posx,i.posy),i.editorPos=a(n),i}return o(t,e),t}(i.StandardMouseEvent);t.EditorMouseEvent=c;var h=function(){function e(e){this._editorViewDomNode=e}return e.prototype._create=function(e){return new c(e,this._editorViewDomNode)},e.prototype.onContextMenu=function(e,t){var n=this;return r.addDisposableListener(e,"contextmenu",function(e){t(n._create(e))})},e.prototype.onMouseUp=function(e,t){var n=this;return r.addDisposableListener(e,"mouseup",function(e){t(n._create(e))})},e.prototype.onMouseDown=function(e,t){var n=this;return r.addDisposableListener(e,"mousedown",function(e){t(n._create(e))})},e.prototype.onMouseLeave=function(e,t){var n=this;return r.addDisposableNonBubblingMouseOutListener(e,function(e){t(n._create(e))})},e.prototype.onMouseMoveThrottled=function(e,t,n,i){var o=this;return r.addDisposableThrottledListener(e,"mousemove",t,function(e,t){return n(e,o._create(t))},i)},e}();t.EditorMouseEventFactory=h;var p=function(e){function t(t){var n=e.call(this)||this +;return n._editorViewDomNode=t,n._globalMouseMoveMonitor=n._register(new s.GlobalMouseMoveMonitor),n._keydownListener=null,n}return o(t,e),t.prototype.startMonitoring=function(e,t,n){var i=this;this._keydownListener=r.addStandardDisposableListener(document,"keydown",function(e){e.toKeybinding().isModifierKey()||i._globalMouseMoveMonitor.stopMonitoring(!0)},!0);this._globalMouseMoveMonitor.startMonitoring(function(t,n){return e(t,new c(n,i._editorViewDomNode))},t,function(){i._keydownListener.dispose(),n()})},t}(n.Disposable);t.GlobalEditorMouseMoveMonitor=p}),define(t[423],n([1,0,9]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._onCodeEditorAdd=new n.Emitter,this._onCodeEditorRemove=new n.Emitter,this._onDiffEditorAdd=new n.Emitter,this._onDiffEditorRemove=new n.Emitter}return e.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e, +this._onCodeEditorAdd.fire(e)},Object.defineProperty(e.prototype,"onCodeEditorAdd",{get:function(){return this._onCodeEditorAdd.event},enumerable:!0,configurable:!0}),e.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)},e.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map(function(t){return e._codeEditors[t]})},e.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)},e.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)},e.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map(function(t){return e._diffEditors[t]})},e.prototype.getFocusedCodeEditor=function(){for(var e=null,t=this.listCodeEditors(),n=0;nn||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){ +return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var i,o,r,s;return n.startLineNumbert.endLineNumber?(r=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(r=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(r=t.endLineNumber,s=t.endColumn),new e(i,o,r,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){ +var i=t.startLineNumber,o=t.startColumn,r=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,l=n.startColumn,u=n.endLineNumber,d=n.endColumn;return iu?(r=u,s=d):r===u&&(s=Math.min(s,d)),i>r?null:i===r&&o>s?null:new e(i,o,r,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return new n.Position(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new n.Position(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){ +return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},e}();t.Range=i}),define(t[185],n([1,0,85,28,3,2,9]),function(e,t,n,i,o,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={followsCaret:!0,ignoreCharChanges:!0, +alwaysRevealFirst:!0},l=function(){function e(e,t){void 0===t&&(t={});var n=this;this._onDidUpdate=new s.Emitter,this._editor=e,this._options=i.mixin(t,a,!1),this.disposed=!1,this._disposables=[],this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=this._options.alwaysRevealFirst,this._disposables.push(this._editor.onDidDispose(function(){return n.dispose()})),this._disposables.push(this._editor.onDidUpdateDiff(function(){return n._onDiffUpdated()})),this._options.followsCaret&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeCursorPosition(function(e){n.ignoreSelectionChange||(n.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeModel(function(e){n.revealFirst=!0})),this._init()}return e.prototype._init=function(){this._editor.getLineChanges()},e.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()), +this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))},e.prototype._compute=function(e){var t=this;this.ranges=[],e&&e.forEach(function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(function(e){t.ranges.push({rhs:!0,range:new o.Range(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):t.ranges.push({rhs:!0,range:new o.Range(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})}),this.ranges.sort(function(e,t){return e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0}),this._onDidUpdate.fire(this)},e.prototype._initIdx=function(e){for(var t=!1,n=this._editor.getPosition(),i=0,o=this.ranges.length;i=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var o=i.range.getStartPosition();this._editor.setPosition(o),this._editor.revealPositionInCenter(o,t)}finally{this.ignoreSelectionChange=!1}}},e.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},e.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},e.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},e.prototype.dispose=function(){r.dispose(this._disposables),this._disposables.length=0,this._onDidUpdate.dispose(),this.ranges=null,this.disposed=!0},e}();t.DiffNavigator=l}),define(t[53],n([1,0,3]),function(e,t,n){"use strict" +;Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.insert=function(e,t){return{range:new n.Range(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},e.delete=function(e){return{range:e,text:null}},e.replace=function(e,t){return{range:e,text:t}},e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},e}();t.EditOperation=i}),define(t[431],n([1,0,6,53,3]),function(e,t,n,i,o){"use strict";function r(e,t){t.sort(function(e,t){return e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber});for(var r=t.length-2;r>=0;r--)t[r].lineNumber===t[r+1].lineNumber&&t.splice(r,1);for(var s=[],a=0,l=0,u=t.length,d=1,c=e.getLineCount();d<=c;d++){var h=e.getLineContent(d),p=h.length+1,f=0;if(!(l255?255:0|e},e}();t.RGBA8=n}),define(t[21],n([1,0,3,12]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r;!function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(r=t.SelectionDirection||(t.SelectionDirection={}));var s=function(e){function t(t,n,i,o){ +var r=e.call(this,t,n,i,o)||this;return r.selectionStartLineNumber=t,r.selectionStartColumn=n,r.positionLineNumber=i,r.positionColumn=o,r}return o(t,e),t.prototype.clone=function(){return new t(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?r.LTR:r.RTL},t.prototype.setEndPosition=function(e,n){ +return this.getDirection()===r.LTR?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new i.Position(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return this.getDirection()===r.LTR?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,i=e.length;n=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null +;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(ti)return null;for(var r=0,s=0,a=n;a<=i;a++){var l=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===s?(r=l,s=1):s++)}if(e=n&&r<=i&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,i=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>o)return null;if(n+e>o){return this._lines.splice(e-this._rendLineNumberStart,o-e+1)}for(var r=[],s=0;sn))for(var a=Math.max(t,s.fromLineNumber),l=Math.min(n,s.toLineNumber),u=a;u<=l;u++){var d=u-this._rendLineNumberStart;this._lines[d].onTokensChanged(),i=!0}}return i},e}();t.RenderedLinesCollection=o;var r=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new o(function(){return t._host.createVisibleLine()})}return e.prototype._createDomNode=function(){var e=n.createFastDomNode(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"), +e.domNode.setAttribute("aria-hidden","true"),e},e.prototype.onConfigurationChanged=function(e){return e.layoutInfo},e.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;nt){(s=t)<=(a=Math.min(n,o.rendLineNumberStart-1))&&(this._insertLinesBefore(o,s,a,i,t),o.linesLength+=a-s+1)}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,l),o.linesLength-=l)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1n){var s=Math.max(0,n-o.rendLineNumberStart+1),a=o.linesLength-1,l=a-s+1;l>0&&(this._removeLinesAfter(o,l),o.linesLength-=l)}return this._finishRendering(o,!1,i),o},e.prototype._renderUntouchedLines=function(e,t,n,i,o){for(var r=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var l=r+a;s[a].layoutLine(l,i[l-o])}},e.prototype._insertLinesBefore=function(e,t,n,i,o){ +for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var n=0;n=0;s--){var a=e.lines[s];i[s]&&(a.setDomNode(r),r=r.previousSibling)}},e.prototype._finishRenderingInvalidLines=function(e,t,n){var i=document.createElement("div");i.innerHTML=t;for(var o=0;o4294967295?4294967295:0|e}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){for(var i=new Uint8Array(e*t),o=0,r=e*t;o255?255:0|e},t.toUint32=n,t.toUint32Array=function(e){for(var t=e.length,i=new Uint32Array(t),o=0;o=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}();t.CharacterClassifier=i;var o=function(){function e(){this._actual=new i(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}();t.CharacterSet=o}),define(t[89],n([1,0,83]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){for(var n=e.call(this,0)||this,i=0,o=t.length;i1&&v>1;){if((S=f.charCodeAt(m-2))!==(w=g.charCodeAt(v-2)))break;m--,v--}(m>1||v>1)&&this._pushTrimWhitespaceCharChange(r,s+1,1,m,l+1,1,v);for(var _=a._getLastNonBlankColumn(f,1),y=a._getLastNonBlankColumn(g,1),C=f.length+1,b=g.length+1;_, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){ +var t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){for(var i=0,o=-1;-1!==(o=t.indexOf("\n",o+1));)i++;return[e,n*t.length,i]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n,i){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,s=e.selectionStart,a=e.selectionEnd,l=t.value,u=t.selectionStart,d=t.selectionEnd;i&&o.length>0&&s===a&&u===d&&!r.startsWith(l,o)&&r.endsWith(l,o)&&(s=0,a=0);var c=o.substring(a),h=l.substring(d),p=r.commonSuffixLength(c,h);l=l.substring(0,l.length-p) +;var f=(o=o.substring(0,o.length-p)).substring(0,s),g=l.substring(0,u),m=r.commonPrefixLength(f,g);if(l=l.substring(m),o=o.substring(m),u-=m,s-=m,d-=m,a-=m,n&&u===d&&o.length>0){var v=null;if(u===l.length?r.startsWith(l,o)&&(v=l.substring(o.length)):r.endsWith(l,o)&&(v=l.substring(0,l.length-o.length)),null!==v&&v.length>0&&(/\uFE0F/.test(v)||r.containsEmoji(v)))return{text:v,replaceCharCnt:0}}if(u===d){if(o===l&&0===s&&a===o.length&&u===l.length&&-1===l.indexOf("\n")&&r.containsFullWidthCharacter(l))return{text:"",replaceCharCnt:0};return{text:l,replaceCharCnt:f.length-m}}return{text:l,replaceCharCnt:a-s}},e.EMPTY=new e("",0,0,null,null),e}();t.TextAreaState=s;var a=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)},e._getRangeForPage=function(t){var i=t*e._LINES_PER_PAGE,o=i+1,r=i+e._LINES_PER_PAGE;return new n.Range(o,1,r+1,1)},e.fromEditorSelection=function(t,r,a,l){ +var u=e._getPageOfLine(a.startLineNumber),d=e._getRangeForPage(u),c=e._getPageOfLine(a.endLineNumber),h=e._getRangeForPage(c),p=d.intersectRanges(new n.Range(1,1,a.startLineNumber,a.startColumn)),f=r.getValueInRange(p,o.EndOfLinePreference.LF),g=r.getLineCount(),m=r.getLineMaxColumn(g),v=h.intersectRanges(new n.Range(a.endLineNumber,a.endColumn,g,m)),_=r.getValueInRange(v,o.EndOfLinePreference.LF),y=null;if(u===c||u+1===c)y=r.getValueInRange(a,o.EndOfLinePreference.LF);else{var C=d.intersectRanges(a),b=h.intersectRanges(a);y=r.getValueInRange(C,o.EndOfLinePreference.LF)+String.fromCharCode(8230)+r.getValueInRange(b,o.EndOfLinePreference.LF)}if(l){f.length>500&&(f=f.substring(f.length-500,f.length)),_.length>500&&(_=_.substring(0,500)),y.length>1e3&&(y=y.substring(0,500)+String.fromCharCode(8230)+y.substring(y.length-500,y.length))}return new s(f+y+_,f.length,f.length+y.length,new i.Position(a.startLineNumber,a.startColumn),new i.Position(a.endLineNumber,a.endColumn))},e._LINES_PER_PAGE=10,e}() +;t.PagedScreenReaderStrategy=a}),define(t[165],n([1,0,14,21,6,9,2,164,30,18,7]),function(e,t,n,i,r,s,a,l,u,d,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyOptions={forceCopyWithSyntaxHighlighting:!1};var h=function(e){function a(t,o){var a=e.call(this)||this;a._onFocus=a._register(new s.Emitter),a.onFocus=a._onFocus.event,a._onBlur=a._register(new s.Emitter),a.onBlur=a._onBlur.event,a._onKeyDown=a._register(new s.Emitter),a.onKeyDown=a._onKeyDown.event,a._onKeyUp=a._register(new s.Emitter),a.onKeyUp=a._onKeyUp.event,a._onCut=a._register(new s.Emitter),a.onCut=a._onCut.event,a._onPaste=a._register(new s.Emitter),a.onPaste=a._onPaste.event,a._onType=a._register(new s.Emitter),a.onType=a._onType.event,a._onCompositionStart=a._register(new s.Emitter),a.onCompositionStart=a._onCompositionStart.event,a._onCompositionUpdate=a._register(new s.Emitter),a.onCompositionUpdate=a._onCompositionUpdate.event,a._onCompositionEnd=a._register(new s.Emitter),a.onCompositionEnd=a._onCompositionEnd.event, +a._onSelectionChangeRequest=a._register(new s.Emitter),a.onSelectionChangeRequest=a._onSelectionChangeRequest.event,a._host=t,a._textArea=a._register(new f(o)),a._lastTextAreaEvent=0,a._asyncTriggerCut=a._register(new n.RunOnceScheduler(function(){return a._onCut.fire()},0)),a._textAreaState=l.TextAreaState.EMPTY,a.writeScreenReaderContent("ctor"),a._hasFocus=!1,a._isDoingComposition=!1,a._nextCommand=0,a._register(c.addStandardDisposableListener(o.domNode,"keydown",function(e){!a._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),a._onKeyDown.fire(e)})),a._register(c.addStandardDisposableListener(o.domNode,"keyup",function(e){a._onKeyUp.fire(e)})),a._register(c.addDisposableListener(o.domNode,"compositionstart",function(e){a._lastTextAreaEvent=1,a._isDoingComposition||(a._isDoingComposition=!0,u.isEdgeOrIE||a._setAndWriteTextAreaState("compositionstart",l.TextAreaState.EMPTY),a._onCompositionStart.fire())}));var h=function(e,t){ +var n=a._textAreaState,i=l.TextAreaState.readFromTextArea(a._textArea);return[i,l.TextAreaState.deduceInput(n,i,e,t)]},g=function(e){var t=a._textAreaState,n=l.TextAreaState.selectedText(e);return[n,{text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]},m=function(e){return!(!u.isEdgeOrIE||"ja"!==e)||!(!u.isIE||0!==e.indexOf("zh-Han"))};a._register(c.addDisposableListener(o.domNode,"compositionupdate",function(e){if(a._lastTextAreaEvent=2,m(e.locale)){var t=h(!1,!1),n=t[0],i=t[1];return a._textAreaState=n,a._onType.fire(i),void a._onCompositionUpdate.fire(e)}var o=g(e.data),r=o[0],s=o[1];a._textAreaState=r,a._onType.fire(s),a._onCompositionUpdate.fire(e)})),a._register(c.addDisposableListener(o.domNode,"compositionend",function(e){if(a._lastTextAreaEvent=3,m(e.locale)){var t=h(!1,!1),n=t[0],i=t[1];a._textAreaState=n,a._onType.fire(i)}else{var o=g(e.data),n=o[0],i=o[1];a._textAreaState=n,a._onType.fire(i)}(u.isEdgeOrIE||u.isChrome)&&(a._textAreaState=l.TextAreaState.readFromTextArea(a._textArea)), +a._isDoingComposition&&(a._isDoingComposition=!1,a._onCompositionEnd.fire())})),a._register(c.addDisposableListener(o.domNode,"input",function(){var e=8===a._lastTextAreaEvent;if(a._lastTextAreaEvent=4,a._textArea.setIgnoreSelectionChangeTime("received input event"),!a._isDoingComposition){var t=h(d.isMacintosh,e&&d.isMacintosh),n=t[0],i=t[1];0===i.replaceCharCnt&&1===i.text.length&&r.isHighSurrogate(i.text.charCodeAt(0))||(a._textAreaState=n,0===a._nextCommand?""!==i.text&&a._onType.fire(i):(""!==i.text&&a._onPaste.fire({text:i.text}),a._nextCommand=0))}})),a._register(c.addDisposableListener(o.domNode,"cut",function(e){a._lastTextAreaEvent=5,a._textArea.setIgnoreSelectionChangeTime("received cut event"),a._ensureClipboardGetsEditorSelection(e),a._asyncTriggerCut.schedule()})),a._register(c.addDisposableListener(o.domNode,"copy",function(e){a._lastTextAreaEvent=6,a._ensureClipboardGetsEditorSelection(e)})),a._register(c.addDisposableListener(o.domNode,"paste",function(e){if(a._lastTextAreaEvent=7, +a._textArea.setIgnoreSelectionChangeTime("received paste event"),p.canUseTextData(e)){var t=p.getTextData(e);""!==t&&a._onPaste.fire({text:t})}else a._textArea.getSelectionStart()!==a._textArea.getSelectionEnd()&&a._setAndWriteTextAreaState("paste",l.TextAreaState.EMPTY),a._nextCommand=1})),a._register(c.addDisposableListener(o.domNode,"focus",function(){a._lastTextAreaEvent=8,a._setHasFocus(!0)})),a._register(c.addDisposableListener(o.domNode,"blur",function(){a._lastTextAreaEvent=9,a._setHasFocus(!1)}));var v=0;return a._register(c.addDisposableListener(document,"selectionchange",function(e){if(a._hasFocus&&!a._isDoingComposition&&u.isChrome&&d.isWindows){var t=Date.now(),n=t-v;if(v=t,!(n<5)){var o=t-a._textArea.getIgnoreSelectionChangeTime();if(a._textArea.resetSelectionChangeTime(),!(o<100)&&a._textAreaState.selectionStartPosition&&a._textAreaState.selectionEndPosition){var r=a._textArea.getValue();if(a._textAreaState.value===r){var s=a._textArea.getSelectionStart(),l=a._textArea.getSelectionEnd() +;if(a._textAreaState.selectionStart!==s||a._textAreaState.selectionEnd!==l){var c=a._textAreaState.deduceEditorPosition(s),h=a._host.deduceModelPosition(c[0],c[1],c[2]),p=a._textAreaState.deduceEditorPosition(l),f=a._host.deduceModelPosition(p[0],p[1],p[2]),g=new i.Selection(h.lineNumber,h.column,f.lineNumber,f.column);a._onSelectionChangeRequest.fire(g)}}}}}})),a}return o(a,e),a.prototype.dispose=function(){e.prototype.dispose.call(this)},a.prototype.focusTextArea=function(){this._setHasFocus(!0)},a.prototype.isFocused=function(){return this._hasFocus},a.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._hasFocus&&(u.isEdge?this._setAndWriteTextAreaState("focusgain",l.TextAreaState.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},a.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}, +a.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},a.prototype._ensureClipboardGetsEditorSelection=function(e){var n=this._host.getPlainTextToCopy();if(p.canUseTextData(e)){var i=null;u.hasClipboardSupport()&&(n.length<65536||t.CopyOptions.forceCopyWithSyntaxHighlighting)&&(i=this._host.getHTMLToCopy()),p.setTextData(e,n,i)}else this._setAndWriteTextAreaState("copy or cut",l.TextAreaState.selectedText(n))},a}(a.Disposable);t.TextAreaInput=h;var p=function(){function e(){}return e.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},e.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},e.setTextData=function(e,t,n){ +if(e.clipboardData)return e.clipboardData.setData("text/plain",t),null!==n&&e.clipboardData.setData("text/html",n),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},e}(),f=function(e){function t(t){var n=e.call(this)||this;return n._actual=t,n._ignoreSelectionChangeTime=0,n}return o(t,e),t.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},t.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},t.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},t.prototype.getValue=function(){return this._actual.domNode.value},t.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},t.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart}, +t.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},t.prototype.setSelectionRange=function(e,t,n){var i=this._actual.domNode,o=document.activeElement===i,r=i.selectionStart,s=i.selectionEnd;if(o&&r===t&&s===n)u.isFirefox&&window.parent!==window&&i.focus();else{if(o)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(u.isFirefox&&window.parent!==window&&i.focus());try{var a=c.saveParentsScrollTop(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),c.restoreParentsScrollTop(i,a)}catch(e){}}},t}(a.Disposable)}),define(t[483],n([1,0,10,24]),function(e,t,n,i){"use strict";function o(e){return"\n"===e.getEOL()?i.EndOfLineSequence.LF:i.EndOfLineSequence.CRLF}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return e.prototype.undo=function(e){ +for(var t=this.editOperations.length-1;t>=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e.prototype.redo=function(e){for(var t=0;t0){var e=this.past.pop();try{e.undo(this.model)}catch(e){return n.onUnexpectedError(e), +this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},e.prototype.canUndo=function(){return this.past.length>0},e.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(e){return n.onUnexpectedError(e),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},e.prototype.canRedo=function(){return this.future.length>0},e}();t.EditStack=a}),define(t[486],n([1,0]),function(e,t){"use strict";function n(e,t,n,i){var o;for(o=0;o0&&s>0)return 0;if(u>0&&d>0)return 0;var h=Math.abs(s-d),p=Math.abs(r-u);return 0===h?p:p%h==0?p/h:0}Object.defineProperty(t,"__esModule",{value:!0}),t.guessIndentation=function(e,t,i){ +for(var o=Math.min(e.getLineCount(),1e4),r=0,s=0,a="",l=0,u=[0,0,0,0,0,0,0,0,0],d=1;d<=o;d++){for(var c=e.getLineLength(d),h=e.getLineContent(d),p=c<=65536,f=!1,g=0,m=0,v=0,_=0,y=c;_0?r++:m>1&&s++;var b=n(a,l,h,g);b<=8&&u[b]++,a=h,l=g}}var S=i;r!==s&&(S=rE&&(E=t,w=e)}),{insertSpaces:S,tabSize:w}}}),define(t[487],n([1,0]),function(e,t){"use strict";function n(e){return(1&e.metadata)>>>0}function i(e,t){e.metadata=254&e.metadata|t<<0}function o(e){return(2&e.metadata)>>>1==1}function r(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function s(e){return(4&e.metadata)>>>2==1}function a(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function l(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function u(e,t){e.metadata=207&e.metadata|t<<4}function d(e,t,n,i){return en)&&(1!==i&&(2===i||t))}function c(e,t,n,i,o){var r=function(e){ +return(48&e.metadata)>>>4}(e),s=0===r||2===r,a=1===r||2===r,l=n-t,u=i,c=Math.min(l,u),h=e.start,p=!1,f=e.end,g=!1,m=o?1:l>0?2:0;if(!p&&d(h,s,t,m)&&(p=!0),!g&&d(f,a,t,m)&&(g=!0),c>0&&!o){m=l>u?2:0;!p&&d(h,s,t+c,m)&&(p=!0),!g&&d(f,a,t+c,m)&&(g=!0)}m=o?1:0;!p&&d(h,s,n,m)&&(e.start=t+u,p=!0),!g&&d(f,a,n,m)&&(e.end=t+u,g=!0);var v=u-l;p||(e.start=Math.max(0,h+v),p=!0),g||(e.end=Math.max(0,f+v),g=!0),e.start>e.end&&(e.end=e.start)}function h(e,o){if(e.root===t.SENTINEL)return o.parent=t.SENTINEL,o.left=t.SENTINEL,o.right=t.SENTINEL,i(o,0),e.root=o,e.root;!function(e,n){var o=0,r=e.root,s=n.start,a=n.end;for(;;){if(C(s,a,r.start+o,r.end+o)<0){if(r.left===t.SENTINEL){n.start-=o,n.end-=o,n.maxEnd-=o,r.left=n;break}r=r.left}else{if(r.right===t.SENTINEL){n.start-=o+r.delta,n.end-=o+r.delta,n.maxEnd-=o+r.delta,r.right=n;break}o+=r.delta,r=r.right}}n.parent=r,n.left=t.SENTINEL,n.right=t.SENTINEL,i(n,1)}(e,o),y(o.parent);for(var r=o;r!==e.root&&1===n(r.parent);)if(r.parent===r.parent.parent.left){ +1===n(s=r.parent.parent.right)?(i(r.parent,0),i(s,0),i(r.parent.parent,1),r=r.parent.parent):(r===r.parent.right&&g(e,r=r.parent),i(r.parent,0),i(r.parent.parent,1),m(e,r.parent.parent))}else{var s=r.parent.parent.left;1===n(s)?(i(r.parent,0),i(s,0),i(r.parent.parent,1),r=r.parent.parent):(r===r.parent.left&&m(e,r=r.parent),i(r.parent,0),i(r.parent.parent,1),g(e,r.parent.parent))}return i(e.root,0),o}function p(e,o){var r,s;if(o.left===t.SENTINEL?(s=o,(r=o.right).delta+=o.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=o.delta,r.end+=o.delta):o.right===t.SENTINEL?(r=o.left,s=o):((r=(s=function(e){for(;e.left!==t.SENTINEL;)e=e.left;return e}(o.right)).right).start+=s.delta,r.end+=s.delta,r.delta+=s.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),s.start+=o.delta,s.end+=o.delta,s.delta=o.delta,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0)),s===e.root)return e.root=r,i(r,0),o.detach(),f(),_(r), +void(e.root.parent=t.SENTINEL);var a=1===n(s);if(s===s.parent.left?s.parent.left=r:s.parent.right=r,s===o?r.parent=s.parent:(s.parent===o?r.parent=s:r.parent=s.parent,s.left=o.left,s.right=o.right,s.parent=o.parent,i(s,n(o)),o===e.root?e.root=s:o===o.parent.left?o.parent.left=s:o.parent.right=s,s.left!==t.SENTINEL&&(s.left.parent=s),s.right!==t.SENTINEL&&(s.right.parent=s)),o.detach(),a)return y(r.parent),s!==o&&(y(s),y(s.parent)),void f();y(r),y(r.parent),s!==o&&(y(s),y(s.parent));for(var l;r!==e.root&&0===n(r);)r===r.parent.left?(1===n(l=r.parent.right)&&(i(l,0),i(r.parent,1),g(e,r.parent),l=r.parent.right),0===n(l.left)&&0===n(l.right)?(i(l,1),r=r.parent):(0===n(l.right)&&(i(l.left,0),i(l,1),m(e,l),l=r.parent.right),i(l,n(r.parent)),i(r.parent,0),i(l.right,0),g(e,r.parent),r=e.root)):(1===n(l=r.parent.left)&&(i(l,0),i(r.parent,1),m(e,r.parent),l=r.parent.left),0===n(l.left)&&0===n(l.right)?(i(l,1),r=r.parent):(0===n(l.left)&&(i(l.right,0),i(l,1),g(e,l),l=r.parent.left),i(l,n(r.parent)),i(r.parent,0), +i(l.left,0),m(e,r.parent),r=e.root));i(r,0),f()}function f(){t.SENTINEL.parent=t.SENTINEL,t.SENTINEL.delta=0,t.SENTINEL.start=0,t.SENTINEL.end=0}function g(e,n){var i=n.right;i.delta+=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=n.delta,i.end+=n.delta,n.right=i.left,i.left!==t.SENTINEL&&(i.left.parent=n),i.parent=n.parent,n.parent===t.SENTINEL?e.root=i:n===n.parent.left?n.parent.left=i:n.parent.right=i,i.left=n,n.parent=i,_(n),_(i)}function m(e,n){var i=n.left;n.delta-=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start-=i.delta,n.end-=i.delta,n.left=i.right,i.right!==t.SENTINEL&&(i.right.parent=n),i.parent=n.parent,n.parent===t.SENTINEL?e.root=i:n===n.parent.right?n.parent.right=i:n.parent.left=i,i.right=n,n.parent=i,_(n),_(i)}function v(e){var n=e.end;if(e.left!==t.SENTINEL){var i=e.left.maxEnd;i>n&&(n=i)}if(e.right!==t.SENTINEL){var o=e.right.maxEnd+e.delta;o>n&&(n=o)}return n}function _(e){e.maxEnd=v(e)}function y(e){ +for(;e!==t.SENTINEL;){var n=v(e);if(e.maxEnd===n)return;e.maxEnd=n,e=e.parent}}function C(e,t,n,i){return e===n?t-i:e-n}Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeColor=n,t.getNodeIsInOverviewRuler=function(e){return(8&e.metadata)>>>3==1};var b=function(){function e(e,t,n){this.metadata=0,this.parent=null,this.left=null,this.right=null,i(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,a(this,!1),u(this,1),l(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,r(this,!1)}return e.prototype.reset=function(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;a(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),u(this,this.options.stickiness),l(this,!!this.options.overviewRuler.color)}, +e.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}();t.IntervalNode=b,t.SENTINEL=new b(null,0,0),t.SENTINEL.parent=t.SENTINEL,t.SENTINEL.left=t.SENTINEL,t.SENTINEL.right=t.SENTINEL,i(t.SENTINEL,0);var S=function(){function e(){this.root=t.SENTINEL,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,n,i,a,l){return this.root===t.SENTINEL?[]:function(e,n,i,a,l,u){for(var d=e.root,c=0,h=0,p=0,f=[],g=0;d!==t.SENTINEL;)if(o(d))r(d.left,!1),r(d.right,!1),d===d.parent.right&&(c-=d.parent.delta),d=d.parent;else{if(!o(d.left)){if(c+d.maxEndi)r(d,!0);else{if((p=c+d.end)>=n){d.setCachedOffsets(h,p,u);var m=!0;a&&d.ownerId&&d.ownerId!==a&&(m=!1),l&&s(d)&&(m=!1),m&&(f[g++]=d)}r(d,!0), +d.right===t.SENTINEL||o(d.right)||(c+=d.delta,d=d.right)}}return r(e.root,!1),f}(this,e,n,i,a,l)},e.prototype.search=function(e,n,i){return this.root===t.SENTINEL?[]:function(e,n,i,a){for(var l=e.root,u=0,d=0,c=0,h=[],p=0;l!==t.SENTINEL;)if(o(l))r(l.left,!1),r(l.right,!1),l===l.parent.right&&(u-=l.parent.delta),l=l.parent;else if(l.left===t.SENTINEL||o(l.left)){d=u+l.start,c=u+l.end,l.setCachedOffsets(d,c,a);var f=!0;n&&l.ownerId&&l.ownerId!==n&&(f=!1),i&&s(l)&&(f=!1),f&&(h[p++]=l),r(l,!0),l.right===t.SENTINEL||o(l.right)||(u+=l.delta,l=l.right)}else l=l.left;return r(e.root,!1),h}(this,e,n,i)},e.prototype.collectNodesFromOwner=function(e){return function(e,n){for(var i=e.root,s=[],a=0;i!==t.SENTINEL;)o(i)?(r(i.left,!1),r(i.right,!1),i=i.parent):i.left===t.SENTINEL||o(i.left)?(i.ownerId===n&&(s[a++]=i),r(i,!0),i.right===t.SENTINEL||o(i.right)||(i=i.right)):i=i.left;return r(e.root,!1),s}(this,e)},e.prototype.collectNodesPostOrder=function(){return function(e){ +for(var n=e.root,i=[],s=0;n!==t.SENTINEL;)o(n)?(r(n.left,!1),r(n.right,!1),n=n.parent):n.left===t.SENTINEL||o(n.left)?n.right===t.SENTINEL||o(n.right)?(i[s++]=n,r(n,!0)):n=n.right:n=n.left;return r(e.root,!1),i}(this)},e.prototype.insert=function(e){h(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){p(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){for(var n=e,i=0;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;var o=n.start+i,r=n.end+i;n.setCachedOffsets(o,r,t)},e.prototype.acceptReplace=function(e,n,i,s){for(var a=function(e,n,i){for(var s=e.root,a=0,l=0,u=0,d=[],c=0;s!==t.SENTINEL;)if(o(s))r(s.left,!1),r(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!o(s.left)){if(a+s.maxEndi?r(s,!0):((u=a+s.end)>=n&&(s.setCachedOffsets(l,u,0),d[c++]=s),r(s,!0),s.right===t.SENTINEL||o(s.right)||(a+=s.delta,s=s.right))}return r(e.root,!1),d +}(this,e,e+n),l=0,u=a.length;li?(a.start+=u,a.end+=u,a.delta+=u,(a.delta<-1073741824||a.delta>1073741824)&&(e.requestNormalizeDelta=!0),r(a,!0)):(r(a,!0),a.right===t.SENTINEL||o(a.right)||(l+=a.delta,a=a.right))}r(e.root,!1)}(this,e,e+n,i),this._normalizeDeltaIfNecessary();for(var l=0,u=a.length;l0){var s=t.charCodeAt(i);if(0!==e.get(s))return!0}return!1}(e,t,0,i,o)&&function(e,t,n,i,o){if(i+o===n)return!0;var r=t.charCodeAt(i+o);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(o>0){var s=t.charCodeAt(i+o-1);if(0!==e.get(s))return!0}return!1}(e,t,n,i,o)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n, +this.wordSeparators=i}return e._isMultilineRegexSource=function(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t=n)break;var i=e.charCodeAt(t);if(110===i||114===i)return!0}}return!1},e.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var t;t=this.isRegex?e._isMultilineRegexSource(this.searchString):this.searchString.indexOf("\n")>=0;var i=null;try{i=n.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:t,global:!0})}catch(e){return null}if(!i)return null;var o=!this.isRegex&&!t;return o&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(o=this.matchCase),new d(i,this.wordSeparators?s.getMapForWordSeparators(this.wordSeparators):null,o?this.searchString:null)},e}();t.SearchParams=u;var d=function(){return function(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}();t.SearchData=d,t.createFindMatch=a;var c=function(){function e(e){ +for(var t=[],n=0,i=0,o=e.length;i>0);t[o]>=e?i=o-1:t[o+1]>=e?(n=o,i=o):n=o+1}return n+1},e}(),h=function(){function e(){}return e.findMatches=function(e,t,n,i,o){var r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,n,new p(r.wordSeparators,r.regex),i,o):this._doFindMatchesLineByLine(e,n,r,i,o):[]},e._getMultilineMatchRange=function(e,t,n,i,r,s){var a,l=0;a="\r\n"===e.getEOL()?t+r+(l=i.findLineFeedCountBeforeOffset(r)):t+r;var u;if("\r\n"===e.getEOL()){var d=i.findLineFeedCountBeforeOffset(r+s.length)-l;u=a+s.length+d}else u=a+s.length;var c=e.getPositionAt(a),h=e.getPositionAt(u);return new o.Range(c.lineNumber,c.column,h.lineNumber,h.column)},e._doFindMatchesMultiline=function(e,t,n,i,o){ +var s,l=e.getOffsetAt(t.getStartPosition()),u=e.getValueInRange(t,r.EndOfLinePreference.LF),d="\r\n"===e.getEOL()?new c(u):null,h=[],p=0;for(n.reset(0);s=n.next(u);)if(h[p++]=a(this._getMultilineMatchRange(e,l,u,d,s.index,s[0]),s,i),p>=o)return h;return h},e._doFindMatchesLineByLine=function(e,t,n,i,o){var r=[],s=0;if(t.startLineNumber===t.endLineNumber){var a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,r,i,o),r}var l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,l,t.startLineNumber,t.startColumn-1,s,r,i,o);for(var u=t.startLineNumber+1;u=c))return s;return s}var _,y=new p(e.wordSeparators,e.regex);y.reset(0);do{if((_=y.next(t))&&(u[s++]=a(new o.Range(n,_.index+1+i,n,_.index+1+_[0].length+i),_,d),s>=c))return s}while(_);return s},e.findNextMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new p(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,r,i):this._doFindNextMatchLineByLine(e,n,r,i)},e._doFindNextMatchMultiline=function(e,t,n,s){var l=new i.Position(t.lineNumber,1),u=e.getOffsetAt(l),d=e.getLineCount(),h=e.getValueInRange(new o.Range(l.lineNumber,l.column,d,e.getLineMaxColumn(d)),r.EndOfLinePreference.LF),p="\r\n"===e.getEOL()?new c(h):null;n.reset(t.column-1);var f=n.next(h) +;return f?a(this._getMultilineMatchRange(e,u,h,p,f.index,f[0]),f,s):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new i.Position(1,1),n,s):null},e._doFindNextMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r),a=this._findFirstMatchInLine(n,s,r,t.column,i);if(a)return a;for(var l=1;l<=o;l++){var u=(r+l-1)%o,d=e.getLineContent(u+1),c=this._findFirstMatchInLine(n,d,u+1,1,i);if(c)return c}return null},e._findFirstMatchInLine=function(e,t,n,i,r){e.reset(i-1);var s=e.next(t);return s?a(new o.Range(n,s.index+1,n,s.index+1+s[0].length),s,r):null},e.findPreviousMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new p(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,r,i):this._doFindPreviousMatchLineByLine(e,n,r,i)},e._doFindPreviousMatchMultiline=function(e,t,n,r){var s=this._doFindMatchesMultiline(e,new o.Range(1,1,t.lineNumber,t.column),n,r,9990);if(s.length>0)return s[s.length-1] +;var a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new i.Position(a,e.getLineMaxColumn(a)),n,r):null},e._doFindPreviousMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,r,i);if(a)return a;for(var l=1;l<=o;l++){var u=(o+r-l-1)%o,d=e.getLineContent(u+1),c=this._findLastMatchInLine(n,d,u+1,i);if(c)return c}return null},e._findLastMatchInLine=function(e,t,n,i){var r,s=null;for(e.reset(0);r=e.next(t);)s=a(new o.Range(n,r.index+1,n,r.index+1+r[0].length),r,i);return s},e}();t.TextModelSearch=h,t.isValidMatch=l;var p=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},e.prototype.next=function(e){var t,n=e.length;do{ +if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(!(t=this._searchRegex.exec(e)))return null;var i=t.index,o=t[0].length;if(i===this._prevMatchStartIndex&&o===this._prevMatchLength)return null;if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||l(this._wordSeparators,e,n,i,o))return t}while(t);return null},e}();t.Searcher=p}),define(t[167],n([1,0,12,3,495,136,24]),function(e,t,n,i,o,r,s){"use strict";function a(e){var t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}function l(e,t){void 0===t&&(t=!0);for(var n=[0],i=1,o=0,r=e.length;o126)&&(s=!1)}var h=new u(a(e),i,o,r,s);return e.length=0,h};var d=function(){return function(e,t,n,i,o){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=o}}();t.Piece=d;var c=function(){return function(e,t){this.buffer=e,this.lineStarts=t}}();t.StringBuffer=c;var h=function(){function e(e){this._limit=e,this._cache=[]}return e.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber=e)return n}return null},e.prototype.set=function(e){ +this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},e.prototype.valdiate=function(e){for(var t=!1,n=0;n=e)&&(this._cache[n]=null,t=!0)}if(t){for(var o=[],n=0;n0){e[r].lineStarts||(e[r].lineStarts=l(e[r].buffer));var a=new d(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,a)}this._searchCache=new h(1), +this._lastVisitedLine={lineNumber:0,value:null},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var n=this,i=t.AverageBufferSize,o=i-Math.floor(i/3),r=2*o,s="",a=0,u=[];if(this.iterate(this.root,function(t){var i=n.getNodeContent(t),d=i.length;if(a<=o||a+d0){var d=s.replace(/\r\n|\r|\n/g,e);u.push(new c(d,l(d)))}this.create(u,e,!0)},e.prototype.getEOL=function(){return this._EOL},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},e.prototype.getOffsetAt=function(e,t){for(var n=0,i=this.root;i!==o.SENTINEL;)if(i.left!==o.SENTINEL&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;return n+=this.getAccumulatedValue(i,e-i.lf_left-2)+t-1}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e) +;for(var t=this.root,i=0,r=e;t!==o.SENTINEL;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,0===s.index){l=r-(a=this.getOffsetAt(i+1,1));return new n.Position(i+1,l+1)}return new n.Position(i+1,s.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===o.SENTINEL){var a=this.getOffsetAt(i+1,1),l=r-e-a;return new n.Position(i+1,l+1)}t=t.right}return new n.Position(1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){ +var n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}var s=e.node,a=this._buffers[s.piece.bufferIndex].buffer,l=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start),u=a.substring(l+e.remainder,l+s.piece.length);for(s=s.next();s!==o.SENTINEL;){var d=this._buffers[s.piece.bufferIndex].buffer,c=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start);if(s===t.node){u+=d.substring(c,c+t.remainder);break}u+=d.substr(c,s.piece.length),s=s.next()}return u},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},e.prototype.getLength=function(){return this._length},e.prototype.getLineCount=function(){return this._lineCnt},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e, +e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var i=n.node.next();if(!i)return 0;var o=this._buffers[i.piece.bufferIndex],r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o.buffer.charCodeAt(r)}var o=this._buffers[n.node.piece.bufferIndex],s=(r=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start))+n.remainder;return o.buffer.charCodeAt(s)},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},e.prototype.findMatchesInNode=function(e,t,n,o,s,a,l,u,d,c,h){ +var p,f=this._buffers[e.piece.bufferIndex],g=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),m=this.offsetInBuffer(e.piece.bufferIndex,s),v=this.offsetInBuffer(e.piece.bufferIndex,a);t.reset(m);var _={line:0,column:0};do{if(p=t.next(f.buffer)){if(p.index>=v)return c;this.positionInBuffer(e,p.index-g,_);var y=this.getLineFeedCnt(e.piece.bufferIndex,s,_),C=_.line===s.line?_.column-s.column+o:_.column+1,b=C+p[0].length;if(h[c++]=r.createFindMatch(new i.Range(n+y,C,n+y,b),p,u),p.index+p[0].length>=v)return c;if(c>=d)return c}}while(p);return c},e.prototype.findMatchesLineByLine=function(e,t,n,i){var o=[],s=0,a=new r.Searcher(t.wordSeparators,t.regex),l=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===l)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];var d=this.positionInBuffer(l.node,l.remainder),c=this.positionInBuffer(u.node,u.remainder);if(l.node===u.node)return this.findMatchesInNode(l.node,a,e.startLineNumber,e.startColumn,d,c,t,n,i,s,o),o +;for(var h=e.startLineNumber,p=l.node;p!==u.node;){var f=this.getLineFeedCnt(p.piece.bufferIndex,d,p.piece.end);if(f>=1){var g=this._buffers[p.piece.bufferIndex].lineStarts,m=this.offsetInBuffer(p.piece.bufferIndex,p.piece.start),v=g[d.line+f],_=h===e.startLineNumber?e.startColumn:1;if((s=this.findMatchesInNode(p,a,h,_,d,this.positionInBuffer(p,v-m),t,n,i,s,o))>=i)return o;h+=f}var y=h===e.startLineNumber?e.startColumn-1:0;if(h===e.endLineNumber){b=this.getLineContent(h).substring(y,e.endColumn-1);return s=this._findMatchesInLine(t,a,b,e.endLineNumber,y,s,o,n,i),o}if((s=this._findMatchesInLine(t,a,this.getLineContent(h).substr(y),h,y,s,o,n,i))>=i)return o;h++,p=(l=this.nodeAt2(h,1)).node,d=this.positionInBuffer(l.node,l.remainder)}if(h===e.endLineNumber){var C=h===e.startLineNumber?e.startColumn-1:0,b=this.getLineContent(h).substring(C,e.endColumn-1);return s=this._findMatchesInLine(t,a,b,e.endLineNumber,C,s,o,n,i),o}var S=h===e.startLineNumber?e.startColumn:1 +;return s=this.findMatchesInNode(u.node,a,h,S,d,c,t,n,i,s,o),o},e.prototype._findMatchesInLine=function(e,t,n,o,a,l,u,d,c){var h=e.wordSeparators;if(!d&&e.simpleSearch){for(var p=e.simpleSearch,f=p.length,g=n.length,m=-f;-1!==(m=n.indexOf(p,m+f));)if((!h||r.isValidMatch(h,n,g,m,f))&&(u[l++]=new s.FindMatch(new i.Range(o,m+1+a,o,m+1+f+a),null),l>=c))return l;return l}var v;t.reset(0);do{if((v=t.next(n))&&(u[l++]=r.createFindMatch(new i.Range(o,v.index+1+a,o,v.index+1+v[0].length+a),v,d),l>=c))return l}while(v);return l},e.prototype.insert=function(e,n,i){if(void 0===i&&(i=!1),this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value=null,this.root!==o.SENTINEL){var r=this.nodeAt(e),s=r.node,a=r.remainder,l=r.nodeStartOffset,u=s.piece,c=u.bufferIndex,h=this.positionInBuffer(s,a) +;if(0===s.piece.bufferIndex&&u.end.line===this._lastChangeBufferPos.line&&u.end.column===this._lastChangeBufferPos.column&&l+u.length===e&&n.lengthe){var p=[],f=new d(u.bufferIndex,h,u.end,this.getLineFeedCnt(u.bufferIndex,h,u.end),this.offsetInBuffer(c,u.end)-this.offsetInBuffer(c,h));if(this.shouldCheckCRLF()&&this.endWithCR(n)){if(10===this.nodeCharCodeAt(s,a)){var g={line:f.start.line+1,column:0};f=new d(f.bufferIndex,g,f.end,this.getLineFeedCnt(f.bufferIndex,g,f.end),f.length-1),n+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(n)){if(13===this.nodeCharCodeAt(s,a-1)){var m=this.positionInBuffer(s,a-1);this.deleteNodeTail(s,m),n="\r"+n,0===s.piece.length&&p.push(s)}else this.deleteNodeTail(s,h)}else this.deleteNodeTail(s,h);var v=this.createNewPieces(n);f.length>0&&this.rbInsertRight(s,f) +;for(var _=s,y=0;y=0;u--)l=this.rbInsertLeft(l,a[u]);this.validateCRLFWithPrevNode(l),this.deleteNodes(n)},e.prototype.insertContentToNodeRight=function(e,t){ +this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),o=i,r=1;r=o))break;d=i+1}return n?(n.line=i,n.column=u-r,null):{line:i,column:u-r}},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;var o=i[n.line+1],r=i[n.line]+n.column;if(o>r+1)return n.line-t.line;var s=r-1;return 13===this._buffers[e].buffer.charCodeAt(s)?n.line-t.line+1:n.line-t.line},e.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;tt.AverageBufferSize){for(var n=[];e.length>t.AverageBufferSize;){var i=e.charCodeAt(t.AverageBufferSize-1),o=void 0;13===i||i>=55296&&i<=56319?(o=e.substring(0,t.AverageBufferSize-1),e=e.substring(t.AverageBufferSize-1)):(o=e.substring(0,t.AverageBufferSize),e=e.substring(t.AverageBufferSize));var r=l(o);n.push(new d(this._buffers.length,{line:0,column:0},{line:r.length-1,column:o.length-r[r.length-1]},r.length-1,o.length)),this._buffers.push(new c(o,r))}var s=l(e);return n.push(new d(this._buffers.length,{line:0,column:0},{line:s.length-1,column:e.length-s[s.length-1]},s.length-1,e.length)),this._buffers.push(new c(e,s)),n}var a=this._buffers[0].buffer.length,u=l(e,!1),h=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===a&&0!==a&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1}, +h=this._lastChangeBufferPos;for(p=0;p=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var s=this.getAccumulatedValue(n,e-n.lf_left-2),c=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return u+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:u,nodeStartLineNumber:d-(e-1-n.lf_left)}),a.substring(l+s,l+c-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){var s=this.getAccumulatedValue(n,e-n.lf_left-2),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=a.substring(l+s,l+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,u+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==o.SENTINEL;){a=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){var c=this.getAccumulatedValue(n,0),l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=a.substring(l,l+c-t)} +l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=a.substr(l,n.piece.length),n=n.next()}return i},e.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==o.SENTINEL;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var n=e.piece,i=this.positionInBuffer(e,t),o=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var r=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(r!==o)return{index:r,remainder:0}}return{index:o,remainder:i.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,o=n.start.line+t+1;return o>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[o]-i[n.start.line]-n.start.column},e.prototype.deleteNodeTail=function(e,t){ +var n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),s=t,a=this.offsetInBuffer(n.bufferIndex,s),l=this.getLineFeedCnt(n.bufferIndex,n.start,s),u=l-i,c=a-r,h=n.length+c;e.piece=new d(n.bufferIndex,n.start,s,l,h),o.updateTreeMetadata(this,e,c,u)},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),s=t,a=this.getLineFeedCnt(n.bufferIndex,s,n.end),l=a-i,u=r-this.offsetInBuffer(n.bufferIndex,s),c=n.length+u;e.piece=new d(n.bufferIndex,s,n.end,a,c),o.updateTreeMetadata(this,e,u,l)},e.prototype.shrinkNode=function(e,t,n){var i=e.piece,r=i.start,s=i.end,a=i.length,l=i.lineFeedCnt,u=t,c=this.getLineFeedCnt(i.bufferIndex,i.start,u),h=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new d(i.bufferIndex,i.start,u,c,h),o.updateTreeMetadata(this,e,h-a,c-l) +;var p=new d(i.bufferIndex,n,s,this.getLineFeedCnt(i.bufferIndex,n,s),this.offsetInBuffer(i.bufferIndex,s)-this.offsetInBuffer(i.bufferIndex,n)),f=this.rbInsertRight(e,p);this.validateCRLFWithPrevNode(f)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var r=l(t,!1),s=0;se)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;var r={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(r),r}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){for(var n=this.root,i=0;n!==o.SENTINEL;)if(n.left!==o.SENTINEL&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,s),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){if((r=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i} +;t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==o.SENTINEL;){if(n.piece.lineFeedCnt>0){var s=this.getAccumulatedValue(n,0),a=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,s),nodeStartOffset:a}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)},e.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},e.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===o.SENTINEL||0===e.piece.lineFeedCnt)return!1 +;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;return!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)},e.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==o.SENTINEL&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},e.prototype.fixCRLF=function(e,t){var n,i=[],r=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var s=e.piece.length-1,a=e.piece.lineFeedCnt-1 +;e.piece=new d(e.piece.bufferIndex,e.piece.start,n,a,s),o.updateTreeMetadata(this,e,-1,-1),0===e.piece.length&&i.push(e);var l={line:t.piece.start.line+1,column:0},u=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,l,t.piece.end);t.piece=new d(t.piece.bufferIndex,l,t.piece.end,c,u),o.updateTreeMetadata(this,t,-1,-1),0===t.piece.length&&i.push(t);var h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(var p=0;p0){m.sort(function(e,t){return t.lineNumber-e.lineNumber}),S=[];for(var u=0,w=m.length;u0&&m[u-1].lineNumber===E)){var L=m[u].oldContent,x=this.getLineContent(E);0!==x.length&&x!==L&&-1===i.firstNonWhitespaceIndex(x)&&S.push(E)}}}return new r.ApplyEditsResult(C,b,S)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){for(var t=!1,i=e[0].range,o=e[e.length-1].range,s=new n.Range(i.startLineNumber,i.startColumn,o.endLineNumber,o.endColumn),a=i.startLineNumber,l=i.startColumn,u=[],d=0,c=e.length;d0){var h=l.lines.length,p=l.lines[0],f=l.lines[h-1];c=1===h?new n.Range(u,d,u,d+p.length):new n.Range(u,d,u+h-1,f.length+1)}else c=new n.Range(u,d,u,d);t=c.endLineNumber,i=c.endColumn,o.push(c),r=l}return o},e._sortOpsAscending=function(e,t){var i=n.Range.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i},e._sortOpsDescending=function(e,t){var i=n.Range.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i},e}();t.PieceTreeTextBuffer=s}), +define(t[515],n([1,0,6,24,508,167]),function(e,t,n,i,o,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t,n,i,o,r,s,a){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=o,this._containsRTL=r,this._isBasicASCII=s,this._normalizeEOL=a}return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?e===i.DefaultEndOfLine.LF?"\n":"\r\n":n>t/2?"\r\n":"\n"},e.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var i=0,s=n.length;i=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}},e.prototype._acceptChunk1=function(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},e.prototype._acceptChunk2=function(e){var t=r.createLineStarts(this._tmpLineStarts,e);this.chunks.push(new r.StringBuffer(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=n.containsRTL(e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(), +new s(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},e.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=r.createLineStartsFast(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}();t.PieceTreeTextBufferBuilder=a}),define(t[100],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",t.DEFAULT_WORD_REGEXP=function(e){void 0===e&&(e="");for(var n="(-?\\d*\\.\\d\\w*)|([^",i=0;i=0||(n+="\\"+t.USUAL_WORD_SEPARATORS[i]);return n+="\\s]+)",new RegExp(n,"g")}(),t.ensureValidWordDefinition=function(e){var n=t.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)n=e;else{var i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"), +n=new RegExp(e.source,i)}return n.lastIndex=0,n},t.getWordAtText=function(e,t,n,i){t.lastIndex=0;var o=t.exec(n);if(!o)return null;var r=o[0].indexOf(" ")>=0?function(e,t,n,i){var o=e-1-i;t.lastIndex=0;for(var r;r=t.exec(n);){if(r.index>o)return null;if(t.lastIndex>=o)return{word:r[0],startColumn:i+1+r.index,endColumn:i+1+t.lastIndex}}return null}(e,t,n,i):function(e,t,n,i){var o=e-1-i,r=n.lastIndexOf(" ",o-1)+1,s=n.indexOf(" ",o);-1===s&&(s=n.length),t.lastIndex=r;for(var a;a=t.exec(n);)if(a.index<=o&&t.lastIndex>=o)return{word:a[0],startColumn:i+1+a.index,endColumn:i+1+t.lastIndex};return null}(e,t,n,i);return t.lastIndex=0,r}}),define(t[528],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this._languageIdentifier=e}return e.prototype.getId=function(){return this._languageIdentifier.language},e.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},e}();t.FrankensteinMode=n}),define(t[58],n([1,0]),function(e,t){ +"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(t.IndentAction||(t.IndentAction={}));var n=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;ts&&(s=u)}return s}if("string"==typeof e)return r?"*"===e?5:e===o?10:0:0;if(e){var d=e.language,c=e.pattern,h=e.scheme,p=e.hasAccessToAllModels;if(!r&&!p)return 0;s=0;if(h)if(h===t.scheme)s=10;else{ +if("*"!==h)return 0;s=5}if(d)if(d===o)s=10;else{if("*"!==d)return 0;s=Math.max(s,5)}if(c){if(c!==t.fsPath&&!n.match(c,t.fsPath))return 0;s=10}return s}return 0}Object.defineProperty(t,"__esModule",{value:!0}),t.score=i}),define(t[544],n([1,0,83,94]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){for(var t=0,n=0,o=0,r=e.length;ot&&(t=l),a>n&&(n=a),u>n&&(n=u)}t++,n++;for(var d=new i.Uint8Matrix(n,t,0),o=0,r=e.length;o=this._maxCharCode?0:this._states.get(e,t)},e}(),r=null,s=null,a=function(){function e(){}return e._createLink=function(e,t,n,i,o){var r=o-1;do{var s=t.charCodeAt(r);if(2!==e.get(s))break;r--}while(r>i);if(i>0){var a=t.charCodeAt(i-1),l=t.charCodeAt(r);(40===a&&41===l||91===a&&93===l||123===a&&125===l)&&r--}return{range:{startLineNumber:n, +startColumn:i+1,endLineNumber:n,endColumn:r+2},url:t.substring(i,r+1)}},e.computeLinks=function(t){for(var i=(null===r&&(r=new o([[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]])),r),a=function(){if(null===s){for(s=new n.CharacterClassifier(0),e=0;e<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;e++)s.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(e),1);for(var e=0;e<".,;".length;e++)s.set(".,;".charCodeAt(e),2)}return s}(),l=[],u=1,d=t.getLineCount();u<=d;u++){for(var c=t.getLineContent(u),h=c.length,p=0,f=0,g=0,m=1,v=!1,_=!1,y=!1;p0&&e.getLanguageId(a-1)===r;)a--;return new n(e,r,a,s+1,e.getStartOffset(a),e.getEndOffset(s))};var n=function(){function e(e,t,n,i,o,r){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=o,this._lastCharOffset=r}return e.prototype.getLineContent=function(){ +return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();t.ScopedLineTokens=n,t.ignoreBracketsInToken=function(e){return 0!=(7&e)}}),define(t[550],n([1,0,58]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(function(e){return new n.StandardAutoClosingPairConditional(e)}):e.brackets?this._autoClosingPairs=e.brackets.map(function(e){return new n.StandardAutoClosingPairConditional({open:e[0],close:e[1]})}):this._autoClosingPairs=[],this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs} +return e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},e.prototype.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;for(var i=t.findTokenIndexAtOffset(n-2),o=t.getStandardTokenType(i),r=0;r=0?((i+=n?1:-1)<0?i=e.length-1:i%=e.length,e[i]):null},e.INSTANCE=new e,e}();t.BasicInplaceReplace=n}),define(t[553],n([1,0,10,6,58]),function(e,t,n,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(t){(t=t||{}).brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=t.brackets.map(function(t){return{open:t[0], +openRegExp:e._createOpenBracketRegExp(t[0]),close:t[1],closeRegExp:e._createCloseBracketRegExp(t[1])}}),this._regExpRules=t.regExpRules||[]}return e.prototype.onEnter=function(e,t,n){for(var i=0,r=this._regExpRules.length;i0&&n.length>0)for(var i=0,r=this._brackets.length;i0)for(var i=0,r=this._brackets.length;i=0;n--)t+=e.charAt(n);return t}(e=n)),t}}(),f=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,o){var r=n.match(e) +;if(!r)return null;var s=n.length-r.index,a=r[0].length,l=o+s;return new i.Range(t,l-a+1,t,l+1)},e.findPrevBracketInToken=function(e,t,n,i,o){var r=p(n).substring(n.length-o,n.length-i);return this._findPrevBracketInText(e,t,r,i)},e.findNextBracketInText=function(e,t,n,o){var r=n.match(e);if(!r)return null;var s=r.index,a=r[0].length;if(0===a)return null;var l=o+s;return new i.Range(t,l+1,t,l+1+a)},e.findNextBracketInToken=function(e,t,n,i,o){var r=n.substring(i,o);return this.findNextBracketInText(e,t,r,i)},e}();t.BracketsUtils=f}),define(t[560],n([1,0,91,105,58]),function(e,t,n,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){n=n||{},this._richEditBrackets=e,this._complexAutoClosePairs=t.filter(function(e){return e.open.length>1&&!!e.close}).map(function(e){return new o.StandardAutoClosingPairConditional(e)}),n.docComment&&this._complexAutoClosePairs.push(new o.StandardAutoClosingPairConditional({open:n.docComment.open,close:n.docComment.close}))} +return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets.length;t=0))return{appendText:s.close}}}}return null},e}();t.BracketElectricCharacterSupport=r}),define(t[41],n([1,0,550,560,553,551,105,9,10,6,2,100,91,3,58]),function(e,t,n,i,o,r,s,a,l,u,d,c,h,p,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function e(t,i,o){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var s=null;i&&(s=i._conf),this._conf=e._mergeConf(s,o),this.onEnter=e._handleOnEnter(this._conf), +this.comments=e._handleComments(this._conf),this.characterPair=new n.CharacterPairSupport(this._conf),this.wordDefinition=this._conf.wordPattern||c.DEFAULT_WORD_REGEXP,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules&&(this.indentRulesSupport=new r.IndentRulesSupport(this._conf.indentationRules)),this.foldingRules=this._conf.folding||{}}return Object.defineProperty(e.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new s.RichEditBrackets(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"electricCharacter",{get:function(){if(!this._electricCharacter){var e=[];this._conf.autoClosingPairs?e=this._conf.autoClosingPairs:this._conf.brackets&&(e=this._conf.brackets.map(function(e){return{open:e[0],close:e[1]}})),this._electricCharacter=new i.BracketElectricCharacterSupport(this.brackets,e,this._conf.__electricCharacterSupport)}return this._electricCharacter}, +enumerable:!0,configurable:!0}),e._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},e._handleOnEnter=function(e){var t={},n=!0;return e.brackets&&(n=!1,t.brackets=e.brackets),e.indentationRules&&(n=!1),e.onEnterRules&&(n=!1,t.regExpRules=e.onEnterRules),n?null:new o.OnEnterSupport(t)},e._handleComments=function(e){var t=e.comments;if(!t)return null;var n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){ +var i=t.blockComment,o=i[0],r=i[1];n.blockCommentStartToken=o,n.blockCommentEndToken=r}return n},e}();t.RichEditSupport=g;var m=function(){return function(){}}();t.LanguageConfigurationChangeEvent=m;var v=function(){function e(){this._onDidChange=new a.Emitter,this.onDidChange=this._onDidChange.event,this._entries=[]}return e.prototype.register=function(e,t){var n=this,i=this._getRichEditSupport(e.id),o=new g(e,i,t);return this._entries[e.id]=o,this._onDidChange.fire({languageIdentifier:e}),d.toDisposable(function(){n._entries[e.id]===o&&(n._entries[e.id]=i,n._onDidChange.fire({languageIdentifier:e}))})},e.prototype._getRichEditSupport=function(e){return this._entries[e]||null},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t?t.electricCharacter||null:null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,n){ +var i=h.createScopedLineTokens(t,n-1),o=this._getElectricCharacterSupport(i.languageId);return o?o.onElectricCharacter(e,i,n-i.firstCharOffset):null},e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t?t.comments||null:null},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t?t.characterPair||null:null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,n){var i=h.createScopedLineTokens(t,n-1),o=this._getCharacterPairSupport(i.languageId);return!!o&&o.shouldAutoClosePair(e,i,n-i.firstCharOffset)},e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return t?c.ensureValidWordDefinition(t.wordDefinition||null):c.ensureValidWordDefinition(null)},e.prototype.getFoldingRules=function(e){ +var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t?t.indentRulesSupport||null:null},e.prototype.getPrecedingValidLine=function(e,t,n){var i=e.getLanguageIdAtPosition(t,0);if(t>1){var o=t-1,r=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==i)return r;var s=e.getLineContent(o);if(!n.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return o;r=o}}return-1},e.prototype.getInheritIndentForLine=function(e,t,n){void 0===n&&(n=!0);var i=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!i)return null;if(t<=1)return{indentation:"",action:null};var o=this.getPrecedingValidLine(e,t,i);if(o<0)return null;if(o<1)return{indentation:"",action:null};var r=e.getLineContent(o);if(i.shouldIncrease(r)||i.shouldIndentNextLine(r))return{indentation:u.getLeadingWhitespace(r),action:f.IndentAction.Indent,line:o};if(i.shouldDecrease(r))return{indentation:u.getLeadingWhitespace(r),action:null,line:o};if(1===o)return{ +indentation:u.getLeadingWhitespace(e.getLineContent(o)),action:null,line:o};var s=o-1,a=i.getIndentMetadata(e.getLineContent(s));if(!(3&a)&&4&a){for(var l=0,d=s-1;d>0;d--)if(!i.shouldIndentNextLine(e.getLineContent(d))){l=d;break}return{indentation:u.getLeadingWhitespace(e.getLineContent(l+1)),action:null,line:l+1}}if(n)return{indentation:u.getLeadingWhitespace(e.getLineContent(o)),action:null,line:o};for(d=o;d>0;d--){var c=e.getLineContent(d);if(i.shouldIncrease(c))return{indentation:u.getLeadingWhitespace(c),action:f.IndentAction.Indent,line:d};if(i.shouldIndentNextLine(c)){for(var l=0,h=d-1;h>0;h--)if(!i.shouldIndentNextLine(e.getLineContent(d))){l=h;break}return{indentation:u.getLeadingWhitespace(e.getLineContent(l+1)),action:null,line:l+1}}if(i.shouldDecrease(c))return{indentation:u.getLeadingWhitespace(c),action:null,line:d}}return{indentation:u.getLeadingWhitespace(e.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,i){var o=this.getIndentRulesSupport(t) +;if(!o)return null;var r=this.getInheritIndentForLine(e,n),s=e.getLineContent(n);if(r){var a=r.line;if(void 0!==a){var d=this._getOnEnterSupport(t),c=null;try{c=d.onEnter("",e.getLineContent(a),"")}catch(e){l.onUnexpectedError(e)}if(c){var h=u.getLeadingWhitespace(e.getLineContent(a));return c.removeText&&(h=h.substring(0,h.length-c.removeText)),c.indentAction===f.IndentAction.Indent||c.indentAction===f.IndentAction.IndentOutdent?h=i.shiftIndent(h):c.indentAction===f.IndentAction.Outdent&&(h=i.unshiftIndent(h)),o.shouldDecrease(s)&&(h=i.unshiftIndent(h)),c.appendText&&(h+=c.appendText),u.getLeadingWhitespace(h)}}return o.shouldDecrease(s)?r.action===f.IndentAction.Indent?r.indentation:i.unshiftIndent(r.indentation):r.action===f.IndentAction.Indent?i.shiftIndent(r.indentation):r.indentation}return null},e.prototype.getIndentForEnter=function(e,t,n,i){e.forceTokenization(t.startLineNumber);var o,r,s=e.getLineTokens(t.startLineNumber),a=h.createScopedLineTokens(s,t.startColumn-1),l=a.getLineContent(),d=!1 +;if(a.firstCharOffset>0&&s.getLanguageId(0)!==a.languageId?(d=!0,o=l.substr(0,t.startColumn-1-a.firstCharOffset)):o=s.getLineContent().substring(0,t.startColumn-1),t.isEmpty())r=l.substr(t.startColumn-1-a.firstCharOffset);else{r=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-a.firstCharOffset)}var c=this.getIndentRulesSupport(a.languageId);if(!c)return null;var p=o,g=u.getLeadingWhitespace(o);if(!i&&!d){var m=this.getInheritIndentForLine(e,t.startLineNumber);c.shouldDecrease(o)&&m&&(g=m.indentation,m.action!==f.IndentAction.Indent&&(g=n.unshiftIndent(g))),p=g+u.ltrim(u.ltrim(o," "),"\t")}var v={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:function(n){return n===t.startLineNumber?p:e.getLineContent(n)}},_=u.getLeadingWhitespace(s.getLineContent()),y=this.getInheritIndentForLine(v,t.startLineNumber+1) +;if(!y){var C=d?_:g;return{beforeEnter:C,afterEnter:C}}var b=d?_:y.indentation;return y.action===f.IndentAction.Indent&&(b=n.shiftIndent(b)),c.shouldDecrease(r)&&(b=n.unshiftIndent(b)),{beforeEnter:d?_:g,afterEnter:b}},e.prototype.getIndentActionForType=function(e,t,n,i){var o=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),r=this.getIndentRulesSupport(o.languageId);if(!r)return null;var s,a=o.getLineContent(),l=a.substr(0,t.startColumn-1-o.firstCharOffset);if(t.isEmpty())s=a.substr(t.startColumn-1-o.firstCharOffset);else{s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-o.firstCharOffset)}if(!r.shouldDecrease(l+s)&&r.shouldDecrease(l+n+s)){var u=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!u)return null;var d=u.indentation;return u.action!==f.IndentAction.Indent&&(d=i.unshiftIndent(d)),d}return null},e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id) +;return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t?t.onEnter||null:null},e.prototype.getRawEnterActionAtPosition=function(e,t,n){var i=this.getEnterAction(e,new p.Range(t,n,t,n));return i?i.enterAction:null},e.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this._getOnEnterSupport(i.languageId);if(!o)return null;var r,s=i.getLineContent(),a=s.substr(0,t.startColumn-1-i.firstCharOffset);if(t.isEmpty())r=s.substr(t.startColumn-1-i.firstCharOffset);else{r=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-i.firstCharOffset)}var u=t.startLineNumber,d="";if(u>1&&0===i.firstCharOffset){var c=this.getScopedLineTokens(e,u-1);c.languageId===i.languageId&&(d=c.getLineContent())}var h=null;try{h=o.onEnter(d,a,r)}catch(e){ +l.onUnexpectedError(e)}return h?(h.appendText||(h.indentAction===f.IndentAction.Indent||h.indentAction===f.IndentAction.IndentOutdent?h.appendText="\t":h.appendText=""),h.removeText&&(n=n.substring(0,n.length-h.removeText)),{enterAction:h,indentation:n}):null},e.prototype.getIndentationAtPosition=function(e,t,n){var i=e.getLineContent(t),o=u.getLeadingWhitespace(i);return o.length>n-1&&(o=o.substring(0,n-1)),o},e.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var i=e.getLineTokens(t),o=isNaN(n)?e.getLineMaxColumn(t)-1:n-1;return h.createScopedLineTokens(i,o)},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t?t.brackets||null:null},e}();t.LanguageConfigurationRegistryImpl=v,t.LanguageConfigurationRegistry=new v}),define(t[204],n([1,0,27]),function(e,t,n){"use strict";function i(e){if(!e||!Array.isArray(e))return[];for(var t=[],n=0,i=0,o=e.length;i=1&&""===e[0].token;){var r=e.shift();-1!==r.fontStyle&&(n=r.fontStyle),null!==r.foreground&&(i=r.foreground),null!==r.background&&(o=r.background)}for(var a=new u,l=0,c=t;lt?1:0}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return function(e,t,n,i,o){this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=o}}();t.ParsedTokenThemeRule=a,t.parseTokenTheme=i;var l=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,u=function(){function e(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return e.prototype.getId=function(e){if(null===e)return 0;var t=e.match(l);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();var i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=n.Color.fromHex("#"+e),i)},e.prototype.getColorMap=function(){return this._id2color.slice(0)},e}();t.ColorMap=u;var d=function(){function e(e,t){this._colorMap=e,this._root=t,this._cache=new Map}return e.createFromRawTokenTheme=function(e,t){return this.createFromParsedTokenTheme(i(e),t)},e.createFromParsedTokenTheme=function(e,t){return o(e,t)}, +e.prototype.getColorMap=function(){return this._colorMap.getColorMap()},e.prototype._match=function(e){return this._root.match(e)},e.prototype.match=function(e,t){var n=this._cache.get(t);if(void 0===n){var i=this._match(t),o=r(t);n=(i.metadata|o<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0},e}();t.TokenTheme=d;var c=/\b(comment|string|regex)\b/;t.toStandardTokenType=r,t.strcmp=s;var h=function(){function e(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)},e.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},e}();t.ThemeTrieElementRule=h;var p=function(){function e(e){this._mainRule=e,this._children=new Map}return e.prototype.match=function(e){ +if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");-1===i?(t=e,n=""):(t=e.substring(0,i),n=e.substring(i+1));var o=this._children.get(t);return void 0!==o?o.match(n):this._mainRule},e.prototype.insert=function(t,n,i,o){if(""!==t){var r,s,a=t.indexOf(".");-1===a?(r=t,s=""):(r=t.substring(0,a),s=t.substring(a+1));var l=this._children.get(r);void 0===l&&(l=new e(this._mainRule.clone()),this._children.set(r,l)),l.insert(s,n,i,o)}else this._mainRule.acceptOverwrite(n,i,o)},e}();t.ThemeTrieElement=p,t.generateTokensCSSForColorMap=function(e){for(var t=[],n=1,i=e.length;ni&&(p=i-f);var g=u.color,m=this._color2Id[g] +;m||(m=++this._lastAssignedId,this._color2Id[g]=m,this._id2Color[m]=g);var v=new n(p-f,p+f,m);u.setColorZone(v),s.push(v)}return this._colorZonesInvalid=!1,s.sort(n.compare),s},e}();t.OverviewZoneManager=o}),define(t[88],n([1,0,3]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height}return e.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)},e.prototype.getDecorationsInViewport=function(){ +return this.viewportData.getDecorationsInViewport()},e}();t.RestrictedRenderingContext=i;var r=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o._viewLines=i,o}return o(t,e),t.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)},t.prototype.visibleRangeForPosition=function(e){var t=this._viewLines.visibleRangesForRange2(new n.Range(e.lineNumber,e.column,e.lineNumber,e.column));return t?t[0]:null},t}(i);t.RenderingContext=r;var s=function(){return function(e,t){this.lineNumber=e,this.ranges=t}}();t.LineVisibleRanges=s;var a=function(){function e(e,t){this.left=Math.round(e),this.width=Math.round(t)}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e}();t.HorizontalRange=a}),define(t[209],n([1,0,88]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.left=e,this.width=t}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"}, +e.compare=function(e,t){return e.left-t.left},e}(),o=function(){function e(){}return e._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},e._detachRange=function(e,t){e.selectNodeContents(t)},e._readClientRects=function(e,t,n,i,o){var r=this._createRange();try{return r.setStart(e,t),r.setEnd(n,i),r.getClientRects()}catch(e){return null}finally{this._detachRange(r,o)}},e._mergeAdjacentRanges=function(e){if(1===e.length)return[new n.HorizontalRange(e[0].left,e[0].width)];e.sort(i.compare);for(var t=[],o=0,r=e[0].left,s=e[0].width,a=1,l=e.length;a=d?s=Math.max(s,d+c-r):(t[o++]=new n.HorizontalRange(r,s),r=d,s=c)}return t[o++]=new n.HorizontalRange(r,s),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],o=0,r=e.length;oa)return null;(t=Math.min(a,Math.max(0,t)))!==(i=Math.min(a,Math.max(0,i)))&&i>0&&0===o&&(i--,o=Number.MAX_VALUE);var l=e.children[t].firstChild,u=e.children[i].firstChild;if(l&&u||(!l&&0===n&&t>0&&(l=e.children[t-1].firstChild,n=1073741824),!u&&0===o&&i>0&&(u=e.children[i-1].firstChild,o=1073741824)),!l||!u)return null;n=Math.min(l.textContent.length,Math.max(0,n)),o=Math.min(u.textContent.length,Math.max(0,o));var d=this._readClientRects(l,n,u,o,s);return this._createHorizontalRangesFromClientRects(d,r)},e}();t.RangeUtil=o}),define(t[210],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n,i){this.configuration=e,this.theme=t,this.model=n,this.viewLayout=n.viewLayout,this.privateViewEventBus=i}return e.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)},e.prototype.removeEventHandler=function(e){ +this.privateViewEventBus.removeEventHandler(e)},e}();t.ViewContext=n}),define(t[211],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return e.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t0&&this._emit(e)}},t.prototype._emit=function(e){for(var t=this._listeners.slice(0),i=0,o=t.length;in)&&(!d.isEmpty()||0!==u.type&&3!==u.type)){var c=d.startLineNumber===n?d.startColumn:i,h=d.endLineNumber===n?d.endColumn:o;r[s++]=new e(c,h,u.inlineClassName,u.type)}}return r},e.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.classNamet.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},e}();t.LineDecoration=i;var o=function(){return function(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n}}();t.DecorationSegment=o;var r=function(){function e(){this.stopOffsets=[],this.classNames=[], +this.count=0}return e.prototype.consumeLowerThan=function(e,t,n){for(;this.count>0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t);break}this.count++},e}(),s=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var i=[],o=new r,s=0,a=0,l=t.length;a1){p=e.charCodeAt(d-2);n.isHighSurrogate(p)&&d--}if(c>1){var p=e.charCodeAt(c-2);n.isHighSurrogate(p)&&c--} +var f=d-1,g=c-2;s=o.consumeLowerThan(f,s,i),0===o.count&&(s=f),o.insert(g,h)}return o.consumeLowerThan(1073741824,s,i),i},e}();t.LineDecorationsNormalizer=s}),define(t[96],n([1,0,125,6,112]),function(e,t,n,i,o){"use strict";function r(e,t){if(0===e.lineContent.length){var o=0,r=" ";if(e.lineDecorations.length>0){for(var a=[],d=0,h=e.lineDecorations.length;d')}return t.appendASCIIString(r),new u(new l(0,0),!1,o)}return function(e,t){var n=e.fontIsMonospace,o=e.containsForeignElements,r=e.lineContent,s=e.len,a=e.isOverflowing,d=e.parts,c=e.tabSize,h=e.containsRTL,p=e.spaceWidth,f=e.renderWhitespace,g=e.renderControlCharacters,m=new l(s+1,d.length),v=0,_=0,y=0,C=0,b=0;t.appendASCIIString("");for(var S=0,w=d.length;S=0;if(y=0,t.appendASCIIString('0&&(k>1?t.write1(8594):t.write1(65515),k--);k>0;)t.write1(160),k--}else t.write1(183);y++}C=I}else{I=0;for(h&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);v0;)t.write1(160),I++,k--;break;case 32:t.write1(160),I++;break;case 60:t.appendASCIIString("<"),I++;break;case 62:t.appendASCIIString(">"),I++;break;case 38:t.appendASCIIString("&"),I++;break;case 0:t.appendASCIIString("�"),I++;break +;case 65279:case 8232:t.write1(65533),I++;break;default:i.isFullWidthCharacter(T)&&_++,g&&T<32?(t.write1(9216+T),I++):(t.write1(T),I++)}y++}C=I}t.appendASCIIString("")}m.setPartData(s,d.length-1,y,b),a&&t.appendASCIIString("");return t.appendASCIIString(""),new u(m,h,o)}(function(e){var t,o,r=e.useMonospaceOptimizations,a=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(i[o++]=new s(t,""));for(var r=0,a=e.getCount();r=n){i[o++]=new s(n,u);break}i[o++]=new s(l,u)}}return i}(e.lineTokens,e.fauxIndentLength,o);2!==e.renderWhitespace&&1!==e.renderWhitespace||(l=function(e,t,n,o,r,a,l,u){var d,c=[],h=0,p=0,f=o[p].type,g=o[p].endIndex,m=i.firstNonWhitespaceIndex(e);-1===m?(m=t,d=t):d=i.lastNonWhitespaceIndex(e);for(var v=0,_=0;_d)b=!0;else if(9===C)b=!0;else if(32===C)if(u)if(y)b=!0;else{var S=_+1=a)&&(c[h++]=new s(_,"vs-whitespace"),v%=a):(_===g||b&&_>r)&&(c[h++]=new s(_,f),v%=a),9===C?v=a:i.isFullWidthCharacter(C)?v+=2:v++,y=b,_===g&&(f=o[++p].type,g=o[p].endIndex)}var w=!1;if(y)if(n&&u){var E=t>0?e.charCodeAt(t-1):0,L=t>1?e.charCodeAt(t-2):0;32===E&&32!==L&&9!==L||(w=!0)}else w=!0;return c[h++]=new s(t,w?"vs-whitespace":f),c}(a,o,e.continuesWithWrappedLine,l,e.fauxIndentLength,e.tabSize,r,1===e.renderWhitespace));var u=0;if(e.lineDecorations.length>0){for(var d=0,h=e.lineDecorations.length;dc&&(c=v.startOffset,u[d++]=new s(c,m)),!(v.endOffset+1<=g)){c=g,u[d++]=new s(c,m+" "+v.className);break}c=v.endOffset+1,u[d++]=new s(c,m+" "+v.className),l++}g>c&&(c=g,u[d++]=new s(c,m))}var _=i[i.length-1].endIndex;if(l50){for(var c=l.type,h=Math.ceil(d/50),p=1;p>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,n,i){var o=(t<<16|n<<0)>>>0;this._data[e]=o,this._absoluteOffsets[e]=i+n}, +e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,n,i){if(0===this.length)return 0;for(var o=(t<<16|i<<0)>>>0,r=0,s=this.length-1;r+1>>1,l=this._data[a];if(l===o)return a;l>o?s=a:r=a}if(r===s)return r;var u=this._data[r],d=this._data[s];if(u===o)return r;if(d===o)return s;var c=e.getPartIndex(u);return i-e.getCharIndex(u)<=(c!==e.getPartIndex(d)?n:e.getCharIndex(d))-i?r:s},e}();t.CharacterMapping=l;var u=function(){return function(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}}();t.RenderLineOutput=u,t.renderViewLine=r;var d=function(){return function(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i}}();t.RenderLineOutput2=d,t.renderViewLine2=function(e){var t=o.createStringBuilder(1e4),n=r(e,t) +;return new d(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)};var c=function(){return function(e,t,n,i,o,r,s,a,l,u,d){this.fontIsMonospace=e,this.lineContent=t,this.len=n,this.isOverflowing=i,this.parts=o,this.containsForeignElements=r,this.tabSize=s,this.containsRTL=a,this.spaceWidth=l,this.renderWhitespace=u,this.renderControlCharacters=d}}()}),define(t[215],n([1,0,3]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,i,o){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=i,this._model=o,this.visibleRange=new n.Range(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}return e.prototype.getViewLineRenderingData=function(e){ +return this._model.getViewLineRenderingData(this.visibleRange,e)},e.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},e}();t.ViewportData=i}),define(t[216],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._heights=[],this._minWidths=[],this._ids=[],this._afterLineNumbers=[],this._ordinals=[],this._prefixSum=[],this._prefixSumValidIndex=-1,this._whitespaceId2Index={},this._lastWhitespaceId=0,this._minWidth=-1}return e.findInsertionIndex=function(e,t,n,i){for(var o=0,r=e.length;o>>1;t===e[s]?i=t&&(this._whitespaceId2Index[u]=d+1)}this._whitespaceId2Index[e.toString()]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},e.prototype.changeWhitespace=function(e,t,n){e|=0,t|=0,n|=0;var i=!1;return i=this.changeWhitespaceHeight(e,n)||i,i=this.changeWhitespaceAfterLineNumber(e,t)||i},e.prototype.changeWhitespaceHeight=function(e,t){t|=0;var n=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(n)){var i=this._whitespaceId2Index[n];if(this._heights[i]!==t)return this._heights[i]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1),!0}return!1},e.prototype.changeWhitespaceAfterLineNumber=function(t,n){n|=0;var i=(t|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(i)){ +var o=this._whitespaceId2Index[i];if(this._afterLineNumbers[o]!==n){var r=this._ordinals[o],s=this._heights[o],a=this._minWidths[o];this.removeWhitespace(t);var l=e.findInsertionIndex(this._afterLineNumbers,n,this._ordinals,r);return this._insertWhitespaceAtIndex(t,l,n,r,s,a),!0}}return!1},e.prototype.removeWhitespace=function(e){var t=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(t)){var n=this._whitespaceId2Index[t];return delete this._whitespaceId2Index[t],this._removeWhitespaceAtIndex(n),this._minWidth=-1,!0}return!1},e.prototype._removeWhitespaceAtIndex=function(e){e|=0,this._heights.splice(e,1),this._minWidths.splice(e,1),this._ids.splice(e,1),this._afterLineNumbers.splice(e,1),this._ordinals.splice(e,1),this._prefixSum.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1);for(var t=Object.keys(this._whitespaceId2Index),n=0,i=t.length;n=e&&(this._whitespaceId2Index[o]=r-1)}}, +e.prototype.onLinesDeleted=function(e,t){e|=0,t|=0;for(var n=0,i=this._afterLineNumbers.length;nt&&(this._afterLineNumbers[n]-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){e|=0,t|=0;for(var n=0,i=this._afterLineNumbers.length;n=t.length||t[o+1]>=e)return o;n=o+1|0}else i=o-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t1?this._lineHeight*(e-1):0)+this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceMinWidth=function(){return this._whitespaces.getMinWidth()},e.prototype.isAfterLines=function(e){return e>this.getLinesTotalHeight()},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if((e|=0)<0)return 1;for(var t=0|this._lineCount,n=this._lineHeight,i=1,o=t;i=s+n)i=r+1;else{if(e>=s)return r;o=r}}return i>t?t:i},e.prototype.getLinesViewportData=function(e,t){e|=0,t|=0 +;var n,i,o=this._lineHeight,r=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(r),a=0|this._lineCount,l=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(r),u=0|this._whitespaces.getCount();-1===l?(l=u,i=a+1,n=0):(i=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(l),n=0|this._whitespaces.getHeightForWhitespaceIndex(l));var d=s,c=d,h=0;s>=5e5&&(h=5e5*Math.floor(s/5e5),c-=h=Math.floor(h/o)*o);for(var p=[],f=e+(t-e)/2,g=-1,m=r;m<=a;m++){if(-1===g){var v=d;(v<=f&&ff)&&(g=m)}for(d+=o,p[m-r]=c,c+=o;i===m;)c+=n,d+=n,++l>=u?i=a+1:(i=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(l),n=0|this._whitespaces.getHeightForWhitespaceIndex(l));if(d>=t){a=m;break}}-1===g&&(g=a);var _=0|this.getVerticalOffsetForLineNumber(a),y=r,C=a;return yt&&C--,{bigNumbersDelta:h,startLineNumber:r,endLineNumber:a,relativeVerticalOffset:p,centeredLineNumber:g,completelyVisibleStartLineNumber:y,completelyVisibleEndLineNumber:C}}, +e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e|=0;var t,n=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e);t=n>=1?this._lineHeight*n:0;var i;return i=e>0?this._whitespaces.getAccumulatedHeight(e-1):0,t+i},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e|=0;var t,n,i,o=0,r=this._whitespaces.getCount()-1;if(r<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(r)+this._whitespaces.getHeightForWhitespaceIndex(r))return-1;for(;o=n+i)o=t+1;else{if(e>=n)return t;r=t}return o},e.prototype.getWhitespaceAtVerticalOffset=function(e){e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this._whitespaces.getCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var i=this._whitespaces.getHeightForWhitespaceIndex(t);return{id:this._whitespaces.getIdForWhitespaceIndex(t), +afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:i}},e.prototype.getWhitespaceViewportData=function(e,t){e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this._whitespaces.getCount()-1;if(n<0)return[];for(var o=[],r=n;r<=i;r++){var s=this.getVerticalOffsetForWhitespaceIndex(r),a=this._whitespaces.getHeightForWhitespaceIndex(r);if(s>=t)break;o.push({id:this._whitespaces.getIdForWhitespaceIndex(r),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:s,height:a})}return o},e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},e}();t.LinesLayout=i}),define(t[129],n([1,0,94]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){this.index=e,this.remainder=t}}();t.PrefixSumIndexOfResult=i;var o=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length), +this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,t){e=n.toUint32(e);var i=this.values,o=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(i.length+r),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+r),this.values.set(t,e),e-1=0&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=n.toUint32(e),t=n.toUint32(t),this.values[e]!==t&&(this.values[e]=t,e-1=i.length)return!1;var r=i.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(i.length-t), +this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=n.toUint32(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue() +;for(var t,n,o,r=0,s=this.values.length-1;r<=s;)if(t=r+(s-r)/2|0,n=this.prefixSum[t],o=n-this.values[t],e=n))break;r=t+1}return new i(t,e-o)},e}();t.PrefixSumComputer=o;var r=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new o(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t=n._lines.length))return t=n._lines[o],s=n._wordenize(t,e),r=0,o+=1,a() +;i.done=!0,i.value=void 0}return i};return{next:a}},t.prototype._wordenize=function(e,t){var n,i=[];for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)i.push({start:n.index,end:n.index+n[0].length});return i},t.prototype.getValueInRange=function(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(var r=n+1;rthis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{var o=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>o&&(n=o,i=!0)}return i?{lineNumber:t,column:n}:e},t}(u.MirrorTextModel),m=function(){function t(e){this._foreignModuleFactory=e,this._foreignModule=null}return t.prototype.computeDiff=function(e,t,n){var o=this._getModel(e),r=this._getModel(t);if(!o||!r)return null +;var a=o.getLinesContent(),l=r.getLinesContent(),u=new s.DiffComputer(a,l,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0});return i.TPromise.as(u.computeDiff())},t.prototype.computeMoreMinimalEdits=function(e,n){var o=this._getModel(e);if(!o)return i.TPromise.as(n);for(var s,l=[],u=0,d=n;ut._diffLimit)l.push({range:h,text:p});else for(var m=a.stringDiff(g,p,!1),v=o.offsetAt(r.Range.lift(h).getStartPosition()),_=0,y=m;_=n,u=s,d=i.viewportHeight-s>=n,c=e.left;return c+t>i.scrollLeft+i.viewportWidth&&(c=i.scrollLeft+i.viewportWidth-t),cthis._contentWidth)return null;var s=e.top-i,a=e.top+this._lineHeight,l=r+this._contentLeft,u=n.getDomNodePagePosition(this._viewDomNode.domNode),d=u.top+s-n.StandardWindow.scrollY,c=u.top+a-n.StandardWindow.scrollY,h=u.left+l-n.StandardWindow.scrollX,p=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,f=d>=22,g=c+i<=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-22;if(h+t+20>p){h-=m=h-(p-t-20),l-=m}if(h<0){var m=h;h-=m,l-=m}return this._fixedOverflowWidgets&&(s=d,a=c,l=h),{aboveTop:s,fitsAbove:f,belowTop:a,fitsBelow:g,left:l}},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new a(e.top,e.left+this._contentLeft)},e.prototype._getTopLeft=function(e){if(!this._viewPosition)return null;var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return null +;var n=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop;return new a(n,t.left)},e.prototype._prepareRenderWidget=function(e,t){var n=this;if(!e)return null;for(var i=null,o=function(){if(!i){if(-1===n._cachedDomNodeClientWidth||-1===n._cachedDomNodeClientHeight){var o=n.domNode.domNode;n._cachedDomNodeClientWidth=o.clientWidth,n._cachedDomNodeClientHeight=o.clientHeight}i=n.allowEditorOverflow?n._layoutBoxInPage(e,n._cachedDomNodeClientWidth,n._cachedDomNodeClientHeight,t):n._layoutBoxInViewport(e,n._cachedDomNodeClientWidth,n._cachedDomNodeClientHeight,t)}},s=1;s<=2;s++)for(var l=0;le.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},e.prototype.prepareRender=function(e){var t=this._getTopLeft(e);this._renderData=this._prepareRenderWidget(t,e)},e.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},e}()}),define(t[225],n([1,0,59,3,88,266]),function(e,t,n,i,r){"use strict";Object.defineProperty(t,"__esModule",{ +value:!0});var s=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return o(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){ +return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],o=0,r=0,s=t.length;rt.options.zIndex)return 1;var n=e.options.className,o=t.options.className;return no?1:i.Range.compareRangesUsingStarts(e.range,t.range)});for(var l=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,d=[],c=l;c<=u;c++){d[c-l]=""}this._renderWholeLineDecorations(e,n,d),this._renderNormalDecorations(e,n,d),this._renderResult=d},t.prototype._renderWholeLineDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,s=0,a=t.length;s',d=Math.max(l.range.startLineNumber,o),c=Math.min(l.range.endLineNumber,r),h=d;h<=c;h++){n[h-o]+=u}}},t.prototype._renderNormalDecorations=function(e,t,n){for(var o=String(this._lineHeight),r=e.visibleRange.startLineNumber,s=null,a=!1,l=null,u=0,d=t.length;u';a[h]+=v}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(n.DynamicViewOverlay);t.DecorationsOverlay=s}),define(t[134],n([1,0,59,267]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)}}();t.DecorationToRender=i;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._render=function(e,t,n){for(var i=[],o=e;o<=t;o++){i[o-e]=[]}if(0===n.length)return i +;n.sort(function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className',s=[],a=t;a<=n;a++){var l=a-t,u=i[l];0===u.length?s[l]="":s[l]='
      =this._renderResult.length?"":this._renderResult[n]},t}(r);t.GlyphMarginOverlay=s}),define(t[227],n([1,0,134,275]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._decorationsLeft=n._context.configuration.editor.layoutInfo.decorationsLeft, +n._decorationsWidth=n._context.configuration.editor.layoutInfo.decorationsWidth,n._renderResult=null,n._context.addEventHandler(n),n}return o(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),i=[],o=0,r=0,s=t.length;r
      ',r=[],s=t;s<=n;s++){for(var a=s-t,l=i[a],u="",d=0,c=l.length;d';o[s]=l}this._renderResult=o},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(n.DedupOverlay);t.MarginViewLineDecorationsOverlay=i}),define(t[230],n([1,0,26,23,36,287]),function(e,t,n,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var i=e.call(this,t)||this;return i._widgets={},i._verticalScrollbarWidth=i._context.configuration.editor.layoutInfo.verticalScrollbarWidth,i._minimapWidth=i._context.configuration.editor.layoutInfo.minimapWidth,i._horizontalScrollbarHeight=i._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,i._editorHeight=i._context.configuration.editor.layoutInfo.height,i._editorWidth=i._context.configuration.editor.layoutInfo.width, +i._domNode=n.createFastDomNode(document.createElement("div")),r.PartFingerprints.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets=null},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return!!e.layoutInfo&&(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0)},t.prototype.addWidget=function(e){var t=n.createFastDomNode(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t), +this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}},t.prototype._renderWidget=function(e){var t=e.domNode;if(null!==e.preference)if(e.preference===i.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(e.preference===i.OverlayWidgetPositionPreference.BOTTOM_RIGHT_CORNER){var n=t.domNode.clientHeight;t.setTop(this._editorHeight-n-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else e.preference===i.OverlayWidgetPositionPreference.TOP_CENTER&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()},t.prototype.prepareRender=function(e){}, +t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,i=t.length;n0&&this._renderOneLane(o,n,i,e),!0},t.prototype._renderOneLane=function(e,t,n,i){for(var o=0,r=0,s=0,a=0,l=t.length;a=c?s=Math.max(s,h):(e.fillRect(0,r,i,s-r),r=c,s=h)}e.fillRect(0,r,i,s-r)},t}(n.ViewEventHandler);t.OverviewRuler=s}),define(t[232],n([1,0,10,26,36,12]),function(e,t,n,i,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){var n=e.call(this,t)||this;return n._lineHeight=n._context.configuration.editor.lineHeight,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode=i.createFastDomNode(document.createElement("div")),n.domNode.setClassName("view-zones"),n.domNode.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.marginDomNode=i.createFastDomNode(document.createElement("div")),n.marginDomNode.setClassName("margin-view-zones"),n.marginDomNode.setPosition("absolute"),n.marginDomNode.setAttribute("role","presentation"),n.marginDomNode.setAttribute("aria-hidden","true"),n._zones={}, +n}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._zones={}},t.prototype._recomputeWhitespacesProps=function(){for(var e=!1,t=Object.keys(this._zones),n=0,i=t.length;n=e.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},t.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions(),t=this._linesLayout.getLinesTotalHeight();return this._configuration.editor.viewInfo.scrollBeyondLastLine?t+=e.height-this._configuration.editor.lineHeight:t+=this._getHorizontalScrollbarHeight(e),Math.max(e.height,t)}, +t.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new s.Viewport(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new s.Viewport(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype._computeScrollWidth=function(e,t){if(!this._configuration.editor.wrappingInfo.isViewportWrapping){var n=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,i=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+n,t,i)}return Math.max(e,t)},t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight() +},t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}},t.prototype.addWhitespace=function(e,t,n,i){return this._linesLayout.insertWhitespace(e,t,n,i)},t.prototype.changeWhitespace=function(e,t,n){return this._linesLayout.changeWhitespace(e,t,n)},t.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(e)},t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}, +t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},t.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)},t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},t.prototype.getScrollWidth=function(){return this.scrollable.getScrollDimensions().scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollable.getScrollDimensions().scrollHeight},t.prototype.getCurrentScrollLeft=function(){return this.scrollable.getCurrentScrollPosition().scrollLeft},t.prototype.getCurrentScrollTop=function(){return this.scrollable.getCurrentScrollPosition().scrollTop}, +t.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e)},t.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e)},t.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e)},t.prototype.deltaScrollNow=function(e,t){var n=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},t}(n.Disposable);t.ViewLayout=a}),define(t[235],n([1,0,3,12,63]),function(e,t,n,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,i,o){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}return e.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},e.prototype.dispose=function(){ +this._decorationsCache=null,this._clearCachedModelDecorationsResolver()},e.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,r=this._decorationsCache[t];if(!r){var s=e.range,a=e.options,l=void 0;if(a.isWholeLine){var u=this._coordinatesConverter.convertModelPositionToViewPosition(new i.Position(s.startLineNumber,1)),d=this._coordinatesConverter.convertModelPositionToViewPosition(new i.Position(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber)));l=new n.Range(u.lineNumber,u.column,d.lineNumber,d.column)}else l=this._coordinatesConverter.convertModelRangeToViewRange(s);r=new o.ViewModelDecoration(l,a), +this._decorationsCache[t]=r}return r},e.prototype.getDecorationsViewportData=function(e){var t=!0;return t=t&&null!==this._cachedModelDecorationsResolver,(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},e.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.editor.readOnly),i=e.startLineNumber,r=e.endLineNumber,s=[],a=0,l=[],u=i;u<=r;u++)l[u-i]=[];for(var d=0,c=t.length;de.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),e.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length, +this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},e.prototype.guessColorPresentation=function(e,t){for(var n=0;ne.length)return!1;for(var o=0;o=65&&r<=90&&r+32===s||s>=65&&s<=90&&s+32===r))return!1}return!0},e.prototype._createOperationsForBlockComment=function(t,n,i,r){ +var s=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,u=t.endColumn,d=i.getLineContent(s),c=i.getLineContent(l),h=n.blockCommentStartToken,p=n.blockCommentEndToken,f=d.lastIndexOf(h,a-1+h.length),g=c.indexOf(p,u-1-p.length);if(-1!==f&&-1!==g)if(s===l){d.substring(f+h.length,g).indexOf(p)>=0&&(f=-1,g=-1)}else{var m=d.substring(f+h.length),v=c.substring(0,g);(m.indexOf(p)>=0||v.indexOf(p)>=0)&&(f=-1,g=-1)}var _;-1!==f&&-1!==g?(f+h.length0&&32===c.charCodeAt(g-1)&&(p=" "+p,g-=1),_=e._createRemoveBlockCommentOperations(new o.Range(s,f+h.length+1,l,g+1),h,p)):(_=e._createAddBlockCommentOperations(t,h,p),this._usedEndToken=1===_.length?p:null);for(var y=0;y<_.length;y++)r.addTrackedEditOperation(_[y].range,_[y].text)},e._createRemoveBlockCommentOperations=function(e,t,i){var r=[] +;return o.Range.isEmpty(e)?r.push(n.EditOperation.delete(new o.Range(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(r.push(n.EditOperation.delete(new o.Range(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),r.push(n.EditOperation.delete(new o.Range(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),r},e._createAddBlockCommentOperations=function(e,t,r){var s=[];return o.Range.isEmpty(e)?s.push(n.EditOperation.replace(new o.Range(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+r)):(s.push(n.EditOperation.insert(new i.Position(e.startLineNumber,e.startColumn),t+" ")),s.push(n.EditOperation.insert(new i.Position(e.endLineNumber,e.endColumn)," "+r))),s},e.prototype.getEditOperations=function(e,t){var n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenizeIfCheap(n);var o=e.getLanguageIdAtPosition(n,i),r=s.LanguageConfigurationRegistry.getComments(o) +;r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r,e,t)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations();if(2===n.length){var i=n[0],o=n[1];return new r.Selection(i.range.endLineNumber,i.range.endColumn,o.range.startLineNumber,o.range.startColumn)}var s=n[0].range,a=this._usedEndToken?-this._usedEndToken.length-1:0;return new r.Selection(s.endLineNumber,s.endColumn+a,s.endLineNumber,s.endColumn+a)},e}();t.BlockCommentCommand=a}),define(t[241],n([1,0,6,53,12,3,21,149,41]),function(e,t,n,i,o,r,s,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t,n){this._selection=e,this._tabSize=t,this._type=n,this._deltaColumn=0}return e._gatherPreflightCommentStrings=function(e,t,n){e.tokenizeIfCheap(t);var i=e.getLanguageIdAtPosition(t,1),o=l.LanguageConfigurationRegistry.getComments(i),r=o?o.lineCommentToken:null;if(!r)return null;for(var s=[],a=0,u=n-t+1;aa?r-1:r}},e}();t.LineCommentCommand=u}),define(t[242],n([1,0,21,3]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n}return e.prototype.getEditOperations=function(e,t){var o=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new i.Range(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),o), +!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new n.Selection(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):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new n.Selection(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):this.targetPosition.lineNumbert&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,o.matchesPosition=!0,r=!0),this._matchesCount!==t&&(this._matchesCount=t,o.matchesCount=!0,r=!0),void 0!==n&&(i.Range.equalsRange(this._currentMatch,n)||(this._currentMatch=n,o.currentMatch=!0,r=!0)),r&&this._onFindReplaceStateChange.fire(o)},e.prototype.change=function(e,t,n){void 0===n&&(n=!0);var o={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1, +currentMatch:!1},r=!1,s=this.isRegex,a=this.wholeWord,l=this.matchCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,r=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,r=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,r=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,r=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.searchScope&&(i.Range.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,o.searchScope=!0,r=!0)),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0, +this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,s!==this.isRegex&&(r=!0,o.isRegex=!0),a!==this.wholeWord&&(r=!0,o.wholeWord=!0),l!==this.matchCase&&(r=!0,o.matchCase=!0),r&&this._onFindReplaceStateChange.fire(o)},e}();t.FindReplaceState=r}),define(t[244],n([1,0,3]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n}return e.prototype.getEditOperations=function(e,t){if(this._ranges.length>0){for(var i=[],o=0;o0;){if(e=r)break;if(36===(u=e.charCodeAt(i))){t.emitUnchanged(i-1),t.emitStatic("$",i+1);continue}if(48===u||38===u){t.emitUnchanged(i-1),t.emitMatchIndex(0,i+1);continue}if(49<=u&&u<=57){var a=u-48;if(i+1=r)break;var u;switch(u=e.charCodeAt(i)){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic("\n",i+1);break;case 116:t.emitUnchanged(i-1),t.emitStatic("\t",i+1)}}} +return t.finalize()}}),define(t[109],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_FOLDING_REGIONS=65535,t.MAX_LINE_NUMBER=16777215;var n=function(){function e(e,n,i){if(e.length!==n.length||e.length>t.MAX_FOLDING_REGIONS)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=n,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=i}return e.prototype.ensureParentIndices=function(){var e=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var n=[],i=function(t,i){var o=n[n.length-1];return e.getStartLineNumber(o)<=t&&e.getEndLineNumber(o)>=i},o=0,r=this._startIndexes.length;ot.MAX_LINE_NUMBER||a>t.MAX_LINE_NUMBER)throw new Error("startLineNumber or endLineNumber must not exceed "+t.MAX_LINE_NUMBER);for(;n.length>0&&!i(s,a);)n.pop();var l=n.length>0?n[n.length-1]:-1;n.push(o),this._startIndexes[o]=s+((255&l)<<24), +this._endIndexes[o]=a+((65280&l)<<16)}}},Object.defineProperty(e.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),e.prototype.getStartLineNumber=function(e){return this._startIndexes[e]&t.MAX_LINE_NUMBER},e.prototype.getEndLineNumber=function(e){return this._endIndexes[e]&t.MAX_LINE_NUMBER},e.prototype.getType=function(e){return this._types?this._types[e]:void 0},e.prototype.hasTypes=function(){return!!this._types},e.prototype.isCollapsed=function(e){var t=e/32|0,n=e%32;return 0!=(this._collapseStates[t]&1<>>24)+((4278190080&this._endIndexes[e])>>>16);return n===t.MAX_FOLDING_REGIONS?-1:n},e.prototype.contains=function(e,t){ +return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t},e.prototype.findIndex=function(e){var t=0,n=this._startIndexes.length;if(0===n)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1},e.prototype.toString=function(){for(var e=[],t=0;t=this.endLineNumber},e.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber},e}();t.FoldingRegion=i}),define(t[247],n([1,0,9,109]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){this._updateEventEmitter=new n.Emitter,this._textModel=e,this._decorationProvider=t,this._regions=new i.FoldingRegions(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1} +return Object.defineProperty(e.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),e.prototype.toggleCollapseState=function(e){var t=this;if(e.length){var n={};this._decorationProvider.changeDecorations(function(i){for(var o=0,r=e;o=c))break;o(a,d===c),a++}}l=s()}for(;a0?e:null},e.prototype.applyMemento=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n=0;){var r=this._regions.toRegion(i);t&&!t(r,o)||n.push(r),o++,i=r.parentIndex}return n},e.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}, +e.prototype.getRegionsInside=function(e,t){for(var n=[],i=t&&2===t.length,o=i?[]:null,r=e?e.regionIndex+1:0,s=e?e.endLineNumber:Number.MAX_VALUE,a=r,l=this._regions.length;a0&&!u.containedBy(o[o.length-1]);)o.pop();o.push(u),t(u,o.length)&&n.push(u)}else t&&!t(u)||n.push(u)}return n},e}();t.FoldingModel=o,t.setCollapseStateLevelsDown=function(e,t,n,i){void 0===n&&(n=Number.MAX_VALUE);var o=[];if(i&&i.length>0)for(var r=0,s=i;r1)&&(u=e.getRegionsInside(l,function(e,i){return e.isCollapsed!==t&&i=0;s--)if(n!==o.isCollapsed(s)){var a=o.getStartLineNumber(s);t.test(i.getLineContent(a))&&r.push(o.toRegion(s))}e.toggleCollapseState(r)},t.setCollapseStateForType=function(e,t,n){for(var i=e.regions,o=[],r=i.length-1;r>=0;r--)n!==i.isCollapsed(r)&&t===i.getType(r)&&o.push(i.toRegion(r));e.toggleCollapseState(o)}}),define(t[248],n([1,0,9,3,25]),function(e,t,n,i,o){"use strict";function r(e,t){var n=o.findFirstInSorted(e,function(e){return t=0&&e[n].endLineNumber>=t?e[n]:null}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e){var t=this;this._updateEventEmitter=new n.Emitter,this._foldingModel=e, +this._foldingModelListener=e.onDidChange(function(e){return t.updateHiddenRanges()}),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),e.prototype.updateHiddenRanges=function(){for(var e=!1,t=[],n=0,o=0,r=Number.MAX_VALUE,s=-1,a=this._foldingModel.regions;n0},e.prototype.isHidden=function(e){return null!==r(this._hiddenRanges,e)},e.prototype.adjustSelections=function(e){for(var t=this,n=!1,i=this._foldingModel.textModel,o=null,s=function(e){return o&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,o)||(o=r(t._hiddenRanges,e)),o?o.startLineNumber-1:null},a=0,l=e.length;a0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},e}();t.HiddenRangeModel=s}),define(t[168],n([1,0,10,14,13,109]),function(e,t,n,i,o,r){"use strict";function s(e,t){for(var n=e.sort(function(e,t){var n=e.start-t.start;return 0===n&&(n=e.rank-t.rank),n}),i=new d(t),o=null,r=[],s=0,a=n;so.start)if(l.end<=o.end)r.push(o),o=l,i.add(l.start,l.end,l.kind&&l.kind.value,r.length);else{if(l.start>o.end){do{o=r.pop()}while(o&&l.start>o.end);o&&r.push(o),o=l}i.add(l.start,l.end,l.kind&&l.kind.value,r.length)}}else o=l,i.add(l.start,l.end,l.kind&&l.kind.value,r.length)}return i.toIndentRanges()}Object.defineProperty(t,"__esModule",{value:!0});var a=5e3,l={};t.ID_SYNTAX_PROVIDER="syntax";var u=function(){function e(e,n,i){void 0===i&&(i=a),this.editorModel=e,this.providers=n,this.limit=i, +this.id=t.ID_SYNTAX_PROVIDER}return e.prototype.compute=function(e){var t=this;return function(e,t,r){var s=null,a=e.map(function(e,o){return i.toThenable(e.provideFoldingRanges(t,l,r)).then(function(e){if(!r.isCancellationRequested&&Array.isArray(e)){Array.isArray(s)||(s=[]);for(var n=t.getLineCount(),i=0,a=e;i0&&l.end>l.start&&l.end<=n&&s.push({start:l.start,end:l.end,rank:o,kind:l.kind})}}},n.onUnexpectedExternalError)});return o.TPromise.join(a).then(function(e){return s})}(this.providers,this.editorModel,e).then(function(e){if(e){return s(e,t.limit)}return null})},e.prototype.dispose=function(){},e}();t.SyntaxRangeProvider=u;var d=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.add=function(e,t,n,i){if(!(e>r.MAX_LINE_NUMBER||t>r.MAX_LINE_NUMBER)){var o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t, +this._nestingLevels[o]=i,this._types[o]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1)}},e.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var e=new Uint32Array(this._length),t=new Uint32Array(this._length),n=0;nthis._foldingRangesLimit){o=n;break}i+=s}}for(var e=new Uint32Array(this._foldingRangesLimit),t=new Uint32Array(this._foldingRangesLimit),a=[],n=0,l=0;n0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},t.prototype._renderMessages=function(e,t){var n=this;a.dispose(this._renderDisposeables),this._renderDisposeables=[];var i=document.createDocumentFragment();t.forEach(function(e){var t=n._markdownRenderer.render(e.value);n._renderDisposeables.push(t),i.appendChild(r.$("div.hover-row",null,t.element))}),this.updateContents(i),this.showAt(e)},t.ID="editor.contrib.modesGlyphHoverWidget",t}(i.GlyphHoverWidget);t.ModesGlyphHoverWidget=u}),define(t[256],n([1,0,21]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._editRange,this._text)}, +e.prototype.computeCursorState=function(e,t){var i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new n.Selection(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new n.Selection(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)},e}();t.InPlaceReplaceCommand=i}),define(t[257],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSpaceCnt=function(e,t){for(var n=0,i=0;i1&&(i-=1,r=e.getLineMaxColumn(i)),t.addTrackedEditOperation(new n.Range(i,r,o,s),null)}},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new i.Selection(n.endLineNumber,this.restoreCursorToColumn,n.endLineNumber,this.restoreCursorToColumn)},e}();t.DeleteLinesCommand=o}), +define(t[260],n([1,0,53,3]),function(e,t,n,i){"use strict";function o(e,t,n){var i=t.startLineNumber,o=t.endLineNumber;if(1===t.endColumn&&o--,i>=o)return null;for(var r=[],s=i;s<=o;s++)r.push(e.getLineContent(s));var a=r.slice(0);return a.sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}),!0===n&&(a=a.reverse()),{startLineNumber:i,endLineNumber:o,before:r,after:a}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.selection=e,this.descending=t}return e.prototype.getEditOperations=function(e,t){var r=function(e,t,r){var s=o(e,t,r);return s?n.EditOperation.replace(new i.Range(s.startLineNumber,1,s.endLineNumber,e.getLineMaxColumn(s.endLineNumber)),s.after.join("\n")):null}(e,this.selection,this.descending);r&&t.addEditOperation(r.range,r.text),this.selectionId=t.trackSelection(this.selection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this.selectionId)},e.canRun=function(e,t,n){var i=o(e,t,n);if(!i)return!1 +;for(var r=0,s=i.before.length;r0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.hasChildren&&!this.parent},enumerable:!0,configurable:!0}),t.prototype.append=function(e){return!!e&&(e.parent=this,this.children||(this.children=[]),e instanceof t?e.children&&this.children.push.apply(this.children,e.children):this.children.push(e),!0)},t}(u);t.NodeList=d;var c=function(e){function t(){var t=e.call(this)||this;return t.elements=new d,t.elements.parent=t,t}return o(t,e),t}(u);t.Block=c;var h=function(){return function(e,t,n){this.range=e,this.bracket=t,this.bracketType=n}}(),p=function(){return function(e,t,n){this.lineNumber=n,this.lineText=e.getLineContent(),this.startOffset=e.getStartOffset(t),this.endOffset=e.getEndOffset(t),this.type=e.getStandardTokenType(t),this.languageId=e.getLanguageId(t)}}(),f=function(){function e(e){this._model=e,this._lineCount=this._model.getLineCount(),this._versionId=this._model.getVersionId(), +this._lineNumber=0,this._tokenIndex=0,this._lineTokens=null,this._advance()}return e.prototype._advance=function(){for(this._lineTokens&&(this._tokenIndex++,this._tokenIndex>=this._lineTokens.getCount()&&(this._lineTokens=null));this._lineNumber0)return this._nextBuff.shift();var e=this._rawTokenScanner.next();if(!e)return null +;var t=e.lineNumber,o=e.lineText,a=e.type,l=e.startOffset,u=e.endOffset;this._cachedLanguageId!==e.languageId&&(this._cachedLanguageId=e.languageId,this._cachedLanguageBrackets=s.LanguageConfigurationRegistry.getBracketsSupport(this._cachedLanguageId));var d=this._cachedLanguageBrackets;if(!d||i.ignoreBracketsInToken(a))return new h(new n.Range(t,l+1,t,u+1),0,null);var c;do{if(c=r.BracketsUtils.findNextBracketInToken(d.forwardRegex,t,o,l,u)){var p=c.startColumn-1,f=c.endColumn-1;l0;){var i=n.shift();if(!t(i))break;n.unshift.apply(n,i.children)}}Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(){this.text("")}return e.isDigitCharacter=function(e){return e>=48&&e<=57},e.isVariableCharacter=function(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90},e.prototype.text=function(e){this.value=e,this.pos=0},e.prototype.tokenText=function(e){return this.value.substr(e.pos,e.len)},e.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var t,n=this.pos,i=0,o=this.value.charCodeAt(n);if("number"==typeof(t=e._table[o]))return this.pos+=1,{type:t,pos:n,len:1};if(e.isDigitCharacter(o)){t=8;do{i+=1,o=this.value.charCodeAt(n+i) +}while(e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}}if(e.isVariableCharacter(o)){t=9;do{o=this.value.charCodeAt(n+ ++i)}while(e.isVariableCharacter(o)||e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}}t=10;do{i+=1,o=this.value.charCodeAt(n+i)}while(!isNaN(o)&&void 0===e._table[o]&&!e.isDigitCharacter(o)&&!e.isVariableCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}},e._table=(i={},i[36]=0,i[58]=1,i[44]=2,i[123]=3,i[125]=4,i[92]=5,i[47]=6,i[124]=7,i[43]=11,i[45]=12,i[63]=13,i),e}();t.Scanner=r;var s=function(){function e(){this._children=[]}return e.prototype.appendChild=function(e){return e instanceof a&&this._children[this._children.length-1]instanceof a?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this},e.prototype.replace=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.slice(0);o.splice.apply(o,[i,1].concat(t)),n._children=o,t.forEach(function(e){return e.parent=n})}, +Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snippet",{get:function(){for(var e=this;;){if(!e)return;if(e instanceof f)return e;e=e.parent}},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.children.reduce(function(e,t){return e+t.toString()},"")},e.prototype.len=function(){return 0},e}();t.Marker=s;var a=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return o(t,e),t.prototype.toString=function(){return this.value},t.prototype.len=function(){return this.value.length},t.prototype.clone=function(){return new t(this.value)},t}(s);t.Text=a;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s);t.TransformableMarker=l;var u=function(e){function t(t){var n=e.call(this)||this;return n.index=t,n}return o(t,e),t.compareByIndex=function(e,t){ +return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop?-1:e.indext.index?1:0},Object.defineProperty(t.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof d?this._children[0]:void 0},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(function(e){return e.clone()}),e},t}(l);t.Placeholder=u;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=[],t}return o(t,e),t.prototype.appendChild=function(e){return e instanceof a&&(e.parent=this,this.options.push(e)),this},t.prototype.toString=function(){return this.options[0].value},t.prototype.len=function(){return this.options[0].len()},t.prototype.clone=function(){var e=new t +;return this.options.forEach(e.appendChild,e),e},t}(s);t.Choice=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.resolve=function(e){var t=this;return e.replace(this.regexp,function(){for(var e="",n=0,i=t._children;no.index?arguments[o.index]:"";e+=r=o.resolve(r)}else e+=o.toString()}return e})},t.prototype.toString=function(){return""},t.prototype.clone=function(){var e=new t;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(function(e){return e.clone()}),e},t}(s);t.Transform=c;var h=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.index=t,r.shorthandName=n,r.ifValue=i,r.elseValue=o,r}return o(t,e),t.prototype.resolve=function(e){ +return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":Boolean(e)&&"string"==typeof this.ifValue?this.ifValue:Boolean(e)||"string"!=typeof this.elseValue?e||"":this.elseValue},t.prototype.clone=function(){return new t(this.index,this.shorthandName,this.ifValue,this.elseValue)},t}(s);t.FormatString=h;var p=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n}return o(t,e),t.prototype.resolve=function(e){var t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new a(t)],!0)},t.prototype.clone=function(){var e=new t(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(function(e){return e.clone()}),e},t}(l);t.Variable=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e), +Object.defineProperty(t.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk(function(n){return n instanceof u&&(t.push(n),e=!e||e.index0?o.set(e.index,e.children):r.push(e)),!0});for(var a=0,l=r;a0&&t),!o.has(0)&&n&&i.appendChild(new u(0)),i},e.prototype._accept=function(e,t){ +if(void 0===e||this._token.type===e){var n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n}return!1},e.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1},e.prototype._until=function(e){if(14===this._token.type)return!1;for(var t=this._token;this._token.type!==e;)if(this._token=this._scanner.next(),14===this._token.type)return!1;var n=this._scanner.value.substring(t.pos,this._token.pos);return this._token=this._scanner.next(),n},e.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)},e.prototype._parseEscaped=function(e){var t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new a(t)),!0)},e.prototype._parseTabstopOrVariableName=function(e){var t,n=this._token +;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new u(Number(t)):new p(t)),!0):this._backTo(n)},e.prototype._parseComplexPlaceholder=function(e){var t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);var i=new u(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new a("${"+t+":")),i.children.forEach(e.appendChild,e),!0}else{if(!(i.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(n);for(var o=new d;;){if(this._parseChoiceElement(o)){if(this._accept(2))continue;if(this._accept(7)&&(i.appendChild(o),this._accept(4)))return e.appendChild(i),!0}return this._backTo(n),!1}}},e.prototype._parseChoiceElement=function(e){for(var t=this._token,n=[];;){if(2===this._token.type||7===this._token.type)break;var i=void 0 +;if(!(i=(i=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||i:this._accept(void 0,!0)))return this._backTo(t),!1;n.push(i)}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new a(n.join(""))),!0)},e.prototype._parseComplexVariable=function(e){var t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);var i=new p(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(n);for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new a("${"+t+":")),i.children.forEach(e.appendChild,e),!0}},e.prototype._parseTransform=function(e){for(var t=new c,n="",i="";;){if(this._accept(6))break;o=void 0;if(o=this._accept(5,!0))n+=o=this._accept(6,!0)||o;else{if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}}for(;;){if(this._accept(6))break;var o=void 0;if(o=this._accept(5,!0))o=this._accept(6,!0)||o, +t.appendChild(new a(o));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;;){if(this._accept(4))break;if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,i)}catch(e){return!1}return e.transform=t,!0},e.prototype._parseFormatString=function(e){var t=this._token;if(!this._accept(0))return!1;var n=!1;this._accept(3)&&(n=!0);var i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!n)return e.appendChild(new h(Number(i))),!0;if(this._accept(4))return e.appendChild(new h(Number(i))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){var o=this._accept(9,!0);return o&&this._accept(4)?(e.appendChild(new h(Number(i),o)),!0):(this._backTo(t),!1)}if(this._accept(11)){if(r=this._until(4))return e.appendChild(new h(Number(i),void 0,r,void 0)),!0}else if(this._accept(12)){if(s=this._until(4))return e.appendChild(new h(Number(i),void 0,void 0,s)),!0}else if(this._accept(13)){var r=this._until(1);if(r){ +if(s=this._until(4))return e.appendChild(new h(Number(i),void 0,r,s)),!0}}else{var s=this._until(4);if(s)return e.appendChild(new h(Number(i),void 0,void 0,s)),!0}return this._backTo(t),!1},e.prototype._parseAnything=function(e){return 14!==this._token.type&&(e.appendChild(new a(this._scanner.tokenText(this._token))),this._accept(void 0),!0)},e}();t.SnippetParser=g}),define(t[190],n([1,0]),function(e,t){"use strict";function n(e){return Array.isArray(e)}function i(e){return"string"==typeof e}function o(e){return!e}function r(e,t){return e.ignoreCase&&t?t.toLowerCase():t}Object.defineProperty(t,"__esModule",{value:!0}),t.isFuzzyActionArr=n,t.isFuzzyAction=function(e){return!n(e)},t.isString=i,t.isIAction=function(e){return!i(e)},t.empty=o,t.fixCase=r,t.sanitize=function(e){return e.replace(/[&<>'"_]/g,"-")},t.log=function(e,t){console.log(e.languageId+": "+t)},t.throwError=function(e,t){throw new Error(e.languageId+": "+t)},t.substituteMatches=function(e,t,n,i,s){var a=null +;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,l,u,d,c,h,p,f,g){return o(u)?o(d)?!o(c)&&c0;){var n=e.tokenizer[t];if(n)return n;var i=t.lastIndexOf(".");t=i<0?null:t.substr(0,i)}return null},t.stateExists=function(e,t){for(;t&&t.length>0;){if(e.stateNames[t])return!0;var n=t.lastIndexOf(".");t=n<0?null:t.substr(0,n)}return!1}}),define(t[264],n([1,0,28,190]),function(e,t,n,i){"use strict";function o(e,t,n){return"boolean"==typeof e?e:(n&&(e||void 0===t)&&n(),void 0===t?null:t)}function r(e,t,n){return"string"==typeof e?e:(n&&(e||void 0===t)&&n(),void 0===t?null:t)}function s(e,t){if("string"!=typeof t)return null;for(var n=0;t.indexOf("@")>=0&&n<5;)n++,t=t.replace(/@(\w+)/g,function(n,o){var r="" +;return"string"==typeof e[o]?r=e[o]:e[o]&&e[o]instanceof RegExp?r=e[o].source:void 0===e[o]?i.throwError(e,"language definition does not contain attribute '"+o+"', used at: "+t):i.throwError(e,"attribute reference '"+o+"' must be a string, used at: "+t),i.empty(r)?"":"(?:"+r+")"});return new RegExp(t,e.ignoreCase?"i":"")}function a(e,t,o,r){var a=-1,l=o,u=o.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);u&&(u[3]&&(a=parseInt(u[3]),u[2]&&(a+=100)),l=u[4]);var d="~",c=l;l&&0!==l.length?/^\w*$/.test(c)?d="==":(u=l.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(d=u[1],c=u[2]):(d="!=",c="");var h;if("~"!==d&&"!~"!==d||!/^(\w|\|)*$/.test(c))if("@"===d||"!@"===d){var p=e[c];p||i.throwError(e,"the @ match target '"+c+"' is not defined, in rule: "+t),function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e(t[n]))return!1;return!0}(function(e){return"string"==typeof e},p)||i.throwError(e,"the @ match target '"+c+"' must be an array of strings, in rule: "+t) +;var f=n.createKeywordMatcher(p,e.ignoreCase);h=function(e){return"@"===d?f(e):!f(e)}}else if("~"===d||"!~"===d)if(c.indexOf("$")<0){var g=s(e,"^"+c+"$");h=function(e){return"~"===d?g.test(e):!g.test(e)}}else h=function(t,n,o,r){return s(e,"^"+i.substituteMatches(e,c,n,o,r)+"$").test(t)};else if(c.indexOf("$")<0){var m=i.fixCase(e,c);h=function(e){return"=="===d?e===m:e!==m}}else{var v=i.fixCase(e,c);h=function(t,n,o,r,s){var a=i.substituteMatches(e,v,n,o,r);return"=="===d?t===a:t!==a}}else{var _=n.createKeywordMatcher(c.split("|"),e.ignoreCase);h=function(e){return"~"===d?_(e):!_(e)}}return-1===a?{name:o,value:r,test:function(e,t,n,i){return h(e,e,t,n,i)}}:{name:o,value:r,test:function(e,t,n,i){var o=function(e,t,n,i){if(i<0)return e;if(i=100){i-=100;var o=n.split(".");if(o.unshift(n),i=0&&(o.tokenSubst=!0),"string"==typeof n.bracket&&("@open"===n.bracket?o.bracket=1:"@close"===n.bracket?o.bracket=-1:i.throwError(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t)),n.next)if("string"!=typeof n.next)i.throwError(e,"the next state must be a string value in rule: "+t);else{var r=n.next;/^(@pop|@push|@popall)$/.test(r)||("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&(i.stateExists(e,i.substituteMatches(e,r,"",[],""))||i.throwError(e,"the next state '"+n.next+"' is not defined in rule: "+t))),o.next=r}return"number"==typeof n.goBack&&(o.goBack=n.goBack),"string"==typeof n.switchTo&&(o.switchTo=n.switchTo),"string"==typeof n.log&&(o.log=n.log),"string"==typeof n.nextEmbedded&&(o.nextEmbedded=n.nextEmbedded,e.usesEmbedded=!0),o}if(Array.isArray(n)){var s=[];for(var u in n)n.hasOwnProperty(u)&&(s[u]=l(e,t,n[u])) +;return{group:s}}if(n.cases){var d=[];for(var c in n.cases)if(n.cases.hasOwnProperty(c)){var h=l(e,t,n.cases[c]);"@default"===c||"@"===c||""===c?d.push({test:null,value:h,name:c}):"@eos"===c?d.push({test:function(e,t,n,i){return i},value:h,name:c}):d.push(a(e,t,c,h))}var p=e.defaultToken;return{test:function(e,t,n,i){for(var o in d)if(d.hasOwnProperty(o)){if(!d[o].test||d[o].test(e,t,n,i))return d[o].value}return p}}}return i.throwError(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t),""}return{token:""}}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}return e.prototype.setRegex=function(e,t){var n;"string"==typeof t?n=t:t instanceof RegExp?n=t.source:i.throwError(e,"rules must start with a match string or regular expression: "+this.name),this.matchOnlyAtLineStart=n.length>0&&"^"===n[0], +this.name=this.name+": "+n,this.regex=s(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")},e.prototype.setAction=function(e,t){this.action=l(e,this.name,t)},e}();t.compile=function(e,t){function n(e,l,d){for(var c in d)if(d.hasOwnProperty(c)){var h=d[c],p=h.include;if(p)"string"!=typeof p&&i.throwError(s,"an 'include' attribute must be a string at: "+e),"@"===p[0]&&(p=p.substr(1)),t.tokenizer[p]||i.throwError(s,"include target '"+p+"' is not defined at: "+e),n(e+"."+p,l,t.tokenizer[p]);else{var f=new u(e);if(Array.isArray(h)&&h.length>=1&&h.length<=3)if(f.setRegex(a,h[0]),h.length>=3)if("string"==typeof h[1])f.setAction(a,{token:h[1],next:h[2]});else if("object"==typeof h[1]){var g=h[1];g.next=h[2],f.setAction(a,g)}else i.throwError(s,"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: "+e);else f.setAction(a,h[1]);else h.regex||i.throwError(s,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e), +h.name&&(f.name=r(h.name)),h.matchOnlyAtStart&&(f.matchOnlyAtLineStart=o(h.matchOnlyAtLineStart)),f.setRegex(a,h.regex),f.setAction(a,h.action);l.push(f)}}}if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");var s={};s.languageId=e,s.noThrow=!1,s.maxStack=100,s.start=r(t.start),s.ignoreCase=o(t.ignoreCase,!1),s.tokenPostfix=r(t.tokenPostfix,"."+s.languageId),s.defaultToken=r(t.defaultToken,"source",function(){i.throwError(s,"the 'defaultToken' must be a string")}),s.usesEmbedded=!1;var a=t;a.languageId=e,a.ignoreCase=s.ignoreCase,a.noThrow=s.noThrow,a.usesEmbedded=s.usesEmbedded,a.stateNames=t.tokenizer,a.defaultToken=s.defaultToken,t.tokenizer&&"object"==typeof t.tokenizer||i.throwError(s,"a language definition must define the 'tokenizer' attribute as an object"),s.tokenizer=[];for(var l in t.tokenizer)if(t.tokenizer.hasOwnProperty(l)){s.start||(s.start=l);var d=t.tokenizer[l];s.tokenizer[l]=new Array,n("tokenizer."+l,s.tokenizer[l],d)}s.usesEmbedded=a.usesEmbedded, +t.brackets?Array.isArray(t.brackets)||i.throwError(s,"the 'brackets' attribute must be defined as an array"):t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];var c=[];for(var h in t.brackets)if(t.brackets.hasOwnProperty(h)){var p=t.brackets[h];p&&Array.isArray(p)&&3===p.length&&(p={token:p[2],open:p[0],close:p[1]}),p.open===p.close&&i.throwError(s,"open and close brackets in a 'brackets' attribute must be different: "+p.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required."),"string"==typeof p.open&&"string"==typeof p.token?c.push({token:r(p.token)+s.tokenPostfix,open:i.fixCase(s,r(p.open)),close:i.fixCase(s,r(p.close))}):i.throwError(s,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return s.brackets=c,s.noThrow=!0,s}}),define(t[265],n([5,4]),function(e,t){ +return e.create("vs/base/browser/ui/actionbar/actionbar",t)}),define(t[69],n([1,0,18,265,2,56,67,7,33,74,57,9,481]),function(e,t,n,i,r,s,a,l,u,d,c,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t,n){var i=this;this.options=n,this._callOnDispose=[],this._context=e||this,this._action=t,t instanceof a.Action&&this._callOnDispose.push(t.onDidChange(function(e){i.builder&&i._handleActionChangeEvent(e)}))}return e.prototype._handleActionChangeEvent=function(e){void 0!==e.enabled&&this._updateEnabled(),void 0!==e.checked&&this._updateChecked(),void 0!==e.class&&this._updateClass(),void 0!==e.label&&(this._updateLabel(),this._updateTooltip()),void 0!==e.tooltip&&this._updateTooltip()},Object.defineProperty(e.prototype,"actionRunner",{get:function(){return this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),e.prototype.getAction=function(){return this._action},e.prototype.isEnabled=function(){return this._action.enabled}, +e.prototype.setActionContext=function(e){this._context=e},e.prototype.render=function(e){var t=this;this.builder=s.$(e),d.Gesture.addTarget(e);var i=this.options&&this.options.draggable;i&&(e.draggable=!0),this.builder.on(d.EventType.Tap,function(e){return t.onClick(e)}),this.builder.on(l.EventType.MOUSE_DOWN,function(e){i||l.EventHelper.stop(e,!0);var n=e;t._action.enabled&&0===n.button&&t.builder.addClass("active")}),this.builder.on(l.EventType.CLICK,function(e){l.EventHelper.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):n.setImmediate(function(){return t.onClick(e)})}),this.builder.on([l.EventType.MOUSE_UP,l.EventType.MOUSE_OUT],function(e){l.EventHelper.stop(e),t.builder.removeClass("active")})},e.prototype.onClick=function(e){l.EventHelper.stop(e,!0);var t;u.isUndefinedOrNull(this._context)||!u.isObject(this._context)?t=e:(t=this._context).event=e,this._actionRunner.run(this._action,t)},e.prototype._updateEnabled=function(){},e.prototype._updateLabel=function(){}, +e.prototype._updateTooltip=function(){},e.prototype._updateClass=function(){},e.prototype._updateChecked=function(){},e.prototype.dispose=function(){this.builder&&(this.builder.destroy(),this.builder=null),this._callOnDispose=r.dispose(this._callOnDispose)},e}();t.BaseActionItem=p;var f=function(e){function t(n,i){var o=e.call(this,t.ID,n,n?"separator text":"separator")||this;return o.checked=!1,o.radio=!1,o.enabled=!1,o.order=i,o}return o(t,e),t.ID="vs.actions.separator",t}(a.Action);t.Separator=f;var g=function(e){function t(t,n,i){void 0===i&&(i={});var o=e.call(this,t,n,i)||this;return o.options=i,o.options.icon=void 0!==i.icon&&i.icon,o.options.label=void 0===i.label||i.label,o.cssClass="",o}return o(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.$e=s.$("a.action-label").appendTo(this.builder),this._action.id===f.ID?this.$e.attr({role:"presentation"}):this.options.isMenu?this.$e.attr({role:"menuitem"}):this.$e.attr({role:"button"}), +this.options.label&&this.options.keybinding&&s.$("span.keybinding").text(this.options.keybinding).appendTo(this.builder),this._updateClass(),this._updateLabel(),this._updateTooltip(),this._updateEnabled(),this._updateChecked()},t.prototype._updateLabel=function(){this.options.label&&this.$e.text(this.getAction().label)},t.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.localize(0,null,e,this.options.keybinding))),e&&this.$e.attr({title:e})},t.prototype._updateClass=function(){this.cssClass&&this.$e.removeClass(this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.$e.addClass("icon"),this.cssClass&&this.$e.addClass(this.cssClass),this._updateEnabled()):this.$e.removeClass("icon")},t.prototype._updateEnabled=function(){this.getAction().enabled?(this.builder.removeClass("disabled"),this.$e.removeClass("disabled"), +this.$e.attr({tabindex:0})):(this.builder.addClass("disabled"),this.$e.addClass("disabled"),l.removeTabIndexAndUpdateFocus(this.$e.getHTMLElement()))},t.prototype._updateChecked=function(){this.getAction().checked?this.$e.addClass("checked"):this.$e.removeClass("checked")},t}(p);t.ActionItem=g;var m;!function(e){e[e.HORIZONTAL=0]="HORIZONTAL",e[e.HORIZONTAL_REVERSE=1]="HORIZONTAL_REVERSE",e[e.VERTICAL=2]="VERTICAL",e[e.VERTICAL_REVERSE=3]="VERTICAL_REVERSE"}(m=t.ActionsOrientation||(t.ActionsOrientation={}));var v={orientation:m.HORIZONTAL,context:null},_=function(){function e(e,t){void 0===t&&(t=v);var n=this;this._onDidBlur=new h.Emitter,this._onDidCancel=new h.Emitter,this._onDidRun=new h.Emitter,this._onDidBeforeRun=new h.Emitter,this.options=t,this._context=t.context,this.toDispose=[],this._actionRunner=this.options.actionRunner,this._actionRunner||(this._actionRunner=new a.ActionRunner,this.toDispose.push(this._actionRunner)),this.toDispose.push(this._actionRunner.onDidRun(function(e){ +return n._onDidRun.fire(e)})),this.toDispose.push(this._actionRunner.onDidBeforeRun(function(e){return n._onDidBeforeRun.fire(e)})),this.items=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&l.addClass(this.domNode,"animated");var i,o;switch(this.options.orientation){case m.HORIZONTAL:i=15,o=17;break;case m.HORIZONTAL_REVERSE:i=17,o=15,this.domNode.className+=" reverse";break;case m.VERTICAL:i=16,o=18,this.domNode.className+=" vertical";break;case m.VERTICAL_REVERSE:i=18,o=16,this.domNode.className+=" vertical reverse"}s.$(this.domNode).on(l.EventType.KEY_DOWN,function(e){var t=new c.StandardKeyboardEvent(e),r=!0;t.equals(i)?n.focusPrevious():t.equals(o)?n.focusNext():t.equals(9)?n.cancel():t.equals(3)||t.equals(10)||(r=!1),r&&(t.preventDefault(),t.stopPropagation())}),s.$(this.domNode).on(l.EventType.KEY_UP,function(e){var t=new c.StandardKeyboardEvent(e);t.equals(3)||t.equals(10)?(n.doTrigger(t),t.preventDefault(), +t.stopPropagation()):(t.equals(2)||t.equals(1026))&&n.updateFocusedItem()}),this.focusTracker=l.trackFocus(this.domNode),this.toDispose.push(this.focusTracker.onDidBlur(function(){document.activeElement!==n.domNode&&l.isAncestor(document.activeElement,n.domNode)||(n._onDidBlur.fire(),n.focusedItem=void 0)})),this.toDispose.push(this.focusTracker.onDidFocus(function(){return n.updateFocusedItem()})),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.isMenu?this.actionsList.setAttribute("role","menu"):this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.options.isMenu&&(this.domNode.tabIndex=0,s.$(this.domNode).on(l.EventType.MOUSE_OUT,function(e){var t=e.relatedTarget;l.isAncestor(t,n.domNode)||(n.focusedItem=void 0,n.updateFocus(),e.stopPropagation())}),s.$(this.actionsList).on(l.EventType.MOUSE_OVER,function(e){var t=e.target +;if(t&&l.isAncestor(t,n.actionsList)&&t!==n.actionsList){for(;t.parentElement!==n.actionsList;)t=t.parentElement;if(l.hasClass(t,"action-item")){var i=n.focusedItem;n.setFocusedItem(t),i!==n.focusedItem&&n.updateFocus()}}})),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}return Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this._onDidBlur.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidCancel",{get:function(){return this._onDidCancel.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidRun",{get:function(){return this._onDidRun.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBeforeRun",{get:function(){return this._onDidBeforeRun.event},enumerable:!0,configurable:!0}),e.prototype.setFocusedItem=function(e){for(var t=0;t=n.actionsList.children.length?(n.actionsList.appendChild(i), +n.items.push(r)):(n.actionsList.insertBefore(i,n.actionsList.children[o]),n.items.splice(o,0,r),o++)})},e.prototype.clear=function(){this.items=r.dispose(this.items),s.$(this.actionsList).empty()},e.prototype.isEmpty=function(){return 0===this.items.length},e.prototype.focus=function(e){e&&void 0===this.focusedItem?(this.focusedItem=this.items.length-1,this.focusNext()):this.updateFocus()},e.prototype.focusNext=function(){void 0===this.focusedItem&&(this.focusedItem=this.items.length-1);var e,t=this.focusedItem;do{this.focusedItem=(this.focusedItem+1)%this.items.length,e=this.items[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},e.prototype.focusPrevious=function(){void 0===this.focusedItem&&(this.focusedItem=0);var e,t=this.focusedItem;do{this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.items.length-1),e=this.items[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled()) +;this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0)},e.prototype.updateFocus=function(e){void 0===this.focusedItem&&this.domNode.focus();for(var t=0;t=0){var n=void 0;e.equals(17)?n=(t+1)%a.length:e.equals(15)&&(n=0===t?a.length-1:t-1),e.equals(9)?a[t].blur():n>=0&&a[n].focus(),i.EventHelper.stop(e,!0)}}}),this.setInputWidth();var u=document.createElement("div");u.className="controls",u.appendChild(this.caseSensitive.domNode), +u.appendChild(this.wholeWords.domNode),u.appendChild(this.regex.domNode),this.domNode.appendChild(u)},t.prototype.validate=function(){this.inputBox.validate()},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t}(s.Widget);t.FindInput=d}),define(t[277],n([5,4]),function(e,t){return e.create("vs/base/browser/ui/list/listWidget",t)}),define(t[278],n([1,0,277,2,33,25,111,7,18,74,57,9,87,240,27,28,425,473,218]),function(e,t,n,i,r,s,l,u,d,c,h,p,f,g,m,v,_,y){"use strict";function C(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function b(e){return d.isMacintosh?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function S(e){return e.browserEvent.shiftKey}function w(e){return e instanceof MouseEvent&&2===e.button}function E(e,t){for(var n=[],i=0,o=0;i=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){n.push(e[i]),i++,o++;continue}e[i]=0){o=this.renderedElements[i];this.trait.unrender(n),o.index=t}else{var o={index:t,templateData:n};this.renderedElements.push(o)}this.trait.renderIndex(t,n)},e.prototype.disposeElement=function(){},e.prototype.splice=function(e,t,n){for(var i=[],o=0;o=e+t&&i.push({index:r.index+n-t,templateData:r.templateData})}this.renderedElements=i},e.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t-1&&this.trait.renderIndex(o,r)}},e.prototype.disposeTemplate=function(e){ +var t=s.firstIndex(this.renderedElements,function(t){return t.templateData===e});t<0||this.renderedElements.splice(t,1)},e}(),x=function(){function e(e){this._trait=e,this._onChange=new p.Emitter,this.indexes=[]}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return new L(this)},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=n.length-t,o=e+t,r=this.indexes.filter(function(t){return t=o}).map(function(e){return e+i}));this.renderer.splice(e,t,n.length),this.set(r)},e.prototype.renderIndex=function(e,t){u.toggleClass(t,this._trait,this.contains(e))},e.prototype.unrender=function(e){u.removeClass(e,this._trait)}, +e.prototype.set=function(e){var t=this.indexes;this.indexes=e;var n=E(t,e);return this.renderer.renderIndexes(n),this._onChange.fire({indexes:e}),t},e.prototype.get=function(){return this.indexes},e.prototype.contains=function(e){return this.indexes.some(function(t){return t===e})},e.prototype.dispose=function(){this.indexes=null,this._onChange=i.dispose(this._onChange)},a([l.memoize],e.prototype,"renderer",null),e}(),N=function(e){function t(t){var n=e.call(this,"focused")||this;return n.getDomId=t,n}return o(t,e),t.prototype.renderIndex=function(t,n){e.prototype.renderIndex.call(this,t,n),n.setAttribute("role","treeitem"),n.setAttribute("id",this.getDomId(t))},t}(x),I=function(){function e(e,t,n){this.trait=e,this.view=t,this.getId=n}return e.prototype.splice=function(e,t,n){var i=this;if(!this.getId)return this.trait.splice(e,t,n.map(function(e){return!1}));var o=this.trait.get().map(function(e){return i.getId(i.view.element(e))}),r=n.map(function(e){return o.indexOf(i.getId(e))>-1}) +;this.trait.splice(e,t,r)},e}(),M=function(){function e(e,t,n){this.list=e,this.view=t;var i=!(!1===n.multipleSelectionSupport);this.disposables=[],this.openController=n.openController||k;var o=p.chain(f.domEvent(t.domNode,"keydown")).filter(function(e){return!C(e.target)}).map(function(e){return new h.StandardKeyboardEvent(e)});o.filter(function(e){return 3===e.keyCode}).on(this.onEnter,this,this.disposables),o.filter(function(e){return 16===e.keyCode}).on(this.onUpArrow,this,this.disposables),o.filter(function(e){return 18===e.keyCode}).on(this.onDownArrow,this,this.disposables),o.filter(function(e){return 11===e.keyCode}).on(this.onPageUpArrow,this,this.disposables),o.filter(function(e){return 12===e.keyCode}).on(this.onPageDownArrow,this,this.disposables),o.filter(function(e){return 9===e.keyCode}).on(this.onEscape,this,this.disposables),i&&o.filter(function(e){return(d.isMacintosh?e.metaKey:e.ctrlKey)&&31===e.keyCode}).on(this.onCtrlA,this,this.disposables)}return e.prototype.onEnter=function(e){ +e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus()),this.openController.shouldOpen(e.browserEvent)&&this.list.open(this.list.getFocus(),e.browserEvent)},e.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(s.range(this.list.length)),this.view.domNode.focus()}, +e.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([]),this.view.domNode.focus()},e.prototype.dispose=function(){this.disposables=i.dispose(this.disposables)},e}(),D=function(){function e(e,t){this.list=e,this.view=t,this.disposables=[],this.disposables=[];p.chain(f.domEvent(t.domNode,"keydown")).filter(function(e){return!C(e.target)}).map(function(e){return new h.StandardKeyboardEvent(e)}).filter(function(e){return!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)}).on(this.onTab,this,this.disposables)}return e.prototype.onTab=function(e){if(e.target===this.view.domNode){var t=this.list.getFocus();if(0!==t.length){var n=this.view.domElement(t[0]).querySelector("[tabIndex]");if(n&&n instanceof HTMLElement){var i=window.getComputedStyle(n);"hidden"!==i.visibility&&"none"!==i.display&&(e.preventDefault(),e.stopPropagation(),n.focus())}}}},e.prototype.dispose=function(){this.disposables=i.dispose(this.disposables)},e}();t.isSelectionSingleChangeEvent=b, +t.isSelectionRangeChangeEvent=S;var T={isSelectionSingleChangeEvent:b,isSelectionRangeChangeEvent:S},k={shouldOpen:function(e){return!(e instanceof MouseEvent)||!w(e)}},R=function(){function e(e,t,n){void 0===n&&(n={}),this.list=e,this.view=t,this.options=n,this.didJustPressContextMenuKey=!1,this.disposables=[],this.multipleSelectionSupport=!(!1===n.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=n.multipleSelectionController||T),this.openController=n.openController||k,t.onMouseDown(this.onMouseDown,this,this.disposables),t.onMouseClick(this.onPointer,this,this.disposables),t.onMouseDblClick(this.onDoubleClick,this,this.disposables),t.onTouchStart(this.onMouseDown,this,this.disposables),t.onTap(this.onPointer,this,this.disposables),c.Gesture.addTarget(t.domNode)}return Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this,t=p.chain(f.domEvent(this.view.domNode,"keydown")).map(function(e){return new h.StandardKeyboardEvent(e) +}).filter(function(t){return e.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode}).filter(function(e){return e.preventDefault(),e.stopPropagation(),!1}).event,n=p.chain(f.domEvent(this.view.domNode,"keyup")).filter(function(){var t=e.didJustPressContextMenuKey;return e.didJustPressContextMenuKey=!1,t}).filter(function(){return e.list.getFocus().length>0}).map(function(){var t=e.list.getFocus()[0];return{index:t,element:e.view.element(t),anchor:e.view.domElement(t)}}).filter(function(e){return!!e.anchor}).event,i=p.chain(this.view.onContextMenu).filter(function(){return!e.didJustPressContextMenuKey}).map(function(e){var t=e.element,n=e.index,i=e.browserEvent;return{element:t,index:n,anchor:{x:i.clientX+1,y:i.clientY}}}).event;return p.anyEvent(t,n,i)},enumerable:!0,configurable:!0}),e.prototype.isSelectionSingleChangeEvent=function(e){ +return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):d.isMacintosh?e.browserEvent.metaKey:e.browserEvent.ctrlKey},e.prototype.isSelectionRangeChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey},e.prototype.isSelectionChangeEvent=function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)},e.prototype.onMouseDown=function(e){!1===this.options.focusOnMouseDown?(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation()):document.activeElement!==e.browserEvent.target&&this.view.domNode.focus();var t=this.list.getFocus()[0],n=this.list.getSelection();if(t=void 0===t?n[0]:t,this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e))return this.changeSelection(e,t);var i=e.index;if(n.every(function(e){return e!==i})&&this.list.setFocus([i]), +this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return this.changeSelection(e,t);this.options.selectOnMouseDown&&!w(e.browserEvent)&&(this.list.setSelection([i]),this.openController.shouldOpen(e.browserEvent)&&this.list.open([i],e.browserEvent))},e.prototype.onPointer=function(e){if(!(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e)||this.options.selectOnMouseDown)){var t=this.list.getFocus();this.list.setSelection(t),this.openController.shouldOpen(e.browserEvent)&&this.list.open(t,e.browserEvent)}},e.prototype.onDoubleClick=function(e){if(!this.multipleSelectionSupport||!this.isSelectionChangeEvent(e)){var t=this.list.getFocus();this.list.setSelection(t),this.list.pin(t)}},e.prototype.changeSelection=function(e,t){var n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){var i=Math.min(t,n),o=Math.max(t,n),r=s.range(i,o+1),a=function(e,t){var n=e.indexOf(t);if(-1===n)return[];for(var i=[],o=n-1;o>=0&&e[o]===t-(n-o);)i.push(e[o--]);for(i.reverse(), +o=n;o=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){i++,o++;continue}e[i]this.view.length)throw new Error("Invalid start index: "+e);if(t<0)throw new Error("Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents(function(){return i.spliceable.splice(e,t,n)})},Object.defineProperty(e.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.view.getContentHeight()},enumerable:!0,configurable:!0}),e.prototype.layout=function(e){this.view.layout(e)},e.prototype.setSelection=function(e){for(var t=0,n=e;t=this.length)throw new Error("Invalid index "+i)}e=e.sort(F),this.selection.set(e)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.setFocus=function(e){for(var t=0,n=e;t=this.length)throw new Error("Invalid index "+i)}e=e.sort(F),this.focus.set(e)},e.prototype.focusNext=function(e,t){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var n=this.focus.get(),i=n.length>0?n[0]+e:0;this.setFocus(t?[i%this.length]:[Math.min(i,this.length-1)])}},e.prototype.focusPrevious=function(e,t){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var n=this.focus.get(),i=n.length>0?n[0]-e:0;t&&i<0&&(i=(this.length+i%this.length)%this.length),this.setFocus([Math.max(i,0)])}},e.prototype.focusNextPage=function(){var e=this,t=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);t=0===t?0:t-1;var n=this.view.element(t);if(this.getFocusedElements()[0]!==n)this.setFocus([t]);else{var i=this.view.getScrollTop() +;this.view.setScrollTop(i+this.view.renderHeight-this.view.elementHeight(t)),this.view.getScrollTop()!==i&&setTimeout(function(){return e.focusNextPage()},0)}},e.prototype.focusPreviousPage=function(){var e,t=this,n=this.view.getScrollTop();e=0===n?this.view.indexAt(n):this.view.indexAfter(n-1);var i=this.view.element(e);if(this.getFocusedElements()[0]!==i)this.setFocus([e]);else{var o=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==o&&setTimeout(function(){return t.focusPreviousPage()},0)}},e.prototype.focusLast=function(){0!==this.length&&this.setFocus([this.length-1])},e.prototype.focusFirst=function(){0!==this.length&&this.setFocus([0])},e.prototype.getFocus=function(){return this.focus.get()},e.prototype.getFocusedElements=function(){var e=this;return this.getFocus().map(function(t){return e.view.element(t)})},e.prototype.reveal=function(e,t){if(e<0||e>=this.length)throw new Error("Invalid index "+e) +;var n=this.view.getScrollTop(),i=this.view.elementTop(e),o=this.view.elementHeight(e);if(r.isNumber(t)){var s=o-this.view.renderHeight;this.view.setScrollTop(s*y.clamp(t,0,1)+i)}else{var a=i+o,l=n+this.view.renderHeight;i=l&&this.view.setScrollTop(a-this.view.renderHeight)}},e.prototype.getElementDomId=function(e){return this.idPrefix+"_"+e},e.prototype.isDOMFocused=function(){return this.view.domNode===document.activeElement},e.prototype.getHTMLElement=function(){return this.view.domNode},e.prototype.open=function(e,t){for(var n=this,i=0,o=e;i=this.length)throw new Error("Invalid index "+r)}this._onOpen.fire({indexes:e,elements:e.map(function(e){return n.view.element(e)}),browserEvent:t})},e.prototype.pin=function(e){for(var t=0,n=e;t=this.length)throw new Error("Invalid index "+i)}this._onPin.fire(e)},e.prototype.style=function(e){this.styleController.style(e)},e.prototype.toListEvent=function(e){ +var t=this,n=e.indexes;return{indexes:n,elements:n.map(function(e){return t.view.element(e)})}},e.prototype._onFocusChange=function(){var e=this.focus.get();e.length>0?this.view.domNode.setAttribute("aria-activedescendant",this.getElementDomId(e[0])):this.view.domNode.removeAttribute("aria-activedescendant"),this.view.domNode.setAttribute("role","tree"),u.toggleClass(this.view.domNode,"element-focused",e.length>0)},e.prototype._onSelectionChange=function(){var e=this.selection.get();u.toggleClass(this.view.domNode,"selection-none",0===e.length),u.toggleClass(this.view.domNode,"selection-single",1===e.length),u.toggleClass(this.view.domNode,"selection-multiple",e.length>1)},e.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables=i.dispose(this.disposables)},e.InstanceCount=0,a([l.memoize],e.prototype,"onFocusChange",null),a([l.memoize],e.prototype,"onSelectionChange",null),e}();t.List=V}),define(t[279],n([5,4]),function(e,t){return e.create("vs/base/browser/ui/menu/menu",t)}), +define(t[280],n([1,0,279,67,69,7,57,56,14,221]),function(e,t,n,i,r,s,a,l,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=function(e){function t(t,n,i){var o=e.call(this,i||"submenu",t,"",!0)||this;return o.entries=n,o}return o(t,e),t}(i.Action);t.SubmenuAction=d;var c=function(){function e(e,t,n){void 0===n&&(n={});var i=this;s.addClass(e,"monaco-menu-container"),e.setAttribute("role","presentation");var o=document.createElement("div");s.addClass(o,"monaco-menu"),o.setAttribute("role","presentation"),e.appendChild(o);var a={parent:this};this.actionBar=new r.ActionBar(o,{orientation:r.ActionsOrientation.VERTICAL,actionItemProvider:function(e){return i.doGetActionItem(e,n,a)},context:n.context,actionRunner:n.actionRunner,isMenu:!0,ariaLabel:n.ariaLabel}),this.actionBar.push(t,{icon:!0,label:!0,isMenu:!0})}return e.prototype.doGetActionItem=function(e,t,n){if(e instanceof r.Separator)return new r.ActionItem(t.context,e,{icon:!0});if(e instanceof d)return new p(e,e.entries,n,t);var i={} +;if(t.getKeyBinding){var o=t.getKeyBinding(e);o&&(i.keybinding=o.getLabel())}return new h(t.context,e,i)},Object.defineProperty(e.prototype,"onDidCancel",{get:function(){return this.actionBar.onDidCancel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this.actionBar.onDidBlur},enumerable:!0,configurable:!0}),e.prototype.focus=function(e){void 0===e&&(e=!0),this.actionBar&&this.actionBar.focus(e)},e.prototype.dispose=function(){this.actionBar&&(this.actionBar.dispose(),this.actionBar=null),this.listener&&(this.listener.dispose(),this.listener=null)},e}();t.Menu=c;var h=function(e){function t(t,n,i){void 0===i&&(i={});var o=this;return i.isMenu=!0,o=e.call(this,n,n,i)||this,o.options=i,o.options.icon=void 0!==i.icon&&i.icon,o.options.label=void 0===i.label||i.label,o.cssClass="",o}return o(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.$e=l.$("a.action-menu-item").appendTo(this.builder), +this._action.id===r.Separator.ID?this.$e.attr({role:"presentation"}):this.$e.attr({role:"menuitem"}),this.$label=l.$("span.action-label").appendTo(this.$e),this.options.label&&this.options.keybinding&&l.$("span.keybinding").text(this.options.keybinding).appendTo(this.$e),this._updateClass(),this._updateLabel(),this._updateTooltip(),this._updateEnabled(),this._updateChecked()},t.prototype._updateLabel=function(){if(this.options.label){var e=this.getAction().label;if(e){var n=t.MNEMONIC_REGEX.exec(e);if(n&&2===n.length){var i=n[1],o=e.replace(t.MNEMONIC_REGEX,i);this.$e.getHTMLElement().accessKey=i.toLocaleLowerCase(),this.$label.attr("aria-label",o)}else this.$label.attr("aria-label",e);e=e.replace(t.MNEMONIC_REGEX,"$1̲")}this.$label.text(e)}},t.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=n.localize(0,null,e,this.options.keybinding))), +e&&this.$e.attr({title:e})},t.prototype._updateClass=function(){this.cssClass&&this.$e.removeClass(this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.$label.addClass("icon"),this.cssClass&&this.$label.addClass(this.cssClass),this._updateEnabled()):this.$label.removeClass("icon")},t.prototype._updateEnabled=function(){this.getAction().enabled?(this.builder.removeClass("disabled"),this.$e.removeClass("disabled"),this.$e.attr({tabindex:0})):(this.builder.addClass("disabled"),this.$e.addClass("disabled"),s.removeTabIndexAndUpdateFocus(this.$e.getHTMLElement()))},t.prototype._updateChecked=function(){this.getAction().checked?this.$label.addClass("checked"):this.$label.removeClass("checked")},t.MNEMONIC_REGEX=/&&(.)/g,t}(r.BaseActionItem),p=function(e){function t(t,n,i,o){var r=e.call(this,t,t,{label:!0,isMenu:!0})||this;return r.submenuActions=n,r.parentData=i,r.submenuOptions=o,r.showScheduler=new u.RunOnceScheduler(function(){r.mouseOver&&(r.cleanupExistingSubmenu(!1), +r.createSubmenu(!1))},250),r.hideScheduler=new u.RunOnceScheduler(function(){s.isAncestor(document.activeElement,r.builder.getHTMLElement())||r.parentData.submenu!==r.mysubmenu||(r.parentData.parent.focus(!1),r.cleanupExistingSubmenu(!0))},750),r}return o(t,e),t.prototype.render=function(t){var n=this;e.prototype.render.call(this,t),this.$e.addClass("monaco-submenu-item"),this.$e.attr("aria-haspopup","true"),l.$("span.submenu-indicator").text("▶").appendTo(this.$e),l.$(this.builder).on(s.EventType.KEY_UP,function(e){new a.StandardKeyboardEvent(e).equals(17)&&(s.EventHelper.stop(e,!0),n.createSubmenu(!0))}),l.$(this.builder).on(s.EventType.KEY_DOWN,function(e){new a.StandardKeyboardEvent(e).equals(17)&&s.EventHelper.stop(e,!0)}),l.$(this.builder).on(s.EventType.MOUSE_OVER,function(e){n.mouseOver||(n.mouseOver=!0,n.showScheduler.schedule())}),l.$(this.builder).on(s.EventType.MOUSE_LEAVE,function(e){n.mouseOver=!1}),l.$(this.builder).on(s.EventType.FOCUS_OUT,function(e){ +s.isAncestor(document.activeElement,n.builder.getHTMLElement())||n.hideScheduler.schedule()})},t.prototype.onClick=function(e){s.EventHelper.stop(e,!0),this.createSubmenu(!1)},t.prototype.cleanupExistingSubmenu=function(e){this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)&&(this.parentData.submenu.dispose(),this.parentData.submenu=null,this.submenuContainer&&(this.submenuContainer.dispose(),this.submenuContainer=null))},t.prototype.createSubmenu=function(e){var t=this;void 0===e&&(e=!0),this.parentData.submenu?this.parentData.submenu.focus(!1):(this.submenuContainer=l.$(this.builder).div({class:"monaco-submenu menubar-menu-items-holder context-view"}),l.$(this.submenuContainer).style({left:l.$(this.builder).getClientArea().width+"px"}),l.$(this.submenuContainer).on(s.EventType.KEY_UP,function(e){new a.StandardKeyboardEvent(e).equals(15)&&(s.EventHelper.stop(e,!0),t.parentData.parent.focus(),t.parentData.submenu.dispose(),t.parentData.submenu=null,t.submenuContainer.dispose(), +t.submenuContainer=null)}),l.$(this.submenuContainer).on(s.EventType.KEY_DOWN,function(e){new a.StandardKeyboardEvent(e).equals(15)&&s.EventHelper.stop(e,!0)}),this.parentData.submenu=new c(this.submenuContainer.getHTMLElement(),this.submenuActions,this.submenuOptions),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer.dispose(),this.submenuContainer=null)},t}(h)}),define(t[281],n([5,4]),function(e,t){return e.create("vs/base/common/keybindingLabels",t)}),define(t[162],n([1,0,281]),function(e,t,n){"use strict";function i(e,t,n){if(null===t)return"";var i=[];return e.ctrlKey&&i.push(n.ctrlKey),e.shiftKey&&i.push(n.shiftKey),e.altKey&&i.push(n.altKey),e.metaKey&&i.push(n.metaKey),i.push(t),i.join(n.separator)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,n){ +void 0===n&&(n=t),this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}return e.prototype.toLabel=function(e,t,n,o,r){return null===t&&null===o?null:function(e,t,n,o,r){var s=i(e,t,r);return null!==o&&(s+=" ",s+=i(n,o,r)),s}(e,t,n,o,this.modifierLabels[r])},e}();t.ModifierLabelProvider=o,t.UILabelProvider=new o({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:n.localize(0,null),shiftKey:n.localize(1,null),altKey:n.localize(2,null),metaKey:n.localize(3,null),separator:"+"},{ctrlKey:n.localize(4,null),shiftKey:n.localize(5,null),altKey:n.localize(6,null),metaKey:n.localize(7,null),separator:"+"}),t.AriaLabelProvider=new o({ctrlKey:n.localize(8,null),shiftKey:n.localize(9,null),altKey:n.localize(10,null),metaKey:n.localize(11,null),separator:"+"},{ctrlKey:n.localize(12,null),shiftKey:n.localize(13,null),altKey:n.localize(14,null),metaKey:n.localize(15,null),separator:"+"},{ctrlKey:n.localize(16,null),shiftKey:n.localize(17,null), +altKey:n.localize(18,null),metaKey:n.localize(19,null),separator:"+"})}),define(t[283],n([1,0,28,162,7,214]),function(e,t,n,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o.$,s=function(){function e(e,t){this.os=t,this.domNode=o.append(e,r(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}return e.prototype.set=function(t,n){this.didEverRender&&this.keybinding===t&&e.areSame(this.matches,n)||(this.keybinding=t,this.matches=n,this.render())},e.prototype.render=function(){if(o.clearNode(this.domNode),this.keybinding){var e=this.keybinding.getParts(),t=e[0],n=e[1];t&&this.renderPart(this.domNode,t,this.matches?this.matches.firstPart:null),n&&(o.append(this.domNode,r("span.monaco-keybinding-key-chord-separator",null," ")),this.renderPart(this.domNode,n,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()}this.didEverRender=!0},e.prototype.renderPart=function(e,t,n){var o=i.UILabelProvider.modifierLabels[this.os] +;t.ctrlKey&&this.renderKey(e,o.ctrlKey,n&&n.ctrlKey,o.separator),t.shiftKey&&this.renderKey(e,o.shiftKey,n&&n.shiftKey,o.separator),t.altKey&&this.renderKey(e,o.altKey,n&&n.altKey,o.separator),t.metaKey&&this.renderKey(e,o.metaKey,n&&n.metaKey,o.separator);var r=t.keyLabel;r&&this.renderKey(e,r,n&&n.keyCode,"")},e.prototype.renderKey=function(e,t,n,i){o.append(e,r("span.monaco-keybinding-key"+(n?".highlight":""),null,t)),i&&o.append(e,r("span.monaco-keybinding-key-separator",null,i))},e.prototype.dispose=function(){this.keybinding=null},e.areSame=function(e,t){return e===t||!e&&!t||!!e&&!!t&&n.equals(e.firstPart,t.firstPart)&&n.equals(e.chordPart,t.chordPart)},e}();t.KeybindingLabel=s}),define(t[284],n([5,4]),function(e,t){return e.create("vs/base/common/severity",t)}),define(t[118],n([1,0,284,6]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o;!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(o||(o={})),function(e){ +var t="error",o="warning",r="warn",s="info",a=Object.create(null);a[e.Error]=n.localize(0,null),a[e.Warning]=n.localize(1,null),a[e.Info]=n.localize(2,null),e.fromValue=function(n){return n?i.equalsIgnoreCase(t,n)?e.Error:i.equalsIgnoreCase(o,n)||i.equalsIgnoreCase(r,n)?e.Warning:i.equalsIgnoreCase(s,n)?e.Info:e.Ignore:e.Ignore}}(o||(o={})),t.default=o}),define(t[286],n([5,4]),function(e,t){return e.create("vs/base/parts/quickopen/browser/quickOpenModel",t)}),define(t[119],n([1,0,286,13,199,69,138,7,283,18]),function(e,t,n,i,r,s,a,l,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=0,h=function(){function e(e){void 0===e&&(e=[]),this.id=(c++).toString(),this.labelHighlights=e,this.descriptionHighlights=[]}return e.prototype.getId=function(){return this.id},e.prototype.getLabel=function(){return null},e.prototype.getLabelOptions=function(){return null},e.prototype.getAriaLabel=function(){return[this.getLabel(),this.getDescription(),this.getDetail()].filter(function(e){return!!e +}).join(", ")},e.prototype.getDetail=function(){return null},e.prototype.getIcon=function(){return null},e.prototype.getDescription=function(){return null},e.prototype.getTooltip=function(){return null},e.prototype.getDescriptionTooltip=function(){return null},e.prototype.getKeybinding=function(){return null},e.prototype.isHidden=function(){return this.hidden},e.prototype.setHighlights=function(e,t,n){this.labelHighlights=e,this.descriptionHighlights=t,this.detailHighlights=n},e.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},e.prototype.run=function(e,t){return!1},e}();t.QuickOpenEntry=h;var p=function(e){function t(t,n,i){var o=e.call(this)||this;return o.entry=t,o.groupLabel=n,o.withBorder=i,o}return o(t,e),t.prototype.getGroupLabel=function(){return this.groupLabel},t.prototype.setGroupLabel=function(e){this.groupLabel=e},t.prototype.showBorder=function(){return this.withBorder},t.prototype.setShowBorder=function(e){this.withBorder=e}, +t.prototype.getLabel=function(){return this.entry?this.entry.getLabel():e.prototype.getLabel.call(this)},t.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():e.prototype.getLabelOptions.call(this)},t.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():e.prototype.getAriaLabel.call(this)},t.prototype.getDetail=function(){return this.entry?this.entry.getDetail():e.prototype.getDetail.call(this)},t.prototype.getIcon=function(){return this.entry?this.entry.getIcon():e.prototype.getIcon.call(this)},t.prototype.getDescription=function(){return this.entry?this.entry.getDescription():e.prototype.getDescription.call(this)},t.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():e.prototype.getHighlights.call(this)},t.prototype.isHidden=function(){return this.entry?this.entry.isHidden():e.prototype.isHidden.call(this)},t.prototype.setHighlights=function(t,n,i){ +this.entry?this.entry.setHighlights(t,n,i):e.prototype.setHighlights.call(this,t,n,i)},t.prototype.run=function(t,n){return this.entry?this.entry.run(t,n):e.prototype.run.call(this,t,n)},t}(h);t.QuickOpenEntryGroup=p;var f=function(){function e(){}return e.prototype.hasActions=function(e,t){return!1},e.prototype.getActions=function(e,t){return i.TPromise.as(null)},e}(),g=function(){function e(e,t){void 0===e&&(e=new f),void 0===t&&(t=null),this.actionProvider=e,this.actionRunner=t}return e.prototype.getHeight=function(e){return e.getDetail()?44:22},e.prototype.getTemplateId=function(e){return e instanceof p?"quickOpenEntryGroup":"quickOpenEntry"},e.prototype.renderTemplate=function(e,t,n){var i=document.createElement("div");l.addClass(i,"sub-content"),t.appendChild(i);var o=l.$(".quick-open-row"),c=l.$(".quick-open-row"),h=l.$(".quick-open-entry",null,o,c);i.appendChild(h);var p=document.createElement("span");o.appendChild(p);var f=new r.IconLabel(o,{supportHighlights:!0,supportDescriptionHighlights:!0 +}),g=document.createElement("span");o.appendChild(g),l.addClass(g,"quick-open-entry-keybinding");var m=new u.KeybindingLabel(g,d.OS),v=document.createElement("div");c.appendChild(v),l.addClass(v,"quick-open-entry-meta");var _,y=new a.HighlightedLabel(v);"quickOpenEntryGroup"===e&&(_=document.createElement("div"),l.addClass(_,"results-group"),t.appendChild(_)),l.addClass(t,"actions");var C=document.createElement("div");l.addClass(C,"primary-action-bar"),t.appendChild(C);return{container:t,entry:h,icon:p,label:f,detail:y,keybinding:m,group:_,actionBar:new s.ActionBar(C,{actionRunner:this.actionRunner})}},e.prototype.renderElement=function(e,t,n,i){if(this.actionProvider.hasActions(null,e)?l.addClass(n.container,"has-actions"):l.removeClass(n.container,"has-actions"),n.actionBar.context=e,this.actionProvider.getActions(null,e).then(function(e){n.actionBar.isEmpty()&&e&&e.length>0?n.actionBar.push(e,{icon:!0,label:!1}):n.actionBar.isEmpty()||e&&0!==e.length||n.actionBar.clear()}), +e instanceof p&&e.getGroupLabel()?l.addClass(n.container,"has-group-label"):l.removeClass(n.container,"has-group-label"),e instanceof p){var o=e,r=n;o.showBorder()?(l.addClass(r.container,"results-group-separator"),r.container.style.borderTopColor=i.pickerGroupBorder.toString()):(l.removeClass(r.container,"results-group-separator"),r.container.style.borderTopColor=null);var s=o.getGroupLabel()||"";r.group.textContent=s,r.group.style.color=i.pickerGroupForeground.toString()}if(e instanceof h){var a=e.getHighlights(),u=a[0],d=a[1],c=a[2],f=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=f;var g=e.getLabelOptions()||Object.create(null);g.matches=u||[],g.title=e.getTooltip(),g.descriptionTitle=e.getDescriptionTooltip()||e.getDescription(),g.descriptionMatches=d||[],n.label.setValue(e.getLabel(),e.getDescription(),g),n.detail.set(e.getDetail(),c),n.keybinding.set(e.getKeybinding(),null)}},e.prototype.disposeTemplate=function(e,t){var n=t;n.actionBar.dispose(),n.actionBar=null,n.container=null, +n.entry=null,n.keybinding.dispose(),n.keybinding=null,n.detail.dispose(),n.detail=null,n.group=null,n.icon=null,n.label.dispose(),n.label=null},e}(),m=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=new f),this._entries=e,this._dataSource=this,this._renderer=new g(t),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(e.prototype,"entries",{get:function(){return this._entries},set:function(e){this._entries=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityProvider",{ +get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),e.prototype.getId=function(e){return e.getId()},e.prototype.getLabel=function(e){return e.getLabel()},e.prototype.getAriaLabel=function(e){return e.getAriaLabel()?n.localize(0,null,e.getAriaLabel()):n.localize(1,null)},e.prototype.isVisible=function(e){return!e.isHidden()},e.prototype.run=function(e,t,n){return e.run(t,n)},e}();t.QuickOpenModel=m}),define(t[288],n([5,4]),function(e,t){return e.create("vs/base/parts/quickopen/browser/quickOpenWidget",t)}),define(t[289],n([1,0,288,13,18,33,10,93,443,56,115,155,223,57,81,7,2,43,27,28,42,249]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g,m,v,_,y,C,b){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onContextMenu=function(t,n,i){return r.isMacintosh?this.onLeftClick(t,n,i):e.prototype.onContextMenu.call(this,t,n,i)},t}(g.DefaultController);t.QuickOpenController=S;var w +;!function(e){e[e.ELEMENT_SELECTED=0]="ELEMENT_SELECTED",e[e.FOCUS_LOST=1]="FOCUS_LOST",e[e.CANCELED=2]="CANCELED"}(w=t.HideReason||(t.HideReason={}));var E={background:y.Color.fromHex("#1E1E1E"),foreground:y.Color.fromHex("#CCCCCC"),pickerGroupForeground:y.Color.fromHex("#0097FB"),pickerGroupBorder:y.Color.fromHex("#3F3F46"),widgetShadow:y.Color.fromHex("#000000"),progressBarBackground:y.Color.fromHex("#0E70C0")},L=n.localize(0,null),x=function(e){function t(t,n,i){var o=e.call(this)||this;return o.isDisposed=!1,o.container=t,o.callbacks=n,o.options=i,o.styles=i||Object.create(null),C.mixin(o.styles,E,!1),o.model=null,o}return o(t,e),t.prototype.getModel=function(){return this.model},t.prototype.create=function(){var e=this;return this.builder=d.$().div(function(t){t.on(m.EventType.KEY_DOWN,function(t){var n=new f.StandardKeyboardEvent(t);if(9===n.keyCode)m.EventHelper.stop(t,!0),e.hide(w.CANCELED);else if(2===n.keyCode&&!n.altKey&&!n.ctrlKey&&!n.metaKey){ +var i=t.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");n.shiftKey&&n.target===i[0]?(m.EventHelper.stop(t,!0),i[i.length-1].focus()):n.shiftKey||n.target!==i[i.length-1]||(m.EventHelper.stop(t,!0),i[0].focus())}}).on(m.EventType.CONTEXT_MENU,function(e){return m.EventHelper.stop(e,!0)}).on(m.EventType.FOCUS,function(t){return e.gainingFocus()},null,!0).on(m.EventType.BLUR,function(t){return e.loosingFocus(t)},null,!0),e.progressBar=e._register(new p.ProgressBar(t.clone(),{progressBarBackground:e.styles.progressBarBackground})),e.progressBar.hide(),t.div({class:"quick-open-input"},function(t){e.inputContainer=t,e.inputBox=e._register(new c.InputBox(t.getHTMLElement(),null,{placeholder:e.options.inputPlaceHolder||"",ariaLabel:L,inputBackground:e.styles.inputBackground,inputForeground:e.styles.inputForeground,inputBorder:e.styles.inputBorder,inputValidationInfoBackground:e.styles.inputValidationInfoBackground, +inputValidationInfoBorder:e.styles.inputValidationInfoBorder,inputValidationWarningBackground:e.styles.inputValidationWarningBackground,inputValidationWarningBorder:e.styles.inputValidationWarningBorder,inputValidationErrorBackground:e.styles.inputValidationErrorBackground,inputValidationErrorBorder:e.styles.inputValidationErrorBorder})),e.inputElement=e.inputBox.inputElement,e.inputElement.setAttribute("role","combobox"),e.inputElement.setAttribute("aria-haspopup","false"),e.inputElement.setAttribute("aria-autocomplete","list"),m.addDisposableListener(e.inputBox.inputElement,m.EventType.KEY_DOWN,function(t){var n=new f.StandardKeyboardEvent(t),i=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)m.EventHelper.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart===e.inputBox.inputElement.selectionEnd&&(e.inputBox.inputElement.selectionStart=e.inputBox.value.length);else if(3===n.keyCode||i){m.EventHelper.stop(t,!0) +;var o=e.tree.getFocus();o&&e.elementSelected(o,t,i?l.Mode.OPEN_IN_BACKGROUND:l.Mode.OPEN)}}),m.addDisposableListener(e.inputBox.inputElement,m.EventType.INPUT,function(t){e.onType()})}),e.resultCount=t.div({class:"quick-open-result-count","aria-live":"polite"}).clone(),e.treeContainer=t.div({class:"quick-open-tree"},function(t){var i=e.options.treeCreator||function(e,t,n){return new h.Tree(e,t,n)};e.tree=e._register(i(t.getHTMLElement(),{dataSource:new u.DataSource(e),controller:new S({clickBehavior:g.ClickBehavior.ON_MOUSE_UP,keyboardSupport:e.options.keyboardSupport}),renderer:e.renderer=new u.Renderer(e,e.styles),filter:new u.Filter(e),accessibilityProvider:new u.AccessibilityProvider(e)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:_.ScrollbarVisibility.Visible,horizontalScrollMode:_.ScrollbarVisibility.Hidden,ariaLabel:n.localize(1,null),keyboardSupport:e.options.keyboardSupport,preventRootFocus:!1})),e.treeElement=e.tree.getHTMLElement(), +e._register(e.tree.onDidChangeFocus(function(t){e.elementFocused(t.focus,t)})),e._register(e.tree.onDidChangeSelection(function(t){if(t.selection&&t.selection.length>0){var n=t.payload&&t.payload.originalEvent instanceof b.StandardMouseEvent?t.payload.originalEvent:void 0,i=!!n&&e.shouldOpenInBackground(n);e.elementSelected(t.selection[0],t,i?l.Mode.OPEN_IN_BACKGROUND:l.Mode.OPEN)}}))}).on(m.EventType.KEY_DOWN,function(t){var n=new f.StandardKeyboardEvent(t);e.quickNavigateConfiguration&&(18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(m.EventHelper.stop(t,!0),e.navigateInTree(n.keyCode)))}).on(m.EventType.KEY_UP,function(t){var n=new f.StandardKeyboardEvent(t),i=n.keyCode;if(e.quickNavigateConfiguration){var o=e.quickNavigateConfiguration.keybindings;if(3===i||o.some(function(e){var t=e.getParts(),o=t[0];return!t[1]&&(o.shiftKey&&4===i?!(n.ctrlKey||n.altKey||n.metaKey):!(!o.altKey||6!==i)||(!(!o.ctrlKey||5!==i)||!(!o.metaKey||57!==i)))})){var r=e.tree.getFocus();r&&e.elementSelected(r,t)}} +}).clone()}).addClass("monaco-quick-open-widget").build(this.container),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),m.addDisposableListener(this.treeContainer.getHTMLElement(),m.EventType.KEY_DOWN,function(t){var n=new f.StandardKeyboardEvent(t);e.quickNavigateConfiguration||18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(m.EventHelper.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.treeElement.focus())}),this.builder.getHTMLElement()},t.prototype.style=function(e){this.styles=e,this.applyStyles()},t.prototype.applyStyles=function(){if(this.builder){var e=this.styles.foreground?this.styles.foreground.toString():null,t=this.styles.background?this.styles.background.toString():null,n=this.styles.borderColor?this.styles.borderColor.toString():null,i=this.styles.widgetShadow?this.styles.widgetShadow.toString():null;this.builder.style("color",e),this.builder.style("background-color",t),this.builder.style("border-color",n), +this.builder.style("border-width",n?"1px":null),this.builder.style("border-style",n?"solid":null),this.builder.style("box-shadow",i?"0 5px 8px "+i:null)}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,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},t.prototype.shouldOpenInBackground=function(e){ +if(e instanceof f.StandardKeyboardEvent){if(17!==e.keyCode)return!1;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;var t=this.inputBox.inputElement;return t.selectionEnd===this.inputBox.value.length&&t.selectionStart===t.selectionEnd}return e.middleButton},t.prototype.onType=function(){var e=this.inputBox.value;this.helpText&&(e?this.helpText.hide():this.helpText.show()),this.callbacks.onType(e)},t.prototype.navigateInTree=function(e,t){var n=this.tree.getInput(),i=n?n.entries:[],o=this.tree.getFocus();switch(e){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:t?this.tree.focusPrevious():this.tree.focusNext()}var r=this.tree.getFocus();i.length>1&&o===r&&(16===e||2===e&&t?this.tree.focusLast():(18===e||2===e&&!t)&&this.tree.focusFirst()),(r=this.tree.getFocus())&&this.tree.reveal(r).done(null,a.onUnexpectedError)},t.prototype.elementFocused=function(e,t){if(e&&this.isVisible()){ +this.inputElement.setAttribute("aria-activedescendant",this.treeElement.getAttribute("aria-activedescendant"));var n={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(e,l.Mode.PREVIEW,n)}},t.prototype.elementSelected=function(e,t,n){var i=!0;if(this.isVisible()){var o=n||l.Mode.OPEN,r={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};i=this.model.runner.run(e,o,r)}i&&this.hide(w.ELEMENT_SELECTED)},t.prototype.extractKeyMods=function(e){return{ctrlCmd:e&&(e.ctrlKey||e.metaKey||e.payload&&e.payload.originalEvent&&(e.payload.originalEvent.ctrlKey||e.payload.originalEvent.metaKey)),alt:e&&(e.altKey||e.payload&&e.payload.originalEvent&&e.payload.originalEvent.altKey)}},t.prototype.show=function(e,t){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=t?t.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(this.inputContainer.hide(),this.builder.show(), +this.tree.domFocus()):(this.inputContainer.show(),this.builder.show(),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||s.isString(e)?this.helpText.hide():this.helpText.show()),s.isString(e)?this.doShowWithPrefix(e):this.doShowWithInput(e,t&&t.autoFocus?t.autoFocus:{}),t&&t.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(t.inputSelection),this.callbacks.onShow&&this.callbacks.onShow()},t.prototype.doShowWithPrefix=function(e){this.inputBox.value=e,this.callbacks.onType(e)},t.prototype.doShowWithInput=function(e,t){this.setInput(e,t)},t.prototype.setInputAndLayout=function(e,t){var n=this;this.treeContainer.style({height:this.getHeight(e)+"px"}),this.tree.setInput(null).then(function(){return n.model=e,n.inputElement.setAttribute("aria-haspopup",String(e&&e.entries&&e.entries.length>0)),n.tree.setInput(e)}).done(function(){n.tree.layout();var i=e?e.entries.filter(function(t){return n.isElementVisible(e,t)}):[];n.updateResultCount(i.length), +i.length&&n.autoFocus(e,i,t)},a.onUnexpectedError)},t.prototype.isElementVisible=function(e,t){return!e.filter||e.filter.isVisible(t)},t.prototype.autoFocus=function(e,t,n){if(void 0===n&&(n={}),n.autoFocusPrefixMatch){for(var i=void 0,o=void 0,r=n.autoFocusPrefixMatch,s=r.toLowerCase(),l=0;ln.autoFocusIndex&&(this.tree.focusNth(n.autoFocusIndex),this.tree.reveal(this.tree.getFocus()).done(null,a.onUnexpectedError)):n.autoFocusSecondEntry?t.length>1&&this.tree.focusNth(1):n.autoFocusLastEntry&&t.length>1&&this.tree.focusLast()},t.prototype.getHeight=function(e){var n=this,i=e.renderer;if(!e){var o=i.getHeight(null) +;return this.options.minItemsToShow?this.options.minItemsToShow*o:0}var r,s=0;this.layoutDimensions&&this.layoutDimensions.height&&(r=.4*(this.layoutDimensions.height-50)),(!r||r>t.MAX_ITEMS_HEIGHT)&&(r=t.MAX_ITEMS_HEIGHT);for(var a=e.entries.filter(function(t){return n.isElementVisible(e,t)}),l=this.options.maxItemsToShow||a.length,u=0;u=2?(E=_?f.Large:f.LargeBlocks,R=2/C):(E=_?f.Small:f.SmallBlocks,R=1/C);(x=Math.max(0,Math.floor((k-c-2)*R/(u+R))))/R>y&&(x=Math.floor(y*R)),N=k-x,"left"===v?(L=0,I+=x,M+=x,D+=x,T+=x):L=t-x-c}else L=0,x=0,E=f.None,N=k;var O=Math.max(1,Math.floor((N-c-2)/u)),P=h?p:0;return{width:t, +height:n,glyphMarginLeft:I,glyphMarginWidth:w,glyphMarginHeight:n,lineNumbersLeft:M,lineNumbersWidth:b,lineNumbersHeight:n,decorationsLeft:D,decorationsWidth:l,decorationsHeight:n,contentLeft:T,contentWidth:N,contentHeight:n,renderMinimap:E,minimapLeft:L,minimapWidth:x,viewportColumn:O,verticalScrollbarWidth:c,horizontalScrollbarHeight:g,overviewRuler:{top:P,width:c,height:n-2*P,right:0}}},e}();t.EditorLayoutProvider=b;t.EDITOR_FONT_DEFAULTS={fontFamily:i.isMacintosh?"Menlo, Monaco, 'Courier New', monospace":i.isLinux?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:i.isMacintosh?12:14,lineHeight:0,letterSpacing:0},t.EDITOR_MODEL_DEFAULTS={tabSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},t.EDITOR_DEFAULTS={inDiffEditor:!1,wordSeparators:r.USUAL_WORD_SEPARATORS,lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1, +wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:g.Same,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" \t})]?|&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:!0,autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:n.localize(1,null),renderLineNumbers:1,renderCustomLineNumbers:null,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:m.Blink,mouseWheelZoom:!1,cursorStyle:v.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none", +renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"line",scrollbar:{vertical:o.ScrollbarVisibility.Auto,horizontal:o.ScrollbarVisibility.Auto,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:!0,iconsInSuggestions:!0,formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,suggest:{filterGraceful:!0, +snippets:"inline",snippetsPreventQuickSuggestions:!0},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}}}),define(t[122],n([1,0,18,98,47]),function(e,t,n,i,r){"use strict";function s(e,t){if("number"==typeof e)return e;var n=parseFloat(e);return isNaN(n)?t:n}function a(e,t,n){return en?n:e}function l(e,t){return"string"!=typeof e?t:e}Object.defineProperty(t,"__esModule",{value:!0});var u=n.isMacintosh?1.5:1.35,d=function(){function e(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}return e.createFromRawSettings=function(t,n){ +var o=l(t.fontFamily,r.EDITOR_FONT_DEFAULTS.fontFamily),d=l(t.fontWeight,r.EDITOR_FONT_DEFAULTS.fontWeight),c=s(t.fontSize,r.EDITOR_FONT_DEFAULTS.fontSize);0===(c=a(c,0,100))?c=r.EDITOR_FONT_DEFAULTS.fontSize:c<8&&(c=8);var h=function(e,t){if("number"==typeof e)return Math.round(e);var n=parseInt(e);return isNaN(n)?t:n}(t.lineHeight,0);0===(h=a(h,0,150))?h=Math.round(u*c):h<8&&(h=8);var p=s(t.letterSpacing,0);p=a(p,-5,20);var f=1+.1*i.EditorZoom.getZoomLevel();return c*=f,h*=f,new e({zoomLevel:n,fontFamily:o,fontWeight:d,fontSize:c,lineHeight:h,letterSpacing:p})},e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"+this.letterSpacing},e}();t.BareFontInfo=d;var c=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isTrusted=n,i.isMonospace=t.isMonospace,i.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,i.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,i.spaceWidth=t.spaceWidth, +i.maxDigitWidth=t.maxDigitWidth,i}return o(t,e),t.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.spaceWidth===e.spaceWidth&&this.maxDigitWidth===e.maxDigitWidth},t}(d);t.FontInfo=c}),define(t[298],n([1,0,102,2,47]),function(e,t,n,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.LineContext=r;var s=function(){function e(t,n,i,r){void 0===r&&(r=o.EDITOR_DEFAULTS.contribInfo.suggest),this._snippetCompareFn=e._compareCompletionItems,this._items=t,this._column=n,this._options=r,this._refilterKind=1,this._lineContext=i, +"top"===r.snippets?this._snippetCompareFn=e._compareCompletionItemsSnippetsUp:"bottom"===r.snippets&&(this._snippetCompareFn=e._compareCompletionItemsSnippetsDown)}return e.prototype.dispose=function(){for(var e=new Set,t=0,n=this._items;t2e3?n.fuzzyScore:n.fuzzyScoreGracefulAggressive,l=0;lt.score?-1:e.scoret.idx?1:0},e._compareCompletionItemsSnippetsDown=function(t,n){if(t.suggestion.type!==n.suggestion.type){if("snippet"===t.suggestion.type)return 1;if("snippet"===n.suggestion.type)return-1}return e._compareCompletionItems(t,n)},e._compareCompletionItemsSnippetsUp=function(t,n){if(t.suggestion.type!==n.suggestion.type){ +if("snippet"===t.suggestion.type)return-1;if("snippet"===n.suggestion.type)return 1}return e._compareCompletionItems(t,n)},e}();t.CompletionModel=s}),define(t[299],n([5,4]),function(e,t){return e.create("vs/editor/common/controller/cursor",t)}),define(t[300],n([5,4]),function(e,t){return e.create("vs/editor/common/modes/modesRegistry",t)}),define(t[301],n([5,4]),function(e,t){return e.create("vs/editor/common/services/modelServiceImpl",t)}),define(t[302],n([5,4]),function(e,t){return e.create("vs/editor/common/view/editorColorRegistry",t)}),define(t[303],n([5,4]),function(e,t){return e.create("vs/editor/contrib/bracketMatching/bracketMatching",t)}),define(t[304],n([5,4]),function(e,t){return e.create("vs/editor/contrib/caretOperations/caretOperations",t)}),define(t[305],n([5,4]),function(e,t){return e.create("vs/editor/contrib/caretOperations/transpose",t)}),define(t[306],n([5,4]),function(e,t){return e.create("vs/editor/contrib/clipboard/clipboard",t)}),define(t[307],n([5,4]),function(e,t){ +return e.create("vs/editor/contrib/codeAction/codeActionCommands",t)}),define(t[308],n([5,4]),function(e,t){return e.create("vs/editor/contrib/comment/comment",t)}),define(t[309],n([5,4]),function(e,t){return e.create("vs/editor/contrib/contextmenu/contextmenu",t)}),define(t[310],n([5,4]),function(e,t){return e.create("vs/editor/contrib/cursorUndo/cursorUndo",t)}),define(t[311],n([5,4]),function(e,t){return e.create("vs/editor/contrib/find/findController",t)}),define(t[312],n([5,4]),function(e,t){return e.create("vs/editor/contrib/find/findWidget",t)}),define(t[313],n([5,4]),function(e,t){return e.create("vs/editor/contrib/folding/folding",t)}),define(t[314],n([5,4]),function(e,t){return e.create("vs/editor/contrib/fontZoom/fontZoom",t)}),define(t[315],n([5,4]),function(e,t){return e.create("vs/editor/contrib/format/formatActions",t)}),define(t[316],n([5,4]),function(e,t){return e.create("vs/editor/contrib/goToDefinition/goToDefinitionCommands",t)}),define(t[317],n([5,4]),function(e,t){ +return e.create("vs/editor/contrib/goToDefinition/goToDefinitionMouse",t)}),define(t[318],n([5,4]),function(e,t){return e.create("vs/editor/contrib/gotoError/gotoError",t)}),define(t[319],n([5,4]),function(e,t){return e.create("vs/editor/contrib/gotoError/gotoErrorWidget",t)}),define(t[320],n([5,4]),function(e,t){return e.create("vs/editor/contrib/hover/hover",t)}),define(t[321],n([5,4]),function(e,t){return e.create("vs/editor/contrib/hover/modesContentHover",t)}),define(t[322],n([5,4]),function(e,t){return e.create("vs/editor/contrib/inPlaceReplace/inPlaceReplace",t)}),define(t[323],n([5,4]),function(e,t){return e.create("vs/editor/contrib/linesOperations/linesOperations",t)}),define(t[324],n([5,4]),function(e,t){return e.create("vs/editor/contrib/links/links",t)}),define(t[325],n([5,4]),function(e,t){return e.create("vs/editor/contrib/message/messageController",t)}),define(t[326],n([5,4]),function(e,t){return e.create("vs/editor/contrib/multicursor/multicursor",t)}),define(t[327],n([5,4]),function(e,t){ +return e.create("vs/editor/contrib/parameterHints/parameterHints",t)}),define(t[328],n([5,4]),function(e,t){return e.create("vs/editor/contrib/parameterHints/parameterHintsWidget",t)}),define(t[329],n([5,4]),function(e,t){return e.create("vs/editor/contrib/referenceSearch/peekViewWidget",t)}),define(t[330],n([5,4]),function(e,t){return e.create("vs/editor/contrib/referenceSearch/referenceSearch",t)}),define(t[331],n([5,4]),function(e,t){return e.create("vs/editor/contrib/referenceSearch/referencesController",t)}),define(t[332],n([5,4]),function(e,t){return e.create("vs/editor/contrib/referenceSearch/referencesModel",t)}),define(t[123],n([1,0,332,9,50,2,6,130,13,3]),function(e,t,n,i,o,r,s,a,l,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=function(){function e(e,t){this._parent=e,this._range=t,this._onRefChanged=new i.Emitter,this.onRefChanged=this._onRefChanged.event,this._id=a.defaultGenerator.nextId()}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id}, +enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this._parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e,this._onRefChanged.fire(this)},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){return n.localize(0,null,o.basename(this.uri.fsPath),this.range.startLineNumber,this.range.startColumn)},e}();t.OneReference=d;var c=function(){function e(e){this._modelReference=e}return Object.defineProperty(e.prototype,"_model",{get:function(){return this._modelReference.object.textEditorModel},enumerable:!0,configurable:!0}),e.prototype.preview=function(e,t){void 0===t&&(t=8);var n=this._model;if(n){var i=e.startLineNumber,o=e.startColumn,r=e.endLineNumber,a=e.endColumn,l=n.getWordUntilPosition({lineNumber:i,column:o-t +}),d=new u.Range(i,l.startColumn,i,o),c=new u.Range(r,a,r,Number.MAX_VALUE);return{before:n.getValueInRange(d).replace(/^\s+/,s.empty),inside:n.getValueInRange(e),after:n.getValueInRange(c).replace(/\s+$/,s.empty)}}},e.prototype.dispose=function(){this._modelReference&&(this._modelReference.dispose(),this._modelReference=null)},e}();t.FilePreview=c;var h=function(){function e(e,t){this._parent=e,this._uri=t,this._children=[]}return Object.defineProperty(e.prototype,"id",{get:function(){return this._uri.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}), +Object.defineProperty(e.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){var e=this.children.length;return 1===e?n.localize(1,null,o.basename(this.uri.fsPath),this.uri.fsPath):n.localize(2,null,e,o.basename(this.uri.fsPath),this.uri.fsPath)},e.prototype.resolve=function(e){var t=this;return this._resolved?l.TPromise.as(this):e.createModelReference(this._uri).then(function(e){if(!e.object)throw e.dispose(),new Error;return t._preview=new c(e),t._resolved=!0,t},function(e){return t._children=[],t._resolved=!0,t._loadFailure=e,t})},e.prototype.dispose=function(){this._preview&&(this._preview.dispose(),this._preview=null)},e}();t.FileReferences=h;var p=function(){function e(t){var n=this;this._groups=[],this._references=[],this._onDidChangeReferenceRange=new i.Emitter,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._disposables=[],t.sort(e._compareReferences);for(var o,r=0,s=t;r0?(i=t?(i+1)%o:(i+o-1)%o,n.children[i]):(i=n.parent.groups.indexOf(n),t?(i=(i+1)%r,n.parent.groups[i].children[0]):(i=(i+r-1)%r,n.parent.groups[i].children[n.parent.groups[i].children.length-1]))},e.prototype.nearestReference=function(e,t){var n=this._references.map(function(n,i){return{idx:i,prefixLen:s.commonPrefixLength(n.uri.toString(),e.toString()),offsetDist:100*Math.abs(n.range.startLineNumber-t.lineNumber)+Math.abs(n.range.startColumn-t.column)}}).sort(function(e,t){return e.prefixLen>t.prefixLen?-1:e.prefixLent.offsetDist?1:0})[0];if(n)return this._references[n.idx]},e.prototype.dispose=function(){this._groups=r.dispose(this._groups),r.dispose(this._disposables),this._disposables.length=0},e._compareReferences=function(e,t){var n=e.uri.toString(),i=t.uri.toString() +;return ni?1:u.Range.compareRangesUsingStarts(e.range,t.range)},e}();t.ReferencesModel=p}),define(t[334],n([5,4]),function(e,t){return e.create("vs/editor/contrib/referenceSearch/referencesWidget",t)}),define(t[335],n([5,4]),function(e,t){return e.create("vs/editor/contrib/rename/rename",t)}),define(t[336],n([5,4]),function(e,t){return e.create("vs/editor/contrib/rename/renameInputField",t)}),define(t[337],n([5,4]),function(e,t){return e.create("vs/editor/contrib/smartSelect/smartSelect",t)}),define(t[338],n([5,4]),function(e,t){return e.create("vs/editor/contrib/snippet/snippetVariables",t)}),define(t[339],n([1,0,338,50,110,6]),function(e,t,n,i,o,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e){this._delegates=e}return e.prototype.resolve=function(e){for(var t=0,n=this._delegates;t=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),o=void 0)}})},e.prototype.has=function(e){return this.all(e).length>0},e.prototype.all=function(e){if(!e)return[];this._updateScores(e) +;for(var t=[],n=0,i=this._entries;n0&&t.push(o.provider)}return t},e.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,function(e){return t.push(e.provider)}),t},e.prototype.orderedGroups=function(e){var t,n,i=[];return this._orderedForEach(e,function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],i.push(t))}),i},e.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0;n0&&t(i)}}},e.prototype._updateScores=function(t){var n={uri:t.uri.toString(),language:t.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==n.language||this._lastCandidate.uri!==n.uri){this._lastCandidate=n;for(var i=0,a=this._entries;i0){for(var u=0,d=this._entries;ut._score?-1:e._timet._time?-1:0},e}();t.default=a}),define(t[17],n([1,0,366,205,33]),function(e,t,n,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){this.language=e,this.id=t}}();t.LanguageIdentifier=r;var s=function(){function e(){}return e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.getClassNameFromMetadata=function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t},e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),i=this.getFontStyle(e),o="color: "+t[n]+";";return 1&i&&(o+="font-style: italic;"), +2&i&&(o+="font-weight: bold;"),4&i&&(o+="text-decoration: underline;"),o},e}();t.TokenMetadata=s;!function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(t.SuggestTriggerKind||(t.SuggestTriggerKind={}));!function(e){e[e.Automatic=1]="Automatic",e[e.Manual=2]="Manual"}(t.CodeActionTrigger||(t.CodeActionTrigger={}));!function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(t.DocumentHighlightKind||(t.DocumentHighlightKind={}));var a;!function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array", +e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(a=t.SymbolKind||(t.SymbolKind={})),t.symbolKindToCssClass=function(){var e=Object.create(null);return e[a.File]="file",e[a.Module]="module",e[a.Namespace]="namespace",e[a.Package]="package",e[a.Class]="class",e[a.Method]="method",e[a.Property]="property",e[a.Field]="field",e[a.Constructor]="constructor",e[a.Enum]="enum",e[a.Interface]="interface",e[a.Function]="function",e[a.Variable]="variable",e[a.Constant]="constant",e[a.String]="string",e[a.Number]="number",e[a.Boolean]="boolean",e[a.Array]="array",e[a.Object]="object",e[a.Key]="key",e[a.Null]="null",e[a.EnumMember]="enum-member",e[a.Struct]="struct",e[a.Event]="event",e[a.Operator]="operator",e[a.TypeParameter]="type-parameter",function(t){return"symbol-icon "+(e[t]||"property")}}();var l=function(){function e(e){this.value=e} +return e.Comment=new e("comment"),e.Imports=new e("imports"),e.Region=new e("region"),e}();t.FoldingRangeKind=l,t.isResourceTextEdit=function(e){return o.isObject(e)&&e.resource&&Array.isArray(e.edits)},t.ReferenceProviderRegistry=new n.default,t.RenameProviderRegistry=new n.default,t.SuggestRegistry=new n.default,t.SignatureHelpProviderRegistry=new n.default,t.HoverProviderRegistry=new n.default,t.DocumentSymbolProviderRegistry=new n.default,t.DocumentHighlightProviderRegistry=new n.default,t.DefinitionProviderRegistry=new n.default,t.ImplementationProviderRegistry=new n.default,t.TypeDefinitionProviderRegistry=new n.default,t.CodeLensProviderRegistry=new n.default,t.CodeActionProviderRegistry=new n.default,t.DocumentFormattingEditProviderRegistry=new n.default,t.DocumentRangeFormattingEditProviderRegistry=new n.default,t.OnTypeFormattingEditProviderRegistry=new n.default,t.LinkProviderRegistry=new n.default,t.ColorProviderRegistry=new n.default,t.FoldingRangeProviderRegistry=new n.default, +t.TokenizationRegistry=new i.TokenizationRegistryImpl}),define(t[99],n([1,0,17]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}return e.prototype.equals=function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)},e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,o=i+(n<<1),r=i;r0?this._tokens[e-1<<1]:0},e.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return n.TokenMetadata.getLanguageId(t)},e.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return n.TokenMetadata.getTokenType(t)}, +e.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return n.TokenMetadata.getForeground(t)},e.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return n.TokenMetadata.getClassNameFromMetadata(t)},e.prototype.getInlineStyle=function(e,t){var i=this._tokens[1+(e<<1)];return n.TokenMetadata.getInlineStyleFromMetadata(i,t)},e.prototype.getEndOffset=function(e){return this._tokens[e<<1]},e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t)},e.prototype.inflate=function(){return this},e.prototype.sliceAndInflate=function(e,t,n){return new o(this,e,t,n)},e.convertToEndOffset=function(e,t){for(var n=(e.length>>>1)-1,i=0;i>>1)-1;nt&&(i=o)}return n},e}();t.LineTokens=i;var o=function(){function e(e,t,n,i){this._source=e,this._startOffset=t, +this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var o=this._firstTokenIndex,r=e.getCount();o=n)break;this._tokensCount++}}return e.prototype.equals=function(t){return t instanceof e&&(this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount))},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},e.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}, +e.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},e}();t.SlicedLineTokens=o}),define(t[60],n([1,0,17,95]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.clone=function(){return this},e.prototype.equals=function(e){return this===e},e}();t.NULL_STATE=new o,t.NULL_MODE_ID="vs.editor.nullMode",t.NULL_LANGUAGE_IDENTIFIER=new n.LanguageIdentifier(t.NULL_MODE_ID,0),t.nullTokenize=function(e,t,n,o){return new i.TokenizationResult([new i.Token(o,"",e)],n)},t.nullTokenize2=function(e,t,n,o){var r=new Uint32Array(2);return r[0]=o,r[1]=(16384|e<<0|2<<23)>>>0,new i.TokenizationResult2(r,n)}}),define(t[370],n([1,0,99,25,12,10,60]),function(e,t,n,i,o,r,s){"use strict";function a(e){return(16384|e<<0|2<<23)>>>0}Object.defineProperty(t,"__esModule",{value:!0});var l=new Uint32Array(0).buffer,u=function(){function e(e){this._state=e, +this._lineTokens=null,this._invalid=!0}return e.prototype.deleteBeginning=function(e){null!==this._lineTokens&&this._lineTokens!==l&&this.delete(0,e)},e.prototype.deleteEnding=function(e){if(null!==this._lineTokens&&this._lineTokens!==l){var t=new Uint32Array(this._lineTokens),n=t[t.length-2];this.delete(e,n)}},e.prototype.delete=function(e,t){if(null!==this._lineTokens&&this._lineTokens!==l&&e!==t){var i=new Uint32Array(this._lineTokens),o=i.length>>>1;if(0!==e||i[i.length-2]!==t){var r=n.LineTokens.findIndexInTokensArray(i,e),s=r>0?i[r-1<<1]:0;if(tc&&(i[d++]=f,i[d++]=i[1+(p<<1)],c=f)}if(d!==i.length){var g=new Uint32Array(d);g.set(i.subarray(0,d),0),this._lineTokens=g.buffer}}}else this._lineTokens=l}},e.prototype.append=function(e){if(e!==l)if(this._lineTokens!==l){if(null!==this._lineTokens)if(null!==e){ +var t=new Uint32Array(this._lineTokens),n=new Uint32Array(e),i=n.length>>>1,o=new Uint32Array(t.length+n.length);o.set(t,0);for(var r=t.length,s=t[t.length-2],a=0;a>>1,r=n.LineTokens.findIndexInTokensArray(i,e);if(r>0){(r>0?i[r-1<<1]:0)===e&&r--}for(var s=r;s=e},e.prototype.hasLinesToTokenize=function(e){return this._invalidLineStartIndex=0;s--)this.invalidateLine(e.startLineNumber+s-1);this._acceptDeleteRange(e),this._acceptInsertText(new o.Position(e.startLineNumber,e.startColumn),t,n)},e.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(!(t>=this._tokens.length))if(e.startLineNumber!==e.endLineNumber){var n=this._tokens[t];n.deleteEnding(e.startColumn-1);var i=e.endLineNumber-1,o=null;if(i=this._tokens.length))if(0!==t){var r=this._tokens[o];r.deleteEnding(e.column-1),r.insert(e.column-1,n);for(var s=new Array(t),a=t-1;a>=0;a--)s[a]=new u(null);this._tokens=i.arrayInsert(this._tokens,e.lineNumber,s)}else this._tokens[o].insert(e.column-1,n)}},e.prototype._tokenizeOneLine=function(e,t){if(!this.hasLinesToTokenize(e))return e.getLineCount()+1;var n=this._invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t,n),n},e.prototype._tokenizeText=function(e,t,n){var i=null;try{i=this.tokenizationSupport.tokenize2(t,n,0)}catch(e){r.onUnexpectedError(e)}return i||(i=s.nullTokenize2(this.languageIdentifier.id,t,n,0)),i},e.prototype._updateTokensUntilLine=function(e,t,n){if(this.tokenizationSupport){ +for(var i=e.getLineCount(),o=n-1,a=this._invalidLineStartIndex;a<=o;a++){var l=a+1,u=null,d=e.getLineContent(a+1);try{var c=this._getState(a).clone();u=this.tokenizationSupport.tokenize2(d,c,0)}catch(e){r.onUnexpectedError(e)}if(u||(u=s.nullTokenize2(this.languageIdentifier.id,d,this._getState(a),0)),this._setTokens(this.languageIdentifier.id,a,d.length,u.tokens),t.registerChangedTokens(a+1),this._setIsInvalid(a,!1),l0?t[n-1]:null;i&&i.toLineNumber===e-1?i.toLineNumber++:t[n]={fromLineNumber:e,toLineNumber:e}},e.prototype.build=function(){return 0===this._ranges.length?null:{ranges:this._ranges}},e}();t.ModelTokensChangedEventBuilder=c}),define(t[29],n([1,0,31,9,24,17,483,3,21,499,10,6,487,2,228,60,91,105,12,41,100,370,486,47,136,515]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g,m,v,_,y,C,b,S,w,E,L,x){"use strict";function N(e){var t=new x.PieceTreeTextBufferBuilder;return t.acceptChunk(e),t.finish()}function I(e,t){return("string"==typeof e?N(e):e).create(t)}function M(e){return e.replace(/[^a-z0-9\-_]/gi," ")}function D(e){return e instanceof P?e:P.createDynamic(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createTextBufferFactory=N,t.createTextBuffer=I;var T=0;t.LONG_LINE_BOUNDARY=1e4;var k=function(e){function f(t,o,u,d){void 0===d&&(d=null);var c=e.call(this)||this;c._onWillDispose=c._register(new i.Emitter),c.onWillDispose=c._onWillDispose.event, +c._onDidChangeDecorations=c._register(new F),c.onDidChangeDecorations=c._onDidChangeDecorations.event,c._onDidChangeLanguage=c._register(new i.Emitter),c.onDidChangeLanguage=c._onDidChangeLanguage.event,c._onDidChangeLanguageConfiguration=c._register(new i.Emitter),c.onDidChangeLanguageConfiguration=c._onDidChangeLanguageConfiguration.event,c._onDidChangeTokens=c._register(new i.Emitter),c.onDidChangeTokens=c._onDidChangeTokens.event,c._onDidChangeOptions=c._register(new i.Emitter),c.onDidChangeOptions=c._onDidChangeOptions.event,c._eventEmitter=c._register(new W),T++,c.id="$model"+T,c.isForSimpleWidget=o.isForSimpleWidget,c._associatedResource=void 0===d||null===d?n.default.parse("inmemory://model/"+T):d,c._attachedEditorCount=0,c._buffer=I(t,o.defaultEOL),c._options=f.resolveOptions(c._buffer,o);var h=c._buffer.getLineCount(),p=c._buffer.getValueLengthInRange(new l.Range(1,1,h,c._buffer.getLineLength(h)+1),r.EndOfLinePreference.TextDefined) +;return o.largeFileOptimizations?c._isTooLargeForTokenization=p>f.LARGE_FILE_SIZE_THRESHOLD||h>f.LARGE_FILE_LINE_COUNT_THRESHOLD:c._isTooLargeForTokenization=!1,c._isTooLargeForSyncing=p>f.MODEL_SYNC_LIMIT,c._setVersionId(1),c._isDisposed=!1,c._isDisposing=!1,c._languageIdentifier=u||m.NULL_LANGUAGE_IDENTIFIER,c._tokenizationListener=s.TokenizationRegistry.onDidChange(function(e){-1!==e.changedLanguages.indexOf(c._languageIdentifier.language)&&(c._resetTokenizationState(),c.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:c.getLineCount()}]}),c._shouldAutoTokenize()&&c._warmUpTokens())}),c._revalidateTokensTimeout=-1,c._languageRegistryListener=C.LanguageConfigurationRegistry.onDidChange(function(e){e.languageIdentifier.id===c._languageIdentifier.id&&c._onDidChangeLanguageConfiguration.fire({})}),c._resetTokenizationState(),c._instanceId=function(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}(T),c._lastDecorationId=0,c._decorations=Object.create(null), +c._decorationsTree=new R,c._commandManager=new a.EditStack(c),c._isUndoing=!1,c._isRedoing=!1,c._trimAutoWhitespaceLines=null,c}return o(f,e),f.createFromString=function(e,t,n,i){return void 0===t&&(t=f.DEFAULT_CREATION_OPTIONS),void 0===n&&(n=null),void 0===i&&(i=null),new f(e,t,n,i)},f.resolveOptions=function(e,t){if(t.detectIndentation){var n=w.guessIndentation(e,t.tabSize,t.insertSpaces);return new r.TextModelResolvedOptions({tabSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new r.TextModelResolvedOptions({tabSize:t.tabSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},f.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent(function(t){return e(t.rawContentChangedEvent)})},f.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.rawContentChangedEvent)})},f.prototype.onDidChangeContent=function(e){ +return this._eventEmitter.slowEvent(function(t){return e(t.contentChangedEvent)})},f.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._commandManager=null,this._decorations=null,this._decorationsTree=null,this._tokenizationListener.dispose(),this._languageRegistryListener.dispose(),this._clearTimers(),this._tokens=null,this._isDisposed=!0,this._buffer=null,e.prototype.dispose.call(this),this._isDisposing=!1},f.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},f.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new d.InternalModelContentChangeEvent(e,t))},f.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=I(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},f.prototype._createContentChanged2=function(e,t,n,i,o,r,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o, +isRedoing:r,isFlush:s}},f.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._buffer=e,this._increaseVersionId(),this._resetTokenizationState(),this._decorations=Object.create(null),this._decorationsTree=new R,this._commandManager=new a.EditStack(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new d.ModelRawContentChangedEvent([new d.ModelRawFlush],this._versionId,!1,!1),this._createContentChanged2(new l.Range(1,1,i,o),0,n,this.getValue(),!1,!1,!0))}},f.prototype.setEOL=function(e){this._assertNotDisposed();var t=e===r.EndOfLineSequence.CRLF?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),o=this.getLineCount(),s=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(), +this._emitContentChangedEvent(new d.ModelRawContentChangedEvent([new d.ModelRawEOLChanged],this._versionId,!1,!1),this._createContentChanged2(new l.Range(1,1,o,s),0,i,this.getValue(),!1,!1,!1))}},f.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},f.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,i=t.length;n0},f.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},f.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},f.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},f.prototype.isDisposed=function(){return this._isDisposed},f.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,n=0,i=this._buffer.getLineCount(),o=1;o<=i;o++){var r=this._buffer.getLineLength(o) +;r>=t.LONG_LINE_BOUNDARY?n+=r:e+=r}return n>e},Object.defineProperty(f.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),f.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},f.prototype.updateOptions=function(e){this._assertNotDisposed();var t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,i=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=new r.TextModelResolvedOptions({tabSize:t,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:i});if(!this._options.equals(o)){var s=this._options.createChangeEvent(o);this._options=o,this._onDidChangeOptions.fire(s)}},f.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=w.guessIndentation(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize})},f._normalizeIndentationFromWhitespace=function(e,t,n){ +for(var i=0,o=0;othis.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},f.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},f.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},f.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()}, +f.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},f.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},f.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},f.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},f.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,i=this._buffer.getLineCount(),o=e.startLineNumber,r=e.startColumn;if(o<1)t=1,n=1;else if(o>i)t=i,n=this.getLineMaxColumn(t);else if(t=0|o,r<=1)n=1;else{n=r>=(h=this.getLineMaxColumn(t))?h:0|r}var s,a,d=e.endLineNumber,c=e.endColumn;if(d<1)s=1,a=1;else if(d>i)s=i, +a=this.getLineMaxColumn(s);else if(s=0|d,c<=1)a=1;else{var h=this.getLineMaxColumn(s);a=c>=h?h:0|c}return o===t&&r===n&&d===s&&c===a&&e instanceof l.Range&&!(e instanceof u.Selection)?e:new l.Range(t,n,s,a)},f.prototype._isValidPosition=function(e,t,n){if(isNaN(e))return!1;if(e<1)return!1;if(e>this._buffer.getLineCount())return!1;if(isNaN(t))return!1;if(t<1)return!1;if(t>this.getLineMaxColumn(e))return!1;if(n&&t>1){var i=this._buffer.getLineCharCode(e,t-2);if(h.isHighSurrogate(i))return!1}return!0},f.prototype._validatePosition=function(e,t,n){var i=Math.floor("number"!=typeof e||isNaN(e)?1:e),o=Math.floor("number"!=typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(i<1)return new y.Position(1,1);if(i>r)return new y.Position(r,this.getLineMaxColumn(r));if(o<=1)return new y.Position(i,1);var s=this.getLineMaxColumn(i);if(o>=s)return new y.Position(i,s);if(n){var a=this._buffer.getLineCharCode(i,o-2);if(h.isHighSurrogate(a))return new y.Position(i,o-1)}return new y.Position(i,o)}, +f.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof y.Position&&this._isValidPosition(e.lineNumber,e.column,!0)?e:this._validatePosition(e.lineNumber,e.column,!0)},f.prototype._isValidRange=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(n,i,!1))return!1;if(!this._isValidPosition(o,r,!1))return!1;if(t){var s=i>1?this._buffer.getLineCharCode(n,i-2):0,a=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,l=h.isHighSurrogate(s),u=h.isHighSurrogate(a);return!l&&!u}return!0},f.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof l.Range&&!(e instanceof u.Selection)&&this._isValidRange(e,!0))return e +;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),i=t.lineNumber,o=t.column,r=n.lineNumber,s=n.column,a=o>1?this._buffer.getLineCharCode(i,o-2):0,d=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,c=h.isHighSurrogate(a),p=h.isHighSurrogate(d);return c||p?i===r&&o===s?new l.Range(i,o-1,r,s-1):c&&p?new l.Range(i,o-1,r,s+1):c?new l.Range(i,o-1,r,s):new l.Range(i,o,r,s+1):new l.Range(i,o,r,s)},f.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))},f.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new l.Range(1,1,e,this.getLineMaxColumn(e))},f.prototype.findMatchesLineByLine=function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)},f.prototype.findMatches=function(e,t,n,i,o,r,s){void 0===s&&(s=999),this._assertNotDisposed();var a +;if(a=l.Range.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var u=new L.SearchParams(e,n,i,o).parseSearchRequest();return u?this.findMatchesLineByLine(a,u,r,s):[]}return L.TextModelSearch.findMatches(this,new L.SearchParams(e,n,i,o),a,r,s)},f.prototype.findNextMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new L.SearchParams(e,n,i,o).parseSearchRequest(),u=this.getLineCount(),d=new l.Range(s.lineNumber,s.column,u,this.getLineMaxColumn(u)),c=this.findMatchesLineByLine(d,a,r,1);return L.TextModelSearch.findNextMatch(this,new L.SearchParams(e,n,i,o),s,r),c.length>0?c[0]:(d=new l.Range(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),(c=this.findMatchesLineByLine(d,a,r,1)).length>0?c[0]:null)}return L.TextModelSearch.findNextMatch(this,new L.SearchParams(e,n,i,o),s,r)},f.prototype.findPreviousMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t) +;return L.TextModelSearch.findPreviousMatch(this,new L.SearchParams(e,n,i,o),s,r)},f.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},f.prototype.pushEOL=function(e){if(("\n"===this.getEOL()?r.EndOfLineSequence.LF:r.EndOfLineSequence.CRLF)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},f.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},f.prototype._pushEditOperations=function(e,t,n){var i=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var o=t.map(function(e){return{range:i.validateRange(e.range),text:e.text}}),r=!0,s=0,a=e.length;su.endLineNumber,f=u.startLineNumber>_.endLineNumber;if(!p&&!f){d=!0;break}}if(!d){r=!1;break}}if(r)for(var s=0,a=this._trimAutoWhitespaceLines.length;s_.endLineNumber)&&!(g===_.startLineNumber&&_.startColumn===m&&_.isEmpty()&&y&&y.length>0&&"\n"===y.charAt(0)||g===_.startLineNumber&&1===_.startColumn&&_.isEmpty()&&y&&y.length>0&&"\n"===y.charAt(y.length-1))){v=!1;break}}v&&t.push({range:new l.Range(g,1,g,m),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},f.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}, +f._eolCount=function(e){for(var t=0,n=0,i=0,o=e.length;i=0;b--){var S=g+b,w=r-l-C+S;a.push(new d.ModelRawLineChanged(S,this.getLineContent(w)))}if(ythis.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},f.prototype.getLinesDecorations=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),s=Math.min(o,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new l.Range(r,1,s,a),n,i)},f.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)},f.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i)},f.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n) +;return this._ensureNodesHaveRanges(i)},f.prototype._getDecorationsInRange=function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),r=this.getVersionId(),s=this._decorationsTree.intervalSearch(i,o,t,n,r);return this._ensureNodesHaveRanges(s)},f.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t0)for(;o>0&&s>=1;){var l=this.getLineFirstNonWhitespaceColumn(s);if(0!==l){if(l=0;d--){u=(f=this._tokens._tokenizeText(this._buffer,r[d],u))?f.endState.clone():a.clone()}var c=Math.floor(.4*this._tokens.inValidLineStartIndex);t=Math.min(this.getLineCount(),t+c);for(var h=e;h<=t;h++){var p=this.getLineContent(h),f=this._tokens._tokenizeText(this._buffer,p,u);f?(this._tokens._setTokens(this._tokens.languageIdentifier.id,h-1,p.length,f.tokens),this._tokens._setIsInvalid(h-1,!1),this._tokens._setState(h-1,u),u=f.endState.clone(),i.registerChangedTokens(h)):u=a.clone()}var g=i.build();g&&this._onDidChangeTokens.fire(g)}}}, +f.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");var t=new S.ModelTokensChangedEventBuilder;this._tokens._updateTokensUntilLine(this._buffer,t,e);var n=t.build();n&&this._onDidChangeTokens.fire(n)},f.prototype.isCheapToTokenize=function(e){return this._tokens.isCheapToTokenize(e)},f.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},f.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},f.prototype._getLineTokens=function(e){var t=this._buffer.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t)},f.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},f.prototype.getModeId=function(){return this._languageIdentifier.language},f.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language, +newLanguage:e.language};this._languageIdentifier=e,this._resetTokenizationState(),this.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]}),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},f.prototype.getLanguageIdAtPosition=function(e,t){if(!this._tokens.tokenizationSupport)return this._languageIdentifier.id;var n=this.validatePosition({lineNumber:e,column:t}),i=n.lineNumber,o=n.column,r=this._getLineTokens(i);return r.getLanguageId(r.findTokenIndexAtOffset(o-1))},f.prototype._beginBackgroundTokenization=function(){var e=this;this._shouldAutoTokenize()&&-1===this._revalidateTokensTimeout&&(this._revalidateTokensTimeout=setTimeout(function(){e._revalidateTokensTimeout=-1,e._revalidateTokensNow()},0))},f.prototype._warmUpTokens=function(){var e=Math.min(100,this.getLineCount());this._revalidateTokensNow(e),this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization()},f.prototype._revalidateTokensNow=function(e){ +void 0===e&&(e=this._buffer.getLineCount());for(var t=new S.ModelTokensChangedEventBuilder,n=g.StopWatch.create(!1);this._tokens.hasLinesToTokenize(this._buffer)&&!(n.elapsed()>20);){if(this._tokens._tokenizeOneLine(this._buffer,t)>=e)break}this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();var i=t.build();i&&this._onDidChangeTokens.fire(i)},f.prototype.emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},f.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var t=this.validatePosition(e),n=this.getLineContent(t.lineNumber),i=this._getLineTokens(t.lineNumber),o=i.findTokenIndexAtOffset(t.column-1),r=f._findLanguageBoundaries(i,o),s=r[0],a=r[1],l=b.getWordAtText(t.column,C.LanguageConfigurationRegistry.getWordDefinition(i.getLanguageId(o)),n.substring(s,a),s);if(l)return l;if(o>0&&s===t.column-1){ +var u=f._findLanguageBoundaries(i,o-1),d=u[0],c=u[1],h=b.getWordAtText(t.column,C.LanguageConfigurationRegistry.getWordDefinition(i.getLanguageId(o-1)),n.substring(d,c),d);if(h)return h}return null},f._findLanguageBoundaries=function(e,t){for(var n,i=e.getLanguageId(t),o=t;o>=0&&e.getLanguageId(o)===i;o--)n=e.getStartOffset(o);for(var r,o=t,s=e.getCount();o0&&n.getStartOffset(o)===e.column-1){a=n.getStartOffset(o);o--;var u=C.LanguageConfigurationRegistry.getBracketsSupport(n.getLanguageId(o)) +;if(u&&!v.ignoreBracketsInToken(n.getStandardTokenType(o))){var s=Math.max(n.getStartOffset(o),e.column-1-u.maxBracketLength),d=_.BracketsUtils.findPrevBracketInToken(u.reversedRegex,t,i,s,a);if(d&&d.startColumn<=e.column&&e.column<=d.endColumn){var c=i.substring(d.startColumn-1,d.endColumn-1);c=c.toLowerCase();var h=this._matchFoundBracket(d,u.textIsBracket[c],u.textIsOpenBracket[c]);if(h)return h}}}return null},f.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;if(n){if(i=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,i]}else{var i=this._findMatchingBracketUp(t,e.getStartPosition());if(i)return[e,i]}return null},f.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,i=e.reversedRegex,o=-1,r=t.lineNumber;r>=1;r--){var s=this._getLineTokens(r),a=s.getCount(),l=this._buffer.getLineContent(r),u=a-1,d=-1;for(r===t.lineNumber&&(u=s.findTokenIndexAtOffset(t.column-1),d=t.column-1);u>=0;u--){ +var c=s.getLanguageId(u),h=s.getStandardTokenType(u),p=s.getStartOffset(u),f=s.getEndOffset(u);if(-1===d&&(d=f),c===n&&!v.ignoreBracketsInToken(h))for(;;){var g=_.BracketsUtils.findPrevBracketInToken(i,r,l,p,d);if(!g)break;var m=l.substring(g.startColumn-1,g.endColumn-1);if((m=m.toLowerCase())===e.open?o++:m===e.close&&o--,0===o)return g;d=g.startColumn-1}d=-1}}return null},f.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,i=e.forwardRegex,o=1,r=t.lineNumber,s=this.getLineCount();r<=s;r++){var a=this._getLineTokens(r),l=a.getCount(),u=this._buffer.getLineContent(r),d=0,c=0;for(r===t.lineNumber&&(d=a.findTokenIndexAtOffset(t.column-1),c=t.column-1);do)throw new Error("Illegal value for lineNumber");for(var r=C.LanguageConfigurationRegistry.getFoldingRules(this._languageIdentifier.id),s=r&&r.offSide,a=-2,l=-1,u=-2,d=-1,c=function(e){if(-1!==a&&(-2===a||a>e-1)){a=-1,l=-1;for(n=e-2;n>=0;n--){var t=i._computeIndentLevel(n);if(t>=0){a=n,l=t;break}}}if(-2===u){u=-1,d=-1;for(var n=e;n=0){u=n,d=r;break}}}},h=-2,p=-1,f=-2,g=-1,m=function(e){if(-2===h){h=-1,p=-1;for(n=e-2;n>=0;n--){var t=i._computeIndentLevel(n);if(t>=0){h=n,p=t;break}}}if(-1!==f&&(-2===f||f=0){f=n,g=r;break}}}},v=0,_=!0,y=0,b=!0,S=0,w=0;_||b;w++){var E=e-w,L=e+w +;if(0!==w&&(E<1||Eo||L>n)&&(b=!1),w>5e4&&(_=!1,b=!1),_){var x=void 0;if((I=this._computeIndentLevel(E-1))>=0?(u=E-1,d=I,x=Math.ceil(I/this._options.tabSize)):(c(E),x=this._getIndentLevelForWhitespaceLine(s,l,d)),0===w){if(v=E,y=L,0===(S=x))return{startLineNumber:v,endLineNumber:y,indent:S};continue}x>=S?v=E:_=!1}if(b){var N=void 0,I=this._computeIndentLevel(L-1);I>=0?(h=L-1,p=I,N=Math.ceil(I/this._options.tabSize)):(m(L),N=this._getIndentLevelForWhitespaceLine(s,p,g)),N>=S?y=L:b=!1}}return{startLineNumber:v,endLineNumber:y,indent:S}},f.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var i=C.LanguageConfigurationRegistry.getFoldingRules(this._languageIdentifier.id),o=i&&i.offSide,r=new Array(t-e+1),s=-2,a=-1,l=-2,u=-1,d=e;d<=t;d++){var c=d-e,h=this._computeIndentLevel(d-1);if(h>=0)s=d-1,a=h, +r[c]=Math.ceil(h/this._options.tabSize);else{if(-2===s){s=-1,a=-1;for(p=d-2;p>=0;p--){if((f=this._computeIndentLevel(p))>=0){s=p,a=f;break}}}if(-1!==l&&(-2===l||l=0){l=p,u=f;break}}}r[c]=this._getIndentLevelForWhitespaceLine(o,a,u)}}return r},f.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:t0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},t}(f.Disposable);t.DidChangeContentEmitter=W}),define(t[38],n([1,0,12,6,29,21,3,41,10]),function(e,t,n,i,o,r,s,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(t,n,i,o){this._languageIdentifier=t;var r=o.editor;this.readOnly=r.readOnly,this.tabSize=i.tabSize,this.insertSpaces=i.insertSpaces,this.oneIndent=n,this.pageSize=Math.max(1,Math.floor(r.layoutInfo.height/r.fontInfo.lineHeight)-2),this.lineHeight=r.lineHeight,this.useTabStops=r.useTabStops,this.wordSeparators=r.wordSeparators,this.emptySelectionClipboard=r.emptySelectionClipboard, +this.multiCursorMergeOverlapping=r.multiCursorMergeOverlapping,this.autoClosingBrackets=r.autoClosingBrackets,this.autoIndent=r.autoIndent,this.autoClosingPairsOpen={},this.autoClosingPairsClose={},this.surroundingPairs={},this._electricChars=null;var s=e._getAutoClosingPairs(t);if(s)for(l=0;l=o.length)&&i.isLowSurrogate(o.charCodeAt(n))},e.isHighSurrogate=function(e,t,n){var o=e.getLineContent(t);return!(n<0||n>=o.length)&&i.isHighSurrogate(o.charCodeAt(n))},e.isInsideSurrogatePair=function(e,t,n){return this.isHighSurrogate(e,t,n-2)},e.visibleColumnFromColumn=function(e,t,n){var o=e.length;o>t-1&&(o=t-1);for(var r=0,s=0;s=t){return l-ts?s:o},e.nextTabStop=function(e,t){return e+t-e%t},e.prevTabStop=function(e,t){return e-1-(e-1)%t},e}();t.CursorColumns=f}),define(t[170],n([1,0,6,38,3,21,41]),function(e,t,n,i,o,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){this._opts=t,this._selection=e,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return e.unshiftIndentCount=function(e,t,n){ +var o=i.CursorColumns.visibleColumnFromColumn(e,t,n);return i.CursorColumns.prevTabStop(o,n)/n},e.shiftIndentCount=function(e,t,n){var o=i.CursorColumns.visibleColumnFromColumn(e,t,n);return i.CursorColumns.nextTabStop(o,n)/n},e.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)},e.prototype.getEditOperations=function(t,r){var a=this._selection.startLineNumber,l=this._selection.endLineNumber;1===this._selection.endColumn&&a!==l&&(l-=1);var u=this._opts.tabSize,d=this._opts.oneIndent,c=a===l;if(this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(a))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var h=["",d],p=0,f=0,g=a;g<=l;g++,p=f){f=0;var m=t.getLineContent(g),v=n.firstNonWhitespaceIndex(m);if((!this._opts.isUnshift||0!==m.length&&0!==v)&&(c||this._opts.isUnshift||0!==m.length)){if(-1===v&&(v=m.length),g>1){ +if(i.CursorColumns.visibleColumnFromColumn(m,v+1,u)%u!=0&&t.isCheapToTokenize(g-1)){var _=s.LanguageConfigurationRegistry.getRawEnterActionAtPosition(t,g-1,t.getLineMaxColumn(g-1));if(_){if(f=p,_.appendText)for(var y=0,C=_.appendText.length;ya,c=s>l,h=sl)continue;if(ys)continue;if(_1&&o--,this.columnSelect(e,t,n.selection,i,o)},e.columnSelectRight=function(e,t,i,r,s){for(var a=0,l=Math.min(i.position.lineNumber,r),u=Math.max(i.position.lineNumber,r),d=l;d<=u;d++){ +var c=t.getLineMaxColumn(d),h=o.CursorColumns.visibleColumnFromColumn2(e,t,new n.Position(d,c));a=Math.max(a,h)}return st.getLineCount()&&(o=t.getLineCount()),this.columnSelect(e,t,n.selection,o,r)},e}();t.ColumnSelection=r}),define(t[171],n([1,0,38,12,3]),function(e,t,n,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n}}();t.CursorPosition=r;var s=function(){function e(){}return e.left=function(e,t,i,o){return o>t.getLineMinColumn(i)?n.CursorColumns.isLowSurrogate(t,i,o-2)?o-=2:o-=1:i>1&&(i-=1,o=t.getLineMaxColumn(i)),new r(i,o,0)},e.moveLeft=function(t,n,i,o,r){var s,a;if(i.hasSelection()&&!o)s=i.selection.startLineNumber,a=i.selection.startColumn;else{ +var l=e.left(t,n,i.position.lineNumber,i.position.column-(r-1));s=l.lineNumber,a=l.column}return i.move(o,s,a,0)},e.right=function(e,t,i,o){return od?(i=d,l?o=t.getLineMaxColumn(i):(o=Math.min(t.getLineMaxColumn(i),o),n.CursorColumns.isInsideSurrogatePair(t,i,o)&&(o-=1))):(o=n.CursorColumns.columnFromVisibleColumn2(e,t,i,u),n.CursorColumns.isInsideSurrogatePair(t,i,o)&&(o-=1)),s=u-n.CursorColumns.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize),new r(i,o,s)}, +e.moveDown=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.endLineNumber,a=i.selection.endColumn):(s=i.position.lineNumber,a=i.position.column);var l=e.down(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,l.lineNumber,l.column,l.leftoverVisibleColumns)},e.translateDown=function(t,r,s){var a=s.selection,l=e.down(t,r,a.selectionStartLineNumber,a.selectionStartColumn,s.selectionStartLeftoverVisibleColumns,1,!1),u=e.down(t,r,a.positionLineNumber,a.positionColumn,s.leftoverVisibleColumns,1,!1);return new n.SingleCursorState(new o.Range(l.lineNumber,l.column,l.lineNumber,l.column),l.leftoverVisibleColumns,new i.Position(u.lineNumber,u.column),u.leftoverVisibleColumns)},e.up=function(e,t,i,o,s,a,l){var u=n.CursorColumns.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize)+s;return(i-=a)<1?(i=1,l?o=t.getLineMinColumn(i):(o=Math.min(t.getLineMaxColumn(i),o),n.CursorColumns.isInsideSurrogatePair(t,i,o)&&(o-=1))):(o=n.CursorColumns.columnFromVisibleColumn2(e,t,i,u), +n.CursorColumns.isInsideSurrogatePair(t,i,o)&&(o-=1)),s=u-n.CursorColumns.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize),new r(i,o,s)},e.moveUp=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.startLineNumber,a=i.selection.startColumn):(s=i.position.lineNumber,a=i.position.column);var l=e.up(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,l.lineNumber,l.column,l.leftoverVisibleColumns)},e.translateUp=function(t,r,s){var a=s.selection,l=e.up(t,r,a.selectionStartLineNumber,a.selectionStartColumn,s.selectionStartLeftoverVisibleColumns,1,!1),u=e.up(t,r,a.positionLineNumber,a.positionColumn,s.leftoverVisibleColumns,1,!1);return new n.SingleCursorState(new o.Range(l.lineNumber,l.column,l.lineNumber,l.column),l.leftoverVisibleColumns,new i.Position(u.lineNumber,u.column),u.leftoverVisibleColumns)},e.moveToBeginningOfLine=function(e,t,n,i){var o,r=n.position.lineNumber,s=t.getLineMinColumn(r),a=t.getLineFirstNonWhitespaceColumn(r)||s;return o=n.position.column===a?s:a,n.move(i,r,o,0)}, +e.moveToEndOfLine=function(e,t,n,i){var o=n.position.lineNumber,r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},e.moveToBeginningOfBuffer=function(e,t,n,i){return n.move(i,1,1,0)},e.moveToEndOfBuffer=function(e,t,n,i){var o=t.getLineCount(),r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},e}();t.MoveOperations=s}),define(t[176],n([1,0,76,38,3,171,6]),function(e,t,n,i,o,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){}return e.deleteRight=function(e,t,i,s){for(var a=[],l=3!==e,u=0,d=s.length;u1){var m=a.getLineContent(g.lineNumber),v=s.firstNonWhitespaceIndex(m),_=-1===v?m.length+1:v+1;if(g.column<=_){var y=i.CursorColumns.visibleColumnFromColumn2(t,a,g),C=i.CursorColumns.prevTabStop(y,t.tabSize),b=i.CursorColumns.columnFromVisibleColumn2(t,a,g.lineNumber,C);f=new o.Range(g.lineNumber,b,g.lineNumber,g.column)}else f=new o.Range(g.lineNumber,g.column-1,g.lineNumber,g.column)}else{ +var S=r.MoveOperations.left(t,a,g.lineNumber,g.column);f=new o.Range(S.lineNumber,S.column,g.lineNumber,g.column)}}f.isEmpty()?u[c]=null:(f.startLineNumber!==f.endLineNumber&&(d=!0),u[c]=new n.ReplaceCommand(f,""))}return[d,u]},e.cut=function(e,t,r){for(var s=[],a=0,l=r.length;a1?(c=d.lineNumber-1,h=t.getLineMaxColumn(d.lineNumber-1),p=d.lineNumber,f=t.getLineMaxColumn(d.lineNumber)):(c=d.lineNumber,h=1,p=d.lineNumber,f=t.getLineMaxColumn(d.lineNumber));var g=new o.Range(c,h,p,f);g.isEmpty()?s[a]=null:s[a]=new n.ReplaceCommand(g,"")}else s[a]=null;else s[a]=new n.ReplaceCommand(u,"")}return new i.EditOperationResult(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e}();t.DeleteOperations=a}),define(t[139],n([1,0,10,76,38,3,6,170,41,58,441,89]),function(e,t,n,i,o,r,s,a,l,u,d,c){ +"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function e(){}return e.indent=function(e,t,n){for(var i=[],o=0,r=n.length;o1){var c=i-1;for(c=i-1;c>=1;c--){var h=n.getLineContent(c);if(s.lastNonWhitespaceIndex(h)>=0)break}if(c<1)return null;var p=n.getLineMaxColumn(c),f=l.LanguageConfigurationRegistry.getEnterAction(n,new r.Range(c,p,c,p));f&&(a=f.indentation,(o=f.enterAction)&&(a+=o.appendText))}return o&&(o===u.IndentAction.Indent&&(a=e.shiftIndent(t,a)),o===u.IndentAction.Outdent&&(a=e.unshiftIndent(t,a)),a=t.normalizeIndentation(a)),a||null},e._replaceJumpToNextIndent=function(e,t,n,r){var s="",a=n.getStartPosition();if(e.insertSpaces)for(var l=o.CursorColumns.visibleColumnFromColumn2(e,t,a),u=e.tabSize,d=u-l%u,c=0;c=0?d.setEndPosition(d.endLineNumber,Math.max(d.endColumn,M+1)):d.setEndPosition(d.endLineNumber,n.getLineMaxColumn(d.endLineNumber)),a)return new i.ReplaceCommandWithoutChangingPosition(d,N+t.normalizeIndentation(S.afterEnter),!0);var D=0;return x<=M+1&&(t.insertSpaces||(L=Math.ceil(L/t.tabSize)),D=Math.min(L+1-t.normalizeIndentation(S.afterEnter).length-1,0)),new i.ReplaceCommandWithOffsetCursorState(d,N+t.normalizeIndentation(S.afterEnter),0,D,!0)}return e._typeCommand(d,"\n"+t.normalizeIndentation(E),a)},e._isAutoIndentType=function(e,t,n){if(!e.autoIndent)return!1;for(var i=0,o=n.length;i1){var p=c.getMapForWordSeparators(t.wordSeparators),f=h.charCodeAt(d.column-2);if(0===p.get(f))return!1}var g=h.charAt(d.column-1);if(g){if(!e._isBeforeClosingBrace(t,r,g)&&!/\s/.test(g))return!1}if(!i.isCheapToTokenize(d.lineNumber))return!1;i.forceTokenization(d.lineNumber);var m=i.getLineTokens(d.lineNumber),v=!1;try{ +v=l.LanguageConfigurationRegistry.shouldAutoClosePair(r,m,d.column)}catch(e){n.onUnexpectedError(e)}if(!v)return!1}return!0},e._runAutoClosingOpenCharType=function(e,t,n,r,s){for(var a=[],l=0,u=r.length;l2){var m=c.getMapForWordSeparators(r.wordSeparators),v=p.charCodeAt(h.column-3);if(0===m.get(v))continue}var _=p.charAt(h.column-1);if(_){if(!e._isBeforeClosingBrace(r,f,_)&&!/\s/.test(_))continue}if(!s.isCheapToTokenize(h.lineNumber))continue;s.forceTokenization(h.lineNumber);var y=s.getLineTokens(h.lineNumber),C=!1;try{C=l.LanguageConfigurationRegistry.shouldAutoClosePair(f,y,h.column-1)}catch(e){n.onUnexpectedError(e)}if(C){var b=r.autoClosingPairsOpen[f];u[d]=new i.ReplaceCommandWithOffsetCursorState(a[d],b,0,-b.length)}}}return new o.EditOperationResult(1,u,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},e.typeWithInterceptors=function(t,n,r,s,a){if("\n"===a){for(var l=[],u=0,d=s.length;u=0;i--){var o=e.charCodeAt(i);if(32===o||9===o||!n&&s.isUpperAsciiLetter(o)||95===o)return i-1;if(n&&i=0;o--){var r=e.charCodeAt(o),s=t.get(r);if(0===s){if(2===i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=1}else if(2===s){if(1===i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=2 +}else if(1===s&&0!==i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1))}return 0!==i?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null},e._findEndOfWord=function(e,t,n,i){for(var o=e.length,r=i;r=0;o--){var r=e.charCodeAt(o),s=t.get(r) +;if(1===s)return o+1;if(1===n&&2===s)return o+1;if(2===n&&0===s)return o+1}return 0},e.moveWordLeft=function(t,n,o,r){var s=o.lineNumber,a=o.column;1===a&&s>1&&(s-=1,a=n.getLineMaxColumn(s));var l=e._findPreviousWordOnLine(t,n,new i.Position(s,a));return 0===r?(l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=e._findPreviousWordOnLine(t,n,new i.Position(s,l.start+1))),a=l?l.start+1:1):(l&&a<=l.end+1&&(l=e._findPreviousWordOnLine(t,n,new i.Position(s,l.start+1))),a=l?l.end+1:1),new i.Position(s,a)},e.moveWordRight=function(t,n,o,r){var s=o.lineNumber,a=o.column;a===n.getLineMaxColumn(s)&&s=l.start+1&&(l=e._findNextWordOnLine(t,n,new i.Position(s,l.end+1))),a=l?l.start+1:n.getLineMaxColumn(s)),new i.Position(s,a)}, +e._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-2,o=s.lastNonWhitespaceIndex(n,i);return o+11?d=1:(u--,d=n.getLineMaxColumn(u)):(h&&d<=h.end+1&&(h=e._findPreviousWordOnLine(t,n,new i.Position(u,h.start+1))),h?d=h.end+1:d>1?d=1:(u--,d=n.getLineMaxColumn(u))),new a.Range(u,d,l.lineNumber,l.column)},e._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,i=t;i=f.start+1&&(f=e._findNextWordOnLine(t,n,new i.Position(u,f.end+1))),f?d=f.start+1:d1?new i.Position(r-1,t.getLineMaxColumn(r-1)):n;var a=d.moveWordLeft(e,t,n,o),u=l(t.getLineContent(r),s-2),c=new i.Position(r,u+2);return c.isBeforeOrEqual(a)?a:c},t.moveWordPartRight=function(e,t,n,o){var r=n.lineNumber,s=n.column;if(s===t.getLineMaxColumn(r))return rd&&(c=d,h=e.model.getLineMaxColumn(c)), +n.CursorState.fromModelState(new n.SingleCursorState(new o.Range(l.lineNumber,1,c,h),0,new i.Position(c,h),0))}var p=t.modelState.selectionStart.getStartPosition().lineNumber;if(l.lineNumberp){var d=e.viewModel.getLineCount(),f=u.lineNumber+1,g=1;return f>d&&(f=d,g=e.viewModel.getLineMaxColumn(f)),n.CursorState.fromViewState(t.viewState.move(t.modelState.hasSelection(),f,g,0))}var m=t.modelState.selectionStart.getEndPosition();return n.CursorState.fromModelState(t.modelState.move(t.modelState.hasSelection(),m.lineNumber,m.column,0))},e.word=function(e,t,i,o){var r=e.model.validatePosition(o);return n.CursorState.fromModelState(s.WordOperations.word(e.config,e.model,t.modelState,i,r))},e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new n.CursorState(t.modelState,t.viewState);var r=t.viewState.position.lineNumber,s=t.viewState.position.column +;return n.CursorState.fromViewState(new n.SingleCursorState(new o.Range(r,s,r,s),0,new i.Position(r,s),0))},e.moveTo=function(e,t,o,r,s){var a=e.model.validatePosition(r),l=s?e.validateViewPosition(new i.Position(s.lineNumber,s.column),a):e.convertModelPositionToViewPosition(a);return n.CursorState.fromViewState(t.viewState.move(o,l.lineNumber,l.column,0))},e.move=function(e,t,n){var i=n.select,o=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,o);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,o);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,i,o):this._moveUpByModelLines(e,t,i,o);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,i,o):this._moveDownByModelLines(e,t,i,o);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8: +return this._moveToViewLastNonWhitespaceColumn(e,t,i);case 9:var r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._firstLineNumberInRange(e.model,s,o),l=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,l)];case 11:var r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._lastLineNumberInRange(e.model,s,o),l=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,l)];case 10:var r=t[0],s=e.getCompletelyVisibleModelRange(),a=Math.round((s.startLineNumber+s.endLineNumber)/2),l=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,l)];case 12:for(var u=e.getCompletelyVisibleViewRange(),d=[],c=0,h=t.length;ci.endLineNumber-1&&(r=i.endLineNumber-1), +rn)for(var r=t-n,o=0;o=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},e.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;tp&&t[w].index--;e.splice(p,1),t.splice(h,1),this._removeSecondaryCursor(p-1),s--}}}}},e}();t.CursorCollection=r}),define(t[382],n([1,0,299,6,10,381,3,21,66,38,176,139,54,78,9,24]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0}) +;var v=function(){return function(e,t,n){this.selections=e,this.source=t,this.reason=n}}();t.CursorStateChangedEvent=v;var _=function(){function e(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getAll()}return e.prototype.equals=function(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(var t=0,n=this.cursorState.length;tt.MAX_CURSOR_COUNT&&(i=i.slice(0,t.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var o=new _(this._model,this);this._cursors.setStates(i),this._cursors.normalize(),this._columnSelectData=null,this._emitStateChangedIfNecessary(e,n,o)},t.prototype.setColumnSelectData=function(e){this._columnSelectData=e},t.prototype.reveal=function(e,t,n){this._revealRange(t,0,e,n)},t.prototype.revealRange=function(e,t,n,i){this.emitCursorRevealRange(t,n,e,i)},t.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})}, +t.prototype.saveState=function(){for(var e=[],t=this._cursors.getSelections(),n=0,i=t.length;n1)return;var l=new a.Range(r.lineNumber,r.column,r.lineNumber,r.column);this.emitCursorRevealRange(l,t,n,i)},t.prototype.emitCursorRevealRange=function(e,t,n,i){try{this._beginEmit().emit(new f.ViewRevealRangeRequestEvent(e,t,n,i))}finally{this._endEmit()}},t.prototype.trigger=function(e,t,n){var i=u.Handler;if(t!==i.CompositionStart)if(t===i.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.editor.readOnly)this._onDidAttemptReadOnlyEdit.fire(void 0);else{var o=new _(this._model,this),s=p.CursorChangeReason.NotSet +;t!==i.Undo&&t!==i.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case i.Type:this._type(e,n.text);break;case i.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case i.Paste:s=p.CursorChangeReason.Paste,this._paste(n.text,n.pasteOnNewLine,n.multicursorText);break;case i.Cut:this._cut();break;case i.Undo:s=p.CursorChangeReason.Undo,this._interpretCommandResult(this._model.undo());break;case i.Redo:s=p.CursorChangeReason.Redo,this._interpretCommandResult(this._model.redo());break;case i.ExecuteCommand:this._externalExecuteCommand(n);break;case i.ExecuteCommands:this._externalExecuteCommands(n);break;case i.CompositionEnd:this._interpretCompositionEnd(e)}}catch(e){r.onUnexpectedError(e)}this._isHandling=!1,t!==i.Undo&&t!==i.Redo&&this._cursors.startTrackingSelections(),this._emitStateChangedIfNecessary(e,s,o)&&this._revealRange(0,0,!0,0)}else this._isDoingComposition=!0},t.prototype._interpretCompositionEnd=function(e){ +this._isDoingComposition||"keyboard"!==e||this._executeEditOperation(h.TypeOperations.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections()))},t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(h.TypeOperations.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=0,o=t.length;n0&&(r[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,r,function(n){for(var i=[],o=0;o0?(i[n].sort(s),a[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return i[n]}, +getTrackedSelection:function(t){var n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return e.trackedRangesDirection[n]===l.SelectionDirection.LTR?new l.Selection(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new l.Selection(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):a[n]=e.selectionsBefore[n]},o=0;oo.identifier.major?i.identifier.major:o.identifier.major).toString()]=!0;for(var s=0;s0&&n--}}return t},e}()}),define(t[182],n([1,0,6,17,60,99]),function(e,t,n,i,o,r){"use strict";function s(e,t){return function(e,t){for(var i='
      ',o=e.split(/\r\n|\r|\n/),s=t.getInitialState(),a=0,l=o.length;a0&&(i+="
      ");var d=t.tokenize2(u,s,0);r.LineTokens.convertToEndOffset(d.tokens,u.length);for(var c=new r.LineTokens(d.tokens,u).inflate(),h=0,p=0,f=c.getCount();p'+n.escape(u.substring(h,m))+"",h=m}s=d.endState}return i+="
      "}(e,function(e){var t=i.TokenizationRegistry.get(e);if(t)return t;return{ +getInitialState:function(){return o.NULL_STATE},tokenize:void 0,tokenize2:function(e,t,n){return o.nullTokenize2(0,e,t,n)}}}(t))}Object.defineProperty(t,"__esModule",{value:!0}),t.tokenizeToString=s,t.tokenizeLineToHTML=function(e,t,n,i,o,r){for(var s="
      ",a=i,l=0,u=0,d=t.getCount();u0;)h+=" ",f--;break;case 60:h+="<";break;case 62:h+=">";break;case 38:h+="&";break;case 0:h+="�";break;case 65279:case 8232:h+="�";break;case 13:h+="​";break;default:h+=String.fromCharCode(p)}}if(s+=''+h+"",c>o||a>=o)break}}return s+="
      "}}),define(t[107],n([1,0,15]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITextModelService=n.createDecorator("textModelService")}),define(t[187],n([1,0,15]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}), +t.ITextResourceConfigurationService=n.createDecorator("textResourceConfigurationService")});var u=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};define(t[189],n([1,0,14,2,13,160,470,17,48,220,41,187]),function(e,t,n,i,r,s,l,d,c,h,p,f){"use strict";function g(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}Object.defineProperty(t,"__esModule",{value:!0});var m=6e4,v=3e5,_=function(e){function t(t,i){var o=e.call(this)||this;return o._modelService=t,o._workerManager=o._register(new C(o._modelService)),o._register(d.LinkProviderRegistry.register("*",{provideLinks:function(e,t){return g(o._modelService,e.uri)?n.wireCancellationToken(t,o._workerManager.withWorker().then(function(t){return t.computeLinks(e.uri)})):r.TPromise.as([])}})),o._register(d.SuggestRegistry.register("*",new y(o._workerManager,i,o._modelService))),o}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.canComputeDiff=function(e,t){ +return g(this._modelService,e)&&g(this._modelService,t)},t.prototype.computeDiff=function(e,t,n){return this._workerManager.withWorker().then(function(i){return i.computeDiff(e,t,n)})},t.prototype.computeMoreMinimalEdits=function(e,t){return Array.isArray(t)&&0!==t.length&&g(this._modelService,e)?this._workerManager.withWorker().then(function(n){return n.computeMoreMinimalEdits(e,t)}):r.TPromise.as(t)},t.prototype.canNavigateValueSet=function(e){return g(this._modelService,e)},t.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then(function(i){return i.navigateValueSet(e,t,n)})},t=a([u(0,c.IModelService),u(1,f.ITextResourceConfigurationService)],t)}(i.Disposable);t.EditorWorkerServiceImpl=_;var y=function(){function e(e,t,n){this._workerManager=e,this._configurationService=t,this._modelService=n}return e.prototype.provideCompletionItems=function(e,t){ +if(this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions&&g(this._modelService,e.uri))return this._workerManager.withWorker().then(function(n){return n.textualSuggest(e.uri,t)})},e}(),C=function(e){function t(t){var i=e.call(this)||this;i._modelService=t,i._editorWorkerClient=null;return i._register(new n.IntervalTimer).cancelAndSet(function(){return i._checkStopIdleWorker()},Math.round(v/2)),i._register(i._modelService.onModelRemoved(function(e){return i._checkStopEmptyWorker()})),i}return o(t,e),t.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),e.prototype.dispose.call(this)},t.prototype._checkStopEmptyWorker=function(){if(this._editorWorkerClient){0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},t.prototype._checkStopIdleWorker=function(){if(this._editorWorkerClient){(new Date).getTime()-this._lastWorkerUsedTime>v&&(this._editorWorkerClient.dispose(), +this._editorWorkerClient=null)}},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new w(this._modelService,"editorWorkerService")),r.TPromise.as(this._editorWorkerClient)},t}(i.Disposable),b=function(e){function t(t,i,o){var r=e.call(this)||this;if(r._syncedModels=Object.create(null),r._syncedModelsLastUsedTime=Object.create(null),r._proxy=t,r._modelService=i,!o){var s=new n.IntervalTimer;s.cancelAndSet(function(){return r._checkStopModelSync()},Math.round(m/2)),r._register(s)}return r}return o(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)i.dispose(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),e.prototype.dispose.call(this)},t.prototype.esureSyncedResources=function(e){for(var t=0;tm&&t.push(n)}for(var i=0;i=.5,this._onDidChange.fire(void 0)},e.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},e.prototype.backgroundIsLight=function(){return this._backgroundIsLight},e._INSTANCE=null,e}();t.MinimapTokensColorTracker=r;var s=function(){function e(t,n){if(760!==t.length)throw new Error("Invalid x2CharData");if(190!==n.length)throw new Error("Invalid x1CharData");this.x2charData=t,this.x1charData=n,this.x2charDataLight=e.soften(t,.8),this.x1charDataLight=e.soften(n,50/60)}return e.soften=function(e,t){ +for(var n=new Uint8ClampedArray(e.length),i=0,o=e.length;it.width||i+4>t.height)console.warn("bad render request outside image data");else{var l=a?this.x2charDataLight:this.x2charData,u=e._getChIndex(o),d=4*t.width,c=s.r,h=s.g,p=s.b,f=r.r-c,g=r.g-h,m=r.b-p,v=t.data,_=4*u*2,y=i*d+4*n,C=l[_]/255;v[y+0]=c+f*C,v[y+1]=h+g*C,v[y+2]=p+m*C;C=l[_+1]/255;v[y+4]=c+f*C,v[y+5]=h+g*C,v[y+6]=p+m*C,y+=d;C=l[_+2]/255;v[y+0]=c+f*C,v[y+1]=h+g*C,v[y+2]=p+m*C;C=l[_+3]/255;v[y+4]=c+f*C,v[y+5]=h+g*C,v[y+6]=p+m*C,y+=d;C=l[_+4]/255;v[y+0]=c+f*C,v[y+1]=h+g*C,v[y+2]=p+m*C;C=l[_+5]/255;v[y+4]=c+f*C,v[y+5]=h+g*C,v[y+6]=p+m*C,y+=d;C=l[_+6]/255;v[y+0]=c+f*C,v[y+1]=h+g*C,v[y+2]=p+m*C;C=l[_+7]/255;v[y+4]=c+f*C,v[y+5]=h+g*C,v[y+6]=p+m*C}},e.prototype.x1RenderChar=function(t,n,i,o,r,s,a){if(n+1>t.width||i+2>t.height)console.warn("bad render request outside image data");else{ +var l=a?this.x1charDataLight:this.x1charData,u=e._getChIndex(o),d=4*t.width,c=s.r,h=s.g,p=s.b,f=r.r-c,g=r.g-h,m=r.b-p,v=t.data,_=2*u*1,y=i*d+4*n,C=l[_]/255;v[y+0]=c+f*C,v[y+1]=h+g*C,v[y+2]=p+m*C,y+=d;C=l[_+1]/255;v[y+0]=c+f*C,v[y+1]=h+g*C,v[y+2]=p+m*C}},e.prototype.x2BlockRenderChar=function(e,t,n,i,o,r){if(t+2>e.width||n+4>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=o.r,l=o.g,u=o.b,d=a+.5*(i.r-a),c=l+.5*(i.g-l),h=u+.5*(i.b-u),p=e.data,f=n*s+4*t;p[f+0]=d,p[f+1]=c,p[f+2]=h,p[f+4]=d,p[f+5]=c,p[f+6]=h,p[(f+=s)+0]=d,p[f+1]=c,p[f+2]=h,p[f+4]=d,p[f+5]=c,p[f+6]=h,p[(f+=s)+0]=d,p[f+1]=c,p[f+2]=h,p[f+4]=d,p[f+5]=c,p[f+6]=h,p[(f+=s)+0]=d,p[f+1]=c,p[f+2]=h,p[f+4]=d,p[f+5]=c,p[f+6]=h}},e.prototype.x1BlockRenderChar=function(e,t,n,i,o,r){if(t+1>e.width||n+2>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=o.r,l=o.g,u=o.b,d=a+.5*(i.r-a),c=l+.5*(i.g-l),h=u+.5*(i.b-u),p=e.data,f=n*s+4*t;p[f+0]=d,p[f+1]=c,p[f+2]=h,p[(f+=s)+0]=d,p[f+1]=c,p[f+2]=h}}, +e}();t.MinimapCharRenderer=s}),define(t[389],n([1,0,108]),function(e,t,n){"use strict";function i(e){for(var t=new Uint8ClampedArray(e.length),n=0,i=e.length;n=l&&f<=d,m=u(this.linePositionMapperFactory,n[p],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!g);s[p]=m.getViewLineCount(),this.lines[p]=m}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new o.PrefixSumComputerWithCache(s)},e.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map(function(t){return e.model.getDecorationRange(t)})},e.prototype._reduceRanges=function(e){var t=this;if(0===e.length)return[];for(var n=e.map(function(e){return t.model.validateRange(e)}).sort(i.Range.compareRangesUsingStarts),o=[],r=n[0].startLineNumber,s=n[0].endLineNumber,a=1,l=n.length;as+1?(o.push(new i.Range(r,1,s,1)),r=u.startLineNumber,s=u.endLineNumber):u.endLineNumber>s&&(s=u.endLineNumber)} +return o.push(new i.Range(r,1,s,1)),o},e.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),o=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(i.Range.compareRangesUsingStarts);if(n.length===o.length){for(var r=!1,s=0;s=d&&g<=c?this.lines[s].isVisible()&&(this.lines[s]=this.lines[s].setVisible(!1),m=!0):(f=!0,this.lines[s].isVisible()||(this.lines[s]=this.lines[s].setVisible(!0),m=!0)),m){var v=this.lines[s].getViewLineCount();this.prefixSumComputer.changeValue(s,v)}}return f||this.setHiddenAreas([]),!0}, +e.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},e.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1),!0)},e.prototype.setWrappingSettings=function(e,t,n){return(this.wrappingIndent!==e||this.wrappingColumn!==t||this.columnsForFullWidthChar!==n)&&(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=n,this._constructLines(!1),!0)},e.prototype.onModelFlushed=function(){this._constructLines(!0)},e.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,o=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new s.ViewLinesDeletedEvent(i,o)},e.prototype.onModelLinesInserted=function(e,t,i,o){if(e<=this._validModelVersionId)return null +;for(var r=this.getHiddenAreas(),a=!1,l=new n.Position(t,1),d=0;dl?(m=(g=(h=(c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+l-1)+1)+(o-l)-1,d=!0):ot?t:e},e.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)},e.prototype.getActiveIndentGuide=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e), +t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),s=this.model.getActiveIndentGuide(i.lineNumber,o.lineNumber,r.lineNumber),a=this.convertModelPositionToViewPosition(s.startLineNumber,1),l=this.convertModelPositionToViewPosition(s.endLineNumber,1);return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:s.indent}},e.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),r=[],s=[],a=[],l=i.lineNumber-1,u=o.lineNumber-1,d=null,c=l;c<=u;c++){var h=this.lines[c];if(h.isVisible()){ +var p=h.getViewLineNumberOfModelPosition(0,c===l?i.column:1),f=h.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(c+1)),g=0;(S=f-p+1)>1&&1===h.getViewLineMinColumn(this.model,c+1,f)&&(g=0===p?1:2),s.push(S),a.push(g),null===d&&(d=new n.Position(c+1,0))}else null!==d&&(r=r.concat(this.model.getLinesIndentGuides(d.lineNumber,c)),d=null)}null!==d&&(r=r.concat(this.model.getLinesIndentGuides(d.lineNumber,o.lineNumber)),d=null);for(var m=t-e+1,v=new Array(m),_=0,y=0,C=r.length;yt&&(p=!0,h=t-o+1);var f=c+h;if(d.getViewLinesData(this.model,l+1,c,f,o-e,n,a),o+=h,p)break}}return a},e.prototype.validateViewPosition=function(e,t,i){this._ensureValidState(),e=this._toValidViewLineNumber(e);var o=this.prefixSumComputer.getIndexOf(e-1),r=o.index,s=o.remainder,a=this.lines[r],l=a.getViewLineMinColumn(this.model,r+1,s),u=a.getViewLineMaxColumn(this.model,r+1,s);tu&&(t=u);var d=a.getModelColumnOfViewPosition(s,t);return this.model.validatePosition(new n.Position(r+1,d)).equals(i)?new n.Position(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},e.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),o=i.index,r=i.remainder,s=this.lines[o].getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new n.Position(o+1,s))}, +e.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();for(var i=this.model.validatePosition(new n.Position(e,t)),o=i.lineNumber,r=i.column,s=o-1,a=!1;s>0&&!this.lines[s].isVisible();)s--,a=!0;if(0===s&&!this.lines[s].isVisible())return new n.Position(1,1);var l=1+(0===s?0:this.prefixSumComputer.getAccumulatedValue(s-1));return a?this.lines[s].getViewPositionOfModelPosition(l,this.model.getLineMaxColumn(s+1)):this.lines[o-1].getViewPositionOfModelPosition(l,r)},e.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,t)}for(;n>0&&!this.lines[n].isVisible();)n--;if(0===n&&!this.lines[n].isVisible())return 1;var o=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(o,this.model.getLineMaxColumn(n+1))}, +e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new y,r=0,s=i.length;r0&&(r=this.wrappedIndent+r),r},e.prototype.getViewLineLength=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n)-i;return n>0&&(o=this.wrappedIndent.length+o),o},e.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this.wrappedIndentLength+1:1},e.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1},e.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported") +;var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),s=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});n>0&&(s=this.wrappedIndent+s);var a=n>0?this.wrappedIndentLength+1:1,l=s.length+1,u=n+10&&(d=this.wrappedIndentLength);var c=e.getLineTokens(t);return new r.ViewLineData(s,u,a,l,c.sliceAndInflate(i,o,d))},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){if(!this._isVisible)throw new Error("Not supported");for(var a=n;a0&&(n0&&(r+=this.wrappedIndentLength),new n.Position(e+o,r)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");return e+this.positionMapper.getOutputPositionOfInputOffset(t-1).outputLineIndex},e}();t.SplitLine=m;var v=function(){function e(e){this._lines=e}return e.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},e.prototype._validRange=function(e){return this._lines.model.validateRange(e)},e.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},e.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},e.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},e.prototype.validateViewRange=function(e,t){return this._validRange(t)},e.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)}, +e.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},e.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},e}();t.IdentityCoordinatesConverter=v;var _=function(){function e(e){this.model=e}return e.prototype.dispose=function(){},e.prototype.createCoordinatesConverter=function(){return new v(this)},e.prototype.getHiddenAreas=function(){return[]},e.prototype.setHiddenAreas=function(e){return!1},e.prototype.setTabSize=function(e){return!1},e.prototype.setWrappingSettings=function(e,t,n){return!1},e.prototype.onModelFlushed=function(){},e.prototype.onModelLinesDeleted=function(e,t,n){return new s.ViewLinesDeletedEvent(t,n)},e.prototype.onModelLinesInserted=function(e,t,n,i){return new s.ViewLinesInsertedEvent(t,n)},e.prototype.onModelLineChanged=function(e,t,n){return[!1,new s.ViewLinesChangedEvent(t,t),null,null]},e.prototype.acceptVersionId=function(e){},e.prototype.getViewLineCount=function(){ +return this.model.getLineCount()},e.prototype.warmUpLookupCache=function(e,t){},e.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}},e.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,i=new Array(n),o=0;o=t)return void(n>s&&(o[o.length-1]=n));o.push(i,t,n)}else this.result[e]=[i,t,n]},e}()}),define(t[391],n([1,0,6,129,191,83,94,47]),function(e,t,n,i,r,s,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){function t(t,n,i){for(var o=e.call(this,0)||this,r=0;r=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?4:e.prototype.get.call(this,t)},t}(s.CharacterClassifier),d=function(){function e(e,t,n){this.classifier=new u(e,t,n)}return e.nextVisibleColumn=function(e,t,n,i){return e=+e,t=+t,i=+i,n?e+(t-e%t):e+i},e.prototype.createLineMapping=function(t,o,r,s,u){if(-1===r)return null;o=+o,r=+r,s=+s;var d=0,h="",p=-1;if((u=+u)!==l.WrappingIndent.None&&-1!==(p=n.firstNonWhitespaceIndex(t))){h=t.substring(0,p);for(L=0;Lr&&(h="",d=0)}for(var g=this.classifier,m=0,v=[],_=0,y=0,C=-1,b=0,S=-1,w=0,E=t.length,L=0;L0){var M=t.charCodeAt(L-1);1!==g.get(M)&&(C=L,b=d)}var D=1 +;if(n.isFullWidthCharacter(x)&&(D=s),(y=e.nextVisibleColumn(y,o,N,D))>r&&0!==L){var T=void 0,k=void 0;-1!==C&&b<=r?(T=C,k=b):-1!==S&&w<=r?(T=S,k=w):(T=L,k=d),v[_++]=T-m,m=T,y=e.nextVisibleColumn(k,o,N,D),C=-1,b=0,S=-1,w=0}if(-1!==C&&(b=e.nextVisibleColumn(b,o,N,D)),-1!==S&&(w=e.nextVisibleColumn(w,o,N,D)),2===I&&(u===l.WrappingIndent.None||L>=p)&&(C=L+1,b=d),4===I&&L=2&&e.viewportStartLineTrackedRange){var m=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(m){var v=e.coordinatesConverter.convertModelPositionToViewPosition(m.getStartPosition()),_=e.viewLayout.getVerticalOffsetForLineNumber(v.lineNumber);e.viewLayout.deltaScrollNow(0,_-e.viewportStartLineTop)}}})), +this._register(this.model.onDidChangeTokens(function(t){for(var n=[],o=0,r=t.ranges.length;ol||(s0&&l[d-1]===l[d]||(u+=this.model.getLineContent(l[d])+s);return u} +for(var c=[],d=0;d'+this._getHTMLToCopy(n,s)+""},t.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn,s=this.getTabSize(),l="",u=n;u<=o;u++){ +var d=this.model.getLineTokens(u),c=d.getLineContent(),h=u===n?i-1:0,p=u===o?r-1:c.length;l+=""===c?"
      ":a.tokenizeLineToHTML(c,d.inflate(),t,h,p,s)}return l},t.prototype._getColorMap=function(){for(var e=s.TokenizationRegistry.getColorMap(),t=[null],n=1,i=e.length;n=t._editor.getModel().getLineCount()&&t._futureFixes.cancel()})),this._disposables.push(n.addStandardDisposableListener(this._domNode,"click",function(e){t._editor.focus();var i=n.getDomNodePagePosition(t._domNode),o=i.top,r=i.height,s=t._editor.getConfiguration().lineHeight,a=Math.floor(s/3);t._position&&t._position.position.lineNumber0?i.isEmpty()&&e.every(function(e){return e.kind&&u.CodeActionKind.Refactor.contains(e.kind)})?t.hide():t._show():t.hide()}).catch(function(e){t.hide()})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._domNode.title},set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}), +e.prototype._show=function(){var t=this._editor.getConfiguration();if(t.contribInfo.lightbulbEnabled){var n=this._model.position.lineNumber,i=this._editor.getModel();if(i){var o=i.getOptions().tabSize,r=i.getLineContent(n),s=l.TextModel.computeIndentLevel(r,o),a=n;t.fontInfo.spaceWidth*s>22||(n>1?a-=1:a+=1),this._position={position:{lineNumber:a,column:1},preference:e._posPref},this._editor.layoutContentWidget(this)}}},e.prototype.hide=function(){this._position=null,this._model=null,this._futureFixes.cancel(),this._editor.layoutContentWidget(this)},e._posPref=[a.ContentWidgetPositionPreference.EXACT],e}();t.LightBulbWidget=d}),define(t[394],n([1,0,24,29]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.editor=e,this.autoHideFoldingControls=!0}return e.prototype.getDecorationOption=function(t){return t?e.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:e.EXPANDED_VISUAL_DECORATION}, +e.prototype.deltaDecorations=function(e,t){return this.editor.deltaDecorations(e,t)},e.prototype.changeDecorations=function(e){return this.editor.changeDecorations(e)},e.COLLAPSED_VISUAL_DECORATION=i.ModelDecorationOptions.register({stickiness:n.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,afterContentClassName:"inline-folded",linesDecorationsClassName:"folding collapsed"}),e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=i.ModelDecorationOptions.register({stickiness:n.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,linesDecorationsClassName:"folding"}),e.EXPANDED_VISUAL_DECORATION=i.ModelDecorationOptions.register({stickiness:n.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,linesDecorationsClassName:"folding alwaysShowFoldIcons"}),e}();t.FoldingDecorationProvider=o}),define(t[395],n([1,0,109,29,13,41]),function(e,t,n,i,o,r){"use strict";function s(e,t,n,o){void 0===o&&(o=a);var r=e.getOptions().tabSize,s=new u(o),l=void 0;n&&(l=new RegExp("("+n.start.source+")|(?:"+n.end.source+")"));var d=[];d.push({ +indent:-1,line:e.getLineCount()+1,marker:!1});for(var c=e.getLineCount();c>0;c--){var h=e.getLineContent(c),p=i.TextModel.computeIndentLevel(h,r),f=d[d.length-1];if(-1!==p){var g=void 0;if(l&&(g=h.match(l))){if(!g[1]){d.push({indent:-2,line:c,marker:!0});continue}for(var m=d.length-1;m>0&&!d[m].marker;)m--;if(m>0){d.length=m+1,f=d[m],s.insertFirst(c,f.line,p),f.marker=!1,f.indent=p,f.line=c;continue}}if(f.indent>p){do{d.pop(),f=d[d.length-1]}while(f.indent>p);var v=f.line-1;v-c>=1&&s.insertFirst(c,v,p)}f.indent===p?f.line=c:d.push({indent:p,line:c,marker:!1})}else t&&!f.marker&&(f.line=c)}return s.toIndentRanges(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=5e3;t.ID_INDENT_PROVIDER="indent";var l=function(){function e(e){this.editorModel=e,this.id=t.ID_INDENT_PROVIDER}return e.prototype.dispose=function(){},e.prototype.compute=function(e){var t=r.LanguageConfigurationRegistry.getFoldingRules(this.editorModel.getLanguageIdentifier().id),n=t&&t.offSide,i=t&&t.markers +;return o.TPromise.as(s(this.editorModel,n,i))},e}();t.IndentRangeProvider=l;var u=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.insertFirst=function(e,t,i){if(!(e>n.MAX_LINE_NUMBER||t>n.MAX_LINE_NUMBER)){var o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}},e.prototype.toIndentRanges=function(e){if(this._length<=this._foldingRangesLimit){for(var t=new Uint32Array(this._length),o=new Uint32Array(this._length),r=this._length-1,s=0;r>=0;r--,s++)t[s]=this._startIndexes[r],o[s]=this._endIndexes[r];return new n.FoldingRegions(t,o)}for(var a=0,l=this._indentOccurrences.length,r=0;rthis._foldingRangesLimit){l=r;break}a+=u}} +for(var d=e.getOptions().tabSize,t=new Uint32Array(this._foldingRangesLimit),o=new Uint32Array(this._foldingRangesLimit),r=this._length-1,s=0;r>=0;r--){var c=this._startIndexes[r],h=e.getLineContent(c),p=i.TextModel.computeIndentLevel(h,d);(p=l.startLineNumber+1&&t<=l.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)};var w=r.LanguageConfigurationRegistry.getGoodIndentForLine(h,e.getLanguageIdAtPosition(g,1),l.startLineNumber+1,c);if(null!==w){ +y=n.getLeadingWhitespace(e.getLineContent(l.startLineNumber));if((C=a.getSpaceCnt(w,u))!==(N=a.getSpaceCnt(y,u))){I=C-N;this.getIndentEditsOfMovingBlock(e,t,l,u,d,I)}}}}else t.addEditOperation(new i.Range(l.startLineNumber,1,l.startLineNumber,1),v+"\n")}else if(g=l.startLineNumber-1,m=e.getLineContent(g),t.addEditOperation(new i.Range(g,1,g+1,1),null),t.addEditOperation(new i.Range(l.endLineNumber,e.getLineMaxColumn(l.endLineNumber),l.endLineNumber,e.getLineMaxColumn(l.endLineNumber)),"\n"+m),this.shouldAutoIndent(e,l)){h.getLineContent=function(t){return t===g?e.getLineContent(l.startLineNumber):e.getLineContent(t)};var E=this.matchEnterRule(e,c,u,l.startLineNumber,l.startLineNumber-2);if(null!==E)0!==E&&this.getIndentEditsOfMovingBlock(e,t,l,u,d,E);else{var L=r.LanguageConfigurationRegistry.getGoodIndentForLine(h,e.getLanguageIdAtPosition(l.startLineNumber,1),g,c);if(null!==L){var x=n.getLeadingWhitespace(e.getLineContent(l.startLineNumber)),C=a.getSpaceCnt(L,u),N=a.getSpaceCnt(x,u);if(C!==N){var I=C-N +;this.getIndentEditsOfMovingBlock(e,t,l,u,d,I)}}}}}this._selectionId=t.trackSelection(l)}},e.prototype.buildIndentConverter=function(e){return{shiftIndent:function(t){for(var n=s.ShiftCommand.shiftIndentCount(t,t.length+1,e),i="",o=0;o=1;){var h=void 0;h=c===u&&void 0!==d?d:e.getLineContent(c);if(n.lastNonWhitespaceIndex(h)>=0)break;c--}if(c<1||s>e.getLineCount())return null;var p=e.getLineMaxColumn(c),f=r.LanguageConfigurationRegistry.getEnterAction(e,new i.Range(c,p,c,p));if(f){var g=f.indentation,m=f.enterAction;m.indentAction===l.IndentAction.None?g=f.indentation+m.appendText:m.indentAction===l.IndentAction.Indent?g=f.indentation+m.appendText:m.indentAction===l.IndentAction.IndentOutdent?g=f.indentation:m.indentAction===l.IndentAction.Outdent&&(g=t.unshiftIndent(f.indentation)+m.appendText) +;var v=e.getLineContent(s);if(this.trimLeft(v).indexOf(this.trimLeft(g))>=0){var _=n.getLeadingWhitespace(e.getLineContent(s)),y=n.getLeadingWhitespace(g);2&r.LanguageConfigurationRegistry.getIndentMetadata(e,s)&&(y=t.unshiftIndent(y));return a.getSpaceCnt(y,o)-a.getSpaceCnt(_,o)}}return null},e.prototype.trimLeft=function(e){return e.replace(/^\s+/,"")},e.prototype.shouldAutoIndent=function(e,t){if(!this._autoIndent)return!1;if(!e.isCheapToTokenize(t.startLineNumber))return!1;var n=e.getLanguageIdAtPosition(t.startLineNumber,1);return n===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==r.LanguageConfigurationRegistry.getIndentRulesSupport(n)},e.prototype.getIndentEditsOfMovingBlock=function(e,t,o,r,s,l){for(var u=o.startLineNumber;u<=o.endLineNumber;u++){var d=e.getLineContent(u),c=n.getLeadingWhitespace(d),h=a.getSpaceCnt(c,r)+l,p=a.generateIndent(h,r,s);p!==c&&(t.addEditOperation(new i.Range(u,1,u,c.length+1),p), +u===o.endLineNumber&&o.endColumn<=c.length+1&&""===p&&(this._moveEndLineSelectionShrink=!0))}},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumber0&&0===e.minimapLeft?e.minimapWidth:0},e.prototype._onViewZoneTop=function(e){this.domNode.style.top=e+"px"},e.prototype._onViewZoneHeight=function(e){this.domNode.style.height=e+"px";var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n)),this._resizeSash.layout()},Object.defineProperty(e.prototype,"position",{get:function(){var e=this._positionMarkerId[0];if(e){var t=this.editor.getModel().getDecorationRange(e);if(t)return t.getStartPosition()}},enumerable:!0,configurable:!0}),e.prototype.show=function(e,t){var n=s.Range.isIRange(e)?e:new s.Range(e.lineNumber,e.column,e.lineNumber,e.column);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:l.ModelDecorationOptions.EMPTY}])},e.prototype.hide=function(){var e=this +;this._viewZone&&(this.editor.changeViewZones(function(t){t.removeZone(e._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},e.prototype._decoratingElementsHeight=function(){var e=this.editor.getConfiguration().lineHeight,t=0;if(this.options.showArrow){t+=2*Math.round(e/3)}if(this.options.showFrame){t+=2*Math.round(e/9)}return t},e.prototype._showImpl=function(e,t){var n=this,i={lineNumber:e.startLineNumber,column:e.startColumn},o=this.editor.getLayoutInfo(),r=this._getWidth(o);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(o)+"px";var s=document.createElement("div");s.style.overflow="hidden";var a=this.editor.getConfiguration().lineHeight,l=this.editor.getLayoutInfo().height/a*.8;t>=l&&(t=l);var u=0,d=0;if(this.options.showArrow&&(u=Math.round(a/3),this._arrow.height=u,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)), +this.editor.changeViewZones(function(e){n._viewZone&&e.removeZone(n._viewZone.id),n._overlayWidget&&(n.editor.removeOverlayWidget(n._overlayWidget),n._overlayWidget=null),n.domNode.style.top="-1000px",n._viewZone=new p(s,i.lineNumber,i.column,t,function(e){return n._onViewZoneTop(e)},function(e){return n._onViewZoneHeight(e)}),n._viewZone.id=e.addZone(n._viewZone),n._overlayWidget=new f("vs.editor.contrib.zoneWidget"+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)}),this.options.showFrame){var c=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=c+"px",this.container.style.borderBottomWidth=c+"px"}var h=t*a-this._decoratingElementsHeight();this.container.style.top=u+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden",this._doLayout(h,r),this.options.keepEditorSelection||this.editor.setSelection(e);var g=Math.min(this.editor.getModel().getLineCount(),Math.max(1,e.endLineNumber+1));this.revealLine(g)}, +e.prototype.revealLine=function(e){this.editor.revealLine(e,0)},e.prototype.setCssClass=function(e,t){t&&this.container.classList.remove(t),o.addClass(this.container,e)},e.prototype._onWidth=function(e){},e.prototype._doLayout=function(e,t){},e.prototype._relayout=function(e){var t=this;this._viewZone.heightInLines!==e&&this.editor.changeViewZones(function(n){t._viewZone.heightInLines=e,n.layoutZone(t._viewZone.id)})},e.prototype._initSash=function(){var e=this;this._resizeSash=new r.Sash(this.domNode,this,{orientation:r.Orientation.HORIZONTAL}),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=r.SashState.Disabled);var t;this._disposables.push(this._resizeSash.onDidStart(function(n){e._viewZone&&(t={startY:n.startY,heightInLines:e._viewZone.heightInLines})})),this._disposables.push(this._resizeSash.onDidEnd(function(){t=void 0})),this._disposables.push(this._resizeSash.onDidChange(function(n){if(t){ +var i=(n.currentY-t.startY)/e.editor.getConfiguration().lineHeight,o=i<0?Math.ceil(i):Math.floor(i),r=t.heightInLines+o;r>5&&r<35&&e._relayout(r)}}))},e.prototype.getHorizontalSashLeft=function(){return 0},e.prototype.getHorizontalSashTop=function(){return parseInt(this.domNode.style.height)-this._decoratingElementsHeight()/2},e.prototype.getHorizontalSashWidth=function(){var e=this.editor.getLayoutInfo();return e.width-e.minimapWidth},e}();t.ZoneWidget=m}),define(t[399],n([1,0,13,17,96,99,6,63]),function(e,t,n,i,o,r,s,a){"use strict";function l(e,t,n){return function(e,t,n){for(var i=[],s=n.getInitialState(),l=0,u=e.length;l"),s=c.endState}return i.join("")}(e,t,n)} +Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(){}return e.colorizeElement=function(e,t,n,i){var o=(i=i||{}).theme||"vs",r=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(r){e.setTheme(o);var s=n.firstChild.nodeValue;n.className+=" "+o;return this.colorize(t,s,r,i).then(function(e){n.innerHTML=e},function(e){return console.error(e)})}console.error("Mode not detected")},e._tokenizationSupportChangedPromise=function(e){var t=null,o=function(){t&&(t.dispose(),t=null)};return new n.TPromise(function(n,r){t=i.TokenizationRegistry.onDidChange(function(t){t.changedLanguages.indexOf(e)>=0&&(o(),n(void 0))})},o)},e.colorize=function(e,t,u,d){s.startsWithUTF8BOM(t)&&(t=t.substr(1));var c=t.split(/\r\n|\r|\n/),h=e.getModeId(u);void 0===(d=d||{}).tabSize&&(d.tabSize=4),e.getOrCreateMode(h);var p=i.TokenizationRegistry.get(h);return p?n.TPromise.as(l(c,d.tabSize,p)):n.TPromise.any([this._tokenizationSupportChangedPromise(h),n.TPromise.timeout(500)]).then(function(e){ +var t=i.TokenizationRegistry.get(h);return t?l(c,d.tabSize,t):function(e,t){var n=[],i=new Uint32Array(2);i[0]=0,i[1]=16793600;for(var s=0,l=e.length;s")}return n.join("")}(c,d.tabSize)})},e.colorizeLine=function(e,t,n,i,r){void 0===r&&(r=4);var s=a.ViewLineRenderingData.isBasicASCII(e,t),l=a.ViewLineRenderingData.containsRTL(e,s,n);return o.renderViewLine2(new o.RenderLineInput(!1,e,!1,s,l,0,i,[],r,0,-1,"none",!1,!1)).html},e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var i=e.getLineContent(t);e.forceTokenization(t);var o=e.getLineTokens(t).inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,n)},e}();t.Colorizer=u}),define(t[400],n([1,0,17,190,95,60]),function(e,t,n,i,o,r){"use strict" +;Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new a(e,t);var n=a.getStackElementId(e);n.length>0&&(n+="|"),n+=t;var i=this._entries[n];return i||(i=new a(e,t),this._entries[n]=i,i)},e._INSTANCE=new e(5),e}(),a=function(){function e(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return e.getStackElementId=function(e){for(var t="";null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t},e._equals=function(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t},e.prototype.equals=function(t){return e._equals(this,t)},e.prototype.push=function(e){return s.create(this,e)},e.prototype.pop=function(){return this.parent},e.prototype.popall=function(){ +for(var e=this;e.parent;)e=e.parent;return e},e.prototype.switchTo=function(e){return s.create(this.parent,e)},e}(),l=function(){function e(e,t){this.modeId=e,this.state=t}return e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},e.prototype.clone=function(){return this.state.clone()===this.state?this:new e(this.modeId,this.state)},e}(),u=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==t)return new d(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new d(e,t);var n=a.getStackElementId(e),i=this._entries[n];return i||(i=new d(e,null),this._entries[n]=i,i)},e._INSTANCE=new e(5),e}(),d=function(){function e(e,t){this.stack=e,this.embeddedModeData=t}return e.prototype.clone=function(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:u.create(this.stack,this.embeddedModeData)}, +e.prototype.equals=function(t){return t instanceof e&&(!!this.stack.equals(t.stack)&&(null===this.embeddedModeData&&null===t.embeddedModeData||null!==this.embeddedModeData&&null!==t.embeddedModeData&&this.embeddedModeData.equals(t.embeddedModeData)))},e}(),c=Object.hasOwnProperty,h=function(){function e(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return e.prototype.enterMode=function(e,t){this._language=t},e.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new o.Token(e,t,this._language)))},e.prototype.nestedModeTokenize=function(e,t,i){var o=t.modeId,r=t.state,s=n.TokenizationRegistry.get(o);if(!s)return this.enterMode(i,o),this.emit(i,""),r;var a=s.tokenize(e,r,i);return this._tokens=this._tokens.concat(a.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,a.endState},e.prototype.finalize=function(e){ +return new o.TokenizationResult(this._tokens,e)},e}(),p=function(){function e(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return e.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},e.prototype.emit=function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))},e._merge=function(e,t,n){var i=null!==e?e.length:0,o=t.length,r=null!==n?n.length:0;if(0===i&&0===o&&0===r)return new Uint32Array(0);if(0===i&&0===o)return n;if(0===o&&0===r)return e;var s=new Uint32Array(i+o+r);null!==e&&s.set(e);for(var a=0;a0&&i.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(o);return this._myTokenize(a,t,n+o,i)},e.prototype._myTokenize=function(e,t,n,o){o.enterMode(n,this._modeId);for(var r=e.length,s=t.embeddedModeData,a=t.stack,l=0,d=null,h=null,p=null,f=null;l=r)break;var E=this._lexer.tokenizer[_];E||(E=i.findRules(this._lexer,_))||i.throwError(this._lexer,"tokenizer state is not defined: "+_);F=e.substr(l);for(var L in E)if(c.call(E,L)){var x=E[L];if((0===l||!x.matchOnlyAtLineStart)&&(y=F.match(x.regex))){C=y[0],b=x.action;break}}}for(y||(y=[""],C=""),b||(l=this._lexer.maxStack?i.throwError(this._lexer,"maximum tokenizer stack size reached: ["+a.state+","+a.parent.state+",...]"):a=a.push(_);else if("@pop"===b.next)a.depth<=1?i.throwError(this._lexer,"trying to pop an empty stack in rule: "+S.name):a=a.pop();else if("@popall"===b.next)a=a.popall();else{var I=i.substituteMatches(this._lexer,b.next,C,y,_);"@"===I[0]&&(I=I.substr(1)),i.findRules(this._lexer,I)?a=a.push(I):i.throwError(this._lexer,"trying to set a next state '"+I+"' that is undefined in rule: "+S.name)}b.log&&"string"==typeof b.log&&i.log(this._lexer,this._lexer.languageId+": "+i.substituteMatches(this._lexer,b.log,C,y,_))}if(null===N&&i.throwError(this._lexer,"lexer rule has no well-defined action in rule: "+S.name),Array.isArray(N)){d&&d.length>0&&i.throwError(this._lexer,"groups cannot be nested: "+S.name), +y.length!==N.length+1&&i.throwError(this._lexer,"matched number of groups does not match the number of actions in rule: "+S.name);for(var M=0,D=1;D=0){for(var i=[],r=0,a=this._placeholderGroups[this._placeholderGroupsIdx];r0&&this._editor.executeEdits("snippet.placeholderTransform",i)}return!0===t&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1), +this._editor.getModel().changeDecorations(function(t){for(var i=new Set,o=[],r=0,a=n._placeholderGroups[n._placeholderGroupsIdx];r0},enumerable:!0,configurable:!0}),e.prototype.computePossibleSelections=function(){for(var e=new Map,t=0,n=this._placeholderGroups;t ")+'"'},e.prototype.insert=function(){var t=this,n=this._editor.getModel(),i=e.createEditsAndSnippets(this._editor,this._template,this._overwriteBefore,this._overwriteAfter,!1),o=i.edits,r=i.snippets;this._snippets=r;var a=n.pushEditOperations(this._editor.getSelections(),o,function(e){ +return t._snippets[0].hasPlaceholder?t._move(!0):e.map(function(e){return s.Selection.fromPositions(e.range.getEndPosition())})});this._editor.setSelections(a),this._editor.revealRange(a[0])},e.prototype.merge=function(t,n,i){var o=this;void 0===n&&(n=0),void 0===i&&(i=0),this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,t]);var r=e.createEditsAndSnippets(this._editor,t,n,i,!0),a=r.edits,l=r.snippets;this._editor.setSelections(this._editor.getModel().pushEditOperations(this._editor.getSelections(),a,function(e){for(var t=0,n=o._snippets;t0},e}();t.SnippetSession=g}),define(t[34],n([1,0,2,33,15,166]),function(e,t,n,i,o,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ICommandService=o.createDecorator("commandService"),t.CommandsRegistry=new(function(){function e(){this._commands=new Map}return e.prototype.registerCommand=function(e,t){var o=this;if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command") +;return this.registerCommand({id:e,handler:t})}if(e.description){for(var s=[],a=0,l=e.description.args;a=0){t=e.split("!=");return new d(t[0].trim(),this._deserializeValue(t[1]))}if(e.indexOf("==")>=0){t=e.split("==") +;return new u(t[0].trim(),this._deserializeValue(t[1]))}if(e.indexOf("=~")>=0){var t=e.split("=~");return new h(t[0].trim(),this._deserializeRegexValue(t[1]))}return/^\!\s*/.test(e)?new c(e.substr(1).trim()):new l(e)},e._deserializeValue=function(e){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var t=/^'([^']*)'$/.exec(e);return t?t[1].trim():e},e._deserializeRegexValue=function(e){if(i.isFalsyOrWhitespace(e))return console.warn("missing regexp-value for =~-expression"),null;var t=e.indexOf("/"),n=e.lastIndexOf("/");if(t===n||t<0)return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null;var o=e.slice(t+1,n),r="i"===e[n+1]?"i":"";try{return new RegExp(o,r)}catch(t){return console.warn("bad regexp-value '"+e+"', parse error: "+t),null}},e}();t.ContextKeyExpr=a;var l=function(){function e(e){this.key=e}return e.prototype.getType=function(){return s.Defined},e.prototype.cmp=function(e){return this.keye.key?1:0},e.prototype.equals=function(t){ +return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!!e.getValue(this.key)},e.prototype.normalize=function(){return this},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyDefinedExpr=l;var u=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return s.Equals},e.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new l(this.key):new c(this.key):this},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyEqualsExpr=u;var d=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return s.NotEquals},e.prototype.cmp=function(e){ +return this.keye.key?1:this.valuee.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new c(this.key):new l(this.key):this},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyNotEqualsExpr=d;var c=function(){function e(e){this.key=e}return e.prototype.getType=function(){return s.Not},e.prototype.cmp=function(e){return this.keye.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!e.getValue(this.key)},e.prototype.normalize=function(){return this},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyNotExpr=c;var h=function(){function e(e,t){this.key=e,this.regexp=t}return e.prototype.getType=function(){return s.Regex},e.prototype.cmp=function(e){ +if(this.keye.key)return 1;var t=this.regexp?this.regexp.source:void 0;return te.regexp.source?1:0},e.prototype.equals=function(t){if(t instanceof e){var n=this.regexp?this.regexp.source:void 0;return this.key===t.key&&n===t.regexp.source}return!1},e.prototype.evaluate=function(e){return!!this.regexp&&this.regexp.test(e.getValue(this.key))},e.prototype.normalize=function(){return this},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyRegexExpr=h;var p=function(){function e(t){this.expr=e._normalizeArr(t)}return e.prototype.getType=function(){return s.And},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,i=this.expr.length;n=0&&i.splice(e,1)}}},e.prototype.getMenuItems=function(e){var t=e.id,n=this._menuItems[t]||[];return t===d.CommandPalette.id&&this._appendImplicitItems(n),n},e.prototype._appendImplicitItems=function(e){ +for(var t=new Set,n=0,i=e.filter(function(e){return l(e)});n0&&t.push([s,a])}return t},e._fillInKbExprKeys=function(e,t){if(e)for(var n=0,i=e.keys();ns)return 1 +;var a="string"==typeof e.command.title?e.command.title:e.command.title.value,l="string"==typeof t.command.title?t.command.title:t.command.title.value;return a.localeCompare(l)},e=a([u(2,s.ICommandService),u(3,o.IContextKeyService)],e)}();t.Menu=l}),define(t[77],n([1,0,15]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IContextViewService=n.createDecorator("contextViewService"),t.IContextMenuService=n.createDecorator("contextMenuService")}),define(t[411],n([1,0,15]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDialogService=n.createDecorator("dialogService")}),define(t[412],n([1,0,15]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IEnvironmentService=n.createDecorator("environmentService")}),define(t[106],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){for(var e=[],t=0;t0?o[0].index:n.length +;if(n.length!==c){console.warn("[createInstance] First service dependency of "+e.ctor.name+" at position "+(c+1)+" conflicts with "+n.length+" static arguments");var h=c-n.length;n=h>0?n.concat(new Array(h)):n.slice(0,c)}var p=[e.ctor];return p.push.apply(p,n),p.push.apply(p,r),i.create.apply(null,p)},e.prototype._getOrCreateServiceInstance=function(e){var t=this._services.get(e);return t instanceof s.SyncDescriptor?this._createAndCacheServiceInstance(e,t):t},e.prototype._createAndCacheServiceInstance=function(e,t){function n(){var e=new Error("[createInstance] cyclic dependency between services");throw e.message=i.toString(),e}o.ok(this._services.get(e)instanceof s.SyncDescriptor);for(var i=new r.Graph(function(e){return e.id.toString()}),l=0,u=[{id:e,desc:t}];u.length;){var d=u.pop();i.lookupOrInsertNode(d),l++>100&&n();for(var c=0,h=a._util.getServiceDependencies(d.desc.ctor);c5e3&&i._leaveChordMode():i._leaveChordMode()},500)},t.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},t.prototype._dispatch=function(e,t){var i=this,o=!1,r=this.resolveKeyboardEvent(e) +;if(r.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var s=r.getDispatchParts()[0];if(null===s)return o;var a=this._contextKeyService.getContext(t),l=this._currentChord?this._currentChord.keypress:null,u=r.getLabel(),d=this._getResolver().resolve(a,l,s);return d&&d.enterChord?(o=!0,this._enterChordMode(s,u),o):(this._statusService&&this._currentChord&&(d&&d.commandId||(this._statusService.setStatusMessage(n.localize(1,null,this._currentChord.label,u),1e4),o=!0)),this._leaveChordMode(),d&&d.commandId&&(d.bubble||(o=!0),void 0===d.commandArgs?this._commandService.executeCommand(d.commandId).done(void 0,function(e){return i._notificationService.warn(e)}):this._commandService.executeCommand(d.commandId,d.commandArgs).done(void 0,function(e){return i._notificationService.warn(e)}),this._telemetryService.publicLog("workbenchActionExecuted",{id:d.commandId,from:"keybinding"})),o)},t}(i.Disposable);t.AbstractKeybindingService=a}),define(t[49],n([1,0,15]),function(e,t,n){"use strict" +;Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Default=1]="Default",e[e.User=2]="User"}(t.KeybindingSource||(t.KeybindingSource={})),t.IKeybindingService=n.createDecorator("keybindingService")}),define(t[154],n([1,0,19]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t,n){this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(var i=0,o=t.length;i=0;d--)this._isTargetedForRemoval(e[d],a,l,s,u)&&e.splice(d,1);else n.push(r)}return e.concat(n)},e.prototype._addKeyPress=function(t,n){var i=this._map.get(t);if(void 0===i)return this._map.set(t,[n]),void this._addToLookupMap(n);for(var o=i.length-1;o>=0;o--){var r=i[o];if(r.command!==n.command){var s=null!==r.keypressChordPart,a=null!==n.keypressChordPart;s&&a&&r.keypressChordPart!==n.keypressChordPart||e.whenIsEntirelyIncluded(r.when,n.when)&&this._removeFromLookupMap(r)}}i.push(n),this._addToLookupMap(n)},e.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);void 0===t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}},e.prototype._removeFromLookupMap=function(e){var t=this._lookupMap.get(e.command);if(void 0!==t)for(var n=0,i=t.length;n=0;i--){var o=n[i];if(e.contextMatchesRules(t,o.when))return o}return null}, +e.contextMatchesRules=function(e,t){return!t||t.evaluate(e)},e}();t.KeybindingResolver=i}),define(t[418],n([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t,n,i,o){if(this.resolvedKeybinding=e,e){var r=e.getDispatchParts(),s=r[0],a=r[1];this.keypressFirstPart=s,this.keypressChordPart=a}else this.keypressFirstPart=null,this.keypressChordPart=null;this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=o}}();t.ResolvedKeybindingItem=n}),define(t[419],n([1,0,39,162]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t,n){var i=e.call(this)||this;if(i._os=n,null===t)throw new Error("Invalid USLayoutResolvedKeybinding");return 2===t.type?(i._firstPart=t.firstPart,i._chordPart=t.chordPart):(i._firstPart=t,i._chordPart=null),i}return o(t,e),t.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15: +return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return n.KeyCodeUtils.toString(e)},t.prototype._getUILabelForKeybinding=function(e){return e?e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode):null},t.prototype.getLabel=function(){var e=this._getUILabelForKeybinding(this._firstPart),t=this._getUILabelForKeybinding(this._chordPart);return i.UILabelProvider.toLabel(this._firstPart,e,this._chordPart,t,this._os)},t.prototype._getAriaLabelForKeybinding=function(e){return e?e.isDuplicateModifierCase()?"":n.KeyCodeUtils.toString(e.keyCode):null},t.prototype.getAriaLabel=function(){var e=this._getAriaLabelForKeybinding(this._firstPart),t=this._getAriaLabelForKeybinding(this._chordPart);return i.AriaLabelProvider.toLabel(this._firstPart,e,this._chordPart,t,this._os)},t.prototype.isChord=function(){return!!this._chordPart},t.prototype.getParts=function(){return[this._toResolvedKeybindingPart(this._firstPart),this._toResolvedKeybindingPart(this._chordPart)]}, +t.prototype._toResolvedKeybindingPart=function(e){return e?new n.ResolvedKeybindingPart(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getUILabelForKeybinding(e),this._getAriaLabelForKeybinding(e)):null},t.prototype.getDispatchParts=function(){return[this._firstPart?t.getDispatchStr(this._firstPart):null,this._chordPart?t.getDispatchStr(this._chordPart):null]},t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=n.KeyCodeUtils.toString(e.keyCode)},t}(n.ResolvedKeybinding);t.USLayoutResolvedKeybinding=r}),define(t[117],n([1,0,15]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILogService=n.createDecorator("logService");var i=function(){function e(){}return e.prototype.trace=function(e){for(var t=[],n=1;n0?a:1,l=l>0?l:1,u=u>=a?u:a,d=d>0?d:l,{resource:t,owner:e,code:i,severity:o,message:r,source:s,startLineNumber:a,startColumn:l,endLineNumber:u,endColumn:d,relatedInformation:c,tags:h}},e.prototype.read=function(t){void 0===t&&(t=Object.create(null));var n=t.owner,i=t.resource,o=t.severities,r=t.take;if((!r||r<0)&&(r=-1),n&&i){if(y=a.get(this._byResource,i.toString(),n)){for(var s=[],l=0,u=y;l0&&C===r)break}}return s}return[]}if(n||i){var c=n?this._byOwner[n]:this._byResource[i.toString()];if(!c)return[];s=[];for(var h in c)for(var p=0,f=c[h];p0&&C===r)return s}}return s}s=[] +;for(var g in this._byResource)for(var m in this._byResource[g])for(var v=0,_=this._byResource[g][m];v<_.length;v++){var y=_[v];if(e._accept(y,o)){var C=s.push(y);if(r>0&&C===r)return s}}return s},e._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity},e._debouncer=function(t,n){t||(e._dedupeMap=Object.create(null),t=[]);for(var i=0,o=n;i'+e+""})},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){t._openerService.open(r.default.parse(e)).then(void 0,s.onUnexpectedError)},disposeables:e}}},e.prototype.render=function(e){ +var t,i=[];return t=e?n.renderMarkdown(e,this.getOptions(i)):document.createElement("span"),{element:t,dispose:function(){return h.dispose(i)}}},e=a([u(1,o.IModeService),u(2,d.optional(i.IOpenerService))],e)}();t.MarkdownRenderer=p}),define(t[92],n([1,0,15]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IProgressService=n.createDecorator("progressService")}),define(t[45],n([1,0,33,85]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.data={}}return e.prototype.add=function(e,t){i.ok(n.isString(e)),i.ok(n.isObject(t)),i.ok(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t},e.prototype.as=function(e){return this.data[e]||null},e}();t.Registry=new o}),define(t[124],n([1,0,300,9,45,41,17]),function(e,t,n,i,o,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={ModesRegistry:"editor.modesRegistry"};var a=function(){function e(){ +this._onDidAddLanguages=new i.Emitter,this.onDidAddLanguages=this._onDidAddLanguages.event,this._languages=[]}return e.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidAddLanguages.fire([e])},e.prototype.getLanguages=function(){return this._languages.slice(0)},e}();t.EditorModesRegistry=a,t.ModesRegistry=new a,o.Registry.add(t.Extensions.ModesRegistry,t.ModesRegistry),t.PLAINTEXT_MODE_ID="plaintext",t.PLAINTEXT_LANGUAGE_IDENTIFIER=new s.LanguageIdentifier(t.PLAINTEXT_MODE_ID,1),t.ModesRegistry.registerLanguage({id:t.PLAINTEXT_MODE_ID,extensions:[".txt",".gitignore"],aliases:[n.localize(0,null),"text"],mimetypes:["text/plain"]}),r.LanguageConfigurationRegistry.register(t.PLAINTEXT_LANGUAGE_IDENTIFIER,{brackets:[["(",")"],["[","]"],["{","}"]]})}),define(t[429],n([1,0,45,9]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={JSONContribution:"base.contributions.json"};var o=new(function(){function e(){this._onDidChangeSchema=new i.Emitter, +this.schemasById={}}return e.prototype.registerSchema=function(e,t){this.schemasById[function(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}(e)]=t,this._onDidChangeSchema.fire(e)},e}());n.Registry.add(t.Extensions.JSONContribution,o)}),define(t[82],n([1,0,352,9,45,33,6,429]),function(e,t,n,i,o,r,s,a){"use strict";function l(e){return t.OVERRIDE_PROPERTY_PATTERN.test(e)?n.localize(3,null,e):void 0!==g.getConfigurationProperties()[e]?n.localize(4,null,e):null}Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={Configuration:"base.contributions.configuration"};var u;!function(e){e[e.APPLICATION=1]="APPLICATION",e[e.WINDOW=2]="WINDOW",e[e.RESOURCE=3]="RESOURCE"}(u=t.ConfigurationScope||(t.ConfigurationScope={})),t.allSettings={properties:{},patternProperties:{}},t.applicationSettings={properties:{},patternProperties:{}},t.windowSettings={properties:{},patternProperties:{}},t.resourceSettings={properties:{},patternProperties:{}}, +t.editorConfigurationSchemaId="vscode://schemas/settings/editor";var d=o.Registry.as(a.Extensions.JSONContribution),c=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new i.Emitter,this._onDidRegisterConfiguration=new i.Emitter,this.configurationContributors=[],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),d.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],[],t)},e.prototype.registerConfigurations=function(e,t,n){var i=this;void 0===n&&(n=!0);var o=this.toConfiguration(t);o&&e.push(o);var r=[];e.forEach(function(e){r.push.apply(r,i.validateAndRegisterProperties(e,n)),i.configurationContributors.push(e),i.registerJSONConfiguration(e), +i.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidRegisterConfiguration.fire(r)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.toConfiguration=function(e){for(var i={id:"defaultOverrides",title:n.localize(0,null),properties:{}},o=0,r=e;o.001){C=!1;break}}var L=s.getTimeSinceLastZoomLevelChanged()>2e3;return new l.FontInfo({zoomLevel:s.getZoomLevel(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:C,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:o.width, +spaceWidth:r.width,maxDigitWidth:y},L)},t.INSTANCE=new t,t}(i.Disposable),p=function(e){function t(t,n){void 0===n&&(n=null);var i=e.call(this,t)||this;return i._elementSizeObserver=i._register(new u.ElementSizeObserver(n,function(){return i._onReferenceDomElementSizeChanged()})),i._register(h.INSTANCE.onDidChange(function(){return i._onCSSBasedConfigurationChanged()})),i._validatedOptions.automaticLayout&&i._elementSizeObserver.startObserving(),i._register(s.onDidChangeZoomLevel(function(e){return i._recomputeOptions()})),i._register(s.onDidChangeAccessibilitySupport(function(){return i._recomputeOptions()})),i._recomputeOptions(),i}return o(t,e),t._massageFontFamily=function(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?'"'+e+'"':e},t.applyFontInfoSlow=function(e,n){e.style.fontFamily=t._massageFontFamily(n.fontFamily),e.style.fontWeight=n.fontWeight,e.style.fontSize=n.fontSize+"px",e.style.lineHeight=n.lineHeight+"px",e.style.letterSpacing=n.letterSpacing+"px"},t.applyFontInfo=function(e,n){ +e.setFontFamily(t._massageFontFamily(n.fontFamily)),e.setFontWeight(n.fontWeight),e.setFontSize(n.fontSize),e.setLineHeight(n.lineHeight),e.setLetterSpacing(n.letterSpacing)},t.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},t.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},t.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getExtraEditorClassName=function(){var e="";return s.isIE?e+="ie ":s.isFirefox?e+="ff ":s.isEdge?e+="edge ":s.isSafari&&(e+="safari "),r.isMacintosh&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:s.isWebKit||s.isFirefox,pixelRatio:s.getPixelRatio(),zoomLevel:s.getZoomLevel(),accessibilitySupport:s.getAccessibilitySupport()}}, +t.prototype.readConfiguration=function(e){return h.INSTANCE.readConfiguration(e)},t}(a.CommonEditorConfiguration);t.Configuration=p}),define(t[433],n([1,0,26,113,65,36]),function(e,t,n,i,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){var n=e.call(this,t)||this;return n._visibleLines=new i.VisibleLinesCollection(n),n.domNode=n._visibleLines.domNode,n._dynamicOverlays=[],n._isFocused=!1,n.domNode.setClassName("view-overlays"),n}return o(t,e),t.prototype.shouldRender=function(){if(e.prototype.shouldRender.call(this))return!0;for(var t=0,n=this._dynamicOverlays.length;t'),i.appendASCIIString(o),i.appendASCIIString(""),!0)},e.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},e}();t.ViewOverlayLine=l;var u=function(e){function t(t){var n=e.call(this,t)||this;return n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n.domNode.setHeight(0),n}return o(t,e),t.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth), +e.prototype.onConfigurationChanged.call(this,t)},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},t}(a);t.ContentViewOverlays=u;var d=function(e){function t(t){var n=e.call(this,t)||this;return n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode.setClassName("margin-view-overlays"),n.domNode.setWidth(1),r.Configuration.applyFontInfo(n.domNode,n._context.configuration.editor.fontInfo),n}return o(t,e),t.prototype.onConfigurationChanged=function(t){var n=!1;return t.fontInfo&&(r.Configuration.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),n=!0),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,n=!0),e.prototype.onConfigurationChanged.call(this,t)||n},t.prototype.onScrollChanged=function(t){ +return e.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t);var n=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(n),this.domNode.setWidth(this._contentLeft)},t}(a);t.MarginViewOverlays=d}),define(t[434],n([1,0,26,12,3,47,65,7,6]),function(e,t,n,i,o,r,s,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){return function(e,t,n,i,o,r){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=o,this.textContentClassName=r}}(),d=function(){function e(e){this._context=e,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth),this._isVisible=!0, +this._domNode=n.createFastDomNode(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),s.Configuration.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this.updatePosition(new i.Position(1,1)),this._lastRenderedContent="",this._renderData=null}return e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return this._position},e.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},e.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},e.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(s.Configuration.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo), +this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),e.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0},e.prototype.onCursorPositionChanged=function(e){return this.updatePosition(e),!0},e.prototype._prepareRender=function(e){var t="",n="";if(this._cursorStyle===r.TextEditorCursorStyle.Line||this._cursorStyle===r.TextEditorCursorStyle.LineThin){var i=e.visibleRangeForPosition(this._position);if(!i)return null;var s;if(this._cursorStyle===r.TextEditorCursorStyle.Line){if((s=a.computeScreenAwareSize(this._lineCursorWidth>0?this._lineCursorWidth:2))>2){t=this._context.model.getLineContent(this._position.lineNumber).charAt(this._position.column-1)}}else s=a.computeScreenAwareSize(1);var d=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta +;return new u(d,i.left,s,this._lineHeight,t,n)}var c=e.linesVisibleRangesForRange(new o.Range(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!c||0===c.length||0===c[0].ranges.length)return null;var h=c[0].ranges[0],p=h.width<1?this._typicalHalfwidthCharacterWidth:h.width;if(this._cursorStyle===r.TextEditorCursorStyle.Block){var f=this._context.model.getViewLineData(this._position.lineNumber);t=f.content.charAt(this._position.column-1),l.isHighSurrogate(f.content.charCodeAt(this._position.column-1))&&(t+=f.content.charAt(this._position.column));var g=f.tokens.findTokenIndexAtOffset(this._position.column-1);n=f.tokens.getClassName(g)}var m=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,v=this._lineHeight;return this._cursorStyle!==r.TextEditorCursorStyle.Underline&&this._cursorStyle!==r.TextEditorCursorStyle.UnderlineThin||(m+=this._lineHeight-2,v=2),new u(m,h.left,p,v,t,n)},e.prototype.prepareRender=function(e){ +this._renderData=this._prepareRender(e)},e.prototype.render=function(e){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)},e.prototype.updatePosition=function(e){this._position=e},e}();t.ViewCursor=d}),define(t[435],n([1,0,10,424,6,45,124,17,60,82]),function(e,t,n,i,o,r,s,a,l,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}) +;var d=Object.prototype.hasOwnProperty,c=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=this;this._nextLanguageId=1,this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},this._languageIds=[],this._warnOnOverwrite=t,e&&(this._registerLanguages(s.ModesRegistry.getLanguages()),s.ModesRegistry.onDidAddLanguages(function(e){return n._registerLanguages(e)}))}return e.prototype._registerLanguages=function(e){var t=this;if(0!==e.length){for(var n=0;n0&&((r=e.mimetypes).push.apply(r,t.mimetypes),a=t.mimetypes[0]),a||(a="text/x-"+s,e.mimetypes.push(a)),Array.isArray(t.extensions))for(var l=0,u=t.extensions;l0){var v=t.firstLine;"^"!==v.charAt(0)&&(v="^"+v);try{var _=new RegExp(v);o.regExpLeadsToEndlessLoop(_)||i.registerTextMime({id:s,mime:a,firstline:_},this._warnOnOverwrite)}catch(e){n.onUnexpectedError(e)}}e.aliases.push(s);var y=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(y=0===t.aliases.length?[null]:t.aliases),null!==y)for(var C=0;C0;if(b&&null===y[0]);else{var S=(b?y[0]:null)||s;!b&&e.name||(e.name=S)}t.configuration&&e.configurationFiles.push(t.configuration)},e.prototype.isRegisteredMode=function(e){return!!d.call(this._mimeTypesMap,e)||d.call(this._languages,e)},e.prototype.getModeIdForLanguageNameLowercase=function(e){return d.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},e.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map(function(e){return e.trim() +}).map(function(e){return d.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e}).filter(function(e){return d.call(t._languages,e)}):[]},e.prototype.getLanguageIdentifier=function(e){if(e===l.NULL_MODE_ID||0===e)return l.NULL_LANGUAGE_IDENTIFIER;var t;if("string"==typeof e)t=e;else if(!(t=this._languageIds[e]))return null;return d.call(this._languages,t)?this._languages[t].identifier:null},e.prototype.getModeIdsFromFilenameOrFirstLine=function(e,t){if(!e&&!t)return[];var n=i.guessMimeTypes(e,t);return this.extractModeIds(n.join(","))},e}();t.LanguagesRegistry=c}),define(t[436],n([1,0,10,9,13,528,435]),function(e,t,n,i,o,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e){void 0===e&&(e=!1),this._onDidCreateMode=new i.Emitter,this.onDidCreateMode=this._onDidCreateMode.event,this._instantiatedModes={},this._registry=new s.LanguagesRegistry(!0,e)}return e.prototype._onReady=function(){return o.TPromise.as(!0)},e.prototype.isRegisteredMode=function(e){ +return this._registry.isRegisteredMode(e)},e.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},e.prototype.getModeIdByFilenameOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilenameOrFirstLine(e,t);return n.length>0?n[0]:null},e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return t.length>0?t[0]:null},e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},e.prototype.getMode=function(e){for(var t=this._registry.extractModeIds(e),i=!1,o=0;ot.command?1:e.weight2-t.weight2}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){this._keybindings=[],this._keybindingsSorted=!0}return e.bindToCurrentPlatform=function(e){if(1===i.OS){if(e&&e.win)return e.win}else if(2===i.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e},e.prototype.registerKeybindingRule=function(t,o){void 0===o&&(o=0);var r=e.bindToCurrentPlatform(t);if(r&&r.primary&&this._registerDefaultKeybinding(n.createKeybinding(r.primary,i.OS),t.id,t.weight,0,t.when,o),r&&Array.isArray(r.secondary))for(var s=0,a=r.secondary.length;s=21&&e<=30||(e>=31&&e<=56||(80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e))},e.prototype._assertNoCtrlAlt=function(t,n){t.ctrlKey&&t.altKey&&!t.metaKey&&e._mightProduceChar(t.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",t," for ",n)},e.prototype._registerDefaultKeybinding=function(e,t,n,o,r,s){0===s&&1===i.OS&&(2===e.type?this._assertNoCtrlAlt(e.firstPart,t):this._assertNoCtrlAlt(e,t)),this._keybindings.push({keybinding:e,command:t,commandArgs:void 0,when:r,weight1:n,weight2:o}),this._keybindingsSorted=!1},e.prototype.getDefaultKeybindings=function(){return this._keybindingsSorted||(this._keybindings.sort(s),this._keybindingsSorted=!0),this._keybindings.slice(0)},e}();t.KeybindingsRegistry=new a,t.Extensions={EditorModes:"platform.keybindingsRegistry"}, +r.Registry.add(t.Extensions.EditorModes,t.KeybindingsRegistry)}),define(t[72],n([1,0,15]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ID="storageService",t.IStorageService=n.createDecorator(t.ID);!function(e){e[e.GLOBAL=0]="GLOBAL",e[e.WORKSPACE=1]="WORKSPACE"}(t.StorageScope||(t.StorageScope={})),t.NullStorageService={_serviceBrand:void 0,store:function(){},remove:function(){},get:function(e,t,n){return n},getInteger:function(e,t,n){return n},getBoolean:function(e,t,n){return n}}}),define(t[442],n([1,0,70,72,14]),function(e,t,n,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){}return e.prototype.select=function(e,t,n){if(0===n.length)return 0;for(var i=n[0].score,o=1;os&&d.type===l.type&&d.insertText===l.insertText&&(s=d.touch,r=a)}return-1===r?e.prototype.select.call(this,t,n,i):r},t.prototype.toJSON=function(){var e=[];return this._cache.forEach(function(t,n){ +e.push([n,t])}),e},t.prototype.fromJSON=function(e){this._cache.clear();for(var t=0,n=e;t0){this._seq=e[0][1].touch+1;for(var t=0,n=e;t1)for(var r=n.modelState?n.modelState.position:null,s=n.viewState?n.viewState.position:null,a=0,d=o.length;ao&&(i=o);var s=new r.Range(i,1,i,e.context.model.getLineMaxColumn(i)),a=0;if(n.at)switch(n.at){case x.RawAtArgument.Top:a=3;break;case x.RawAtArgument.Center:a=1;break;case x.RawAtArgument.Bottom:a=4}var l=e.context.convertModelRangeToViewRange(s);e.revealRange(!1,l,a,0)},t}(E))),e.SelectAll=d.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:null})||this}return o(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(), +e.setStates(t.source,l.CursorChangeReason.Explicit,[u.CursorMoveCommands.selectAll(e.context,e.getPrimaryCursor())])},t}(E))),e.SetSelection=d.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:null})||this}return o(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,l.CursorChangeReason.Explicit,[a.CursorState.fromModelSelection(t.selection)])},t}(E)))}(N=t.CoreNavigationCommands||(t.CoreNavigationCommands={}));!function(e){e.LineBreakInsert=d.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:h.EditorContextKeys.writable,kbOpts:{weight:w,kbExpr:h.EditorContextKeys.textInputFocus,primary:null,mac:{primary:301}}})||this}return o(t,e),t.prototype.runEditorCommand=function(e,t,n){t.pushUndoStop(),t.executeCommands(this.id,m.TypeOperations.lineBreakInsert(t._getCursorConfiguration(),t.getModel(),t.getSelections()))},t}(d.EditorCommand))), +e.Outdent=d.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:h.EditorContextKeys.writable,kbOpts:{weight:w,kbExpr:f.ContextKeyExpr.and(h.EditorContextKeys.editorTextFocus,h.EditorContextKeys.tabDoesNotMoveFocus),primary:1026}})||this}return o(t,e),t.prototype.runEditorCommand=function(e,t,n){t.pushUndoStop(),t.executeCommands(this.id,m.TypeOperations.outdent(t._getCursorConfiguration(),t.getModel(),t.getSelections())),t.pushUndoStop()},t}(d.EditorCommand))),e.Tab=d.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"tab",precondition:h.EditorContextKeys.writable,kbOpts:{weight:w,kbExpr:f.ContextKeyExpr.and(h.EditorContextKeys.editorTextFocus,h.EditorContextKeys.tabDoesNotMoveFocus),primary:2}})||this}return o(t,e),t.prototype.runEditorCommand=function(e,t,n){t.pushUndoStop(),t.executeCommands(this.id,m.TypeOperations.tab(t._getCursorConfiguration(),t.getModel(),t.getSelections())),t.pushUndoStop()},t}(d.EditorCommand))), +e.DeleteLeft=d.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:h.EditorContextKeys.writable,kbOpts:{weight:w,kbExpr:h.EditorContextKeys.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return o(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors(),o=v.DeleteOperations.deleteLeft(i.getPrevEditOperationType(),t._getCursorConfiguration(),t.getModel(),t.getSelections()),r=o[0],s=o[1];r&&t.pushUndoStop(),t.executeCommands(this.id,s),i.setPrevEditOperationType(2)},t}(d.EditorCommand))),e.DeleteRight=d.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:h.EditorContextKeys.writable,kbOpts:{weight:w,kbExpr:h.EditorContextKeys.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return o(t,e),t.prototype.runEditorCommand=function(e,t,n){ +var i=t._getCursors(),o=v.DeleteOperations.deleteRight(i.getPrevEditOperationType(),t._getCursorConfiguration(),t.getModel(),t.getSelections()),r=o[0],s=o[1];r&&t.pushUndoStop(),t.executeCommands(this.id,s),i.setPrevEditOperationType(3)},t}(d.EditorCommand)))}(t.CoreEditingCommands||(t.CoreEditingCommands={}));var I=function(e){function t(t){var n=e.call(this,t)||this;return n._editorHandler=t.editorHandler,n._inputHandler=t.inputHandler,n}return o(t,e),t.prototype.runCommand=function(e,t){var n=y(e);if(n&&n.hasTextFocus())return this._runEditorHandler(n,t);var i=document.activeElement;if(!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)){var o=e.get(p.ICodeEditorService).getActiveCodeEditor();return o?(o.focus(),this._runEditorHandler(o,t)):void 0}document.execCommand(this._inputHandler)},t.prototype._runEditorHandler=function(e,t){var n=this._editorHandler;"string"==typeof n?e.trigger("keyboard",n,t):((t=t||{}).source="keyboard",n.runEditorCommand(null,e,t))},t}(d.Command),M=function(e){ +function t(t,n){var i=e.call(this,{id:t,precondition:null})||this;return i._handlerId=n,i}return o(t,e),t.prototype.runCommand=function(e,t){var n=y(e);n&&n.trigger("keyboard",this._handlerId,t)},t}(d.Command);C(new I({editorHandler:N.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:h.EditorContextKeys.textInputFocus,kbOpts:{weight:w,kbExpr:null,primary:2079},menubarOpts:{menuId:_.MenuId.MenubarSelectionMenu,group:"1_basic",title:n.localize(0,null),order:1}})),C(new I({editorHandler:S.Undo,inputHandler:"undo",id:S.Undo,precondition:h.EditorContextKeys.writable,kbOpts:{weight:w,kbExpr:h.EditorContextKeys.textInputFocus,primary:2104},menubarOpts:{menuId:_.MenuId.MenubarEditMenu,group:"1_do",title:n.localize(1,null),order:1}})),C(new M("default:"+S.Undo,S.Undo)),C(new I({editorHandler:S.Redo,inputHandler:"redo",id:S.Redo,precondition:h.EditorContextKeys.writable,kbOpts:{weight:w,kbExpr:h.EditorContextKeys.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menubarOpts:{ +menuId:_.MenuId.MenubarEditMenu,group:"1_do",title:n.localize(2,null),order:2}})),C(new M("default:"+S.Redo,S.Redo)),b(S.Type),b(S.ReplacePreviousChar),b(S.CompositionStart),b(S.CompositionEnd),b(S.Paste),b(S.Cut)}),define(t[446],n([1,0,12,133]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,n,i,o){this.configuration=e,this.viewModel=t,this._execCoreEditorCommandFunc=n,this.outgoingEvents=i,this.commandDelegate=o}return e.prototype._execMouseCommand=function(e,t){t.source="mouse",this._execCoreEditorCommandFunc(e,t)},e.prototype.paste=function(e,t,n,i){this.commandDelegate.paste(e,t,n,i)},e.prototype.type=function(e,t){this.commandDelegate.type(e,t)},e.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)},e.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},e.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},e.prototype.cut=function(e){ +this.commandDelegate.cut(e)},e.prototype.setSelection=function(e,t){this._execCoreEditorCommandFunc(i.CoreNavigationCommands.SetSelection,{source:e,selection:t})},e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this.selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this.lastCursorLineSelectDrag(e.position):this.lastCursorLineSelect(e.position):e.inSelectionMode?this.lineSelectDrag(e.position):this.lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this.lastCursorWordSelect(e.position):e.inSelectionMode?this.wordSelectDrag(e.position):this.wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this.columnSelect(e.position,e.mouseColumn):e.inSelectionMode?this.lastCursorMoveToSelect(e.position):this.createCursor(e.position,!1)):e.inSelectionMode?this.moveToSelect(e.position):this.moveTo(e.position) +},e.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this.convertViewToModelPosition(e),viewPosition:e}},e.prototype.moveTo=function(e){this._execMouseCommand(i.CoreNavigationCommands.MoveTo,this._usualArgs(e))},e.prototype.moveToSelect=function(e){this._execMouseCommand(i.CoreNavigationCommands.MoveToSelect,this._usualArgs(e))},e.prototype.columnSelect=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(i.CoreNavigationCommands.ColumnSelect,{position:this.convertViewToModelPosition(e),viewPosition:e,mouseColumn:t})},e.prototype.createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(i.CoreNavigationCommands.CreateCursor,{position:this.convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},e.prototype.lastCursorMoveToSelect=function(e){this._execMouseCommand(i.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(e))},e.prototype.wordSelect=function(e){ +this._execMouseCommand(i.CoreNavigationCommands.WordSelect,this._usualArgs(e))},e.prototype.wordSelectDrag=function(e){this._execMouseCommand(i.CoreNavigationCommands.WordSelectDrag,this._usualArgs(e))},e.prototype.lastCursorWordSelect=function(e){this._execMouseCommand(i.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(e))},e.prototype.lineSelect=function(e){this._execMouseCommand(i.CoreNavigationCommands.LineSelect,this._usualArgs(e))},e.prototype.lineSelectDrag=function(e){this._execMouseCommand(i.CoreNavigationCommands.LineSelectDrag,this._usualArgs(e))},e.prototype.lastCursorLineSelect=function(e){this._execMouseCommand(i.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(e))},e.prototype.lastCursorLineSelectDrag=function(e){this._execMouseCommand(i.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(e))},e.prototype.selectAll=function(){this._execMouseCommand(i.CoreNavigationCommands.SelectAll,{})},e.prototype.convertViewToModelPosition=function(e){ +return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},e.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},e.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},e.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},e.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},e.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},e.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},e.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},e.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},e.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},e}();t.ViewController=o}),define(t[447],n([1,0,304,20,11,236]),function(e,t,n,i,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t,n){var i=e.call(this,n)||this;return i.left=t,i}return o(t,e), +t.prototype.run=function(e,t){for(var n=[],i=t.getSelections(),o=0;ot.getLineMinColumn(o)?i.isLowSurrogate(t.getLineContent(o).charCodeAt(n-2))?n-=2:n-=1:o>1&&(o-=1,n=t.getLineMaxColumn(o)),new s.Position(o,n)},t.prototype.positionRightOf=function(e,t){var n=e.column,o=e.lineNumber;return n0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())},t}(l.EditorAction);l.registerEditorAction(d)}),define(t[449],n([1,0,306,30,18,32,11,165,20,44,367]),function(e,t,n,i,r,s,a,l,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c="9_cutcopypaste",h=r.isNative||document.queryCommandSupported("cut"),p=r.isNative||document.queryCommandSupported("copy"),f=p&&!i.isEdgeOrIE,g=r.isNative||!i.isChrome&&document.queryCommandSupported("paste"),m=function(e){function t(t,n){var i=e.call(this,n)||this;return i.browserCommand=t,i}return o(t,e),t.prototype.runCommand=function(e,t){var n=e.get(s.ICodeEditorService).getFocusedCodeEditor();n&&n.hasTextFocus()?n.trigger("keyboard",this.id,t):document.execCommand(this.browserCommand)},t.prototype.run=function(e,t){t.focus(),document.execCommand(this.browserCommand)},t}(a.EditorAction),v=function(e){function t(){var t={kbExpr:u.EditorContextKeys.textInputFocus,primary:2102,win:{primary:2102, +secondary:[1044]},weight:100};return r.isNative||(t=null),e.call(this,"cut",{id:"editor.action.clipboardCutAction",label:n.localize(0,null),alias:"Cut",precondition:u.EditorContextKeys.writable,kbOpts:t,menuOpts:{group:c,order:1},menubarOpts:{menuId:d.MenuId.MenubarEditMenu,group:"2_ccp",title:n.localize(1,null),order:1}})||this}return o(t,e),t.prototype.run=function(t,n){!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)},t}(m),_=function(e){function t(){var t={kbExpr:u.EditorContextKeys.textInputFocus,primary:2081,win:{primary:2081,secondary:[2067]},weight:100};return r.isNative||(t=null),e.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:n.localize(2,null),alias:"Copy",precondition:null,kbOpts:t,menuOpts:{group:c,order:2},menubarOpts:{menuId:d.MenuId.MenubarEditMenu,group:"2_ccp",title:n.localize(3,null),order:2}})||this}return o(t,e),t.prototype.run=function(t,n){ +!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)},t}(m),y=function(e){function t(){var t={kbExpr:u.EditorContextKeys.textInputFocus,primary:2100,win:{primary:2100,secondary:[1043]},weight:100};return r.isNative||(t=null),e.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:n.localize(4,null),alias:"Paste",precondition:u.EditorContextKeys.writable,kbOpts:t,menuOpts:{group:c,order:3},menubarOpts:{menuId:d.MenuId.MenubarEditMenu,group:"2_ccp",title:n.localize(5,null),order:3}})||this}return o(t,e),t}(m),C=function(e){function t(){return e.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:n.localize(6,null),alias:"Copy With Syntax Highlighting",precondition:null,kbOpts:{kbExpr:u.EditorContextKeys.textInputFocus,primary:null,weight:100}})||this}return o(t,e),t.prototype.run=function(t,n){ +!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||(l.CopyOptions.forceCopyWithSyntaxHighlighting=!0,e.prototype.run.call(this,t,n),l.CopyOptions.forceCopyWithSyntaxHighlighting=!1)},t}(m);h&&a.registerEditorAction(v),p&&a.registerEditorAction(_),g&&a.registerEditorAction(y),f&&a.registerEditorAction(C)}),define(t[450],n([1,0,25,14,40,10,31,11,3,17,48,137]),function(e,t,n,i,o,r,s,a,l,u,d,c){"use strict";function h(e,t,s,a){void 0===a&&(a=o.CancellationToken.None);var l={only:s&&s.filter&&s.filter.kind?s.filter.kind.value:void 0,trigger:s&&"manual"===s.type?u.CodeActionTrigger.Manual:u.CodeActionTrigger.Automatic},d=u.CodeActionProviderRegistry.all(e).map(function(n){return i.asWinJsPromise(function(i){return n.provideCodeActions(e,t,l,i)}).then(function(e){return Array.isArray(e)?e.filter(function(e){return function(e,t){if(!t)return!1;if(e&&e.kind&&(!t.kind||!e.kind.contains(t.kind)))return!1;if(t.kind&&c.CodeActionKind.Source.contains(t.kind)&&(!e||!e.includeSourceActions))return!1 +;return!0}(s&&s.filter,e)}):[]},function(e){if(r.isPromiseCanceledError(e))throw e;return r.onUnexpectedExternalError(e),[]})});return Promise.all(d).then(n.flatten).then(function(e){return n.mergeSort(e,p)})}function p(e,t){var i=!n.isFalsyOrEmpty(e.diagnostics),o=!n.isFalsyOrEmpty(t.diagnostics);return i?o?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:o?1:0}Object.defineProperty(t,"__esModule",{value:!0}),t.getCodeActions=h,a.registerLanguageCommand("_executeCodeActionProvider",function(e,t){var n=t.resource,i=t.range;if(!(n instanceof s.default&&l.Range.isIRange(i)))throw r.illegalArgument();var o=e.get(d.IModelService).getModel(n);if(!o)throw r.illegalArgument();return h(o,o.validateRange(i),{type:"manual",filter:{includeSourceActions:!0}})})}),define(t[451],n([1,0,14,9,2,13,3,17,19,450]),function(e,t,n,i,o,r,s,a,l,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_CODE_ACTIONS=new l.RawContextKey("supportedCodeAction","");var d=function(){ +function e(e,t,n,o,r){void 0===o&&(o=250);var s=this;this._editor=e,this._markerService=t,this._signalChange=n,this._progressService=r,this._disposables=[],this._disposables.push(i.debounceEvent(this._markerService.onMarkerChanged,function(e,t){return e?e.concat(t):t},o/2)(function(e){return s._onMarkerChanges(e)}),i.debounceEvent(this._editor.onDidChangeCursorPosition,function(e,t){return t},o)(function(e){return s._onCursorChange()}))}return e.prototype.dispose=function(){this._disposables=o.dispose(this._disposables)},e.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)},e.prototype._onMarkerChanges=function(e){for(var t=this._editor.getModel().uri,n=0,i=e;nt.symbol.range.startLineNumber?1:r.indexOf(e.provider)r.indexOf(t.provider)?1:e.symbol.range.startColumnt.symbol.range.startColumn?1:0})})}Object.defineProperty(t,"__esModule",{value:!0}),t.getCodeLensData=u,r.registerLanguageCommand("_executeCodeLensProvider",function(e,t){var i=t.resource,r=t.itemResolveCount;if(!(i instanceof o.default))throw n.illegalArgument();var s=e.get(a.IModelService).getModel(i);if(!s)throw n.illegalArgument();var d=[];return u(s,l.CancellationToken.None).then(function(e){for(var t=[],n=0,i=e;n0&&t.push(Promise.resolve(o.provider.resolveCodeLens(s,o.symbol,l.CancellationToken.None)).then(function(e){return d.push(e)}))}return Promise.all(t)}).then(function(){return d})})}),define(t[172],n([1,0,31,13,17,14,11,3,10,48]),function(e,t,n,i,o,r,s,a,l,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getColors=function(e,t){var n=[],i=o.ColorProviderRegistry.ordered(e).reverse().map(function(i){return Promise.resolve(i.provideDocumentColors(e,t)).then(function(e){if(Array.isArray(e))for(var t=0,o=e;t0&&s._contextViewService.hideContextView()})),this._toDispose.push(this._editor.onKeyDown(function(e){58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),s.showContextMenu())}))}return e.get=function(t){return t.getContribution(e.ID)},e.prototype._onContextMenu=function(e){if(!this._editor.getConfiguration().contribInfo.contextmenu)return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(e.target.type!==m.MouseTargetType.OVERLAY_WIDGET&&(e.event.preventDefault(), +e.target.type===m.MouseTargetType.CONTENT_TEXT||e.target.type===m.MouseTargetType.CONTENT_EMPTY||e.target.type===m.MouseTargetType.TEXTAREA)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);var t;e.target.type!==m.MouseTargetType.TEXTAREA&&(t={x:e.event.posx,y:e.event.posy+1}),this.showContextMenu(t)}},e.prototype.showContextMenu=function(e){if(this._editor.getConfiguration().contribInfo.contextmenu)if(this._contextMenuService){var t=this._getMenuActions();t.length>0&&this._doShowContextMenu(t,e)}else this._editor.focus()},e.prototype._getMenuActions=function(){var e=[],t=this._menuService.createMenu(p.MenuId.EditorContext,this._contextKeyService),n=t.getActions({arg:this._editor.getModel().uri});t.dispose();for(var i=0,o=n;i0&&this._contextViewService.hideContextView(),this._toDispose=i.dispose(this._toDispose)},e.ID="editor.contrib.contextmenu",e=a([u(1,d.IContextMenuService),u(2,d.IContextViewService),u(3,h.IContextKeyService),u(4,c.IKeybindingService),u(5,p.IMenuService)],e)}();t.ContextMenuController=v;var _=function(e){function t(){return e.call(this,{id:"editor.action.showContextMenu",label:n.localize(0,null),alias:"Show Editor Context Menu",precondition:null,kbOpts:{kbExpr:f.EditorContextKeys.textInputFocus,primary:1092,weight:100}})||this}return o(t,e),t.prototype.run=function(e,t){v.get(t).showContextMenu()},t}(g.EditorAction);g.registerEditorContribution(v),g.registerEditorAction(_)}),define(t[457],n([1,0,310,11,2,20]),function(e,t,n,i,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e){this.selections=e} +return e.prototype.equals=function(e){var t=this.selections.length;if(t!==e.selections.length)return!1;for(var n=0;n50&&n._undoStack.shift()),n._prevState=n._readState()})),n}return o(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype._readState=function(){return this._editor.getModel()?new a(this._editor.getSelections()):null},t.prototype.getId=function(){return t.ID},t.prototype.cursorUndo=function(){for(var e=new a(this._editor.getSelections());this._undoStack.length>0;){ +var t=this._undoStack.pop();if(!t.equals(e))return this._isCursorUndo=!0,this._editor.setSelections(t.selections),this._editor.revealRangeInCenterIfOutsideViewport(t.selections[0],0),void(this._isCursorUndo=!1)}},t.ID="editor.contrib.cursorUndoController",t}(r.Disposable);t.CursorUndoController=l;var u=function(e){function t(){return e.call(this,{id:"cursorUndo",label:n.localize(0,null),alias:"Soft Undo",precondition:null,kbOpts:{kbExpr:s.EditorContextKeys.textInputFocus,primary:2099,weight:100}})||this}return o(t,e),t.prototype.run=function(e,t,n){l.get(t).cursorUndo()},t}(i.EditorAction);t.CursorUndo=u,i.registerEditorContribution(l),i.registerEditorAction(u)}),define(t[458],n([1,0,2,18,23,11,12,3,21,242,29,372]),function(e,t,n,i,o,r,s,a,l,u,d){"use strict";function c(e){return i.isMacintosh?e.altKey:e.ctrlKey}Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function e(e){var t=this;this._editor=e,this._toUnhook=[],this._toUnhook.push(this._editor.onMouseDown(function(e){ +return t._onEditorMouseDown(e)})),this._toUnhook.push(this._editor.onMouseUp(function(e){return t._onEditorMouseUp(e)})),this._toUnhook.push(this._editor.onMouseDrag(function(e){return t._onEditorMouseDrag(e)})),this._toUnhook.push(this._editor.onMouseDrop(function(e){return t._onEditorMouseDrop(e)})),this._toUnhook.push(this._editor.onKeyDown(function(e){return t.onEditorKeyDown(e)})),this._toUnhook.push(this._editor.onKeyUp(function(e){return t.onEditorKeyUp(e)})),this._dndDecorationIds=[],this._mouseDown=!1,this._modiferPressed=!1,this._dragSelection=null}return e.prototype.onEditorKeyDown=function(e){this._editor.getConfiguration().dragAndDrop&&(c(e)&&(this._modiferPressed=!0),this._mouseDown&&c(e)&&this._editor.updateOptions({mouseStyle:"copy"}))},e.prototype.onEditorKeyUp=function(t){this._editor.getConfiguration().dragAndDrop&&(c(t)&&(this._modiferPressed=!1),this._mouseDown&&t.keyCode===e.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}, +e.prototype._onEditorMouseDown=function(e){this._mouseDown=!0},e.prototype._onEditorMouseUp=function(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})},e.prototype._onEditorMouseDrag=function(e){var t=e.target;if(null===this._dragSelection){var n=this._editor.getSelections().filter(function(e){return e.containsPosition(t.position)});if(1!==n.length)return;this._dragSelection=n[0]}c(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position)},e.prototype._onEditorMouseDrop=function(t){if(t.target&&(this._hitContent(t.target)||this._hitMargin(t.target))&&t.target.position){var n=new s.Position(t.target.position.lineNumber,t.target.position.column);if(null===this._dragSelection)if(t.event.shiftKey){var i=this._editor.getSelection(),o=i.startLineNumber,r=i.startColumn;this._editor.setSelections([new l.Selection(o,r,n.lineNumber,n.column)])}else{ +var a=this._editor.getSelections().map(function(e){return e.containsPosition(n)?new l.Selection(n.lineNumber,n.column,n.lineNumber,n.column):e});this._editor.setSelections(a)}else(!this._dragSelection.containsPosition(n)||(c(t.event)||this._modiferPressed)&&(this._dragSelection.getEndPosition().equals(n)||this._dragSelection.getStartPosition().equals(n)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(e.ID,new u.DragAndDropCommand(this._dragSelection,n,c(t.event)||this._modiferPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1},e.prototype.showAt=function(t){var n=[{range:new a.Range(t.lineNumber,t.column,t.lineNumber,t.column),options:e._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,n),this._editor.revealPosition(t,1)},e.prototype._removeDecoration=function(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])}, +e.prototype._hitContent=function(e){return e.type===o.MouseTargetType.CONTENT_TEXT||e.type===o.MouseTargetType.CONTENT_EMPTY},e.prototype._hitMargin=function(e){return e.type===o.MouseTargetType.GUTTER_GLYPH_MARGIN||e.type===o.MouseTargetType.GUTTER_LINE_NUMBERS||e.type===o.MouseTargetType.GUTTER_LINE_DECORATIONS},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modiferPressed=!1,this._toUnhook=n.dispose(this._toUnhook)},e.ID="editor.contrib.dragAndDrop",e.TRIGGER_KEY_VALUE=i.isMacintosh?6:5,e._DECORATION_OPTIONS=d.ModelDecorationOptions.register({className:"dnd-target"}),e}();t.DragAndDropController=h,r.registerEditorContribution(h)}),define(t[459],n([1,0,313,33,6,14,39,2,13,11,23,247,394,20,248,41,395,17,168,250,10,375]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g,m,v,_,y,C,b){"use strict";function S(e){if(!i.isUndefined(e)){if(!i.isObject(e))return!1;var t=e +;if(!i.isUndefined(t.levels)&&!i.isNumber(t.levels))return!1;if(!i.isUndefined(t.direction)&&!i.isString(t.direction))return!1;if(!(i.isUndefined(t.selectionLines)||i.isArray(t.selectionLines)&&t.selectionLines.every(i.isNumber)))return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.ID="editor.contrib.folding";var w=function(){function e(e){var t=this;this.editor=e,this._isEnabled=this.editor.getConfiguration().contribInfo.folding,this._autoHideFoldingControls="mouseover"===this.editor.getConfiguration().contribInfo.showFoldingControls,this._useFoldingProviders="indentation"!==this.editor.getConfiguration().contribInfo.foldingStrategy,this.globalToDispose=[],this.localToDispose=[],this.foldingDecorationProvider=new p.FoldingDecorationProvider(e),this.foldingDecorationProvider.autoHideFoldingControls=this._autoHideFoldingControls,this.globalToDispose.push(this.editor.onDidChangeModel(function(){return t.onModelChanged()})), +this.globalToDispose.push(_.FoldingRangeProviderRegistry.onDidChange(function(){return t.onFoldingStrategyChanged()})),this.globalToDispose.push(this.editor.onDidChangeConfiguration(function(e){if(e.contribInfo){var n=t._isEnabled;t._isEnabled=t.editor.getConfiguration().contribInfo.folding,n!==t._isEnabled&&t.onModelChanged();var i=t._autoHideFoldingControls;t._autoHideFoldingControls="mouseover"===t.editor.getConfiguration().contribInfo.showFoldingControls,i!==t._autoHideFoldingControls&&(t.foldingDecorationProvider.autoHideFoldingControls=t._autoHideFoldingControls,t.onModelContentChanged());var o=t._useFoldingProviders;t._useFoldingProviders="indentation"!==t.editor.getConfiguration().contribInfo.foldingStrategy,o!==t._useFoldingProviders&&t.onFoldingStrategyChanged()}})),this.globalToDispose.push({dispose:function(){return l.dispose(t.localToDispose)}}),this.onModelChanged()}return e.get=function(e){return e.getContribution(t.ID)},e.prototype.getId=function(){return t.ID},e.prototype.dispose=function(){ +this.globalToDispose=l.dispose(this.globalToDispose)},e.prototype.saveViewState=function(){var e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){var t=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n}}},e.prototype.restoreViewState=function(e){var t=this.editor.getModel();t&&this._isEnabled&&!t.isTooLargeForTokenization()&&e&&e.collapsedRegions&&e.lineCount===t.getLineCount()&&(e.provider!==y.ID_SYNTAX_PROVIDER&&e.provider!==C.ID_INIT_PROVIDER||(this.foldingStateMemento=e),this.hiddenRangeModel.applyMemento(e.collapsedRegions)&&this.getFoldingModel().then(function(t){t&&t.applyMemento(e.collapsedRegions)}).done(void 0,b.onUnexpectedError))},e.prototype.onModelChanged=function(){var e=this;this.localToDispose=l.dispose(this.localToDispose);var t=this.editor.getModel() +;this._isEnabled&&t&&!t.isTooLargeForTokenization()&&(this.foldingModel=new h.FoldingModel(t,this.foldingDecorationProvider),this.localToDispose.push(this.foldingModel),this.hiddenRangeModel=new g.HiddenRangeModel(this.foldingModel),this.localToDispose.push(this.hiddenRangeModel),this.localToDispose.push(this.hiddenRangeModel.onDidChange(function(t){return e.onHiddenRangesChanges(t)})),this.updateScheduler=new s.Delayer(200),this.cursorChangedScheduler=new s.RunOnceScheduler(function(){return e.revealCursor()},200),this.localToDispose.push(this.cursorChangedScheduler),this.localToDispose.push(this.editor.onDidChangeModelLanguageConfiguration(function(t){return e.onModelContentChanged()})),this.localToDispose.push(this.editor.onDidChangeModelContent(function(t){return e.onModelContentChanged()})),this.localToDispose.push(this.editor.onDidChangeCursorPosition(function(t){return e.onCursorPositionChanged()})),this.localToDispose.push(this.editor.onMouseDown(function(t){return e.onEditorMouseDown(t)})), +this.localToDispose.push(this.editor.onMouseUp(function(t){return e.onEditorMouseUp(t)})),this.localToDispose.push({dispose:function(){e.foldingRegionPromise&&(e.foldingRegionPromise.cancel(),e.foldingRegionPromise=null),e.updateScheduler.cancel(),e.updateScheduler=null,e.foldingModel=null,e.foldingModelPromise=null,e.hiddenRangeModel=null,e.cursorChangedScheduler=null,e.foldingStateMemento=null,e.rangeProvider&&e.rangeProvider.dispose(),e.rangeProvider=null}}),this.onModelContentChanged())},e.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},e.prototype.getRangeProvider=function(e){var t=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new v.IndentRangeProvider(e),this._useFoldingProviders){var n=_.FoldingRangeProviderRegistry.ordered(this.foldingModel.textModel) +;if(0===n.length&&this.foldingStateMemento)return this.rangeProvider=new C.InitializingRangeProvider(e,this.foldingStateMemento.collapsedRegions,function(){t.foldingStateMemento=null,t.onFoldingStrategyChanged()},3e4),this.rangeProvider;n.length>0&&(this.rangeProvider=new y.SyntaxRangeProvider(e,n))}return this.foldingStateMemento=null,this.rangeProvider},e.prototype.getFoldingModel=function(){return this.foldingModelPromise},e.prototype.onModelContentChanged=function(){var e=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(function(){if(!e.foldingModel)return null;var t=e.foldingRegionPromise=s.createCancelablePromise(function(t){return e.getRangeProvider(e.foldingModel.textModel).compute(t)});return u.TPromise.wrap(t.then(function(n){if(n&&t===e.foldingRegionPromise){var i=e.editor.getSelections(),o=i?i.map(function(e){return e.startLineNumber}):[];e.foldingModel.update(n,o)} +return e.foldingModel}))}))},e.prototype.onHiddenRangesChanges=function(e){if(e.length){var t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e)},e.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},e.prototype.revealCursor=function(){var e=this;this.getFoldingModel().then(function(t){if(t){var n=e.editor.getSelections();if(n&&n.length>0){for(var i=[],o=function(n){var o=n.selectionStartLineNumber;e.hiddenRangeModel.isHidden(o)&&i.push.apply(i,t.getAllRegionsAtLine(o,function(e){return e.isCollapsed&&o>e.startLineNumber}))},r=0,s=n;r1)){var n=this.editor.getModel(),o=this.editor.getPosition(),r=!1,s=this.editor.onDidChangeModelContent(function(e){if(e.isFlush)return r=!0,void s.dispose();for(var t=0,n=e.changes.length;t1)){var n=this.editor.getModel(),o=n.getOptions(),r=o.tabSize,s=o.insertSpaces,a=new b.EditorState(this.editor,5) +;p.getDocumentRangeFormattingEdits(n,e,{tabSize:r,insertSpaces:s}).then(function(e){return t.workerService.computeMoreMinimalEdits(n.uri,e)}).then(function(e){a.validate(t.editor)&&!i.isFalsyOrEmpty(e)&&(f.FormattingEdit.execute(t.editor,e),E(e))})}},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this.callOnDispose=s.dispose(this.callOnDispose),this.callOnModel=s.dispose(this.callOnModel)},e.ID="editor.contrib.formatOnPaste",e=a([u(1,v.IEditorWorkerService)],e)}(),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.run=function(e,t){var n=this,o=e.get(v.IEditorWorkerService),r=e.get(w.INotificationService),s=this._getFormattingEdits(t);if(!s)return l.TPromise.as(void 0);var a=new b.EditorState(t,5);return s.then(function(e){return o.computeMoreMinimalEdits(t.getModel().uri,e)}).then(function(e){a.validate(t)&&!i.isFalsyOrEmpty(e)&&(f.FormattingEdit.execute(t,e),E(e),t.focus())},function(e){ +if(!(e instanceof Error&&e.name===p.NoProviderError.Name))throw e;n._notifyNoProviderError(r,t.getModel().getLanguageIdentifier().language)})},t.prototype._notifyNoProviderError=function(e,t){e.info(n.localize(4,null,t))},t}(c.EditorAction);t.AbstractFormatAction=N;var I=function(e){function t(){return e.call(this,{id:"editor.action.formatDocument",label:n.localize(5,null),alias:"Format Document",precondition:S.EditorContextKeys.writable,kbOpts:{kbExpr:S.EditorContextKeys.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},menuOpts:{when:S.EditorContextKeys.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return o(t,e),t.prototype._getFormattingEdits=function(e){var t=e.getModel(),n=t.getOptions(),i=n.tabSize,o=n.insertSpaces;return p.getDocumentFormattingEdits(t,{tabSize:i,insertSpaces:o})},t.prototype._notifyNoProviderError=function(e,t){e.info(n.localize(6,null,t))},t}(N);t.FormatDocumentAction=I;var M=function(e){function t(){return e.call(this,{ +id:"editor.action.formatSelection",label:n.localize(7,null),alias:"Format Code",precondition:d.ContextKeyExpr.and(S.EditorContextKeys.writable,S.EditorContextKeys.hasNonEmptySelection),kbOpts:{kbExpr:S.EditorContextKeys.editorTextFocus,primary:r.KeyChord(2089,2084),weight:100},menuOpts:{when:d.ContextKeyExpr.and(S.EditorContextKeys.hasDocumentSelectionFormattingProvider,S.EditorContextKeys.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return o(t,e),t.prototype._getFormattingEdits=function(e){var t=e.getModel(),n=t.getOptions(),i=n.tabSize,o=n.insertSpaces;return p.getDocumentRangeFormattingEdits(t,e.getSelection(),{tabSize:i,insertSpaces:o})},t.prototype._notifyNoProviderError=function(e,t){e.info(n.localize(8,null,t))},t}(N);t.FormatSelectionAction=M,c.registerEditorContribution(L),c.registerEditorContribution(x),c.registerEditorAction(I),c.registerEditorAction(M),g.CommandsRegistry.registerCommand("editor.action.format",function(e){var t=e.get(m.ICodeEditorService).getFocusedCodeEditor() +;if(t)return(new(function(e){function t(){return e.call(this,{})||this}return o(t,e),t.prototype._getFormattingEdits=function(e){var t=e.getModel(),n=e.getSelection(),i=t.getOptions(),o=i.tabSize,r=i.insertSpaces;return n.isEmpty()?p.getDocumentFormattingEdits(t,{tabSize:o,insertSpaces:r}):p.getDocumentRangeFormattingEdits(t,n,{tabSize:o,insertSpaces:r})},t}(N))).run(e,t)})}),define(t[174],n([1,0,25,14,10,13,11,17]),function(e,t,n,i,o,r,s,a){"use strict";function l(e,t,s,a){var l=s.ordered(e).map(function(n){return i.asWinJsPromise(function(i){return a(n,e,t,i)}).then(void 0,function(e){return o.onUnexpectedExternalError(e),null})});return r.TPromise.join(l).then(n.flatten).then(function(e){return n.coalesce(e)})}function u(e,t){return l(e,t,a.DefinitionProviderRegistry,function(e,t,n,i){return e.provideDefinition(t,n,i)})}function d(e,t){return l(e,t,a.ImplementationProviderRegistry,function(e,t,n,i){return e.provideImplementation(t,n,i)})}function c(e,t){ +return l(e,t,a.TypeDefinitionProviderRegistry,function(e,t,n,i){return e.provideTypeDefinition(t,n,i)})}Object.defineProperty(t,"__esModule",{value:!0}),t.getDefinitionsAtPosition=u,t.getImplementationsAtPosition=d,t.getTypeDefinitionsAtPosition=c,s.registerDefaultLanguageCommand("_executeDefinitionProvider",u),s.registerDefaultLanguageCommand("_executeImplementationProvider",d),s.registerDefaultLanguageCommand("_executeTypeDefinitionProvider",c)}),define(t[464],n([1,0,25,10,11,17,40]),function(e,t,n,i,o,r,s){"use strict";function a(e,t,o){var s=r.HoverProviderRegistry.ordered(e).map(function(n){return Promise.resolve(n.provideHover(e,t,o)).then(function(e){return e&&function(e){var t=void 0!==e.range,n=void 0!==e.contents&&e.contents&&e.contents.length>0;return t&&n}(e)?e:void 0},function(e){i.onUnexpectedExternalError(e)})});return Promise.all(s).then(function(e){return n.coalesce(e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.getHover=a, +o.registerDefaultLanguageCommand("_executeHoverProvider",function(e,t){return a(e,t,s.CancellationToken.None)})}),define(t[465],n([1,0,323,39,260,53,431,20,76,3,21,12,11,258,259,396,139,133,44]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g,m,v,_,y){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var C=function(e){function t(t,n){var i=e.call(this,n)||this;return i.down=t,i}return o(t,e),t.prototype.run=function(e,t){for(var n=[],i=t.getSelections(),o=0;o0){var s=t.startLineNumber-o;r=new c.Selection(s,t.startColumn,s,t.startColumn) +}else r=new c.Selection(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);o+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?n=r:i.push(r)}),n&&i.unshift(n),i},t.prototype._getRangesToDelete=function(e){var t=e.getSelections(),n=e.getModel();return t.sort(d.Range.compareRangesUsingStarts),t=t.map(function(e){if(e.isEmpty()){if(1===e.startColumn){var t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:n.getLineContent(t).length+1;return new d.Range(t,i,e.startLineNumber,1)}return new d.Range(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return e})},t}(P);t.DeleteAllLeftAction=A;var F=function(e){function t(){return e.call(this,{id:"deleteAllRight",label:n.localize(17,null),alias:"Delete All Right",precondition:l.EditorContextKeys.writable,kbOpts:{kbExpr:l.EditorContextKeys.textInputFocus,primary:null,mac:{primary:297,secondary:[2068]},weight:100}})||this}return o(t,e),t.prototype._getEndCursorState=function(e,t){for(var n,i=[],o=0,r=t.length;oe.endLineNumber+1?(o.push(e),t):new c.Selection(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new c.Selection(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)});o.push(r);for(var a=t.getModel(),l=[],u=[],h=i,p=0,f=0,g=o.length;f=1){var N=!0;""===w&&(N=!1),!N||" "!==w.charAt(w.length-1)&&"\t"!==w.charAt(w.length-1)||(N=!1,w=w.replace(/[\s\uFEFF\xA0]+$/g," ")) +;var I=L.substr(x-1);w+=(N?" ":"")+I,_=N?I.length+1:I.length}else _=0}var M=new d.Range(v,1,y,C);if(!M.isEmpty()){var D=void 0;m.isEmpty()?(l.push(s.EditOperation.replace(M,w)),D=new c.Selection(M.startLineNumber-p,w.length-_+1,v-p,w.length-_+1)):m.startLineNumber===m.endLineNumber?(l.push(s.EditOperation.replace(M,w)),D=new c.Selection(m.startLineNumber-p,m.startColumn,m.endLineNumber-p,m.endColumn)):(l.push(s.EditOperation.replace(M,w)),D=new c.Selection(m.startLineNumber-p,m.startColumn,m.startLineNumber-p,w.length-b)),null!==d.Range.intersectRanges(M,i)?h=D:u.push(D)}p+=M.endLineNumber-M.startLineNumber}u.unshift(h),t.pushUndoStop(),t.executeEdits(this.id,l,u),t.pushUndoStop()},t}(p.EditorAction);t.JoinLinesAction=W;var V=function(e){function t(){return e.call(this,{id:"editor.action.transpose",label:n.localize(19,null),alias:"Transpose characters around the cursor",precondition:l.EditorContextKeys.writable})||this}return o(t,e),t.prototype.run=function(e,t){ +for(var n=t.getSelections(),i=t.getModel(),o=[],r=0,s=n.length;r=h){if(l.lineNumber===i.getLineCount())continue;var p=new d.Range(l.lineNumber,Math.max(1,l.column-1),l.lineNumber+1,1),f=i.getValueInRange(p).split("").reverse().join("");o.push(new u.ReplaceCommand(new c.Selection(l.lineNumber,Math.max(1,l.column-1),l.lineNumber+1,1),f))}else{var p=new d.Range(l.lineNumber,Math.max(1,l.column-1),l.lineNumber,l.column+1),f=i.getValueInRange(p).split("").reverse().join("");o.push(new u.ReplaceCommandThatPreservesSelection(p,f,new c.Selection(l.lineNumber,l.column+1,l.lineNumber,l.column+1)))}}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()},t}(p.EditorAction);t.TransposeAction=V;var B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.run=function(e,t){for(var n=t.getSelections(),i=t.getModel(),o=[],r=0,s=n.length;r")}},e.prototype._doInsert=function(e,t,n,i,s){var a=this;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===s&&(s=!0),this._snippetListener=o.dispose(this._snippetListener),i&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t,n):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new r.SnippetSession(this._editor,e,t,n),this._session.insert()),s&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener=[this._editor.onDidChangeModelContent(function(e){return e.isFlush&&a.cancel() +}),this._editor.onDidChangeModel(function(){return a.cancel()}),this._editor.onDidChangeCursorSelection(function(){return a._updateState()})]},e.prototype._updateState=function(){if(this._session){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()}},e.prototype._handleChoice=function(){var e=this._session.choice;if(e){if(this._currentChoice!==e){this._currentChoice=e,this._editor.setSelections(this._editor.getSelections().map(function(e){return d.Selection.fromPositions(e.getStartPosition())}));var t=e.options[0];l.showSimpleSuggestions(this._editor,e.options.map(function(e,n){return{type:"value",label:e.value,insertText:e.value, +sortText:c.repeat("a",n),overwriteAfter:t.value.length}}))}}else this._currentChoice=void 0},e.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},e.prototype.cancel=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),o.dispose(this._snippetListener),o.dispose(this._session),this._session=void 0,this._modelVersionId=-1},e.prototype.prev=function(){this._session.prev(),this._updateState()},e.prototype.next=function(){this._session.next(),this._updateState()},e.prototype.isInSnippet=function(){return this._inSnippet.get()},e.InSnippetMode=new n.RawContextKey("inSnippetMode",!1),e.HasNextTabstop=new n.RawContextKey("hasNextTabstop",!1),e.HasPrevTabstop=new n.RawContextKey("hasPrevTabstop",!1),e=a([u(1,h.ILogService),u(2,n.IContextKeyService)],e)}();t.SnippetController2=p,i.registerEditorContribution(p);var f=i.EditorCommand.bindToContribution(p.get);i.registerEditorCommand(new f({id:"jumpToNextSnippetPlaceholder", +precondition:n.ContextKeyExpr.and(p.InSnippetMode,p.HasNextTabstop),handler:function(e){return e.next()},kbOpts:{weight:130,kbExpr:s.EditorContextKeys.editorTextFocus,primary:2}})),i.registerEditorCommand(new f({id:"jumpToPrevSnippetPlaceholder",precondition:n.ContextKeyExpr.and(p.InSnippetMode,p.HasPrevTabstop),handler:function(e){return e.prev()},kbOpts:{weight:130,kbExpr:s.EditorContextKeys.editorTextFocus,primary:1026}})),i.registerEditorCommand(new f({id:"leaveSnippet",precondition:p.InSnippetMode,handler:function(e){return e.cancel()},kbOpts:{weight:130,kbExpr:s.EditorContextKeys.editorTextFocus,primary:9,secondary:[1033]}})),i.registerEditorCommand(new f({id:"acceptSnippet",precondition:p.InSnippetMode,handler:function(e){return e.finish()}}))}),define(t[471],n([1,0,25,14,10,9,2,70,54,21,17,298,101,135]),function(e,t,n,i,o,r,s,a,l,u,d,c,h,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e,t,n){ +this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=n}return e.shouldAutoTrigger=function(e){var t=e.getModel();if(!t)return!1;var n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);var i=t.getWordAtPosition(n);return!!i&&(i.endColumn===n.column&&!!isNaN(Number(i.word)))},e}();t.LineContext=f;var g=function(){function e(e){var t=this;this._toDispose=[],this._triggerQuickSuggest=new i.TimeoutTimer,this._triggerRefilter=new i.TimeoutTimer,this._onDidCancel=new r.Emitter,this._onDidTrigger=new r.Emitter,this._onDidSuggest=new r.Emitter,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._editor=e,this._state=0,this._requestPromise=null,this._completionModel=null,this._context=null,this._currentSelection=this._editor.getSelection()||new u.Selection(1,1,1,1), +this._toDispose.push(this._editor.onDidChangeModel(function(){t._updateTriggerCharacters(),t.cancel()})),this._toDispose.push(this._editor.onDidChangeModelLanguage(function(){t._updateTriggerCharacters(),t.cancel()})),this._toDispose.push(this._editor.onDidChangeConfiguration(function(){t._updateTriggerCharacters(),t._updateQuickSuggest()})),this._toDispose.push(d.SuggestRegistry.onDidChange(function(){t._updateTriggerCharacters(),t._updateActiveSuggestSession()})),this._toDispose.push(this._editor.onDidChangeCursorSelection(function(e){t._onCursorChange(e)})),this._toDispose.push(this._editor.onDidChangeModelContent(function(e){t._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}return e.prototype.dispose=function(){s.dispose([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerCharacterListener,this._triggerQuickSuggest,this._triggerRefilter]),this._toDispose=s.dispose(this._toDispose),s.dispose(this._completionModel),this.cancel()}, +e.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getConfiguration().contribInfo.quickSuggestionsDelay,(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},e.prototype._updateTriggerCharacters=function(){var e=this;if(s.dispose(this._triggerCharacterListener),!this._editor.getConfiguration().readOnly&&this._editor.getModel()&&this._editor.getConfiguration().contribInfo.suggestOnTriggerCharacters){for(var t=Object.create(null),i=0,o=d.SuggestRegistry.all(this._editor.getModel());ithis._context.column&&this._completionModel.incomplete.size>0&&0!==e.leadingWord.word.length){var t=this._completionModel.incomplete,n=this._completionModel.adopt(t);this.trigger({auto:2===this._state},!0,a.values(t),n)}else{var i=this._completionModel.lineContext,o=!1;if(this._completionModel.lineContext={ +leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(f.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn0)&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,isFrozen:o})}}else this.cancel()},e}();t.SuggestModel=g}),define(t[178],n([1,0,342,11,126]),function(e,t,n,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return e.call(this,{id:t.ID,label:n.localize(0,null),alias:"Toggle Tab Key Moves Focus",precondition:null,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})||this}return o(t,e),t.prototype.run=function(e,t){var n=r.TabFocus.getTabFocusMode() +;r.TabFocus.setTabFocusMode(!n)},t.ID="editor.action.toggleTabFocusMode",t}(i.EditorAction);t.ToggleTabFocusModeAction=s,i.registerEditorAction(s)}),define(t[179],n([1,0,20,21,11,12,3,140,76,89,38,54]),function(e,t,n,i,r,s,a,l,u,d,c,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n._wordNavigationType=t.wordNavigationType,n}return o(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this,o=t.getConfiguration(),r=d.getMapForWordSeparators(o.wordSeparators),a=t.getModel(),l=t.getSelections().map(function(e){var t=new s.Position(e.positionLineNumber,e.positionColumn),n=i._move(r,a,t,i._wordNavigationType);return i._moveTo(e,n,i._inSelectionMode)});if(t._getCursors().setStates("moveWordCommand",h.CursorChangeReason.NotSet,l.map(function(e){return c.CursorState.fromModelSelection(e)})),1===l.length){var u=new s.Position(l[0].positionLineNumber,l[0].positionColumn);t.revealPosition(u,0)}}, +t.prototype._moveTo=function(e,t,n){return n?new i.Selection(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new i.Selection(t.lineNumber,t.column,t.lineNumber,t.column)},t}(r.EditorCommand);t.MoveWordCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._move=function(e,t,n,i){return l.WordOperations.moveWordLeft(e,t,n,i)},t}(p);t.WordLeftCommand=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._move=function(e,t,n,i){return l.WordOperations.moveWordRight(e,t,n,i)},t}(p);t.WordRightCommand=g;var m=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:null,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:2063,mac:{primary:527},weight:100}})||this}return o(t,e),t}(f);t.CursorWordStartLeft=m;var v=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:1, +id:"cursorWordEndLeft",precondition:null})||this}return o(t,e),t}(f);t.CursorWordEndLeft=v;var _=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordLeft",precondition:null})||this}return o(t,e),t}(f);t.CursorWordLeft=_;var y=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:null,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:3087,mac:{primary:1551},weight:100}})||this}return o(t,e),t}(f);t.CursorWordStartLeftSelect=y;var C=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordEndLeftSelect",precondition:null})||this}return o(t,e),t}(f);t.CursorWordEndLeftSelect=C;var b=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordLeftSelect",precondition:null})||this}return o(t,e),t}(f);t.CursorWordLeftSelect=b;var S=function(e){function t(){return e.call(this,{inSelectionMode:!1, +wordNavigationType:0,id:"cursorWordStartRight",precondition:null})||this}return o(t,e),t}(g);t.CursorWordStartRight=S;var w=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordEndRight",precondition:null,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:2065,mac:{primary:529},weight:100}})||this}return o(t,e),t}(g);t.CursorWordEndRight=w;var E=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordRight",precondition:null})||this}return o(t,e),t}(g);t.CursorWordRight=E;var L=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:null})||this}return o(t,e),t}(g);t.CursorWordStartRightSelect=L;var x=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordEndRightSelect",precondition:null,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:3089,mac:{primary:1553},weight:100}})||this} +return o(t,e),t}(g);t.CursorWordEndRightSelect=x;var N=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordRightSelect",precondition:null})||this}return o(t,e),t}(g);t.CursorWordRightSelect=N;var I=function(e){function t(t){var n=e.call(this,t)||this;return n._whitespaceHeuristics=t.whitespaceHeuristics,n._wordNavigationType=t.wordNavigationType,n}return o(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this,o=t.getConfiguration(),r=d.getMapForWordSeparators(o.wordSeparators),s=t.getModel(),a=t.getSelections().map(function(e){var t=i._delete(r,s,e,i._whitespaceHeuristics,i._wordNavigationType);return new u.ReplaceCommand(t,"")});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()},t}(r.EditorCommand);t.DeleteWordCommand=I;var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._delete=function(e,t,n,i,o){var r=l.WordOperations.deleteWordLeft(e,t,n,i,o);return r||new a.Range(1,1,1,1)},t}(I) +;t.DeleteWordLeftCommand=M;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._delete=function(e,t,n,i,o){var r=l.WordOperations.deleteWordRight(e,t,n,i,o);if(r)return r;var s=t.getLineCount(),u=t.getLineMaxColumn(s);return new a.Range(s,u,s,u)},t}(I);t.DeleteWordRightCommand=D;var T=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:n.EditorContextKeys.writable})||this}return o(t,e),t}(M);t.DeleteWordStartLeft=T;var k=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:1,id:"deleteWordEndLeft",precondition:n.EditorContextKeys.writable})||this}return o(t,e),t}(M);t.DeleteWordEndLeft=k;var R=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:n.EditorContextKeys.writable,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:2049,mac:{primary:513},weight:100}})||this} +return o(t,e),t}(M);t.DeleteWordLeft=R;var O=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:n.EditorContextKeys.writable})||this}return o(t,e),t}(D);t.DeleteWordStartRight=O;var P=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:1,id:"deleteWordEndRight",precondition:n.EditorContextKeys.writable})||this}return o(t,e),t}(D);t.DeleteWordEndRight=P;var A=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:1,id:"deleteWordRight",precondition:n.EditorContextKeys.writable,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:2068,mac:{primary:532},weight:100}})||this}return o(t,e),t}(D);t.DeleteWordRight=A,r.registerEditorCommand(new m),r.registerEditorCommand(new v),r.registerEditorCommand(new _),r.registerEditorCommand(new y),r.registerEditorCommand(new C),r.registerEditorCommand(new b),r.registerEditorCommand(new S),r.registerEditorCommand(new w), +r.registerEditorCommand(new E),r.registerEditorCommand(new L),r.registerEditorCommand(new x),r.registerEditorCommand(new N),r.registerEditorCommand(new T),r.registerEditorCommand(new k),r.registerEditorCommand(new R),r.registerEditorCommand(new O),r.registerEditorCommand(new P),r.registerEditorCommand(new A)}),define(t[474],n([1,0,20,11,3,140,179,34]),function(e,t,n,i,r,s,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:n.EditorContextKeys.writable,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:0,mac:{primary:769},weight:100}})||this}return o(t,e),t.prototype._delete=function(e,t,n,i,o){var a=s.WordPartOperations.deleteWordPartLeft(e,t,n,i,o);return a||new r.Range(1,1,1,1)},t}(a.DeleteWordCommand);t.DeleteWordPartLeft=u;var d=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:1,id:"deleteWordPartRight", +precondition:n.EditorContextKeys.writable,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:0,mac:{primary:788},weight:100}})||this}return o(t,e),t.prototype._delete=function(e,t,n,i,o){var a=s.WordPartOperations.deleteWordPartRight(e,t,n,i,o);if(a)return a;var l=t.getLineCount(),u=t.getLineMaxColumn(l);return new r.Range(l,u,l,u)},t}(a.DeleteWordCommand);t.DeleteWordPartRight=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._move=function(e,t,n,i){return s.WordPartOperations.moveWordPartLeft(e,t,n,i)},t}(a.MoveWordCommand);t.WordPartLeftCommand=c;var h=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:null,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:0,mac:{primary:783},weight:100}})||this}return o(t,e),t}(c);t.CursorWordPartLeft=h,l.CommandsRegistry.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var p=function(e){function t(){ +return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:null,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1807},weight:100}})||this}return o(t,e),t}(c);t.CursorWordPartLeftSelect=p,l.CommandsRegistry.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._move=function(e,t,n,i){return s.WordPartOperations.moveWordPartRight(e,t,n,i)},t}(a.MoveWordCommand);t.WordPartRightCommand=f;var g=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordPartRight",precondition:null,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:0,mac:{primary:785},weight:100}})||this}return o(t,e),t}(f);t.CursorWordPartRight=g;var m=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordPartRightSelect",precondition:null,kbOpts:{ +kbExpr:n.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1809},weight:100}})||this}return o(t,e),t}(f);t.CursorWordPartRightSelect=m,i.registerEditorCommand(new u),i.registerEditorCommand(new d),i.registerEditorCommand(new h),i.registerEditorCommand(new p),i.registerEditorCommand(new g),i.registerEditorCommand(new m)}),define(t[475],n([1,0,2,30,7,23,11,404]),function(e,t,n,i,o,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e){var t=this;this.editor=e,this.toDispose=[],i.isIPad&&(this.toDispose.push(e.onDidChangeConfiguration(function(){return t.update()})),this.update())}return e.prototype.update=function(){var e=!!this.widget,t=!this.editor.getConfiguration().readOnly;!e&&t?this.widget=new l(this.editor):e&&!t&&(this.widget.dispose(),this.widget=null)},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this.toDispose=n.dispose(this.toDispose),this.widget&&(this.widget.dispose(),this.widget=null)}, +e.ID="editor.contrib.iPadShowKeyboard",e}();t.IPadShowKeyboard=a;var l=function(){function e(e){var t=this;this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._toDispose=[],this._toDispose.push(o.addDisposableListener(this._domNode,"touchstart",function(e){t.editor.focus()})),this._toDispose.push(o.addDisposableListener(this._domNode,"focus",function(e){t.editor.focus()})),this.editor.addOverlayWidget(this)}return e.prototype.dispose=function(){this.editor.removeOverlayWidget(this),this._toDispose=n.dispose(this._toDispose)},e.prototype.getId=function(){return e.ID},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return{preference:r.OverlayWidgetPositionPreference.BOTTOM_RIGHT_CORNER}},e.ID="editor.contrib.ShowKeyboardWidget",e}();s.registerEditorContribution(a)}),define(t[476],n([1,0,351,11,84]),function(e,t,n,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){ +var t=e.call(this,{id:"editor.action.toggleHighContrast",label:n.localize(0,null),alias:"Toggle High Contrast Theme",precondition:null})||this;return t._originalThemeName=null,t}return o(t,e),t.prototype.run=function(e,t){var n=e.get(r.IStandaloneThemeService);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getTheme().themeName,n.setTheme("hc-black"))},t}(i.EditorAction);i.registerEditorAction(s)}),define(t[477],n([1,0,197,86,117]),function(e,t,n,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,i){this.logService=i,this.contextView=new n.ContextView(e)}return e.prototype.dispose=function(){this.contextView.dispose()},e.prototype.setContainer=function(e){this.logService.trace("ContextViewService#setContainer"),this.contextView.setContainer(e)},e.prototype.showContextView=function(e){this.logService.trace("ContextViewService#showContextView"),this.contextView.show(e)}, +e.prototype.layout=function(){this.contextView.layout()},e.prototype.hideContextView=function(e){this.logService.trace("ContextViewService#hideContextView"),this.contextView.hide(e)},e=a([u(1,i.ITelemetryService),u(2,o.ILogService)],e)}();t.ContextViewService=r}),define(t[478],n([1,0,13]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullTelemetryService=new(function(){function e(){}return e.prototype.publicLog=function(e,t){return n.TPromise.wrap(null)},e.prototype.getTelemetryInfo=function(){return n.TPromise.wrap({instanceId:"someValue.instanceId",sessionId:"someValue.sessionId",machineId:"someValue.machineId"})},e}())}),define(t[479],n([1,0,7,480,61,13,32,50,34,86,15,478]),function(e,t,n,i,o,r,s,l,d,c,h,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e,t,n){void 0===n&&(n=p.NullTelemetryService),this._editorService=e,this._commandService=t,this._telemetryService=n}return e.prototype.open=function(e,t){var s +;this._telemetryService.publicLog("openerService",{scheme:e.scheme});var a=e.scheme,u=e.path,c=e.query,h=e.fragment,p=r.TPromise.wrap(void 0);if(a===o.Schemas.http||a===o.Schemas.https||a===o.Schemas.mailto)n.windowOpenNoOpener(e.toString(!0));else if("command"===a&&d.CommandsRegistry.getCommand(u)){var f=[];try{f=i.parse(c),Array.isArray(f)||(f=[f])}catch(e){}p=(s=this._commandService).executeCommand.apply(s,[u].concat(f))}else{var g=void 0,m=/^L?(\d+)(?:,(\d+))?/.exec(h);if(m&&(g={startLineNumber:parseInt(m[1]),startColumn:m[2]?parseInt(m[2]):1},e=e.with({fragment:""})),!e.scheme)return r.TPromise.as(void 0);e.scheme===o.Schemas.file&&(e=e.with({path:l.normalize(e.path)})),p=this._editorService.openCodeEditor({resource:e,options:{selection:g}},this._editorService.getFocusedCodeEditor(),t&&t.openToSide)}return p},e=a([u(0,s.ICodeEditorService),u(1,d.ICommandService),u(2,h.optional(c.ITelemetryService))],e)}();t.OpenerService=f}),define(t[22],n([1,0,45,27,356]),function(e,t,n,i,o){"use strict" +;function r(e,t,n,i,o){return u.registerColor(e,t,n,i,o)}function s(e,t){return function(n){var i=l(e,n);return i?i.transparent(t):null}}function a(e,t,n,o){return function(r){var s=l(e,r);if(s){var a=l(t,r);return a?s.isDarkerThan(a)?i.Color.getLighterColor(s,a,n).transparent(o):i.Color.getDarkerColor(s,a,n).transparent(o):s.transparent(n*o)}return null}}function l(e,t){return null===e?null:"string"==typeof e?"#"===e[0]?i.Color.fromHex(e):t.getColor(e):e instanceof i.Color?e:"function"==typeof e?e(t):null}Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={ColorContribution:"base.contributions.colors"};var u=new(function(){function e(){this.colorSchema={type:"object",description:o.localize(0,null),properties:{},additionalProperties:!1},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return e.prototype.registerColor=function(e,t,n,i,o){void 0===i&&(i=!1);var r={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:o};this.colorsById[e]=r +;var s={type:"string",description:n,format:"color-hex",default:"#ff0000"};return o&&(s.deprecationMessage=o),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),e},e.prototype.resolveDefaultColor=function(e,t){var n=this.colorsById[e];if(n&&n.defaults){return l(n.defaults[t.type],t)}return null},e.prototype.toString=function(){var e=this;return Object.keys(this.colorsById).sort(function(e,t){var n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)}).map(function(t){return"- `"+t+"`: "+e.colorsById[t].description}).join("\n")},e}());n.Registry.add(t.Extensions.ColorContribution,u),t.registerColor=r,t.foreground=r("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},o.localize(1,null)),t.errorForeground=r("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},o.localize(2,null)),t.focusBorder=r("focusBorder",{dark:i.Color.fromHex("#0E639C").transparent(.6), +light:i.Color.fromHex("#007ACC").transparent(.4),hc:"#F38518"},o.localize(3,null)),t.contrastBorder=r("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},o.localize(4,null)),t.activeContrastBorder=r("contrastActiveBorder",{light:null,dark:null,hc:t.focusBorder},o.localize(5,null)),t.textLinkForeground=r("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},o.localize(6,null)),t.textCodeBlockBackground=r("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:i.Color.black},o.localize(7,null)),t.widgetShadow=r("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},o.localize(8,null)),t.inputBackground=r("input.background",{dark:"#3C3C3C",light:i.Color.white,hc:i.Color.black},o.localize(9,null)),t.inputForeground=r("input.foreground",{dark:t.foreground,light:t.foreground,hc:t.foreground},o.localize(10,null)),t.inputBorder=r("input.border",{dark:null,light:null,hc:t.contrastBorder},o.localize(11,null)),t.inputActiveOptionBorder=r("inputOption.activeBorder",{dark:"#007ACC", +light:"#007ACC",hc:t.activeContrastBorder},o.localize(12,null)),t.inputValidationInfoBackground=r("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:i.Color.black},o.localize(13,null)),t.inputValidationInfoBorder=r("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:t.contrastBorder},o.localize(14,null)),t.inputValidationWarningBackground=r("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:i.Color.black},o.localize(15,null)),t.inputValidationWarningBorder=r("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:t.contrastBorder},o.localize(16,null)),t.inputValidationErrorBackground=r("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:i.Color.black},o.localize(17,null)),t.inputValidationErrorBorder=r("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:t.contrastBorder},o.localize(18,null)),t.listFocusBackground=r("list.focusBackground",{dark:"#062F4A",light:"#DFF0FF",hc:null},o.localize(19,null)), +t.listFocusForeground=r("list.focusForeground",{dark:null,light:null,hc:null},o.localize(20,null)),t.listActiveSelectionBackground=r("list.activeSelectionBackground",{dark:"#094771",light:"#2477CE",hc:null},o.localize(21,null)),t.listActiveSelectionForeground=r("list.activeSelectionForeground",{dark:i.Color.white,light:i.Color.white,hc:null},o.localize(22,null)),t.listInactiveSelectionBackground=r("list.inactiveSelectionBackground",{dark:"#37373D",light:"#dddfea",hc:null},o.localize(23,null)),t.listInactiveSelectionForeground=r("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},o.localize(24,null)),t.listInactiveFocusBackground=r("list.inactiveFocusBackground",{dark:"#313135",light:"#d8dae6",hc:null},o.localize(25,null)),t.listHoverBackground=r("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},o.localize(26,null)),t.listHoverForeground=r("list.hoverForeground",{dark:null,light:null,hc:null},o.localize(27,null)),t.listDropBackground=r("list.dropBackground",{ +dark:t.listFocusBackground,light:t.listFocusBackground,hc:null},o.localize(28,null)),t.listHighlightForeground=r("list.highlightForeground",{dark:"#0097fb",light:"#007acc",hc:t.focusBorder},o.localize(29,null)),t.pickerGroupForeground=r("pickerGroup.foreground",{dark:"#3794FF",light:"#006AB1",hc:i.Color.white},o.localize(30,null)),t.pickerGroupBorder=r("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:i.Color.white},o.localize(31,null)),t.badgeBackground=r("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:i.Color.black},o.localize(32,null)),t.badgeForeground=r("badge.foreground",{dark:i.Color.white,light:"#333",hc:i.Color.white},o.localize(33,null)),t.scrollbarShadow=r("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},o.localize(34,null)),t.scrollbarSliderBackground=r("scrollbarSlider.background",{dark:i.Color.fromHex("#797979").transparent(.4),light:i.Color.fromHex("#646464").transparent(.4),hc:s(t.contrastBorder,.6)},o.localize(35,null)), +t.scrollbarSliderHoverBackground=r("scrollbarSlider.hoverBackground",{dark:i.Color.fromHex("#646464").transparent(.7),light:i.Color.fromHex("#646464").transparent(.7),hc:s(t.contrastBorder,.8)},o.localize(36,null)),t.scrollbarSliderActiveBackground=r("scrollbarSlider.activeBackground",{dark:i.Color.fromHex("#BFBFBF").transparent(.4),light:i.Color.fromHex("#000000").transparent(.6),hc:t.contrastBorder},o.localize(37,null)),t.progressBarBackground=r("progressBar.background",{dark:i.Color.fromHex("#0E70C0"),light:i.Color.fromHex("#0E70C0"),hc:t.contrastBorder},o.localize(38,null)),t.editorBackground=r("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:i.Color.black},o.localize(39,null)),t.editorForeground=r("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:i.Color.white},o.localize(40,null)),t.editorWidgetBackground=r("editorWidget.background",{dark:"#2D2D30",light:"#EFEFF2",hc:"#0C141F"},o.localize(41,null)),t.editorWidgetBorder=r("editorWidget.border",{dark:"#454545",light:"#C8C8C8", +hc:t.contrastBorder},o.localize(42,null)),t.editorWidgetResizeBorder=r("editorWidget.resizeBorder",{light:null,dark:null,hc:null},o.localize(43,null)),t.editorSelectionBackground=r("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},o.localize(44,null)),t.editorSelectionForeground=r("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},o.localize(45,null)),t.editorInactiveSelection=r("editor.inactiveSelectionBackground",{light:s(t.editorSelectionBackground,.5),dark:s(t.editorSelectionBackground,.5),hc:s(t.editorSelectionBackground,.5)},o.localize(46,null),!0),t.editorSelectionHighlight=r("editor.selectionHighlightBackground",{light:a(t.editorSelectionBackground,t.editorBackground,.3,.6),dark:a(t.editorSelectionBackground,t.editorBackground,.3,.6),hc:null},o.localize(47,null),!0),t.editorSelectionHighlightBorder=r("editor.selectionHighlightBorder",{light:null,dark:null,hc:t.activeContrastBorder},o.localize(48,null)),t.editorFindMatch=r("editor.findMatchBackground",{ +light:"#A8AC94",dark:"#515C6A",hc:null},o.localize(49,null)),t.editorFindMatchHighlight=r("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},o.localize(50,null),!0),t.editorFindRangeHighlight=r("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},o.localize(51,null),!0),t.editorFindMatchBorder=r("editor.findMatchBorder",{light:null,dark:null,hc:t.activeContrastBorder},o.localize(52,null)),t.editorFindMatchHighlightBorder=r("editor.findMatchHighlightBorder",{light:null,dark:null,hc:t.activeContrastBorder},o.localize(53,null)),t.editorFindRangeHighlightBorder=r("editor.findRangeHighlightBorder",{dark:null,light:null,hc:s(t.activeContrastBorder,.4)},o.localize(54,null),!0),t.editorHoverHighlight=r("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},o.localize(55,null),!0),t.editorHoverBackground=r("editorHoverWidget.background",{light:t.editorWidgetBackground,dark:t.editorWidgetBackground,hc:t.editorWidgetBackground +},o.localize(56,null)),t.editorHoverBorder=r("editorHoverWidget.border",{light:t.editorWidgetBorder,dark:t.editorWidgetBorder,hc:t.editorWidgetBorder},o.localize(57,null)),t.editorActiveLinkForeground=r("editorLink.activeForeground",{dark:"#4E94CE",light:i.Color.blue,hc:i.Color.cyan},o.localize(58,null)),t.defaultInsertColor=new i.Color(new i.RGBA(155,185,85,.2)),t.defaultRemoveColor=new i.Color(new i.RGBA(255,0,0,.2)),t.diffInserted=r("diffEditor.insertedTextBackground",{dark:t.defaultInsertColor,light:t.defaultInsertColor,hc:null},o.localize(59,null),!0),t.diffRemoved=r("diffEditor.removedTextBackground",{dark:t.defaultRemoveColor,light:t.defaultRemoveColor,hc:null},o.localize(60,null),!0),t.diffInsertedOutline=r("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},o.localize(61,null)),t.diffRemovedOutline=r("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},o.localize(62,null)),t.diffBorder=r("diffEditor.border",{dark:null,light:null,hc:t.contrastBorder +},o.localize(63,null));var d=new i.Color(new i.RGBA(246,185,77,.7));t.overviewRulerFindMatchForeground=r("editorOverviewRuler.findMatchForeground",{dark:d,light:d,hc:d},o.localize(64,null),!0),t.overviewRulerSelectionHighlightForeground=r("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},o.localize(65,null),!0),t.transparent=s,t.oneOf=function(){for(var e=[],t=0;t0&&(o.insertRule(this._unThemedSelector+" {"+e+"}",0),r=!0),t.length>0&&(o.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),r=!0),n.length>0&&(o.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),r=!0),this._hasContent=r},e.prototype._removeCSS=function(){r.removeCSSRulesContainingSelector(this._unThemedSelector,this._providerArgs.styleSheet)},e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"" +;var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if(void 0!==e){if(this.collectBorderSettingsCSSText(e,t),void 0!==e.contentIconPath&&("string"==typeof e.contentIconPath?t.push(n.format(m.contentIconPath,i.default.file(e.contentIconPath).toString().replace(/'/g,"%27"))):t.push(n.format(m.contentIconPath,i.default.revive(e.contentIconPath).toString(!0).replace(/'/g,"%27")))),"string"==typeof e.contentText){var o=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(n.format(m.contentText,o))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},e.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){ +if(!e)return"";var t=[];return void 0!==e.gutterIconPath&&("string"==typeof e.gutterIconPath?t.push(n.format(m.gutterIconPath,i.default.file(e.gutterIconPath).toString())):t.push(n.format(m.gutterIconPath,i.default.revive(e.gutterIconPath).toString(!0).replace(/'/g,"%27"))),void 0!==e.gutterIconSize&&t.push(n.format(m.gutterIconSize,e.gutterIconSize))),t.join("")},e.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(n.format("box-sizing: border-box;")),!0)},e.prototype.collectCSSText=function(e,t,i){for(var o=i.length,r=0,s=t;rt)){var v=m.startLineNumber===t?m.startColumn:r.minColumn,y=m.endLineNumber===t?m.endColumn:r.maxColumn;v') +;var S=a.renderViewLine(C,o);o.appendASCIIString("");var w=null;return p&&r.isBasicASCII&&l.useMonospaceOptimizations&&0===S.containsForeignElements&&r.content.length<300&&C.lineTokens.getCount()<100&&(w=new _(this._renderedViewLine?this._renderedViewLine.domNode:null,C,S.characterMapping)),w||(w=b(this._renderedViewLine?this._renderedViewLine.domNode:null,C,S.characterMapping,S.containsRTL,S.containsForeignElements)),this._renderedViewLine=w,!0},e.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},e.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},e.prototype.getVisibleRangesForRange=function(e,t,n){e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)), +t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=0|this._renderedViewLine.input.stopRenderingLineAfter;return-1!==i&&e>i&&t>i?null:(-1!==i&&e>i&&(e=i),-1!==i&&t>i&&(t=i),this._renderedViewLine.getVisibleRangesForRange(e,t,n))},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine.getColumnOfNodeOffset(e,t,n)},e.CLASS_NAME="view-line",e}();t.ViewLine=v;var _=function(){function e(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}return e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},e.prototype.getWidthIsFast=function(){return!0},e.prototype.getVisibleRangesForRange=function(e,t,n){var i=this._getCharPosition(e),o=this._getCharPosition(t);return[new u.HorizontalRange(i,o-i)]},e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])}, +e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;return this._characterMapping.partDataToCharOffset(o,i,n)+1},e}(),y=function(){function e(e,t,n,i,o){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var r=0,s=this._characterMapping.length;r<=s;r++)this._pixelOffsetCache[r]=-1}}return e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},e.prototype.getWidth=function(){return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},e.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},e.prototype.getVisibleRangesForRange=function(e,t,n){if(null!==this._pixelOffsetCache){var i=this._readPixelOffset(e,n) +;if(-1===i)return null;var o=this._readPixelOffset(t,n);return-1===o?null:[new u.HorizontalRange(i,o-i)]}return this._readVisibleRangesForRange(e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var i=this._readPixelOffset(e,n);return-1===i?null:[new u.HorizontalRange(i,0)]}return this._readRawVisibleRangesForRange(e,t,n)},e.prototype._readPixelOffset=function(e,t){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth()}if(null!==this._pixelOffsetCache){var n=this._pixelOffsetCache[e];if(-1!==n)return n;var i=this._actualReadPixelOffset(e,t);return this._pixelOffsetCache[e]=i,i}return this._actualReadPixelOffset(e,t)},e.prototype._actualReadPixelOffset=function(e,t){if(0===this._characterMapping.length){var n=l.RangeUtil.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return n&&0!==n.length?n[0].left:-1} +if(e===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var i=this._characterMapping.charOffsetToPartData(e-1),o=a.CharacterMapping.getPartIndex(i),r=a.CharacterMapping.getCharIndex(i),s=l.RangeUtil.readHorizontalRanges(this._getReadingTarget(),o,r,o,r,t.clientRectDeltaLeft,t.endNode);return s&&0!==s.length?s[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new u.HorizontalRange(0,this.getWidth())];var i=this._characterMapping.charOffsetToPartData(e-1),o=a.CharacterMapping.getPartIndex(i),r=a.CharacterMapping.getCharIndex(i),s=this._characterMapping.charOffsetToPartData(t-1),d=a.CharacterMapping.getPartIndex(s),c=a.CharacterMapping.getCharIndex(s);return l.RangeUtil.readHorizontalRanges(this._getReadingTarget(),o,r,d,c,n.clientRectDeltaLeft,n.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++ +;return this._characterMapping.partDataToCharOffset(o,i,n)+1},e}(),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._readVisibleRangesForRange=function(t,n,i){var o=e.prototype._readVisibleRangesForRange.call(this,t,n,i);if(!o||0===o.length||t===n||1===t&&n===this._characterMapping.length)return o;var r=this._readPixelOffset(n-1,i),s=this._readPixelOffset(n,i);if(-1!==r&&-1!==s){var a=r<=s,l=o[o.length-1];a&&l.left=4&&3===e[0]&&7===e[3]},e.isStrictChildOfViewLines=function(e){return e.length>4&&3===e[0]&&7===e[3]},e.isChildOfScrollableElement=function(e){return e.length>=2&&3===e[0]&&5===e[1]},e.isChildOfMinimap=function(e){return e.length>=2&&3===e[0]&&8===e[1]},e.isChildOfContentWidgets=function(e){return e.length>=4&&3===e[0]&&1===e[3]},e.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&2===e[0]},e.isChildOfOverlayWidgets=function(e){return e.length>=2&&3===e[0]&&4===e[1]},e}(),p=function(){function e(e,t,n){this.model=e.model,this.layoutInfo=e.configuration.editor.layoutInfo,this.viewDomNode=t.viewDomNode,this.lineHeight=e.configuration.editor.lineHeight,this.typicalHalfwidthCharacterWidth=e.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this.lastViewCursorsRenderData=n,this._context=e,this._viewHelper=t}return e.prototype.getZoneAtCoord=function(t){return e.getZoneAtCoord(this._context,t)},e.getZoneAtCoord=function(e,t){ +var i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){var o=i.verticalOffset+i.height/2,r=e.model.getLineCount(),s=null,a=void 0,l=null;return i.afterLineNumber!==r&&(l=new n.Position(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(s=new n.Position(i.afterLineNumber,e.model.getLineMaxColumn(i.afterLineNumber))),a=null===l?s:null===s?l:t=e.layoutInfo.glyphMarginLeft, +this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,m._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}()),g={isAfterLines:!0},m=function(){function e(e,t){this._context=e,this._viewHelper=t}return e.prototype.mouseTargetIsWidget=function(e){var t=e.target,n=l.PartFingerprints.collect(t,this._viewHelper.viewDomNode);return!(!h.isChildOfContentWidgets(n)&&!h.isChildOfOverflowingContentWidgets(n))||!!h.isChildOfOverlayWidgets(n)},e.prototype.createMouseTarget=function(t,n,i,o){var s=new p(this._context,this._viewHelper,t),a=new f(s,n,i,o);try{return e._createMouseTarget(s,a,!1)}catch(e){return a.fulfill(r.MouseTargetType.UNKNOWN)}},e._createMouseTarget=function(t,n,i){if(null===n.target){if(i)return n.fulfill(r.MouseTargetType.UNKNOWN);var o=e._doHitTest(t,n);return o.position?e.createMouseTargetFromHitTestPosition(t,n,o.position.lineNumber,o.position.column):this._createMouseTarget(t,n.withTarget(o.hitTarget),!0)}var s=null +;return s=s||e._hitTestContentWidget(t,n),s=s||e._hitTestOverlayWidget(t,n),s=s||e._hitTestMinimap(t,n),s=s||e._hitTestScrollbarSlider(t,n),s=s||e._hitTestViewZone(t,n),s=s||e._hitTestMargin(t,n),s=s||e._hitTestViewCursor(t,n),s=s||e._hitTestTextArea(t,n),s=s||e._hitTestViewLines(t,n,i),(s=s||e._hitTestScrollbar(t,n))||n.fulfill(r.MouseTargetType.UNKNOWN)},e._hitTestContentWidget=function(e,t){if(h.isChildOfContentWidgets(t.targetPath)||h.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(r.MouseTargetType.CONTENT_WIDGET,null,null,n):t.fulfill(r.MouseTargetType.UNKNOWN)}return null},e._hitTestOverlayWidget=function(e,t){if(h.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(r.MouseTargetType.OVERLAY_WIDGET,null,null,n):t.fulfill(r.MouseTargetType.UNKNOWN)}return null},e._hitTestViewCursor=function(e,t){if(t.target)for(var n=0,i=(o=e.lastViewCursorsRenderData).length;nl.contentLeft+l.width)){var u=e.getVerticalOffsetForLineNumber(l.position.lineNumber);if(u<=a&&a<=u+l.height)return t.fulfill(r.MouseTargetType.CONTENT_TEXT,l.position)}}return null},e._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var i=t.isInContentArea?r.MouseTargetType.CONTENT_VIEW_ZONE:r.MouseTargetType.GUTTER_VIEW_ZONE;return t.fulfill(i,n.position,null,n)}return null},e._hitTestTextArea=function(e,t){return h.isTextArea(t.targetPath)?t.fulfill(r.MouseTargetType.TEXTAREA):null},e._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition(),o=Math.abs(t.pos.x-t.editorPos.x),s={isAfterLines:n.isAfterLines, +glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return(o-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(r.MouseTargetType.GUTTER_GLYPH_MARGIN,i,n.range,s):(o-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(r.MouseTargetType.GUTTER_LINE_NUMBERS,i,n.range,s):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(r.MouseTargetType.GUTTER_LINE_DECORATIONS,i,n.range,s))}return null},e._hitTestViewLines=function(t,i,o){if(!h.isChildOfViewLines(i.targetPath))return null;if(t.isAfterLines(i.mouseVerticalOffset)){var s=t.model.getLineCount(),a=t.model.getLineMaxColumn(s);return i.fulfill(r.MouseTargetType.CONTENT_EMPTY,new n.Position(s,a),void 0,g)}if(o){if(h.isStrictChildOfViewLines(i.targetPath)){var l=t.getLineNumberAtVerticalOffset(i.mouseVerticalOffset);if(0===t.model.getLineLength(l)){var u=t.getLineWidth(l),c=d(i.mouseContentHorizontalOffset-u) +;return i.fulfill(r.MouseTargetType.CONTENT_EMPTY,new n.Position(l,1),void 0,c)}}return i.fulfill(r.MouseTargetType.UNKNOWN)}var p=e._doHitTest(t,i);return p.position?e.createMouseTargetFromHitTestPosition(t,i,p.position.lineNumber,p.position.column):this._createMouseTarget(t,i.withTarget(p.hitTarget),!0)},e._hitTestMinimap=function(e,t){if(h.isChildOfMinimap(t.targetPath)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(i);return t.fulfill(r.MouseTargetType.SCROLLBAR,new n.Position(i,o))}return null},e._hitTestScrollbarSlider=function(e,t){if(h.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){var o=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.model.getLineMaxColumn(o);return t.fulfill(r.MouseTargetType.SCROLLBAR,new n.Position(o,s))}}return null},e._hitTestScrollbar=function(e,t){if(h.isChildOfScrollableElement(t.targetPath)){ +var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(i);return t.fulfill(r.MouseTargetType.SCROLLBAR,new n.Position(i,o))}return null},e.prototype.getMouseColumn=function(t,n){var i=this._context.configuration.editor.layoutInfo,o=this._context.viewLayout.getCurrentScrollLeft()+n.x-t.x-i.contentLeft;return e._getMouseColumn(o,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)},e._getMouseColumn=function(e,t){if(e<0)return 1;return Math.round(e/t)+1},e.createMouseTargetFromHitTestPosition=function(e,t,o,s){var l=new n.Position(o,s),u=e.getLineWidth(o);if(t.mouseContentHorizontalOffset>u){if(a.isEdge&&1===l.column){var c=d(t.mouseContentHorizontalOffset-u);return t.fulfill(r.MouseTargetType.CONTENT_EMPTY,new n.Position(o,e.model.getLineMaxColumn(o)),void 0,c)}var h=d(t.mouseContentHorizontalOffset-u);return t.fulfill(r.MouseTargetType.CONTENT_EMPTY,l,void 0,h)}var p=e.visibleRangeForPosition2(o,s);if(!p)return t.fulfill(r.MouseTargetType.UNKNOWN,l) +;var f=p.left;if(t.mouseContentHorizontalOffset===f)return t.fulfill(r.MouseTargetType.CONTENT_TEXT,l);var g=[];if(g.push({offset:p.left,column:s}),s>1){var m=e.visibleRangeForPosition2(o,s-1);m&&g.push({offset:m.left,column:s-1})}if(s=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1) +;var r=new s.PageCoordinates(t.pos.x,o),a=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates());return a.position?a:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},e._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(!n||!n.startContainer)return{position:null,hitTarget:null};var i,o=n.startContainer;if(o.nodeType===o.TEXT_NODE){var r=(a=(s=o.parentNode)?s.parentNode:null)?a.parentNode:null;if((r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===u.ViewLine.CLASS_NAME){return{position:l=e.getPositionFromDOMInfo(s,n.startOffset),hitTarget:null}}i=o.parentNode}else if(o.nodeType===o.ELEMENT_NODE){var s=o.parentNode,a=s?s.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:null)===u.ViewLine.CLASS_NAME){var l=e.getPositionFromDOMInfo(o,o.textContent.length);return{position:l,hitTarget:null}}i=o}return{position:null,hitTarget:i}},e._doHitTestWithCaretPositionFromPoint=function(e,t){ +var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){var i=n.offsetNode.parentNode,o=i?i.parentNode:null,r=o?o.parentNode:null;if((r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===u.ViewLine.CLASS_NAME){return{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}}return{position:null,hitTarget:n.offsetNode.parentNode}}return{position:null,hitTarget:n.offsetNode}},e._doHitTestWithMoveToPoint=function(e,t){var n=null,i=null,o=document.body.createTextRange();try{o.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}o.collapse(!0);var r=o?o.parentElement():null,s=r?r.parentNode:null,a=s?s.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:"")===u.ViewLine.CLASS_NAME){var l=o.duplicate();l.moveToElementText(r),l.setEndPoint("EndToStart",o),n=e.getPositionFromDOMInfo(r,l.text.length),l.moveToElementText(e.viewDomNode)}else i=r;return o.moveToElementText(e.viewDomNode),{position:n, +hitTarget:i}},e._doHitTest=function(e,t){return document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},e}();t.MouseTargetFactory=m}),define(t[488],n([1,0,2,18,30,7,12,21,80,184,23,14,116,42,98]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g){"use strict";function m(e){return function(t,n){var i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}Object.defineProperty(t,"__esModule",{value:!0});var v=function(e){function t(n,i,o){var r=e.call(this)||this;r._isFocused=!1,r._context=n,r.viewController=i,r.viewHelper=o,r.mouseTargetFactory=new d.MouseTargetFactory(r._context,o),r._mouseDownOperation=r._register(new _(r._context,r.viewController,r.viewHelper,function(e,t){return r._createMouseTarget(e,t)},function(e){return r._getMouseColumn(e)})), +r._asyncFocus=r._register(new h.RunOnceScheduler(function(){return r.viewHelper.focusTextArea()},0)),r.lastMouseLeaveTime=-1;var a=new p.EditorMouseEventFactory(r.viewHelper.viewDomNode);r._register(a.onContextMenu(r.viewHelper.viewDomNode,function(e){return r._onContextMenu(e,!0)})),r._register(a.onMouseMoveThrottled(r.viewHelper.viewDomNode,function(e){return r._onMouseMove(e)},m(r.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),r._register(a.onMouseUp(r.viewHelper.viewDomNode,function(e){return r._onMouseUp(e)})),r._register(a.onMouseLeave(r.viewHelper.viewDomNode,function(e){return r._onMouseLeave(e)})),r._register(a.onMouseDown(r.viewHelper.viewDomNode,function(e){return r._onMouseDown(e)}));var l=function(e){if(r._context.configuration.editor.viewInfo.mouseWheelZoom){var t=new f.StandardMouseWheelEvent(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=g.EditorZoom.getZoomLevel(),i=t.deltaY>0?1:-1;g.EditorZoom.setZoomLevel(n+i),t.preventDefault(),t.stopPropagation()}}} +;return r._register(s.addDisposableListener(r.viewHelper.viewDomNode,"mousewheel",l,!0)),r._register(s.addDisposableListener(r.viewHelper.viewDomNode,"DOMMouseScroll",l,!0)),r._context.addEventHandler(r),r}return o(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},t.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},t.prototype.getTargetAtClientPoint=function(e,t){var n=new p.ClientCoordinates(e,t).toPageCoordinates(),i=p.createEditorPagePosition(this.viewHelper.viewDomNode);if(n.yi.y+i.height||n.xi.x+i.width)return null;var o=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(o,i,n,null)},t.prototype._createMouseTarget=function(e,t){ +var n=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(n,e.editorPos,e.pos,t?e.target:null)},t.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},t.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},t.prototype._onMouseMove=function(e){if(!this._mouseDownOperation.isActive()){e.timestampt.y+t.height){var s=i.getCurrentScrollTop()+(e.posy-t.y),l=d.HitTestContext.getZoneAtCoord(this._context,s);if(l){var u=this._helpPositionJumpOverViewZone(l);if(u)return new d.MouseTarget(null,c.MouseTargetType.OUTSIDE_EDITOR,o,u)}var h=i.getLineNumberAtVerticalOffset(s);return new d.MouseTarget(null,c.MouseTargetType.OUTSIDE_EDITOR,o,new a.Position(h,n.getLineMaxColumn(h)))}var p=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posxt.x+t.width?new d.MouseTarget(null,c.MouseTargetType.OUTSIDE_EDITOR,o,new a.Position(p,n.getLineMaxColumn(p))):null},t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t);if(!i.position)return null +;if(i.type===c.MouseTargetType.CONTENT_VIEW_ZONE||i.type===c.MouseTargetType.GUTTER_VIEW_ZONE){var o=this._helpPositionJumpOverViewZone(i.detail);if(o)return new d.MouseTarget(i.element,i.type,i.mouseColumn,o,null,i.detail)}return i},t.prototype._helpPositionJumpOverViewZone=function(e){var t=new a.Position(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null},t.prototype._dispatchMouse=function(e,t){this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,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})},t}(n.Disposable),y=function(){function e(){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(e.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startedOnLineNumbers",{ +get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),e.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},e.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},e.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},e.prototype.trySetCount=function(t,n){var i=(new Date).getTime();i-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=i,t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(n)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=n,this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount)}, +e.CLEAR_MOUSE_DOWN_COUNT_TIME=400,e}()}),define(t[489],n([1,0,7,74,488,116]),function(e,t,n,i,r,s){"use strict";function a(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(t,i,o){var r=e.call(this,t,i,o)||this;return r.viewHelper.linesContentDomNode.style.msTouchAction="none",r.viewHelper.linesContentDomNode.style.msContentZooming="none",r._installGestureHandlerTimeout=window.setTimeout(function(){if(r._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=r.viewHelper.linesContentDomNode,t.target=r.viewHelper.linesContentDomNode,r.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(n){var i=n.pointerType;i!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?i===(n.MSPOINTER_TYPE_TOUCH||"touch")?(r._lastPointerType="touch",e.addPointer(n.pointerId)):(r._lastPointerType="pen", +t.addPointer(n.pointerId)):r._lastPointerType="mouse"}),r._register(n.addDisposableThrottledListener(r.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return r._onGestureChange(e)},a)),r._register(n.addDisposableListener(r.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return r._onCaptureGestureTap(e)},!0))}},100),r._lastPointerType="mouse",r}return o(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new s.EditorMouseEvent(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout), +e.prototype.dispose.call(this)},t}(r.MouseHandler),u=function(e){function t(t,i,o){var r=e.call(this,t,i,o)||this;return r.viewHelper.linesContentDomNode.style.touchAction="none",r._installGestureHandlerTimeout=window.setTimeout(function(){if(r._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=r.viewHelper.linesContentDomNode,t.target=r.viewHelper.linesContentDomNode,r.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(n){var i=n.pointerType;"mouse"!==i?"touch"===i?(r._lastPointerType="touch",e.addPointer(n.pointerId)):(r._lastPointerType="pen",t.addPointer(n.pointerId)):r._lastPointerType="mouse"}),r._register(n.addDisposableThrottledListener(r.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return r._onGestureChange(e)},a)),r._register(n.addDisposableListener(r.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return r._onCaptureGestureTap(e)},!0))}},100),r._lastPointerType="mouse",r}return o(t,e), +t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new s.EditorMouseEvent(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(r.MouseHandler),d=function(e){function t(t,o,r){var a=e.call(this,t,o,r)||this;return i.Gesture.addTarget(a.viewHelper.linesContentDomNode),a._register(n.addDisposableListener(a.viewHelper.linesContentDomNode,i.EventType.Tap,function(e){return a.onTap(e)})), +a._register(n.addDisposableListener(a.viewHelper.linesContentDomNode,i.EventType.Change,function(e){return a.onChange(e)})),a._register(n.addDisposableListener(a.viewHelper.linesContentDomNode,i.EventType.Contextmenu,function(e){return a._onContextMenu(new s.EditorMouseEvent(e,a.viewHelper.viewDomNode),!1)})),a}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new s.EditorMouseEvent(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},t.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t}(r.MouseHandler),c=function(){function e(e,t,n){window.navigator.msPointerEnabled?this.handler=new l(e,t,n):window.TouchEvent?this.handler=new d(e,t,n):window.navigator.pointerEnabled||window.PointerEvent?this.handler=new u(e,t,n):this.handler=new r.MouseHandler(e,t,n)} +return e.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},e.prototype.dispose=function(){this.handler.dispose()},e}();t.PointerHandler=c}),define(t[490],n([1,0,2,184]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){var n=e.call(this)||this;return n.onDidScroll=null,n.onDidGainFocus=null,n.onDidLoseFocus=null,n.onKeyDown=null,n.onKeyUp=null,n.onContextMenu=null,n.onMouseMove=null,n.onMouseLeave=null,n.onMouseUp=null,n.onMouseDown=null,n.onMouseDrag=null,n.onMouseDrop=null,n._viewModel=t,n}return o(t,e),t.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)},t.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},t.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},t.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)},t.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)}, +t.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))},t.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e},t.prototype._convertViewToModelMouseTarget=function(e){ +return new s(e.element,e.type,e.mouseColumn,e.position?this._convertViewToModelPosition(e.position):null,e.range?this._convertViewToModelRange(e.range):null,e.detail)},t.prototype._convertViewToModelPosition=function(e){return this._viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},t.prototype._convertViewToModelRange=function(e){return this._viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},t}(n.Disposable);t.ViewOutgoingEvents=r;var s=function(){function e(e,t,n,i,o,r){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,this.range=o,this.detail=r}return e.prototype.toString=function(){return i.MouseTarget.toString(this)},e}()}),define(t[491],n([1,0,14,3,12,113,183,65,88,36,273]),function(e,t,n,i,r,s,a,l,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(){this._currentVisibleRange=new i.Range(1,1,1,1)}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange}, +e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},e}(),h=function(){return function(e,t,n,i,o,r){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=o,this.scrollType=r}}(),p=function(e){function t(t,i){var o=e.call(this,t)||this;o._linesContent=i,o._textRangeRestingSpot=document.createElement("div"),o._visibleLines=new s.VisibleLinesCollection(o),o.domNode=o._visibleLines.domNode;var r=o._context.configuration;return o._lineHeight=r.editor.lineHeight,o._typicalHalfwidthCharacterWidth=r.editor.fontInfo.typicalHalfwidthCharacterWidth,o._isViewportWrapping=r.editor.wrappingInfo.isViewportWrapping,o._revealHorizontalRightPadding=r.editor.viewInfo.revealHorizontalRightPadding,o._canUseLayerHinting=r.editor.canUseLayerHinting,o._viewLineOptions=new a.ViewLineOptions(r,o._context.theme.type),d.PartFingerprints.write(o.domNode,7),o.domNode.setClassName("view-lines"),l.Configuration.applyFontInfo(o.domNode,r.editor.fontInfo),o._maxLineWidth=0, +o._asyncUpdateLineWidths=new n.RunOnceScheduler(function(){o._updateLineWidthsSlow()},200),o._lastRenderedData=new c,o._horizontalRevealRequest=null,o}return o(t,e),t.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new a.ViewLine(this._viewLineOptions)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.wrappingInfo&&(this._maxLineWidth=0);var t=this._context.configuration;return e.lineHeight&&(this._lineHeight=t.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=t.editor.fontInfo.typicalHalfwidthCharacterWidth),e.wrappingInfo&&(this._isViewportWrapping=t.editor.wrappingInfo.isViewportWrapping),e.viewInfo&&(this._revealHorizontalRightPadding=t.editor.viewInfo.revealHorizontalRightPadding),e.canUseLayerHinting&&(this._canUseLayerHinting=t.editor.canUseLayerHinting), +e.fontInfo&&l.Configuration.applyFontInfo(this.domNode,t.editor.fontInfo),this._onOptionsMaybeChanged(),e.layoutInfo&&(this._maxLineWidth=0),!0},t.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new a.ViewLineOptions(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;for(var n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=n;o<=i;o++){this._visibleLines.getVisibleLine(o).onOptionsChanged(this._viewLineOptions)}return!0}return!1},t.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=!1,o=t;o<=n;o++)i=this._visibleLines.getVisibleLine(o).onSelectionChanged()||i;return i},t.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged();return!0},t.prototype.onFlushed=function(e){ +var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.range,e.verticalType),n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new h(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop) +;return 0===e.scrollType&&i>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0},t.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopn)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},t.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()}, +t.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new r.Position(i,1);var o=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();if(is)return null;var a=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t),l=this._context.model.getLineMinColumn(i);return an?-1:this._visibleLines.getVisibleLine(e).getWidth()},t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber;if(!(e=i.Range.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange())))return null;var o,s=[],l=0,d=new a.DomReadingContext(this.domNode.domNode,this._textRangeRestingSpot);t&&(o=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new r.Position(e.startLineNumber,1)).lineNumber);for(var c=this._visibleLines.getStartLineNumber(),h=this._visibleLines.getEndLineNumber(),p=e.startLineNumber;p<=e.endLineNumber;p++)if(!(ph)){var f=p===e.startLineNumber?e.startColumn:1,g=p===e.endLineNumber?e.endColumn:this._context.model.getLineMaxColumn(p),m=this._visibleLines.getVisibleLine(p).getVisibleRangesForRange(f,g,d);if(m&&0!==m.length){if(t&&pr)){var l=s===e.startLineNumber?e.startColumn:1,u=s===e.endLineNumber?e.endColumn:this._context.model.getLineMaxColumn(s),d=this._visibleLines.getVisibleLine(s).getVisibleRangesForRange(l,u,n);d&&0!==d.length&&(t=t.concat(d))}return 0===t.length?null:t},t.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidthsFast=function(){ +return this._updateLineWidths(!0)},t.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=1,o=!0,r=t;r<=n;r++){var s=this._visibleLines.getVisibleLine(r);!e||s.getWidthIsFast()?i=Math.max(i,s.getWidth()):o=!1}return o&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),o},t.prototype.prepareRender=function(){throw new Error("Not supported")},t.prototype.render=function(){throw new Error("Not supported")},t.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){ +var t=this._horizontalRevealRequest.lineNumber,n=this._horizontalRevealRequest.startColumn,i=this._horizontalRevealRequest.endColumn,o=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var r=this._computeScrollLeftToRevealRange(t,n,i);this._isViewportWrapping||this._ensureMaxLineWidth(r.maxHorizontalOffset),0===o?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:r.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:r.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting);var s=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-s),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},t.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidthc&&(c=p.left+p.width)}r=c,d=Math.max(0,d-t.HORIZONTAL_EXTRA_PX),c+=this._revealHorizontalRightPadding;return{scrollLeft:this._computeMinimumScrolling(a,l,d,c), +maxHorizontalOffset:r}},t.prototype._computeMinimumScrolling=function(e,t,n,i,o,r){o=!!o,r=!!r;var s=(t|=0)-(e|=0);return(i|=0)-(n|=0)t?Math.max(0,i-s):e:n},t.HORIZONTAL_EXTRA_PX=30,t}(d.ViewPart);t.ViewLines=p}),define(t[492],n([1,0,36,6,389,7,108,26,113,3,78,73,18,16,22,285]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g){"use strict";function m(e){return 2===e?4:4===e?6:1===e?2:3}function v(e){return 2===e?2:4===e?2:1}Object.defineProperty(t,"__esModule",{value:!0});var _=140,y=function(){function e(e){var t=e.editor.pixelRatio,n=e.editor.layoutInfo,i=e.editor.viewInfo,o=e.editor.fontInfo;this.renderMinimap=0|n.renderMinimap,this.scrollBeyondLastLine=i.scrollBeyondLastLine,this.showSlider=i.minimap.showSlider,this.pixelRatio=t,this.typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this.lineHeight=e.editor.lineHeight,this.minimapLeft=n.minimapLeft,this.minimapWidth=n.minimapWidth,this.minimapHeight=n.height, +this.canvasInnerWidth=Math.max(1,Math.floor(t*this.minimapWidth)),this.canvasInnerHeight=Math.max(1,Math.floor(t*this.minimapHeight)),this.canvasOuterWidth=this.canvasInnerWidth/t,this.canvasOuterHeight=this.canvasInnerHeight/t}return e.prototype.equals=function(e){return this.renderMinimap===e.renderMinimap&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight},e}(),C=function(){function e(e,t,n,i,o,r,s){this.scrollTop=e,this.scrollHeight=t,this._computedSliderRatio=n,this.sliderTop=i,this.sliderHeight=o,this.startLineNumber=r,this.endLineNumber=s} +return e.prototype.getDesiredScrollTopFromDelta=function(e){var t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)},e.create=function(t,n,i,o,r,s,a,l,u){var d,c=t.pixelRatio,h=m(t.renderMinimap),p=Math.floor(t.canvasInnerHeight/h),f=t.lineHeight;if(r&&i!==s){var g=i-n+1;d=Math.floor(g*h/c)}else{var v=o/f;d=Math.floor(v*h/c)}var _;_=t.scrollBeyondLastLine?(s-1)*h/c:Math.max(0,s*h/c-d);var y=(_=Math.min(t.minimapHeight-d,_))/(l-o),C=a*y;if(p>=s){return new e(a,l,y,C,d,b=1,S=s)}var b=Math.max(1,Math.floor(n-C*c/h));u&&u.scrollHeight===l&&(u.scrollTop>a&&(b=Math.min(b,u.startLineNumber)),u.scrollTop_)i._context.viewLayout.setScrollPositionNow({scrollTop:o.scrollTop});else{var s=e.posy-t;i._context.viewLayout.setScrollPositionNow({scrollTop:o.getDesiredScrollTopFromDelta(s)})}},function(){i._slider.toggleClassName("active",!1)})}}),i}return o(t,e),t.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),e.prototype.dispose.call(this)},t.prototype._getMinimapDomNodeClassName=function(){ +return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},t.prototype.getDomNode=function(){return this._domNode},t.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._slider.setWidth(this._options.minimapWidth)},t.prototype._getBuffer=function(){return this._buffers||(this._buffers=new w(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer()},t.prototype._onOptionsMaybeChanged=function(){var e=new y(this._context.configuration) +;return!this._options.equals(e)&&(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},t.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.onFlushed=function(e){return this._lastRenderData=null,!0},t.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},t.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)},t.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0},t.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0}, +t.prototype.prepareRender=function(e){},t.prototype.render=function(e){if(0===this._options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var t=C.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight);var n=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,i=Math.min(this._options.minimapWidth,Math.round(n*v(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(i),this._sliderHorizontal.setWidth(this._options.minimapWidth-i), +this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this._lastRenderData=this.renderLines(t)},t.prototype.renderLines=function(e){var n=this._options.renderMinimap,i=e.startLineNumber,o=e.endLineNumber,s=m(n);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var a=this._lastRenderData._get();return new S(e,a.imageData,a.lines)}for(var l=this._getBuffer(),u=t._renderUntouchedLines(l,i,o,s,this._lastRenderData),d=u[0],c=u[1],h=u[2],p=this._context.model.getMinimapLinesRenderingData(i,o,h),f=p.tabSize,g=this._tokensColorTracker.getColor(2),v=this._tokensColorTracker.backgroundIsLight(),_=0,y=[],C=0,w=o-i+1;C=0&&Lp)return;var w=d.charCodeAt(g);if(9===w){var E=l-(g+m)%l;m+=E-1,f+=E*h +}else if(32===w)f+=h;else for(var L=i.isFullWidthCharacter(w)?2:1,x=0;xp)return}},t}(n.ViewPart);t.Minimap=E,f.registerThemingParticipant(function(e,t){var n=e.getColor(g.scrollbarSliderBackground);if(n){var i=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var o=e.getColor(g.scrollbarSliderHoverBackground);if(o){var r=o.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+r+"; }")}var s=e.getColor(g.scrollbarSliderActiveBackground);if(s){var a=s.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+a+"; }")}var l=e.getColor(g.scrollbarShadow) +;l&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+l+" -6px 0 6px -6px inset; }")})}),define(t[493],n([1,0,26,36,16,22,297]),function(e,t,n,i,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){var i=e.call(this,t)||this;return i._scrollTop=0,i._width=0,i._updateWidth(),i._shouldShow=!1,i._useShadows=i._context.configuration.editor.viewInfo.scrollbar.useShadows,i._domNode=n.createFastDomNode(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._updateShouldShow=function(){var e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)},t.prototype.getDomNode=function(){return this._domNode},t.prototype._updateWidth=function(){var e=this._context.configuration.editor.layoutInfo,t=0 +;return t=0===e.renderMinimap||e.minimapWidth>0&&0===e.minimapLeft?e.width:e.width-e.minimapWidth-e.verticalScrollbarWidth,this._width!==t&&(this._width=t,!0)},t.prototype.onConfigurationChanged=function(e){var t=!1;return e.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),e.layoutInfo&&(t=this._updateWidth()),this._updateShouldShow()||t},t.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},t}(i.ViewPart);t.ScrollDecorationViewPart=a,r.registerThemingParticipant(function(e,t){var n=e.getColor(s.scrollbarShadow);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")})}),define(t[494],n([1,0,16,22,59,30,333]),function(e,t,n,i,r,s){"use strict";function a(e){return new d(e)}function l(e){ +return new c(e.lineNumber,e.ranges.map(a))}function u(e){return e<0?-e:e}Object.defineProperty(t,"__esModule",{value:!0});var d=function(){return function(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}(),c=function(){return function(e,t){this.lineNumber=e,this.ranges=t}}(),h=s.isEdgeOrIE,p=function(e){function t(t){var n=e.call(this)||this;return n._previousFrameVisibleRangesWithStyle=[],n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._roundedSelection=n._context.configuration.editor.viewInfo.roundedSelection,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._selections=[],n._renderResult=null,n._context.addEventHandler(n),n}return o(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._selections=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){ +return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t1)return!0}return!1},t.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var i=this._typicalHalfwidthCharacterWidth/4,o=null,r=null +;if(n&&n.length>0&&t.length>0){var s=t[0].lineNumber;if(s===e.startLineNumber)for(l=0;!o&&l=0;l--)n[l].lineNumber===a&&(r=n[l].ranges[0]);o&&!o.startStyle&&(o=null),r&&!r.startStyle&&(r=null)}for(var l=0,d=t.length;l0){var m=t[l-1].ranges[0].left,v=t[l-1].ranges[0].left+t[l-1].ranges[0].width;u(h-m)m&&(f.top=1),u(p-v)'},t.prototype._actualRenderOneSelection=function(e,n,i,o){for(var r=o.length>0&&o[0].ranges[0].startStyle,s=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),l=o.length>0?o[0].lineNumber:0,u=o.length>0?o[o.length-1].lineNumber:0,d=0,c=o.length;d1,u)}}this._previousFrameVisibleRangesWithStyle=r,this._renderResult=t},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.SELECTION_CLASS_NAME="selected-text",t.SELECTION_TOP_LEFT="top-left-radius",t.SELECTION_BOTTOM_LEFT="bottom-left-radius",t.SELECTION_TOP_RIGHT="top-right-radius",t.SELECTION_BOTTOM_RIGHT="bottom-right-radius",t.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",t.ROUNDED_PIECE_WIDTH=10,t}(r.DynamicViewOverlay);t.SelectionsOverlay=p,n.registerThemingParticipant(function(e,t){var n=e.getColor(i.editorSelectionBackground);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var o=e.getColor(i.editorInactiveSelection) +;o&&t.addRule(".monaco-editor .selected-text { background-color: "+o+"; }");var r=e.getColor(i.editorSelectionForeground);r&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+r+"; }")})}),define(t[35],n([1,0,302,22,16,27]),function(e,t,n,i,o,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editorLineHighlight=i.registerColor("editor.lineHighlightBackground",{dark:null,light:null,hc:null},n.localize(0,null)),t.editorLineHighlightBorder=i.registerColor("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},n.localize(1,null)),t.editorRangeHighlight=i.registerColor("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},n.localize(2,null),!0),t.editorRangeHighlightBorder=i.registerColor("editor.rangeHighlightBorder",{dark:null,light:null,hc:i.activeContrastBorder},n.localize(3,null),!0),t.editorCursorForeground=i.registerColor("editorCursor.foreground",{dark:"#AEAFAD",light:r.Color.black,hc:r.Color.white},n.localize(4,null)), +t.editorCursorBackground=i.registerColor("editorCursor.background",null,n.localize(5,null)),t.editorWhitespaces=i.registerColor("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},n.localize(6,null)),t.editorIndentGuides=i.registerColor("editorIndentGuide.background",{dark:t.editorWhitespaces,light:t.editorWhitespaces,hc:t.editorWhitespaces},n.localize(7,null)),t.editorActiveIndentGuides=i.registerColor("editorIndentGuide.activeBackground",{dark:t.editorWhitespaces,light:t.editorWhitespaces,hc:t.editorWhitespaces},n.localize(8,null)),t.editorLineNumbers=i.registerColor("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:r.Color.white},n.localize(9,null));var s=i.registerColor("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:i.activeContrastBorder},n.localize(10,null),!1,n.localize(11,null));t.editorActiveLineNumber=i.registerColor("editorLineNumber.activeForeground",{dark:s,light:s,hc:s},n.localize(12,null)), +t.editorRuler=i.registerColor("editorRuler.foreground",{dark:"#5A5A5A",light:r.Color.lightgrey,hc:r.Color.white},n.localize(13,null)),t.editorCodeLensForeground=i.registerColor("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},n.localize(14,null)),t.editorBracketMatchBackground=i.registerColor("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},n.localize(15,null)),t.editorBracketMatchBorder=i.registerColor("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:"#fff"},n.localize(16,null)),t.editorOverviewRulerBorder=i.registerColor("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},n.localize(17,null)),t.editorGutter=i.registerColor("editorGutter.background",{dark:i.editorBackground,light:i.editorBackground,hc:i.editorBackground},n.localize(18,null)),t.editorErrorForeground=i.registerColor("editorError.foreground",{dark:"#ea4646",light:"#d60a0a",hc:null},n.localize(19,null)), +t.editorErrorBorder=i.registerColor("editorError.border",{dark:null,light:null,hc:r.Color.fromHex("#E47777").transparent(.8)},n.localize(20,null)),t.editorWarningForeground=i.registerColor("editorWarning.foreground",{dark:"#4d9e4d",light:"#117711",hc:null},n.localize(21,null)),t.editorWarningBorder=i.registerColor("editorWarning.border",{dark:null,light:null,hc:r.Color.fromHex("#71B771").transparent(.8)},n.localize(22,null)),t.editorInfoForeground=i.registerColor("editorInfo.foreground",{dark:"#008000",light:"#008000",hc:null},n.localize(23,null)),t.editorInfoBorder=i.registerColor("editorInfo.border",{dark:null,light:null,hc:r.Color.fromHex("#71B771").transparent(.8)},n.localize(24,null)),t.editorHintForeground=i.registerColor("editorHint.foreground",{dark:r.Color.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},n.localize(25,null)),t.editorHintBorder=i.registerColor("editorHint.border",{dark:null,light:null,hc:r.Color.fromHex("#eeeeee").transparent(.8)},n.localize(26,null)), +t.editorUnnecessaryCodeBorder=i.registerColor("editorUnnecessaryCode.border",{dark:null,light:null,hc:r.Color.fromHex("#fff").transparent(.8)},n.localize(27,null)),t.editorUnnecessaryCodeOpacity=i.registerColor("editorUnnecessaryCode.opacity",{dark:r.Color.fromHex("#000a"),light:r.Color.fromHex("#0007"),hc:null},n.localize(28,null)),t.overviewRulerError=i.registerColor("editorOverviewRuler.errorForeground",{dark:new r.Color(new r.RGBA(255,18,18,.7)),light:new r.Color(new r.RGBA(255,18,18,.7)),hc:new r.Color(new r.RGBA(255,50,50,1))},n.localize(29,null)),t.overviewRulerWarning=i.registerColor("editorOverviewRuler.warningForeground",{dark:new r.Color(new r.RGBA(18,136,18,.7)),light:new r.Color(new r.RGBA(18,136,18,.7)),hc:new r.Color(new r.RGBA(50,255,50,1))},n.localize(30,null)),t.overviewRulerInfo=i.registerColor("editorOverviewRuler.infoForeground",{dark:new r.Color(new r.RGBA(18,18,136,.7)),light:new r.Color(new r.RGBA(18,18,136,.7)),hc:new r.Color(new r.RGBA(50,50,255,1))},n.localize(31,null)), +o.registerThemingParticipant(function(e,n){var o=e.getColor(i.editorBackground);o&&n.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+o+"; }");var r=e.getColor(i.editorForeground);r&&n.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+r+"; }");var s=e.getColor(t.editorGutter);s&&n.addRule(".monaco-editor .margin { background-color: "+s+"; }");var a=e.getColor(t.editorRangeHighlight);a&&n.addRule(".monaco-editor .rangeHighlight { background-color: "+a+"; }");var l=e.getColor(t.editorRangeHighlightBorder);l&&n.addRule(".monaco-editor .rangeHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+l+"; }");var u=e.getColor(t.editorWhitespaces);u&&n.addRule(".vs-whitespace { color: "+u+" !important; }")})}),define(t[496],n([1,0,59,16,35,262]),function(e,t,n,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=e.call(this)||this;return n._context=t, +n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._scrollWidth=0,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._context.addEventHandler(n),n}return o(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty() +;return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,t=!0,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){this._scrollWidth=e.scrollWidth},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){if(this._shouldShowCurrentLine()){return'
      '}return""}return""},t.prototype._shouldShowCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t.prototype._willRenderMarginCurrentLine=function(){ +return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t}(n.DynamicViewOverlay);t.CurrentLineHighlightOverlay=s,i.registerThemingParticipant(function(e,t){var n=e.getColor(r.editorLineHighlight);if(n&&t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),!n||n.isTransparent()||e.defines(r.editorLineHighlightBorder)){var i=e.getColor(r.editorLineHighlightBorder);i&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"))}})}),define(t[497],n([1,0,59,16,35,263]),function(e,t,n,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1, +n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n._context.addEventHandler(n),n}return o(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,t=!0,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onZonesChanged=function(e){ +return!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){var n="current-line";if(this._shouldShowCurrentLine()){n="current-line current-line-margin"+(this._willRenderContentCurrentLine()?" current-line-margin-both":"")}return'
      '}return""},t.prototype._shouldShowCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t.prototype._willRenderContentCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t}(n.DynamicViewOverlay);t.CurrentLineMarginHighlightOverlay=s,i.registerThemingParticipant(function(e,t){var n=e.getColor(r.editorLineHighlight);if(n)t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }");else{var i=e.getColor(r.editorLineHighlightBorder) +;i&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}})}),define(t[498],n([1,0,59,16,35,12,268]),function(e,t,n,i,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._primaryLineNumber=0,n._lineHeight=n._context.configuration.editor.lineHeight,n._spaceWidth=n._context.configuration.editor.fontInfo.spaceWidth,n._enabled=n._context.configuration.editor.viewInfo.renderIndentGuides,n._activeIndentEnabled=n._context.configuration.editor.viewInfo.highlightActiveIndentGuide,n._renderResult=null,n._context.addEventHandler(n),n}return o(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){ +return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),e.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides,this._activeIndentEnabled=this._context.configuration.editor.viewInfo.highlightActiveIndentGuide),!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLanguageConfigurationChanged=function(e){return!0},t.prototype.prepareRender=function(e){if(this._enabled){ +var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getTabSize()*this._spaceWidth,o=e.scrollWidth,r=this._lineHeight,a=i,l=this._context.model.getLinesIndentGuides(t,n),u=0,d=0,c=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var h=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);u=h.startLineNumber,d=h.endLineNumber,c=h.indent}for(var p=[],f=t;f<=n;f++){for(var g=u<=f&&f<=d,m=f-t,v=l[m],_="",y=e.visibleRangeForPosition(new s.Position(f,1)),C=y?y.left:0,b=1;b<=v;b++){if(_+='
      ',(C+=i)>o)break}p[m]=_}this._renderResult=p}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(n.DynamicViewOverlay);t.IndentGuidesOverlay=a,i.registerThemingParticipant(function(e,t){var n=e.getColor(r.editorIndentGuides) +;n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var i=e.getColor(r.editorActiveIndentGuides)||n;i&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")})}),define(t[186],n([1,0,35,16,18,59,12,270]),function(e,t,n,i,r,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._readConfig(),n._lastCursorModelPosition=new a.Position(1,1),n._renderResult=null,n._context.addEventHandler(n),n}return o(t,e),t.prototype._readConfig=function(){var e=this._context.configuration.editor;this._lineHeight=e.lineHeight,this._renderLineNumbers=e.viewInfo.renderLineNumbers,this._renderCustomLineNumbers=e.viewInfo.renderCustomLineNumbers,this._lineNumbersLeft=e.layoutInfo.lineNumbersLeft,this._lineNumbersWidth=e.layoutInfo.lineNumbersWidth},t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null, +e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t),2===this._renderLineNumbers||3===this._renderLineNumbers},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new a.Position(e,1));if(1!==t.column)return"";var n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){ +var i=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===i?''+n+"":String(i)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n?String(n):n%10==0?String(n):"":String(n)},t.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var n=r.isLinux?this._lineHeight%2==0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,s='
      ',a=[],l=i;l<=o;l++){var u=l-i,d=this._getLineRenderLineNumber(l);a[u]=d?s+d+"
      ":""}this._renderResult=a}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.CLASS_NAME="line-numbers",t}(s.DynamicViewOverlay);t.LineNumbersOverlay=l,i.registerThemingParticipant(function(e,t){ +var i=e.getColor(n.editorLineNumbers);i&&t.addRule(".monaco-editor .line-numbers { color: "+i+"; }");var o=e.getColor(n.editorActiveLineNumber);o&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+o+"; }")})}),define(t[500],n([1,0,18,30,6,165,164,3,21,12,65,78,26,36,163,186,89,254]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g,m,v){"use strict";function _(e,t){var n=document.createElement("canvas").getContext("2d");n.font=function(e){return function(e,t,n,i,o){return e+" normal "+t+" "+n+"px / "+i+"px "+o}("normal",e.fontWeight,e.fontSize,e.lineHeight,e.fontFamily)}(t);var o=n.measureText(e);return i.isFirefox?o.width+2:o.width}Object.defineProperty(t,"__esModule",{value:!0});var y=function(){function e(e,t,n){this.top=e,this.left=t,this.width=n}return e.prototype.setWidth=function(t){return new e(this.top,this.left,t)},e}(),C=i.isEdgeOrIE||i.isFirefox,b=function(){function e(){this._lastState=null}return e.prototype.set=function(e){this._lastState=e},e.prototype.get=function(e){ +return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState:(this._lastState=null,null)},e.INSTANCE=new e,e}(),S=function(e){function t(t,o,r){var d=e.call(this,t)||this;d._primaryCursorVisibleRange=null,d._viewController=o,d._viewHelper=r;var c=d._context.configuration.editor;d._accessibilitySupport=c.accessibilitySupport,d._contentLeft=c.layoutInfo.contentLeft,d._contentWidth=c.layoutInfo.contentWidth,d._contentHeight=c.layoutInfo.contentHeight,d._scrollLeft=0,d._scrollTop=0,d._fontInfo=c.fontInfo,d._lineHeight=c.lineHeight,d._emptySelectionClipboard=c.emptySelectionClipboard,d._visibleTextArea=null,d._selections=[new u.Selection(1,1,1,1)],d.textArea=p.createFastDomNode(document.createElement("textarea")),f.PartFingerprints.write(d.textArea,6),d.textArea.setClassName("inputarea"),d.textArea.setAttribute("wrap","off"),d.textArea.setAttribute("autocorrect","off"),d.textArea.setAttribute("autocapitalize","off"),d.textArea.setAttribute("autocomplete","off"), +d.textArea.setAttribute("spellcheck","false"),d.textArea.setAttribute("aria-label",c.viewInfo.ariaLabel),d.textArea.setAttribute("role","textbox"),d.textArea.setAttribute("aria-multiline","true"),d.textArea.setAttribute("aria-haspopup","false"),d.textArea.setAttribute("aria-autocomplete","both"),d.textAreaCover=p.createFastDomNode(document.createElement("div")),d.textAreaCover.setPosition("absolute");var g={getLineCount:function(){return d._context.model.getLineCount()},getLineMaxColumn:function(e){return d._context.model.getLineMaxColumn(e)},getValueInRange:function(e,t){return d._context.model.getValueInRange(e,t)}},m={getPlainTextToCopy:function(){var e=d._context.model.getPlainTextToCopy(d._selections,d._emptySelectionClipboard,n.isWindows),t=d._context.model.getEOL(),o=d._emptySelectionClipboard&&1===d._selections.length&&d._selections[0].isEmpty(),r=Array.isArray(e)?e:null,s=Array.isArray(e)?e.join(t):e,a=null;if(o||r){a={lastCopiedValue:i.isFirefox?s.replace(/\r\n/g,"\n"):s, +isFromEmptySelection:d._emptySelectionClipboard&&1===d._selections.length&&d._selections[0].isEmpty(),multicursorText:r}}return b.INSTANCE.set(a),s},getHTMLToCopy:function(){return d._context.model.getHTMLToCopy(d._selections,d._emptySelectionClipboard)},getScreenReaderContent:function(e){if(i.isIPad)return a.TextAreaState.EMPTY;if(1===d._accessibilitySupport){if(n.isMacintosh){var t=d._selections[0];if(t.isEmpty()){var o=t.getStartPosition(),r=d._getWordBeforePosition(o);if(0===r.length&&(r=d._getCharacterBeforePosition(o)),r.length>0)return new a.TextAreaState(r,r.length,r.length,o,o)}}return a.TextAreaState.EMPTY}return a.PagedScreenReaderStrategy.fromEditorSelection(e,g,d._selections[0],0===d._accessibilitySupport)},deduceModelPosition:function(e,t,n){return d._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}};return d._textAreaInput=d._register(new s.TextAreaInput(m,d.textArea)),d._register(d._textAreaInput.onKeyDown(function(e){d._viewController.emitKeyDown(e)})), +d._register(d._textAreaInput.onKeyUp(function(e){d._viewController.emitKeyUp(e)})),d._register(d._textAreaInput.onPaste(function(e){var t=b.INSTANCE.get(e.text),n=!1,i=null;t&&(n=d._emptySelectionClipboard&&t.isFromEmptySelection,i=t.multicursorText),d._viewController.paste("keyboard",e.text,n,i)})),d._register(d._textAreaInput.onCut(function(){d._viewController.cut("keyboard")})),d._register(d._textAreaInput.onType(function(e){e.replaceCharCnt?d._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):d._viewController.type("keyboard",e.text)})),d._register(d._textAreaInput.onSelectionChangeRequest(function(e){d._viewController.setSelection("keyboard",e)})),d._register(d._textAreaInput.onCompositionStart(function(){var e=d._selections[0].startLineNumber,t=d._selections[0].startColumn;d._context.privateViewEventBus.emit(new h.ViewRevealRangeRequestEvent(new l.Range(e,t,e,t),0,!0,1));var n=d._viewHelper.visibleRangeForPositionRelativeToEditor(e,t) +;n&&(d._visibleTextArea=new y(d._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,C?0:1),d._render()),d.textArea.setClassName("inputarea ime-input"),d._viewController.compositionStart("keyboard")})),d._register(d._textAreaInput.onCompositionUpdate(function(e){i.isEdgeOrIE?d._visibleTextArea=d._visibleTextArea.setWidth(0):d._visibleTextArea=d._visibleTextArea.setWidth(_(e.data,d._fontInfo)),d._render()})),d._register(d._textAreaInput.onCompositionEnd(function(){d._visibleTextArea=null,d._render(),d.textArea.setClassName("inputarea"),d._viewController.compositionEnd("keyboard")})),d._register(d._textAreaInput.onFocus(function(){d._context.privateViewEventBus.emit(new h.ViewFocusChangedEvent(!0))})),d._register(d._textAreaInput.onBlur(function(){d._context.privateViewEventBus.emit(new h.ViewFocusChangedEvent(!1))})),d}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getWordBeforePosition=function(e){ +for(var t=this._context.model.getLineContent(e.lineNumber),n=v.getMapForWordSeparators(this._context.configuration.editor.wordSeparators),i=e.column,o=0;i>1;){var r=t.charCodeAt(i-2);if(0!==n.get(r)||o>50)return t.substring(i-1,e.column-1);o++,i--}return t.substring(0,e.column-1)},t.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!r.isHighSurrogate(t.charCodeAt(0)))return t}return""},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.editor;return e.fontInfo&&(this._fontInfo=t.fontInfo),e.viewInfo&&this.textArea.setAttribute("aria-label",t.viewInfo.ariaLabel),e.layoutInfo&&(this._contentLeft=t.layoutInfo.contentLeft,this._contentWidth=t.layoutInfo.contentWidth,this._contentHeight=t.layoutInfo.contentHeight),e.lineHeight&&(this._lineHeight=t.lineHeight),e.accessibilitySupport&&(this._accessibilitySupport=t.accessibilitySupport, +this._textAreaInput.writeScreenReaderContent("strategy changed")),e.emptySelectionClipboard&&(this._emptySelectionClipboard=t.emptySelectionClipboard),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.isFocused=function(){return this._textAreaInput.isFocused()},t.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},t.prototype.prepareRender=function(e){if(2===this._accessibilitySupport)this._primaryCursorVisibleRange=null;else{ +var t=new d.Position(this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=e.visibleRangeForPosition(t)}},t.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},t.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);else if(this._primaryCursorVisibleRange){var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(ethis._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():this._renderInsideEditor(t,e,C?0:1,C?0:1,!1)}}else this._renderAtTopLeft()},t.prototype._renderInsideEditor=function(e,t,n,i,o){ +var r=this.textArea,s=this.textAreaCover;o?c.Configuration.applyFontInfo(r,this._fontInfo):(r.setFontSize(1),r.setLineHeight(this._fontInfo.lineHeight)),r.setTop(e),r.setLeft(t),r.setWidth(n),r.setHeight(i),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},t.prototype._renderAtTopLeft=function(){var e=this.textArea,t=this.textAreaCover;if(c.Configuration.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),C)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1),this._context.configuration.editor.viewInfo.glyphMargin?t.setClassName("monaco-editor-background textAreaCover "+g.Margin.OUTER_CLASS_NAME):0!==this._context.configuration.editor.viewInfo.renderLineNumbers?t.setClassName("monaco-editor-background textAreaCover "+m.LineNumbersOverlay.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")},t}(f.ViewPart);t.TextAreaHandler=S}), +define(t[501],n([1,0,36,12,17,35,27,26]),function(e,t,n,i,r,s,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){this.lineHeight=e.editor.lineHeight,this.pixelRatio=e.editor.pixelRatio,this.overviewRulerLanes=e.editor.viewInfo.overviewRulerLanes,this.renderBorder=e.editor.viewInfo.overviewRulerBorder;var n=t.getColor(s.editorOverviewRulerBorder);this.borderColor=n?n.toString():null,this.hideCursor=e.editor.viewInfo.hideCursorInOverviewRuler;var i=t.getColor(s.editorCursorForeground);this.cursorColor=i?i.transparent(.7).toString():null,this.themeType=t.type;var o=e.editor.viewInfo.minimap.enabled,l=e.editor.viewInfo.minimap.side,u=o?r.TokenizationRegistry.getDefaultBackground():null;this.backgroundColor=null===u||"left"===l?null:a.Color.Format.CSS.formatHex(u);var d=e.editor.layoutInfo.overviewRuler;this.top=d.top,this.right=d.right,this.domWidth=d.width,this.domHeight=d.height,this.canvasWidth=this.domWidth*this.pixelRatio|0, +this.canvasHeight=this.domHeight*this.pixelRatio|0;var c=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),h=c[0],p=c[1];this.x=h,this.w=p}return e.prototype._initLanes=function(e,t,n){var i=t-e;if(n>=3){var o=i-(s=Math.floor(i/3))-(a=Math.floor(i/3)),r=(l=e)+s;return[[0,l,r,l,u=l+s+o,l,r,l],[0,s,o,s+o,a,s+o+a,o+a,s+o+a]]}if(2===n){var s=Math.floor(i/2),a=i-s,l=e,u=l+s;return[[0,l,l,l,u,l,l,l],[0,s,s,s,a,s+a,s+a,s+a]]}var d=e,c=i;return[[0,d,d,d,d,d,d,d],[0,c,c,c,c,c,c,c]]},e.prototype.equals=function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight},e +}(),d=function(e){function t(t){var n=e.call(this,t)||this;return n._domNode=l.createFastDomNode(document.createElement("canvas")),n._domNode.setClassName("decorationsOverviewRuler"),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setAttribute("aria-hidden","true"),n._settings=null,n._updateSettings(!1),n._tokensColorTrackerListener=r.TokenizationRegistry.onDidChange(function(e){e.changedColorMap&&n._updateSettings(!0)}),n._cursorPositions=[],n}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},t.prototype._updateSettings=function(e){var t=new u(this._context.configuration,this._context.theme);return(null===this._settings||!this._settings.equals(t))&&(this._settings=t,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,e&&this._render(),!0)},t.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},t.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;tt&&(D=t-a),E=D-a,T=D+a}E>_+1||b!==m?(0!==y&&l.fillRect(u[m],v,d[m],_-v),m=b,v=E,_=T):T>_&&(_=T)}l.fillRect(u[m],v,d[m],_-v)}if(!this._settings.hideCursor){var L=2*this._settings.pixelRatio|0,x=L/2|0,N=this._settings.x[7],I=this._settings.w[7] +;l.fillStyle=this._settings.cursorColor;for(var v=-100,_=-100,y=0,C=this._cursorPositions.length;yt&&(D=t-x);var T=(E=D-x)+L;E>_+1?(0!==y&&l.fillRect(N,v,I,_-v),v=E,_=T):T>_&&(_=T)}l.fillRect(N,v,I,_-v)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,t),l.stroke(),l.moveTo(0,0),l.lineTo(e,0),l.stroke())},t}(n.ViewPart);t.DecorationsOverviewRuler=d}),define(t[502],n([1,0,26,36,16,35,296]),function(e,t,n,i,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){var i=e.call(this,t)||this;return i.domNode=n.createFastDomNode(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[], +i._rulers=i._context.configuration.editor.viewInfo.rulers,i._typicalHalfwidthCharacterWidth=i._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,i}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return!!(e.viewInfo||e.layoutInfo||e.fontInfo)&&(this._rulers=this._context.configuration.editor.viewInfo.rulers,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,!0)},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.prepareRender=function(e){},t.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e0;){(s=n.createFastDomNode(document.createElement("div"))).setClassName("view-ruler"),s.setWidth(i),this.domNode.appendChild(s),this._renderedRulers.push(s),o--}else for(var r=e-t;r>0;){var s=this._renderedRulers.pop() +;this.domNode.removeChild(s),r--}},t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;tt.length)for(var s=this._secondaryCursors.length-t.length,o=0;o1),this._hasNonEmptySelection.set(e.some(function(e){return!e.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},t.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())},t.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(e&&e.canUndo()),this._canRedo.set(e&&e.canRedo())},t}(l.Disposable),B=function(e){function t(t,n){var i=e.call(this)||this;i._editor=t,i._langId=S.EditorContextKeys.languageId.bindTo(n),i._hasCompletionItemProvider=S.EditorContextKeys.hasCompletionItemProvider.bindTo(n),i._hasCodeActionsProvider=S.EditorContextKeys.hasCodeActionsProvider.bindTo(n),i._hasCodeLensProvider=S.EditorContextKeys.hasCodeLensProvider.bindTo(n), +i._hasDefinitionProvider=S.EditorContextKeys.hasDefinitionProvider.bindTo(n),i._hasImplementationProvider=S.EditorContextKeys.hasImplementationProvider.bindTo(n),i._hasTypeDefinitionProvider=S.EditorContextKeys.hasTypeDefinitionProvider.bindTo(n),i._hasHoverProvider=S.EditorContextKeys.hasHoverProvider.bindTo(n),i._hasDocumentHighlightProvider=S.EditorContextKeys.hasDocumentHighlightProvider.bindTo(n),i._hasDocumentSymbolProvider=S.EditorContextKeys.hasDocumentSymbolProvider.bindTo(n),i._hasReferenceProvider=S.EditorContextKeys.hasReferenceProvider.bindTo(n),i._hasRenameProvider=S.EditorContextKeys.hasRenameProvider.bindTo(n),i._hasDocumentFormattingProvider=S.EditorContextKeys.hasDocumentFormattingProvider.bindTo(n),i._hasDocumentSelectionFormattingProvider=S.EditorContextKeys.hasDocumentSelectionFormattingProvider.bindTo(n),i._hasSignatureHelpProvider=S.EditorContextKeys.hasSignatureHelpProvider.bindTo(n),i._isInWalkThrough=S.EditorContextKeys.isInEmbeddedEditor.bindTo(n);var o=function(){return i._update() +};return i._register(t.onDidChangeModel(o)),i._register(t.onDidChangeModelLanguage(o)),i._register(w.SuggestRegistry.onDidChange(o)),i._register(w.CodeActionProviderRegistry.onDidChange(o)),i._register(w.CodeLensProviderRegistry.onDidChange(o)),i._register(w.DefinitionProviderRegistry.onDidChange(o)),i._register(w.ImplementationProviderRegistry.onDidChange(o)),i._register(w.TypeDefinitionProviderRegistry.onDidChange(o)),i._register(w.HoverProviderRegistry.onDidChange(o)),i._register(w.DocumentHighlightProviderRegistry.onDidChange(o)),i._register(w.DocumentSymbolProviderRegistry.onDidChange(o)),i._register(w.ReferenceProviderRegistry.onDidChange(o)),i._register(w.RenameProviderRegistry.onDidChange(o)),i._register(w.DocumentFormattingEditProviderRegistry.onDidChange(o)),i._register(w.DocumentRangeFormattingEditProviderRegistry.onDidChange(o)),i._register(w.SignatureHelpProviderRegistry.onDidChange(o)),o(),i}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)}, +t.prototype.reset=function(){this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()},t.prototype._update=function(){var e=this._editor.getModel();e?(this._langId.set(e.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(w.SuggestRegistry.has(e)),this._hasCodeActionsProvider.set(w.CodeActionProviderRegistry.has(e)),this._hasCodeLensProvider.set(w.CodeLensProviderRegistry.has(e)),this._hasDefinitionProvider.set(w.DefinitionProviderRegistry.has(e)), +this._hasImplementationProvider.set(w.ImplementationProviderRegistry.has(e)),this._hasTypeDefinitionProvider.set(w.TypeDefinitionProviderRegistry.has(e)),this._hasHoverProvider.set(w.HoverProviderRegistry.has(e)),this._hasDocumentHighlightProvider.set(w.DocumentHighlightProviderRegistry.has(e)),this._hasDocumentSymbolProvider.set(w.DocumentSymbolProviderRegistry.has(e)),this._hasReferenceProvider.set(w.ReferenceProviderRegistry.has(e)),this._hasRenameProvider.set(w.RenameProviderRegistry.has(e)),this._hasSignatureHelpProvider.set(w.SignatureHelpProviderRegistry.has(e)),this._hasDocumentFormattingProvider.set(w.DocumentFormattingEditProviderRegistry.has(e)||w.DocumentRangeFormattingEditProviderRegistry.has(e)),this._hasDocumentSelectionFormattingProvider.set(w.DocumentRangeFormattingEditProviderRegistry.has(e)),this._isInWalkThrough.set(e.uri.scheme===E.Schemas.walkThroughSnippet)):this.reset()},t}(l.Disposable);t.EditorModeContext=B;var H=function(e){function t(t){var n=e.call(this)||this +;return n._onChange=n._register(new s.Emitter),n.onChange=n._onChange.event,n._hasFocus=!1,n._domFocusTracker=n._register(i.trackFocus(t)),n._register(n._domFocusTracker.onDidFocus(function(){n._hasFocus=!0,n._onChange.fire(void 0)})),n._register(n._domFocusTracker.onDidBlur(function(){n._hasFocus=!1,n._onChange.fire(void 0)})),n}return o(t,e),t.prototype.hasFocus=function(){return this._hasFocus},t}(l.Disposable),z=encodeURIComponent(""),U=encodeURIComponent('');M.registerThemingParticipant(function(e,t){var n=e.getColor(R.editorErrorBorder) +;n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var i=e.getColor(R.editorErrorForeground);i&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+O(i)+'") repeat-x bottom left; }');var o=e.getColor(R.editorWarningBorder);o&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+o+"; }");var r=e.getColor(R.editorWarningForeground);r&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+O(r)+'") repeat-x bottom left; }');var s=e.getColor(R.editorInfoBorder);s&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(R.editorInfoForeground);a&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+O(a)+'") repeat-x bottom left; }');var l=e.getColor(R.editorHintBorder);l&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+l+"; }");var u=e.getColor(R.editorHintForeground) +;u&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+function(e){return U+encodeURIComponent(e.toString())+j}(u)+'") no-repeat bottom left; }');var d=e.getColor(R.editorUnnecessaryCodeOpacity);d&&t.addRule("."+A+" .monaco-editor .squiggly-inline-unnecessary { opacity: "+d.rgba.a+"; will-change: opacity; }");var c=e.getColor(R.editorUnnecessaryCodeBorder);c&&t.addRule("."+A+" .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed "+c+"; }")})}),define(t[506],n([1,0,293,2,7,26,96,99,65,12,16,22,55,35,69,67,11,19,32,63,362]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g,m,v,_,y,C){"use strict";function b(e){for(var t=e.get(y.ICodeEditorService).listDiffEditors(),n=0,i=t.length;n0){var _=e[r-1];m=0===_.originalEndLineNumber?_.originalStartLineNumber+1:_.originalEndLineNumber+1,v=0===_.modifiedEndLineNumber?_.modifiedStartLineNumber+1:_.modifiedEndLineNumber+1}var y=f-3+1,C=g-3+1;if(yL){I+=D=L-I,M+=D}if(M>x){var D=x-M;I+=D,M+=D}h[p++]=new S(b,I,E,M),i[o++]=new w(h)} +for(var T=i[0].entries,k=[],R=0,r=1,s=i.length;rg)&&(g=b),0!==S&&(0===m||Sv)&&(v=w)}var E=document.createElement("div");E.className="diff-review-row";var L=document.createElement("div");L.className="diff-review-cell diff-review-summary";var x=g-f+1,N=v-m+1;L.appendChild(document.createTextNode(c+1+"/"+this._diffs.length+": @@ -"+f+","+x+" +"+m+","+N+" @@")),E.setAttribute("data-line",String(m));var I=function(e){return 0===e?n.localize(1,null):1===e?n.localize(2,null):n.localize(3,null,e)},M=I(x),D=I(N);E.setAttribute("aria-label",n.localize(4,null,c+1,this._diffs.length,f,M,m,D)),E.appendChild(L), +E.setAttribute("role","listitem"),p.appendChild(E);for(var T=m,_=0,y=h.length;_0}function A(e){ +return e.originalEndLineNumber>0}Object.defineProperty(t,"__esModule",{value:!0});var F=function(){function e(){this._zones=[],this._zonesMap={},this._decorations=[]}return e.prototype.getForeignViewZones=function(e){var t=this;return e.filter(function(e){return!t._zonesMap[String(e.id)]})},e.prototype.clean=function(e){var t=this;this._zones.length>0&&e.changeViewZones(function(e){for(var n=0,i=t._zones.length;n0?o/n:0;return{height:Math.max(0,Math.floor(e.contentHeight*r)),top:Math.floor(t*r)}},t.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._width},getHeight:function(){return e._height-e._reviewHeight},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},t.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getTheme()),this._lineChanges&&this._updateDecorations(),this._measureDomElement(!0)},t.prototype._getLineChangeAtOrBeforeLineNumber=function(e,t){ +if(0===this._lineChanges.length||e=s?n=o+1:(n=o,i=o)}return this._lineChanges[n]},t.prototype._getEquivalentLineForOriginalLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,function(e){return e.originalStartLineNumber});if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=o?i+Math.min(s,r):i+r-o+s},t.prototype._getEquivalentLineForModifiedLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,function(e){return e.modifiedStartLineNumber});if(!t)return e +;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-i;return s<=r?n+Math.min(s,o):n+o-r+s},t.prototype.getDiffLineInformationForOriginal=function(e){return this._lineChanges?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null},t.prototype.getDiffLineInformationForModified=function(e){return this._lineChanges?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null},t.ONE_OVERVIEW_WIDTH=15,t.ENTIRE_DIFF_OVERVIEW_WIDTH=30,t.UPDATE_DIFF_DECORATIONS_DELAY=200,t=a([u(2,v.IEditorWorkerService),u(3,p.IContextKeyService),u(4,h.IInstantiationService),u(5,f.ICodeEditorService),u(6,x.IThemeService),u(7,k.INotificationService)],t)}(r.Disposable);t.DiffEditorWidget=V;var B=function(e){function t(t){var n=e.call(this)||this +;return n._dataSource=t,n}return o(t,e),t.prototype.applyColors=function(e){var t=(e.getColor(N.diffInserted)||N.defaultInsertColor).transparent(2),n=(e.getColor(N.diffRemoved)||N.defaultRemoveColor).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i},t.prototype.getEditorsDiffDecorations=function(e,t,n,i,o,r,s){o=o.sort(function(e,t){return e.afterLineNumber-t.afterLineNumber}),i=i.sort(function(e,t){return e.afterLineNumber-t.afterLineNumber});var a=this._getViewZones(e,i,o,r,s,n),l=this._getOriginalEditorDecorations(e,t,n,r,s),u=this._getModifiedEditorDecorations(e,t,n,r,s);return{original:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.original},modified:{decorations:u.decorations,overviewZones:u.overviewZones,zones:a.modified}}},t}(r.Disposable),H=function(){function e(e){this._source=e,this._index=-1,this.advance()}return e.prototype.advance=function(){this._index++, +this._index0){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},u=new H(this.modifiedForeignVZ),d=new H(this.originalForeignVZ),c=0,h=this.lineChanges.length;c<=h;c++){var p=c0?-1:0),o=p.modifiedStartLineNumber+(p.modifiedEndLineNumber>0?-1:0),n=p.originalEndLineNumber>0?p.originalEndLineNumber-p.originalStartLineNumber+1:0,t=p.modifiedEndLineNumber>0?p.modifiedEndLineNumber-p.modifiedStartLineNumber+1:0, +r=Math.max(p.originalStartLineNumber,p.originalEndLineNumber),s=Math.max(p.modifiedStartLineNumber,p.modifiedEndLineNumber)):(r=i+=1e7+n,s=o+=1e7+t);for(var f=[],g=[];u.current&&u.current.afterLineNumber<=s;){m=void 0;m=u.current.afterLineNumber<=o?i-o+u.current.afterLineNumber:r,f.push({afterLineNumber:m,heightInLines:u.current.heightInLines,domNode:null}),u.advance()}for(;d.current&&d.current.afterLineNumber<=r;){var m=void 0;m=d.current.afterLineNumber<=i?o-i+d.current.afterLineNumber:s,g.push({afterLineNumber:m,heightInLines:d.current.heightInLines,domNode:null}),d.advance()}if(null!==p&&P(p)){(v=this._produceOriginalFromDiff(p,n,t))&&f.push(v)}if(null!==p&&A(p)){var v=this._produceModifiedFromDiff(p,n,t);v&&g.push(v)}var _=0,y=0;for(f=f.sort(a),g=g.sort(a);_=b.heightInLines?(C.heightInLines-=b.heightInLines,y++):(b.heightInLines-=C.heightInLines,_++)}for(;_2*t.MINIMUM_EDITOR_WIDTH?(in-t.MINIMUM_EDITOR_WIDTH&&(i=n-t.MINIMUM_EDITOR_WIDTH)):i=o,this._sashPosition!==i&&(this._sashPosition=i,this._sash.layout()),this._sashPosition},t.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},t.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth()-V.ENTIRE_DIFF_OVERVIEW_WIDTH,n=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=n/t,this._dataSource.relayoutEditors()},t.prototype.onSashDragEnd=function(){this._sash.layout()},t.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},t.prototype.getVerticalSashTop=function(e){ +return 0},t.prototype.getVerticalSashLeft=function(e){return this._sashPosition},t.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()},t.prototype._getViewZones=function(e,t,n,i,o){return new j(e,t,n).getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=this._removeColor.toString(),s={decorations:[],overviewZones:[]},a=i.getModel(),l=0,u=e.length;lt?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null},t.prototype._produceModifiedFromDiff=function(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null},t}(z),q=function(e){function t(t,n){var i=e.call(this,t)||this +;return i.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,i._register(t.getOriginalEditor().onDidLayoutChange(function(e){i.decorationsLeft!==e.decorationsLeft&&(i.decorationsLeft=e.decorationsLeft,t.relayoutEditors())})),i}return o(t,e),t.prototype.setEnableSplitViewResizing=function(e){},t.prototype._getViewZones=function(e,t,n,i,o,r){return new G(e,t,n,i,o,r).getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=this._removeColor.toString(),s={decorations:[],overviewZones:[]},a=0,l=e.length;a'])}h+=this.modifiedEditorConfiguration.viewInfo.scrollBeyondLastColumn;var m=document.createElement("div");m.className="view-lines line-delete",m.innerHTML=a.build(),b.Configuration.applyFontInfoSlow(m,this.modifiedEditorConfiguration.fontInfo);var v=document.createElement("div");return v.className="inline-deleted-margin-view-zone",v.innerHTML=l.join(""), +b.Configuration.applyFontInfoSlow(v,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:h*c,domNode:m,marginDomNode:v}},t.prototype._renderOriginalLine=function(e,t,n,i,o,r,s){var a=t.getLineTokens(o),l=a.getLineContent(),u=_.LineDecoration.filter(r,o,1,l.length+1);s.appendASCIIString('
      ') +;var d=S.ViewLineRenderingData.isBasicASCII(l,t.mightContainNonBasicASCII()),c=S.ViewLineRenderingData.containsRTL(l,d,t.mightContainRTL()),h=y.renderViewLine(new y.RenderLineInput(n.fontInfo.isMonospace&&!n.viewInfo.disableMonospaceOptimizations,l,!1,d,c,0,a,u,i,n.fontInfo.spaceWidth,n.viewInfo.stopRenderingLineAfter,n.viewInfo.renderWhitespace,n.viewInfo.renderControlCharacters,n.viewInfo.fontLigatures),s);s.appendASCIIString("
      ");var p=h.characterMapping.getAbsoluteOffsets();return p.length>0?p[p.length-1]:0},t}(z);x.registerThemingParticipant(function(e,t){var n=e.getColor(N.diffInserted);n&&(t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var i=e.getColor(N.diffRemoved) +;i&&(t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+i+"; }"));var o=e.getColor(N.diffInsertedOutline);o&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+o+"; }");var r=e.getColor(N.diffRemovedOutline);r&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+r+"; }");var s=e.getColor(N.scrollbarShadow);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+s+"; }");var a=e.getColor(N.diffBorder);a&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+a+"; }")})}),define(t[141],n([1,0,28,15,34,19,32,104,16,37]),function(e,t,n,i,r,s,l,d,c,h){"use strict" +;Object.defineProperty(t,"__esModule",{value:!0});var p=function(e){function t(t,n,i,o,r,s,a,l,u){var d=e.call(this,t,i.getRawConfiguration(),{},o,r,s,a,l,u)||this;return d._parentEditor=i,d._overwriteOptions=n,e.prototype.updateOptions.call(d,d._overwriteOptions),d._register(i.onDidChangeConfiguration(function(e){return d._onParentConfigurationChanged(e)})),d}return o(t,e),t.prototype.getParentEditor=function(){return this._parentEditor},t.prototype._onParentConfigurationChanged=function(t){e.prototype.updateOptions.call(this,this._parentEditor.getRawConfiguration()),e.prototype.updateOptions.call(this,this._overwriteOptions)},t.prototype.updateOptions=function(t){n.mixin(this._overwriteOptions,t,!0),e.prototype.updateOptions.call(this,this._overwriteOptions)},t=a([u(3,i.IInstantiationService),u(4,l.ICodeEditorService),u(5,r.ICommandService),u(6,s.IContextKeyService),u(7,c.IThemeService),u(8,h.INotificationService)],t)}(d.CodeEditorWidget);t.EmbeddedCodeEditorWidget=p}), +define(t[509],n([1,0,301,61,9,79,2,13,75,3,29,18,51,47,124,16,35,24,25,50]),function(e,t,n,i,o,r,s,l,d,c,h,p,f,g,m,v,_,y,C,b){"use strict";function S(e){return e.toString()}Object.defineProperty(t,"__esModule",{value:!0});var w=function(){function e(e,t,n){this.model=e,this._markerDecorations=[],this._modelEventListeners=[],this._modelEventListeners.push(e.onWillDispose(function(){return t(e)})),this._modelEventListeners.push(e.onDidChangeLanguage(function(t){return n(e,t)}))}return e.prototype.dispose=function(){this._markerDecorations=this.model.deltaDecorations(this._markerDecorations,[]),this._modelEventListeners=s.dispose(this._modelEventListeners),this.model=null},e.prototype.acceptMarkerDecorations=function(e){this._markerDecorations=this.model.deltaDecorations(this._markerDecorations,e)},e}(),E=function(){function e(){}return e.setMarkers=function(e,t){var n=this,i=t.read({resource:e.model.uri,take:500}).map(function(t){return{range:n._createDecorationRange(e.model,t), +options:n._createDecorationOption(t)}});e.acceptMarkerDecorations(i)},e._createDecorationRange=function(e,t){var n=c.Range.lift(t);if(t.severity===d.MarkerSeverity.Hint&&c.Range.spansMultipleLines(n)&&(n=n.setEndPosition(n.startLineNumber,n.startColumn)),(n=e.validateRange(n)).isEmpty()){var i=e.getWordAtPosition(n.getStartPosition());if(i)n=new c.Range(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn);else{var o=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===o||(n=n.endColumn>=o?new c.Range(n.startLineNumber,o-1,n.endLineNumber,o):new c.Range(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){var r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r=0?"squiggly-unnecessary":"squiggly-hint",s=0;break;case d.MarkerSeverity.Warning:t="squiggly-warning",i=v.themeColorFromId(_.overviewRulerWarning),o=v.themeColorFromId(_.overviewRulerWarning),s=20;break;case d.MarkerSeverity.Info:t="squiggly-info",i=v.themeColorFromId(_.overviewRulerInfo),o=v.themeColorFromId(_.overviewRulerInfo),s=10;break;case d.MarkerSeverity.Error:default:t="squiggly-error",i=v.themeColorFromId(_.overviewRulerError),o=v.themeColorFromId(_.overviewRulerError),s=30}e.tags&&-1!==e.tags.indexOf(d.MarkerTag.Unnecessary)&&(a="squiggly-inline-unnecessary");var l=null,u=e.message,c=e.source,h=e.relatedInformation;if("string"==typeof u&&(u=u.trim(),c&&(u=/\n/g.test(u)?n.localize(0,null,c,u):n.localize(1,null,c,u)),l=(new r.MarkdownString).appendCodeblock("_",u),!C.isFalsyOrEmpty(h))){l.appendMarkdown("\n");for(var p=0,f=h;p0&&(n._decorations=n._editor.deltaDecorations(n._decorations,[])),n._updateBracketsSoon.schedule()})),n}return o(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.getId=function(){return t.ID},t.prototype.jumpToBracket=function(){var e=this._editor.getModel();if(e){var t=this._editor.getSelections().map(function(t){var n=t.getStartPosition(),i=e.matchBracket(n),o=null;if(i)i[0].containsPosition(n)?o=i[1].getStartPosition():i[1].containsPosition(n)&&(o=i[0].getStartPosition());else{var r=e.findNextBracket(n);r&&r.range&&(o=r.range.getStartPosition())}return o?new s.Selection(o.lineNumber,o.column,o.lineNumber,o.column):new s.Selection(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}},t.prototype.selectToBracket=function(){ +var e=this._editor.getModel();if(e){var t=[];this._editor.getSelections().forEach(function(n){var i=n.getStartPosition(),o=e.matchBracket(i),r=null,a=null;if(!o){var l=e.findNextBracket(i);l&&l.range&&(o=e.matchBracket(l.range.getStartPosition()))}o&&(o[0].startLineNumber===o[1].startLineNumber?(r=o[1].startColumn0&&(this._editor.setSelections(t),this._editor.revealRange(t[0]))}},t.prototype._updateBrackets=function(){if(this._matchBrackets){this._recomputeBrackets();for(var e=[],n=0,i=0,o=this._lastBracketsData.length;i1&&o.sort(r.Position.compare);for(var d=[],c=0,h=0,p=n.length,a=0,l=o.length;a{1}",n,r),this._commands[n]=o):s=i.format("{0}",r),t.push(s)}this._domNode.innerHTML=t.join(" | "),this._editor.layoutContentWidget(this)}else this._domNode.innerHTML="no commands"},e.prototype.getId=function(){return this._id},e.prototype.getDomNode=function(){return this._domNode},e.prototype.setSymbolRange=function(e){var t=e.startLineNumber,n=this._editor.getModel().getLineFirstNonWhitespaceColumn(t);this._widgetPosition={position:{lineNumber:t,column:n},preference:[s.ContentWidgetPositionPreference.ABOVE] +}},e.prototype.getPosition=function(){return this._widgetPosition},e.prototype.isVisible=function(){return this._domNode.hasAttribute("monaco-visible-content-widget")},e._idPool=0,e}(),p=function(){function e(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}return e.prototype.addDecoration=function(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)},e.prototype.removeDecoration=function(e){this._removeDecorations.push(e)},e.prototype.commit=function(e){for(var t=e.deltaDecorations(this._removeDecorations,this._addDecorations),n=0,i=t.length;n a:hover { color: "+i+" !important; }")})}),define(t[512],n([1,0,14,10,2,68,11,17,511,34,37,452]),function(e,t,n,i,o,r,s,l,d,c,h,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e,t,n){var i=this;this._editor=e,this._commandService=t,this._notificationService=n,this._isEnabled=this._editor.getConfiguration().contribInfo.codeLens,this._globalToDispose=[],this._localToDispose=[],this._lenses=[],this._currentFindCodeLensSymbolsPromise=null,this._modelChangeCounter=0,this._globalToDispose.push(this._editor.onDidChangeModel(function(){return i._onModelChange()})),this._globalToDispose.push(this._editor.onDidChangeModelLanguage(function(){return i._onModelChange()})),this._globalToDispose.push(this._editor.onDidChangeConfiguration(function(e){var t=i._isEnabled;i._isEnabled=i._editor.getConfiguration().contribInfo.codeLens,t!==i._isEnabled&&i._onModelChange()})), +this._globalToDispose.push(l.CodeLensProviderRegistry.onDidChange(this._onModelChange,this)),this._onModelChange()}return e.prototype.dispose=function(){this._localDispose(),this._globalToDispose=o.dispose(this._globalToDispose)},e.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=null,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=null),this._localToDispose=o.dispose(this._localToDispose)},e.prototype.getId=function(){return e.ID},e.prototype._onModelChange=function(){var e=this;this._localDispose();var t=this._editor.getModel();if(t&&this._isEnabled&&l.CodeLensProviderRegistry.has(t)){for(var s=0,a=l.CodeLensProviderRegistry.all(t);s0&&e._detectVisibleLenses.schedule()})),this._localToDispose.push(this._editor.onDidLayoutChange(function(t){e._detectVisibleLenses.schedule()})),this._localToDispose.push(o.toDisposable(function(){if(e._editor.getModel()){var t=r.StableEditorScrollState.capture(e._editor);e._editor.changeDecorations(function(t){e._editor.changeViewZones(function(n){e._disposeAllLenses(t,n)})}),t.restore(e._editor)}else e._disposeAllLenses(null,null)})),h.schedule()}},e.prototype._disposeAllLenses=function(e,t){var n=new d.CodeLensHelper;this._lenses.forEach(function(e){return e.dispose(n,t)}),e&&n.commit(e),this._lenses=[]},e.prototype._renderCodeLensSymbols=function(e){var t=this;if(this._editor.getModel()){for(var n,i=this._editor.getModel().getLineCount(),o=[],s=0,a=e;si||(n&&n[n.length-1].symbol.range.startLineNumber===u?n.push(l):(n=[l],o.push(n)))}var c=r.StableEditorScrollState.capture(this._editor);this._editor.changeDecorations(function(e){t._editor.changeViewZones(function(n){for(var i=0,r=0,s=new d.CodeLensHelper;r=0?t+1:1},e.prototype.getCurrentMatchesPosition=function(t){for(var n=this._editor.getModel().getDecorationsInRange(t),i=0,o=n.length;i1e3){s=e._FIND_MATCH_NO_OVERVIEW_DECORATION +;for(var l=o._editor.getModel().getLineCount(),u=o._editor.getLayoutInfo().height/l,d=Math.max(2,Math.ceil(3/u)),c=t[0].range.startLineNumber,h=t[0].range.endLineNumber,p=1,f=t.length;p=g.startLineNumber?g.endLineNumber>h&&(h=g.endLineNumber):(a.push({range:new n.Range(c,1,h,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),c=g.startLineNumber,h=g.endLineNumber)}a.push({range:new n.Range(c,1,h,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var m=new Array(t.length),p=0,f=t.length;p=0;t--){var n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.endLineNumber>e.lineNumber)){if(i.endLineNumbere.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},e.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;te.lineNumber)return o;if(!(o.startColumn0},e.prototype._cannotFind=function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1},e.prototype._setCurrentFindMatch=function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}, +e.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||1===i?(1===n?n=o.getLineCount():n--,i=o.getLineMaxColumn(n)):i--,new s.Position(n,i)},e.prototype._moveToPrevMatch=function(n,i){if(void 0===i&&(i=!1),this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel() +;return t||i===o.getLineMaxColumn(n)?(n===o.getLineCount()?n=1:n++,i=1):i++,new s.Position(n,i)},e.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()=t.MATCHES_LIMIT?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},e.prototype._largeReplaceAll=function(){var e=new c.SearchParams(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="m";t.ignoreCase&&(n+="i"), +t.global&&(n+="g"),t=new RegExp(t.source,n)}var i,o=this._editor.getModel(),s=o.getValue(f.EndOfLinePreference.LF),a=o.getFullModelRange(),l=this._getReplacePattern();i=l.hasReplacementPatterns?s.replace(t,function(){return l.buildReplaceString(arguments)}):s.replace(t,l.buildReplaceString(null));var u=new r.ReplaceCommandThatPreservesSelection(a,i,this._editor.getSelection());this._executeEditorCommand("replaceAll",u)}},e.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns,1073741824),i=[],o=0,r=n.length;o=0?this._markers[this._nextIdx]:void 0;this._markers=e||[],this._markers.sort(b.compareMarker),this._nextIdx=t?Math.max(-1,m.binarySearch(this._markers,t,b.compareMarker)):-1,this._onMarkerSetChanged.fire(this)}, +e.prototype.withoutWatchingEditorPosition=function(e){this._ignoreSelectionChange=!0;try{e()}finally{this._ignoreSelectionChange=!1}},e.prototype._initIdx=function(e){for(var t=!1,n=this._editor.getPosition(),i=0;i0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:i=!0),n!==this._nextIdx){var o=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(o)}return i},e.prototype.canNavigate=function(){return this._markers.length>0},e.prototype.findMarkerAtPosition=function(e){for(var t=0,n=this._markers;tthis._editor.getModel().getLineCount())return[];var n=g.ColorDetector.get(this._editor),i=this._editor.getModel().getLineMaxColumn(t),o=!1;return this._editor.getLineDecorations(t).map(function(s){ +var a=s.range.startLineNumber===t?s.range.startColumn:1,l=s.range.endLineNumber===t?s.range.endColumn:i;if(a>e._range.startColumn||e._range.endColumn>l)return null;var u=new r.Range(e._range.startLineNumber,a,e._range.startLineNumber,l),d=n.getColorData(s.range.getStartPosition());if(!o&&d){o=!0;var h=d.colorInfo,p=h.color,f=h.range;return new b(f,p,d.provider)}if(c.isEmptyMarkdownString(s.options.hoverMessage))return null;var g=void 0;return s.options.hoverMessage&&(g=Array.isArray(s.options.hoverMessage)?s.options.hoverMessage.slice():[s.options.hoverMessage]),{contents:g,range:u}}).filter(function(e){return!!e})},e.prototype.onResult=function(e,t){this._result=t?e.concat(this._result.sort(function(e,t){return e instanceof b?-1:t instanceof b?1:0})):this._result.concat(e)},e.prototype.getResult=function(){return this._result.slice(0)},e.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},e.prototype._getLoadingMessage=function(){return{ +range:this._range,contents:[(new c.MarkdownString).appendText(n.localize(0,null))]}},e}(),w=function(e){function t(n,o,r){var s=e.call(this,t.ID,n)||this;return s._themeService=r,s.renderDisposable=v.Disposable.None,s._computer=new S(s._editor),s._highlightDecorations=[],s._isChangingDecorations=!1,s._markdownRenderer=o,s._register(o.onDidRenderCodeBlock(s.onContentsChange,s)),s._hoverOperation=new u.HoverOperation(s._computer,function(e){return s._withResult(e,!0)},null,function(e){return s._withResult(e,!1)}),s._register(i.addStandardDisposableListener(s.getDomNode(),i.EventType.FOCUS,function(){s._colorPicker&&i.addClass(s.getDomNode(),"colorpicker-hover")})),s._register(i.addStandardDisposableListener(s.getDomNode(),i.EventType.BLUR,function(){i.removeClass(s.getDomNode(),"colorpicker-hover")})),s._register(n.onDidChangeConfiguration(function(e){s._hoverOperation.setHoverTime(s._editor.getConfiguration().contribInfo.hover.delay)})),s}return o(t,e),t.prototype.dispose=function(){ +this.renderDisposable.dispose(),this.renderDisposable=v.Disposable.None,this._hoverOperation.cancel(),e.prototype.dispose.call(this)},t.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},t.prototype.startShowingAt=function(e,t,n){if(!this._lastRange||!this._lastRange.equalsRange(e)){if(this._hoverOperation.cancel(),this.isVisible)if(this._showAtPosition.lineNumber!==e.startLineNumber)this.hide();else{for(var i=[],o=0,r=this._messages.length;o=e.endColumn&&i.push(s)}if(i.length>0){if(function(e,t){if(!e&&t||e&&!t||e.length!==t.length)return!1;for(var n=0;n0?this._renderMessages(this._lastRange,this._messages):t&&this.hide()},t.prototype._renderMessages=function(e,n){var i=this;this.renderDisposable.dispose(),this._colorPicker=null;var o,a=Number.MAX_VALUE,l=n[0].range,u=document.createDocumentFragment(),d=!0,h=!1;n.forEach(function(t){if(t.range)if(a=Math.min(a,t.range.startColumn),l=r.Range.plusRange(l,t.range),t instanceof b){h=!0 +;var n=t.color,g=n.red,S=n.green,w=n.blue,E=n.alpha,L=new m.RGBA(255*g,255*S,255*w,E),x=new m.Color(L),N=i._editor.getModel(),I=new r.Range(t.range.startLineNumber,t.range.startColumn,t.range.endLineNumber,t.range.endColumn),M={range:t.range,color:t.color},D=new p.ColorPickerModel(x,[],0),T=new f.ColorPickerWidget(u,D,i._editor.getConfiguration().pixelRatio,i._themeService);_.getColorPresentations(N,M,t.provider,y.CancellationToken.None).then(function(n){D.colorPresentations=n;var l=i._editor.getModel().getValueInRange(t.range);D.guessColorPresentation(x,l);var d=function(){var e,t;D.presentation.textEdit?(e=[D.presentation.textEdit],t=(t=new r.Range(D.presentation.textEdit.range.startLineNumber,D.presentation.textEdit.range.startColumn,D.presentation.textEdit.range.endLineNumber,D.presentation.textEdit.range.endColumn)).setEndPosition(t.endLineNumber,t.startColumn+D.presentation.textEdit.text.length)):(e=[{identifier:null,range:I,text:D.presentation.label,forceMoveMarkers:!1}], +t=I.setEndPosition(I.endLineNumber,I.startColumn+D.presentation.label.length)),i._editor.executeEdits("colorpicker",e),D.presentation.additionalTextEdits&&(e=D.presentation.additionalTextEdits.slice(),i._editor.executeEdits("colorpicker",e),i.hide()),i._editor.pushUndoStop(),I=t},c=function(e){return _.getColorPresentations(N,{range:I,color:{red:e.rgba.r/255,green:e.rgba.g/255,blue:e.rgba.b/255,alpha:e.rgba.a}},t.provider,y.CancellationToken.None).then(function(e){D.colorPresentations=e})},h=D.onColorFlushed(function(e){c(e).then(d)}),p=D.onDidChangeColor(c);i._colorPicker=T,i.showAt(new s.Position(e.startLineNumber,a),i._shouldFocus),i.updateContents(u),i._colorPicker.layout(),i.renderDisposable=v.combinedDisposable([h,p,T,o])})}else t.contents.filter(function(e){return!c.isEmptyMarkdownString(e)}).forEach(function(e){var t=i._markdownRenderer.render(e);o=t,u.appendChild(C("div.hover-row",null,t.element)),d=!1})}),h||d||(this.showAt(new s.Position(e.startLineNumber,a),this._shouldFocus), +this.updateContents(u)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[{range:l,options:t._DECORATION_OPTIONS}]),this._isChangingDecorations=!1},t.ID="editor.contrib.modesContentHoverWidget",t._DECORATION_OPTIONS=h.ModelDecorationOptions.register({className:"hoverHighlight"}),t}(d.ContentHoverWidget);t.ModesContentHoverWidget=w}),define(t[520],n([1,0,320,39,18,62,64,3,11,23,519,255,2,16,22,20,121,378]),function(e,t,n,i,r,s,l,d,c,h,p,f,g,m,v,_,y){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var C=function(){function e(e,t,n,i){var o=this;this._editor=e,this._openerService=t,this._modeService=n,this._themeService=i,this._toUnhook=[],this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(e){e.contribInfo&&(o._hideWidgets(),o._unhookEvents(),o._hookEvents())})}return Object.defineProperty(e.prototype,"contentWidget",{get:function(){ +return this._contentWidget||this._createHoverWidget(),this._contentWidget},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"glyphWidget",{get:function(){return this._glyphWidget||this._createHoverWidget(),this._glyphWidget},enumerable:!0,configurable:!0}),e.get=function(t){return t.getContribution(e.ID)},e.prototype._hookEvents=function(){var e=this,t=function(){return e._hideWidgets()},n=this._editor.getConfiguration().contribInfo.hover;this._isHoverEnabled=n.enabled,this._isHoverSticky=n.sticky,this._isHoverEnabled?(this._toUnhook.push(this._editor.onMouseDown(function(t){return e._onEditorMouseDown(t)})),this._toUnhook.push(this._editor.onMouseUp(function(t){return e._onEditorMouseUp(t)})),this._toUnhook.push(this._editor.onMouseMove(function(t){return e._onEditorMouseMove(t)})),this._toUnhook.push(this._editor.onKeyDown(function(t){return e._onKeyDown(t)})),this._toUnhook.push(this._editor.onDidChangeModelDecorations(function(){return e._onModelDecorationsChanged() +}))):this._toUnhook.push(this._editor.onMouseMove(t)),this._toUnhook.push(this._editor.onMouseLeave(t)),this._toUnhook.push(this._editor.onDidChangeModel(t)),this._toUnhook.push(this._editor.onDidScrollChange(function(t){return e._onEditorScrollChanged(t)}))},e.prototype._unhookEvents=function(){this._toUnhook=g.dispose(this._toUnhook)},e.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},e.prototype._onEditorScrollChanged=function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()},e.prototype._onEditorMouseDown=function(e){this._isMouseDown=!0;var t=e.target.type;t!==h.MouseTargetType.CONTENT_WIDGET||e.target.detail!==p.ModesContentHoverWidget.ID?t===h.MouseTargetType.OVERLAY_WIDGET&&e.target.detail===f.ModesGlyphHoverWidget.ID||(t!==h.MouseTargetType.OVERLAY_WIDGET&&e.target.detail!==f.ModesGlyphHoverWidget.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0}, +e.prototype._onEditorMouseUp=function(e){this._isMouseDown=!1},e.prototype._onEditorMouseMove=function(e){var t=e.target.type,n=r.isMacintosh?e.event.metaKey:e.event.ctrlKey;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())&&(!this._isHoverSticky||t!==h.MouseTargetType.CONTENT_WIDGET||e.target.detail!==p.ModesContentHoverWidget.ID||n)&&(!this._isHoverSticky||t!==h.MouseTargetType.OVERLAY_WIDGET||e.target.detail!==f.ModesGlyphHoverWidget.ID||n)){if(t===h.MouseTargetType.CONTENT_EMPTY){var i=this._editor.getConfiguration().fontInfo.typicalHalfwidthCharacterWidth/2,o=e.target.detail;o&&!o.isAfterLines&&"number"==typeof o.horizontalDistanceToText&&o.horizontalDistanceToText1&&(o=new s.Selection(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn+d-1));var c=new h.InPlaceReplaceCommand(a,o,n.value);i.editor.pushUndoStop(),i.editor.executeCommand(t,c),i.editor.pushUndoStop(),i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[{range:u,options:e.DECORATION}]),i.decorationRemover&&i.decorationRemover.cancel(),i.decorationRemover=v.timeout(350),i.decorationRemover.then(function(){ +return i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[])}).catch(_.onUnexpectedError)}}).catch(_.onUnexpectedError)):void 0},e.ID="editor.contrib.inPlaceReplaceController",e.DECORATION=m.ModelDecorationOptions.register({className:"valueSetReplacement"}),e=a([u(1,c.IEditorWorkerService)],e)}(),C=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.up",label:n.localize(0,null),alias:"Replace with Previous Value",precondition:l.EditorContextKeys.writable,kbOpts:{kbExpr:l.EditorContextKeys.editorTextFocus,primary:3154,weight:100}})||this}return o(t,e),t.prototype.run=function(e,t){var n=y.get(t);if(n)return i.TPromise.wrap(n.run(this.id,!0))},t}(d.EditorAction),b=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.down",label:n.localize(1,null),alias:"Replace with Next Value",precondition:l.EditorContextKeys.writable,kbOpts:{kbExpr:l.EditorContextKeys.editorTextFocus,primary:3156,weight:100}})||this}return o(t,e),t.prototype.run=function(e,t){ +var n=y.get(t);if(n)return i.TPromise.wrap(n.run(this.id,!1))},t}(d.EditorAction);d.registerEditorContribution(y),d.registerEditorAction(C),d.registerEditorAction(b),f.registerThemingParticipant(function(e,t){var n=e.getColor(g.editorBracketMatchBorder);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+n+"; }")})});var d=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}l((i=i.apply(e,t||[])).next())})},c=this&&this.__generator||function(e,t){function n(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1} +;case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]1;s.toggleClass(this.element,"multiple",e),this.keyMultipleSignatures.set(e),this.signature.innerHTML="",this.docs.innerHTML="";var t=this.hints.signatures[this.currentSignature];if(t){var o=s.append(this.signature,L(".code")),r=t.parameters.length>0,a=this.editor.getConfiguration().fontInfo;if(o.style.fontSize=a.fontSize+"px",o.style.fontFamily=a.fontFamily,r)this.renderParameters(o,t,this.hints.activeParameter);else{s.append(o,L("span")).textContent=t.label}i.dispose(this.renderDisposeables),this.renderDisposeables=[];var u=t.parameters[this.hints.activeParameter];if(u&&u.documentation){var d=L("span.documentation");if("string"==typeof u.documentation)d.textContent=u.documentation;else{c=this.markdownRenderer.render(u.documentation);s.addClass(c.element,"markdown-docs"),this.renderDisposeables.push(c), +d.appendChild(c.element)}s.append(this.docs,L("p",null,d))}if(s.toggleClass(this.signature,"has-docs",!!t.documentation),"string"==typeof t.documentation)s.append(this.docs,L("p",null,t.documentation));else{var c=this.markdownRenderer.render(t.documentation);s.addClass(c.element,"markdown-docs"),this.renderDisposeables.push(c),s.append(this.docs,c.element)}var h=String(this.currentSignature+1);if(this.hints.signatures.length<10&&(h+="/"+this.hints.signatures.length),this.overloads.textContent=h,u){var p=u.label;this.announcedLabel!==p&&(l.alert(n.localize(0,null,p)),this.announcedLabel=p)}this.editor.layoutContentWidget(this),this.scrollbar.scanDomNode()}},e.prototype.renderParameters=function(e,t,n){for(var i,o=t.label.length,r=0,a=t.parameters.length-1;a>=0;a--){var l=t.parameters[a],u=0,d=0;(r=t.label.lastIndexOf(l.label,o-1))>=0&&(u=r,d=r+l.label.length),(i=document.createElement("span")).textContent=t.label.substring(d,o),s.prepend(e,i), +(i=document.createElement("span")).className="parameter "+(a===n?"active":""),i.textContent=t.label.substring(u,d),s.prepend(e,i),o=u}(i=document.createElement("span")).textContent=t.label.substring(0,o),s.prepend(e,i)},e.prototype.next=function(){var e=this.hints.signatures.length,t=this.currentSignature%e==e-1;return e<2||t?(this.cancel(),!1):(this.currentSignature++,this.render(),!0)},e.prototype.previous=function(){var e=this.hints.signatures.length,t=0===this.currentSignature;return e<2||t?(this.cancel(),!1):(this.currentSignature--,this.render(),!0)},e.prototype.cancel=function(){this.model.cancel()},e.prototype.getDomNode=function(){return this.element},e.prototype.getId=function(){return e.ID},e.prototype.trigger=function(){this.model.trigger(0)},e.prototype.updateMaxHeight=function(){var e=Math.max(this.editor.getLayoutInfo().height/4,250);this.element.style.maxHeight=e+"px"},e.prototype.dispose=function(){this.disposables=i.dispose(this.disposables), +this.renderDisposeables=i.dispose(this.renderDisposeables),this.model&&(this.model.dispose(),this.model=null)},e.ID="editor.widget.parameterHintsWidget",e=a([u(1,m.IContextKeyService),u(2,S.IOpenerService),u(3,w.IModeService)],e)}();t.ParameterHintsWidget=N,C.registerThemingParticipant(function(e,t){var n=e.getColor(b.editorHoverBorder);if(n){var i=e.type===C.HIGH_CONTRAST?2:1;t.addRule(".monaco-editor .parameter-hints-widget { border: "+i+"px solid "+n+"; }"),t.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+n.transparent(.5)+"; }"),t.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+n.transparent(.5)+"; }")}var o=e.getColor(b.editorHoverBackground);o&&t.addRule(".monaco-editor .parameter-hints-widget { background-color: "+o+"; }");var r=e.getColor(b.textLinkForeground);r&&t.addRule(".monaco-editor .parameter-hints-widget a { color: "+r+"; }");var s=e.getColor(b.textCodeBlockBackground) +;s&&t.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+s+"; }")})}),define(t[527],n([1,0,327,2,15,20,19,11,526,175]),function(e,t,n,i,r,s,l,d,c,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){this.editor=e,this.widget=t.createInstance(c.ParameterHintsWidget,this.editor)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.getId=function(){return e.ID},e.prototype.cancel=function(){this.widget.cancel()},e.prototype.previous=function(){this.widget.previous()},e.prototype.next=function(){this.widget.next()},e.prototype.trigger=function(){this.widget.trigger()},e.prototype.dispose=function(){this.widget=i.dispose(this.widget)},e.ID="editor.controller.parameterHints",e=a([u(1,r.IInstantiationService)],e)}(),f=function(e){function t(){return e.call(this,{id:"editor.action.triggerParameterHints",label:n.localize(0,null),alias:"Trigger Parameter Hints",precondition:s.EditorContextKeys.hasSignatureHelpProvider,kbOpts:{ +kbExpr:s.EditorContextKeys.editorTextFocus,primary:3082,weight:100}})||this}return o(t,e),t.prototype.run=function(e,t){var n=p.get(t);n&&n.trigger()},t}(d.EditorAction);t.TriggerParameterHintsAction=f,d.registerEditorContribution(p),d.registerEditorAction(f);var g=d.EditorCommand.bindToContribution(p.get);d.registerEditorCommand(new g({id:"closeParameterHints",precondition:h.Context.Visible,handler:function(e){return e.cancel()},kbOpts:{weight:175,kbExpr:s.EditorContextKeys.editorTextFocus,primary:9,secondary:[1033]}})),d.registerEditorCommand(new g({id:"showPrevParameterHint",precondition:l.ContextKeyExpr.and(h.Context.Visible,h.Context.MultipleSignatures),handler:function(e){return e.previous()},kbOpts:{weight:175,kbExpr:s.EditorContextKeys.editorTextFocus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),d.registerEditorCommand(new g({id:"showNextParameterHint",precondition:l.ContextKeyExpr.and(h.Context.Visible,h.Context.MultipleSignatures),handler:function(e){return e.next()},kbOpts:{ +weight:175,kbExpr:s.EditorContextKeys.editorTextFocus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))}),define(t[144],n([1,0,329,67,6,28,56,9,7,69,32,192,141,19,27,385]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.inPeekEditor=new f.RawContextKey("inReferenceSearchEditor",!0),e.notInPeekEditor=e.inPeekEditor.toNegated()}(t.PeekContext||(t.PeekContext={})),t.getOuterEditor=function(e){var t=e.get(c.ICodeEditorService).getFocusedCodeEditor();return t instanceof p.EmbeddedCodeEditorWidget?t.getParentEditor():t};var m={headerBackgroundColor:g.Color.white,primaryHeadingColor:g.Color.fromHex("#333333"),secondaryHeadingColor:g.Color.fromHex("#6c6c6cb3")},v=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this,t,n)||this;return i._onDidClose=new l.Emitter,s.mixin(i.options,m,!1),i}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._onDidClose.fire(this)}, +Object.defineProperty(t.prototype,"onDidClose",{get:function(){return this._onDidClose.event},enumerable:!0,configurable:!0}),t.prototype.style=function(t){var n=this.options;t.headerBackgroundColor&&(n.headerBackgroundColor=t.headerBackgroundColor),t.primaryHeadingColor&&(n.primaryHeadingColor=t.primaryHeadingColor),t.secondaryHeadingColor&&(n.secondaryHeadingColor=t.secondaryHeadingColor),e.prototype.style.call(this,t)},t.prototype._applyStyles=function(){e.prototype._applyStyles.call(this);var t=this.options;this._headElement&&(this._headElement.style.backgroundColor=t.headerBackgroundColor.toString()),this._primaryHeading&&(this._primaryHeading.style.color=t.primaryHeadingColor.toString()),this._secondaryHeading&&(this._secondaryHeading.style.color=t.secondaryHeadingColor.toString()),this._bodyElement&&(this._bodyElement.style.borderColor=t.frameColor.toString())},t.prototype._fillContainer=function(e){this.setCssClass("peekview-widget"),this._headElement=a.$(".head").getHTMLElement(), +this._bodyElement=a.$(".body").getHTMLElement(),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)},t.prototype._fillHead=function(e){var t=this,o=a.$(".peekview-title").on(u.EventType.CLICK,function(e){return t._onTitleClick(e)}).appendTo(this._headElement).getHTMLElement();this._primaryHeading=a.$("span.filename").appendTo(o).getHTMLElement(),this._secondaryHeading=a.$("span.dirname").appendTo(o).getHTMLElement(),this._metaHeading=a.$("span.meta").appendTo(o).getHTMLElement();var r=a.$(".peekview-actions").appendTo(this._headElement),s=this._getActionBarOptions();this._actionbarWidget=new d.ActionBar(r.getHTMLElement(),s),this._disposables.push(this._actionbarWidget),this._actionbarWidget.push(new i.Action("peekview.close",n.localize(0,null),"close-peekview-action",!0,function(){return t.dispose(),null}),{label:!1,icon:!0})},t.prototype._getActionBarOptions=function(){return{}},t.prototype._onTitleClick=function(e){}, +t.prototype.setTitle=function(e,t){a.$(this._primaryHeading).safeInnerHtml(e),this._primaryHeading.setAttribute("aria-label",e),t?a.$(this._secondaryHeading).safeInnerHtml(t):u.clearNode(this._secondaryHeading)},t.prototype.setMetaTitle=function(e){e?a.$(this._metaHeading).safeInnerHtml(e):u.clearNode(this._metaHeading)},t.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{var n=Math.ceil(1.2*this.editor.getConfiguration().lineHeight),i=e-(n+2);this._doLayoutHead(n,t),this._doLayoutBody(i,t)}},t.prototype._doLayoutHead=function(e,t){this._headElement.style.height=r.format("{0}px",e),this._headElement.style.lineHeight=this._headElement.style.height},t.prototype._doLayoutBody=function(e,t){this._bodyElement.style.height=r.format("{0}px",e)},t}(h.ZoneWidget);t.PeekViewWidget=v}),define(t[529],n([1,0,336,2,13,3,23,16,22,12,388]),function(e,t,n,i,o,r,s,l,d,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function e(e,t){var n=this;this.themeService=t, +this._disposables=[],this.allowEditorOverflow=!0,this._currentAcceptInput=null,this._currentCancelInput=null,this._editor=e,this._editor.addContentWidget(this),this._disposables.push(e.onDidChangeConfiguration(function(e){e.fontInfo&&n.updateFont()})),this._disposables.push(t.onThemeChange(function(e){return n.onThemeChange(e)}))}return e.prototype.onThemeChange=function(e){this.updateStyles(e)},e.prototype.dispose=function(){this._disposables=i.dispose(this._disposables),this._editor.removeContentWidget(this)},e.prototype.getId=function(){return"__renameInputWidget"},e.prototype.getDomNode=function(){return this._domNode||(this._inputField=document.createElement("input"),this._inputField.className="rename-input",this._inputField.type="text",this._inputField.setAttribute("aria-label",n.localize(0,null)),this._domNode=document.createElement("div"),this._domNode.style.height=this._editor.getConfiguration().lineHeight+"px",this._domNode.className="monaco-editor rename-box", +this._domNode.appendChild(this._inputField),this.updateFont(),this.updateStyles(this.themeService.getTheme())),this._domNode},e.prototype.updateStyles=function(e){if(this._inputField){var t=e.getColor(d.inputBackground),n=e.getColor(d.inputForeground),i=e.getColor(d.widgetShadow),o=e.getColor(d.inputBorder);this._inputField.style.backgroundColor=t?t.toString():null,this._inputField.style.color=n?n.toString():null,this._inputField.style.borderWidth=o?"1px":"0px",this._inputField.style.borderStyle=o?"solid":"none",this._inputField.style.borderColor=o?o.toString():"none",this._domNode.style.boxShadow=i?" 0 2px 8px "+i:null}},e.prototype.updateFont=function(){if(this._inputField){var e=this._editor.getConfiguration().fontInfo;this._inputField.style.fontFamily=e.fontFamily,this._inputField.style.fontWeight=e.fontWeight,this._inputField.style.fontSize=e.fontSize+"px"}},e.prototype.getPosition=function(){return this._visible?{position:this._position, +preference:[s.ContentWidgetPositionPreference.BELOW,s.ContentWidgetPositionPreference.ABOVE]}:null},e.prototype.acceptInput=function(){this._currentAcceptInput&&this._currentAcceptInput()},e.prototype.cancelInput=function(e){this._currentCancelInput&&this._currentCancelInput(e)},e.prototype.getInput=function(e,t,n,s){var a=this;this._position=new c.Position(e.startLineNumber,e.startColumn),this._inputField.value=t,this._inputField.setAttribute("selectionStart",n.toString()),this._inputField.setAttribute("selectionEnd",s.toString()),this._inputField.size=Math.max(1.1*(e.endColumn-e.startColumn),20);var l,u=[];return l=function(){i.dispose(u),a._hide()},new o.TPromise(function(n){a._currentCancelInput=function(e){return a._currentAcceptInput=null,a._currentCancelInput=null,n(e),!0},a._currentAcceptInput=function(){0!==a._inputField.value.trim().length&&a._inputField.value!==t?(a._currentAcceptInput=null,a._currentCancelInput=null,n(a._inputField.value)):a.cancelInput(!0)} +;u.push(a._editor.onDidChangeCursorSelection(function(){r.Range.containsPosition(e,a._editor.getPosition())||a.cancelInput(!0)})),u.push(a._editor.onDidBlurEditorWidget(function(){return a.cancelInput(!1)})),a._show()},function(){a._currentCancelInput(!0)}).then(function(e){return l(),e},function(e){return l(),o.TPromise.wrapError(e)})},e.prototype._show=function(){var e=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._editor.layoutContentWidget(this),setTimeout(function(){e._inputField.focus(),e._inputField.setSelectionRange(parseInt(e._inputField.getAttribute("selectionStart")),parseInt(e._inputField.getAttribute("selectionEnd")))},100)},e.prototype._hide=function(){this._visible=!1,this._editor.layoutContentWidget(this)},e=a([u(1,l.IThemeService)],e)}();t.default=h}),define(t[530],n([1,0,335,10,13,19,92,11,20,529,16,14,17,12,52,3,143,68,37,127,31,32]),function(e,t,n,i,r,s,l,h,p,f,g,m,v,_,y,C,b,S,w,E,L,x){"use strict";function N(e,t,n){ +return d(this,void 0,void 0,function(){return c(this,function(i){return[2,new I(e,t).provideRenameEdits(n)]})})}Object.defineProperty(t,"__esModule",{value:!0});var I=function(){function e(e,t){this.model=e,this.position=t,this._provider=v.RenameProviderRegistry.ordered(e)}return e.prototype.hasProvider=function(){return this._provider.length>0},e.prototype.resolveRenameLocation=function(){return d(this,void 0,void 0,function(){var e,t,n,i=this;return c(this,function(o){switch(o.label){case 0:return(e=this._provider[0]).resolveRenameLocation?[4,m.asWinJsPromise(function(t){return e.resolveRenameLocation(i.model,i.position,t)})]:[3,2];case 1:t=o.sent(),o.label=2;case 2:return t||(n=this.model.getWordAtPosition(this.position))&&(t={range:new C.Range(this.position.lineNumber,n.startColumn,this.position.lineNumber,n.endColumn),text:n.word}),[2,t]}})})},e.prototype.provideRenameEdits=function(e,t,i,o){return void 0===t&&(t=0),void 0===i&&(i=[]),void 0===o&&(o=this.position),d(this,void 0,void 0,function(){ +var o,r,s=this;return c(this,function(a){switch(a.label){case 0:return t>=this._provider.length?[2,{edits:void 0,rejectReason:i.join("\n")}]:(o=this._provider[t],[4,m.asWinJsPromise(function(t){return o.provideRenameEdits(s.model,s.position,e,t)})]);case 1:return(r=a.sent())?r.rejectReason?[2,this.provideRenameEdits(e,t+1,i.concat(r.rejectReason))]:[2,r]:[2,this.provideRenameEdits(e,t+1,i.concat(n.localize(0,null)))]}})})},e}();t.rename=N;var M=new s.RawContextKey("renameInputVisible",!1),D=function(){function e(e,t,n,i,o,r){this.editor=e,this._notificationService=t,this._bulkEditService=n,this._progressService=i,this._renameInputField=new f.default(e,r),this._renameInputVisible=M.bindTo(o)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._renameInputField.dispose()},e.prototype.getId=function(){return e.ID},e.prototype.run=function(){return d(this,void 0,void 0,function(){var e,t,i,o,s,a,l,u=this;return c(this,function(d){switch(d.label){case 0: +if(e=this.editor.getPosition(),!(t=new I(this.editor.getModel(),e)).hasProvider())return[2,void 0];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,t.resolveRenameLocation()];case 2:return i=d.sent(),[3,4];case 3:return o=d.sent(),b.MessageController.get(this.editor).showMessage(o,e),[2,void 0];case 4:return i?(s=this.editor.getSelection(),a=0,l=i.text.length,C.Range.isEmpty(s)||C.Range.spansMultipleLines(s)||!C.Range.containsRange(i.range,s)||(a=Math.max(0,s.startColumn-i.range.startColumn),l=Math.min(i.range.endColumn,s.endColumn)-i.range.startColumn),this._renameInputVisible.set(!0),[2,this._renameInputField.getInput(i.range,i.text,a,l).then(function(e){u._renameInputVisible.reset();if("boolean"!=typeof e){u.editor.focus();var o=new S.EditorState(u.editor,15),s=r.TPromise.wrap(t.provideRenameEdits(e,0,[],C.Range.lift(i.range).getStartPosition()).then(function(t){if(!t.rejectReason)return u._bulkEditService.apply(t,{editor:u.editor}).then(function(t){ +t.ariaSummary&&y.alert(n.localize(1,null,i.text,e,t.ariaSummary))});o.validate(u.editor)?b.MessageController.get(u.editor).showMessage(t.rejectReason,u.editor.getPosition()):u._notificationService.info(t.rejectReason)},function(e){return u._notificationService.error(n.localize(2,null)),r.TPromise.wrapError(e)}));return u._progressService.showWhile(s,250),s}e&&u.editor.focus()},function(e){return u._renameInputVisible.reset(),r.TPromise.wrapError(e)})]):[2,void 0]}})})},e.prototype.acceptRenameInput=function(){this._renameInputField.acceptInput()},e.prototype.cancelRenameInput=function(){this._renameInputField.cancelInput(!0)},e.ID="editor.contrib.renameController",e=a([u(1,w.INotificationService),u(2,E.IBulkEditService),u(3,l.IProgressService),u(4,s.IContextKeyService),u(5,g.IThemeService)],e)}(),T=function(e){function t(){return e.call(this,{id:"editor.action.rename",label:n.localize(3,null),alias:"Rename Symbol", +precondition:s.ContextKeyExpr.and(p.EditorContextKeys.writable,p.EditorContextKeys.hasRenameProvider),kbOpts:{kbExpr:p.EditorContextKeys.editorTextFocus,primary:60,weight:100},menuOpts:{group:"1_modification",order:1.1}})||this}return o(t,e),t.prototype.runCommand=function(t,n){var o=this,r=t.get(x.ICodeEditorService),s=n||[void 0,void 0],a=s[0],l=s[1];return L.default.isUri(a)&&_.Position.isIPosition(l)?r.openCodeEditor({resource:a},r.getActiveCodeEditor()).then(function(e){e.setPosition(l),e.invokeWithinContext(function(t){return o.reportTelemetry(t,e),o.run(t,e)})},i.onUnexpectedError):e.prototype.runCommand.call(this,t,n)},t.prototype.run=function(e,t){var n=D.get(t);if(n)return r.TPromise.wrap(n.run())},t}(h.EditorAction);t.RenameAction=T,h.registerEditorContribution(D),h.registerEditorAction(T);var k=h.EditorCommand.bindToContribution(D.get);h.registerEditorCommand(new k({id:"acceptRenameInput",precondition:M,handler:function(e){return e.acceptRenameInput()},kbOpts:{weight:199, +kbExpr:p.EditorContextKeys.focus,primary:3}})),h.registerEditorCommand(new k({id:"cancelRenameInput",precondition:M,handler:function(e){return e.cancelRenameInput()},kbOpts:{weight:199,kbExpr:p.EditorContextKeys.focus,primary:9,secondary:[1033]}})),h.registerDefaultLanguageCommand("_executeDocumentRenameProvider",function(e,t,n){var o=n.newName;if("string"!=typeof o)throw i.illegalArgument("newName");return N(e,t,o)})}),define(t[531],n([1,0,341,102,6,9,10,2,7,138,278,55,49,19,23,101,52,86,103,16,22,72,121,64,62,14,40,398]),function(e,t,n,i,o,r,s,d,c,h,p,f,g,m,v,_,y,C,b,S,w,E,L,x,N,I,M){"use strict";function D(e){return e&&e.match(R)?e:null}function T(e){if(!e)return!1;var t=e.suggestion;return!!t.documentation||t.detail&&t.detail!==t.label}Object.defineProperty(t,"__esModule",{value:!0});var k=!1;t.editorSuggestWidgetBackground=w.registerColor("editorSuggestWidget.background",{dark:w.editorWidgetBackground,light:w.editorWidgetBackground,hc:w.editorWidgetBackground},n.localize(0,null)), +t.editorSuggestWidgetBorder=w.registerColor("editorSuggestWidget.border",{dark:w.editorWidgetBorder,light:w.editorWidgetBorder,hc:w.editorWidgetBorder},n.localize(1,null)),t.editorSuggestWidgetForeground=w.registerColor("editorSuggestWidget.foreground",{dark:w.editorForeground,light:w.editorForeground,hc:w.editorForeground},n.localize(2,null)),t.editorSuggestWidgetSelectedBackground=w.registerColor("editorSuggestWidget.selectedBackground",{dark:w.listFocusBackground,light:w.listFocusBackground,hc:w.listFocusBackground},n.localize(3,null)),t.editorSuggestWidgetHighlightForeground=w.registerColor("editorSuggestWidget.highlightForeground",{dark:w.listHighlightForeground,light:w.listHighlightForeground,hc:w.listHighlightForeground},n.localize(4,null));var R=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i,O=function(){function e(e,t,n){this.widget=e,this.editor=t,this.triggerKeybindingLabel=n} +return Object.defineProperty(e.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=this,i=Object.create(null);i.disposables=[],i.root=e,i.icon=c.append(e,c.$(".icon")),i.colorspan=c.append(i.icon,c.$("span.colorspan"));var o=c.append(e,c.$(".contents")),s=c.append(o,c.$(".main"));i.highlightedLabel=new h.HighlightedLabel(s),i.disposables.push(i.highlightedLabel),i.typeLabel=c.append(s,c.$("span.type-label")),i.readMore=c.append(s,c.$("span.readMore")),i.readMore.title=n.localize(5,null,this.triggerKeybindingLabel);var a=function(){var e=t.editor.getConfiguration(),n=e.fontInfo.fontFamily,o=(e.contribInfo.suggestFontSize||e.fontInfo.fontSize)+"px",r=(e.contribInfo.suggestLineHeight||e.fontInfo.lineHeight)+"px";i.root.style.fontSize=o,s.style.fontFamily=n,s.style.lineHeight=r,i.icon.style.height=r,i.icon.style.width=r,i.readMore.style.height=r,i.readMore.style.width=r};return a(), +r.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(e){return e.fontInfo||e.contribInfo}).on(a,null,i.disposables),i},e.prototype.renderElement=function(e,t,o){var r=this,s=o,a=e.suggestion;if(T(e)?s.root.setAttribute("aria-label",n.localize(6,null,a.label)):s.root.setAttribute("aria-label",n.localize(7,null,a.label)),s.icon.className="icon "+a.type,s.colorspan.style.backgroundColor="","color"===a.type){var l=D(a.label)||"string"==typeof a.documentation&&D(a.documentation);l&&(s.icon.className="icon customcolor",s.colorspan.style.backgroundColor=l)}s.highlightedLabel.set(a.label,i.createMatches(e.matches),"",!0),s.typeLabel.textContent=(a.detail||"").replace(/\n.*$/m,""),T(e)?(c.show(s.readMore),s.readMore.onmousedown=function(e){e.stopPropagation(),e.preventDefault()},s.readMore.onclick=function(e){e.stopPropagation(),e.preventDefault(),r.widget.toggleDetails()}):(c.hide(s.readMore),s.readMore.onmousedown=null,s.readMore.onclick=null)},e.prototype.disposeElement=function(){}, +e.prototype.disposeTemplate=function(e){e.disposables=d.dispose(e.disposables)},e}(),P=function(){function e(e,t,i,o,s){var a=this;this.widget=t,this.editor=i,this.markdownRenderer=o,this.triggerKeybindingLabel=s,this.borderWidth=1,this.disposables=[],this.el=c.append(e,c.$(".details")),this.disposables.push(d.toDisposable(function(){return e.removeChild(a.el)})),this.body=c.$(".body"),this.scrollbar=new f.DomScrollableElement(this.body,{}),c.append(this.el,this.scrollbar.getDomNode()),this.disposables.push(this.scrollbar),this.header=c.append(this.body,c.$(".header")),this.close=c.append(this.header,c.$("span.close")),this.close.title=n.localize(8,null,this.triggerKeybindingLabel),this.type=c.append(this.header,c.$("p.type")),this.docs=c.append(this.body,c.$("p.docs")),this.ariaLabel=null,this.configureFont(),r.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(e){return e.fontInfo}).on(this.configureFont,this,this.disposables),o.onDidRenderCodeBlock(function(){ +return a.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),e.prototype.render=function(e){var t=this;if(this.renderDisposeable=d.dispose(this.renderDisposeable),!e||!T(e))return this.type.textContent="",this.docs.textContent="",c.addClass(this.el,"no-docs"),void(this.ariaLabel=null);if(c.removeClass(this.el,"no-docs"),"string"==typeof e.suggestion.documentation)c.removeClass(this.docs,"markdown-docs"),this.docs.textContent=e.suggestion.documentation;else{c.addClass(this.docs,"markdown-docs"),this.docs.innerHTML="";var n=this.markdownRenderer.render(e.suggestion.documentation);this.renderDisposeable=n,this.docs.appendChild(n.element)}e.suggestion.detail?(this.type.innerText=e.suggestion.detail,c.show(this.type)):(this.type.innerText="",c.hide(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+2*this.borderWidth+"px",this.close.onmousedown=function(e){e.preventDefault(), +e.stopPropagation()},this.close.onclick=function(e){e.preventDefault(),e.stopPropagation(),t.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode(),this.ariaLabel=o.format("{0}\n{1}\n{2}",e.suggestion.label||"",e.suggestion.detail||"",e.suggestion.documentation||"")},e.prototype.getAriaLabel=function(){return this.ariaLabel},e.prototype.scrollDown=function(e){void 0===e&&(e=8),this.body.scrollTop+=e},e.prototype.scrollUp=function(e){void 0===e&&(e=8),this.body.scrollTop-=e},e.prototype.scrollTop=function(){this.body.scrollTop=0},e.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},e.prototype.pageDown=function(){this.scrollDown(80)},e.prototype.pageUp=function(){this.scrollUp(80)},e.prototype.setBorderWidth=function(e){this.borderWidth=e},e.prototype.configureFont=function(){var e=this.editor.getConfiguration(),t=e.fontInfo.fontFamily,n=(e.contribInfo.suggestFontSize||e.fontInfo.fontSize)+"px",i=(e.contribInfo.suggestLineHeight||e.fontInfo.lineHeight)+"px" +;this.el.style.fontSize=n,this.type.style.fontFamily=t,this.close.style.height=i,this.close.style.width=i},e.prototype.dispose=function(){this.disposables=d.dispose(this.disposables),this.renderDisposeable=d.dispose(this.renderDisposeable)},e}(),A=function(){function e(e,n,i,o,s,a,l,u){var d=this;this.editor=e,this.telemetryService=n,this.allowEditorOverflow=!0,this.ignoreFocusEvents=!1,this.editorBlurTimeout=new I.TimeoutTimer,this.showTimeout=new I.TimeoutTimer,this.onDidSelectEmitter=new r.Emitter,this.onDidFocusEmitter=new r.Emitter,this.onDidHideEmitter=new r.Emitter,this.onDidShowEmitter=new r.Emitter,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.storageServiceAvailable=!0,this.expandSuggestionDocs=!1,this.firstFocusInCurrentList=!1 +;var h=a.lookupKeybinding("editor.action.triggerSuggest"),f=h?" ("+h.getLabel()+")":"",g=new L.MarkdownRenderer(e,l,u);this.isAuto=!1,this.focusedItem=null,this.storageService=s,void 0===this.expandDocsSettingFromStorage()&&(this.storageService.store("expandSuggestionDocs",k,E.StorageScope.GLOBAL),void 0===this.expandDocsSettingFromStorage()&&(this.storageServiceAvailable=!1)),this.element=c.$(".editor-widget.suggest-widget"),this.editor.getConfiguration().contribInfo.iconsInSuggestions||c.addClass(this.element,"no-icons"),this.messageElement=c.append(this.element,c.$(".message")),this.listElement=c.append(this.element,c.$(".tree")),this.details=new P(this.element,this,this.editor,g,f);var m=new O(this,this.editor,f);this.list=new p.List(this.listElement,this,[m],{useShadows:!1,selectOnMouseDown:!0,focusOnMouseDown:!1,openController:{shouldOpen:function(){return!1}}}),this.toDispose=[b.attachListStyler(this.list,o,{listInactiveFocusBackground:t.editorSuggestWidgetSelectedBackground, +listInactiveFocusOutline:w.activeContrastBorder}),o.onThemeChange(function(e){return d.onThemeChange(e)}),e.onDidBlurEditorText(function(){return d.onEditorBlur()}),e.onDidLayoutChange(function(){return d.onEditorLayoutChange()}),this.list.onSelectionChange(function(e){return d.onListSelection(e)}),this.list.onFocusChange(function(e){return d.onListFocus(e)}),this.editor.onDidChangeCursorSelection(function(){return d.onCursorSelectionChanged()})],this.suggestWidgetVisible=_.Context.Visible.bindTo(i),this.suggestWidgetMultipleSuggestions=_.Context.MultipleSuggestions.bindTo(i),this.suggestionSupportsAutoAccept=_.Context.AcceptOnKey.bindTo(i),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(o.getTheme())}return e.prototype.onCursorSelectionChanged=function(){0!==this.state&&this.editor.layoutContentWidget(this)},e.prototype.onEditorBlur=function(){var e=this;this.editorBlurTimeout.cancelAndSet(function(){e.editor.hasTextFocus()||e.setState(0)},150)}, +e.prototype.onEditorLayoutChange=function(){3!==this.state&&5!==this.state||!this.expandDocsSettingFromStorage()||this.expandSideOrBelow()},e.prototype.onListSelection=function(e){var t=this;if(e.elements.length){var i=e.elements[0],o=e.indexes[0];i.resolve(M.CancellationToken.None).then(function(){t.onDidSelectEmitter.fire({item:i,index:o,model:t.completionModel}),y.alert(n.localize(11,null,i.suggestion.label)),t.editor.focus()})}},e.prototype._getSuggestionAriaAlertLabel=function(e){return T(e)?n.localize(12,null,e.suggestion.label):n.localize(13,null,e.suggestion.label)},e.prototype._ariaAlert=function(e){this._lastAriaAlertLabel!==e&&(this._lastAriaAlertLabel=e,this._lastAriaAlertLabel&&y.alert(this._lastAriaAlertLabel))},e.prototype.onThemeChange=function(e){var n=e.getColor(t.editorSuggestWidgetBackground);n&&(this.listElement.style.backgroundColor=n.toString(),this.details.element.style.backgroundColor=n.toString(),this.messageElement.style.backgroundColor=n.toString()) +;var i=e.getColor(t.editorSuggestWidgetBorder);i&&(this.listElement.style.borderColor=i.toString(),this.details.element.style.borderColor=i.toString(),this.messageElement.style.borderColor=i.toString(),this.detailsBorderColor=i.toString());var o=e.getColor(w.focusBorder);o&&(this.detailsFocusBorderColor=o.toString()),this.details.setBorderWidth("hc"===e.type?2:1)},e.prototype.onListFocus=function(e){var t=this;if(!this.ignoreFocusEvents){if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this._ariaAlert(null);var n=e.elements[0];if(this._ariaAlert(this._getSuggestionAriaAlertLabel(n)),this.firstFocusInCurrentList=!this.focusedItem,n!==this.focusedItem){this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null);var i=e.indexes[0];this.suggestionSupportsAutoAccept.set(!n.suggestion.noAutoAccept),this.focusedItem=n,this.list.reveal(i), +this.currentSuggestionDetails=I.createCancelablePromise(function(e){return n.resolve(e)}),this.currentSuggestionDetails.then(function(){t.ignoreFocusEvents=!0,t.list.splice(i,1,[n]),t.list.setFocus([i]),t.ignoreFocusEvents=!1,t.expandDocsSettingFromStorage()?t.showDetails():c.removeClass(t.element,"docs-side")}).catch(s.onUnexpectedError).then(function(){t.focusedItem===n&&(t.currentSuggestionDetails=null)}),this.onDidFocusEmitter.fire({item:n,index:i,model:this.completionModel})}}},e.prototype.setState=function(t){if(this.element){var n=this.state!==t;switch(this.state=t,c.toggleClass(this.element,"frozen",4===t),t){case 0:c.hide(this.messageElement,this.details.element,this.listElement),this.hide(),this.listHeight=0,n&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=e.LOADING_MESSAGE,c.hide(this.listElement,this.details.element),c.show(this.messageElement),c.removeClass(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2: +this.messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,c.hide(this.listElement,this.details.element),c.show(this.messageElement),c.removeClass(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:case 4:c.hide(this.messageElement),c.show(this.listElement),this.show();break;case 5:c.hide(this.messageElement),c.show(this.details.element,this.listElement),this.show(),this._ariaAlert(this.details.getAriaLabel())}}},e.prototype.showTriggered=function(e){var t=this;0===this.state&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=setTimeout(function(){t.loadingTimeout=null,t.setState(1)},50)))},e.prototype.showSuggestions=function(e,t,n,i){if(this.loadingTimeout&&(clearTimeout(this.loadingTimeout),this.loadingTimeout=null),this.completionModel!==e&&(this.completionModel=e),n&&2!==this.state&&0!==this.state)this.setState(4);else{var o=this.completionModel.items.length,r=0===o;if(this.suggestWidgetMultipleSuggestions.set(o>1),r)i?this.setState(0):this.setState(2),this.completionModel=null;else{ +var s=this.completionModel.stats;s.wasAutomaticallyTriggered=!!i,this.telemetryService.publicLog("suggestWidget",l({},s,this.editor.getTelemetryData())),this.list.splice(0,this.list.length,this.completionModel.items),n?this.setState(4):this.setState(3),this.list.reveal(t,t),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}}},e.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}},e.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},e.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}},e.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}},e.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},e.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}},e.prototype.getFocusedItem=function(){if(0!==this.state&&2!==this.state&&1!==this.state)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}},e.prototype.toggleDetailsFocus=function(){5===this.state?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):3===this.state&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)), +this.telemetryService.publicLog("suggestWidget:toggleDetailsFocus",this.editor.getTelemetryData())},e.prototype.toggleDetails=function(){if(T(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),c.hide(this.details.element),c.removeClass(this.element,"docs-side"),c.removeClass(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.telemetryService.publicLog("suggestWidget:collapseDetails",this.editor.getTelemetryData());else{if(3!==this.state&&5!==this.state&&4!==this.state)return;this.updateExpandDocsSetting(!0),this.showDetails(),this.telemetryService.publicLog("suggestWidget:expandDetails",this.editor.getTelemetryData())}},e.prototype.showDetails=function(){this.expandSideOrBelow(),c.show(this.details.element),this.details.render(this.list.getFocusedElements()[0]),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(), +this.editor.focus(),this._ariaAlert(this.details.getAriaLabel())},e.prototype.show=function(){var e=this,t=this.updateListHeight();t!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=t),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){c.addClass(e.element,"visible"),e.onDidShowEmitter.fire(e)},100)},e.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),c.removeClass(this.element,"visible")},e.prototype.hideWidget=function(){clearTimeout(this.loadingTimeout),this.setState(0),this.onDidHideEmitter.fire(this)},e.prototype.getPosition=function(){return 0===this.state?null:{position:this.editor.getPosition(),preference:[v.ContentWidgetPositionPreference.BELOW,v.ContentWidgetPositionPreference.ABOVE]}},e.prototype.getDomNode=function(){return this.element},e.prototype.getId=function(){return e.ID},e.prototype.updateListHeight=function(){var e=0;if(2===this.state||1===this.state)e=this.unfocusedHeight;else{ +var t=this.list.contentHeight/this.unfocusedHeight;e=Math.min(t,12)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.list.layout(e),e},e.prototype.adjustDocsPosition=function(){var e=this.editor.getConfiguration().fontInfo.lineHeight,t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=c.getDomNodePagePosition(this.editor.getDomNode()),i=n.left+t.left,o=n.top+t.top+t.height,r=c.getDomNodePagePosition(this.element),s=r.left,a=r.top;sa&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},e.prototype.expandSideOrBelow=function(){if(!T(this.focusedItem)&&this.firstFocusInCurrentList)return c.removeClass(this.element,"docs-side"), +void c.removeClass(this.element,"docs-below");var e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])0&&this._activeAcceptCharacters.add(i[0])}}else this.reset()},e.prototype.reset=function(){this._activeItem=void 0},e.prototype.dispose=function(){s.dispose(this._disposables)},e}(),E=function(){function e(e,t,n,i){var o=this;this._editor=e,this._commandService=t,this._contextKeyService=n,this._instantiationService=i,this._toDispose=[],this._model=new C.SuggestModel(this._editor),this._memory=i.createInstance(S.SuggestMemories,this._editor.getConfiguration().contribInfo.suggestSelection),this._toDispose.push(this._model.onDidTrigger(function(e){o._widget||o._createSuggestWidget(),o._widget.showTriggered(e.auto)})), +this._toDispose.push(this._model.onDidSuggest(function(e){var t=o._memory.select(o._editor.getModel(),o._editor.getPosition(),e.completionModel.items);o._widget.showSuggestions(e.completionModel,t,e.isFrozen,e.auto)})),this._toDispose.push(this._model.onDidCancel(function(e){o._widget&&!e.retrigger&&o._widget.hideWidget()}));var r=y.Context.AcceptSuggestionsOnEnter.bindTo(n),s=function(){var e=o._editor.getConfiguration().contribInfo,t=e.acceptSuggestionOnEnter,n=e.suggestSelection;r.set("on"===t||"smart"===t),o._memory.setMode(n)};this._toDispose.push(this._editor.onDidChangeConfiguration(function(e){return s()})),s()}return e.get=function(t){return t.getContribution(e.ID)},e.prototype._createSuggestWidget=function(){var e=this;this._widget=this._instantiationService.createInstance(b.SuggestWidget,this._editor),this._toDispose.push(this._widget.onDidSelect(this._onDidSelectItem,this));var t=new w(this._editor,this._widget,function(t){return e._onDidSelectItem(t)}) +;this._toDispose.push(t,this._model.onDidSuggest(function(e){0===e.completionModel.items.length&&t.reset()}));var n=y.Context.MakesTextEdit.bindTo(this._contextKeyService);this._toDispose.push(this._widget.onDidFocus(function(t){var i=t.item,o=e._editor.getPosition(),r=i.position.column-i.suggestion.overwriteBefore,s=o.column,a=!0;if("smart"===e._editor.getConfiguration().contribInfo.acceptSuggestionOnEnter&&2===e._model.state&&!i.suggestion.command&&!i.suggestion.additionalTextEdits&&"textmate"!==i.suggestion.snippetType&&s-r===i.suggestion.insertText.length){a=e._editor.getModel().getValueInRange({startLineNumber:o.lineNumber,startColumn:r,endLineNumber:o.lineNumber,endColumn:s})!==i.suggestion.insertText}n.set(a)})),this._toDispose.push({dispose:function(){n.reset()}})},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._toDispose=s.dispose(this._toDispose),this._widget&&(this._widget.dispose(),this._widget=null),this._model&&(this._model.dispose(),this._model=null)}, +e.prototype._onDidSelectItem=function(e){var t;if(e&&e.item){var n=e.item,o=n.suggestion,r=n.position,s=this._editor.getPosition().column-r.column;this._editor.pushUndoStop(),Array.isArray(o.additionalTextEdits)&&this._editor.executeEdits("suggestController.additionalTextEdits",o.additionalTextEdits.map(function(e){return g.EditOperation.replace(m.Range.lift(e.range),e.text)})),this._memory.memorize(this._editor.getModel(),this._editor.getPosition(),e.item);var a=o.insertText;"textmate"!==o.snippetType&&(a=v.SnippetParser.escape(a)),_.SnippetController2.get(this._editor).insert(a,o.overwriteBefore+s,o.overwriteAfter,!1,!1),this._editor.pushUndoStop(),o.command?o.command.id===L.id?this._model.trigger({auto:!0},!0):((t=this._commandService).executeCommand.apply(t,[o.command.id].concat(o.command.arguments)).done(void 0,i.onUnexpectedError),this._model.cancel()):this._model.cancel(),this._alertCompletionItem(e.item)}else this._model.cancel()},e.prototype._alertCompletionItem=function(e){ +var t=e.suggestion,i=n.localize(0,null,t.label,t.insertText);f.alert(i)},e.prototype.triggerSuggest=function(e){this._model.trigger({auto:!1},!1,e),this._editor.revealLine(this._editor.getPosition().lineNumber,0),this._editor.focus()},e.prototype.acceptSelectedSuggestion=function(){if(this._widget){var e=this._widget.getFocusedItem();this._onDidSelectItem(e)}},e.prototype.cancelSuggestWidget=function(){this._widget&&(this._model.cancel(),this._widget.hideWidget())},e.prototype.selectNextSuggestion=function(){this._widget&&this._widget.selectNext()},e.prototype.selectNextPageSuggestion=function(){this._widget&&this._widget.selectNextPage()},e.prototype.selectLastSuggestion=function(){this._widget&&this._widget.selectLast()},e.prototype.selectPrevSuggestion=function(){this._widget&&this._widget.selectPrevious()},e.prototype.selectPrevPageSuggestion=function(){this._widget&&this._widget.selectPreviousPage()},e.prototype.selectFirstSuggestion=function(){this._widget&&this._widget.selectFirst()}, +e.prototype.toggleSuggestionDetails=function(){this._widget&&this._widget.toggleDetails()},e.prototype.toggleSuggestionFocus=function(){this._widget&&this._widget.toggleDetailsFocus()},e.ID="editor.contrib.suggestController",e=a([u(1,c.ICommandService),u(2,d.IContextKeyService),u(3,l.IInstantiationService)],e)}();t.SuggestController=E;var L=function(e){function t(){return e.call(this,{id:t.id,label:n.localize(1,null),alias:"Trigger Suggest",precondition:d.ContextKeyExpr.and(h.EditorContextKeys.writable,h.EditorContextKeys.hasCompletionItemProvider),kbOpts:{kbExpr:h.EditorContextKeys.textInputFocus,primary:2058,mac:{primary:266},weight:100}})||this}return o(t,e),t.prototype.run=function(e,t){var n=E.get(t);n&&n.triggerSuggest()},t.id="editor.action.triggerSuggest",t}(p.EditorAction);t.TriggerSuggestAction=L,p.registerEditorContribution(E),p.registerEditorAction(L);var x=p.EditorCommand.bindToContribution(E.get);p.registerEditorCommand(new x({id:"acceptSelectedSuggestion",precondition:y.Context.Visible, +handler:function(e){return e.acceptSelectedSuggestion()},kbOpts:{weight:190,kbExpr:h.EditorContextKeys.textInputFocus,primary:2}})),p.registerEditorCommand(new x({id:"acceptSelectedSuggestionOnEnter",precondition:y.Context.Visible,handler:function(e){return e.acceptSelectedSuggestion()},kbOpts:{weight:190,kbExpr:d.ContextKeyExpr.and(h.EditorContextKeys.textInputFocus,y.Context.AcceptSuggestionsOnEnter,y.Context.MakesTextEdit),primary:3}})),p.registerEditorCommand(new x({id:"hideSuggestWidget",precondition:y.Context.Visible,handler:function(e){return e.cancelSuggestWidget()},kbOpts:{weight:190,kbExpr:h.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})),p.registerEditorCommand(new x({id:"selectNextSuggestion",precondition:d.ContextKeyExpr.and(y.Context.Visible,y.Context.MultipleSuggestions),handler:function(e){return e.selectNextSuggestion()},kbOpts:{weight:190,kbExpr:h.EditorContextKeys.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})), +p.registerEditorCommand(new x({id:"selectNextPageSuggestion",precondition:d.ContextKeyExpr.and(y.Context.Visible,y.Context.MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion()},kbOpts:{weight:190,kbExpr:h.EditorContextKeys.textInputFocus,primary:12,secondary:[2060]}})),p.registerEditorCommand(new x({id:"selectLastSuggestion",precondition:d.ContextKeyExpr.and(y.Context.Visible,y.Context.MultipleSuggestions),handler:function(e){return e.selectLastSuggestion()}})),p.registerEditorCommand(new x({id:"selectPrevSuggestion",precondition:d.ContextKeyExpr.and(y.Context.Visible,y.Context.MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion()},kbOpts:{weight:190,kbExpr:h.EditorContextKeys.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),p.registerEditorCommand(new x({id:"selectPrevPageSuggestion",precondition:d.ContextKeyExpr.and(y.Context.Visible,y.Context.MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion()},kbOpts:{ +weight:190,kbExpr:h.EditorContextKeys.textInputFocus,primary:11,secondary:[2059]}})),p.registerEditorCommand(new x({id:"selectFirstSuggestion",precondition:d.ContextKeyExpr.and(y.Context.Visible,y.Context.MultipleSuggestions),handler:function(e){return e.selectFirstSuggestion()}})),p.registerEditorCommand(new x({id:"toggleSuggestionDetails",precondition:y.Context.Visible,handler:function(e){return e.toggleSuggestionDetails()},kbOpts:{weight:190,kbExpr:h.EditorContextKeys.textInputFocus,primary:2058,mac:{primary:266}}})),p.registerEditorCommand(new x({id:"toggleSuggestionFocus",precondition:y.Context.Visible,handler:function(e){return e.toggleSuggestionFocus()},kbOpts:{weight:190,kbExpr:h.EditorContextKeys.textInputFocus,primary:2570,mac:{primary:778}}}))}),define(t[533],n([1,0,343,14,10,3,11,17,2,22,16,54,29,19,20,25,24,40]),function(e,t,n,i,r,s,l,d,c,h,p,f,g,m,v,_,y,C){"use strict";function b(e,t,n){var o=d.DocumentHighlightProviderRegistry.ordered(e);return i.first2(o.map(function(i){return function(){ +return Promise.resolve(i.provideDocumentHighlights(e,t,n)).then(void 0,r.onUnexpectedExternalError)}}),function(e){return!_.isFalsyOrEmpty(e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.editorWordHighlight=h.registerColor("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},n.localize(0,null),!0),t.editorWordHighlightStrong=h.registerColor("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},n.localize(1,null),!0),t.editorWordHighlightBorder=h.registerColor("editor.wordHighlightBorder",{light:null,dark:null,hc:h.activeContrastBorder},n.localize(2,null)),t.editorWordHighlightStrongBorder=h.registerColor("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:h.activeContrastBorder},n.localize(3,null)),t.overviewRulerWordHighlightForeground=h.registerColor("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},n.localize(4,null),!0), +t.overviewRulerWordHighlightStrongForeground=h.registerColor("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},n.localize(5,null),!0),t.ctxHasWordHighlights=new m.RawContextKey("hasWordHighlights",!1),t.getOccurrencesAtPosition=b,l.registerDefaultLanguageCommand("_executeDocumentHighlights",function(e,t){return b(e,t,C.CancellationToken.None)});var S=function(){function e(e,n){var i=this;this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=t.ctxHasWordHighlights.bindTo(n),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getConfiguration().contribInfo.occurrencesHighlight,this.model=this.editor.getModel(),this.toUnhook=[],this.toUnhook.push(e.onDidChangeCursorPosition(function(e){i._ignorePositionChangeEvent||i.occurrencesHighlight&&i._onPositionChanged(e)})), +this.toUnhook.push(e.onDidChangeModel(function(e){i._stopAll(),i.model=i.editor.getModel()})),this.toUnhook.push(e.onDidChangeModelContent(function(e){i._stopAll()})),this.toUnhook.push(e.onDidChangeConfiguration(function(e){var t=i.editor.getConfiguration().contribInfo.occurrencesHighlight;i.occurrencesHighlight!==t&&(i.occurrencesHighlight=t,i._stopAll())})),this._lastWordRange=null,this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return e.prototype.hasDecorations=function(){return this._decorationIds.length>0},e.prototype.restore=function(){this.occurrencesHighlight&&this._run()},e.prototype._getSortedHighlights=function(){var e=this;return this._decorationIds.map(function(t){return e.model.getDecorationRange(t)}).sort(s.Range.compareRangesUsingStarts)},e.prototype.moveNext=function(){var e=this,t=this._getSortedHighlights(),n=t[(_.firstIndex(t,function(t){ +return t.containsPosition(e.editor.getPosition())})+1)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n)}finally{this._ignorePositionChangeEvent=!1}},e.prototype.moveBack=function(){var e=this,t=this._getSortedHighlights(),n=t[(_.firstIndex(t,function(t){return t.containsPosition(e.editor.getPosition())})-1+t.length)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n)}finally{this._ignorePositionChangeEvent=!1}},e.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},e.prototype._stopAll=function(){this._lastWordRange=null,this._removeDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1), +null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)},e.prototype._onPositionChanged=function(e){this.occurrencesHighlight&&e.reason===f.CursorChangeReason.Explicit?this._run():this._stopAll()},e.prototype._run=function(){var e=this;if(d.DocumentHighlightProviderRegistry.has(this.model)){var t=this.editor.getSelection();if(t.startLineNumber===t.endLineNumber){var n=t.startLineNumber,o=t.startColumn,a=t.endColumn,l=this.model.getWordAtPosition({lineNumber:n,column:o});if(!l||l.startColumn>o||l.endColumn=a&&(c=!0)}if(this.lastCursorPositionChangeTime=(new Date).getTime(), +c)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var g=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=i.createCancelablePromise(function(t){return b(e.model,e.editor.getPosition(),t)}),this.workerRequest.then(function(t){g===e.workerRequestTokenId&&(e.workerRequestCompleted=!0,e.workerRequestValue=t||[],e._beginRenderDecorations())},r.onUnexpectedError)}this._lastWordRange=u}}else this._stopAll()}else this._stopAll()},e.prototype._beginRenderDecorations=function(){var e=this,t=(new Date).getTime(),n=this.lastCursorPositionChangeTime+250;t>=n?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(function(){e.renderDecorations()},n-t)},e.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var t=[],n=0,i=this.workerRequestValue.length;n0?r.format(T,e.length):null:N}(t,i);switch(e.wrappingInfo.inDiffEditor?e.readOnly?s+=n.localize(7,null):s+=n.localize(8,null):e.readOnly?s+=n.localize(9,null):s+=n.localize(10,null),e.accessibilitySupport){case 0:var a=C.isMacintosh?n.localize(11,null):n.localize(12,null);s+="\n\n - "+a;break;case 2:s+="\n\n - "+n.localize(13,null);break;case 1:s+="\n\n - "+n.localize(14,null),s+=" "+a}var u=n.localize(15,null),d=n.localize(16,null),c=n.localize(17,null),h=n.localize(18,null);e.tabFocusMode?s+="\n\n - "+this._descriptionForCommand(v.ToggleTabFocusModeAction.ID,u,d):s+="\n\n - "+this._descriptionForCommand(v.ToggleTabFocusModeAction.ID,c,h);s+="\n\n - "+(C.isMacintosh?n.localize(19,null):n.localize(20,null)), +s+="\n\n"+n.localize(21,null),this._contentDomNode.domNode.appendChild(l.renderFormattedText(s)),this._contentDomNode.domNode.setAttribute("aria-label",s)},t.prototype.hide=function(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,s.clearNode(this._contentDomNode.domNode),this._editor.focus())},t.prototype._layout=function(){var e=this._editor.getLayoutInfo(),n=Math.max(5,Math.min(t.WIDTH,e.width-40)),i=Math.max(5,Math.min(t.HEIGHT,e.height-40));this._domNode.setWidth(n),this._domNode.setHeight(i);var o=Math.round((e.height-i)/2);this._domNode.setTop(o);var r=Math.round((e.width-n)/2);this._domNode.setLeft(r)},t.ID="editor.contrib.accessibilityHelpWidget",t.WIDTH=500,t.HEIGHT=300,t=a([u(1,f.IContextKeyService),u(2,p.IKeybindingService),u(3,S.IOpenerService)],t)}(c.Widget),R=function(e){function t(){return e.call(this,{id:"editor.action.showAccessibilityHelp", +label:n.localize(22,null),alias:"Show Accessibility Help",precondition:null,kbOpts:{kbExpr:g.EditorContextKeys.focus,primary:E.isIE?2107:571,weight:100}})||this}return o(t,e),t.prototype.run=function(e,t){var n=x.get(t);n&&n.show()},t}(m.EditorAction);m.registerEditorContribution(x),m.registerEditorAction(R);var O=m.EditorCommand.bindToContribution(x.get);m.registerEditorCommand(new O({id:"closeAccessibilityHelp",precondition:L,handler:function(e){return e.hide()},kbOpts:{weight:200,kbExpr:g.EditorContextKeys.focus,primary:9,secondary:[1033]}})),_.registerThemingParticipant(function(e,t){var n=e.getColor(y.editorWidgetBackground);n&&t.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+n+"; }");var i=e.getColor(y.widgetShadow);i&&t.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(y.contrastBorder);o&&t.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+o+"; }")})}), +define(t[535],n([1,0,345,2,6,11,23,64,17,84,60,27,16,22,406]),function(e,t,n,i,r,s,l,d,c,h,p,f,g,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(e){function t(t,n,i){var o=e.call(this)||this;return o._editor=t,o._standaloneThemeService=n,o._modeService=i,o._widget=null,o._register(o._editor.onDidChangeModel(function(e){return o.stop()})),o._register(o._editor.onDidChangeModelLanguage(function(e){return o.stop()})),o._register(c.TokenizationRegistry.onDidChange(function(e){return o.stop()})),o}return o(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.getId=function(){return t.ID},t.prototype.dispose=function(){this.stop(),e.prototype.dispose.call(this)},t.prototype.launch=function(){this._widget||this._editor.getModel()&&(this._widget=new y(this._editor,this._standaloneThemeService,this._modeService))},t.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},t.ID="editor.contrib.inspectTokens", +t=a([u(1,h.IStandaloneThemeService),u(2,d.IModeService)],t)}(i.Disposable),_=function(e){function t(){return e.call(this,{id:"editor.action.inspectTokens",label:n.localize(0,null),alias:"Developer: Inspect Tokens",precondition:null})||this}return o(t,e),t.prototype.run=function(e,t){var n=v.get(t);n&&n.launch()},t}(s.EditorAction),y=function(e){function t(t,n,i){var o=e.call(this)||this;return o.allowEditorOverflow=!0,o._editor=t,o._modeService=i,o._model=o._editor.getModel(),o._domNode=document.createElement("div"),o._domNode.className="tokens-inspect-widget",o._tokenizationSupport=function(e){var t=c.TokenizationRegistry.get(e.language);return t||{getInitialState:function(){return p.NULL_STATE},tokenize:function(t,n,i){return p.nullTokenize(e.language,t,n,i)},tokenize2:function(t,n,i){return p.nullTokenize2(e.id,t,n,i)}}}(o._model.getLanguageIdentifier()),o._compute(o._editor.getPosition()),o._register(o._editor.onDidChangeCursorPosition(function(e){return o._compute(o._editor.getPosition())})), +o._editor.addContentWidget(o),o}return o(t,e),t.prototype.dispose=function(){this._editor.removeContentWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t._ID},t.prototype._compute=function(e){for(var t=this._getTokensAtLine(e.lineNumber),n=0,i=t.tokens1.length-1;i>=0;i--){var o=t.tokens1[i];if(e.column-1>=o.offset){n=i;break}}for(var s=0,i=t.tokens2.length>>>1;i>=0;i--)if(e.column-1>=t.tokens2[i<<1]){s=i;break}var a="",l=this._model.getLineContent(e.lineNumber),u="";if(n'+function(e){for(var t="",n=0,i=e.length;n('+u.length+" "+(1===u.length?"char":"chars")+")", +a+='
      ';var h=this._decodeMetadata(t.tokens2[1+(s<<1)]);a+='',a+='",a+='",a+='",a+='",a+='",a+="",a+='
      ',n'+r.escape(t.tokens1[n].type)+""),this._domNode.innerHTML=a, +this._editor.layoutContentWidget(this)},t.prototype._decodeMetadata=function(e){var t=c.TokenizationRegistry.getColorMap(),n=c.TokenMetadata.getLanguageId(e),i=c.TokenMetadata.getTokenType(e),o=c.TokenMetadata.getFontStyle(e),r=c.TokenMetadata.getForeground(e),s=c.TokenMetadata.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:i,fontStyle:o,foreground:t[r],background:t[s]}},t.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},t.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t},t.prototype._getTokensAtLine=function(e){var t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),i=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:i.tokens,endState:n.endState}}, +t.prototype._getStateBeforeLine=function(e){for(var t=this._tokenizationSupport.getInitialState(),n=1;n1?n.localize(0,null,t.lineNumber,t.column):n.localize(1,null,t.lineNumber,t.column):t.lineNumber<1||t.lineNumber>o.getLineCount()?n.localize(2,null,o.getLineCount()):n.localize(3,null,o.getLineMaxColumn(t.lineNumber)),{position:t,isValid:s,label:r}}, +t.prototype.getLabel=function(){return this._parseResult.label},t.prototype.getAriaLabel=function(){return n.localize(4,null,this._parseResult.label)},t.prototype.run=function(e,t){return e===r.Mode.OPEN?this.runOpen():this.runPreview()},t.prototype.runOpen=function(){if(!this._parseResult.isValid)return!1;var e=this.toSelection();return this.editor.setSelection(e),this.editor.revealRangeInCenter(e,0),this.editor.focus(),!0},t.prototype.runPreview=function(){if(!this._parseResult.isValid)return this.decorator.clearDecorations(),!1;var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(e,this.editor),!1},t.prototype.toSelection=function(){return new c.Range(this._parseResult.position.lineNumber,this._parseResult.position.column,this._parseResult.position.lineNumber,this._parseResult.position.column)},t}(i.QuickOpenEntry);t.GotoLineEntry=h;var p=function(e){function t(){return e.call(this,n.localize(5,null),{id:"editor.action.gotoLine",label:n.localize(6,null), +alias:"Go to Line...",precondition:null,kbOpts:{kbExpr:s.EditorContextKeys.focus,primary:2085,mac:{primary:293},weight:100}})||this}return o(t,e),t.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new i.QuickOpenModel([new h(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:e.length>0}}})},t}(l.BaseEditorQuickOpenAction);t.GotoLineAction=p,u.registerEditorAction(p)}),define(t[538],n([1,0,347,10,102,13,119,93,49,20,145,11,30]),function(e,t,n,i,r,s,a,l,u,d,c,h,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.key=t,r.setHighlights(n),r.action=i,r.editor=o,r}return o(t,e),t.prototype.getLabel=function(){return this.action.label},t.prototype.getAriaLabel=function(){return n.localize(0,null,this.getLabel())},t.prototype.getGroupLabel=function(){return this.key},t.prototype.run=function(e,t){var n=this +;return e===l.Mode.OPEN&&(s.TPromise.timeout(50).done(function(){n.editor.focus();try{(n.action.run()||s.TPromise.as(null)).done(null,i.onUnexpectedError)}catch(e){i.onUnexpectedError(e)}},i.onUnexpectedError),!0)},t}(a.QuickOpenEntryGroup);t.EditorActionCommandEntry=f;var g=function(e){function t(){return e.call(this,n.localize(1,null),{id:"editor.action.quickCommand",label:n.localize(2,null),alias:"Command Palette",precondition:null,kbOpts:{kbExpr:d.EditorContextKeys.focus,primary:p.isIE?571:59,weight:100},menuOpts:{group:"z_commands",order:1}})||this}return o(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(u.IKeybindingService);this._show(this.getController(t),{getModel:function(e){return new a.QuickOpenModel(n._editorActionsToEntries(i,t,e))},getAutoFocus:function(e){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:e}}})},t.prototype._sort=function(e,t){var n=e.getLabel().toLowerCase(),i=t.getLabel().toLowerCase();return n.localeCompare(i)},t.prototype._editorActionsToEntries=function(e,t,n){ +for(var i=t.getSupportedActions(),o=[],s=0;s0&&0===o.indexOf(":")){ +for(var f=null,g=null,m=0,v=0;v0)):m++}g&&g.setGroupLabel(this.typeToLabel(f,m))}else a.length>0&&a[0].setGroupLabel(n.localize(3,null,a.length));return a},t.prototype.typeToLabel=function(e,t){switch(e){case"module":return n.localize(4,null,t);case"class":return n.localize(5,null,t);case"interface":return n.localize(6,null,t);case"method":return n.localize(7,null,t);case"function":return n.localize(8,null,t);case"property":return n.localize(9,null,t);case"variable":return n.localize(10,null,t);case"var":return n.localize(11,null,t);case"constructor":return n.localize(12,null,t);case"call":return n.localize(13,null,t)}return e},t.prototype.sortNormal=function(e,t,n){var i=t.getLabel().toLowerCase(),o=n.getLabel().toLowerCase(),r=i.localeCompare(o);if(0!==r)return r;var s=t.getRange(),a=n.getRange();return s.startLineNumber-a.startLineNumber},t.prototype.sortScoped=function(e,t,n){ +e=e.substr(":".length);var i=t.getType(),o=n.getType(),r=i.localeCompare(o);if(0!==r)return r;if(e){var s=t.getLabel().toLowerCase(),a=n.getLabel().toLowerCase(),l=s.localeCompare(a);if(0!==l)return l}var u=t.getRange(),d=n.getRange();return u.startLineNumber-d.startLineNumber},t}(d.BaseEditorQuickOpenAction);t.QuickOutlineAction=g,h.registerEditorAction(g)}),define(t[540],n([1,0,13,484,7,61]),function(e,t,n,i,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getActiveCodeEditor=function(){return null},t.prototype.openCodeEditor=function(e,t,i){return t?n.TPromise.as(this.doOpenEditor(t,e)):n.TPromise.as(null)},t.prototype.doOpenEditor=function(e,t){if(!this.findModel(e,t.resource)){if(t.resource){var n=t.resource.scheme;if(n===s.Schemas.http||n===s.Schemas.https)return r.windowOpenNoOpener(t.resource.toString()),e}return null}var i=t.options.selection +;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{var o={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(o),e.revealPositionInCenter(o,1)}return e},t.prototype.findModel=function(e,t){var n=e.getModel();return n.uri.toString()!==t.toString()?null:n},t}(i.CodeEditorServiceImpl);t.StandaloneCodeEditorServiceImpl=a}),define(t[541],n([1,0,22,35]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,s;t.vs={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"09885A"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation", +foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"09885A"},{token:"attribute.value.unit",foreground:"09885A"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{ +token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(o={},o[n.editorBackground]="#FFFFFE",o[n.editorForeground]="#000000",o[n.editorInactiveSelection]="#E5EBF1",o[i.editorIndentGuides]="#D3D3D3",o[i.editorActiveIndentGuides]="#939393",o[n.editorSelectionHighlight]="#ADD6FF4D",o)},t.vs_dark={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{ +token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name", +foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(r={},r[n.editorBackground]="#1E1E1E",r[n.editorForeground]="#D4D4D4",r[n.editorInactiveSelection]="#3A3D41",r[i.editorIndentGuides]="#404040",r[i.editorActiveIndentGuides]="#707070",r[n.editorSelectionHighlight]="#ADD6FF26",r)},t.hc_black={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid", +foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{ +token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(s={},s[n.editorBackground]="#000000",s[n.editorForeground]="#FFFFFF",s[i.editorIndentGuides]="#FFFFFF",s[i.editorActiveIndentGuides]="#FFFFFF",s)}}),define(t[542],n([1,0,204,541,7,17,27,22,16,45,9]),function(e,t,n,i,o,r,s,a,l,u,d){"use strict";function c(e){return e===f||e===g||e===m}function h(e){switch(e){case f:return i.vs;case g:return i.vs_dark;case m:return i.hc_black}}function p(e){var t=h(e);return new y(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var f="vs",g="vs-dark",m="hc-black",v=u.Registry.as(a.Extensions.ColorContribution),_=u.Registry.as(l.Extensions.ThemingContribution),y=function(){function e(e,t){ +this.themeData=t;var n=t.base;e.length>0?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(e.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),e.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},e.prototype.getColors=function(){if(!this.colors){var e=Object.create(null);for(var t in this.themeData.colors)e[t]=s.Color.fromHex(this.themeData.colors[t]);if(this.themeData.inherit){var n=h(this.themeData.base);for(var t in n.colors)e[t]||(e[t]=s.Color.fromHex(n.colors[t]))}this.colors=e}return this.colors},e.prototype.getColor=function(e,t){var n=this.getColors()[e];return n||(!1!==t?this.getDefault(e):null)},e.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=v.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)},e.prototype.defines=function(e){ +return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(e.prototype,"type",{get:function(){switch(this.base){case f:return"light";case m:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var i=h(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=n.TokenTheme.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),e}(),C=function(){function e(){this.environment=Object.create(null),this._onThemeChange=new d.Emitter,this._knownThemes=new Map,this._knownThemes.set(f,p(f)),this._knownThemes.set(g,p(g)),this._knownThemes.set(m,p(m)),this._styleElement=o.createStyleSheet(),this._styleElement.className="monaco-colors",this.setTheme(f)} +return Object.defineProperty(e.prototype,"onThemeChange",{get:function(){return this._onThemeChange.event},enumerable:!0,configurable:!0}),e.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!c(t.base)&&!c(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new y(e,t)),c(e)&&this._knownThemes.forEach(function(t){t.base===e&&t.notifyBaseUpdated()}),this._theme&&this._theme.themeName===e&&this.setTheme(e)},e.prototype.getTheme=function(){return this._theme},e.prototype.setTheme=function(e){var t,i=this;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(f),this._theme=t;var o=[],s={},a={addRule:function(e){s[e]||(o.push(e),s[e]=!0)}};_.getThemingParticipants().forEach(function(e){return e(t,a,i.environment)});var l=t.tokenTheme.getColorMap();return a.addRule(n.generateTokensCSSForColorMap(l)),this._styleElement.innerHTML=o.join("\n"),r.TokenizationRegistry.setColorMap(l),this._onThemeChange.fire(t),t.id},e}() +;t.StandaloneThemeServiceImpl=C}),define(t[146],n([1,0,15,2,19,155,103,16,51,354,45,82,81,33,7,43]),function(e,t,n,i,r,s,d,c,h,p,f,g,m,v,_,y){"use strict";function C(e){return"alt"===e.getValue(t.multiSelectModifierSettingKey)}function b(e){return"doubleClick"!==e.getValue(t.openModeSettingKey)}function S(e,t){return e.controller||(e.controller=t.createInstance(I,{})),e.styler||(e.styler=new m.DefaultTreestyler((x||(x=_.createStyleSheet()),x))),e}Object.defineProperty(t,"__esModule",{value:!0});var w;t.IListService=n.createDecorator("listService");var E=function(){function e(e){this.lists=[],this._lastFocusedWidget=void 0}return Object.defineProperty(e.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this;if(this.lists.some(function(t){return t.widget===e}))throw new Error("Cannot register the same widget multiple times");var o={widget:e,extraContextKeys:t};this.lists.push(o), +e.isDOMFocused()&&(this._lastFocusedWidget=e);return i.combinedDisposable([e.onDidFocus(function(){return n._lastFocusedWidget=e}),i.toDisposable(function(){return n.lists.splice(n.lists.indexOf(o),1)}),e.onDidDispose(function(){n.lists=n.lists.filter(function(e){return e!==o}),n._lastFocusedWidget===e&&(n._lastFocusedWidget=void 0)})])},e=a([u(0,r.IContextKeyService)],e)}();t.ListService=E;var L=new r.RawContextKey("listFocus",!0);t.WorkbenchListSupportsMultiSelectContextKey=new r.RawContextKey("listSupportsMultiselect",!0),t.WorkbenchListHasSelectionOrFocus=new r.RawContextKey("listHasSelectionOrFocus",!1),t.WorkbenchListDoubleSelection=new r.RawContextKey("listDoubleSelection",!1),t.WorkbenchListMultiSelection=new r.RawContextKey("listMultiSelection",!1),t.multiSelectModifierSettingKey="workbench.list.multiSelectModifier",t.openModeSettingKey="workbench.list.openMode",t.horizontalScrollingKey="workbench.tree.horizontalScrolling";var x,N=function(e){function s(n,i,o,r,s,a,u,c){ +var h=this,p=S(i,u),f=c.getValue(t.horizontalScrollingKey)?y.ScrollbarVisibility.Auto:y.ScrollbarVisibility.Hidden,g=l({horizontalScrollMode:f,keyboardSupport:!1},d.computeStyles(a.getTheme(),d.defaultListStyles),o);return h=e.call(this,n,p,g)||this,h.disposables=[],h.contextKeyService=function(e,t){var n=e.createScoped(t.getHTMLElement());return L.bindTo(n),n}(r,h),t.WorkbenchListSupportsMultiSelectContextKey.bindTo(h.contextKeyService),h.listHasSelectionOrFocus=t.WorkbenchListHasSelectionOrFocus.bindTo(h.contextKeyService),h.listDoubleSelection=t.WorkbenchListDoubleSelection.bindTo(h.contextKeyService),h.listMultiSelection=t.WorkbenchListMultiSelection.bindTo(h.contextKeyService),h._openOnSingleClick=b(c),h._useAltAsMultipleSelectionModifier=C(c),h.disposables.push(h.contextKeyService,s.register(h),d.attachListStyler(h,a)),h.disposables.push(h.onDidChangeSelection(function(){var e=h.getSelection(),t=h.getFocus();h.listHasSelectionOrFocus.set(e&&e.length>0||!!t),h.listDoubleSelection.set(e&&2===e.length), +h.listMultiSelection.set(e&&e.length>1)})),h.disposables.push(h.onDidChangeFocus(function(){var e=h.getSelection(),t=h.getFocus();h.listHasSelectionOrFocus.set(e&&e.length>0||!!t)})),h.disposables.push(c.onDidChangeConfiguration(function(e){e.affectsConfiguration(t.openModeSettingKey)&&(h._openOnSingleClick=b(c)),e.affectsConfiguration(t.multiSelectModifierSettingKey)&&(h._useAltAsMultipleSelectionModifier=C(c))})),h}return o(s,e),s.prototype.dispose=function(){e.prototype.dispose.call(this),this.disposables=i.dispose(this.disposables)},s=a([u(3,r.IContextKeyService),u(4,t.IListService),u(5,c.IThemeService),u(6,n.IInstantiationService),u(7,h.IConfigurationService)],s)}(s.Tree);t.WorkbenchTree=N;var I=function(e){function n(t,n){var i=e.call(this,function(e){return"boolean"!=typeof e.keyboardSupport&&(e.keyboardSupport=!1),"number"!=typeof e.clickBehavior&&(e.clickBehavior=m.ClickBehavior.ON_MOUSE_DOWN),e}(t))||this;return i.configurationService=n,i.disposables=[], +v.isUndefinedOrNull(t.openMode)&&(i.setOpenMode(i.getOpenModeSetting()),i.registerListeners()),i}return o(n,e),n.prototype.registerListeners=function(){var e=this;this.disposables.push(this.configurationService.onDidChangeConfiguration(function(n){n.affectsConfiguration(t.openModeSettingKey)&&e.setOpenMode(e.getOpenModeSetting())}))},n.prototype.getOpenModeSetting=function(){return b(this.configurationService)?m.OpenMode.SINGLE_CLICK:m.OpenMode.DOUBLE_CLICK},n.prototype.dispose=function(){this.disposables=i.dispose(this.disposables)},n=a([u(1,h.IConfigurationService)],n)}(m.DefaultController);t.WorkbenchTreeController=I;f.Registry.as(g.Extensions.Configuration).registerConfiguration({id:"workbench",order:7,title:p.localize(0,null),type:"object",properties:(w={},w[t.multiSelectModifierSettingKey]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[p.localize(1,null),p.localize(2,null)],default:"ctrlCmd",description:p.localize(3,null)},w[t.openModeSettingKey]={type:"string", +enum:["singleClick","doubleClick"],default:"singleClick",description:p.localize(4,null)},w[t.horizontalScrollingKey]={type:"boolean",default:!1,description:p.localize(5,null)},w)})}),define(t[195],n([1,0,15]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.IUriDisplayService=n.createDecorator("uriDisplay")}),define(t[545],n([1,0,19]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindContextScopedWidget=function(e,t,i){new n.RawContextKey(i,t).bindTo(e)},t.createWidgetScopedContextKeyService=function(e,t){return e.createScoped(t.target)},t.getContextScopedWidget=function(e,t){return e.getContext(document.activeElement).getValue(t)}}),define(t[546],n([1,0,19,115,276,545,97]),function(e,t,n,i,r,s,l){"use strict";function d(e,i){var o=s.createWidgetScopedContextKeyService(e,i);s.bindContextScopedWidget(o,i,t.HistoryNavigationWidgetContext);return{scopedContextKeyService:o, +historyNavigationEnablement:new n.RawContextKey(t.HistoryNavigationEnablementContext,!0).bindTo(o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryNavigationWidgetContext="historyNavigationWidget",t.HistoryNavigationEnablementContext="historyNavigationEnabled",t.createAndBindHistoryNavigationWidgetScopedContextKeyService=d;var c=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r._register(d(o,{target:r.element,historyNavigator:r}).scopedContextKeyService),r}return o(t,e),t=a([u(3,n.IContextKeyService)],t)}(i.HistoryInputBox);t.ContextScopedHistoryInputBox=c;var h=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r._register(d(o,{target:r.inputBox.element,historyNavigator:r.inputBox}).scopedContextKeyService),r}return o(t,e),t=a([u(3,n.IContextKeyService)],t)}(r.FindInput);t.ContextScopedFindInput=h,l.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200, +when:n.ContextKeyExpr.and(new n.ContextKeyDefinedExpr(t.HistoryNavigationWidgetContext),new n.ContextKeyEqualsExpr(t.HistoryNavigationEnablementContext,!0)),primary:16,secondary:[528],handler:function(e,i){s.getContextScopedWidget(e.get(n.IContextKeyService),t.HistoryNavigationWidgetContext).historyNavigator.showPreviousValue()}}),l.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:new n.ContextKeyAndExpr([new n.ContextKeyDefinedExpr(t.HistoryNavigationWidgetContext),new n.ContextKeyEqualsExpr(t.HistoryNavigationEnablementContext,!0)]),primary:18,secondary:[530],handler:function(e,i){s.getContextScopedWidget(e.get(n.IContextKeyService),t.HistoryNavigationWidgetContext).historyNavigator.showNextValue()}})}),define(t[547],n([1,0,312,10,18,6,14,7,46,90,23,142,3,16,22,546,373]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0}) +;var v=n.localize(0,null),_=n.localize(1,null),y=n.localize(2,null),C=n.localize(3,null),b=n.localize(4,null),S=n.localize(5,null),w=n.localize(6,null),E=n.localize(7,null),L=n.localize(8,null),x=n.localize(9,null),N=n.localize(10,null),I=n.localize(11,null,h.MATCHES_LIMIT),M=n.localize(12,null),D=n.localize(13,null),T=69,k=17+(T+3+1)+92+2,R=34,O=function(){return function(e){this.afterLineNumber=e,this.heightInPx=R,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}();t.FindWidgetViewZone=O;var P=function(e){function t(t,n,i,o,r,s,u){var d=e.call(this)||this;return d._codeEditor=t,d._controller=n,d._state=i,d._contextViewProvider=o,d._keybindingService=r,d._contextKeyService=s,d._isVisible=!1,d._isReplaceVisible=!1,d._updateHistoryDelayer=new a.Delayer(500),d._register(d._state.onFindReplaceStateChange(function(e){return d._onStateChanged(e)})),d._buildDomNode(),d._updateButtons(),d._tryUpdateWidgetWidth(), +d._register(d._codeEditor.onDidChangeConfiguration(function(e){e.readOnly&&(d._codeEditor.getConfiguration().readOnly&&d._state.change({isReplaceRevealed:!1},!1),d._updateButtons()),e.layoutInfo&&d._tryUpdateWidgetWidth()})),d._register(d._codeEditor.onDidChangeCursorSelection(function(){d._isVisible&&d._updateToggleSelectionFindButton()})),d._register(d._codeEditor.onDidFocusEditorWidget(function(){if(d._isVisible){var e=d._controller.getGlobalBufferTerm();e&&e!==d._state.searchString&&(d._state.change({searchString:e},!0),d._findInput.select())}})),d._findInputFocused=h.CONTEXT_FIND_INPUT_FOCUSED.bindTo(s),d._findFocusTracker=d._register(l.trackFocus(d._findInput.inputBox.inputElement)),d._register(d._findFocusTracker.onDidFocus(function(){d._findInputFocused.set(!0),d._updateSearchScope()})),d._register(d._findFocusTracker.onDidBlur(function(){d._findInputFocused.set(!1)})),d._replaceInputFocused=h.CONTEXT_REPLACE_INPUT_FOCUSED.bindTo(s), +d._replaceFocusTracker=d._register(l.trackFocus(d._replaceInputBox.inputElement)),d._register(d._replaceFocusTracker.onDidFocus(function(){d._replaceInputFocused.set(!0),d._updateSearchScope()})),d._register(d._replaceFocusTracker.onDidBlur(function(){d._replaceInputFocused.set(!1)})),d._codeEditor.addOverlayWidget(d),d._viewZone=new O(0),d._applyTheme(u.getTheme()),d._register(u.onThemeChange(d._applyTheme.bind(d))),d._register(d._codeEditor.onDidChangeModel(function(e){d._isVisible&&void 0!==d._viewZoneId&&d._codeEditor.changeViewZones(function(e){e.removeZone(d._viewZoneId),d._viewZoneId=void 0})})),d._register(d._codeEditor.onDidScrollChange(function(e){e.scrollTopChanged?d._layoutViewZone():setTimeout(function(){d._layoutViewZone()},0)})),d}return o(t,e),t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return this._isVisible?{preference:c.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER}:null}, +t.prototype._onStateChanged=function(e){if(e.searchString&&(this._findInput.setValue(this._state.searchString),this._updateButtons()),e.replaceString&&(this._replaceInputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal(!0):this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getConfiguration().readOnly||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInputBox.width=this._findInput.inputBox.width,this._updateButtons()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){ +var t=this._state.searchString.length>0&&0===this._state.matchesCount;l.toggleClass(this._domNode,"no-results",t),this._updateMatchesCount()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory()},t.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},t.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInputBox.addToHistory()},t.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=T+"px",this._state.matchesCount>=h.MATCHES_LIMIT?this._matchesCount.title=I:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var e;if(this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=h.MATCHES_LIMIT&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=s.format(M,n,t)}else e=D +;this._matchesCount.appendChild(document.createTextNode(e)),T=Math.max(T,this._matchesCount.clientWidth)},t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._toggleSelectionFind.setEnabled(this._isVisible&&(n||t))},t.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInputBox.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=this._state.searchString.length>0;this._prevBtn.setEnabled(this._isVisible&&e),this._nextBtn.setEnabled(this._isVisible&&e),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),l.toggleClass(this._domNode,"replaceToggled",this._isReplaceVisible), +this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var t=!this._codeEditor.getConfiguration().readOnly;this._toggleReplaceBtn.setEnabled(this._isVisible&&t)},t.prototype._reveal=function(e){var t=this;if(!this._isVisible){this._isVisible=!0;var n=this._codeEditor.getSelection();!!n&&(n.startLineNumber!==n.endLineNumber||n.startColumn!==n.endColumn)&&this._codeEditor.getConfiguration().contribInfo.find.autoFindInSelection?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){l.addClass(t._domNode,"visible"),t._domNode.setAttribute("aria-hidden","false")},0),this._codeEditor.layoutOverlayWidget(this);var i=!0;if(this._codeEditor.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&n){ +var o=l.getDomNodePagePosition(this._codeEditor.getDomNode()),r=this._codeEditor.getScrolledVisiblePosition(n.getStartPosition()),s=o.left+r.left;if(r.topn.startLineNumber&&(i=!1);var a=l.getTopLeftOffset(this._domNode).left;s>a&&(i=!1);var u=this._codeEditor.getScrolledVisiblePosition(n.getEndPosition());o.left+u.left>a&&(i=!1)}}this._showViewZone(i)}},t.prototype._hide=function(e){var t=this;this._isVisible&&(this._isVisible=!1,this._updateButtons(),l.removeClass(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._codeEditor.changeViewZones(function(e){void 0!==t._viewZoneId&&(e.removeZone(t._viewZoneId),t._viewZoneId=void 0,t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()-t._viewZone.heightInPx))}))},t.prototype._layoutViewZone=function(){var e=this;this._isVisible&&void 0===this._viewZoneId&&this._codeEditor.changeViewZones(function(t){ +e._state.isReplaceRevealed?e._viewZone.heightInPx=64:e._viewZone.heightInPx=R,e._viewZoneId=t.addZone(e._viewZone),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+e._viewZone.heightInPx)})},t.prototype._showViewZone=function(e){var t=this;void 0===e&&(e=!0),this._isVisible&&this._codeEditor.changeViewZones(function(n){var i=R;void 0!==t._viewZoneId?(t._state.isReplaceRevealed?(t._viewZone.heightInPx=64,i=64-R):(t._viewZone.heightInPx=R,i=R-64),n.removeZone(t._viewZoneId)):t._viewZone.heightInPx=R,t._viewZoneId=n.addZone(t._viewZone),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+i)})},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(g.inputActiveOptionBorder),inputBackground:e.getColor(g.inputBackground),inputForeground:e.getColor(g.inputForeground),inputBorder:e.getColor(g.inputBorder),inputValidationInfoBackground:e.getColor(g.inputValidationInfoBackground),inputValidationInfoBorder:e.getColor(g.inputValidationInfoBorder), +inputValidationWarningBackground:e.getColor(g.inputValidationWarningBackground),inputValidationWarningBorder:e.getColor(g.inputValidationWarningBorder),inputValidationErrorBackground:e.getColor(g.inputValidationErrorBackground),inputValidationErrorBorder:e.getColor(g.inputValidationErrorBorder)};this._findInput.style(t),this._replaceInputBox.style(t)},t.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible){var e=this._codeEditor.getConfiguration().layoutInfo.width,t=this._codeEditor.getConfiguration().layoutInfo.minimapWidth,n=!1,i=!1,o=!1;if(this._resized){if(l.getTotalWidth(this._domNode)>411)return this._domNode.style.maxWidth=e-28-t-15+"px",void(this._replaceInputBox.inputElement.style.width=l.getTotalWidth(this._findInput.inputBox.inputElement)+"px")}if(439+t>=e&&(i=!0),439+t-T>=e&&(o=!0),439+t-T>=e+50&&(n=!0),l.toggleClass(this._domNode,"collapsed-find-widget",n),l.toggleClass(this._domNode,"narrow-find-widget",o),l.toggleClass(this._domNode,"reduced-find-widget",i), +o||n||(this._domNode.style.maxWidth=e-28-t-15+"px"),this._resized){var r=l.getTotalWidth(this._findInput.inputBox.inputElement);r>0&&(this._replaceInputBox.inputElement.style.width=r+"px")}}},t.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},t.prototype.focusReplaceInput=function(){this._replaceInputBox.select(),this._replaceInputBox.focus()},t.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},t.prototype._updateSearchScope=function(){if(this._toggleSelectionFind.checked){var e=this._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,1));var t=this._state.currentMatch;e.startLineNumber!==e.endLineNumber&&(p.Range.equalsRange(e,t)||this._state.change({searchScope:e},!0))}},t.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},t.prototype._onFindInputKeyDown=function(e){ +return e.equals(3)?(this._codeEditor.getAction(h.FIND_IDS.NextMatchFindAction).run().done(null,i.onUnexpectedError),void e.preventDefault()):e.equals(1027)?(this._codeEditor.getAction(h.FIND_IDS.PreviousMatchFindAction).run().done(null,i.onUnexpectedError),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInputBox.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):void 0},t.prototype._onReplaceInputKeyDown=function(e){return e.equals(3)?(this._controller.replace(),void e.preventDefault()):e.equals(2051)?(this._controller.replaceAll(),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):void 0},t.prototype.getHorizontalSashTop=function(e){return 0},t.prototype.getHorizontalSashLeft=function(e){return 0}, +t.prototype.getHorizontalSashWidth=function(e){return 500},t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype._buildFindPart=function(){var e=this;this._findInput=this._register(new m.ContextScopedFindInput(null,this._contextViewProvider,{width:221,label:v,placeholder:_,appendCaseSensitiveLabel:this._keybindingLabelFor(h.FIND_IDS.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(h.FIND_IDS.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(h.FIND_IDS.ToggleRegexCommand),validation:function(t){if(0===t.length)return null;if(!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(e){return{content:e.message}}}},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(function(t){ +return e._onFindInputKeyDown(t)})),this._register(this._findInput.inputBox.onDidChange(function(){e._state.change({searchString:e._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){e._state.change({isRegex:e._findInput.getRegex(),wholeWord:e._findInput.getWholeWords(),matchCase:e._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(t){t.equals(1026)&&e._isReplaceVisible&&(e._replaceInputBox.focus(),t.preventDefault())})),r.isLinux&&this._register(this._findInput.onMouseDown(function(t){return e._onFindInputMouseDown(t)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new F({label:y+this._keybindingLabelFor(h.FIND_IDS.PreviousMatchFindAction),className:"previous",onTrigger:function(){e._codeEditor.getAction(h.FIND_IDS.PreviousMatchFindAction).run().done(null,i.onUnexpectedError)}})),this._nextBtn=this._register(new F({ +label:C+this._keybindingLabelFor(h.FIND_IDS.NextMatchFindAction),className:"next",onTrigger:function(){e._codeEditor.getAction(h.FIND_IDS.NextMatchFindAction).run().done(null,i.onUnexpectedError)}}));var t=document.createElement("div");return t.className="find-part",t.appendChild(this._findInput.domNode),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new A({parent:t,title:b+this._keybindingLabelFor(h.FIND_IDS.ToggleSearchScopeCommand),onChange:function(){if(e._toggleSelectionFind.checked){var t=e._codeEditor.getSelection();1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,1)),t.isEmpty()||e._state.change({searchScope:t},!0)}else e._state.change({searchScope:null},!0)}})),this._closeBtn=this._register(new F({label:S+this._keybindingLabelFor(h.FIND_IDS.CloseFindWidgetCommand),className:"close-fw",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)}, +onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault())}})),t.appendChild(this._closeBtn.domNode),t},t.prototype._buildReplacePart=function(){var e=this,t=document.createElement("div");t.className="replace-input",t.style.width="221px",this._replaceInputBox=this._register(new m.ContextScopedHistoryInputBox(t,null,{ariaLabel:w,placeholder:E,history:[]},this._contextKeyService)),this._register(l.addStandardDisposableListener(this._replaceInputBox.inputElement,"keydown",function(t){return e._onReplaceInputKeyDown(t)})),this._register(l.addStandardDisposableListener(this._replaceInputBox.inputElement,"input",function(t){e._state.change({replaceString:e._replaceInputBox.value},!1)})),this._replaceBtn=this._register(new F({label:L+this._keybindingLabelFor(h.FIND_IDS.ReplaceOneAction),className:"replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())} +})),this._replaceAllBtn=this._register(new F({label:x+this._keybindingLabelFor(h.FIND_IDS.ReplaceAllAction),className:"replace-all",onTrigger:function(){e._controller.replaceAll()}}));var n=document.createElement("div");return n.className="replace-part",n.appendChild(t),n.appendChild(this._replaceBtn.domNode),n.appendChild(this._replaceAllBtn.domNode),n},t.prototype._buildDomNode=function(){var e=this,t=this._buildFindPart(),n=this._buildReplacePart();this._toggleReplaceBtn=this._register(new F({label:N,className:"toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInputBox.width=e._findInput.inputBox.width),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!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="411px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(n),this._buildSash()},t.prototype._buildSash=function(){var e=this;this._resizeSash=new d.Sash(this._domNode,this,{orientation:d.Orientation.VERTICAL}),this._resized=!1;var t=411;this._register(this._resizeSash.onDidStart(function(n){t=l.getTotalWidth(e._domNode)})),this._register(this._resizeSash.onDidChange(function(n){e._resized=!0;var i=t+n.startX-n.currentX;if(!(i<411)){var o=i-k;i>(parseFloat(l.getComputedStyle(e._domNode).maxWidth)||0)||(e._domNode.style.width=i+"px",e._isReplaceVisible&&(e._replaceInputBox.width=o))}}))},t.ID="editor.contrib.findWidget",t}(u.Widget);t.FindWidget=P;var A=function(e){function t(n){var i=e.call(this)||this;return i._opts=n,i._domNode=document.createElement("div"),i._domNode.className="monaco-checkbox",i._domNode.title=i._opts.title,i._domNode.tabIndex=0, +i._checkbox=document.createElement("input"),i._checkbox.type="checkbox",i._checkbox.className="checkbox",i._checkbox.id="checkbox-"+t._COUNTER++,i._checkbox.tabIndex=-1,i._label=document.createElement("label"),i._label.className="label",i._label.htmlFor=i._checkbox.id,i._label.tabIndex=-1,i._domNode.appendChild(i._checkbox),i._domNode.appendChild(i._label),i._opts.parent.appendChild(i._domNode),i.onchange(i._checkbox,function(e){i._opts.onChange()}),i}return o(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checkbox.checked},set:function(e){this._checkbox.checked=e},enumerable:!0,configurable:!0}),t.prototype.enable=function(){this._checkbox.removeAttribute("disabled")},t.prototype.disable=function(){this._checkbox.disabled=!0},t.prototype.setEnabled=function(e){e?(this.enable(),this.domNode.tabIndex=0):(this.disable(),this.domNode.tabIndex=-1)},t._COUNTER=0,t +}(u.Widget),F=function(e){function t(t){var n=e.call(this)||this;return n._opts=t,n._domNode=document.createElement("div"),n._domNode.title=n._opts.label,n._domNode.tabIndex=0,n._domNode.className="button "+n._opts.className,n._domNode.setAttribute("role","button"),n._domNode.setAttribute("aria-label",n._opts.label),n.onclick(n._domNode,function(e){n._opts.onTrigger(),e.preventDefault()}),n.onkeydown(n._domNode,function(e){if(e.equals(10)||e.equals(3))return n._opts.onTrigger(),void e.preventDefault();n._opts.onKeyDown&&n._opts.onKeyDown(e)}),n}return o(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),t.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},t.prototype.focus=function(){this._domNode.focus()},t.prototype.setEnabled=function(e){l.toggleClass(this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1},t.prototype.setExpanded=function(e){ +this._domNode.setAttribute("aria-expanded",String(!!e))},t.prototype.toggleClass=function(e,t){l.toggleClass(this._domNode,e,t)},t}(u.Widget);t.SimpleButton=F,f.registerThemingParticipant(function(e,t){var n=function(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")};n(".findMatch",e.getColor(g.editorFindMatchHighlight)),n(".currentFindMatch",e.getColor(g.editorFindMatch)),n(".findScope",e.getColor(g.editorFindRangeHighlight));n(".find-widget",e.getColor(g.editorWidgetBackground));var i=e.getColor(g.widgetShadow);i&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(g.editorFindMatchHighlightBorder);o&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+o+"; box-sizing: border-box; }");var r=e.getColor(g.editorFindMatchBorder);r&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+r+"; padding: 1px; box-sizing: border-box; }");var s=e.getColor(g.editorFindRangeHighlightBorder) +;s&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; }");var a=e.getColor(g.contrastBorder);a&&t.addRule(".monaco-editor .find-widget { border: 2px solid "+a+"; }");var l=e.getColor(g.errorForeground);l&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+l+"; }");var u=e.getColor(g.editorWidgetResizeBorder);if(u)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+u+"; width: 3px !important; margin-left: -4px;}");else{var d=e.getColor(g.editorWidgetBorder);d&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+d+"; width: 3px !important; margin-left: -4px;}")}})}),define(t[196],n([1,0,311,2,19,6,11,142,243,14,20,72,194,77,49,547,516,16,15,44]),function(e,t,n,i,r,s,l,d,c,h,p,f,g,m,v,_,y,C,b,S){"use strict";function w(e){var t=e.getSelection();if(t.startLineNumber===t.endLineNumber){if(!t.isEmpty())return e.getModel().getValueInRange(t);var n=e.getModel().getWordAtPosition(t.getStartPosition()) +;if(n)return n.word}return null}Object.defineProperty(t,"__esModule",{value:!0}),t.getSelectionSearchString=w;var E=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._editor=t,r._findWidgetVisible=d.CONTEXT_FIND_WIDGET_VISIBLE.bindTo(n),r._storageService=i,r._clipboardService=o,r._updateHistoryDelayer=new h.Delayer(500),r._state=r._register(new c.FindReplaceState),r.loadQueryState(),r._register(r._state.onFindReplaceStateChange(function(e){return r._onStateChanged(e)})),r._model=null,r._register(r._editor.onDidChangeModel(function(){var e=r._editor.getModel()&&r._state.isRevealed;r.disposeModel(),r._state.change({searchScope:null,matchCase:r._storageService.getBoolean("editor.matchCase",f.StorageScope.WORKSPACE,!1),wholeWord:r._storageService.getBoolean("editor.wholeWord",f.StorageScope.WORKSPACE,!1),isRegex:r._storageService.getBoolean("editor.isRegex",f.StorageScope.WORKSPACE,!1)},!1),e&&r._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1, +shouldFocus:0,shouldAnimate:!1})})),r}return o(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this.disposeModel(),e.prototype.dispose.call(this)},t.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},t.prototype.getId=function(){return t.ID},t.prototype._onStateChanged=function(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)},t.prototype.saveQueryState=function(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,f.StorageScope.WORKSPACE),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,f.StorageScope.WORKSPACE),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,f.StorageScope.WORKSPACE)},t.prototype.loadQueryState=function(){this._state.change({ +matchCase:this._storageService.getBoolean("editor.matchCase",f.StorageScope.WORKSPACE,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",f.StorageScope.WORKSPACE,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",f.StorageScope.WORKSPACE,this._state.isRegex)},!1)},t.prototype.getState=function(){return this._state},t.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},t.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1)},t.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1)},t.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1)},t.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else{var e=this._editor.getSelection() +;1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,1)),e.isEmpty()||this._state.change({searchScope:e},!0)}},t.prototype.setSearchString=function(e){this._state.isRegex&&(e=s.escapeRegExpCharacters(e)),this._state.change({searchString:e},!1)},t.prototype.highlightFindOptions=function(){},t.prototype._start=function(e){if(this.disposeModel(),this._editor.getModel()){var t={isRevealed:!0};if(e.seedSearchStringFromSelection){(n=w(this._editor))&&(this._state.isRegex?t.searchString=s.escapeRegExpCharacters(n):t.searchString=n)}if(!t.searchString&&e.seedSearchStringFromGlobalClipboard){var n=this.getGlobalBufferTerm();n&&(t.searchString=n)}e.forceRevealReplace?t.isReplaceRevealed=!0:this._findWidgetVisible.get()||(t.isReplaceRevealed=!1),this._state.change(t,!1),this._model||(this._model=new d.FindModelBoundToEditorModel(this._editor,this._state))}},t.prototype.start=function(e){this._start(e)},t.prototype.moveToNextMatch=function(){ +return!!this._model&&(this._model.moveToNextMatch(),!0)},t.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},t.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},t.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},t.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},t.prototype.getGlobalBufferTerm=function(){return this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},t.prototype.setGlobalBufferTerm=function(e){this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)},t.ID="editor.contrib.findController",t=a([u(1,r.IContextKeyService),u(2,f.IStorageService),u(3,g.IClipboardService)],t) +}(i.Disposable);t.CommonFindController=E;var L=function(e){function t(t,n,i,o,r,s,a){var l=e.call(this,t,i,s,a)||this;return l._contextViewService=n,l._contextKeyService=i,l._keybindingService=o,l._themeService=r,l}return o(t,e),t.prototype._start=function(t){this._widget||this._createFindWidget(),e.prototype._start.call(this,t),2===t.shouldFocus?this._widget.focusReplaceInput():1===t.shouldFocus&&this._widget.focusFindInput()},t.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},t.prototype._createFindWidget=function(){this._widget=this._register(new _.FindWidget(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService)),this._findOptionsWidget=this._register(new y.FindOptionsWidget(this._editor,this._state,this._keybindingService,this._themeService))}, +t=a([u(1,m.IContextViewService),u(2,r.IContextKeyService),u(3,v.IKeybindingService),u(4,C.IThemeService),u(5,f.IStorageService),u(6,b.optional(g.IClipboardService))],t)}(E);t.FindController=L;var x=function(e){function t(){return e.call(this,{id:d.FIND_IDS.StartFindAction,label:n.localize(0,null),alias:"Find",precondition:null,kbOpts:{kbExpr:null,primary:2084,weight:100},menubarOpts:{menuId:S.MenuId.MenubarEditMenu,group:"3_find",title:n.localize(1,null),order:1}})||this}return o(t,e),t.prototype.run=function(e,t){var n=E.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.globalFindClipboard,shouldFocus:1,shouldAnimate:!0})},t}(l.EditorAction);t.StartFindAction=x;var N=function(e){function t(){return e.call(this,{id:d.FIND_IDS.StartFindWithSelection,label:n.localize(2,null),alias:"Find With Selection",precondition:null,kbOpts:{kbExpr:null, +primary:null,mac:{primary:2083},weight:100}})||this}return o(t,e),t.prototype.run=function(e,t){var n=E.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:1,shouldAnimate:!0}),n.setGlobalBufferTerm(n.getState().searchString))},t}(l.EditorAction);t.StartFindWithSelectionAction=N;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.run=function(e,t){var n=E.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0}),this._run(n))},t}(l.EditorAction);t.MatchFindAction=I;var M=function(e){function t(){return e.call(this,{id:d.FIND_IDS.NextMatchFindAction,label:n.localize(3,null),alias:"Find Next",precondition:null,kbOpts:{kbExpr:p.EditorContextKeys.focus,primary:61,mac:{primary:2085, +secondary:[61]},weight:100}})||this}return o(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(I);t.NextMatchFindAction=M;var D=function(e){function t(){return e.call(this,{id:d.FIND_IDS.PreviousMatchFindAction,label:n.localize(4,null),alias:"Find Previous",precondition:null,kbOpts:{kbExpr:p.EditorContextKeys.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}return o(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(I);t.PreviousMatchFindAction=D;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.run=function(e,t){var n=E.get(t);if(n){var i=w(t);i&&n.setSearchString(i),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0}),this._run(n))}},t}(l.EditorAction);t.SelectionMatchFindAction=T;var k=function(e){function t(){return e.call(this,{ +id:d.FIND_IDS.NextSelectionMatchFindAction,label:n.localize(5,null),alias:"Find Next Selection",precondition:null,kbOpts:{kbExpr:p.EditorContextKeys.focus,primary:2109,weight:100}})||this}return o(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(T);t.NextSelectionMatchFindAction=k;var R=function(e){function t(){return e.call(this,{id:d.FIND_IDS.PreviousSelectionMatchFindAction,label:n.localize(6,null),alias:"Find Previous Selection",precondition:null,kbOpts:{kbExpr:p.EditorContextKeys.focus,primary:3133,weight:100}})||this}return o(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(T);t.PreviousSelectionMatchFindAction=R;var O=function(e){function t(){return e.call(this,{id:d.FIND_IDS.StartFindReplaceAction,label:n.localize(7,null),alias:"Replace",precondition:null,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menubarOpts:{menuId:S.MenuId.MenubarEditMenu,group:"3_find",title:n.localize(8,null),order:2}})||this}return o(t,e),t.prototype.run=function(e,t){ +if(!t.getConfiguration().readOnly){var n=E.get(t),i=t.getSelection(),o=!i.isEmpty()&&i.startLineNumber===i.endLineNumber&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,r=n.getState().searchString||o?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:o,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,shouldFocus:r,shouldAnimate:!0})}},t}(l.EditorAction);t.StartFindReplaceAction=O,l.registerEditorContribution(L),l.registerEditorAction(x),l.registerEditorAction(N),l.registerEditorAction(M),l.registerEditorAction(D),l.registerEditorAction(k),l.registerEditorAction(R),l.registerEditorAction(O);var P=l.EditorCommand.bindToContribution(E.get);l.registerEditorCommand(new P({id:d.FIND_IDS.CloseFindWidgetCommand,precondition:d.CONTEXT_FIND_WIDGET_VISIBLE,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:p.EditorContextKeys.focus,primary:9,secondary:[1033]}})),l.registerEditorCommand(new P({ +id:d.FIND_IDS.ToggleCaseSensitiveCommand,precondition:null,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:p.EditorContextKeys.focus,primary:d.ToggleCaseSensitiveKeybinding.primary,mac:d.ToggleCaseSensitiveKeybinding.mac,win:d.ToggleCaseSensitiveKeybinding.win,linux:d.ToggleCaseSensitiveKeybinding.linux}})),l.registerEditorCommand(new P({id:d.FIND_IDS.ToggleWholeWordCommand,precondition:null,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:p.EditorContextKeys.focus,primary:d.ToggleWholeWordKeybinding.primary,mac:d.ToggleWholeWordKeybinding.mac,win:d.ToggleWholeWordKeybinding.win,linux:d.ToggleWholeWordKeybinding.linux}})),l.registerEditorCommand(new P({id:d.FIND_IDS.ToggleRegexCommand,precondition:null,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:p.EditorContextKeys.focus,primary:d.ToggleRegexKeybinding.primary,mac:d.ToggleRegexKeybinding.mac,win:d.ToggleRegexKeybinding.win,linux:d.ToggleRegexKeybinding.linux}})), +l.registerEditorCommand(new P({id:d.FIND_IDS.ToggleSearchScopeCommand,precondition:null,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:p.EditorContextKeys.focus,primary:d.ToggleSearchScopeKeybinding.primary,mac:d.ToggleSearchScopeKeybinding.mac,win:d.ToggleSearchScopeKeybinding.win,linux:d.ToggleSearchScopeKeybinding.linux}})),l.registerEditorCommand(new P({id:d.FIND_IDS.ReplaceOneAction,precondition:d.CONTEXT_FIND_WIDGET_VISIBLE,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:p.EditorContextKeys.focus,primary:3094}})),l.registerEditorCommand(new P({id:d.FIND_IDS.ReplaceAllAction,precondition:d.CONTEXT_FIND_WIDGET_VISIBLE,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:p.EditorContextKeys.focus,primary:2563}})),l.registerEditorCommand(new P({id:d.FIND_IDS.SelectAllMatchesAction,precondition:d.CONTEXT_FIND_WIDGET_VISIBLE,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:p.EditorContextKeys.focus,primary:515}}))}), +define(t[549],n([1,0,326,2,39,14,24,20,11,3,21,54,181,17,196,29,22,16,44]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g,m,v,_,y){"use strict";function C(e,t,n){for(var i=b(e,t[0],!n),o=1,r=t.length;o1&&n.push(new c.Selection(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}},t.prototype.run=function(e,t){var n=this,i=t.getModel(),o=[];t.getSelections().forEach(function(e){return n.getCursorsForSelection(e,i,o)}),o.length>0&&t.setSelections(o)},t}(u.EditorAction),L=function(){return function(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n}}();t.MultiCursorSessionResult=L;var x=function(){function e(e,t,n,i,o,r,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=i,this.wholeWord=o,this.matchCase=r,this.currentMatch=s}return e.create=function(t,n){var i=n.getState() +;if(!t.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new e(t,n,!1,i.searchString,i.wholeWord,i.matchCase,null);var o,r,s=!1,a=t.getSelections();1===a.length&&a[0].isEmpty()?(s=!0,o=!0,r=!0):(o=i.wholeWord,r=i.matchCase);var l,u=t.getSelection(),d=null;if(u.isEmpty()){var h=t.getModel().getWordAtPosition(u.getStartPosition());if(!h)return null;l=h.word,d=new c.Selection(u.startLineNumber,h.startColumn,u.startLineNumber,h.endColumn)}else l=t.getModel().getValueInRange(u).replace(/\r\n/g,"\n");return new e(t,n,s,l,o,r,d)},e.prototype.addSelectionToNextFindMatch=function(){var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new L(t.concat(e),e,0)},e.prototype.moveSelectionToNextFindMatch=function(){var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new L(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getNextMatch=function(){if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e} +this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findNextMatch(this.searchText,n.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new c.Selection(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.addSelectionToPreviousFindMatch=function(){var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new L(t.concat(e),e,0)},e.prototype.moveSelectionToPreviousFindMatch=function(){var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new L(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getPreviousMatch=function(){if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions() +;var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,n.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new c.Selection(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.selectAll=function(){return this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824)},e}();t.MultiCursorSession=x;var N=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._ignoreSelectionChange=!1,n._session=null,n._sessionDispose=[],n}return o(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this._endSession(),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype._beginSessionIfNeeded=function(e){var t=this;if(!this._session){ +var n=x.create(this._editor,e);if(!n)return;this._session=n;var i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose=[this._editor.onDidChangeCursorSelection(function(e){t._ignoreSelectionChange||t._endSession()}),this._editor.onDidBlurEditorText(function(){t._endSession()}),e.getState().onFindReplaceStateChange(function(e){(e.matchCase||e.wholeWord)&&t._endSession()})]}},t.prototype._endSession=function(){if(this._sessionDispose=i.dispose(this._sessionDispose),this._session&&this._session.isDisconnectedFromFindController){var e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null},t.prototype._setSelections=function(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1},t.prototype._expandEmptyToWord=function(e,t){if(!t.isEmpty())return t +;var n=e.getWordAtPosition(t.getStartPosition());return n?new c.Selection(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t},t.prototype._applySessionResult=function(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))},t.prototype.getSession=function(e){return this._session},t.prototype.addSelectionToNextFindMatch=function(e){if(!this._session){var t=this._editor.getSelections();if(t.length>1){var n=e.getState().matchCase;if(!C(this._editor.getModel(),t,n)){for(var i=this._editor.getModel(),o=[],r=0,s=t.length;r0&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(t.length>0){for(var i=this._editor.getSelection(),o=0,r=t.length;o1){var l=r.getState().matchCase;if(!C(t.getModel(),a,l))return null}s=x.create(t,r)}if(!s)return null;var u=null,d=f.DocumentHighlightProviderRegistry.has(n);if(s.currentMatch){if(d)return null;if(!t.getConfiguration().contribInfo.occurrencesHighlight)return null;u=s.currentMatch}if(/^[ \t]+$/.test(s.searchText))return null;if(s.searchText.length>200)return null;var c=r.getState(),h=c.matchCase;if(c.isRevealed){var p=c.searchString;h||(p=p.toLowerCase());var m=s.searchText;if(h||(m=m.toLowerCase()), +p===m&&s.matchCase===c.matchCase&&s.wholeWord===c.wholeWord&&!c.isRegex)return null}return new P(u,s.searchText,s.matchCase,s.wholeWord?t.getConfiguration().wordSeparators:null)},t.prototype._setState=function(e){if(P.softEquals(this.state,e))this.state=e;else if(this.state=e,this.state){var n=this.editor.getModel();if(!n.isTooLargeForTokenization()){var i=f.DocumentHighlightProviderRegistry.has(n),o=n.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(e){return e.range});o.sort(d.Range.compareRangesUsingStarts);var r=this.editor.getSelections();r.sort(d.Range.compareRangesUsingStarts);for(var s=[],a=0,l=0,u=o.length,c=r.length;a=c)s.push(h),a++;else{var p=d.Range.compareRangesUsingStarts(h,r[l]);p<0?(!r[l].isEmpty()&&d.Range.areIntersecting(h,r[l])||s.push(h),a++):p>0?l++:(a++,l++)}}var g=s.map(function(e){return{range:e,options:i?t._SELECTION_HIGHLIGHT:t._SELECTION_HIGHLIGHT_OVERVIEW}}) +;this.decorations=this.editor.deltaDecorations(this.decorations,g)}}else this.decorations=this.editor.deltaDecorations(this.decorations,[])},t.prototype.dispose=function(){this._setState(null),e.prototype.dispose.call(this)},t.ID="editor.contrib.selectionHighlighter",t._SELECTION_HIGHLIGHT_OVERVIEW=m.ModelDecorationOptions.register({stickiness:a.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"selectionHighlight",overviewRuler:{color:_.themeColorFromId(v.overviewRulerSelectionHighlightForeground),darkColor:_.themeColorFromId(v.overviewRulerSelectionHighlightForeground),position:a.OverviewRulerLane.Center}}),t._SELECTION_HIGHLIGHT=m.ModelDecorationOptions.register({stickiness:a.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"selectionHighlight"}),t}(i.Disposable);t.SelectionHighlighter=A,u.registerEditorContribution(N),u.registerEditorContribution(A),u.registerEditorAction(S),u.registerEditorAction(w),u.registerEditorAction(E),u.registerEditorAction(M),u.registerEditorAction(D), +u.registerEditorAction(T),u.registerEditorAction(k),u.registerEditorAction(R),u.registerEditorAction(O)}),define(t[147],n([1,0,31,50,15,70]),function(e,t,n,i,o,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkspaceContextService=o.createDecorator("contextService");!function(e){e.isIWorkspace=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&"string"==typeof e.name&&Array.isArray(e.folders)}}(t.IWorkspace||(t.IWorkspace={}));!function(e){e.isIWorkspaceFolder=function(e){return e&&"object"==typeof e&&n.default.isUri(e.uri)&&"string"==typeof e.name&&"function"==typeof e.toResource}}(t.IWorkspaceFolder||(t.IWorkspaceFolder={}));var s=function(){function e(e,t,n,i,o){void 0===t&&(t=""),void 0===n&&(n=[]),void 0===i&&(i=null),this._id=e,this._name=t,this._configuration=i,this._ctime=o,this._foldersMap=r.TernarySearchTree.forPaths(),this.folders=n}return Object.defineProperty(e.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e, +this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),e.prototype.getFolder=function(e){return e?this._foldersMap.findSubstr(e.toString()):null},e.prototype.updateFoldersMap=function(){this._foldersMap=r.TernarySearchTree.forPaths();for(var e=0,t=this.folders;e1?this.badge.setTitleFormat(n.localize(1,null,t)):this.badge.setTitleFormat(n.localize(2,null,t))},e=a([u(1,b.IWorkspaceContextService),u(2,C.optional(T.IEnvironmentService)),u(3,M.IThemeService)],e)}(),K=function(){function e(e){var t=document.createElement("div");this.before=document.createElement("span"),this.inside=document.createElement("span"),this.after=document.createElement("span"),m.addClass(this.inside,"referenceMatch"),m.addClass(t,"reference"),t.appendChild(this.before),t.appendChild(this.inside),t.appendChild(this.after),e.appendChild(t)}return e.prototype.set=function(e){var t=e.parent.preview.preview(e.range),n=t.before,i=t.inside,o=t.after;this.before.innerHTML=h.escape(n), +this.inside.innerHTML=h.escape(i),this.after.innerHTML=h.escape(o)},e}(),U=function(){function e(e,t,n){this._contextService=e,this._themeService=t,this._environmentService=n}return e.prototype.getHeight=function(e,t){return 23},e.prototype.getTemplateId=function(t,n){if(n instanceof x.FileReferences)return e._ids.FileReferences;if(n instanceof x.OneReference)return e._ids.OneReference;throw n},e.prototype.renderTemplate=function(t,n,i){if(n===e._ids.FileReferences)return new z(i,this._contextService,this._environmentService,this._themeService);if(n===e._ids.OneReference)return new K(i);throw n},e.prototype.renderElement=function(e,t,n,i){if(t instanceof x.FileReferences)i.set(t);else{if(!(t instanceof x.OneReference))throw n;i.set(t)}},e.prototype.disposeTemplate=function(e,t,n){n instanceof z&&n.dispose()},e._ids={FileReferences:"FileReferences",OneReference:"OneReference"},e=a([u(0,b.IWorkspaceContextService),u(1,M.IThemeService),u(2,C.optional(T.IEnvironmentService))],e)}(),j=function(){function e(){} +return e.prototype.getAriaLabel=function(e,t){return t instanceof x.FileReferences?t.getAriaMessage():t instanceof x.OneReference?t.getAriaMessage():void 0},e}(),q=function(){function e(e,t){var n=this;this._disposables=[],this._onDidChangePercentages=new r.Emitter,this._ratio=t,this._sash=new v.Sash(e,{getVerticalSashLeft:function(){return n._width*n._ratio},getVerticalSashHeight:function(){return n._height}});var i;this._disposables.push(this._sash.onDidStart(function(e){i=e.startX-n._width*n.ratio})),this._disposables.push(this._sash.onDidChange(function(e){var t=e.currentX-i;t>20&&t+200?e.children[0]:void 0},h.prototype._revealReference=function(e,t){return d(this,void 0,void 0,function(){var o,r=this;return c(this,function(a){switch(a.label){case 0:return e.uri.scheme!==l.Schemas.inMemory?this.setTitle(W.basenameOrAuthority(e.uri),this._uriDisplay.getLabel(W.dirname(e.uri),!1)):this.setTitle(n.localize(6,null)),o=this._textModelResolverService.createModelReference(e.uri),t?[4,this._tree.reveal(e.parent)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2,p.TPromise.join([o,this._tree.reveal(e)]).then(function(t){var n=t[0];if(r._model){s.dispose(r._previewModelReference);var i=n.object;if(i){r._previewModelReference=n;var o=r._preview.getModel()===i.textEditorModel;r._preview.setModel(i.textEditorModel) +;var a=S.Range.lift(e.range).collapseToStart();r._preview.setSelection(a),r._preview.revealRangeInCenter(a,o?0:1)}else r._preview.setModel(r._previewNotAvailableMessage),n.dispose()}else n.dispose()},i.onUnexpectedError)]}})})},h=a([u(3,M.IThemeService),u(4,N.ITextModelService),u(5,C.IInstantiationService),u(6,F.IUriDisplayService)],h)}(L.PeekViewWidget);t.ReferenceWidget=G,t.peekViewTitleBackground=I.registerColor("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},n.localize(7,null)),t.peekViewTitleForeground=I.registerColor("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},n.localize(8,null)),t.peekViewTitleInfoForeground=I.registerColor("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#6c6c6cb3",hc:"#FFFFFF99"},n.localize(9,null)),t.peekViewBorder=I.registerColor("peekView.border",{dark:"#007acc",light:"#007acc",hc:I.contrastBorder},n.localize(10,null)),t.peekViewResultsBackground=I.registerColor("peekViewResult.background",{dark:"#252526", +light:"#F3F3F3",hc:f.Color.black},n.localize(11,null)),t.peekViewResultsMatchForeground=I.registerColor("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:f.Color.white},n.localize(12,null)),t.peekViewResultsFileForeground=I.registerColor("peekViewResult.fileForeground",{dark:f.Color.white,light:"#1E1E1E",hc:f.Color.white},n.localize(13,null)),t.peekViewResultsSelectionBackground=I.registerColor("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},n.localize(14,null)),t.peekViewResultsSelectionForeground=I.registerColor("peekViewResult.selectionForeground",{dark:f.Color.white,light:"#6C6C6C",hc:f.Color.white},n.localize(15,null)),t.peekViewEditorBackground=I.registerColor("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:f.Color.black},n.localize(16,null)),t.peekViewEditorGutterBackground=I.registerColor("peekViewEditorGutter.background",{dark:t.peekViewEditorBackground,light:t.peekViewEditorBackground,hc:t.peekViewEditorBackground +},n.localize(17,null)),t.peekViewResultsMatchHighlight=I.registerColor("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},n.localize(18,null)),t.peekViewEditorMatchHighlight=I.registerColor("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},n.localize(19,null)),t.peekViewEditorMatchHighlightBorder=I.registerColor("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:I.activeContrastBorder},n.localize(20,null)),M.registerThemingParticipant(function(e,n){var i=e.getColor(t.peekViewResultsMatchHighlight);i&&n.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch { background-color: "+i+"; }");var o=e.getColor(t.peekViewEditorMatchHighlight);o&&n.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+o+"; }");var r=e.getColor(t.peekViewEditorMatchHighlightBorder) +;r&&n.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+r+"; box-sizing: border-box; }");var s=e.getColor(I.activeContrastBorder);s&&n.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch { border: 1px dotted "+s+"; box-sizing: border-box; }");var a=e.getColor(t.peekViewResultsBackground);a&&n.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+a+"; }");var l=e.getColor(t.peekViewResultsMatchForeground);l&&n.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+l+"; }");var u=e.getColor(t.peekViewResultsFileForeground);u&&n.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+u+"; }");var d=e.getColor(t.peekViewResultsSelectionBackground);d&&n.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+d+"; }");var c=e.getColor(t.peekViewResultsSelectionForeground) +;c&&n.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+c+" !important; }");var h=e.getColor(t.peekViewEditorBackground);h&&n.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: "+h+";}");var p=e.getColor(t.peekViewEditorGutterBackground);p&&n.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+p+";}")})}),define(t[148],n([1,0,331,10,2,32,15,19,51,72,198,3,12,37]),function(e,t,n,i,o,r,s,l,h,p,f,g,m,v){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ctxReferenceSearchVisible=new l.RawContextKey("referenceSearchVisible",!1);var _=function(){function e(e,n,i,o,r,s,a,l){this._defaultTreeKeyboardSupport=e,this._editorService=o,this._notificationService=r,this._instantiationService=s, +this._storageService=a,this._configurationService=l,this._requestIdPool=0,this._disposables=[],this._ignoreModelChangeEvent=!1,this._editor=n,this._referenceSearchVisible=t.ctxReferenceSearchVisible.bindTo(i)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._referenceSearchVisible.reset(),o.dispose(this._disposables),o.dispose(this._widget),o.dispose(this._model),this._widget=null,this._model=null,this._editor=null},e.prototype.toggleWidget=function(e,t,i){var o,r=this;if(this._widget&&(o=this._widget.position),this.closeWidget(),o&&e.containsPosition(o))return null;this._referenceSearchVisible.set(!0),this._disposables.push(this._editor.onDidChangeModelLanguage(function(){r.closeWidget()})),this._disposables.push(this._editor.onDidChangeModel(function(){r._ignoreModelChangeEvent||r.closeWidget()}));var s=JSON.parse(this._storageService.get("peekViewLayout",void 0,"{}")) +;this._widget=this._instantiationService.createInstance(f.ReferenceWidget,this._editor,this._defaultTreeKeyboardSupport,s),this._widget.setTitle(n.localize(0,null)),this._widget.show(e),this._disposables.push(this._widget.onDidClose(function(){t.cancel(),r._storageService.store("peekViewLayout",JSON.stringify(r._widget.layoutData)),r._widget=null,r.closeWidget()})),this._disposables.push(this._widget.onDidSelectReference(function(e){var t=e.element,n=e.kind;switch(n){case"open":if("editor"===e.source&&r._configurationService.getValue("editor.stablePeek"))break;case"side":r.openReference(t,"side"===n);break;case"goto":i.onGoto?i.onGoto(t):r._gotoReference(t)}}));var a=++this._requestIdPool;t.then(function(t){if(a===r._requestIdPool&&r._widget)return r._model&&r._model.dispose(),r._model=t,r._widget.setModel(r._model).then(function(){if(r._widget){r._widget.setMetaTitle(i.getMetaTitle(r._model));var t=r._editor.getModel().uri,n=new m.Position(e.startLineNumber,e.startColumn),o=r._model.nearestReference(t,n) +;if(o)return r._widget.setSelection(o)}})},function(e){r._notificationService.error(e)})},e.prototype.goToNextOrPreviousReference=function(e){return d(this,void 0,void 0,function(){var t,n,i;return c(this,function(o){switch(o.label){case 0:return this._model?(t=this._model.nearestReference(this._editor.getModel().uri,this._widget.position),n=this._model.nextOrPreviousReference(t,e),i=this._editor.hasTextFocus(),[4,this._widget.setSelection(n)]):[3,3];case 1:return o.sent(),[4,this._gotoReference(n)];case 2:o.sent(),i&&this._editor.focus(),o.label=3;case 3:return[2]}})})},e.prototype.closeWidget=function(){o.dispose(this._widget),this._widget=null,this._referenceSearchVisible.reset(),this._disposables=o.dispose(this._disposables),o.dispose(this._model),this._model=null,this._editor.focus(),this._requestIdPool+=1},e.prototype._gotoReference=function(e){var t=this;this._widget.hide(),this._ignoreModelChangeEvent=!0;var n=g.Range.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({ +resource:e.uri,options:{selection:n}},this._editor).then(function(e){t._ignoreModelChangeEvent=!1,e&&e===t._editor?(t._widget.show(n),t._widget.focus()):t.closeWidget()},function(e){t._ignoreModelChangeEvent=!1,i.onUnexpectedError(e)})},e.prototype.openReference=function(e,t){var n=e.uri,i=e.range;this._editorService.openCodeEditor({resource:n,options:{selection:i}},this._editor,t),t||this.closeWidget()},e.ID="editor.contrib.referencesController",e=a([u(2,l.IContextKeyService),u(3,r.ICodeEditorService),u(4,v.INotificationService),u(5,s.IInstantiationService),u(6,p.IStorageService),u(7,h.IConfigurationService)],e)}();t.ReferencesController=_}),define(t[200],n([1,0,316,52,39,18,32,3,11,174,148,123,144,19,143,20,92,37,14]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g,m,v,_,y){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var C=function(){return function(e,t,n,i){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===i&&(i=!0),this.openToSide=e,this.openInPeek=t,this.filterCurrent=n, +this.showMessage=i}}();t.DefinitionActionConfig=C;var b=function(e){function t(t,n){var i=e.call(this,n)||this;return i._configuration=t,i}return o(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(_.INotificationService),o=e.get(a.ICodeEditorService),r=e.get(v.IProgressService),s=t.getModel(),u=t.getPosition(),d=this._getDeclarationsAtPosition(s,u).then(function(e){if(!s.isDisposed()&&t.getModel()===s){for(var i=-1,r=[],a=0;a1&&n.localize(2,null,e.references.length)},t.prototype._onResult=function(e,t,n){var o=this,r=n.getAriaMessage();if(i.alert(r),this._configuration.openInPeek)this._openInPeek(e,t,n);else{var s=n.nearestReference(t.getModel().uri,t.getPosition());this._openReference(t,e,s,this._configuration.openToSide).then(function(t){t&&n.references.length>1?o._openInPeek(e,t,n):n.dispose()})}},t.prototype._openReference=function(e,t,n,i){var o=n.uri,r=n.range;return t.openCodeEditor({resource:o,options:{selection:l.Range.collapseToStart(r),revealIfOpened:!0,revealInCenterIfOutsideViewport:!0}},e,i)},t.prototype._openInPeek=function(e,t,n){var i=this,o=c.ReferencesController.get(t);o?o.toggleWidget(t.getSelection(),y.createCancelablePromise(function(e){return Promise.resolve(n)}),{getMetaTitle:function(e){ +return i._getMetaTitle(e)},onGoto:function(n){return o.closeWidget(),i._openReference(t,e,n,!1)}}):n.dispose()},t}(u.EditorAction);t.DefinitionAction=b;var S=s.isWeb?2118:70,w=function(e){function t(){return e.call(this,new C,{id:t.ID,label:n.localize(3,null),alias:"Go to Definition",precondition:f.ContextKeyExpr.and(m.EditorContextKeys.hasDefinitionProvider,m.EditorContextKeys.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:m.EditorContextKeys.editorTextFocus,primary:S,weight:100},menuOpts:{group:"navigation",order:1.1}})||this}return o(t,e),t.ID="editor.action.goToDeclaration",t}(b);t.GoToDefinitionAction=w;var E=function(e){function t(){return e.call(this,new C(!0),{id:t.ID,label:n.localize(4,null),alias:"Open Definition to the Side",precondition:f.ContextKeyExpr.and(m.EditorContextKeys.hasDefinitionProvider,m.EditorContextKeys.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:m.EditorContextKeys.editorTextFocus,primary:r.KeyChord(2089,S),weight:100}})||this}return o(t,e), +t.ID="editor.action.openDeclarationToTheSide",t}(b);t.OpenDefinitionToSideAction=E;var L=function(e){function t(){return e.call(this,new C(void 0,!0,!1),{id:"editor.action.previewDeclaration",label:n.localize(5,null),alias:"Peek Definition",precondition:f.ContextKeyExpr.and(m.EditorContextKeys.hasDefinitionProvider,p.PeekContext.notInPeekEditor,m.EditorContextKeys.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:m.EditorContextKeys.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menuOpts:{group:"navigation",order:1.2}})||this}return o(t,e),t}(b);t.PeekDefinitionAction=L;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._getDeclarationsAtPosition=function(e,t){return d.getImplementationsAtPosition(e,t)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?n.localize(6,null,e.word):n.localize(7,null)},t.prototype._getMetaTitle=function(e){return e.references.length>1&&n.localize(8,null,e.references.length)},t}(b) +;t.ImplementationAction=x;var N=function(e){function t(){return e.call(this,new C,{id:t.ID,label:n.localize(9,null),alias:"Go to Implementation",precondition:f.ContextKeyExpr.and(m.EditorContextKeys.hasImplementationProvider,m.EditorContextKeys.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:m.EditorContextKeys.editorTextFocus,primary:2118,weight:100}})||this}return o(t,e),t.ID="editor.action.goToImplementation",t}(x);t.GoToImplementationAction=N;var I=function(e){function t(){return e.call(this,new C(!1,!0,!1),{id:t.ID,label:n.localize(10,null),alias:"Peek Implementation",precondition:f.ContextKeyExpr.and(m.EditorContextKeys.hasImplementationProvider,m.EditorContextKeys.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:m.EditorContextKeys.editorTextFocus,primary:3142,weight:100}})||this}return o(t,e),t.ID="editor.action.peekImplementation",t}(x);t.PeekImplementationAction=I;var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e), +t.prototype._getDeclarationsAtPosition=function(e,t){return d.getTypeDefinitionsAtPosition(e,t)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?n.localize(11,null,e.word):n.localize(12,null)},t.prototype._getMetaTitle=function(e){return e.references.length>1&&n.localize(13,null,e.references.length)},t}(b);t.TypeDefinitionAction=M;var D=function(e){function t(){return e.call(this,new C,{id:t.ID,label:n.localize(14,null),alias:"Go to Type Definition",precondition:f.ContextKeyExpr.and(m.EditorContextKeys.hasTypeDefinitionProvider,m.EditorContextKeys.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:m.EditorContextKeys.editorTextFocus,primary:0,weight:100},menuOpts:{group:"navigation",order:1.4}})||this}return o(t,e),t.ID="editor.action.goToTypeDefinition",t}(M);t.GoToTypeDefinitionAction=D;var T=function(e){function t(){return e.call(this,new C(!1,!0,!1),{id:t.ID,label:n.localize(15,null),alias:"Peek Type Definition", +precondition:f.ContextKeyExpr.and(m.EditorContextKeys.hasTypeDefinitionProvider,m.EditorContextKeys.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:m.EditorContextKeys.editorTextFocus,primary:0,weight:100}})||this}return o(t,e),t.ID="editor.action.peekTypeDefinition",t}(M);t.PeekTypeDefinitionAction=T,u.registerEditorAction(w),u.registerEditorAction(E),u.registerEditorAction(L),u.registerEditorAction(N),u.registerEditorAction(I),u.registerEditorAction(D),u.registerEditorAction(T)}),define(t[554],n([1,0,317,14,10,79,13,64,3,17,23,11,174,2,107,16,22,68,200,169,12,156]),function(e,t,n,i,o,r,s,l,d,c,h,p,f,g,m,v,_,y,C,b,S){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var w=function(){function e(e,t,n){var r=this;this.textModelResolverService=t,this.modeService=n,this.toUnhook=[],this.decorations=[],this.editor=e,this.throttler=new i.Throttler;var s=new b.ClickLinkGesture(e);this.toUnhook.push(s),this.toUnhook.push(s.onMouseMoveOrRelevantKeyDown(function(e){var t=e[0],n=e[1] +;r.startFindDefinition(t,n)})),this.toUnhook.push(s.onExecute(function(e){r.isEnabled(e)&&r.gotoDefinition(e.target,e.hasSideBySideModifier).done(function(){r.removeDecorations()},function(e){r.removeDecorations(),o.onUnexpectedError(e)})})),this.toUnhook.push(s.onCancel(function(){r.removeDecorations(),r.currentWordUnderMouse=null}))}return e.prototype.startFindDefinition=function(e,t){var i=this;if(!this.isEnabled(e,t))return this.currentWordUnderMouse=null,void this.removeDecorations();var a=e.target.position,l=a?this.editor.getModel().getWordAtPosition(a):null;if(!l)return this.currentWordUnderMouse=null,void this.removeDecorations();if(!this.currentWordUnderMouse||this.currentWordUnderMouse.startColumn!==l.startColumn||this.currentWordUnderMouse.endColumn!==l.endColumn||this.currentWordUnderMouse.word!==l.word){this.currentWordUnderMouse=l;var u=new y.EditorState(this.editor,15);this.throttler.queue(function(){return u.validate(i.editor)?i.findDefinition(e.target):s.TPromise.wrap(null) +}).then(function(e){if(e&&e.length&&u.validate(i.editor))if(e.length>1)i.addDecoration(new d.Range(a.lineNumber,l.startColumn,a.lineNumber,l.endColumn),(new r.MarkdownString).appendText(n.localize(0,null,e.length)));else{var t=e[0];if(!t.uri)return;i.textModelResolverService.createModelReference(t.uri).then(function(e){if(e.object&&e.object.textEditorModel){var n=e.object.textEditorModel,o=t.range.startLineNumber;if(0!==n.getLineMaxColumn(o)){var s,u=i.getPreviewValue(n,o);s=t.origin?d.Range.lift(t.origin):new d.Range(a.lineNumber,l.startColumn,a.lineNumber,l.endColumn),i.addDecoration(s,(new r.MarkdownString).appendCodeblock(i.modeService.getModeIdByFilenameOrFirstLine(n.uri.fsPath),u)),e.dispose()}else e.dispose()}else e.dispose()})}else i.removeDecorations()}).done(void 0,o.onUnexpectedError)}},e.prototype.getPreviewValue=function(t,n){var i=this.getPreviewRangeBasedOnBrackets(t,n);i.endLineNumber-i.startLineNumber>=e.MAX_SOURCE_PREVIEW_LINES&&(i=this.getPreviewRangeBasedOnIndentation(t,n)) +;return this.stripIndentationFromPreviewRange(t,n,i)},e.prototype.stripIndentationFromPreviewRange=function(e,t,n){for(var i=e.getLineFirstNonWhitespaceColumn(t),o=t+1;oi)return new d.Range(n,1,i+1,1);s=t.findNextBracket(new S.Position(u,c))}return new d.Range(n,1,i+1,1)},e.prototype.addDecoration=function(e,t){var n={range:e,options:{inlineClassName:"goto-definition-link",hoverMessage:t}};this.decorations=this.editor.deltaDecorations(this.decorations,[n])},e.prototype.removeDecorations=function(){this.decorations.length>0&&(this.decorations=this.editor.deltaDecorations(this.decorations,[]))},e.prototype.isEnabled=function(e,t){return this.editor.getModel()&&e.isNoneOrSingleMouseDown&&e.target.type===h.MouseTargetType.CONTENT_TEXT&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey)&&c.DefinitionProviderRegistry.has(this.editor.getModel())},e.prototype.findDefinition=function(e){var t=this.editor.getModel();return t?f.getDefinitionsAtPosition(t,e.position):s.TPromise.as(null)},e.prototype.gotoDefinition=function(e,t){var n=this;this.editor.setPosition(e.position) +;var i=new C.DefinitionAction(new C.DefinitionActionConfig(t,!1,!0,!1),{alias:void 0,label:void 0,id:void 0,precondition:void 0});return this.editor.invokeWithinContext(function(e){return i.run(e,n.editor)})},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this.toUnhook=g.dispose(this.toUnhook)},e.ID="editor.contrib.gotodefinitionwithmouse",e.MAX_SOURCE_PREVIEW_LINES=8,e=a([u(1,m.ITextModelService),u(2,l.IModeService)],e)}();p.registerEditorContribution(w),v.registerThemingParticipant(function(e,t){var n=e.getColor(_.editorActiveLinkForeground);n&&t.addRule(".monaco-editor .goto-definition-link { color: "+n+" !important; }")})}),define(t[555],n([1,0,330,13,19,97,12,11,17,3,144,148,123,14,10,20,141,23,146,198,34,31,32,40]),function(e,t,n,i,r,s,l,d,c,h,p,f,g,m,v,_,y,C,b,S,w,E,L,x){"use strict";function N(e,t){I(e,function(e){return e.closeWidget()})}function I(e,t){var n=p.getOuterEditor(e);if(n){var i=f.ReferencesController.get(n);i&&t(i)}}function M(e,t,n){ +var i=c.ReferenceProviderRegistry.ordered(e).map(function(n){return m.asWinJsPromise(function(i){return n.provideReferences(e,t,{includeDeclaration:!0},i)}).then(function(e){if(Array.isArray(e))return e},function(e){v.onUnexpectedExternalError(e)})});return Promise.all(i).then(function(e){for(var t=[],n=0,i=e;n1&&n.localize(0,null,e.references.length)}};var D=function(){function e(e,t){e instanceof y.EmbeddedCodeEditorWidget&&p.PeekContext.inPeekEditor.bindTo(t)}return e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID},e.ID="editor.contrib.referenceController",e=a([u(1,r.IContextKeyService)],e)}();t.ReferenceController=D;var T=function(e){function i(){return e.call(this,{id:"editor.action.referenceSearch.trigger",label:n.localize(1,null),alias:"Find All References", +precondition:r.ContextKeyExpr.and(_.EditorContextKeys.hasReferenceProvider,p.PeekContext.notInPeekEditor,_.EditorContextKeys.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:_.EditorContextKeys.editorTextFocus,primary:1094,weight:100},menuOpts:{group:"navigation",order:1.5}})||this}return o(i,e),i.prototype.run=function(e,n){var i=f.ReferencesController.get(n);if(i){var o=n.getSelection(),r=n.getModel(),s=m.createCancelablePromise(function(e){return M(r,o.getStartPosition()).then(function(e){return new g.ReferencesModel(e)})});i.toggleWidget(o,s,t.defaultReferenceSearchOptions)}},i}(d.EditorAction);t.ReferenceAction=T,d.registerEditorContribution(D),d.registerEditorAction(T);w.CommandsRegistry.registerCommand({id:"editor.action.findReferences",handler:function(e,n,o){if(!(n instanceof E.default))throw new Error("illegal argument, uri");if(!o)throw new Error("illegal argument, position");var r=e.get(L.ICodeEditorService);return r.openCodeEditor({resource:n},r.getFocusedCodeEditor()).then(function(e){ +if(C.isCodeEditor(e)){var n=f.ReferencesController.get(e);if(n){var r=m.createCancelablePromise(function(t){return M(e.getModel(),l.Position.lift(o)).then(function(e){return new g.ReferencesModel(e)})}),s=new h.Range(o.lineNumber,o.column,o.lineNumber,o.column);return i.TPromise.as(n.toggleWidget(s,r,t.defaultReferenceSearchOptions))}}})}}),w.CommandsRegistry.registerCommand({id:"editor.action.showReferences",handler:function(e,n,o,r){if(!(n instanceof E.default))throw new Error("illegal argument, uri expected");var s=e.get(L.ICodeEditorService);return s.openCodeEditor({resource:n},s.getFocusedCodeEditor()).then(function(e){if(C.isCodeEditor(e)){var n=f.ReferencesController.get(e);if(n)return i.TPromise.as(n.toggleWidget(new h.Range(o.lineNumber,o.column,o.lineNumber,o.column),m.createCancelablePromise(function(e){return Promise.resolve(new g.ReferencesModel(r))}),t.defaultReferenceSearchOptions)).then(function(){return!0})}})},description:{description:"Show references at a position in a file",args:[{ +name:"uri",description:"The text document in which to show references",constraint:E.default},{name:"position",description:"The position at which to show",constraint:l.Position.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array}]}}),s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"goToNextReference",weight:250,primary:62,when:f.ctxReferenceSearchVisible,handler:function(e){I(e,function(e){e.goToNextOrPreviousReference(!0)})}}),s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"goToNextReferenceFromEmbeddedEditor",weight:150,primary:62,when:p.PeekContext.inPeekEditor,handler:function(e){I(e,function(e){e.goToNextOrPreviousReference(!0)})}}),s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:250,primary:1086,when:f.ctxReferenceSearchVisible,handler:function(e){I(e,function(e){e.goToNextOrPreviousReference(!1)})}}),s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"goToPreviousReferenceFromEmbeddedEditor", +weight:150,primary:1086,when:p.PeekContext.inPeekEditor,handler:function(e){I(e,function(e){e.goToNextOrPreviousReference(!1)})}}),s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:r.ContextKeyExpr.and(f.ctxReferenceSearchVisible,r.ContextKeyExpr.not("config.editor.stablePeek")),handler:N}),s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"closeReferenceSearchEditor",weight:-1,primary:9,secondary:[1033],when:r.ContextKeyExpr.and(p.PeekContext.inPeekEditor,r.ContextKeyExpr.not("config.editor.stablePeek")),handler:N}),s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:r.ContextKeyExpr.and(f.ctxReferenceSearchVisible,S.ctxReferenceWidgetSearchTreeFocused),handler:function(e,t){var n=e.get(b.IListService),i=n.lastFocusedList&&n.lastFocusedList.getFocus();i instanceof g.OneReference&&I(e,function(e){return e.openReference(i,!0)})}}),t.provideReferences=M, +d.registerDefaultLanguageCommand("_executeReferenceProvider",function(e,t){return M(e,t,x.CancellationToken.None)})}),define(t[556],n([1,0,133,104,188,185,510,447,448,449,512,173,455,456,457,458,196,459,460,462,200,554,518,520,521,465,522,549,527,525,555,530,468,135,532,178,533,179,474]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}),define(t[557],n([1,0,32,15,19,51,72,11,37,148]),function(e,t,n,i,r,s,l,d,c,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=function(e){function t(t,n,i,o,r,s,a){return e.call(this,!0,t,n,i,o,r,s,a)||this}return o(t,e),t=a([u(1,r.IContextKeyService),u(2,n.ICodeEditorService),u(3,c.INotificationService),u(4,i.IInstantiationService),u(5,l.IStorageService),u(6,s.IConfigurationService)],t)}(h.ReferencesController);t.StandaloneReferencesController=p,d.registerEditorContribution(p)}), +define(t[128],n([1,0,118,31,13,34,415,419,154,49,147,23,9,438,2,7,57,97,409,39,418,18,3,37,12,126,17,53,349]),function(e,t,n,i,r,s,a,l,u,d,c,h,p,f,g,m,v,_,y,C,b,S,w,E,L,x,N,I,M){"use strict";function D(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof i.default)}Object.defineProperty(t,"__esModule",{value:!0});var T=function(){function e(e){this.model=e,this._onDispose=new p.Emitter}return Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose.fire()},e}();t.SimpleModel=T;var k=function(){function e(){}return e.prototype.setEditor=function(e){this.editor=e},e.prototype.createModelReference=function(e){var t,n=this;return(t=function(e,t,n){return h.isCodeEditor(e)?t(e):n(e)}(this.editor,function(t){return n.findModel(t,e)},function(t){return n.findModel(t.getOriginalEditor(),e)||n.findModel(t.getModifiedEditor(),e) +}))?r.TPromise.as(new g.ImmortalReference(new T(t))):r.TPromise.as(new g.ImmortalReference(null))},e.prototype.findModel=function(e,t){var n=e.getModel();return n.uri.toString()!==t.toString()?null:n},e}();t.SimpleEditorModelResolverService=k;var R=function(){function e(){}return e.prototype.showWhile=function(e,t){return null},e}();t.SimpleProgressService=R;var O=function(){return function(){}}();t.SimpleDialogService=O;var P=function(){function e(){}return e.prototype.info=function(e){return this.notify({severity:n.default.Info,message:e})},e.prototype.warn=function(e){return this.notify({severity:n.default.Warning,message:e})},e.prototype.error=function(e){return this.notify({severity:n.default.Error,message:e})},e.prototype.notify=function(t){switch(t.severity){case n.default.Error:console.error(t.message);break;case n.default.Warning:console.warn(t.message);break;default:console.log(t.message)}return e.NO_OP},e.NO_OP=new E.NoOpNotification,e}();t.SimpleNotificationService=P;var A=function(){ +function e(e){this._onWillExecuteCommand=new p.Emitter,this._instantiationService=e,this._dynamicCommands=Object.create(null)}return e.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,g.toDisposable(function(){delete t._dynamicCommands[n]})},e.prototype.executeCommand=function(e){for(var t=[],n=1;n0&&o[r-1]===d)){var c=u.startIndex;0===a?c=0:c "console.log", da "log" vor Kurzem vervollständigt wurde.','Vorschläge auf Grundlage vorheriger Präfixe auswählen, die diese Vorschläge vervollständigt haben. Beispiel: "co" -> "console" und "con" -> "const".',"Steuert, wie Vorschläge bei Anzeige der Vorschlagsliste vorab ausgewählt werden.","Schriftgröße für Vorschlagswidget","Zeilenhöhe für Vorschlagswidget","Controls whether filtering and sorting suggestions accounts for small typos.","Control whether an active snippet prevents quick suggestions.","Steuert, ob der Editor der Auswahl ähnelnde Übereinstimmungen hervorheben soll.","Steuert, ob der Editor das Vorkommen semantischer Symbole markieren soll.","Steuert die Anzahl von Dekorationen, die an derselben Position im Übersichtslineal angezeigt werden.","Steuert, ob um das Übersichtslineal ein Rahmen gezeichnet werden soll.","Steuert den Cursoranimationsstil.","Schriftart des Editors vergrößern, wenn das Mausrad verwendet und die STRG-TASTE gedrückt wird",'Steuert den Cursorstil. Gültige Werte sind "block", "block-outline", "line", "line-thin", "underline" und "underline-thin".','Steuert die Breite des Cursors, falls editor.cursorStyle auf "line" gestellt ist.',"Aktiviert Schriftartligaturen.","Steuert die Sichtbarkeit des Cursors im Übersichtslineal.","Render whitespace characters except for single spaces between words.",'Steuert, wie der Editor Leerzeichen rendert. Mögliche Optionen: "none", "boundary" und "all". Die Option "boundary" rendert keine einzelnen Leerzeichen zwischen Wörtern.',"Steuert, ob der Editor Steuerzeichen rendern soll.","Steuert, ob der Editor Einzugsführungslinien rendern soll.","Controls whether the editor should highlight the active indent guide.","Highlights both the gutter and the current line.",'Steuert, wie der Editor die aktuelle Zeilenhervorhebung rendern soll. Mögliche Werte sind "none", "gutter", "line" und "all".',"Steuert, ob der Editor CodeLens anzeigt.","Steuert, ob für den Editor Codefaltung aktiviert ist.",'Steuert die Art und Weise, wie Faltungsbereiche berechnet werden. "auto" verwendet eine sprachspezifische Strategie für die Codefaltung, sofern verfügbar. "indentation" erzwingt eine einrückungsbasierte Strategie zur Codefaltung.',"Steuert, ob die Falt-Steuerelemente an der Leiste automatisch ausgeblendet werden.","Übereinstimmende Klammern hervorheben, wenn eine davon ausgewählt wird.","Steuert, ob der Editor den vertikalen Glyphenrand rendert. Der Glyphenrand wird hauptsächlich zum Debuggen verwendet.","Das Einfügen und Löschen von Leerzeichen folgt auf Tabstopps.","Nachfolgendes automatisch eingefügtes Leerzeichen entfernen","Peek-Editoren geöffnet lassen, auch wenn auf ihren Inhalt doppelgeklickt oder die ESC-TASTE gedrückt wird.","Steuert, ob der Editor das Verschieben einer Auswahl per Drag and Drop zulässt.","Der Editor verwendet Plattform-APIs, um zu erkennen, wenn eine Sprachausgabe angefügt wird.","Der Editor wird durchgehend für die Verwendung mit einer Sprachausgabe optimiert.","Der Editor wird nie für die Verwendung mit einer Sprachausgabe optimiert. ","Steuert, ob der Editor in einem Modus ausgeführt werden soll, in dem er für die Sprachausgabe optimiert wird.","Controls fading out of unused code.","Steuert, ob der Editor Links erkennen und anklickbar machen soll","Steuert, ob der Editor die Inline-Farbdecorators und die Farbauswahl rendern soll.",'Ermöglicht die Code-Aktion "lightbulb"',"Ein Organisieren der Importe beim Speichern ausführen?","Arten von Codeaktionen, die beim Speichern ausgeführt werden sollen.","Timeout für Codeaktionen, die beim Speichern ausgeführt werden.","Steuert, ob die primäre Linux-Zwischenablage unterstützt werden soll.","Steuert, ob der Diff-Editor das Diff nebeneinander oder inline anzeigt.","Steuert, ob der Diff-Editor Änderungen in führenden oder nachgestellten Leerzeichen als Diffs anzeigt.","Spezielle Behandlung für große Dateien zum Deaktivieren bestimmter speicherintensiver Funktionen.",'Steuert, ob der Diff-Editor die Indikatoren "+" und "-" für hinzugefügte/entfernte Änderungen anzeigt.'], +"vs/editor/common/config/editorOptions":["Der Editor ist zurzeit nicht verfügbar. Drücken Sie Alt+F1 für Optionen.","Editor-Inhalt"],"vs/editor/common/controller/cursor":["Unerwartete Ausnahme beim Ausführen des Befehls."],"vs/editor/common/modes/modesRegistry":["Nur-Text"],"vs/editor/common/services/modelServiceImpl":["[{0}]\n{1}","[{0}] {1}"], +"vs/editor/common/view/editorColorRegistry":["Hintergrundfarbe zur Hervorhebung der Zeile an der Cursorposition.","Hintergrundfarbe für den Rahmen um die Zeile an der Cursorposition.","Hintergrundfarbe hervorgehobener Bereiche, beispielsweise durch Features wie Quick Open und Suche. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen. ","Hintergrundfarbe für den Rahmen um hervorgehobene Bereiche.","Farbe des Cursors im Editor.","Hintergrundfarbe vom Editor-Cursor. Erlaubt die Anpassung der Farbe von einem Zeichen, welches von einem Block-Cursor überdeckt wird.","Farbe der Leerzeichen im Editor.","Farbe der Führungslinien für Einzüge im Editor.","Farbe der Führungslinien für Einzüge im aktiven Editor.","Zeilennummernfarbe im Editor.","Zeilennummernfarbe der aktiven Editorzeile.",'ID ist veraltet. Verwenden Sie stattdessen "editorLineNumber.activeForeground".',"Zeilennummernfarbe der aktiven Editorzeile.","Farbe des Editor-Lineals.","Vordergrundfarbe der CodeLens-Links im Editor","Hintergrundfarbe für zusammengehörige Klammern","Farbe für zusammengehörige Klammern","Farbe des Rahmens für das Übersicht-Lineal.","Hintergrundfarbe der Editorleiste. Die Leiste enthält die Glyphenränder und die Zeilennummern.","Vordergrundfarbe von Fehlerunterstreichungen im Editor.","Rahmenfarbe von Fehlerunterstreichungen im Editor.","Vordergrundfarbe von Warnungsunterstreichungen im Editor.","Rahmenfarbe von Warnungsunterstreichungen im Editor.","Vordergrundfarbe von Informationsunterstreichungen im Editor.","Rahmenfarbe von Informationsunterstreichungen im Editor.","Vordergrundfarbe der Hinweisunterstreichungen im Editor.","Rahmenfarbe der Hinweisunterstreichungen im Editor.","Border of unnecessary code in the editor.","Opacity of unnecessary code in the editor.","Übersichtslineal-Markierungsfarbe für Fehler.","Übersichtslineal-Markierungsfarbe für Warnungen.","Übersichtslineal-Markierungsfarbe für Informationen."], +"vs/editor/contrib/bracketMatching/bracketMatching":["Übersichtslineal-Markierungsfarbe für zusammengehörige Klammern.","Gehe zu Klammer","Auswählen bis Klammer"],"vs/editor/contrib/caretOperations/caretOperations":["Caretzeichen nach links verschieben","Caretzeichen nach rechts verschieben"],"vs/editor/contrib/caretOperations/transpose":["Buchstaben austauschen"],"vs/editor/contrib/clipboard/clipboard":["Ausschneiden","Cu&&t","Kopieren","&&Copy","Einfügen","&&Paste","Mit Syntaxhervorhebung kopieren"],"vs/editor/contrib/codeAction/codeActionCommands":["Korrekturen anzeigen ({0})","Korrekturen anzeigen","Schnelle Problembehebung …","Keine Codeaktionen verfügbar","Keine Codeaktionen verfügbar","Refactoring durchführen...","Keine Refactorings verfügbar","Quellaktion…","Keine Quellaktionen verfügbar","Importe organisieren","Keine Aktion zum Organisieren von Importen verfügbar"], +"vs/editor/contrib/comment/comment":["Zeilenkommentar umschalten","&&Toggle Line Comment","Zeilenkommentar hinzufügen","Zeilenkommentar entfernen","Blockkommentar umschalten","Toggle &&Block Comment"],"vs/editor/contrib/contextmenu/contextmenu":["Editor-Kontextmenü anzeigen"],"vs/editor/contrib/cursorUndo/cursorUndo":["Soft Undo"],"vs/editor/contrib/find/findController":["Suchen","&&Find","Mit Auswahl suchen","Nächstes Element suchen","Vorheriges Element suchen","Nächste Auswahl suchen","Vorherige Auswahl suchen","Ersetzen","&&Replace"],"vs/editor/contrib/find/findWidget":["Suchen","Suchen","Vorherige Übereinstimmung","Nächste Übereinstimmung","In Auswahl suchen","Schließen","Ersetzen","Ersetzen","Ersetzen","Alle ersetzen","Ersetzen-Modus wechseln","Nur die ersten {0} Ergebnisse wurden hervorgehoben, aber alle Suchoperationen werden auf dem gesamten Text durchgeführt.","{0} von {1}","Keine Ergebnisse"], +"vs/editor/contrib/folding/folding":["Auffalten","Faltung rekursiv aufheben","Falten","Rekursiv falten","Alle Blockkommentare falten","Alle Regionen falten","Alle Regionen auffalten","Alle falten","Alle auffalten","Faltebene {0}"],"vs/editor/contrib/fontZoom/fontZoom":["Editorschriftart vergrößern","Editorschriftart verkleinern","Editor Schriftart Vergrößerung zurücksetzen"],"vs/editor/contrib/format/formatActions":["1 Formatierung in Zeile {0} vorgenommen","{0} Formatierungen in Zeile {1} vorgenommen","1 Formatierung zwischen Zeilen {0} und {1} vorgenommen","{0} Formatierungen zwischen Zeilen {1} und {2} vorgenommen",'Es ist kein Formatierer für "{0}"-Dateien installiert. ',"Dokument formatieren",'Es ist kein Dokumentformatierer für "{0}"-Dateien installiert.',"Auswahl formatieren",'Es ist kein Auswahl-Formatierer für "{0}"-Dateien installiert. '], +"vs/editor/contrib/goToDefinition/goToDefinitionCommands":['Keine Definition gefunden für "{0}".',"Keine Definition gefunden"," – {0} Definitionen","Gehe zu Definition","Definition an der Seite öffnen","Peek-Definition",'Keine Implementierung gefunden für "{0}"',"Keine Implementierung gefunden","{0} Implementierungen","Zur Implementierung wechseln","Vorschau der Implementierung anzeigen",'Keine Typendefinition gefunden für "{0}"',"Keine Typendefinition gefunden","{0} Typdefinitionen","Zur Typdefinition wechseln","Vorschau der Typdefinition anzeigen"],"vs/editor/contrib/goToDefinition/goToDefinitionMouse":["Klicken Sie, um {0} Definitionen anzuzeigen."],"vs/editor/contrib/gotoError/gotoError":["Gehe zu nächstem Problem (Fehler, Warnung, Information)","Gehe zu vorigem Problem (Fehler, Warnung, Information)","Gehe zu dem nächsten Problem in den Dateien (Fehler, Warnung, Info) ","Gehe zu dem vorherigen Problem in den Dateien (Fehler, Warnung, Info) "], +"vs/editor/contrib/gotoError/gotoErrorWidget":["({0}/{1})","Editormarkierung: Farbe bei Fehler des Navigationswidgets.","Editormarkierung: Farbe bei Warnung des Navigationswidgets.","Editormarkierung: Farbe bei Warnung des Navigationswidgets.","Editormarkierung: Hintergrund des Navigationswidgets."],"vs/editor/contrib/hover/hover":["Hovern anzeigen"],"vs/editor/contrib/hover/modesContentHover":["Wird geladen..."],"vs/editor/contrib/inPlaceReplace/inPlaceReplace":["Durch vorherigen Wert ersetzen","Durch nächsten Wert ersetzen"], +"vs/editor/contrib/linesOperations/linesOperations":["Zeile nach oben kopieren","&&Copy Line Up","Zeile nach unten kopieren","Co&&py Line Down","Zeile nach oben verschieben","Mo&&ve Line Up","Zeile nach unten verschieben","Move &&Line Down","Zeilen aufsteigend sortieren","Zeilen absteigend sortieren","Nachgestelltes Leerzeichen kürzen","Zeile löschen","Zeileneinzug","Zeile ausrücken","Zeile oben einfügen","Zeile unten einfügen","Alle übrigen löschen","Alle rechts löschen","Zeilen verknüpfen","Zeichen um den Cursor herum transponieren","In Großbuchstaben umwandeln","In Kleinbuchstaben umwandeln"], +"vs/editor/contrib/links/links":["BEFEHLSTASTE + Mausklick zum Aufrufen des Links","STRG + Mausklick zum Aufrufen des Links","Cmd + Klick um Befehl auszuführen","Ctrl + Klick um Befehl auszuführen.","WAHLTASTE + Klicken, um Link zu folgen","ALT + Mausklick zum Aufrufen des Links","WAHLTASTE + Klicken, um Befehl auszuführen","Alt + Klick um Befehl auszuführen.","Fehler beim Öffnen dieses Links, weil er nicht wohlgeformt ist: {0}","Fehler beim Öffnen dieses Links, weil das Ziel fehlt.","Link öffnen"],"vs/editor/contrib/message/messageController":["Ein Bearbeiten ist im schreibgeschützten Editor nicht möglich"], +"vs/editor/contrib/multicursor/multicursor":["Cursor oberhalb hinzufügen","&&Add Cursor Above","Cursor unterhalb hinzufügen","A&&dd Cursor Below","Cursor an Zeilenenden hinzufügen","Add C&&ursors to Line Ends","Auswahl zur nächsten Übereinstimmungssuche hinzufügen","Add &&Next Occurrence","Letzte Auswahl zu vorheriger Übereinstimmungssuche hinzufügen","Add P&&revious Occurrence","Letzte Auswahl in nächste Übereinstimmungssuche verschieben","Letzte Auswahl in vorherige Übereinstimmungssuche verschieben","Alle Vorkommen auswählen und Übereinstimmung suchen","Select All &&Occurrences","Alle Vorkommen ändern"],"vs/editor/contrib/parameterHints/parameterHints":["Parameterhinweise auslösen"],"vs/editor/contrib/parameterHints/parameterHintsWidget":["{0}, Hinweis"],"vs/editor/contrib/referenceSearch/peekViewWidget":["Schließen"],"vs/editor/contrib/referenceSearch/referenceSearch":[" – {0} Verweise","Alle Verweise suchen"],"vs/editor/contrib/referenceSearch/referencesController":["Wird geladen..."], +"vs/editor/contrib/referenceSearch/referencesModel":["Symbol in {0} in Zeile {1}, Spalte {2}","1 Symbol in {0}, vollständiger Pfad {1}","{0} Symbole in {1}, vollständiger Pfad {2}","Es wurden keine Ergebnisse gefunden.","1 Symbol in {0} gefunden","{0} Symbole in {1} gefunden","{0} Symbole in {1} Dateien gefunden"], +"vs/editor/contrib/referenceSearch/referencesWidget":["Fehler beim Auflösen der Datei.","{0} Verweise","{0} Verweis","Keine Vorschau verfügbar.","Verweise","Keine Ergebnisse","Verweise","Hintergrundfarbe des Titelbereichs der Peek-Ansicht.","Farbe des Titels in der Peek-Ansicht.","Farbe der Titelinformationen in der Peek-Ansicht.","Farbe der Peek-Ansichtsränder und des Pfeils.","Hintergrundfarbe der Ergebnisliste in der Peek-Ansicht.","Vordergrundfarbe für Zeilenknoten in der Ergebnisliste der Peek-Ansicht.","Vordergrundfarbe für Dateiknoten in der Ergebnisliste der Peek-Ansicht.","Hintergrundfarbe des ausgewählten Eintrags in der Ergebnisliste der Peek-Ansicht.","Vordergrundfarbe des ausgewählten Eintrags in der Ergebnisliste der Peek-Ansicht.","Hintergrundfarbe des Peek-Editors.","Hintergrundfarbe der Leiste im Peek-Editor.","Farbe für Übereinstimmungsmarkierungen in der Ergebnisliste der Peek-Ansicht.","Farbe für Übereinstimmungsmarkierungen im Peek-Editor.","Rahmen für Übereinstimmungsmarkierungen im Peek-Editor."], +"vs/editor/contrib/rename/rename":["Kein Ergebnis.",'"{0}" erfolgreich in "{1}" umbenannt. Zusammenfassung: {2}',"Fehler beim Ausführen der Umbenennung.","Symbol umbenennen"],"vs/editor/contrib/rename/renameInputField":["Benennen Sie die Eingabe um. Geben Sie einen neuen Namen ein, und drücken Sie die EINGABETASTE, um den Commit auszuführen."],"vs/editor/contrib/smartSelect/smartSelect":["Auswahl erweitern","&&Expand Selection","Auswahl verkleinern","&&Shrink Selection"],"vs/editor/contrib/snippet/snippetVariables":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","So","Mo","Di","Mi","Do","Fr","Sa","Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember","Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],"vs/editor/contrib/suggest/suggestController":['Durch Annahme von "{0}" wurde folgender Text eingefügt: {1}',"Vorschlag auslösen"], +"vs/editor/contrib/suggest/suggestWidget":["Hintergrundfarbe des Vorschlagswidgets.","Rahmenfarbe des Vorschlagswidgets.","Vordergrundfarbe des Vorschlagswidgets.","Hintergrundfarbe des ausgewählten Eintrags im Vorschlagswidget.","Farbe der Trefferhervorhebung im Vorschlagswidget.","Mehr anzeigen...{0}","{0}, Vorschlag, hat Details","{0}, Vorschlag","Weniger anzeigen...{0}","Wird geladen...","Keine Vorschläge.","{0}, angenommen","{0}, Vorschlag, hat Details","{0}, Vorschlag"],"vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode":["TAB-Umschalttaste verschiebt Fokus"], +"vs/editor/contrib/wordHighlighter/wordHighlighter":["Hintergrundfarbe eines Symbols bei Lesezugriff, beispielsweise dem Lesen einer Variable. Die Farbe muss durchsichtig sein, um nicht dahinterliegende Dekorationen zu verbergen.","Hintergrundfarbe eines Symbols bei Schreibzugriff, beispielsweise dem Schreiben einer Variable. Die Farbe muss durchsichtig sein, um nicht dahinterliegende Dekorationen zu verbergen.","Randfarbe eines Symbols beim Lesezugriff, wie etwa beim Lesen einer Variablen.","Randfarbe eines Symbols beim Schreibzugriff, wie etwa beim Schreiben einer Variablen.","Übersichtslineal-Markierungsfarbe für Symbolhervorhebungen. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen.","Übersichtslineal-Markierungsfarbe für Schreibzugriffs-Symbolhervorhebungen. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen.","Gehe zur nächsten Symbolhervorhebungen","Gehe zur vorherigen Symbolhervorhebungen"], +"vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp":["No selection","Line {0}, Column {1} ({2} selected)","Line {0}, Column {1}","{0} selections ({1} characters selected)","{0} selections","Now changing the setting `accessibilitySupport` to 'on'.","Now opening the Editor Accessibility documentation page."," in a read-only pane of a diff editor."," in a pane of a diff editor."," in a read-only code editor"," in a code editor","To configure the editor to be optimized for usage with a Screen Reader press Command+E now.","To configure the editor to be optimized for usage with a Screen Reader press Control+E now.","The editor is configured to be optimized for usage with a Screen Reader.","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time.","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding.","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.","Press Command+H now to open a browser window with more information related to editor accessibility.","Press Control+H now to open a browser window with more information related to editor accessibility.","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.","Show Accessibility Help"], +"vs/editor/standalone/browser/inspectTokens/inspectTokens":["Developer: Inspect Tokens"],"vs/editor/standalone/browser/quickOpen/gotoLine":["Go to line {0} and character {1}","Go to line {0}","Type a line number between 1 and {0} to navigate to","Type a character between 1 and {0} to navigate to","Go to line {0}","Type a line number, followed by an optional colon and a character number to navigate to","Go to Line..."],"vs/editor/standalone/browser/quickOpen/quickCommand":["{0}, commands","Type the name of an action you want to execute","Command Palette"],"vs/editor/standalone/browser/quickOpen/quickOutline":["{0}, symbols","Type the name of an identifier you wish to navigate to","Go to Symbol...","symbols ({0})","modules ({0})","classes ({0})","interfaces ({0})","methods ({0})","functions ({0})","properties ({0})","variables ({0})","variables ({0})","constructors ({0})","calls ({0})"],"vs/editor/standalone/browser/simpleServices":["Made {0} edits in {1} files"], +"vs/editor/standalone/browser/standaloneCodeEditor":["Editor content","Press Ctrl+F1 for Accessibility Options.","Press Alt+F1 for Accessibility Options."],"vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast":["Toggle High Contrast Theme"],"vs/platform/configuration/common/configurationRegistry":["Standard-Konfiguration überschreibt","Zu überschreibende Einstellungen für Sprache {0} konfigurieren.","Zu überschreibende Editor-Einstellungen für eine Sprache konfigurieren.",'"{0}" kann nicht registriert werden. Die Eigenschaft stimmt mit dem Eigenschaftsmuster \'\\\\[.*\\\\]$\' zum Beschreiben sprachspezifischer Editor-Einstellungen überein. Verwenden Sie den Beitrag "configurationDefaults".','"{0}" kann nicht registriert werden. Diese Eigenschaft ist bereits registriert.'],"vs/platform/keybinding/common/abstractKeybindingService":["({0}) wurde gedrückt. Es wird auf die zweite Taste der Kombination gewartet...","Die Tastenkombination ({0}, {1}) ist kein Befehl."], +"vs/platform/list/browser/listService":["Workbench",'Ist unter Windows und Linux der Taste "STRG" und unter macOSX der Befehlstaste zugeordnet.','Ist unter Windows und Linux der Taste "Alt" und unter macOSX der Wahltaste zugeordnet. ','Der Modifizierer zum Hinzufügen eines Elements in Bäumen und Listen zu einer Mehrfachauswahl mit der Maus (zum Beispiel im Explorer, in geöffneten Editoren und in der SCM-Ansicht). "ctrlCmd" wird unter Windows und Linux der Taste "STRG" und unter macOSX der Befehlstaste zugeordnet. Die Mausbewegung "Seitlich öffnen" wird – sofern unterstützt – so angepasst, dass kein Konflikt mit dem Modifizierer zur Mehrfachauswahl entsteht.','Steuert, wie Elemente in Bäumen und Listen mithilfe der Maus geöffnet werden (sofern unterstützt). Legen Sie "singleClick" fest, um Elemente mit einem einzelnen Mausklick zu öffnen, und "doubleClick", damit sie nur mit einem doppelten Mausklick geöffnet werden. Bei übergeordneten Elementen, deren untergeordnete Elemente sich in Bäumen befinden, steuert diese Einstellung, ob ein Einfachklick oder ein Doppelklick das übergeordnete Elemente erweitert. Beachten Sie, dass einige Bäume und Listen diese Einstellung ggf. ignorieren, wenn sie nicht zutrifft.',"Steuert, ob Bäume horizontales Scrollen in der Workbench unterstützen."], +"vs/platform/markers/common/markers":["Fehler","Warnung","Info"], +"vs/platform/theme/common/colorRegistry":["In der Workbench verwendete Farben.","Allgemeine Vordergrundfarbe. Diese Farbe wird nur verwendet, wenn sie nicht durch eine Komponente überschrieben wird.","Allgemeine Vordergrundfarbe. Diese Farbe wird nur verwendet, wenn sie nicht durch eine Komponente überschrieben wird.","Allgemeine Rahmenfarbe für fokussierte Elemente. Diese Farbe wird nur verwendet, wenn sie nicht durch eine Komponente überschrieben wird.","Ein zusätzlicher Rahmen um Elemente, mit dem diese von anderen getrennt werden, um einen größeren Kontrast zu erreichen.","Ein zusätzlicher Rahmen um aktive Elemente, mit dem diese von anderen getrennt werden, um einen größeren Kontrast zu erreichen.","Vordergrundfarbe für Links im Text.","Hintergrundfarbe für Code-Blöcke im Text.","Schattenfarbe von Widgets wie zum Beispiel Suchen/Ersetzen innerhalb des Editors.","Hintergrund für Eingabefeld.","Vordergrund für Eingabefeld.","Rahmen für Eingabefeld.","Rahmenfarbe für aktivierte Optionen in Eingabefeldern.","Hintergrundfarbe bei der Eingabevalidierung für den Schweregrad der Information.","Rahmenfarbe bei der Eingabevalidierung für den Schweregrad der Information.","Hintergrundfarbe bei der Eingabevalidierung für den Schweregrad der Warnung.","Rahmenfarbe bei der Eingabevalidierung für den Schweregrad der Warnung.","Hintergrundfarbe bei der Eingabevalidierung für den Schweregrad des Fehlers.","Rahmenfarbe bei der Eingabevalidierung für den Schweregrad des Fehlers.","Hintergrundfarbe der Liste/Struktur für das fokussierte Element, wenn die Liste/Struktur aktiv ist. Eine aktive Liste/Struktur hat Tastaturfokus, eine inaktive hingegen nicht.","Vordergrundfarbe der Liste/Struktur für das fokussierte Element, wenn die Liste/Struktur aktiv ist. Eine aktive Liste/Struktur hat Tastaturfokus, eine inaktive hingegen nicht.","Hintergrundfarbe der Liste/Struktur für das ausgewählte Element, wenn die Liste/Struktur aktiv ist. Eine aktive Liste/Struktur hat Tastaturfokus, eine inaktive hingegen nicht.","Vordergrundfarbe der Liste/Struktur für das ausgewählte Element, wenn die Liste/Struktur aktiv ist. Eine aktive Liste/Struktur hat Tastaturfokus, eine inaktive hingegen nicht.","Hintergrundfarbe der Liste/Struktur für das ausgewählte Element, wenn die Liste/Struktur inaktiv ist. Eine aktive Liste/Struktur hat Tastaturfokus, eine inaktive hingegen nicht.","Liste/Baumstruktur - Vordergrundfarbe für das ausgewählte Element, wenn die Liste/Baumstruktur inaktiv ist. Eine aktive Liste/Baumstruktur hat Tastaturfokus, eine inaktive hingegen nicht.","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.","Hintergrund der Liste/Struktur, wenn mit der Maus auf Elemente gezeigt wird.","Vordergrund der Liste/Struktur, wenn mit der Maus auf Elemente gezeigt wird.","Drag & Drop-Hintergrund der Liste/Struktur, wenn Elemente mithilfe der Maus verschoben werden.","Vordergrundfarbe der Liste/Struktur zur Trefferhervorhebung beim Suchen innerhalb der Liste/Struktur.","Schnellauswahlfarbe für das Gruppieren von Bezeichnungen.","Schnellauswahlfarbe für das Gruppieren von Rahmen.","Badge - Hintergrundfarbe. Badges sind kurze Info-Texte, z. B. für Anzahl Suchergebnisse.","Badge - Vordergrundfarbe. Badges sind kurze Info-Texte, z. B. für Anzahl Suchergebnisse.","Schatten der Scrollleiste, um anzuzeigen, dass die Ansicht gescrollt wird.","Hintergrundfarbe vom Scrollbar-Schieber","Hintergrundfarbe des Schiebereglers, wenn darauf gezeigt wird.","Hintergrundfarbe des Schiebereglers, wenn darauf geklickt wird.","Hintergrundfarbe des Fortschrittbalkens, der für lang ausgeführte Vorgänge angezeigt werden kann.","Hintergrundfarbe des Editors.","Standardvordergrundfarbe des Editors.","Hintergrundfarbe von Editor-Widgets wie zum Beispiel Suchen/Ersetzen.","Rahmenfarbe von Editorwigdets. Die Farbe wird nur verwendet, wenn für das Widget ein Rahmen verwendet wird und die Farbe nicht von einem Widget überschrieben wird.","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.","Farbe der Editor-Auswahl.","Farbe des gewählten Text für einen hohen Kontrast","Farbe der Auswahl in einem inaktiven Editor. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen. ","Farbe für Bereiche, deren Inhalt der Auswahl entspricht. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen.","Randfarbe für Bereiche, deren Inhalt der Auswahl entspricht.","Farbe des aktuellen Suchergebnisses.","Farbe der anderen Suchergebnisse. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen. ","Farbe des Bereichs zur Einschränkung der Suche. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen.","Randfarbe des aktuellen Suchergebnisses.","Randfarbe der anderen Suchtreffer.","Rahmenfarbe des Bereichs zur Einschränkung der Suche. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen.","Hervorhebung eines Worts, unter dem ein Mauszeiger angezeigt wird. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen. ","Background color of the editor hover.","Rahmenfarbe des Editor-Mauszeigers.","Farbe der aktiven Links.","Hintergrundfarbe für eingefügten Text. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen. ","Hintergrundfarbe für entfernten Text. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen. ","Konturfarbe für eingefügten Text.","Konturfarbe für entfernten Text.","Border color between the two text editors.","Übersichtslineal-Markierungsfarbe für Suchübereinstimmungen. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen.","Übersichtslineal-Markierungsfarbe für Auswahlhervorhebungen. Die Farbe muss durchsichtig sein, um dahinterliegende Dekorationen nicht zu verbergen."] +}); +//# sourceMappingURL=../../../min-maps/vs/editor/editor.main.nls.de.js.map \ No newline at end of file diff --git a/js/monaco/vs/editor/editor.main.nls.es.js b/js/monaco/vs/editor/editor.main.nls.es.js new file mode 100644 index 000000000..8a44a8696 --- /dev/null +++ b/js/monaco/vs/editor/editor.main.nls.es.js @@ -0,0 +1,32 @@ +/*!----------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.14.6(6c8f02b41db9ae5c4d15df767d47755e5c73b9d5) + * Released under the MIT license + * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt + *-----------------------------------------------------------*/ +define("vs/editor/editor.main.nls.es",{"vs/base/browser/ui/actionbar/actionbar":["{0} ({1})"],"vs/base/browser/ui/aria/aria":["{0} (ocurrió de nuevo)","{0} (occurred {1} times)"],"vs/base/browser/ui/findinput/findInput":["entrada"],"vs/base/browser/ui/findinput/findInputCheckboxes":["Coincidir mayúsculas y minúsculas","Solo palabras completas","Usar expresión regular"],"vs/base/browser/ui/inputbox/inputBox":["Error: {0}","Advertencia: {0}","Información: {0}"],"vs/base/browser/ui/list/listWidget":["{0}. Use the navigation keys to navigate."],"vs/base/browser/ui/menu/menu":["{0} ({1})"],"vs/base/common/keybindingLabels":["Ctrl","Mayús","Alt","Windows","Ctrl","Mayús","Alt","Super","Control","Mayús","Alt","Comando","Control","Mayús","Alt","Windows","Control","Mayús","Alt","Super"],"vs/base/common/severity":["Error","Advertencia","Información"],"vs/base/parts/quickopen/browser/quickOpenModel":["{0}, selector","selector"], +"vs/base/parts/quickopen/browser/quickOpenWidget":["Selector rápido. Escriba para restringir los resultados.","Selector rápido","{0} Results"],"vs/editor/browser/controller/coreCommands":["&&Select All","&&Undo","&&Redo"],"vs/editor/browser/widget/codeEditorWidget":["El número de cursores se ha limitado a {0}."],"vs/editor/browser/widget/diffEditorWidget":["Los archivos no se pueden comparar porque uno de ellos es demasiado grande."],"vs/editor/browser/widget/diffReview":["Cerrar","sin líneas","1 línea","{0} líneas","Diferencia {0} de {1}: original {2}, {3}, modificado {4}, {5}","vacío","original {0}, modificado {1}: {2}","+ modificado {0}: {1}","- original {0}: {1}","Ir a la siguiente diferencia","Ir a la diferencia anterior"], +"vs/editor/common/config/commonEditorConfig":["Editor","Controla la familia de fuentes.","Controla el grosor de la fuente.","Controla el tamaño de fuente en píxeles.","Controla la altura de línea. Utilice 0 para calcular el valor de lineHeight a partir de fontSize.","Controla el espacio entre letras en pixels.","Los números de línea no se muestran.","Los números de línea se muestran como un número absoluto.","Los números de línea se muestran como distancia en líneas a la posición del cursor.","Los números de línea se muestran cada 10 líneas.","Controla la visualización de los números de línea.","Representar reglas verticales después de un cierto número de caracteres monoespacio. Usar multiples valores para multiples reglas. No se dibuja ninguna regla si la matriz esta vacía.","Caracteres que se usarán como separadores de palabras al realizar operaciones o navegaciones relacionadas con palabras.","El número de espacios a los que equivale una tabulación. Este valor se invalida según el contenido del archivo cuando `editor.detectIndentation` está activado.",'Se esperaba "number". Tenga en cuenta que el ajuste "editor.detectIndentation" ha reemplazado al valor "auto".','Insertar espacios al presionar TAB. Este valor se invalida en función del contenido del archivo cuando "editor.detectIndentation" está activado.','Se esperaba "boolean". Tenga en cuenta que el ajuste "editor.detectIndentation" ha reemplazado al valor "auto".',"Al abrir un archivo, se detectarán `editor.tabSize` y `editor.insertSpaces` en función del contenido del archivo.","Controla si las selecciones tienen esquinas redondeadas","Controla si el editor se seguirá desplazando después de la última línea","Controla el número de caracteres adicionales a partir del cual el editor se desplazará horizontalmente","Controla si el editor se desplaza con una animación","Controla si se muestra el minimapa","Controla en qué lado se muestra el minimapa.","Controla si el control deslizante del minimapa es ocultado automáticamente.","Presentar los caracteres reales en una línea (por oposición a bloques de color)","Limitar el ancho del minimapa para presentar como mucho un número de columnas determinado","Controls whether the hover is shown.","Time delay in milliseconds after which to the hover is shown.","Controls whether the hover should remain visible when mouse is moved over it.","Controla si se inicializa la cadena de búsqueda en Buscar widget en la selección del editor","Controla si el indicador Buscar en selección se activa cuando se seleccionan varios caracteres o líneas de texto en el editor","Controla si el widget de búsqueda debería leer o modificar el portapapeles de busqueda compartido en macOS","Las líneas no se ajustarán nunca.","Las líneas se ajustarán en el ancho de la ventanilla.",'Las líneas se ajustarán en "editor.wordWrapColumn".','Las líneas se ajustarán al valor que sea inferior: el tamaño de la ventanilla o el valor de "editor.wordWrapColumn".','Controla cómo se deben ajustar las líneas. Pueden ser:\n - "off" (deshabilitar ajuste),\n - "on" (ajuste de ventanilla),\n - "wordWrapColumn" (ajustar en "editor.wordWrapColumn") o\n - "bounded" (ajustar en la parte mínima de la ventanilla y "editor.wordWrapColumn").',"Controls the wrapping column of the editor when `editor.wordWrap` is 'wordWrapColumn' or 'bounded'.","No indentation. Wrapped lines begin at column 1.","Wrapped lines get the same indentation as the parent.","Wrapped lines get +1 indentation toward the parent.","Wrapped lines get +2 indentation toward the parent.","Controla el sangrado de las líneas ajustadas. Puede ser uno de 'none', ' same ', ' indent' o ' deepIndent '.","Se utilizará un multiplicador en los eventos de desplazamiento de la rueda del mouse `deltaX` y `deltaY`",'Se asigna a "Control" en Windows y Linux y a "Comando" en macOS.','Se asigna a "Alt" en Windows y Linux y a "Opción" en macOS.','El modificador que se usará para agregar varios cursores con el mouse. "ctrlCmd" se asigna a "Control" en Windows y Linux y a "Comando" en macOS. Los gestos del mouse "Ir a la definición" y "Abrir vínculo" se adaptarán de modo que no entren en conflicto con el modificador multicurso',"Combinar varios cursores cuando se solapan.","Habilita sugerencias rápidas en las cadenas.","Habilita sugerencias rápidas en los comentarios.","Habilita sugerencias rápidas fuera de las cadenas y los comentarios.","Controla si las sugerencias deben mostrarse automáticamente mientras se escribe","Controla el retardo en ms tras el cual aparecerán sugerencias rápidas","Habilita el desplegable que muestra documentación de los parámetros e información de los tipos mientras escribe","Controla si el editor debe cerrar automáticamente los corchetes después de abrirlos","Controla si el editor debe dar formato automáticamente a la línea después de escribirla","Controla si el editor debe formatear automáticamente el contenido pegado. Debe haber disponible un formateador capaz de aplicar formato a un intervalo dentro de un documento.","Controla si el editor debería ajustar automáticamente la sangría cuando los usuarios escriben, pegan o mueven líneas. Las reglas de sangría del idioma deben estar disponibles","Controla si las sugerencias deben aparecer de forma automática al escribir caracteres desencadenadores","Only accept a suggestion with `Enter` when it makes a textual change.",'Controla si las sugerencias deben aceptarse en "Entrar" (además de "TAB"). Ayuda a evitar la ambigüedad entre insertar nuevas líneas o aceptar sugerencias. El valor "smart" significa que solo se acepta una sugerencia con Entrar cuando se realiza un cambio textual.','Controla si se deben aceptar sugerencias en los caracteres de confirmación. Por ejemplo, en Javascript, el punto y coma (";") puede ser un carácter de confirmación que acepta una sugerencia y escribe ese carácter.',"Mostrar sugerencias de fragmentos de código por encima de otras sugerencias.","Mostrar sugerencias de fragmentos de código por debajo de otras sugerencias.","Mostrar sugerencias de fragmentos de código con otras sugerencias.","No mostrar sugerencias de fragmentos de código.","Controla si se muestran los fragmentos de código con otras sugerencias y cómo se ordenan.","Controla si al copiar sin selección se copia la línea actual.","Habilita sugerencias basadas en palabras.","Siempre seleccione la primera sugerencia.","Seleccione sugerencias recientes a menos que escriba una nueva opción, por ejemplo ' Console. | -> Console. log ' porque ' log ' se ha completado recientemente.","Seleccione sugerencias basadas en prefijos anteriores que han completado esas sugerencias, por ejemplo, ' Co-> Console ' y ' con-> const '.","Controla cómo se preseleccionan las sugerencias cuando se muestra la lista,","Tamaño de fuente para el widget de sugerencias","Alto de línea para el widget de sugerencias","Controls whether filtering and sorting suggestions accounts for small typos.","Control whether an active snippet prevents quick suggestions.","Controla si el editor debería destacar coincidencias similares a la selección","Controla si el editor debe resaltar los símbolos semánticos.","Controla el número de decoraciones que pueden aparecer en la misma posición en la regla de visión general","Controla si debe dibujarse un borde alrededor de la regla de información general.","Controla el estilo de animación del cursor.","Ampliar la fuente del editor cuando se use la rueda del mouse mientras se presiona Ctrl",'Controla el estilo del cursor. Los valores aceptados son "block", "block-outline", "line", "line-thin", "underline" y "underline-thin"',"Controla el ancho del cursor cuando editor.cursorStyle se establece a 'line'","Habilita las ligaduras tipográficas.","Controla si el cursor debe ocultarse en la regla de visión general.","Render whitespace characters except for single spaces between words.",'Controla cómo debe representar el editor los espacios en blanco. Las posibilidades son "none", "boundary" y "all". La opción "boundary" no representa los espacios individuales entre palabras.',"Controla si el editor debe representar caracteres de control","Controla si el editor debe representar guías de sangría.","Controls whether the editor should highlight the active indent guide.","Highlights both the gutter and the current line.",'Controla cómo el editor debe presentar el resaltado de línea. Las posibilidades son "ninguno", "margen", "línea" y "todo".',"Controla si el editor muestra CodeLens","Controla si el editor tiene habilitado el plegado de código.","Controla la forma en que se calculan las gamas plegables. Las selecciones ' auto' utilizan una estrategia de plegado específica del idioma, si está disponible. 'Sangría' obliga a utilizar la estrategia de plegado con sangría.","Controla cuándo los controles de plegado del margen son ocultados automáticamente.","Resaltar corchetes coincidentes cuando se seleccione uno de ellos.","Controla si el editor debe representar el margen de glifo vertical. El margen de glifo se usa, principalmente, para depuración.","La inserción y eliminación del espacio en blanco sigue a las tabulaciones.","Quitar espacio en blanco final autoinsertado","Mantiene abierto el editor interactivo incluso al hacer doble clic en su contenido o presionar Escape.","Controla si el editor debe permitir mover selecciones mediante arrastrar y colocar.","El editor usará API de plataforma para detectar cuándo está conectado un lector de pantalla.","El editor se optimizará de forma permanente para su uso con un editor de pantalla.","El editor nunca se optimizará para su uso con un lector de pantalla.","Controla si el editor se debe ejecutar en un modo optimizado para lectores de pantalla.","Controls fading out of unused code.","Controla si el editor debe detectar enlaces y hacerlos cliqueables","Controla si el editor debe representar el Selector de colores y los elementos Decorator de color en línea.","Permite que el foco de acción del código","¿organizar importaciones en guardar?","Tipos de acción de código que se ejecutarán en guardar.","Tiempo de espera para ejecutar acciones de código en guardar.","Controla si el portapapeles principal de Linux debe admitirse.","Controla si el editor de diferencias muestra las diferencias en paralelo o alineadas.","Controla si el editor de diferencias muestra los cambios de espacio inicial o espacio final como diferencias.","Manejo especial para archivos grandes para desactivar ciertas funciones de memoria intensiva.","Controla si el editor de diff muestra indicadores +/- para cambios agregados/quitados"], +"vs/editor/common/config/editorOptions":["No se puede acceder al editor en este momento. Presione Alt+F1 para ver opciones.","Contenido del editor"],"vs/editor/common/controller/cursor":["Excepción inesperada al ejecutar el comando."],"vs/editor/common/modes/modesRegistry":["Texto sin formato"],"vs/editor/common/services/modelServiceImpl":["[{0}]\n{1}","[{0}] {1}"], +"vs/editor/common/view/editorColorRegistry":["Color de fondo para la línea resaltada en la posición del cursor.","Color de fondo del borde alrededor de la línea en la posición del cursor.","Color de fondo de los rangos resaltados, como por ejemplo las características de abrir rápidamente y encontrar. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de fondo del borde alrededor de los intervalos resaltados.","Color del cursor del editor.","Color de fondo del cursor de edición. Permite personalizar el color del caracter solapado por el bloque del cursor.","Color de los caracteres de espacio en blanco del editor.","Color de las guías de sangría del editor.","Color de las guías de sangría activas del editor.","Color de números de línea del editor.","Color del número de línea activa en el editor","ID es obsoleto. Usar en lugar 'editorLineNumber.activeForeground'. ","Color del número de línea activa en el editor","Color de las reglas del editor","Color principal de lentes de código en el editor","Color de fondo tras corchetes coincidentes","Color de bloques con corchetes coincidentes","Color del borde de la regla de visión general.","Color de fondo del margen del editor. Este espacio contiene los márgenes de glifos y los números de línea.","Color de primer plano de squigglies de error en el editor.","Color de borde de squigglies de error en el editor.","Color de primer plano de squigglies de advertencia en el editor.","Color de borde de squigglies de advertencia en el editor.","Color de primer plano de los subrayados ondulados informativos en el editor.","Color del borde de los subrayados ondulados informativos en el editor.","Color de primer plano de pista squigglies en el editor.","Color de borde de pista squigglies en el editor.","Border of unnecessary code in the editor.","Opacity of unnecessary code in the editor.","Color de marcador de regla de información general para errores. ","Color de marcador de regla de información general para advertencias.","Color de marcador de regla de información general para mensajes informativos. "], +"vs/editor/contrib/bracketMatching/bracketMatching":["Resumen color de marcador de regla para corchetes.","Ir al corchete","Seleccione esta opción para soporte"],"vs/editor/contrib/caretOperations/caretOperations":["Mover símbolo de inserción a la izquierda","Mover símbolo de inserción a la derecha"],"vs/editor/contrib/caretOperations/transpose":["Transponer letras"],"vs/editor/contrib/clipboard/clipboard":["Cortar","Cu&&t","Copiar","&&Copy","Pegar","&&Paste","Copiar con resaltado de sintaxis"],"vs/editor/contrib/codeAction/codeActionCommands":["Mostrar correcciones ({0})","Mostrar correcciones","Corrección Rápida","No hay acciones de código disponibles","No hay acciones de código disponibles","Refactorizar...","No hay refactorizaciones disponibles","Acción de Origen...","No hay acciones de origen disponibles","Organizar Importaciones","No hay acciones de importación disponibles"], +"vs/editor/contrib/comment/comment":["Alternar comentario de línea","&&Toggle Line Comment","Agregar comentario de línea","Quitar comentario de línea","Alternar comentario de bloque","Toggle &&Block Comment"],"vs/editor/contrib/contextmenu/contextmenu":["Mostrar menú contextual del editor"],"vs/editor/contrib/cursorUndo/cursorUndo":["Soft Undo"],"vs/editor/contrib/find/findController":["Buscar","&&Find","Buscar con selección","Buscar siguiente","Buscar anterior","Buscar selección siguiente","Buscar selección anterior","Reemplazar","&&Replace"],"vs/editor/contrib/find/findWidget":["Buscar","Buscar","Coincidencia anterior","Coincidencia siguiente","Buscar en selección","Cerrar","Reemplazar","Reemplazar","Reemplazar","Reemplazar todo","Alternar modo de reemplazar","Sólo los primeros {0} resultados son resaltados, pero todas las operaciones de búsqueda trabajan en todo el texto.","{0} de {1}","Sin resultados"], +"vs/editor/contrib/folding/folding":["Desplegar","Desplegar de forma recursiva","Plegar","Plegar de forma recursiva","Cerrar todos los comentarios de bloqueo","Plegar todas las regiones","Desplegar Todas las Regiones","Plegar todo","Desplegar todo","Nivel de plegamiento {0}"],"vs/editor/contrib/fontZoom/fontZoom":["Acercarse a la tipografía del editor","Alejarse de la tipografía del editor","Restablecer alejamiento de la tipografía del editor"],"vs/editor/contrib/format/formatActions":["1 edición de formato en la línea {0}","{0} ediciones de formato en la línea {1}","1 edición de formato entre las líneas {0} y {1}","{0} ediciones de formato entre las líneas {1} y {2}","No hay formateador para los archivos ' {0} ' instalados.","Dar formato al documento","No hay formateador de documentos para los archivos ' {0} ' instalados.","Dar formato a la selección","No hay formateador de selección para los archivos ' {0} ' instalados."], +"vs/editor/contrib/goToDefinition/goToDefinitionCommands":['No se encontró ninguna definición para "{0}"',"No se encontró ninguna definición"," – {0} definiciones","Ir a definición","Abrir definición en el lateral","Ver la definición",'No se encontró ninguna implementación para "{0}"',"No se encontró ninguna implementación","{0} implementaciones","Ir a implementación","Inspeccionar implementación",'No se encontró ninguna definición de tipo para "{0}"',"No se encontró ninguna definición de tipo"," – {0} definiciones de tipo","Ir a la definición de tipo","Inspeccionar definición de tipo"],"vs/editor/contrib/goToDefinition/goToDefinitionMouse":["Haga clic para mostrar {0} definiciones."],"vs/editor/contrib/gotoError/gotoError":["Ir al siguiente problema (Error, Advertencia, Información)","Ir al problema anterior (Error, Advertencia, Información)","Ir al siguiente problema en Archivos (Error, Advertencia, Información)","Ir al problema anterior en Archivos (Error, Advertencia, Información)"], +"vs/editor/contrib/gotoError/gotoErrorWidget":["({0}/{1})","Color de los errores del widget de navegación de marcadores del editor.","Color de las advertencias del widget de navegación de marcadores del editor.","Color del widget informativo marcador de navegación en el editor.","Fondo del widget de navegación de marcadores del editor."],"vs/editor/contrib/hover/hover":["Mostrar al mantener el puntero"],"vs/editor/contrib/hover/modesContentHover":["Cargando..."],"vs/editor/contrib/inPlaceReplace/inPlaceReplace":["Reemplazar con el valor anterior","Reemplazar con el valor siguiente"], +"vs/editor/contrib/linesOperations/linesOperations":["Copiar línea arriba","&&Copy Line Up","Copiar línea abajo","Co&&py Line Down","Mover línea hacia arriba","Mo&&ve Line Up","Mover línea hacia abajo","Move &&Line Down","Ordenar líneas en orden ascendente","Ordenar líneas en orden descendente","Recortar espacio final","Eliminar línea","Sangría de línea","Anular sangría de línea","Insertar línea arriba","Insertar línea debajo","Eliminar todo a la izquierda","Eliminar todo lo que está a la derecha","Unir líneas","Transponer caracteres alrededor del cursor","Transformar a mayúsculas","Transformar a minúsculas"], +"vs/editor/contrib/links/links":["Cmd + clic para abrir el vínculo","Ctrl + clic para abrir el vínculo","Cmd + click para ejecutar el comando","Ctrl + click para ejecutar el comando","Opción + clic para seguir el enlace","Alt + clic para seguir el vínculo","Opción + click para ejecutar el comando","Alt + clic para ejecutar el comando","No se pudo abrir este vínculo porque no tiene un formato correcto: {0}","No se pudo abrir este vínculo porque falta el destino.","Abrir vínculo"],"vs/editor/contrib/message/messageController":["No se puede editar en un editor de sólo lectura"], +"vs/editor/contrib/multicursor/multicursor":["Agregar cursor arriba","&&Add Cursor Above","Agregar cursor debajo","A&&dd Cursor Below","Añadir cursores a finales de línea","Add C&&ursors to Line Ends","Agregar selección hasta la siguiente coincidencia de búsqueda","Add &&Next Occurrence","Agregar selección hasta la anterior coincidencia de búsqueda","Add P&&revious Occurrence","Mover última selección hasta la siguiente coincidencia de búsqueda","Mover última selección hasta la anterior coincidencia de búsqueda","Seleccionar todas las repeticiones de coincidencia de búsqueda","Select All &&Occurrences","Cambiar todas las ocurrencias"],"vs/editor/contrib/parameterHints/parameterHints":["Sugerencias para parámetros Trigger"],"vs/editor/contrib/parameterHints/parameterHintsWidget":["{0}, sugerencia"],"vs/editor/contrib/referenceSearch/peekViewWidget":["Cerrar"],"vs/editor/contrib/referenceSearch/referenceSearch":[" – {0} referencias","Buscar todas las referencias"], +"vs/editor/contrib/referenceSearch/referencesController":["Cargando..."],"vs/editor/contrib/referenceSearch/referencesModel":["símbolo en {0} linea {1} en la columna {2}","1 símbolo en {0}, ruta de acceso completa {1}","{0} símbolos en {1}, ruta de acceso completa {2}","No se encontraron resultados","Encontró 1 símbolo en {0}","Encontró {0} símbolos en {1}","Encontró {0} símbolos en {1} archivos"], +"vs/editor/contrib/referenceSearch/referencesWidget":["Error al resolver el archivo.","{0} referencias","{0} referencia","vista previa no disponible","Referencias","No hay resultados.","Referencias","Color de fondo del área de título de la vista de inspección.","Color del título de la vista de inpección.","Color de la información del título de la vista de inspección.","Color de los bordes y la flecha de la vista de inspección.","Color de fondo de la lista de resultados de vista de inspección.","Color de primer plano de los nodos de inspección en la lista de resultados.","Color de primer plano de los archivos de inspección en la lista de resultados.","Color de fondo de la entrada seleccionada en la lista de resultados de vista de inspección.","Color de primer plano de la entrada seleccionada en la lista de resultados de vista de inspección.","Color de fondo del editor de vista de inspección.","Color de fondo del margen en el editor de vista de inspección.","Buscar coincidencia con el color de resaltado de la lista de resultados de vista de inspección.","Buscar coincidencia del color de resultado del editor de vista de inspección.","Hacer coincidir el borde resaltado en el editor de vista previa."], +"vs/editor/contrib/rename/rename":["No hay ningún resultado.","Nombre cambiado correctamente de '{0}' a '{1}'. Resumen: {2}","No se pudo cambiar el nombre.","Cambiar el nombre del símbolo"],"vs/editor/contrib/rename/renameInputField":["Cambie el nombre de la entrada. Escriba el nuevo nombre y presione Entrar para confirmar."],"vs/editor/contrib/smartSelect/smartSelect":["Expandir selección","&&Expand Selection","Reducir selección","&&Shrink Selection"],"vs/editor/contrib/snippet/snippetVariables":["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre","Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Noviembre","Dic"],"vs/editor/contrib/suggest/suggestController":["Aceptando '{0}' Insertó el siguente texto : {1}","Sugerencias para Trigger"], +"vs/editor/contrib/suggest/suggestWidget":["Color de fondo del widget sugerido.","Color de borde del widget sugerido.","Color de primer plano del widget sugerido.","Color de fondo de la entrada seleccionada del widget sugerido.","Color del resaltado coincidido en el widget sugerido.","Leer más...{0}","{0}, sugerencia, con detalles","{0}, sugerencia","Leer menos...{0}","Cargando...","No hay sugerencias.","{0}, aceptada","{0}, sugerencia, con detalles","{0}, sugerencia"],"vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode":["Alternar tecla de tabulación para mover el punto de atención"], +"vs/editor/contrib/wordHighlighter/wordHighlighter":["Color de fondo de un símbolo durante el acceso de lectura, como leer una variable. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de fondo de un símbolo durante el acceso de escritura, como escribir en una variable. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de fondo de un símbolo durante el acceso de lectura; por ejemplo, cuando se lee una variable.","Color de fondo de un símbolo durante el acceso de escritura; por ejemplo, cuando se escribe una variable.","Destaca el color del marcador para los puntos del símbolo. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Destaca el color del marcador de acceso de escritura. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Ir al siguiente símbolo destacado","Ir al símbolo destacado anterior"], +"vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp":["No selection","Line {0}, Column {1} ({2} selected)","Line {0}, Column {1}","{0} selections ({1} characters selected)","{0} selections","Now changing the setting `accessibilitySupport` to 'on'.","Now opening the Editor Accessibility documentation page."," in a read-only pane of a diff editor."," in a pane of a diff editor."," in a read-only code editor"," in a code editor","To configure the editor to be optimized for usage with a Screen Reader press Command+E now.","To configure the editor to be optimized for usage with a Screen Reader press Control+E now.","The editor is configured to be optimized for usage with a Screen Reader.","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time.","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding.","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.","Press Command+H now to open a browser window with more information related to editor accessibility.","Press Control+H now to open a browser window with more information related to editor accessibility.","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.","Show Accessibility Help"], +"vs/editor/standalone/browser/inspectTokens/inspectTokens":["Developer: Inspect Tokens"],"vs/editor/standalone/browser/quickOpen/gotoLine":["Go to line {0} and character {1}","Go to line {0}","Type a line number between 1 and {0} to navigate to","Type a character between 1 and {0} to navigate to","Go to line {0}","Type a line number, followed by an optional colon and a character number to navigate to","Go to Line..."],"vs/editor/standalone/browser/quickOpen/quickCommand":["{0}, commands","Type the name of an action you want to execute","Command Palette"],"vs/editor/standalone/browser/quickOpen/quickOutline":["{0}, symbols","Type the name of an identifier you wish to navigate to","Go to Symbol...","symbols ({0})","modules ({0})","classes ({0})","interfaces ({0})","methods ({0})","functions ({0})","properties ({0})","variables ({0})","variables ({0})","constructors ({0})","calls ({0})"],"vs/editor/standalone/browser/simpleServices":["Made {0} edits in {1} files"], +"vs/editor/standalone/browser/standaloneCodeEditor":["Editor content","Press Ctrl+F1 for Accessibility Options.","Press Alt+F1 for Accessibility Options."],"vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast":["Toggle High Contrast Theme"],"vs/platform/configuration/common/configurationRegistry":["La configuración predeterminada se reemplaza","Establecer los valores de configuración que se reemplazarán para el lenguaje {0}.","Establecer los valores de configuración que se reemplazarán para un lenguaje.",'No se puede registrar "{0}". Coincide con el patrón de propiedad \'\\\\[.*\\\\]$\' para describir la configuración del editor específica del lenguaje. Utilice la contribución "configurationDefaults".','No se puede registrar "{0}". Esta propiedad ya está registrada.'],"vs/platform/keybinding/common/abstractKeybindingService":["Se presionó ({0}). Esperando la siguiente tecla...","La combinación de teclas ({0}, {1}) no es ningún comando."], +"vs/platform/list/browser/listService":["Área de trabajo",'Se asigna a "Control" en Windows y Linux y a "Comando" en macOS.','Se asigna a "Alt" en Windows y Linux y a "Opción" en macOS.',"El modificador que se usará para agregar un elemento en árboles y listas a una selección múltiple con el mouse (por ejemplo en el explorador, los editores abiertos y la vista SCM). ' ctrlCmd ' se asigna a ' control ' en Windows y Linux y a ' Command ' en macOS. Los gestos de ratón \"abrir a lado\", si se admiten, se adaptarán de tal manera que no estén en conflicto con el modificador multiselección.","Controla cómo abrir elementos en árboles y listas con el ratón (si está soportado). Establecer en ' singleClick ' para abrir elementos con un solo clic del ratón y ' DoubleClick ' para abrir sólo a través del doble clic del ratón. Para los elementos padres con hijos en los árboles, este ajuste controlará si un solo clic expande el padre o un doble clic. Tenga en cuenta que algunos árboles y listas pueden optar por ignorar esta configuración si no es aplicable","Controla el esplazamiento horizontal de los árboles en la mesa de trabajo."], +"vs/platform/markers/common/markers":["Error","Advertencia","Información"], +"vs/platform/theme/common/colorRegistry":["Colores usados en el área de trabajo.","Color de primer plano general. Este color solo se usa si un componente no lo invalida.","Color de primer plano general para los mensajes de erroe. Este color solo se usa si un componente no lo invalida.","Color de borde de los elementos con foco. Este color solo se usa si un componente no lo invalida.","Un borde adicional alrededor de los elementos para separarlos unos de otros y así mejorar el contraste.","Un borde adicional alrededor de los elementos activos para separarlos unos de otros y así mejorar el contraste.","Color de primer plano para los vínculos en el texto.","Color de fondo para los bloques de código en el texto.","Color de sombra de los widgets dentro del editor, como buscar/reemplazar","Fondo de cuadro de entrada.","Primer plano de cuadro de entrada.","Borde de cuadro de entrada.","Color de borde de opciones activadas en campos de entrada.","Color de fondo de validación de entrada para gravedad de información.","Color de borde de validación de entrada para gravedad de información.","Color de fondo de validación de entrada para gravedad de advertencia.","Color de borde de validación de entrada para gravedad de advertencia.","Color de fondo de validación de entrada para gravedad de error.","Color de borde de valdación de entrada para gravedad de error.","Color de fondo de la lista o el árbol del elemento con el foco cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.","Color de fondo de la lista o el árbol del elemento con el foco cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.","Color de fondo de la lista o el árbol del elemento seleccionado cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.","Color de primer plano de la lista o el árbol del elemento con el foco cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.","Color de fondo de la lista o el árbol del elemento seleccionado cuando la lista o el árbol están inactivos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.","Color de primer plano de la lista o el árbol del elemento con el foco cuando la lista o el árbol esta inactiva. Una lista o un árbol tiene el foco del teclado cuando está activo, cuando esta inactiva no.","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.","Fondo de la lista o el árbol al mantener el mouse sobre los elementos.","Color de primer plano de la lista o el árbol al pasar por encima de los elementos con el ratón.","Fondo de arrastrar y colocar la lista o el árbol al mover los elementos con el mouse.","Color de primer plano de la lista o el árbol de las coincidencias resaltadas al buscar dentro de la lista o el ábol.","Selector de color rápido para la agrupación de etiquetas.","Selector de color rápido para la agrupación de bordes.","Color de fondo de la insignia. Las insignias son pequeñas etiquetas de información, por ejemplo los resultados de un número de resultados.","Color de fondo de la insignia. Las insignias son pequeñas etiquetas de información, por ejemplo los resultados de un número de resultados.","Sombra de la barra de desplazamiento indica que la vista se ha despazado.","Color de fondo de control deslizante de barra de desplazamiento.","Color de fondo de barra de desplazamiento cursor cuando se pasar sobre el control.","Color de fondo de la barra de desplazamiento al hacer clic.","Color de fondo para la barra de progreso que se puede mostrar para las operaciones de larga duración.","Color de fondo del editor.","Color de primer plano predeterminado del editor.","Color de fondo del editor de widgets como buscar/reemplazar","Color de borde de los widgets del editor. El color solo se usa si el widget elige tener un borde y no invalida el color.","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.","Color de la selección del editor.","Color del texto seleccionado para alto contraste.","Color de la selección en un editor inactivo. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color para regiones con el mismo contenido que la selección. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de borde de las regiones con el mismo contenido que la selección.","Color de la coincidencia de búsqueda actual.","Color de las otras coincidencias de búsqueda. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de la gama que limita la búsqueda. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de borde de la coincidencia de búsqueda actual.","Color de borde de otra búsqueda que coincide.","Color de borde de la gama que limita la búsqueda. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Resalte debajo de la palabra para la cual se muestra un Hover. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de fondo al mantener el puntero en el editor.","Color del borde al mantener el puntero en el editor.","Color de los vínculos activos.","Color de fondo del texto que se insertó. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de fondo del texto que se eliminó. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de contorno para el texto insertado.","Color de contorno para el texto quitado.","Border color between the two text editors.","Destaca el color del marcador de regla para las coincidencias de búsqueda. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Destaca el color del marcador de regla para los puntos de selección . El color no debe ser opaco para no ocultar las decoraciones subyacentes."] +}); +//# sourceMappingURL=../../../min-maps/vs/editor/editor.main.nls.es.js.map \ No newline at end of file diff --git a/js/monaco/vs/editor/editor.main.nls.fr.js b/js/monaco/vs/editor/editor.main.nls.fr.js new file mode 100644 index 000000000..93d01b056 --- /dev/null +++ b/js/monaco/vs/editor/editor.main.nls.fr.js @@ -0,0 +1,33 @@ +/*!----------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.14.6(6c8f02b41db9ae5c4d15df767d47755e5c73b9d5) + * Released under the MIT license + * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt + *-----------------------------------------------------------*/ +define("vs/editor/editor.main.nls.fr",{"vs/base/browser/ui/actionbar/actionbar":["{0} ({1})"],"vs/base/browser/ui/aria/aria":["{0} (s'est reproduit)","{0} (occurred {1} times)"],"vs/base/browser/ui/findinput/findInput":["entrée"],"vs/base/browser/ui/findinput/findInputCheckboxes":["Respecter la casse","Mot entier","Utiliser une expression régulière"],"vs/base/browser/ui/inputbox/inputBox":["Erreur : {0}","Avertissement : {0}","Information : {0}"],"vs/base/browser/ui/list/listWidget":["{0}. Use the navigation keys to navigate."],"vs/base/browser/ui/menu/menu":["{0} ({1})"],"vs/base/common/keybindingLabels":["Ctrl","Maj","Alt","Windows","Ctrl","Maj","Alt","Super","Contrôle","Maj","Alt","Commande","Contrôle","Maj","Alt","Windows","Contrôle","Maj","Alt","Super"],"vs/base/common/severity":["Erreur","Avertissement","Informations"],"vs/base/parts/quickopen/browser/quickOpenModel":["{0}, sélecteur","sélecteur"], +"vs/base/parts/quickopen/browser/quickOpenWidget":["Sélecteur rapide. Tapez pour réduire les résultats.","Sélecteur rapide","{0} Results"],"vs/editor/browser/controller/coreCommands":["&&Select All","&&Undo","&&Redo"],"vs/editor/browser/widget/codeEditorWidget":["Le nombre de curseurs a été limité à {0}."],"vs/editor/browser/widget/diffEditorWidget":["Impossible de comparer les fichiers car l'un d'eux est trop volumineux."],"vs/editor/browser/widget/diffReview":["Fermer","aucune ligne","1 ligne","{0} lignes","Différence {0} sur {1} : original {2}, {3}, modifié {4}, {5}","vide","{0} d'origine, {1} modifiées : {2}","+ {0} modifiées : {1}","- {0} d'origine : {1}","Accéder à la différence suivante","Accéder la différence précédente"], +"vs/editor/common/config/commonEditorConfig":["Éditeur","Contrôle la famille de polices.","Contrôle l'épaisseur de police.","Contrôle la taille de police en pixels.","Contrôle la hauteur de ligne. Utilisez 0 pour calculer lineHeight à partir de fontSize.","Définit l'espacement des caractères en pixels.","Les numéros de ligne ne sont pas affichés.","Les numéros de ligne sont affichés en nombre absolu.","Les numéros de ligne sont affichés sous la forme de distance en lignes à la position du curseur.","Les numéros de ligne sont affichés toutes les 10 lignes.","Contrôle l’affichage des numéros de ligne.","Afficher les règles verticales après un certain nombre de caractères à espacement fixe. Utiliser plusieurs valeurs pour plusieurs règles. Aucune règle n'est dessinée si le tableau est vide","Caractères utilisés comme séparateurs de mots durant la navigation ou les opérations basées sur les mots","Le nombre d'espaces correspondant à une tabulation. Ce paramètre est remplacé en fonction du contenu du fichier quand 'editor.detectIndentation' est activé.","'number' attendu. Notez que la valeur \"auto\" a été remplacée par le paramètre 'editor.detectIndentation'.","Espaces insérés quand vous appuyez sur la touche Tab. Ce paramètre est remplacé en fonction du contenu du fichier quand 'editor.detectIndentation' est activé.","'boolean' attendu. Notez que la valeur \"auto\" a été remplacée par le paramètre 'editor.detectIndentation'.","Quand vous ouvrez un fichier, 'editor.tabSize' et 'editor.insertSpaces' sont détectés en fonction du contenu du fichier.","Contrôle si les sélections ont des angles arrondis","Contrôle si l'éditeur défile au-delà de la dernière ligne","Contrôle le nombre de caractères supplémentaires, au-delà duquel l’éditeur défilera horizontalement","Contrôle si l'éditeur défilera en utilisant une animation","Contrôle si la minicarte est affichée","Contrôle le côté où afficher la minicarte.","Contrôle si le curseur de la minicarte est automatiquement masqué","Afficher les caractères réels sur une ligne (par opposition aux blocs de couleurs)","Limiter la largeur de la minicarte pour afficher au maximum un certain nombre de colonnes","Controls whether the hover is shown.","Time delay in milliseconds after which to the hover is shown.","Controls whether the hover should remain visible when mouse is moved over it.","Contrôle si nous remplissons la chaîne à rechercher dans le Widget Recherche à partir de la sélection de l'éditeur","Contrôle si l'indicateur Rechercher dans la sélection est activé quand plusieurs caractères ou lignes de texte sont sélectionnés dans l'éditeur","Contrôle si le Widget Recherche doit lire ou modifier le presse-papiers partagé sur macOS","Le retour automatique à la ligne n'est jamais effectué.","Le retour automatique à la ligne s'effectue en fonction de la largeur de la fenêtre d'affichage.","Le retour automatique à la ligne s'effectue en fonction de 'editor.wordWrapColumn'.","Retour automatique à la ligne au minimum en fonction de la fenêtre d'affichage et de 'editor.wordWrapColumn'.","Contrôle le retour automatique à la ligne. Valeurs possibles :\n - 'off' (désactive le retour automatique à la ligne) ;\n - 'on' (retour automatique à la ligne dans la fenêtre d'affichage) ;\n - 'wordWrapColumn' (retour automatique à la ligne en fonction de 'editor.wordWrapColumn') ou ;\n - 'bounded' (retour automatique à la ligne au minimum en fonction de la fenêtre d'affichage et de 'editor.wordWrapColumn').","Contrôle la colonne de retour automatique à la ligne de l'éditeur quand 'editor.wordWrap' a la valeur 'wordWrapColumn' ou 'bounded'.","No indentation. Wrapped lines begin at column 1.","Wrapped lines get the same indentation as the parent.","Wrapped lines get +1 indentation toward the parent.","Wrapped lines get +2 indentation toward the parent.","Contrôle la mise en retrait des lignes enveloppées. Il peut s’agir de 'none', 'same', 'indent' ou 'deepIndent'.","Multiplicateur à utiliser pour le 'deltaX' et le 'deltaY' des événements de défilement de la roulette de la souris","Mappe vers 'Contrôle' dans Windows et Linux, et vers 'Commande' dans macOS.","Mappe vers 'Alt' dans Windows et Linux, et vers 'Option' dans macOS.","Le modificateur à utiliser pour ajouter plusieurs curseurs avec la souris. 'ctrlCmd' mappe vers 'Contrôle' dans Windows et Linux, et vers 'Commande' dans macOS. Les mouvements de souris Accéder à la définition et Ouvrir le lien s'adaptent pour ne pas entrer en conflit avec le modificateur multicurseur.","Fusionnez plusieurs curseurs quand ils se chevauchent.","Activez les suggestions rapides dans les chaînes.","Activez les suggestions rapides dans les commentaires.","Activez les suggestions rapides en dehors des chaînes et des commentaires.","Contrôle si les suggestions doivent s'afficher automatiquement en cours de frappe","Contrôle le délai en ms au bout duquel les suggestions rapides s'affichent","Active la pop up qui affiche la documentation des paramètres et écrit de l'information pendant que vous écrivez","Contrôle si l'éditeur doit automatiquement fermer les crochets après les avoir ouverts","Contrôle si l'éditeur doit automatiquement mettre en forme la ligne après la saisie","Contrôle si l'éditeur doit automatiquement mettre en forme le contenu collé. Un formateur doit être disponible et doit pouvoir mettre en forme une plage dans un document.","Contrôle si l’éditeur doit ajuster automatiquement la mise en retrait lorsque les utilisateurs tapent, collent ou déplacent des lignes. Les règles de mise en retrait du language doivent être disponibles.","Contrôle si les suggestions doivent s'afficher automatiquement durant la saisie de caractères de déclenchement","Only accept a suggestion with `Enter` when it makes a textual change.","Contrôle si les suggestions doivent être acceptées avec 'Entrée', en plus de 'Tab'. Cela permet d'éviter toute ambiguïté entre l'insertion de nouvelles lignes et l'acceptation de suggestions. La valeur 'smart' signifie que vous acceptez uniquement une suggestion avec Entrée quand elle applique une modification de texte","Contrôle si les suggestions doivent être acceptées avec des caractères de validation. Par exemple, en JavaScript, le point-virgule (';') peut être un caractère de validation qui permet d'accepter une suggestion et de taper ce caractère.","Afficher des suggestions d’extraits au-dessus d’autres suggestions.","Afficher des suggestions d’extraits en-dessous d’autres suggestions.","Afficher des suggestions d’extraits avec d’autres suggestions.","Ne pas afficher de suggestions d’extrait de code.","Contrôle si les extraits de code s'affichent en même temps que d'autres suggestions, ainsi que leur mode de tri.","Contrôle si la copie sans sélection permet de copier la ligne actuelle.","Contrôle si la saisie semi-automatique doit être calculée en fonction des mots présents dans le document.","Sélectionnez toujours la première suggestion.","Sélectionnez les suggestions récentes à moins qu'une saisie ultérieure en sélectionne un, par exemple 'console.| -> console.log' parce que `log` a été complété récemment.","Sélectionnez des suggestions basées sur des préfixes précédents qui ont complété ces suggestions, par exemple `co -> console` et `con -> const`.","Contrôle comment les suggestions sont pré-sélectionnés lors de l’affichage de la liste de suggestion.","Taille de police du widget de suggestion","Hauteur de ligne du widget de suggestion","Controls whether filtering and sorting suggestions accounts for small typos.","Control whether an active snippet prevents quick suggestions.","Détermine si l'éditeur doit surligner les correspondances similaires à la sélection","Contrôle si l'éditeur doit mettre en surbrillance les occurrences de symboles sémantiques","Contrôle le nombre d'ornements pouvant s'afficher à la même position dans la règle d'aperçu","Contrôle si une bordure doit être dessinée autour de la règle d'aperçu.","Contrôler le style d’animation du curseur.","Agrandir ou réduire la police de l'éditeur quand l'utilisateur fait tourner la roulette de la souris tout en maintenant la touche Ctrl enfoncée","Contrôle le style du curseur. Les valeurs acceptées sont 'block', 'block-outline', 'line', 'line-thin', 'underline' et 'underline-thin'","Contrôle la largeur du curseur quand editor.cursorStyle est à 'line'","Active les ligatures de police","Contrôle si le curseur doit être masqué dans la règle d'aperçu.","Render whitespace characters except for single spaces between words.","Contrôle la façon dont l'éditeur affiche les espaces blancs. Il existe trois options possibles : 'none', 'boundary' et 'all'. L'option 'boundary' n'affiche pas les espaces uniques qui séparent les mots.","Contrôle si l'éditeur doit afficher les caractères de contrôle","Contrôle si l'éditeur doit afficher les repères de mise en retrait","Controls whether the editor should highlight the active indent guide.","Highlights both the gutter and the current line.","Contrôle la façon dont l'éditeur doit afficher la surbrillance de la ligne active. Les différentes possibilités sont 'none', 'gutter', 'line' et 'all'.","Contrôle si l’éditeur affiche CodeLens","Contrôle si le pliage de code est activé dans l'éditeur","Contrôle la façon dont les repliages sont calculées. 'auto' utilise une stratégie repliage spécifique au langage, si disponible. 'indentation' force à ce que la stratégie de repliage basée sur l'indentation soit utilisée.","Définit si les contrôles de réduction sur la bordure sont cachés automatiquement","Met en surbrillance les crochets correspondants quand l'un d'eux est sélectionné.","Contrôle si l'éditeur doit afficher la marge de glyphes verticale. La marge de glyphes sert principalement au débogage.","L'insertion et la suppression d'un espace blanc suit les taquets de tabulation","Supprimer l'espace blanc de fin inséré automatiquement","Garder les éditeurs d'aperçu ouverts même si l'utilisateur double-clique sur son contenu ou appuie sur la touche Échap.","Contrôle si l'éditeur autorise le déplacement des sélections par glisser-déplacer.","L'éditeur utilise les API de la plateforme pour détecter si un lecteur d'écran est attaché.","L'éditeur est optimisé en permanence pour une utilisation avec un lecteur d'écran.","L'éditeur n'est jamais optimisé pour une utilisation avec un lecteur d'écran.","Contrôle si l'éditeur doit s'exécuter dans un mode optimisé pour les lecteurs d'écran.","Controls fading out of unused code.","Contrôle si l'éditeur doit détecter les liens et les rendre cliquables","Contrôle si l'éditeur doit afficher les éléments décoratifs de couleurs inline et le sélecteur de couleurs.","Active l'ampoule d'action de code","Exécuter organiser les importations lors de l'enregistrement ?","Types d'action de code à exécuter à l'enregistrement.","Délai d'attente pour les actions de code exécutées lors de l'enregistrement.","Contrôle si le presse-papiers primaire Linux doit être pris en charge.","Contrôle si l'éditeur de différences affiche les différences en mode côte à côte ou inline","Contrôle si l'éditeur de différences affiche les changements liés aux espaces blancs de début ou de fin comme des différences","Traitement spécial des fichiers volumineux pour désactiver certaines fonctionnalités utilisant beaucoup de mémoire.","Contrôle si l'éditeur de différences affiche les indicateurs +/- pour les modifications ajoutées/supprimées"], +"vs/editor/common/config/editorOptions":["L'éditeur n'est pas accessible pour le moment. Appuyez sur Alt+F1 pour connaître les options.","Contenu d'éditeur"],"vs/editor/common/controller/cursor":["Exception inattendue pendant l'exécution de la commande."],"vs/editor/common/modes/modesRegistry":["Texte brut"],"vs/editor/common/services/modelServiceImpl":["[{0}]\n{1}","[{0}] {1}"], +"vs/editor/common/view/editorColorRegistry":["Couleur d'arrière-plan de la mise en surbrillance de la ligne à la position du curseur.","Couleur d'arrière-plan de la bordure autour de la ligne à la position du curseur.","Couleur d'arrière-plan des plages mises en surbrillance, par exemple par les fonctionnalités d'ouverture rapide et de recherche. La couleur ne doit pas être opaque pour ne pas masquer les décorations sous-jacentes.","Couleur d'arrière-plan de la bordure autour des plages mises en surbrillance.","Couleur du curseur de l'éditeur.","La couleur de fond du curseur de l'éditeur. Permet de personnaliser la couleur d'un caractère survolé par un curseur de bloc.","Couleur des espaces blancs dans l'éditeur.","Couleur des repères de retrait de l'éditeur.","Couleur des guides d'indentation de l'éditeur actif","Couleur des numéros de ligne de l'éditeur.","Couleur des numéros de lignes actives de l'éditeur","Id est obsolète. Utilisez à la place 'editorLineNumber.activeForeground'. ","Couleur des numéros de lignes actives de l'éditeur","Couleur des règles de l'éditeur","Couleur pour les indicateurs CodeLens","Couleur d'arrière-plan pour les accolades associées","Couleur pour le contour des accolades associées","Couleur de la bordure de la règle d'apperçu.","Couleur de fond pour la bordure de l'éditeur. La bordure contient les marges pour les symboles et les numéros de ligne.","Couleur de premier plan de la ligne ondulée marquant les erreurs dans l'éditeur.","Couleur de bordure de la ligne ondulée marquant les erreurs dans l'éditeur.","Couleur de premier plan de la ligne ondulée marquant les avertissements dans l'éditeur.","Couleur de bordure de la ligne ondulée marquant les avertissements dans l'éditeur.","Couleur de premier plan de la ligne ondulée marquant les informations dans l'éditeur.","Couleur de bordure de la ligne ondulée marquant les informations dans l'éditeur.","Couleur de premier plan de la ligne ondulée d'indication dans l'éditeur.","Couleur de bordure de la ligne ondulée d'indication dans l'éditeur.","Border of unnecessary code in the editor.","Opacity of unnecessary code in the editor.","Couleur du marqueur de la règle d'aperçu pour les erreurs.","Couleur du marqueur de la règle d'aperçu pour les avertissements.","Couleur du marqueur de la règle d'aperçu pour les informations."], +"vs/editor/contrib/bracketMatching/bracketMatching":["Couleur du marqueur de la règle d'aperçu pour rechercher des parenthèses.","Atteindre le crochet","Select to Bracket"],"vs/editor/contrib/caretOperations/caretOperations":["Déplacer le point d'insertion vers la gauche","Déplacer le point d'insertion vers la droite"],"vs/editor/contrib/caretOperations/transpose":["Transposer les lettres"],"vs/editor/contrib/clipboard/clipboard":["Couper","Cu&&t","Copier","&&Copy","Coller","&&Paste","Copier avec la coloration syntaxique"],"vs/editor/contrib/codeAction/codeActionCommands":["Afficher les correctifs ({0})","Afficher les correctifs","Correction rapide...","Aucune action de code disponible","Aucune action de code disponible","Remanier...","Aucune refactorisation disponible","Action de la source","Aucune action n'est disponible","Organiser les Imports","Aucune action organiser les imports disponible"], +"vs/editor/contrib/comment/comment":["Activer/désactiver le commentaire de ligne","&&Toggle Line Comment","Ajouter le commentaire de ligne","Supprimer le commentaire de ligne","Activer/désactiver le commentaire de bloc","Toggle &&Block Comment"],"vs/editor/contrib/contextmenu/contextmenu":["Afficher le menu contextuel de l'éditeur"],"vs/editor/contrib/cursorUndo/cursorUndo":["Soft Undo"],"vs/editor/contrib/find/findController":["Rechercher","&&Find","Rechercher dans la sélection","Rechercher suivant","Rechercher précédent","Sélection suivante","Sélection précédente","Remplacer","&&Replace"],"vs/editor/contrib/find/findWidget":["Rechercher","Rechercher","Correspondance précédente","Correspondance suivante","Rechercher dans la sélection","Fermer","Remplacer","Remplacer","Remplacer","Tout remplacer","Changer le mode de remplacement","Seuls les {0} premiers résultats sont mis en évidence, mais toutes les opérations de recherche fonctionnent sur l’ensemble du texte.","{0} sur {1}","Aucun résultat"], +"vs/editor/contrib/folding/folding":["Déplier","Déplier de manière récursive","Plier","Plier de manière récursive","Replier tous les commentaires de bloc","Replier toutes les régions","Déplier toutes les régions","Plier tout","Déplier tout","Niveau de pliage {0}"],"vs/editor/contrib/fontZoom/fontZoom":["Agrandissement de l'éditeur de polices de caractères","Rétrécissement de l'éditeur de polices de caractères","Remise à niveau du zoom de l'éditeur de polices de caractères"], +"vs/editor/contrib/format/formatActions":["1 modification de format effectuée à la ligne {0}","{0} modifications de format effectuées à la ligne {1}","1 modification de format effectuée entre les lignes {0} et {1}","{0} modifications de format effectuées entre les lignes {1} et {2}","Il n’y a aucun formateur installé pour les fichiers '{0}'.","Mettre en forme le document","Il n’y a aucun formateur de document installé pour les fichiers '{0}'.","Mettre en forme la sélection","Il n’y a aucun formateur de sélection installé pour les fichiers '{0}'."], +"vs/editor/contrib/goToDefinition/goToDefinitionCommands":["Définition introuvable pour '{0}'","Définition introuvable"," – {0} définitions","Atteindre la définition","Ouvrir la définition sur le côté","Aperçu de définition","Implémentation introuvable pour '{0}'","Implémentation introuvable","– Implémentations {0}","Accéder à l'implémentation","Aperçu de l'implémentation","Définition de type introuvable pour '{0}'","Définition de type introuvable"," – Définitions de type {0}","Atteindre la définition de type","Aperçu de la définition du type"],"vs/editor/contrib/goToDefinition/goToDefinitionMouse":["Cliquez pour afficher {0} définitions."],"vs/editor/contrib/gotoError/gotoError":["Aller au problème suivant (Erreur, Avertissement, Info)","Aller au problème précédent (Erreur, Avertissement, Info)","Aller au problème suivant dans Fichiers (Erreur, Avertissement, Info)","Aller au problème précédent dans Fichiers (Erreur, Avertissement, Info)"], +"vs/editor/contrib/gotoError/gotoErrorWidget":["({0}/{1})","Couleur d'erreur du widget de navigation dans les marqueurs de l'éditeur.","Couleur d'avertissement du widget de navigation dans les marqueurs de l'éditeur.","Couleur d’information du widget de navigation du marqueur de l'éditeur.","Arrière-plan du widget de navigation dans les marqueurs de l'éditeur."],"vs/editor/contrib/hover/hover":["Afficher par pointage"],"vs/editor/contrib/hover/modesContentHover":["Chargement..."],"vs/editor/contrib/inPlaceReplace/inPlaceReplace":["Remplacer par la valeur précédente","Remplacer par la valeur suivante"], +"vs/editor/contrib/linesOperations/linesOperations":["Copier la ligne en haut","&&Copy Line Up","Copier la ligne en bas","Co&&py Line Down","Déplacer la ligne vers le haut","Mo&&ve Line Up","Déplacer la ligne vers le bas","Move &&Line Down","Trier les lignes dans l'ordre croissant","Trier les lignes dans l'ordre décroissant","Découper l'espace blanc de fin","Supprimer la ligne","Mettre en retrait la ligne","Ajouter un retrait négatif à la ligne","Insérer une ligne au-dessus","Insérer une ligne sous","Supprimer tout ce qui est à gauche","Supprimer tout ce qui est à droite","Joindre les lignes","Transposer les caractères autour du curseur","Transformer en majuscule","Transformer en minuscule"], +"vs/editor/contrib/links/links":["Commande + clic pour suivre le lien","Ctrl + clic pour suivre le lien","Cmd + clic pour exécuter la commande","Ctrl + clic pour exécuter la commande","Option + clic pour suivre le lien","Alt + clic pour suivre le lien","Option + clic pour exécuter la commande","Alt + clic pour exécuter la commande","Échec de l'ouverture de ce lien, car il n'est pas bien formé : {0}","Échec de l'ouverture de ce lien, car sa cible est manquante.","Ouvrir le lien"],"vs/editor/contrib/message/messageController":["Impossible de modifier dans l’éditeur en lecture seule"], +"vs/editor/contrib/multicursor/multicursor":["Ajouter un curseur au-dessus","&&Add Cursor Above","Ajouter un curseur en dessous","A&&dd Cursor Below","Ajouter des curseurs à la fin des lignes","Add C&&ursors to Line Ends","Ajouter la sélection à la correspondance de recherche suivante","Add &&Next Occurrence","Ajouter la sélection à la correspondance de recherche précédente","Add P&&revious Occurrence","Déplacer la dernière sélection vers la correspondance de recherche suivante","Déplacer la dernière sélection à la correspondance de recherche précédente","Sélectionner toutes les occurrences des correspondances de la recherche","Select All &&Occurrences","Modifier toutes les occurrences"],"vs/editor/contrib/parameterHints/parameterHints":["Indicateurs des paramètres Trigger"],"vs/editor/contrib/parameterHints/parameterHintsWidget":["{0}, conseil"],"vs/editor/contrib/referenceSearch/peekViewWidget":["Fermer"], +"vs/editor/contrib/referenceSearch/referenceSearch":[" – {0} références","Rechercher toutes les références"],"vs/editor/contrib/referenceSearch/referencesController":["Chargement..."],"vs/editor/contrib/referenceSearch/referencesModel":["symbole dans {0} sur la ligne {1}, colonne {2}","1 symbole dans {0}, chemin complet {1}","{0} symboles dans {1}, chemin complet {2}","Résultats introuvables","1 symbole dans {0}","{0} symboles dans {1}","{0} symboles dans {1} fichiers"], +"vs/editor/contrib/referenceSearch/referencesWidget":["Échec de la résolution du fichier.","{0} références","{0} référence","aperçu non disponible","Références","Aucun résultat","Références","Couleur d'arrière-plan de la zone de titre de l'affichage d'aperçu.","Couleur du titre de l'affichage d'aperçu.","Couleur des informations sur le titre de l'affichage d'aperçu.","Couleur des bordures et de la flèche de l'affichage d'aperçu.","Couleur d'arrière-plan de la liste des résultats de l'affichage d'aperçu.","Couleur de premier plan des noeuds de lignes dans la liste des résultats de l'affichage d'aperçu.","Couleur de premier plan des noeuds de fichiers dans la liste des résultats de l'affichage d'aperçu.","Couleur d'arrière-plan de l'entrée sélectionnée dans la liste des résultats de l'affichage d'aperçu.","Couleur de premier plan de l'entrée sélectionnée dans la liste des résultats de l'affichage d'aperçu.","Couleur d'arrière-plan de l'éditeur d'affichage d'aperçu.","Couleur d'arrière-plan de la bordure de l'éditeur d'affichage d'aperçu.","Couleur de mise en surbrillance d'une correspondance dans la liste des résultats de l'affichage d'aperçu.","Couleur de mise en surbrillance d'une correspondance dans l'éditeur de l'affichage d'aperçu.","Bordure de mise en surbrillance d'une correspondance dans l'éditeur de l'affichage d'aperçu."], +"vs/editor/contrib/rename/rename":["Aucun résultat.","'{0}' renommé en '{1}'. Récapitulatif : {2}","Échec de l'exécution du renommage.","Renommer le symbole"],"vs/editor/contrib/rename/renameInputField":["Renommez l'entrée. Tapez le nouveau nom et appuyez sur Entrée pour valider."],"vs/editor/contrib/smartSelect/smartSelect":["Développer la sélection","&&Expand Selection","Réduire la sélection","&&Shrink Selection"],"vs/editor/contrib/snippet/snippetVariables":["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dim","Lun","Mar","Mer","Jeu","Ven","Sam","Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre","Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],"vs/editor/contrib/suggest/suggestController":["L'acceptation de '{0}' a inséré le texte suivant : {1}","Suggestions pour Trigger"], +"vs/editor/contrib/suggest/suggestWidget":["Couleur d'arrière-plan du widget de suggestion.","Couleur de bordure du widget de suggestion.","Couleur de premier plan du widget de suggestion.","Couleur d'arrière-plan de l'entrée sélectionnée dans le widget de suggestion.","Couleur de la surbrillance des correspondances dans le widget de suggestion.","En savoir plus...{0}","{0}, suggestion, avec détails","{0}, suggestion","En savoir moins...{0}","Chargement...","Pas de suggestions.","{0}, accepté","{0}, suggestion, avec détails","{0}, suggestion"],"vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode":["Activer/désactiver l'utilisation de la touche Tab pour déplacer le focus"], +"vs/editor/contrib/wordHighlighter/wordHighlighter":["Couleur d'arrière-plan d'un symbole durant l'accès en lecture, par exemple la lecture d'une variable. La couleur ne doit pas être opaque pour ne pas masquer les décorations sous-jacentes.","Couleur d'arrière-plan d'un symbole durant l'accès en écriture, par exemple l'écriture dans une variable. La couleur ne doit pas être opaque pour ne pas masquer les décorations sous-jacentes.","Couleur de bordure d'un symbole durant l'accès en lecture, par exemple la lecture d'une variable.","Couleur de bordure d'un symbole durant l'accès en écriture, par exemple l'écriture dans une variable.","Couleur du marqueur de la règle d'aperçu pour les mises en surbrillance de symbole. La couleur doit ne pas être opaque pour ne pas masquer les décorations du dessous.","Couleur du marqueur de la règle d'aperçu pour les mises en surbrillance de symbole d'accès en écriture. La couleur doit ne pas être opaque pour ne pas masquer les décorations du dessous.","Aller à la prochaine mise en évidence de symbole","Aller à la mise en évidence de symbole précédente"], +"vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp":["No selection","Line {0}, Column {1} ({2} selected)","Line {0}, Column {1}","{0} selections ({1} characters selected)","{0} selections","Now changing the setting `accessibilitySupport` to 'on'.","Now opening the Editor Accessibility documentation page."," in a read-only pane of a diff editor."," in a pane of a diff editor."," in a read-only code editor"," in a code editor","To configure the editor to be optimized for usage with a Screen Reader press Command+E now.","To configure the editor to be optimized for usage with a Screen Reader press Control+E now.","The editor is configured to be optimized for usage with a Screen Reader.","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time.","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding.","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.","Press Command+H now to open a browser window with more information related to editor accessibility.","Press Control+H now to open a browser window with more information related to editor accessibility.","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.","Show Accessibility Help"], +"vs/editor/standalone/browser/inspectTokens/inspectTokens":["Developer: Inspect Tokens"],"vs/editor/standalone/browser/quickOpen/gotoLine":["Go to line {0} and character {1}","Go to line {0}","Type a line number between 1 and {0} to navigate to","Type a character between 1 and {0} to navigate to","Go to line {0}","Type a line number, followed by an optional colon and a character number to navigate to","Go to Line..."],"vs/editor/standalone/browser/quickOpen/quickCommand":["{0}, commands","Type the name of an action you want to execute","Command Palette"],"vs/editor/standalone/browser/quickOpen/quickOutline":["{0}, symbols","Type the name of an identifier you wish to navigate to","Go to Symbol...","symbols ({0})","modules ({0})","classes ({0})","interfaces ({0})","methods ({0})","functions ({0})","properties ({0})","variables ({0})","variables ({0})","constructors ({0})","calls ({0})"],"vs/editor/standalone/browser/simpleServices":["Made {0} edits in {1} files"], +"vs/editor/standalone/browser/standaloneCodeEditor":["Editor content","Press Ctrl+F1 for Accessibility Options.","Press Alt+F1 for Accessibility Options."],"vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast":["Toggle High Contrast Theme"],"vs/platform/configuration/common/configurationRegistry":["Substitutions de configuration par défaut","Configurez les paramètres d'éditeur à remplacer pour le langage {0}.","Configurez les paramètres d'éditeur à remplacer pour un langage.","Impossible d'inscrire '{0}'. Ceci correspond au modèle de propriété '\\\\[.*\\\\]$' permettant de décrire les paramètres d'éditeur spécifiques à un langage. Utilisez la contribution 'configurationDefaults'.","Impossible d'inscrire '{0}'. Cette propriété est déjà inscrite."],"vs/platform/keybinding/common/abstractKeybindingService":["Touche ({0}) utilisée. En attente de la seconde touche pour la pression simultanée...","La combinaison de touches ({0}, {1}) n'est pas une commande."], +"vs/platform/list/browser/listService":["Banc d'essai","Mappe vers 'Contrôle' dans Windows et Linux, et vers 'Commande' dans macOS.","Mappe vers 'Alt' dans Windows et Linux, et vers 'Option' dans macOS.","Le modificateur à utiliser pour ajouter un élément à une multi-sélection avec la souris (par exemple dans l’Explorateur, des éditeurs ouverts et scm view). 'ctrlCmd' mappe vers 'Contrôle' dans Windows et Linux, et vers 'Commande' dans macOS. Les mouvements de souris 'Ouvrir sur le côté', si supportés, s'adaptent pour ne pas entrer en conflit avec le modificateur multiselect.","Contrôle l’ouverture des éléments dans les arbres et listes à l’aide de la souris (si pris en charge). Mettre la valeur `singleClick` pour ouvrir des éléments avec un simple clic de souris et `doubleClick` pour ouvrir uniquement via un double-clic de souris. Pour les parents ayant des enfants dans les arbres, ce paramètre contrôle si un simple clic développe le parent ou un double-clic. Notez que certains arbres et listes peuvent choisir d’ignorer ce paramètre, si ce n’est pas applicable. ","Contrôle si les arborescences prennent en charge le défilement horizontal dans le plan de travail."], +"vs/platform/markers/common/markers":["Erreur","Avertissement","Informations"], +"vs/platform/theme/common/colorRegistry":["Couleurs utilisées dans le banc d'essai.","Couleur de premier plan globale. Cette couleur est utilisée si elle n'est pas remplacée par un composant.","Couleur principale de premier plan pour les messages d'erreur. Cette couleur est utilisée uniquement si elle n'est pas redéfinie par un composant.","Couleur de bordure globale des éléments ayant le focus. Cette couleur est utilisée si elle n'est pas remplacée par un composant.","Bordure supplémentaire autour des éléments pour les séparer des autres et obtenir un meilleur contraste.","Bordure supplémentaire autour des éléments actifs pour les séparer des autres et obtenir un meilleur contraste.","Couleur des liens dans le texte.","Couleur d'arrière-plan des blocs de code dans le texte.","Couleur de l'ombre des widgets, comme rechercher/remplacer, au sein de l'éditeur.","Arrière-plan de la zone d'entrée.","Premier plan de la zone d'entrée.","Bordure de la zone d'entrée.","Couleur de la bordure des options activées dans les champs d'entrée.","Couleur d'arrière-plan de la validation d'entrée pour la gravité des informations.","Couleur de bordure de la validation d'entrée pour la gravité des informations.","Couleur d'arrière-plan de la validation d'entrée pour la gravité de l'avertissement.","Couleur de bordure de la validation d'entrée pour la gravité de l'avertissement.","Couleur d'arrière-plan de la validation d'entrée pour la gravité de l'erreur.","Couleur de bordure de la validation d'entrée pour la gravité de l'erreur. ","Couleur d'arrière-plan de la liste/l'arborescence pour l'élément ayant le focus quand la liste/l'arborescence est active. Une liste/aborescence active peut être sélectionnée au clavier, elle ne l'est pas quand elle est inactive.","Couleur de premier plan de la liste/l'arborescence pour l'élément ayant le focus quand la liste/l'arborescence est active. Une liste/aborescence active peut être sélectionnée au clavier, elle ne l'est pas quand elle est inactive.","Couleur d'arrière-plan de la liste/l'arborescence de l'élément sélectionné quand la liste/l'arborescence est active. Une liste/arborescence active peut être sélectionnée au clavier, elle ne l'est pas quand elle est inactive.","Couleur de premier plan de la liste/l'arborescence pour l'élément sélectionné quand la liste/l'arborescence est active. Une liste/aborescence active peut être sélectionnée au clavier, elle ne l'est pas quand elle est inactive.","Couleur d'arrière-plan de la liste/l'arborescence pour l'élément sélectionné quand la liste/l'arborescence est inactive. Une liste/aborescence active peut être sélectionnée au clavier, elle ne l'est pas quand elle est inactive.","Couleur de premier plan de la liste/l'arborescence pour l'élément sélectionné quand la liste/l'arborescence est active. Une liste/aborescence active peut être sélectionnée au clavier, elle ne l'est pas quand elle est inactive.","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.","Arrière-plan de la liste/l'arborescence pendant le pointage sur des éléments avec la souris.","Premier plan de la liste/l'arborescence pendant le pointage sur des éléments avec la souris.","Arrière-plan de l'opération de glisser-déplacer dans une liste/arborescence pendant le déplacement d'éléments avec la souris.","Couleur de premier plan dans la liste/l'arborescence pour la surbrillance des correspondances pendant la recherche dans une liste/arborescence.","Couleur du sélecteur rapide pour les étiquettes de regroupement.","Couleur du sélecteur rapide pour les bordures de regroupement.","Couleur de fond des badges. Les badges sont de courts libelés d'information, ex. le nombre de résultats de recherche.","Couleur des badges. Les badges sont de courts libelés d'information, ex. le nombre de résultats de recherche.","Ombre de la barre de défilement pour indiquer que la vue défile.","Couleur de fond du curseur de la barre de défilement.","Couleur de fond du curseur de la barre de défilement lors du survol.","Couleur d’arrière-plan de la barre de défilement lorsqu'on clique dessus.","Couleur de fond pour la barre de progression qui peut s'afficher lors d'opérations longues.","Couleur d'arrière-plan de l'éditeur.","Couleur de premier plan par défaut de l'éditeur.","Couleur d'arrière-plan des gadgets de l'éditeur tels que rechercher/remplacer.","Couleur de bordure des widgets de l'éditeur. La couleur est utilisée uniquement si le widget choisit d'avoir une bordure et si la couleur n'est pas remplacée par un widget.","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.","Couleur de la sélection de l'éditeur.","Couleur du texte sélectionné pour le contraste élevé.","Couleur de sélection dans un éditeur inactif. La couleur doit ne pas être opaque afin de ne pas masquer les décorations sous-jacentes.","Couleur des régions avec le même contenu que la sélection. La couleur doit ne pas être opaque afin de ne pas masquer les décorations sous-jacentes.","Couleur de bordure des régions dont le contenu est identique à la sélection.","Couleur du résultat de recherche actif.","Couleur des autres résultats de recherche correspondants. La couleur doit ne pas être opaque afin de ne pas masquer les décorations sous-jacentes.","Couleur de la plage limitant la recherche. La couleur ne doit pas être opaque pour ne pas masquer les décorations sous-jacentes.","Couleur de bordure du résultat de recherche actif.","Couleur de bordure des autres résultats de recherche.","Couleur de la bordure limitant la recherche. La couleur ne doit pas être opaque pour ne pas masquer les décorations sous-jacentes. ","Mettre en surbrillance ci-dessous le mot pour lequel un survol est affiché. La couleur doit ne pas être opaque afin de ne pas masquer les décorations sous-jacentes.","Couleur d'arrière-plan du pointage de l'éditeur.","Couleur de bordure du pointage de l'éditeur.","Couleur des liens actifs.","Couleur de fond pour le texte qui est inséré. La couleur ne doit pas être opaque pour ne pas masquer les décorations du dessous.","Couleur de fond pour le texte qui est retiré. La couleur doit ne pas être opaque pour ne pas masquer les décorations du dessous. ","Couleur de contour du texte inséré.","Couleur de contour du texte supprimé.","Border color between the two text editors.","Couleur du marqueur de la règle d'aperçu pour les correspondances trouvées. La couleur doit ne pas être opaque pour ne pas masquer les décorations du dessous.","Couleur du marqueur de la règle d'aperçu pour les mises en surbrillance de sélection. La couleur doit ne pas être opaque pour ne pas masquer les décorations du dessous."] +}); +//# sourceMappingURL=../../../min-maps/vs/editor/editor.main.nls.fr.js.map \ No newline at end of file diff --git a/js/monaco/vs/editor/editor.main.nls.it.js b/js/monaco/vs/editor/editor.main.nls.it.js new file mode 100644 index 000000000..e039bb130 --- /dev/null +++ b/js/monaco/vs/editor/editor.main.nls.it.js @@ -0,0 +1,32 @@ +/*!----------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.14.6(6c8f02b41db9ae5c4d15df767d47755e5c73b9d5) + * Released under the MIT license + * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt + *-----------------------------------------------------------*/ +define("vs/editor/editor.main.nls.it",{"vs/base/browser/ui/actionbar/actionbar":["{0} ({1})"],"vs/base/browser/ui/aria/aria":["{0} (nuova occorrenza)","{0} (occurred {1} times)"],"vs/base/browser/ui/findinput/findInput":["input"],"vs/base/browser/ui/findinput/findInputCheckboxes":["Maiuscole/minuscole","Parola intera","Usa espressione regolare"],"vs/base/browser/ui/inputbox/inputBox":["Errore: {0}","Avviso: {0}","Info: {0}"],"vs/base/browser/ui/list/listWidget":["{0}. Use the navigation keys to navigate."],"vs/base/browser/ui/menu/menu":["{0} ({1})"],"vs/base/common/keybindingLabels":["CTRL","MAIUSC","ALT","Windows","CTRL","MAIUSC","ALT","Super","CTRL","MAIUSC","ALT","Comando","CTRL","MAIUSC","ALT","Windows","CTRL","MAIUSC","ALT","Super"],"vs/base/common/severity":["Errore","Avviso","Informazioni"],"vs/base/parts/quickopen/browser/quickOpenModel":["{0}, selezione","selezione"], +"vs/base/parts/quickopen/browser/quickOpenWidget":["Selezione rapida. Digitare per ridurre il numero di risultati.","Selezione rapida","{0} Results"],"vs/editor/browser/controller/coreCommands":["&&Select All","&&Undo","&&Redo"],"vs/editor/browser/widget/codeEditorWidget":["Il numero di cursori è stato limitato a {0}."],"vs/editor/browser/widget/diffEditorWidget":["Non è possibile confrontare i file perché uno è troppo grande."],"vs/editor/browser/widget/diffReview":["Chiudi","nessuna linea","1 linea","{0} linee","Differenza {0} di {1}: originale {2}, {3}, modificate {4}, {5}","vuota","originali {0}, modificate {1}: {2}","+ modificate {0}: {1}","- originali {0}: {1}","Vai alla differenza successiva","Vai alla differenza precedente"], +"vs/editor/common/config/commonEditorConfig":["Editor","Controlla la famiglia di caratteri.","Controlla lo spessore del carattere.","Controlla le dimensioni del carattere in pixel.","Controlla l'altezza della riga. Usare 0 per calcolare l'altezza della riga dalle dimensioni del carattere.","Controlla la spaziatura tra le lettere in pixel.","I numeri di riga non vengono visualizzati.","I numeri di riga vengono visualizzati come numeri assoluti.","I numeri di riga vengono visualizzati come distanza in linee alla posizione del cursore.","I numeri di riga vengono visualizzati ogni 10 righe.","Controlla la visualizzazione dei numeri di riga.","Mostra righelli verticali dopo un certo numero di caratteri a spaziatura fissa. Utilizza più valori per più righelli. Nessun righello viene disegnati se la matrice è vuota","Caratteri che verranno usati come separatori di parola quando si eseguono operazioni o spostamenti correlati a parole","Il numero di spazi corrispondenti ad un carattere Tab. Questa impostazione viene sottoposta a override in base al contenuto dei file quando 'editor.detectIndentation' è 'on'.","È previsto 'number'. Nota: il valore \"auto\" è stato sostituito dall'impostazione `editor.detectIndentation`.","Inserire spazi quando si preme Tab. Questa impostazione viene sottoposta a override in base al contenuto dei file quando è 'editor.detectIndentation' è 'on'.","È previsto 'boolean'. Nota: il valore \"auto\" è stato sostituito dall'impostazione `editor.detectIndentation`.","All'apertura di un file, `editor.tabSize` e `editor.insertSpaces` verranno rilevati in base al contenuto del file.","Controlla se gli angoli delle selezioni sono arrotondati","Controlla se l'editor scorrerà oltre l'ultima riga","Controlla il numero di caratteri aggiuntivi oltre il quale l'editor scorrerà orizzontalmente","Controlla se per lo scorrimento dell'editor verrà usata un'animazione.","Controlla se la mini mappa è visualizzata","Definisce il lato in cui eseguire il rendering della mini mappa.","Controlla se lo slider della mini mappa viene nascosto automaticamente.","Esegue il rendering dei caratteri effettivi di una riga (in contrapposizione ai blocchi colore)","Limita la larghezza della mini mappa in modo da eseguire il rendering al massimo di un certo numero di colonne","Controls whether the hover is shown.","Time delay in milliseconds after which to the hover is shown.","Controls whether the hover should remain visible when mouse is moved over it.","Controlla se inizializzare la stringa di ricerca nel Widget Trova con il testo selezionato nell'editor","Controlla se l'impostazione Trova nella selezione è attivata quando vengono selezionati più caratteri o righe di testo nell'editor","Controlla se il widget Trova debba leggere o modificare gli appunti ricerche condivise su macOS","Il wrapping delle righe non viene eseguito.","Verrà eseguito il wrapping delle righe in base alla larghezza del viewport.","Verrà eseguito il wrapping delle righe alla posizione corrispondente a `editor.wordWrapColumn`.","Verrà eseguito il wrapping delle righe alla posizione minima del viewport e di `editor.wordWrapColumn`.","Controlla il wrapping delle righe. Valori possibili:\n - 'off' (disabilita il wrapping),\n - 'on' (wrapping del viewport),\n - 'wordWrapColumn' (esegue il wrapping alla posizione corrispondente a `editor.wordWrapColumn`) o\n - 'bounded' (esegue il wrapping alla posizione minima del viewport e di `editor.wordWrapColumn`).","Controlla la colonna di wrapping dell'editor quando il valore di `editor.wordWrap` è 'wordWrapColumn' o 'bounded'.","No indentation. Wrapped lines begin at column 1.","Wrapped lines get the same indentation as the parent.","Wrapped lines get +1 indentation toward the parent.","Wrapped lines get +2 indentation toward the parent.","Controlla il rientro delle righe con ritorno a capo. Può essere uno dei valori seguenti: 'none', 'same', 'indent' o 'deepIndent'.","Moltiplicatore da usare sui valori `deltaX` e `deltaY` degli eventi di scorrimento della rotellina del mouse","Rappresenta il tasto 'Control' (ctrl) su Windows e Linux e il tasto 'Comando' (cmd) su OSX.","Rappresenta il tasto 'Alt' su Windows e Linux e il tasto 'Opzione' su OSX.","Il modificatore da utilizzare per aggiungere molteplici cursori con il mouse. 'ctrlCmd' rappresenta il tasto 'Control' su Windows e Linux e il tasto 'Comando' su OSX. I gesti del mouse Vai a definizione e Apri il Link si adatteranno in modo da non entrare in conflitto con il modificatore multi-cursore.","Unire i cursori multipli se sovrapposti.","Abilita i suggerimenti rapidi all'interno di stringhe.","Abilita i suggerimenti rapidi all'interno di commenti.","Abilita i suggerimenti rapidi all'esterno di stringhe e commenti.","Controlla se visualizzare automaticamente i suggerimenti durante la digitazione","Controlla il ritardo in ms dopo il quale verranno visualizzati i suggerimenti rapidi","Abilita un popup che mostra documentazione sui parametri e informazioni sui tipi mentre si digita","Controlla se l'editor deve chiudere automaticamente le parentesi quadre dopo che sono state aperte","Controlla se l'editor deve formattare automaticamente la riga dopo la digitazione","Controlla se l'editor deve formattare automaticamente il contenuto incollato. Deve essere disponibile un formattatore che deve essere in grado di formattare un intervallo in un documento.","Controlla se l'editor deve correggere automaticamente l'indentazione mentre l'utente digita, incolla o sposta delle righe. Devono essere disponibili le regole di indentazione del linguaggio.","Controlla se i suggerimenti devono essere visualizzati automaticamente durante la digitazione dei caratteri trigger","Only accept a suggestion with `Enter` when it makes a textual change.","Controlla se i suggerimenti devono essere accettati con 'INVIO' in aggiunta a 'TAB'. In questo modo è possibile evitare ambiguità tra l'inserimento di nuove righe e l'accettazione di suggerimenti. Il valore 'smart' indica di accettare un suggerimento con 'INVIO' quando comporta una modifica al testo","Controlla se accettare i suggerimenti con i caratteri di commit. Ad esempio, in JavaScript il punto e virgola (';') può essere un carattere di commit che accetta un suggerimento e digita tale carattere.","Visualizza i suggerimenti dello snippet sopra gli altri suggerimenti.","Visualizza i suggerimenti dello snippet sotto gli altri suggerimenti.","Visualizza i suggerimenti degli snippet insieme agli altri suggerimenti.","Non mostrare i suggerimenti sugli snippet.","Controlla se i frammenti di codice sono visualizzati con altri suggerimenti e il modo in cui sono ordinati.","Consente di controllare se, quando si copia senza aver effettuato una selezione, viene copiata la riga corrente.","Controlla se calcolare i completamenti in base alle parole presenti nel documento.","Consente di selezionare sempre il primo suggerimento.","Consente di selezionare suggerimenti recenti a meno che continuando a digitare non ne venga selezionato uno, ad esempio `console.| -> console.log` perché `log` è stato completato di recente.","Consente di selezionare i suggerimenti in base a prefissi precedenti che hanno completato tali suggerimenti, ad esempio `co -> console` e `con -> const`.","Controlla la modalità di preselezione dei suggerimenti durante la visualizzazione degll'elenco dei suggerimenti.","Dimensioni del carattere per il widget dei suggerimenti","Altezza della riga per il widget dei suggerimenti","Controls whether filtering and sorting suggestions accounts for small typos.","Control whether an active snippet prevents quick suggestions.","Controlla se l'editor deve evidenziare gli elementi corrispondenti simili alla selezione","Controlla se l'editor deve evidenziare le occorrenze di simboli semantici","Controlla il numero di effetti che possono essere visualizzati nella stessa posizione nel righello delle annotazioni","Controlla se deve essere disegnato un bordo intorno al righello delle annotazioni.","Controllo dello stile di animazione del cursore.","Ingrandisce il carattere dell'editor quando si usa la rotellina del mouse e si tiene premuto CTRL","Controlla lo stile del cursore. I valori accettati sono 'block', 'block-outline', 'line', 'line-thin', 'underline' e 'underline-thin'","Controlla la larghezza del cursore quando editor.cursorSyle è impostato a 'line'","Abilita i caratteri legatura","Controlla se il cursore deve essere nascosto nel righello delle annotazioni.","Render whitespace characters except for single spaces between words.","Consente di controllare in che modo l'editor deve eseguire il rendering dei caratteri di spazio vuoto. Le opzioni possibili sono: 'none', 'boundary' e 'all'. Con l'opzione 'boundary' non viene eseguito il rendering di singoli spazi tra le parole.","Controlla se l'editor deve eseguire il rendering dei caratteri di controllo","Controlla se l'editor deve eseguire il rendering delle guide con rientro","Controls whether the editor should highlight the active indent guide.","Highlights both the gutter and the current line.","Consente di controllare in che modo l'editor deve eseguire il rendering dell'evidenziazione di riga corrente. Le opzioni possibili sono 'none', 'gutter', 'line' e 'all'.","Controlla se nell'editor è visualizzato CodeLens","Controlla se per l'editor è abilitata la riduzione del codice","Controlla in che modo vengono calcolati gli intervalli di riduzione. Con 'auto' viene usata l'eventuale strategia di riduzione specifica disponibile. Con 'indentation' viene usata forzatamente la strategia di riduzione basata sui rientri.","Controlla se i controlli di riduzione sul margine della barra di scorrimento sono automaticamente nascosti.","Evidenzia le parentesi corrispondenti quando se ne seleziona una.","Controlla se l'editor deve eseguire il rendering del margine verticale del glifo. Il margine del glifo viene usato principalmente per il debug.","Inserimento ed eliminazione dello spazio vuoto dopo le tabulazioni","Rimuovi lo spazio vuoto finale inserito automaticamente","Mantiene aperti gli editor rapidi anche quando si fa doppio clic sul contenuto o si preme ESC.","Controlla se l'editor consentire lo spostamento di selezioni tramite trascinamento della selezione.","L'editor utilizzerà API della piattaforma per rilevare quando è collegata un'utilità per la lettura dello schermo.","L'editor sarà definitivamente ottimizzato per l'utilizzo con un'utilità per la lettura dello schermo.","L'editor non sarà mai ottimizzato per l'utilizzo con un'utilità per la lettura dello schermo.","Controlla se l'editor deve essere eseguito in una modalità ottimizzata per le utilità per la lettura dello schermo.","Controls fading out of unused code.","Controlla se l'editor deve individuare i collegamenti e renderli cliccabili","Controlla se l'editor deve eseguire il rendering del selettore di colore e degli elementi Decorator di tipo colore inline.","Abilita il codice azione lightbulb","Eseguire l'organizzazione degli Imports durante il salvataggio?","Tipi di azione codice da eseguire durante il salvataggio.","Timeout per le azioni codice eseguite durante il salvataggio.","Controlla se gli appunti primari di Linux devono essere supportati.","Controlla se l'editor diff mostra le differenze affiancate o incorporate","Controlla se l'editor diff mostra come differenze le modifiche relative a spazi vuoti iniziali e finali","Gestione speciale dei file di grandi dimensioni per disabilitare alcune funzionalità che fanno un uso intensivo della memoria.","Consente di controllare se l'editor diff mostra gli indicatori +/- per le modifiche aggiunte/rimosse"], +"vs/editor/common/config/editorOptions":["L'editor non è accessibile in questo momento. Premere Alt+F1 per le opzioni.","Contenuto editor"],"vs/editor/common/controller/cursor":["Eccezione imprevista durante l'esecuzione del comando."],"vs/editor/common/modes/modesRegistry":["Testo normale"],"vs/editor/common/services/modelServiceImpl":["[{0}]\n{1}","[{0}] {1}"], +"vs/editor/common/view/editorColorRegistry":["Colore di sfondo per l'evidenziazione della riga alla posizione del cursore.","Colore di sfondo per il bordo intorno alla riga alla posizione del cursore.","Colore di sfondo degli intervalli evidenziati, ad esempio dalle funzionalità Quick Open e Trova. il colore non deve essere opaco per evitare di nascondere le decorazioni sottostanti.","Colore di sfondo del bordo intorno agli intervalli selezionati.","Colore del cursore dell'editor.","Colore di sfondo del cursore editor. Permette di personalizzare il colore di un carattere quando sovrapposto da un blocco cursore.","Colore dei caratteri di spazio vuoto nell'editor.","Colore delle guide per i rientri dell'editor.","Colore delle guide di indentazione dell'editor attivo","Colore dei numeri di riga dell'editor.","Colore dei numeri per la riga attiva dell'editor","Id è deprecato. In alternativa utilizzare 'editorLineNumber.activeForeground'.","Colore dei numeri per la riga attiva dell'editor","Colore dei righelli dell'editor.","Colore primo piano delle finestre di CodeLens dell'editor","Colore di sfondo delle parentesi corrispondenti","Colore delle caselle di parentesi corrispondenti","Colore del bordo del righello delle annotazioni.","Colore di sfondo della barra di navigazione dell'editor. La barra contiene i margini di glifo e i numeri di riga.","Colore primo piano degli squiggle di errore nell'editor.","Colore del bordo degli squiggle di errore nell'editor.","Colore primo piano degli squiggle di avviso nell'editor","Colore del bordo degli squggle di avviso nell'editor.","Colore primo piano degli squiggle di informazione nell'editor","Colore del bordo degli squiggle di informazione nell'editor","Colore primo piano degli squiggle di suggerimento nell'editor.","Colore del bordo degli squiggle di suggerimento nell'editor.","Border of unnecessary code in the editor.","Opacity of unnecessary code in the editor.","Colore del marcatore del righello delle annotazioni per gli errori.","Colore del marcatore del righello delle annotazioni per gli avvisi.","Colore del marcatore del righello delle annotazioni per i messaggi di tipo informativo."], +"vs/editor/contrib/bracketMatching/bracketMatching":["Colore del marcatore del righello delle annotazioni per la corrispondenza delle parentesi.","Vai alla parentesi","Seleziona fino alla parentesi"],"vs/editor/contrib/caretOperations/caretOperations":["Sposta il punto di inserimento a sinistra","Sposta il punto di inserimento a destra"],"vs/editor/contrib/caretOperations/transpose":["Trasponi lettere"],"vs/editor/contrib/clipboard/clipboard":["Taglia","Cu&&t","Copia","&&Copy","Incolla","&&Paste","Copia con evidenziazione sintassi"],"vs/editor/contrib/codeAction/codeActionCommands":["Mostra correzioni ({0})","Mostra correzioni","Correzione rapida...","Azioni codice non disponibili","Azioni codice non disponibili","Effettua refactoring...","Refactoring non disponibili","Azione origine...","Azioni origine non disponibili","Organizza gli Imports","Azioni di organizzazione Imports non disponibili"], +"vs/editor/contrib/comment/comment":["Attiva/Disattiva commento per la riga","&&Toggle Line Comment","Aggiungi commento per la riga","Rimuovi commento per la riga","Attiva/Disattiva commento per il blocco","Toggle &&Block Comment"],"vs/editor/contrib/contextmenu/contextmenu":["Mostra il menu di scelta rapida editor"],"vs/editor/contrib/cursorUndo/cursorUndo":["Soft Undo"],"vs/editor/contrib/find/findController":["Trova","&&Find","Trova nella selezione","Trova successivo","Trova precedente","Trova selezione successiva","Trova selezione precedente","Sostituisci","&&Replace"],"vs/editor/contrib/find/findWidget":["Trova","Trova","Risultato precedente","Risultato successivo","Trova nella selezione","Chiudi","Sostituisci","Sostituisci","Sostituisci","Sostituisci tutto","Attiva/Disattiva modalità sostituzione","Solo i primi {0} risultati vengono evidenziati, ma tutte le operazioni di ricerca funzionano su tutto il testo.","{0} di {1}","Nessun risultato"], +"vs/editor/contrib/folding/folding":["Espandi","Espandi in modo ricorsivo","Riduci","Riduci in modo ricorsivo","Riduci tutti i blocchi commento","Riduci tutte le regioni","Espandi tutte le regioni","Riduci tutto","Espandi tutto","Livello riduzione {0}"],"vs/editor/contrib/fontZoom/fontZoom":["Zoom In del Font Editor","Zoom Reset del Font Editor","Reset dello Zoom del Font Editor"],"vs/editor/contrib/format/formatActions":["È stata apportata 1 modifica di formattazione a riga {0}","Sono state apportate {0} modifiche di formattazione a riga {1}","È stata apportata 1 modifica di formattazione tra le righe {0} e {1}","Sono state apportate {0} modifiche di formattazione tra le righe {1} e {2}","Non c'è alcun formattatore installato per i file '{0}'.","Formatta documento","Non è installato alcun formattatore di documenti per i file '{0}'.","Formatta selezione","Non è installato alcun formattatore di selezione per i file '{0}'."], +"vs/editor/contrib/goToDefinition/goToDefinitionCommands":["Non è stata trovata alcuna definizione per '{0}'","Non è stata trovata alcuna definizione"," - Definizioni di {0}","Vai alla definizione","Apri definizione lateralmente","Visualizza la definizione","Non sono state trovate implementazioni per '{0}'","Non sono state trovate implementazioni","- {0} implementazioni","Vai all'implementazione","Anteprima implementazione","Non sono state trovate definizioni di tipi per '{0}'","Non sono state trovate definizioni di tipi"," - {0} definizioni di tipo","Vai alla definizione di tipo","Anteprima definizione di tipo"],"vs/editor/contrib/goToDefinition/goToDefinitionMouse":["Fare clic per visualizzare {0} definizioni."],"vs/editor/contrib/gotoError/gotoError":["Vai al problema successivo (Errore, Avviso, Informazioni)","Vai al problema precedente (Errore, Avviso, Info)","Vai al Problema Successivo nei File (Error, Warning, Info)","Vai al Problema Precedente nei File (Error, Warning, Info) "], +"vs/editor/contrib/gotoError/gotoErrorWidget":["({0}/{1})","Colore per gli errori del widget di spostamento tra marcatori dell'editor.","Colore per gli avvisi del widget di spostamento tra marcatori dell'editor.","Colore delle informazioni del widget di navigazione marcatori dell'editor.","Sfondo del widget di spostamento tra marcatori dell'editor."],"vs/editor/contrib/hover/hover":["Visualizza passaggio del mouse"],"vs/editor/contrib/hover/modesContentHover":["Caricamento..."],"vs/editor/contrib/inPlaceReplace/inPlaceReplace":["Sostituisci con il valore precedente","Sostituisci con il valore successivo"], +"vs/editor/contrib/linesOperations/linesOperations":["Copia la riga in alto","&&Copy Line Up","Copia la riga in basso","Co&&py Line Down","Sposta la riga in alto","Mo&&ve Line Up","Sposta la riga in basso","Move &&Line Down","Ordinamento righe crescente","Ordinamento righe decrescente","Taglia spazio vuoto finale","Elimina la riga","Imposta un rientro per la riga","Riduci il rientro per la riga","Inserisci la riga sopra","Inserisci la riga sotto","Elimina tutto a sinistra","Elimina tutto a destra","Unisci righe","Trasponi caratteri intorno al cursore","Converti in maiuscolo","Converti in minuscolo"], +"vs/editor/contrib/links/links":["Cmd + clic per seguire il collegamento","CTRL + clic per seguire il collegamento","Cmd + click per eseguire il comando","Ctrl + clic per eseguire il comando","Opzione + clic per seguire il collegamento","Alt + clic per seguire il collegamento","Opzione + clic per eseguire il comando","Alt + clic per eseguire il comando","Non è stato possibile aprire questo collegamento perché il formato non è valido: {0}","Non è stato possibile aprire questo collegamento perché manca la destinazione.","Apri il collegamento"],"vs/editor/contrib/message/messageController":["Impossibile modificare nell'editor di sola lettura"], +"vs/editor/contrib/multicursor/multicursor":["Aggiungi cursore sopra","&&Add Cursor Above","Aggiungi cursore sotto","A&&dd Cursor Below","Aggiungi cursore alla fine delle righe","Add C&&ursors to Line Ends","Aggiungi selezione a risultato ricerca successivo","Add &&Next Occurrence","Aggiungi selezione a risultato ricerca precedente","Add P&&revious Occurrence","Sposta ultima selezione a risultato ricerca successivo","Sposta ultima selezione a risultato ricerca precedente","Seleziona tutte le occorrenze del risultato ricerca","Select All &&Occurrences","Cambia tutte le occorrenze"],"vs/editor/contrib/parameterHints/parameterHints":["Attiva i suggerimenti per i parametri"],"vs/editor/contrib/parameterHints/parameterHintsWidget":["{0}, suggerimento"],"vs/editor/contrib/referenceSearch/peekViewWidget":["Chiudi"],"vs/editor/contrib/referenceSearch/referenceSearch":[" - Riferimenti di {0}","Trova tutti i riferimenti"],"vs/editor/contrib/referenceSearch/referencesController":["Caricamento..."], +"vs/editor/contrib/referenceSearch/referencesModel":["simbolo in {0} alla riga {1} colonna {2}","1 simbolo in {0}, percorso completo {1}","{0} simboli in {1}, percorso completo {2}","Non sono stati trovati risultati","Trovato 1 simbolo in {0}","Trovati {0} simboli in {1}","Trovati {0} simboli in {1} file"], +"vs/editor/contrib/referenceSearch/referencesWidget":["Non è stato possibile risolvere il file.","{0} riferimenti","{0} riferimento","anteprima non disponibile","Riferimenti","Nessun risultato","Riferimenti","Colore di sfondo dell'area del titolo della visualizzazione rapida.","Colore del titolo della visualizzazione rapida.","Colore delle informazioni del titolo della visualizzazione rapida.","Colore dei bordi e della freccia della visualizzazione rapida.","Colore di sfondo dell'elenco risultati della visualizzazione rapida.","Colore primo piano dei nodi riga nell'elenco risultati della visualizzazione rapida.","Colore primo piano dei nodi file nell'elenco risultati della visualizzazione rapida.","Colore di sfondo della voce selezionata nell'elenco risultati della visualizzazione rapida.","Colore primo piano della voce selezionata nell'elenco risultati della visualizzazione rapida.","Colore di sfondo dell'editor di visualizzazioni rapide.","Colore di sfondo della barra di navigazione nell'editor visualizzazione rapida.","Colore dell'evidenziazione delle corrispondenze nell'elenco risultati della visualizzazione rapida.","Colore dell'evidenziazione delle corrispondenze nell'editor di visualizzazioni rapide.","Bordo dell'evidenziazione delle corrispondenze nell'editor di visualizzazioni rapide."], +"vs/editor/contrib/rename/rename":["Nessun risultato.","Correttamente rinominato '{0}' in '{1}'. Sommario: {2}","L'esecuzione dell'operazione di ridenominazione non è riuscita.","Rinomina simbolo"],"vs/editor/contrib/rename/renameInputField":["Consente di rinominare l'input. Digitare il nuovo nome e premere INVIO per eseguire il commit."],"vs/editor/contrib/smartSelect/smartSelect":["Espandi SELECT","&&Expand Selection","Comprimi SELECT","&&Shrink Selection"],"vs/editor/contrib/snippet/snippetVariables":["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Dom","Lun","Mar","Mer","Gio","Ven","Sab","Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre","Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],"vs/editor/contrib/suggest/suggestController":["L'accettazione di '{0}' ha inserito il seguente testo: {1}","Attiva suggerimento"], +"vs/editor/contrib/suggest/suggestWidget":["Colore di sfondo del widget dei suggerimenti.","Colore del bordo del widget dei suggerimenti.","Colore primo piano del widget dei suggerimenti.","Colore di sfondo della voce selezionata del widget dei suggerimenti.","Colore delle evidenziazioni corrispondenze nel widget dei suggerimenti.","Altre informazioni...{0}","{0}, suggerimento, con dettagli","{0}, suggerimento","Meno informazioni... {0}","Caricamento...","Non ci sono suggerimenti.","{0}, accettato","{0}, suggerimento, con dettagli","{0}, suggerimento"],"vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode":["Attiva/Disattiva l'uso di TAB per spostare lo stato attivo"], +"vs/editor/contrib/wordHighlighter/wordHighlighter":["Colore di sfondo di un simbolo durante l'accesso in lettura, ad esempio durante la lettura di una variabile. Il colore non deve essere opaco per evitare di nascondere le decorazioni sottostanti.","Colore di sfondo di un simbolo durante l'accesso in scrittura, per esempio durante la scrittura di una variabile. Il colore non deve essere opaco per evitare di nascondere le decorazioni sottostanti.","Colore del bordo di un simbolo durante l'accesso in lettura, ad esempio durante la lettura di una variabile.","Colore del bordo di un simbolo durante l'accesso in scrittura, ad esempio durante la scrittura in una variabile.","Colore del marcatore righello panoramica per evidenziazione simboli. Il colore non deve essere opaco per non nascondere decorazioni sottostanti.","Colore del marcatore righello panoramica per evidenziazione simboli con accesso in scrittura. Il colore non deve essere opaco per non nascondere decorazioni sottostanti.","Vai al prossimo simbolo evidenziato","Vai al precedente simbolo evidenziato"], +"vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp":["No selection","Line {0}, Column {1} ({2} selected)","Line {0}, Column {1}","{0} selections ({1} characters selected)","{0} selections","Now changing the setting `accessibilitySupport` to 'on'.","Now opening the Editor Accessibility documentation page."," in a read-only pane of a diff editor."," in a pane of a diff editor."," in a read-only code editor"," in a code editor","To configure the editor to be optimized for usage with a Screen Reader press Command+E now.","To configure the editor to be optimized for usage with a Screen Reader press Control+E now.","The editor is configured to be optimized for usage with a Screen Reader.","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time.","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding.","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.","Press Command+H now to open a browser window with more information related to editor accessibility.","Press Control+H now to open a browser window with more information related to editor accessibility.","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.","Show Accessibility Help"], +"vs/editor/standalone/browser/inspectTokens/inspectTokens":["Developer: Inspect Tokens"],"vs/editor/standalone/browser/quickOpen/gotoLine":["Go to line {0} and character {1}","Go to line {0}","Type a line number between 1 and {0} to navigate to","Type a character between 1 and {0} to navigate to","Go to line {0}","Type a line number, followed by an optional colon and a character number to navigate to","Go to Line..."],"vs/editor/standalone/browser/quickOpen/quickCommand":["{0}, commands","Type the name of an action you want to execute","Command Palette"],"vs/editor/standalone/browser/quickOpen/quickOutline":["{0}, symbols","Type the name of an identifier you wish to navigate to","Go to Symbol...","symbols ({0})","modules ({0})","classes ({0})","interfaces ({0})","methods ({0})","functions ({0})","properties ({0})","variables ({0})","variables ({0})","constructors ({0})","calls ({0})"],"vs/editor/standalone/browser/simpleServices":["Made {0} edits in {1} files"], +"vs/editor/standalone/browser/standaloneCodeEditor":["Editor content","Press Ctrl+F1 for Accessibility Options.","Press Alt+F1 for Accessibility Options."],"vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast":["Toggle High Contrast Theme"],"vs/platform/configuration/common/configurationRegistry":["Override configurazione predefinita","Consente di configurare le impostazioni dell'editor di cui eseguire l'override per il linguaggio {0}.","Consente di configurare le impostazioni dell'editor di cui eseguire l'override per un linguaggio.","Non è possibile registrare '{0}'. Corrisponde al criterio di proprietà '\\\\[.*\\\\]$' per la descrizione delle impostazioni dell'editor specifiche del linguaggio. Usare il contributo 'configurationDefaults'.","Non è possibile registrare '{0}'. Questa proprietà è già registrata."],"vs/platform/keybinding/common/abstractKeybindingService":["È stato premuto ({0}). In attesa del secondo tasto...","La combinazione di tasti ({0}, {1}) non è un comando."], +"vs/platform/list/browser/listService":["Area di lavoro","Rappresenta il tasto 'Control' (ctrl) su Windows e Linux e il tasto 'Comando' (cmd) su OSX.","Rappresenta il tasto 'Alt' su Windows e Linux e il tasto 'Opzione' su OSX.","Modificatore da usare per aggiungere un elemento in alberi ed elenchi a una selezione multipla con il mouse (ad esempio editor aperti e visualizzazione Gestione controllo servizi in Esplora risorse). 'ctrlCmd' rappresenta il tasto 'CTRL' in Windows e Linux e il tasto 'Cmd' in OSX. I gesti del mouse Apri lateralmente, se supportati, si adatteranno in modo da non entrare in conflitto con il modificatore di selezione multipla.","Controlla la modalità di apertura degli elementi in alberi ed elenchi con il mouse, se supportata. Impostare su `singleClick` per aprire gli elementi con un unico clic del mouse e `doubleClick` per aprirli solo se viene fatto doppio clic. Per gli elementi padre con elementi figlio negli alberi, questa impostazione controllerà se per espandere l'elemento padre è necessario fare clic una sola volta o fare doppio clic. Tenere presente che alcuni alberi ed elenchi potrebbero scegliere di ignorare questa impostazione se non è applicabile. ","Controlla se gli alberi supportano lo scorrimento orizzontale in workbench."], +"vs/platform/markers/common/markers":["Errore","Avviso","Informazioni"], +"vs/platform/theme/common/colorRegistry":["Colori usati nell'area di lavoro.","Colore primo piano. Questo colore è utilizzato solo se non viene sovrascritto da un componente.","Colore primo piano globale per i messaggi di errore. Questo colore è utilizzato solamente se non viene sottoposto a override da un componente.","Colore dei bordi degli elementi evidenziati. Questo colore è utilizzato solo se non viene sovrascritto da un componente.","Un bordo supplementare attorno agli elementi per contrastarli maggiormente rispetto agli altri.","Un bordo supplementare intorno agli elementi attivi per contrastarli maggiormente rispetto agli altri.","Colore primo piano dei link nel testo.","Colore sfondo per blocchi di codice nel testo.","Colore ombreggiatura dei widget, ad es. Trova/Sostituisci all'interno dell'editor.","Sfondo della casella di input.","Primo piano della casella di input.","Bordo della casella di input.","Colore del bordo di opzioni attivate nei campi di input.","Colore di sfondo di convalida dell'input di tipo Informazione.","Colore bordo di convalida dell'input di tipo Informazione.","Colore di sfondo di convalida dell'input di tipo Avviso.","Colore bordo di convalida dell'input di tipo Avviso.","Colore di sfondo di convalida dell'input di tipo Errore.","Colore bordo di convalida dell'input di tipo Errore.","Colore sfondo Elenco/Struttura ad albero per l'elemento evidenziato quando l'Elenco/Struttura ad albero è attivo. Un Elenco/Struttura ad albero attivo\nha il focus della tastiera, uno inattivo no.","Colore primo piano Elenco/Struttura ad albero per l'elemento con stato attivo quando l'Elenco/Struttura ad albero è attivo. Un Elenco/Struttura ad albero attivo\nha il focus della tastiera, uno inattivo no.","Colore sfondo Elenco/Struttura ad albero per l'elemento selezionato quando l'Elenco/Struttura ad albero è attivo. Un Elenco/Struttura ad albero attivo\nha il focus della tastiera, uno inattivo no.","Colore primo piano Elenco/Struttura ad albero per l'elemento selezionato quando l'Elenco/Struttura ad albero è attivo. Un Elenco/Struttura ad albero attivo\nha il focus della tastiera, uno inattivo no.","Colore sfondo Elenco/Struttura ad albero per l'elemento selezionato quando l'Elenco/Struttura ad albero è inattivo. Un Elenco/Struttura ad albero attivo\nha il focus della tastiera, uno inattivo no.","Colore primo piano Elenco/Struttura ad albero per l'elemento selezionato quando l'Elenco/Struttura ad albero è inattivo. Un Elenco/Struttura ad albero attivo\nha il focus della tastiera, uno inattivo no.","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.","Sfondo Elenco/Struttura ad albero al passaggio del mouse sugli elementi.","Primo piano Elenco/Struttura ad albero al passaggio del mouse sugli elementi.","Sfondo Elenco/Struttura ad albero durante il trascinamento degli elementi selezionati.","Colore primo piano Elenco/Struttura ad albero delle occorrenze trovate durante la ricerca nell'Elenco/Struttura ad albero.","Colore di selezione rapida per il raggruppamento delle etichette.","Colore di selezione rapida per il raggruppamento dei bordi.","Colore di sfondo del badge. I badge sono piccole etichette informative, ad esempio per mostrare il conteggio dei risultati di una ricerca.","Colore primo piano del badge. I badge sono piccole etichette informative, ad esempio per mostrare il conteggio dei risultati di una ricerca.","Ombra di ScrollBar per indicare lo scorrimento della visualizzazione.","Colore di sfondo dello slider della barra di scorrimento.","Colore di sfondo dello Slider della Barra di scorrimento al passaggio del mouse.","Colore di sfondo del cursore della barra di scorrimento quando cliccata.","Colore di sfondo dell'indicatore di stato che può essere mostrato durante l'esecuzione di operazioni lunghe.","Colore di sfondo dell'editor.","Colore primo piano predefinito dell'editor.","Colore di sfondo dei widget dell'editor, ad esempio Trova/Sostituisci.","Colore bordo dei widget dell'editor. Il colore viene utilizzato solo se il widget sceglie di avere un bordo e se il colore non è sottoposto a override da un widget.","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.","Colore della selezione dell'editor.","Colore del testo selezionato per il contrasto elevato.","Colore della selezione in un editor non attivo. Il colore non deve essere opaco per evitare di nascondere le decorazioni sottostanti.","Colore delle aree con lo stesso contenuto della selezione. Il colore non deve essere opaco per evitare di nascondere le decorazioni sottostanti.","Colore del bordo delle regioni con lo stesso contenuto della selezione.","Colore della corrispondenza di ricerca corrente.","Colore degli altri risultati della ricerca. Il colore non deve essere opaco per evitare di nascondere le decorazioni sottostanti.","Colore dell'intervallo di limite della ricerca. Il colore non deve essere opaco per non nascondere decorazioni sottostanti.","Colore del bordo della corrispondenza della ricerca corrente.","Colore del bordo delle altre corrispondenze della ricerca.","Colore del bordo dell'intervallo di limite della ricerca. Il colore non deve essere opaco per non nascondere decorazioni sottostanti.","Evidenziazione sotto la parola per cui è visualizzata un'area sensibile al passaggio del mouse. Il colore non deve essere opaco per evitare di nascondere le decorazioni sottostanti.","Colore di sfondo dell'area sensibile al passaggio del mouse dell'editor.","Colore del bordo dell'area sensibile al passaggio del mouse dell'editor.","Colore dei collegamenti attivi.","Colore di sfondo per il testo che è stato inserito. Il colore non deve essere opaco per non nascondere le decorazioni sottostanti.","Colore di sfondo per il testo che è stato rimosso. Il colore non deve essere opaco per non nascondere le decorazioni sottostanti.","Colore del contorno del testo che è stato inserito.","Colore del contorno del testo che è stato rimosso.","Border color between the two text editors.","Colore del marcatore righello panoramica per trovare corrispondenze. Il colore non deve essere opaco per non nascondere decorazioni sottostanti.","Colore del marcatore righello panoramica per evidenziazione selezioni. Il colore non deve essere opaco per non nascondere decorazioni sottostanti."] +}); +//# sourceMappingURL=../../../min-maps/vs/editor/editor.main.nls.it.js.map \ No newline at end of file diff --git a/js/monaco/vs/editor/editor.main.nls.ja.js b/js/monaco/vs/editor/editor.main.nls.ja.js new file mode 100644 index 000000000..3f7b98c80 --- /dev/null +++ b/js/monaco/vs/editor/editor.main.nls.ja.js @@ -0,0 +1,25 @@ +/*!----------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.14.6(6c8f02b41db9ae5c4d15df767d47755e5c73b9d5) + * Released under the MIT license + * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt + *-----------------------------------------------------------*/ +define("vs/editor/editor.main.nls.ja",{"vs/base/browser/ui/actionbar/actionbar":["{0} ({1})"],"vs/base/browser/ui/aria/aria":["{0} (再発)","{0} (occurred {1} times)"],"vs/base/browser/ui/findinput/findInput":["入力"],"vs/base/browser/ui/findinput/findInputCheckboxes":["大文字と小文字を区別する","単語単位で検索する","正規表現を使用する"],"vs/base/browser/ui/inputbox/inputBox":["エラー: {0}","警告: {0}","情報: {0}"],"vs/base/browser/ui/list/listWidget":["{0}. Use the navigation keys to navigate."],"vs/base/browser/ui/menu/menu":["{0} ({1})"],"vs/base/common/keybindingLabels":["Ctrl","Shift","Alt","Windows","Ctrl","Shift","Alt","Super","Control","Shift","Alt","コマンド","Control","Shift","Alt","Windows","Control","Shift","Alt","Super"],"vs/base/common/severity":["エラー","警告","情報"],"vs/base/parts/quickopen/browser/quickOpenModel":["{0}, ピッカー","選択"],"vs/base/parts/quickopen/browser/quickOpenWidget":["クイック選択。入力すると結果が絞り込まれます。","クイック選択","{0} Results"],"vs/editor/browser/controller/coreCommands":["&&Select All","&&Undo","&&Redo"], +"vs/editor/browser/widget/codeEditorWidget":["カーソルの数は {0} 個に制限されています。"],"vs/editor/browser/widget/diffEditorWidget":["一方のファイルが大きすぎるため、ファイルを比較できません。"],"vs/editor/browser/widget/diffReview":["閉じる","行なし","1 行","{0} 行","{1} の差異 {0}: 変更前 {2}, {3}, 変更後 {4}, {5}","空白","変更前の {0}、変更後の {1}: {2}","+ 変更後の {0}: {1}","- 変更前の {0}: {1}","次の差分に移動","前の差分に移動"], +"vs/editor/common/config/commonEditorConfig":["エディター","フォント ファミリを制御します。","フォントの太さを制御します。","フォント サイズをピクセル単位で制御します。","行の高さを制御します。fontSize に基づいて lineHeight を計算する場合には、0 を使用します。","文字の間隔をピクセル単位で制御します。","行番号は表示されません。","行番号は、絶対数として表示されます。","行番号は、カーソル位置までの行数として表示されます。","行番号は 10 行ごとに表示されます。","行番号の表示を制御します。","等幅フォントの特定番号の後ろに垂直ルーラーを表示します。複数のルーラーには複数の値を使用します。配列が空の場合はルーラーを表示しません。","単語に関連したナビゲーションまたは操作を実行するときに、単語の区切り文字として使用される文字","1 つのタブに相当するスペースの数。`editor.detectIndentation` がオンの場合、この設定はファイル コンテンツに基づいて上書きされます。","'number' が必要です。`editor.detectIndentation` 設定によって値 \"auto\" が置き換えられていることに注意してください。","Tab キーを押すとスペースが挿入されます。`editor.detectIndentation` がオンの場合、この設定はファイル コンテンツに基づいて上書きされます。","'boolean' が必要です。`editor.detectIndentation` 設定によって値 \"auto\" が置き換えられていることに注意してください。","ファイルを開くと、そのファイルの内容に基づいて `editor.tabSize` と `editor.insertSpaces` が検出されます。","選択範囲の角を丸くするかどうかを制御します","エディターで最後の行を越えてスクロールするかどうかを制御します","エディターが水平方向に余分にスクロールする文字数を制御します","アニメーションでエディターをスクロールするかどうかを制御します","ミニマップを表示するかどうかを制御します","ミニマップを表示する場所を制御します。","ミニマップのスライダーを自動的に非表示にするかどうかを制御します。","行に (カラー ブロックではなく) 実際の文字を表示します","表示するミニマップの最大幅を特定の桁数に制限します","Controls whether the hover is shown.","Time delay in milliseconds after which to the hover is shown.","Controls whether the hover should remain visible when mouse is moved over it.","エディターの選択から検索ウィジェット内の検索文字列を与えるかどうかを制御します","エディター内で複数の文字もしくは行が選択されているときに選択範囲を検索するフラグを有効にするかどうかを制御します","macOS で検索ウィジェットが共有の検索クリップボードを読み取りまたは変更するかどうかを制御します","行を折り返しません。","行をビューポートの幅で折り返します。","行を 'editor.wordWrapColumn' で折り返します。","ビューポートと 'editor.wordWrapColumn' の最小値で行を折り返します。","行の折り返し方法を制御します。次の値を指定できます。\n - 'off' (折り返さない),\n - 'on' (ビューポート折り返し),\n - 'wordWrapColumn' ('editor.wordWrapColumn' で折り返し) or\n - 'bounded' (ビューポートと 'editor.wordWrapColumn' の最小値で折り返し).","'editor.wordWrap' が 'wordWrapColumn' または 'bounded' の場合に、エディターの折り返し桁を制御します。","No indentation. Wrapped lines begin at column 1.","Wrapped lines get the same indentation as the parent.","Wrapped lines get +1 indentation toward the parent.","Wrapped lines get +2 indentation toward the parent.","折り返し行のインデントを制御します。'none'、'same'、'indent' または 'deepIndent' のいずれかを指定できます。","マウス ホイール スクロール イベントの `deltaX` と `deltaY` で使用される乗数","Windows および Linux 上の `Control` キーと macOS 上の `Command` キーに割り当てます。","Windows および Linux 上の `Alt` キーと macOS 上の `Option` キーに割り当てます。","マウスを使用して複数のカーソルを追加するときに使用する修飾キーです。`ctrlCmd` は Windows および Linux 上の `Control` キーと macOS 上の `Command` キーに割り当てます。「定義に移動」や「リンクを開く」のマウス操作は、マルチカーソルの修飾キーと競合しないように適用されます。","複数のカーソルが重なっているときは、マージします。","文字列内でクイック候補を有効にします。","コメント内でクイック候補を有効にします。","文字列およびコメント外でクイック候補を有効にします。","入力中に候補を自動的に表示するかどうかを制御します","クイック候補が表示されるまでの待ち時間 (ミリ秒) を制御します","入力時にパラメーター ドキュメントと型情報を表示するポップアップを有効にする","エディターで左角かっこの後に自動的に右角かっこを挿入するかどうかを制御します","エディターで入力後に自動的に行の書式設定を行うかどうかを制御します","貼り付けた内容がエディターにより自動的にフォーマットされるかどうかを制御します。フォーマッタを使用可能にする必要があります。また、フォーマッタがドキュメント内の範囲をフォーマットできなければなりません。","ユーザーが入力や貼り付け、行の移動をしたとき、エディターがインデントを自動的に調整するかどうかを制御します。言語のインデント ルールを使用できる必要があります。","トリガー文字の入力時に候補が自動的に表示されるようにするかどうかを制御します","Only accept a suggestion with `Enter` when it makes a textual change.","'Tab' キーに加えて 'Enter' キーで候補を受け入れるかどうかを制御します。改行の挿入や候補の反映の間であいまいさを解消するのに役立ちます。'smart' 値は文字を変更するときに、Enter キーを押すだけで提案を反映することを意味します。","コミット文字で候補を受け入れるかどうかを制御します。たとえば、JavaScript ではセミコロン (';') をコミット文字にして、候補を受け入れてその文字を入力することができます。","他の候補の上にスニペットの候補を表示します。","他の候補の下にスニペットの候補を表示します。","他の候補と一緒にスニペットの候補を表示します。","スニペットの候補を表示しません。","他の修正候補と一緒にスニペットを表示するかどうか、およびその並び替えの方法を制御します。","選択範囲を指定しないでコピーする場合に現在の行をコピーするかどうかを制御します。","ドキュメント内の単語に基づいて入力候補を計算するかどうかを制御します。","常に最初の候補を選択します。","追加入力によって選択されたものがなければ、最近の候補を選択します。例: `console.| -> console.log` (`log` は最近入力されたため)。","これらの候補を入力した前のプレフィックスに基づいて候補を選択します。例: `co -> console`、`con -> const`。","候補リストを表示するときに候補を事前に選択する方法を制御します。","候補のウィジェットのフォント サイズ","候補のウィジェットの行の高さ","Controls whether filtering and sorting suggestions accounts for small typos.","Control whether an active snippet prevents quick suggestions.","エディターで選択範囲に類似する一致箇所を強調表示するかどうかを制御します","エディターでセマンティック シンボルの出現箇所を強調表示するかどうかを制御します","概要ルーラーの同じ位置に表示できる装飾の数を制御します","概要ルーラーの周囲に境界線が描画されるかどうかを制御します。","カーソルのアニメーション方式を制御します。","Ctrl キーを押しながらマウス ホイールを使用してエディターのフォントをズームします","カーソルのスタイルを制御します。指定できる値は 'block'、'block-outline'、'line'、'line-thin'、'underline'、'underline-thin' です","editor.cursorStyle が 'line' に設定されている場合、カーソルの幅を制御する","フォントの合字を使用します","概要ルーラーでカーソルを非表示にするかどうかを制御します。","Render whitespace characters except for single spaces between words.","エディターで空白文字を表示する方法を制御します。'none'、'boundary' および 'all' が使用可能です。'boundary' オプションでは、単語間の単一スペースは表示されません。","エディターで制御文字を表示する必要があるかどうかを制御します","エディターでインデントのガイドを表示する必要があるかどうかを制御します","Controls whether the editor should highlight the active indent guide.","Highlights both the gutter and the current line.","エディターが現在の行をどのように強調表示するかを制御します。考えられる値は 'none'、'gutter'、'line'、'all' です。","エディターが CodeLens を表示するかどうかを制御します","エディターでコードの折りたたみを有効にするかどうかを制御します","折りたたみ範囲の計算方法を制御します。'auto' は利用可能であれば言語固有の折りたたみ方式を使用します。'indentation' は常にインデントに基づく折りたたみ方式を使用します。","余白上の折りたたみコントロールを自動的に非表示にするかどうかを制御します 。","かっこを選択すると、対応するかっこを強調表示します。","エディターで縦のグリフ余白が表示されるかどうかを制御します。ほとんどの場合、グリフ余白はデバッグに使用されます。","空白の挿入や削除はタブ位置に従って行われます","自動挿入された末尾の空白を削除する","エディターのコンテンツをダブルクリックするか、Esc キーを押しても、ピーク エディターを開いたままにします。","ドラッグ アンド ドロップによる選択範囲の移動をエディターが許可する必要があるかどうかを制御します。","エディターはスクリーン リーダーがいつ接続されたかを検出するためにプラットフォーム API を使用します。","エディターは永続的にスクリーン リーダー向けに最適化されます。","エディターはスクリーン リーダー向けに最適化されません。","エディターをスクリーン リーダーに最適化されたモードで実行するかどうかを制御します。","Controls fading out of unused code.","エディターがリンクを検出してクリック可能な状態にするかどうかを制御します","エディターでインライン カラー デコレーターと色の選択を表示する必要があるかどうかを制御します。","コード アクション (lightbulb) を有効にする","保存時にインポートの整理を実行しますか?","保存時に実行されるコードアクションの種類。","保存時に実行されるコード アクションのタイムアウト値。","Linux の PRIMARY クリップボードをサポートするかどうかを制御します。","差分エディターが差分を横に並べて表示するか、行内に表示するかを制御します","差分エディターが、先頭または末尾の空白の変更を差分として表示するかどうかを制御します。","大きなファイルでメモリが集中する特定の機能を無効にするための特別な処理。","差分エディターが追加/削除された変更に +/- インジケーターを示すかどうかを制御します"], +"vs/editor/common/config/editorOptions":["現在エディターにアクセスすることはできません。 Alt + F1 キーを押してオプションを選択します。","エディターのコンテンツ"],"vs/editor/common/controller/cursor":["コマンドの実行中に予期しない例外が発生しました。"],"vs/editor/common/modes/modesRegistry":["プレーンテキスト"],"vs/editor/common/services/modelServiceImpl":["[{0}]\n{1}","[{0}] {1}"], +"vs/editor/common/view/editorColorRegistry":["カーソル位置の行を強調表示する背景色。","カーソル位置の行の境界線を強調表示する背景色。","Quick Open 機能や検索機能などによって強調表示された範囲の背景色。下にある装飾を隠さないために、色は不透過であってはなりません。","強調表示された範囲の境界線の背景色。","エディターのカーソルの色。","選択された文字列の背景色です。選択された文字列の背景色をカスタマイズ出来ます。","エディターのスペース文字の色。","エディター インデント ガイドの色。","アクティブなエディターのインデント ガイドの色。","エディターの行番号の色。","エディターのアクティブ行番号の色","id は使用しないでください。代わりに 'EditorLineNumber.activeForeground' を使用してください。","エディターのアクティブ行番号の色","エディター ルーラーの色。","CodeLens エディターの前景色。","一致するかっこの背景色","一致するかっこ内のボックスの色","概要ルーラーの境界色。","エディターの余白の背景色。余白にはグリフ マージンと行番号が含まれます。","エディターでエラーを示す波線の前景色。","エディターでエラーを示す波線の境界線の色。","エディターで警告を示す波線の前景色。","エディターで警告を示す波線の境界線の色。","エディターで情報を示す波線の前景色。","エディターで情報を示す波線の境界線の色。","エディターでヒントを示す波線の前景色。","エディターでヒントを示す波線の境界線の色。","Border of unnecessary code in the editor.","Opacity of unnecessary code in the editor.","エラーを示す概要ルーラーのマーカー色。","警告を示す概要ルーラーのマーカー色。","情報を示す概要ルーラーのマーカー色。"],"vs/editor/contrib/bracketMatching/bracketMatching":["一致するブラケットを示す概要ルーラーのマーカー色。","ブラケットへ移動","ブラケットに選択"], +"vs/editor/contrib/caretOperations/caretOperations":["キャレットを左に移動","キャレットを右に移動"],"vs/editor/contrib/caretOperations/transpose":["文字の入れ替え"],"vs/editor/contrib/clipboard/clipboard":["切り取り","Cu&&t","コピー","&&Copy","貼り付け","&&Paste","構文を強調表示してコピー"],"vs/editor/contrib/codeAction/codeActionCommands":["修正プログラム ({0}) を表示する","修正プログラムを表示する","クイック フィックス...","利用可能なコード アクションはありません","利用可能なコード アクションはありません","リファクター...","利用可能なリファクタリングはありません","ソース アクション...","利用可能なソース アクションはありません","インポートを整理","利用可能なインポートの整理アクションはありません"],"vs/editor/contrib/comment/comment":["行コメントの切り替え","&&Toggle Line Comment","行コメントの追加","行コメントの削除","ブロック コメントの切り替え","Toggle &&Block Comment"],"vs/editor/contrib/contextmenu/contextmenu":["エディターのコンテキスト メニューの表示"],"vs/editor/contrib/cursorUndo/cursorUndo":["Soft Undo"],"vs/editor/contrib/find/findController":["検索","&&Find","選択範囲を検索","次を検索","前を検索","次の選択項目を検索","前の選択項目を検索","置換","&&Replace"], +"vs/editor/contrib/find/findWidget":["検索","検索","前の一致項目","次の一致項目","選択範囲を検索","閉じる","置換","置換","置換","すべて置換","置換モードの切り替え","最初の {0} 件の結果だけが強調表示されますが、すべての検索操作はテキスト全体で機能します。","{0} / {1} 件","結果なし"],"vs/editor/contrib/folding/folding":["展開","再帰的に展開","折りたたみ","再帰的に折りたたむ","すべてのブロック コメントの折りたたみ","すべての領域を折りたたむ","すべての領域を展開","すべて折りたたみ","すべて展開","レベル {0} で折りたたむ"],"vs/editor/contrib/fontZoom/fontZoom":["エディターのフォントを拡大","エディターのフォントを縮小","エディターのフォントのズームをリセット"],"vs/editor/contrib/format/formatActions":["行 {0} で 1 つの書式設定を編集","行 {1} で {0} 個の書式設定を編集","行 {0} と {1} の間で 1 つの書式設定を編集","行 {1} と {2} の間で {0} 個の書式設定を編集","インストールされた '{0}'ファイル用のフォーマッターが存在しません。","ドキュメントのフォーマット","インストールされた '{0}'ファイル用のドキュメント フォーマッターが存在しません。","選択範囲のフォーマット","インストールされた '{0}' ファイル用の選択範囲フォーマッターが存在しません。"],"vs/editor/contrib/goToDefinition/goToDefinitionCommands":["'{0}' の定義は見つかりません","定義が見つかりません"," – {0} 個の定義","定義へ移動","定義を横に開く","定義をここに表示","'{0}' の実装が見つかりません","実装が見つかりません","– {0} 個の実装","実装に移動","実装のプレビュー","'{0}' の型定義が見つかりません","型定義が見つかりません"," – {0} 個の型定義","型定義へ移動","型定義を表示"], +"vs/editor/contrib/goToDefinition/goToDefinitionMouse":["クリックして、{0} の定義を表示します。"],"vs/editor/contrib/gotoError/gotoError":["次の問題 (エラー、警告、情報) へ移動","前の問題 (エラー、警告、情報) へ移動","ファイル内の次の問題 (エラー、警告、情報) へ移動","ファイル内の前の問題 (エラー、警告、情報) へ移動"],"vs/editor/contrib/gotoError/gotoErrorWidget":["({0}/{1})","エディターのマーカー ナビゲーション ウィジェットのエラーの色。","エディターのマーカー ナビゲーション ウィジェットの警告の色。","エディターのマーカー ナビゲーション ウィジェットの情報の色。","エディターのマーカー ナビゲーション ウィジェットの背景。"],"vs/editor/contrib/hover/hover":["ホバーの表示"],"vs/editor/contrib/hover/modesContentHover":["読み込んでいます..."],"vs/editor/contrib/inPlaceReplace/inPlaceReplace":["前の値に置換","次の値に置換"],"vs/editor/contrib/linesOperations/linesOperations":["行を上へコピー","&&Copy Line Up","行を下へコピー","Co&&py Line Down","行を上へ移動","Mo&&ve Line Up","行を下へ移動","Move &&Line Down","行を昇順に並べ替え","行を降順に並べ替え","末尾の空白のトリミング","行の削除","行のインデント","行のインデント解除","行を上に挿入","行を下に挿入","左側をすべて削除","右側をすべて削除","行をつなげる","カーソルの周囲の文字を入れ替える","大文字に変換","小文字に変換"], +"vs/editor/contrib/links/links":["command キーを押しながらクリックしてリンク先を表示","Ctrl キーを押しながらクリックしてリンク先を表示","command キーを押しながらクリックしてコマンドを実行","Ctrl キーを押しながらクリックしてコマンドを実行","Option キーを押しながらクリックしてリンク先を表示","Altl キーを押しながらクリックしてリンク先を表示","Option キーを押しながらクリックしてコマンドを実行","Alt キーを押しながらクリックしてコマンドを実行","このリンクは形式が正しくないため開くことができませんでした: {0}","このリンクはターゲットが存在しないため開くことができませんでした。","リンクを開く"],"vs/editor/contrib/message/messageController":["読み取り専用のエディターは編集できません"],"vs/editor/contrib/multicursor/multicursor":["カーソルを上に挿入","&&Add Cursor Above","カーソルを下に挿入","A&&dd Cursor Below","カーソルを行末に挿入","Add C&&ursors to Line Ends","選択項目を次の一致項目に追加","Add &&Next Occurrence","選択項目を次の一致項目に追加","Add P&&revious Occurrence","最後に選択した項目を次の一致項目に移動","最後に選択した項目を前の一致項目に移動","一致するすべての出現箇所を選択","Select All &&Occurrences","すべての出現箇所を変更"],"vs/editor/contrib/parameterHints/parameterHints":["パラメーター ヒントをトリガー"],"vs/editor/contrib/parameterHints/parameterHintsWidget":["{0}、ヒント"],"vs/editor/contrib/referenceSearch/peekViewWidget":["閉じる"], +"vs/editor/contrib/referenceSearch/referenceSearch":["– {0} 個の参照","すべての参照の検索"],"vs/editor/contrib/referenceSearch/referencesController":["読み込んでいます..."],"vs/editor/contrib/referenceSearch/referencesModel":["列 {2} の {1} 行目に {0} つのシンボル","{0} に 1 個のシンボル、完全なパス {1}","{1} に {0} 個のシンボル、完全なパス {2}","一致する項目はありません","{0} に 1 個のシンボルが見つかりました","{1} に {0} 個のシンボルが見つかりました","{1} 個のファイルに {0} 個のシンボルが見つかりました"],"vs/editor/contrib/referenceSearch/referencesWidget":["ファイルを解決できませんでした。","{0} 個の参照","{0} 個の参照","プレビューを表示できません","参照","結果がありません","参照","ピーク ビューのタイトル領域の背景色。","ピーク ビュー タイトルの色。","ピーク ビューのタイトル情報の色。","ピーク ビューの境界と矢印の色。","ピーク ビュー結果リストの背景色。","ピーク ビュー結果リストのライン ノードの前景色。","ピーク ビュー結果リストのファイル ノードの前景色。","ピーク ビュー結果リストの選択済みエントリの背景色。","ピーク ビュー結果リストの選択済みエントリの前景色。","ピーク ビュー エディターの背景色。","ピーク ビュー エディターの余白の背景色。","ピーク ビュー結果リストの一致した強調表示色。","ピーク ビュー エディターの一致した強調表示色。","ピーク ビュー エディターの一致した強調境界色。"],"vs/editor/contrib/rename/rename":["結果がありません。","'{0}' から '{1}' への名前変更が正常に完了しました。概要: {2}","名前の変更を実行できませんでした。","シンボルの名前を変更"], +"vs/editor/contrib/rename/renameInputField":["名前変更入力。新しい名前を入力し、Enter キーを押してコミットしてください。"],"vs/editor/contrib/smartSelect/smartSelect":["選択範囲を拡大","&&Expand Selection","選択範囲を縮小","&&Shrink Selection"],"vs/editor/contrib/snippet/snippetVariables":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日","日","月","火","水","木","金","土","1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月","1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月"],"vs/editor/contrib/suggest/suggestController":["'{0}' が次のテキストを挿入したことを承認しています: {1}","候補をトリガー"],"vs/editor/contrib/suggest/suggestWidget":["候補のウィジェットの背景色。","候補ウィジェットの境界線色。","候補ウィジェットの前景色。","候補ウィジェット内で選択済みエントリの背景色。","候補のウィジェット内で一致したハイライトの色。","詳細を表示...{0}","{0}、候補、詳細あり","{0}、候補","詳細を隠す...{0}","読み込んでいます...","候補はありません。","{0}、受け入れ済み","{0}、候補、詳細あり","{0}、候補"],"vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode":["TAB キーのフォーカス移動を切り替え"], +"vs/editor/contrib/wordHighlighter/wordHighlighter":["変数の読み取りなど読み取りアクセス中のシンボルの背景色。下にある装飾を隠さないために、色は不透過であってはなりません。","変数への書き込みなど書き込みアクセス中のシンボルの背景色。下にある装飾を隠さないために、色は不透過であってはなりません。","変数の読み取りなど読み取りアクセス中のシンボルの境界線の色。","変数への書き込みなど書き込みアクセス中のシンボルの境界線の色。","シンボルを強調表示するときの概要ルーラーのマーカー色。この色は下地の色に紛れないよう不明瞭であってはいけません。","書き込みアクセス シンボルを強調表示するときの概要ルーラーのマーカー色。この色は下地の色に紛れないよう不明瞭であってはいけません。","次のシンボル ハイライトに移動","前のシンボル ハイライトに移動"], +"vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp":["No selection","Line {0}, Column {1} ({2} selected)","Line {0}, Column {1}","{0} selections ({1} characters selected)","{0} selections","Now changing the setting `accessibilitySupport` to 'on'.","Now opening the Editor Accessibility documentation page."," in a read-only pane of a diff editor."," in a pane of a diff editor."," in a read-only code editor"," in a code editor","To configure the editor to be optimized for usage with a Screen Reader press Command+E now.","To configure the editor to be optimized for usage with a Screen Reader press Control+E now.","The editor is configured to be optimized for usage with a Screen Reader.","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time.","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding.","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.","Press Command+H now to open a browser window with more information related to editor accessibility.","Press Control+H now to open a browser window with more information related to editor accessibility.","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.","Show Accessibility Help"], +"vs/editor/standalone/browser/inspectTokens/inspectTokens":["Developer: Inspect Tokens"],"vs/editor/standalone/browser/quickOpen/gotoLine":["Go to line {0} and character {1}","Go to line {0}","Type a line number between 1 and {0} to navigate to","Type a character between 1 and {0} to navigate to","Go to line {0}","Type a line number, followed by an optional colon and a character number to navigate to","Go to Line..."],"vs/editor/standalone/browser/quickOpen/quickCommand":["{0}, commands","Type the name of an action you want to execute","Command Palette"],"vs/editor/standalone/browser/quickOpen/quickOutline":["{0}, symbols","Type the name of an identifier you wish to navigate to","Go to Symbol...","symbols ({0})","modules ({0})","classes ({0})","interfaces ({0})","methods ({0})","functions ({0})","properties ({0})","variables ({0})","variables ({0})","constructors ({0})","calls ({0})"],"vs/editor/standalone/browser/simpleServices":["Made {0} edits in {1} files"], +"vs/editor/standalone/browser/standaloneCodeEditor":["Editor content","Press Ctrl+F1 for Accessibility Options.","Press Alt+F1 for Accessibility Options."],"vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast":["Toggle High Contrast Theme"],"vs/platform/configuration/common/configurationRegistry":["既定の構成オーバーライド","{0} 言語に対して上書きされるエディター設定を構成します。","言語に対して上書きされるエディター設定を構成します。","'{0}' を登録できません。これは、言語固有のエディター設定を記述するプロパティ パターン '\\\\[.*\\\\]$' に一致しています。'configurationDefaults' コントリビューションを使用してください。","'{0}' を登録できません。このプロパティは既に登録されています。"],"vs/platform/keybinding/common/abstractKeybindingService":["({0}) が押されました。2 番目のキーを待っています...","キーの組み合わせ ({0}、{1}) はコマンドではありません。"], +"vs/platform/list/browser/listService":["ワークベンチ","Windows および Linux 上の `Control` キーと macOS 上の `Command` キーに割り当てます。","Windows および Linux 上の `Alt` キーと macOS 上の `Option` キーに割り当てます。","マウスで複数の選択肢にツリーおよびリストの項目を追加するために使用される修飾子 (たとえば、エクスプローラーでエディターと scm ビューを開くなど)。`ctrlCmd` は、Windows と Linux では `Control` にマップされ、macOS では `Command` にマップされます。'横に並べて開く' マウス ジェスチャー (サポートされている場合) は、複数選択修飾子と競合しないように調整されます。","マウスを使用して、ツリーとリストで項目を開く方法を制御します (サポートされている場合)。'SingleClick' に設定すると、項目をマウスのシングル クリックで開き、'doubleClick' に設定すると、ダブル クリックでのみ開きます。ツリーで子を持つ親の場合、この設定で、親をシングル クリックで展開するか、ダブル クリックで展開するかを制御します。該当しない場合、一部のツリーとリストでは、この設定が無視される場合があることに注意してください。","ワークベンチでツリーが水平スクロールをサポートするかどうかを制御します。"],"vs/platform/markers/common/markers":["エラー","警告","情報"], +"vs/platform/theme/common/colorRegistry":["ワークベンチで使用する色。","全体の前景色。この色は、コンポーネントによってオーバーライドされていない場合にのみ使用されます。","エラー メッセージ全体の前景色。この色は、コンポーネントによって上書きされていない場合にのみ使用されます。","フォーカスされた要素の境界線全体の色。この色はコンポーネントによって上書きされていない場合にのみ使用されます。","コントラストを強めるために、他の要素と隔てる追加の境界線。","コントラストを強めるために、アクティブな他要素と隔てる追加の境界線。","テキスト内のリンクの前景色。","テキスト内のコード ブロックの背景色。","エディター内の検索/置換窓など、エディター ウィジェットの影の色。","入力ボックスの背景。","入力ボックスの前景。","入力ボックスの境界線。","入力フィールドのアクティブ オプションの境界線の色。","情報の重大度を示す入力検証の背景色。","情報の重大度を示す入力検証の境界線色。","警告の重大度を示す入力検証の背景色。","警告の重大度を示す入力検証の境界線色。","エラーの重大度を示す入力検証の背景色。","エラーの重大度を示す入力検証の境界線色。","ツリーリストがアクティブのとき、フォーカスされた項目のツリーリスト背景色。アクティブなツリーリストはキーボード フォーカスがあり、非アクティブではこれがありません。","ツリーリストがアクティブのとき、フォーカスされた項目のツリーリスト前景色。アクティブなツリーリストはキーボード フォーカスがあり、非アクティブではこれがありません。","ツリーリストがアクティブのとき、選択された項目のツリーリスト背景色。アクティブなツリーリストはキーボード フォーカスがあり、非アクティブではこれがありません。","ツリーリストがアクティブのとき、選択された項目のツリーリスト前景色。アクティブなツリーリストはキーボード フォーカスがあり、非アクティブではこれがありません。","ツリーリストが非アクティブのとき、フォーカスされた項目のツリーリスト背景色。アクティブなツリーリストはキーボード フォーカスがあり、非アクティブではこれがありません。","ツリーリストが非アクティブのとき、選択された項目のツリーリスト前景色。アクティブなツリーリストはキーボード フォーカスがあり、非アクティブではこれがありません。","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.","マウス操作で項目をホバーするときのツリーリスト背景。","マウス操作で項目をホバーするときのツリーリスト前景。","マウス操作で項目を移動するときのツリーリスト ドラッグ アンド ドロップの背景。","ツリーリスト内を検索しているとき、一致した強調のツリーリスト前景色。","ラベルをグループ化するためのクリック選択の色。","境界線をグループ化するためのクイック選択の色。","バッジの背景色。バッジとは小さな情報ラベルのことです。例:検索結果の数","バッジの前景色。バッジとは小さな情報ラベルのことです。例:検索結果の数","ビューがスクロールされたことを示すスクロール バーの影。","スクロール バーのスライダーの背景色。","ホバー時のスクロール バー スライダー背景色。","クリック時のスクロール バー スライダー背景色。","時間のかかる操作で表示するプログレス バーの背景色。","エディターの背景色。","エディターの既定の前景色。","検索/置換窓など、エディター ウィジェットの背景色。","エディター ウィジェットの境界線色。ウィジェットに境界線があり、ウィジェットによって配色を上書きされていない場合でのみこの配色は使用されます。","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.","エディターの選択範囲の色。","ハイ コントラストの選択済みテキストの色。","非アクティブなエディターの選択範囲の色。下にある装飾を隠さないために、色は不透過であってはなりません。","選択範囲と同じコンテンツの領域の色。下にある装飾を隠さないために、色は不透過であってはなりません。","選択範囲と同じコンテンツの境界線の色。","現在の検索一致項目の色。","他の検索一致項目の色。下にある装飾を隠さないために、色は不透過であってはなりません。","検索を制限する範囲の色。下にある装飾を隠さないために、色は不透過であってはなりません。","現在の検索一致項目の境界線の色。","他の検索一致項目の境界線の色。","検索を制限する範囲の境界線の色。下にある装飾を隠さないために、色は不透過であってはなりません。","ホバーが表示されているワードの下を強調表示します。下にある装飾を隠さないために、色は不透過であってはなりません。","エディター ホバーの背景色。","エディター ホバーの境界線の色。","アクティブなリンクの色。","挿入されたテキストの境界線の色。下にある装飾を隠さないために、色は不透過であってはなりません。","削除されたテキストの境界線の色。下にある装飾を隠さないために、色は不透過であってはなりません。","挿入されたテキストの輪郭の色。","削除されたテキストの輪郭の色。","Border color between the two text editors.","検索一致項目を示す概要ルーラーのマーカー色。この色は下地の色に紛れないよう不明瞭であってはいけません。","選択範囲を強調表示するときの概要ルーラーのマーカー色。この色は下地の色に紛れないよう不明瞭であってはいけません。"] +}); +//# sourceMappingURL=../../../min-maps/vs/editor/editor.main.nls.ja.js.map \ No newline at end of file diff --git a/js/monaco/vs/editor/editor.main.nls.js b/js/monaco/vs/editor/editor.main.nls.js new file mode 100644 index 000000000..c42ac0085 --- /dev/null +++ b/js/monaco/vs/editor/editor.main.nls.js @@ -0,0 +1,29 @@ +/*!----------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.14.6(6c8f02b41db9ae5c4d15df767d47755e5c73b9d5) + * Released under the MIT license + * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt + *-----------------------------------------------------------*/ +define("vs/editor/editor.main.nls",{"vs/base/browser/ui/actionbar/actionbar":["{0} ({1})"],"vs/base/browser/ui/aria/aria":["{0} (occurred again)","{0} (occurred {1} times)"],"vs/base/browser/ui/findinput/findInput":["input"],"vs/base/browser/ui/findinput/findInputCheckboxes":["Match Case","Match Whole Word","Use Regular Expression"],"vs/base/browser/ui/inputbox/inputBox":["Error: {0}","Warning: {0}","Info: {0}"],"vs/base/browser/ui/list/listWidget":["{0}. Use the navigation keys to navigate."],"vs/base/browser/ui/menu/menu":["{0} ({1})"],"vs/base/common/keybindingLabels":["Ctrl","Shift","Alt","Windows","Ctrl","Shift","Alt","Super","Control","Shift","Alt","Command","Control","Shift","Alt","Windows","Control","Shift","Alt","Super"],"vs/base/common/severity":["Error","Warning","Info"],"vs/base/parts/quickopen/browser/quickOpenModel":["{0}, picker","picker"],"vs/base/parts/quickopen/browser/quickOpenWidget":["Quick picker. Type to narrow down results.","Quick Picker","{0} Results"], +"vs/editor/browser/controller/coreCommands":["&&Select All","&&Undo","&&Redo"],"vs/editor/browser/widget/codeEditorWidget":["The number of cursors has been limited to {0}."],"vs/editor/browser/widget/diffEditorWidget":["Cannot compare files because one file is too large."],"vs/editor/browser/widget/diffReview":["Close","no lines","1 line","{0} lines","Difference {0} of {1}: original {2}, {3}, modified {4}, {5}","blank","original {0}, modified {1}: {2}","+ modified {0}: {1}","- original {0}: {1}","Go to Next Difference","Go to Previous Difference"], +"vs/editor/common/config/commonEditorConfig":["Editor","Controls the font family.","Controls the font weight.","Controls the font size in pixels.","Controls the line height. Use 0 to compute the line height from the font size.","Controls the letter spacing in pixels.","Line numbers are not rendered.","Line numbers are rendered as absolute number.","Line numbers are rendered as distance in lines to cursor position.","Line numbers are rendered every 10 lines.","Controls the display of line numbers.","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.","Characters that will be used as word separators when doing word related navigations or operations.","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.","Expected 'number'. Note that the value \"auto\" has been replaced by the `editor.detectIndentation` setting.","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.","Expected 'boolean'. Note that the value \"auto\" has been replaced by the `editor.detectIndentation` setting.","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.","Controls whether selections should have rounded corners.","Controls whether the editor will scroll beyond the last line.","Controls the number of extra characters beyond which the editor will scroll horizontally.","Controls whether the editor will scroll using an animation.","Controls whether the minimap is shown.","Controls the side where to render the minimap.","Controls whether the minimap slider is automatically hidden.","Render the actual characters on a line as opposed to color blocks.","Limit the width of the minimap to render at most a certain number of columns.","Controls whether the hover is shown.","Time delay in milliseconds after which to the hover is shown.","Controls whether the hover should remain visible when mouse is moved over it.","Controls whether the search string in the Find Widget is seeded from the editor selection.","Controls whether the find operation is carried on selected text or the entire file in the editor.","Controls whether the Find Widget should read or modify the shared find clipboard on macOS.","Lines will never wrap.","Lines will wrap at the viewport width.","Lines will wrap at `#editor.wordWrapColumn#`.","Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.","Controls how lines should wrap.","Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.","No indentation. Wrapped lines begin at column 1.","Wrapped lines get the same indentation as the parent.","Wrapped lines get +1 indentation toward the parent.","Wrapped lines get +2 indentation toward the parent.","Controls the indentation of wrapped lines.","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.","Maps to `Control` on Windows and Linux and to `Command` on macOS.","Maps to `Alt` on Windows and Linux and to `Option` on macOS.","The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).","Merge multiple cursors when they are overlapping.","Enable quick suggestions inside strings.","Enable quick suggestions inside comments.","Enable quick suggestions outside of strings and comments.","Controls whether suggestions should automatically show up while typing.","Controls the delay in milliseconds after which quick suggestions will show up.","Enables a pop-up that shows parameter documentation and type information as you type.","Controls whether the editor should automatically close brackets after the user adds an opening bracket.","Controls whether the editor should automatically format the line after typing.","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.","Controls whether the editor should automatically adjust the indentation when users type, paste or move lines. Extensions with indentation rules of the language must be available.","Controls whether suggestions should automatically show up when typing trigger characters.","Only accept a suggestion with `Enter` when it makes a textual change.","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.","Show snippet suggestions on top of other suggestions.","Show snippet suggestions below other suggestions.","Show snippets suggestions with other suggestions.","Do not show snippet suggestions.","Controls whether snippets are shown with other suggestions and how they are sorted.","Controls whether copying without a selection copies the current line.","Controls whether completions should be computed based on words in the document.","Always select the first suggestion.","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently.","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.","Controls how suggestions are pre-selected when showing the suggest list.","Font size for the suggest widget.","Line height for the suggest widget.","Controls whether filtering and sorting suggestions accounts for small typos.","Control whether an active snippet prevents quick suggestions.","Controls whether the editor should highlight matches similar to the selection","Controls whether the editor should highlight semantic symbol occurrences.","Controls the number of decorations that can show up at the same position in the overview ruler.","Controls whether a border should be drawn around the overview ruler.","Control the cursor animation style.","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.","Controls the cursor style.","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.","Enables/Disables font ligatures.","Controls whether the cursor should be hidden in the overview ruler.","Render whitespace characters except for single spaces between words.","Controls how the editor should render whitespace characters.","Controls whether the editor should render control characters.","Controls whether the editor should render indent guides.","Controls whether the editor should highlight the active indent guide.","Highlights both the gutter and the current line.","Controls how the editor should render the current line highlight.","Controls whether the editor shows CodeLens","Controls whether the editor has code folding enabled","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.","Controls whether the fold controls on the gutter are automatically hidden.","Highlight matching brackets when one of them is selected.","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.","Inserting and deleting whitespace follows tab stops.","Remove trailing auto inserted whitespace.","Keep peek editors open even when double clicking their content or when hitting `Escape`.","Controls whether the editor should allow moving selections via drag and drop.","The editor will use platform APIs to detect when a Screen Reader is attached.","The editor will be permanently optimized for usage with a Screen Reader.","The editor will never be optimized for usage with a Screen Reader.","Controls whether the editor should run in a mode where it is optimized for screen readers.","Controls fading out of unused code.","Controls whether the editor should detect links and make them clickable.","Controls whether the editor should render the inline color decorators and color picker.","Enables the code action lightbulb in the editor.","Controls whether organize imports action should be run on file save.","Code action kinds to be run on save.","Timeout in milliseconds after which the code actions that are run on save are cancelled.","Controls whether the Linux primary clipboard should be supported.","Controls whether the diff editor shows the diff side by side or inline.","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.","Special handling for large files to disable certain memory intensive features.","Controls whether the diff editor shows +/- indicators for added/removed changes."], +"vs/editor/common/config/editorOptions":["The editor is not accessible at this time. Press Alt+F1 for options.","Editor content"],"vs/editor/common/controller/cursor":["Unexpected exception while executing command."],"vs/editor/common/modes/modesRegistry":["Plain Text"],"vs/editor/common/services/modelServiceImpl":["[{0}]\n{1}","[{0}] {1}"], +"vs/editor/common/view/editorColorRegistry":["Background color for the highlight of line at the cursor position.","Background color for the border around the line at the cursor position.","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque to not hide underlying decorations.","Background color of the border around highlighted ranges.","Color of the editor cursor.","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.","Color of whitespace characters in the editor.","Color of the editor indentation guides.","Color of the active editor indentation guides.","Color of editor line numbers.","Color of editor active line number","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.","Color of editor active line number","Color of the editor rulers.","Foreground color of editor code lenses","Background color behind matching brackets","Color for matching brackets boxes","Color of the overview ruler border.","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.","Foreground color of error squigglies in the editor.","Border color of error squigglies in the editor.","Foreground color of warning squigglies in the editor.","Border color of warning squigglies in the editor.","Foreground color of info squigglies in the editor.","Border color of info squigglies in the editor.","Foreground color of hint squigglies in the editor.","Border color of hint squigglies in the editor.","Border of unnecessary code in the editor.","Opacity of unnecessary code in the editor.","Overview ruler marker color for errors.","Overview ruler marker color for warnings.","Overview ruler marker color for infos."], +"vs/editor/contrib/bracketMatching/bracketMatching":["Overview ruler marker color for matching brackets.","Go to Bracket","Select to Bracket"],"vs/editor/contrib/caretOperations/caretOperations":["Move Caret Left","Move Caret Right"],"vs/editor/contrib/caretOperations/transpose":["Transpose Letters"],"vs/editor/contrib/clipboard/clipboard":["Cut","Cu&&t","Copy","&&Copy","Paste","&&Paste","Copy With Syntax Highlighting"],"vs/editor/contrib/codeAction/codeActionCommands":["Show Fixes ({0})","Show Fixes","Quick Fix...","No code actions available","No code actions available","Refactor...","No refactorings available","Source Action...","No source actions available","Organize Imports","No organize imports action available"],"vs/editor/contrib/comment/comment":["Toggle Line Comment","&&Toggle Line Comment","Add Line Comment","Remove Line Comment","Toggle Block Comment","Toggle &&Block Comment"],"vs/editor/contrib/contextmenu/contextmenu":["Show Editor Context Menu"], +"vs/editor/contrib/cursorUndo/cursorUndo":["Soft Undo"],"vs/editor/contrib/find/findController":["Find","&&Find","Find With Selection","Find Next","Find Previous","Find Next Selection","Find Previous Selection","Replace","&&Replace"],"vs/editor/contrib/find/findWidget":["Find","Find","Previous match","Next match","Find in selection","Close","Replace","Replace","Replace","Replace All","Toggle Replace mode","Only the first {0} results are highlighted, but all find operations work on the entire text.","{0} of {1}","No Results"],"vs/editor/contrib/folding/folding":["Unfold","Unfold Recursively","Fold","Fold Recursively","Fold All Block Comments","Fold All Regions","Unfold All Regions","Fold All","Unfold All","Fold Level {0}"],"vs/editor/contrib/fontZoom/fontZoom":["Editor Font Zoom In","Editor Font Zoom Out","Editor Font Zoom Reset"], +"vs/editor/contrib/format/formatActions":["Made 1 formatting edit on line {0}","Made {0} formatting edits on line {1}","Made 1 formatting edit between lines {0} and {1}","Made {0} formatting edits between lines {1} and {2}","There is no formatter for '{0}'-files installed.","Format Document","There is no document formatter for '{0}'-files installed.","Format Selection","There is no selection formatter for '{0}'-files installed."],"vs/editor/contrib/goToDefinition/goToDefinitionCommands":["No definition found for '{0}'","No definition found"," – {0} definitions","Go to Definition","Open Definition to the Side","Peek Definition","No implementation found for '{0}'","No implementation found"," – {0} implementations","Go to Implementation","Peek Implementation","No type definition found for '{0}'","No type definition found"," – {0} type definitions","Go to Type Definition","Peek Type Definition"],"vs/editor/contrib/goToDefinition/goToDefinitionMouse":["Click to show {0} definitions."], +"vs/editor/contrib/gotoError/gotoError":["Go to Next Problem (Error, Warning, Info)","Go to Previous Problem (Error, Warning, Info)","Go to Next Problem in Files (Error, Warning, Info)","Go to Previous Problem in Files (Error, Warning, Info)"],"vs/editor/contrib/gotoError/gotoErrorWidget":["({0}/{1})","Editor marker navigation widget error color.","Editor marker navigation widget warning color.","Editor marker navigation widget info color.","Editor marker navigation widget background."],"vs/editor/contrib/hover/hover":["Show Hover"],"vs/editor/contrib/hover/modesContentHover":["Loading..."],"vs/editor/contrib/inPlaceReplace/inPlaceReplace":["Replace with Previous Value","Replace with Next Value"], +"vs/editor/contrib/linesOperations/linesOperations":["Copy Line Up","&&Copy Line Up","Copy Line Down","Co&&py Line Down","Move Line Up","Mo&&ve Line Up","Move Line Down","Move &&Line Down","Sort Lines Ascending","Sort Lines Descending","Trim Trailing Whitespace","Delete Line","Indent Line","Outdent Line","Insert Line Above","Insert Line Below","Delete All Left","Delete All Right","Join Lines","Transpose characters around the cursor","Transform to Uppercase","Transform to Lowercase"],"vs/editor/contrib/links/links":["Cmd + click to follow link","Ctrl + click to follow link","Cmd + click to execute command","Ctrl + click to execute command","Option + click to follow link","Alt + click to follow link","Option + click to execute command","Alt + click to execute command","Failed to open this link because it is not well-formed: {0}","Failed to open this link because its target is missing.","Open Link"],"vs/editor/contrib/message/messageController":["Cannot edit in read-only editor"], +"vs/editor/contrib/multicursor/multicursor":["Add Cursor Above","&&Add Cursor Above","Add Cursor Below","A&&dd Cursor Below","Add Cursors to Line Ends","Add C&&ursors to Line Ends","Add Selection To Next Find Match","Add &&Next Occurrence","Add Selection To Previous Find Match","Add P&&revious Occurrence","Move Last Selection To Next Find Match","Move Last Selection To Previous Find Match","Select All Occurrences of Find Match","Select All &&Occurrences","Change All Occurrences"],"vs/editor/contrib/parameterHints/parameterHints":["Trigger Parameter Hints"],"vs/editor/contrib/parameterHints/parameterHintsWidget":["{0}, hint"],"vs/editor/contrib/referenceSearch/peekViewWidget":["Close"],"vs/editor/contrib/referenceSearch/referenceSearch":[" – {0} references","Find All References"],"vs/editor/contrib/referenceSearch/referencesController":["Loading..."], +"vs/editor/contrib/referenceSearch/referencesModel":["symbol in {0} on line {1} at column {2}","1 symbol in {0}, full path {1}","{0} symbols in {1}, full path {2}","No results found","Found 1 symbol in {0}","Found {0} symbols in {1}","Found {0} symbols in {1} files"], +"vs/editor/contrib/referenceSearch/referencesWidget":["Failed to resolve file.","{0} references","{0} reference","no preview available","References","No results","References","Background color of the peek view title area.","Color of the peek view title.","Color of the peek view title info.","Color of the peek view borders and arrow.","Background color of the peek view result list.","Foreground color for line nodes in the peek view result list.","Foreground color for file nodes in the peek view result list.","Background color of the selected entry in the peek view result list.","Foreground color of the selected entry in the peek view result list.","Background color of the peek view editor.","Background color of the gutter in the peek view editor.","Match highlight color in the peek view result list.","Match highlight color in the peek view editor.","Match highlight border in the peek view editor."], +"vs/editor/contrib/rename/rename":["No result.","Successfully renamed '{0}' to '{1}'. Summary: {2}","Rename failed to execute.","Rename Symbol"],"vs/editor/contrib/rename/renameInputField":["Rename input. Type new name and press Enter to commit."],"vs/editor/contrib/smartSelect/smartSelect":["Expand Select","&&Expand Selection","Shrink Select","&&Shrink Selection"],"vs/editor/contrib/snippet/snippetVariables":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat","January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"vs/editor/contrib/suggest/suggestController":["Accepting '{0}' did insert the following text: {1}","Trigger Suggest"], +"vs/editor/contrib/suggest/suggestWidget":["Background color of the suggest widget.","Border color of the suggest widget.","Foreground color of the suggest widget.","Background color of the selected entry in the suggest widget.","Color of the match highlights in the suggest widget.","Read More...{0}","{0}, suggestion, has details","{0}, suggestion","Read less...{0}","Loading...","No suggestions.","{0}, accepted","{0}, suggestion, has details","{0}, suggestion"],"vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode":["Toggle Tab Key Moves Focus"], +"vs/editor/contrib/wordHighlighter/wordHighlighter":["Background color of a symbol during read-access, like reading a variable. The color must not be opaque to not hide underlying decorations.","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque to not hide underlying decorations.","Border color of a symbol during read-access, like reading a variable.","Border color of a symbol during write-access, like writing to a variable.","Overview ruler marker color for symbol highlights. The color must not be opaque to not hide underlying decorations.","Overview ruler marker color for write-access symbol highlights. The color must not be opaque to not hide underlying decorations.","Go to Next Symbol Highlight","Go to Previous Symbol Highlight"], +"vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp":["No selection","Line {0}, Column {1} ({2} selected)","Line {0}, Column {1}","{0} selections ({1} characters selected)","{0} selections","Now changing the setting `accessibilitySupport` to 'on'.","Now opening the Editor Accessibility documentation page."," in a read-only pane of a diff editor."," in a pane of a diff editor."," in a read-only code editor"," in a code editor","To configure the editor to be optimized for usage with a Screen Reader press Command+E now.","To configure the editor to be optimized for usage with a Screen Reader press Control+E now.","The editor is configured to be optimized for usage with a Screen Reader.","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time.","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding.","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}.","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.","Press Command+H now to open a browser window with more information related to editor accessibility.","Press Control+H now to open a browser window with more information related to editor accessibility.","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.","Show Accessibility Help"], +"vs/editor/standalone/browser/inspectTokens/inspectTokens":["Developer: Inspect Tokens"],"vs/editor/standalone/browser/quickOpen/gotoLine":["Go to line {0} and character {1}","Go to line {0}","Type a line number between 1 and {0} to navigate to","Type a character between 1 and {0} to navigate to","Go to line {0}","Type a line number, followed by an optional colon and a character number to navigate to","Go to Line..."],"vs/editor/standalone/browser/quickOpen/quickCommand":["{0}, commands","Type the name of an action you want to execute","Command Palette"],"vs/editor/standalone/browser/quickOpen/quickOutline":["{0}, symbols","Type the name of an identifier you wish to navigate to","Go to Symbol...","symbols ({0})","modules ({0})","classes ({0})","interfaces ({0})","methods ({0})","functions ({0})","properties ({0})","variables ({0})","variables ({0})","constructors ({0})","calls ({0})"],"vs/editor/standalone/browser/simpleServices":["Made {0} edits in {1} files"], +"vs/editor/standalone/browser/standaloneCodeEditor":["Editor content","Press Ctrl+F1 for Accessibility Options.","Press Alt+F1 for Accessibility Options."],"vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast":["Toggle High Contrast Theme"],"vs/platform/configuration/common/configurationRegistry":["Default Configuration Overrides","Configure editor settings to be overridden for {0} language.","Configure editor settings to be overridden for a language.","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.","Cannot register '{0}'. This property is already registered."],"vs/platform/keybinding/common/abstractKeybindingService":["({0}) was pressed. Waiting for second key of chord...","The key combination ({0}, {1}) is not a command."], +"vs/platform/list/browser/listService":["Workbench","Maps to `Control` on Windows and Linux and to `Command` on macOS.","Maps to `Alt` on Windows and Linux and to `Option` on macOS.","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.","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. ","Controls whether trees support horizontal scrolling in the workbench."],"vs/platform/markers/common/markers":["Error","Warning","Info"], +"vs/platform/theme/common/colorRegistry":["Colors used in the workbench.","Overall foreground color. This color is only used if not overridden by a component.","Overall foreground color for error messages. This color is only used if not overridden by a component.","Overall border color for focused elements. This color is only used if not overridden by a component.","An extra border around elements to separate them from others for greater contrast.","An extra border around active elements to separate them from others for greater contrast.","Foreground color for links in text.","Background color for code blocks in text.","Shadow color of widgets such as find/replace inside the editor.","Input box background.","Input box foreground.","Input box border.","Border color of activated options in input fields.","Input validation background color for information severity.","Input validation border color for information severity.","Input validation background color for warning severity.","Input validation border color for warning severity.","Input validation background color for error severity.","Input validation border color for error severity.","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.","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.","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.","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.","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.","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.","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.","List/Tree background when hovering over items using the mouse.","List/Tree foreground when hovering over items using the mouse.","List/Tree drag and drop background when moving items around using the mouse.","List/Tree foreground color of the match highlights when searching inside the list/tree.","Quick picker color for grouping labels.","Quick picker color for grouping borders.","Badge background color. Badges are small information labels, e.g. for search results count.","Badge foreground color. Badges are small information labels, e.g. for search results count.","Scrollbar shadow to indicate that the view is scrolled.","Scrollbar slider background color.","Scrollbar slider background color when hovering.","Scrollbar slider background color when clicked on.","Background color of the progress bar that can show for long running operations.","Editor background color.","Editor default foreground color.","Background color of editor widgets, such as find/replace.","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.","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.","Color of the editor selection.","Color of the selected text for high contrast.","Color of the selection in an inactive editor. The color must not be opaque to not hide underlying decorations.","Color for regions with the same content as the selection. The color must not be opaque to not hide underlying decorations.","Border color for regions with the same content as the selection.","Color of the current search match.","Color of the other search matches. The color must not be opaque to not hide underlying decorations.","Color of the range limiting the search. The color must not be opaque to not hide underlying decorations.","Border color of the current search match.","Border color of the other search matches.","Border color of the range limiting the search. The color must not be opaque to not hide underlying decorations.","Highlight below the word for which a hover is shown. The color must not be opaque to not hide underlying decorations.","Background color of the editor hover.","Border color of the editor hover.","Color of active links.","Background color for text that got inserted. The color must not be opaque to not hide underlying decorations.","Background color for text that got removed. The color must not be opaque to not hide underlying decorations.","Outline color for the text that got inserted.","Outline color for text that got removed.","Border color between the two text editors.","Overview ruler marker color for find matches. The color must not be opaque to not hide underlying decorations.","Overview ruler marker color for selection highlights. The color must not be opaque to not hide underlying decorations."] +}); +//# sourceMappingURL=../../../min-maps/vs/editor/editor.main.nls.js.map \ No newline at end of file diff --git a/js/monaco/vs/editor/editor.main.nls.ko.js b/js/monaco/vs/editor/editor.main.nls.ko.js new file mode 100644 index 000000000..12afb80f1 --- /dev/null +++ b/js/monaco/vs/editor/editor.main.nls.ko.js @@ -0,0 +1,26 @@ +/*!----------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.14.6(6c8f02b41db9ae5c4d15df767d47755e5c73b9d5) + * Released under the MIT license + * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt + *-----------------------------------------------------------*/ +define("vs/editor/editor.main.nls.ko",{"vs/base/browser/ui/actionbar/actionbar":["{0}({1})"],"vs/base/browser/ui/aria/aria":["{0}(다시 발생함)","{0} (occurred {1} times)"],"vs/base/browser/ui/findinput/findInput":["입력"],"vs/base/browser/ui/findinput/findInputCheckboxes":["대/소문자 구분","단어 단위로","정규식 사용"],"vs/base/browser/ui/inputbox/inputBox":["오류: {0}","경고: {0}","정보: {0}"],"vs/base/browser/ui/list/listWidget":["{0}. Use the navigation keys to navigate."],"vs/base/browser/ui/menu/menu":["{0} ({1})"],"vs/base/common/keybindingLabels":["Ctrl","","Alt","Windows","Ctrl","","Alt","Super","컨트롤","","Alt","명령","컨트롤","","Alt","Windows","컨트롤","","Alt","Super"],"vs/base/common/severity":["오류","경고","정보"],"vs/base/parts/quickopen/browser/quickOpenModel":["{0}, 선택기","선택기"],"vs/base/parts/quickopen/browser/quickOpenWidget":["빠른 선택기입니다. 결과의 범위를 축소하려면 입력합니다.","빠른 선택기","{0} Results"],"vs/editor/browser/controller/coreCommands":["&&Select All","&&Undo","&&Redo"], +"vs/editor/browser/widget/codeEditorWidget":["커서 수는 {0}(으)로 제한되었습니다."],"vs/editor/browser/widget/diffEditorWidget":["파일 1개가 너무 커서 파일을 비교할 수 없습니다."],"vs/editor/browser/widget/diffReview":["닫기","줄 없음","1줄","{0}줄","차이 {0}/{1}개: 원본 {2}, {3}, 수정 {4}, {5}","비어 있음","원본 {0}, 수정 {1}: {2}","+ 수정됨 {0}: {1}","- 원본 {0}: {1}","다음 다른 항목으로 이동","다음 다른 항목으로 이동"], +"vs/editor/common/config/commonEditorConfig":["편집기","글꼴 패밀리를 제어합니다.","글꼴 두께를 제어합니다.","글꼴 크기(픽셀)를 제어합니다.","줄 높이를 제어합니다. fontSize의 lineHeight를 계산하려면 0을 사용합니다.","글자 간격을 픽셀 단위로 조정합니다.","줄 번호는 렌더링 되지 않습니다.","줄 번호는 절대값으로 렌더링 됩니다.","줄 번호는 커서 위치에서 줄 간격 거리로 렌더링 됩니다.","줄 번호는 매 10 줄마다 렌더링이 이루어집니다.","줄 번호의 표시 여부를 제어합니다.","특정 수의 고정 폭 문자 뒤에 세로 눈금자를 렌더링합니다. 여러 눈금자의 경우 여러 값을 사용합니다. 배열이 비어 있는 경우 눈금자가 그려져 있지 않습니다.","단어 관련 탐색 또는 작업을 수행할 때 단어 구분 기호로 사용되는 문자입니다.","탭 한 개에 해당하는 공백 수입니다. `editor.detectIndentation`이 켜져 있는 경우 이 설정은 파일 콘텐츠에 따라 재정의됩니다.","'number'가 필요합니다. 값 \"auto\"는 `editor.detectIndentation` 설정에 의해 바뀌었습니다.","탭 키를 누를 때 공백을 삽입합니다. `editor.detectIndentation`이 켜져 있는 경우 이 설정은 파일 콘텐츠에 따라 재정의됩니다.","'boolean'이 필요합니다. 값 \"auto\"는 `editor.detectIndentation` 설정에 의해 바뀌었습니다.","파일을 열면 파일 콘텐츠를 기반으로 하여 'editor.tabSize'와 'editor.insertSpaces'가 검색됩니다.","선택 항목의 모서리를 둥글게 할지 여부를 제어합니다.","편집기에서 마지막 줄 이후로 스크롤할지 여부를 제어합니다.","편집기에서 가로로 스크롤되는 범위를 벗어나는 추가 문자의 수를 제어합니다.","편집기에서 애니메이션을 사용하여 스크롤할지 여부를 제어합니다.","미니맵 표시 여부를 제어합니다.","미니맵을 렌더링할 측면을 제어합니다.","미니맵 슬라이더를 자동으로 숨길지 결정합니다.","줄의 실제 문자(색 블록 아님) 렌더링","최대 특정 수의 열을 렌더링하도록 미니맵의 너비를 제한합니다.","Controls whether the hover is shown.","Time delay in milliseconds after which to the hover is shown.","Controls whether the hover should remain visible when mouse is moved over it.","편집기 선택에서 Find Widget의 검색 문자열을 시딩할지 설정합니다.","편집기에서 여러 글자 또는 행을 선택했을 때 Find in Selection 플래그를 켤지 설정합니다.","macOS에서 Find Widget이 공유 클립보드 찾기를 읽거나 수정해야 할지 설정합니다.","줄이 바뀌지 않습니다.","뷰포트 너비에서 줄이 바뀝니다.","`editor.wordWrapColumn`에서 줄이 바뀝니다.","뷰포트의 최소값 및 `editor.wordWrapColumn`에서 줄이 바뀝니다.","줄 바꿈 여부를 제어합니다. 다음 중 하나일 수 있습니다.\n - 'off' (줄 바꿈 사용 안 함),\n - 'on' (뷰포트 줄 바꿈),\n - 'wordWrapColumn' (`editor.wordWrapColumn`에서 줄 바꿈) 또는\n - 'bounded' (뷰포트의 최소값 및 `editor.wordWrapColumn`에서 줄 바꿈).","`editor.wordWrap`이 'wordWrapColumn' 또는 'bounded'인 경우 편집기의 열 줄 바꿈을 제어합니다.","No indentation. Wrapped lines begin at column 1.","Wrapped lines get the same indentation as the parent.","Wrapped lines get +1 indentation toward the parent.","Wrapped lines get +2 indentation toward the parent.","줄 바꿈 행의 들여쓰기를 제어합니다. 'none', 'same', 'indent' 또는 'deepIndent' 중 하나일 수 있습니다.","마우스 휠 스크롤 이벤트의 `deltaX` 및 `deltaY`에서 사용할 승수","Windows와 Linux의 'Control'을 macOS의 'Command'로 매핑합니다.","Windows와 Linux의 'Alt'를 macOS의 'Option'으로 매핑합니다.","마우스로 여러 커서를 추가할 때 사용할 수정자입니다. `ctrlCmd`는 Windows와 Linux에서 `Control`로 매핑되고 macOS에서 `Command`로 매핑됩니다. Go To Definition 및 Open Link 마우스 제스처가 멀티커서 수정자와 충돌하지 않도록 조정됩니다.","여러 커서가 겹치는 경우 커서를 병합합니다.","문자열 내에서 빠른 제안을 사용합니다.","주석 내에서 빠른 제안을 사용합니다.","문자열 및 주석 외부에서 빠른 제안을 사용합니다.","입력하는 동안 제안을 자동으로 표시할지 여부를 제어합니다.","빠른 제안을 표시할 지연 시간(ms)을 제어합니다.","입력과 동시에 매개변수 문서와 유형 정보를 표시하는 팝업을 사용","괄호를 연 다음에 편집기에서 괄호를 자동으로 닫을지 여부를 제어합니다.","입력 후 편집기에서 자동으로 줄의 서식을 지정할지 여부를 제어합니다.","붙여넣은 콘텐츠의 서식을 편집기에서 자동으로 지정할지 여부를 제어합니다. 포맷터는 반드시 사용할 수 있어야 하며 문서에서 범위의 서식을 지정할 수 있어야 합니다.","사용자가 입력하고 라인을 붙여넣거나 이동할 때 편집기가 자동으로 들여쓰기를 적용할지 결정합니다. 해당 언어의 들여쓰기 규칙을 사용할 수 있어야 합니다.","트리거 문자를 입력할 때 제안을 자동으로 표시할지 여부를 제어합니다.","Only accept a suggestion with `Enter` when it makes a textual change.","'Tab' 키 외에 'Enter' 키에 대한 제안도 허용할지를 제어합니다. 새 줄을 삽입하는 동작과 제안을 허용하는 동작 간의 모호함을 없앨 수 있습니다.","커밋 문자에 대한 제안을 허용할지를 제어합니다. 예를 들어 JavaScript에서는 세미콜론(';')이 제안을 허용하고 해당 문자를 입력하는 커밋 문자일 수 있습니다.","다른 제안 위에 조각 제안을 표시합니다.","다른 제안 아래에 조각 제안을 표시합니다.","다른 제안과 함께 조각 제안을 표시합니다.","코드 조각 제안을 표시하지 않습니다.\n","코드 조각이 다른 추천과 함께 표시되는지 여부 및 정렬 방법을 제어합니다.","선택 영역 없이 현재 줄 복사 여부를 제어합니다.","문서 내 단어를 기반으로 완성을 계산할지 여부를 제어합니다.","항상 첫 번째 제안을 선택합니다.","추가로 입력되지 않는 경우, 최근 제안을 선택합니다. 예를 들어 'log'가 최근에 완료되었으므로 'console.| -> console.log'로 전개되는 것을 선택합니다.","제안을 완료한 이전 접두사를 기준으로 제안을 선택합니다. 예를 들어 'co-> console'로, 'con->const'로 전개됩니다.","제안 목록을 표시할 때 제한이 미리 선택되는 방식을 제어합니다.","제안 위젯의 글꼴 크기","제안 위젯의 줄 높이","Controls whether filtering and sorting suggestions accounts for small typos.","Control whether an active snippet prevents quick suggestions.","편집기에서 선택 항목과 유사한 일치 항목을 강조 표시할지 여부를 제어합니다.","편집기에서 의미 체계 기호 항목을 강조 표시할지 여부를 제어합니다.","개요 눈금자에서 동일한 위치에 표시될 수 있는 장식 수를 제어합니다.","개요 눈금자 주위에 테두리를 그릴지 여부를 제어합니다.","커서 애니메이션 스타일을 제어합니다.","마우스 휠을 사용할 때 Ctrl 키를 누르고 있으면 편집기의 글꼴 확대/축소","커서 스타일을 제어합니다. 허용되는 값은 '블록', '블록-윤곽', '줄', '줄-가늘게', '밑줄' 및 '밑줄-가늘게'입니다.","editor.cursorStyle 설정이 'line'으로 설정되어 있을 때 커서의 넓이를 조절합니다.","글꼴 합자 사용","커서가 개요 눈금자에서 가려져야 하는지 여부를 제어합니다.","Render whitespace characters except for single spaces between words.","편집기에서 공백 문자를 렌더링하는 방법을 제어합니다. 가능한 값은 'none', 'boundary' 및 'all'입니다. 'boundary' 옵션은 단어 사이의 한 칸 공백을 렌더링하지 않습니다.","편집기에서 제어 문자를 렌더링할지를 제어합니다.","편집기에서 들여쓰기 가이드를 렌더링할지를 제어합니다.","Controls whether the editor should highlight the active indent guide.","Highlights both the gutter and the current line.","편집기가 현재 줄 강조 표시를 렌더링하는 방식을 제어합니다. 가능한 값은 'none', 'gutter', 'line' 및 'all'입니다.","편집기에서 CodeLens를 표시하는지 여부를 제어합니다.","편집기에서 코드 접기를 사용할지 여부를 제어합니다.","접기 범위를 계산하는 방식을 제어합니다. '자동' 선택이면 사용 가능한 경우 언어 관련 접기 전략을 사용합니다. '들여쓰기'이면 들여쓰기 기반 접기 전략이 사용됩니다.","거터의 폴드 컨트롤을 자동으로 숨길지 결정합니다.","대괄호 중 하나를 선택할 때 일치하는 대괄호를 강조 표시합니다.","편집기에서 세로 문자 모양 여백을 렌더링할지 여부를 제어합니다. 문자 모양 여백은 주로 디버깅에 사용됩니다.","탭 정지 뒤에 공백 삽입 및 삭제","끝에 자동 삽입된 공백 제거","해당 콘텐츠를 두 번 클릭하거나 키를 누르더라도 Peek 편집기를 열린 상태로 유지합니다.","편집기에서 끌어서 놓기로 선택 영역을 이동할 수 있는지 여부를 제어합니다.","편집기가 스크린 리더가 연결되면 플랫폼 API를 사용하여 감지합니다.","편집기가 스크린 리더 사용을 위해 영구적으로 최적화됩니다.","편집기가 스크린 리더 사용을 위해 최적화되지 않습니다.","편집기를 스크린 리더를 위해 최적화된 모드로 실행할지 결정합니다.","Controls fading out of unused code.","편집기에서 링크를 감지하고 클릭할 수 있게 만들지 결정합니다.","편집기에서 인라인 색 데코레이터 및 색 선택을 렌더링할지를 제어합니다.","코드 동작 전구를 사용합니다.","저장할 때 가져오기 구성을 실행하시겠습니까?","저장할 때 실행되는 코드 동작 종류입니다.","저장할 때 실행되는 코드 동작에 대한 시간 제한입니다.","Linux 주 클립보드의 지원 여부를 제어합니다.","diff 편집기에서 diff를 나란히 표시할지 인라인으로 표시할지 여부를 제어합니다.","diff 편집기에서 선행 공백 또는 후행 공백 변경을 diffs로 표시할지 여부를 제어합니다.","큰 파일에 대한 특수 처리로, 메모리를 많이 사용하는 특정 기능을 사용하지 않도록 설정합니다.","diff 편집기에서 추가/제거된 변경 내용에 대해 +/- 표시기를 표시하는지 여부를 제어합니다."], +"vs/editor/common/config/editorOptions":["지금은 편집기를 사용할 수 없습니다. Alt+F1을 눌러 옵션을 보세요.","편집기 콘텐츠"],"vs/editor/common/controller/cursor":["명령을 실행하는 동안 예기치 않은 예외가 발생했습니다."],"vs/editor/common/modes/modesRegistry":["일반 텍스트"],"vs/editor/common/services/modelServiceImpl":["[{0}]\n{1}","[{0}] {1}"], +"vs/editor/common/view/editorColorRegistry":["커서 위치의 줄 강조 표시에 대한 배경색입니다.","커서 위치의 줄 테두리에 대한 배경색입니다.","빠른 열기 및 찾기 기능 등을 통해 강조 표시된 영역의 배경색입니다. 색은 밑에 깔린 꾸밈을 가리지 않도록 반드시 불투명이 아니어야 합니다.","강조 영역 주변의 테두리에 대한 배경색입니다","편집기 커서 색입니다.","편집기 커서의 배경색입니다. 블록 커서와 겹치는 글자의 색상을 사용자 정의할 수 있습니다.","편집기의 공백 문자 색입니다.","편집기 들여쓰기 안내선 색입니다.","활성 편집기 들여쓰기 안내선 색입니다.","편집기 줄 번호 색입니다.","편집기 활성 영역 줄번호 색상","ID는 사용되지 않습니다. 대신 'editorLineNumber.activeForeground'를 사용하세요.","편집기 활성 영역 줄번호 색상","편집기 눈금의 색상입니다.","편집기 코드 렌즈의 전경색입니다.","일치하는 괄호 뒤의 배경색","일치하는 브래킷 박스의 색상","개요 눈금 경계의 색상입니다.","편집기 거터의 배경색입니다. 거터에는 글리프 여백과 행 수가 있습니다.","편집기 내 오류 표시선의 전경색입니다.","편집기 내 오류 표시선의 테두리 색입니다.","편집기 내 경고 표시선의 전경색입니다.","편집기 내 경고 표시선의 테두리 색입니다.","편집기 내 정보 표시선의 전경색입니다.","편집기 내 정보 표시선의 테두리 색입니다.","편집기에서 힌트 표시선의 전경색입니다.","편집기에서 힌트 표시선의 테두리 색입니다.","Border of unnecessary code in the editor.","Opacity of unnecessary code in the editor.","오류의 개요 눈금자 마커 색입니다.","경고의 개요 눈금자 마커 색입니다.","정보의 개요 눈금자 마커 색입니다."], +"vs/editor/contrib/bracketMatching/bracketMatching":["괄호에 해당하는 영역을 표시자에 채색하여 표시합니다.","대괄호로 이동","괄호까지 선택"],"vs/editor/contrib/caretOperations/caretOperations":["캐럿을 왼쪽으로 이동","캐럿을 오른쪽으로 이동"],"vs/editor/contrib/caretOperations/transpose":["문자 바꾸기"],"vs/editor/contrib/clipboard/clipboard":["잘라내기","Cu&&t","복사","&&Copy","붙여넣기","&&Paste","구문을 강조 표시하여 복사"],"vs/editor/contrib/codeAction/codeActionCommands":["수정 사항 표시({0})","수정 사항 표시","빠른 수정...","사용 가능한 코드 동작이 없습니다.","사용 가능한 코드 동작이 없습니다.","리팩터링...","사용 가능한 리펙터링이 없습니다.","소스 작업...","사용 가능한 소스 작업이 없습니다.","가져오기 구성","사용 가능한 가져오기 구성 작업이 없습니다."],"vs/editor/contrib/comment/comment":["줄 주석 설정/해제","&&Toggle Line Comment","줄 주석 추가","줄 주석 제거","블록 주석 설정/해제","Toggle &&Block Comment"],"vs/editor/contrib/contextmenu/contextmenu":["편집기 상황에 맞는 메뉴 표시"],"vs/editor/contrib/cursorUndo/cursorUndo":["Soft Undo"],"vs/editor/contrib/find/findController":["찾기","&&Find","선택 영역에서 찾기","다음 찾기","이전 찾기","다음 선택 찾기","이전 선택 찾기","바꾸기","&&Replace"], +"vs/editor/contrib/find/findWidget":["찾기","찾기","이전 검색 결과","다음 검색 결과","선택 항목에서 찾기","닫기","바꾸기","바꾸기","바꾸기","모두 바꾸기","바꾸기 모드 설정/해제","처음 {0}개의 결과가 강조 표시되지만 모든 찾기 작업은 전체 텍스트에 대해 수행됩니다.","{0}/{1}","결과 없음"],"vs/editor/contrib/folding/folding":["펼치기","재귀적으로 펼치기","접기","재귀적으로 접기","모든 블록 코멘트를 접기","모든 영역 접기","모든 영역 펼치기","모두 접기","모두 펼치기","수준 {0} 접기"],"vs/editor/contrib/fontZoom/fontZoom":["편집기 글꼴 확대","편집기 글꼴 축소","편집기 글꼴 확대/축소 다시 설정"],"vs/editor/contrib/format/formatActions":["줄 {0}에서 1개 서식 편집을 수행했습니다.","줄 {1}에서 {0}개 서식 편집을 수행했습니다.","줄 {0}과(와) {1} 사이에서 1개 서식 편집을 수행했습니다.","줄 {1}과(와) {2} 사이에서 {0}개 서식 편집을 수행했습니다."," '{0}'-파일에 대한 설치된 형식기가 없습니다.","문서 서식"," '{0}'-파일에 대한 문서 포맷터가 설치되어 있지 않습니다.","선택 영역 서식","'{0}'-파일에 대한 선택 영역 포맷터가 설치되어 있지 않습니다."], +"vs/editor/contrib/goToDefinition/goToDefinitionCommands":["'{0}'에 대한 정의를 찾을 수 없습니다.","정의를 찾을 수 없음","– {0} 정의","정의로 이동","측면에서 정의 열기","정의 피킹(Peeking)","'{0}'에 대한 구현을 찾을 수 없습니다.","구현을 찾을 수 없습니다."," – {0} 개 구현","구현으로 이동","구현 미리 보기","'{0}'에 대한 형식 정의를 찾을 수 없습니다.","형식 정의를 찾을 수 없습니다.","– {0} 형식 정의","형식 정의로 이동","형식 정의 미리 보기"],"vs/editor/contrib/goToDefinition/goToDefinitionMouse":["{0}개 정의를 표시하려면 클릭하세요."],"vs/editor/contrib/gotoError/gotoError":["다음 문제로 이동 (오류, 경고, 정보)","이전 문제로 이동 (오류, 경고, 정보)","파일의 다음 문제로 이동 (오류, 경고, 정보)","파일의 이전 문제로 이동 (오류, 경고, 정보)"],"vs/editor/contrib/gotoError/gotoErrorWidget":["({0}/{1})","편집기 표식 탐색 위젯 오류 색입니다.","편집기 표식 탐색 위젯 경고 색입니다.","편집기 표식 탐색 위젯 정보 색입니다.","편집기 표식 탐색 위젯 배경입니다."],"vs/editor/contrib/hover/hover":["가리키기 표시"],"vs/editor/contrib/hover/modesContentHover":["로드 중..."],"vs/editor/contrib/inPlaceReplace/inPlaceReplace":["이전 값으로 바꾸기","다음 값으로 바꾸기"], +"vs/editor/contrib/linesOperations/linesOperations":["위에 줄 복사","&&Copy Line Up","아래에 줄 복사","Co&&py Line Down","줄 위로 이동","Mo&&ve Line Up","줄 아래로 이동","Move &&Line Down","줄을 오름차순 정렬","줄을 내림차순으로 정렬","후행 공백 자르기","줄 삭제","줄 들여쓰기","줄 내어쓰기","위에 줄 삽입","아래에 줄 삽입","왼쪽 모두 삭제","우측에 있는 항목 삭제","줄 연결","커서 주위 문자 바꾸기","대문자로 변환","소문자로 변환"],"vs/editor/contrib/links/links":["Cmd 키를 누르고 클릭하여 링크로 이동","Ctrl 키를 누르고 클릭하여 링크로 이동","명령을 실행하려면 Cmd+클릭","명령을 실행하려면 Ctrl+클릭","